@kong-ui-public/entities-shared 3.2.6 → 3.2.7-pr.1413.1d260019.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { inject as Fn, ref as
|
|
1
|
+
import { inject as Fn, ref as R, unref as T, computed as k, watch as Ae, defineComponent as P, openBlock as m, createBlock as M, resolveDynamicComponent as ce, normalizeClass as fe, withCtx as b, createElementBlock as S, createElementVNode as L, toDisplayString as $, createCommentVNode as D, Fragment as se, renderList as oe, resolveComponent as K, createVNode as B, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as z, createSlots as _e, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Se, pushScopeId as Ie, popScopeId as Ee, onBeforeMount as Lt, withModifiers as Ye, onMounted as Nn, onUnmounted as Bn, withDirectives as me, vShow as ge, withKeys as Rn, Teleport as Mn } from "vue";
|
|
2
2
|
import st from "axios";
|
|
3
|
-
import { createI18n as
|
|
3
|
+
import { createI18n as Kn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
|
|
4
4
|
import { BadgeMethodAppearances as Un } from "@kong/kongponents";
|
|
5
5
|
import { useRouter as jn } from "vue-router";
|
|
6
|
-
var qn = /* @__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))(qn || {}), Pn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Pn || {}), be = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(be || {}),
|
|
6
|
+
var qn = /* @__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))(qn || {}), Pn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(Pn || {}), be = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(be || {}), H = /* @__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))(H || {}), re = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(re || {});
|
|
7
7
|
function Hn() {
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
@@ -40,14 +40,14 @@ function Vn() {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Pe = "khcp-user-table-preferences", zn = {
|
|
44
44
|
pageSize: 30,
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0,
|
|
47
47
|
columnWidths: {},
|
|
48
48
|
columnVisibility: {}
|
|
49
49
|
};
|
|
50
|
-
function
|
|
50
|
+
function Yn() {
|
|
51
51
|
const e = (n) => {
|
|
52
52
|
if (typeof n == "string")
|
|
53
53
|
try {
|
|
@@ -57,28 +57,28 @@ function zn() {
|
|
|
57
57
|
return;
|
|
58
58
|
}
|
|
59
59
|
}, t = () => {
|
|
60
|
-
const n = e(localStorage.getItem(
|
|
60
|
+
const n = e(localStorage.getItem(Pe));
|
|
61
61
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
62
62
|
};
|
|
63
63
|
return {
|
|
64
64
|
setTablePreferences: (n, r) => {
|
|
65
65
|
try {
|
|
66
66
|
const i = t();
|
|
67
|
-
i.set(n, r), localStorage.setItem(
|
|
67
|
+
i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
|
|
68
68
|
} catch (i) {
|
|
69
69
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
70
70
|
}
|
|
71
71
|
},
|
|
72
72
|
getTablePreferences: (n) => {
|
|
73
73
|
const r = t();
|
|
74
|
-
return (r == null ? void 0 : r.get(n)) || void 0 ||
|
|
74
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || zn;
|
|
75
75
|
},
|
|
76
76
|
deleteAllTablePreferences: () => {
|
|
77
|
-
localStorage.removeItem(
|
|
77
|
+
localStorage.removeItem(Pe);
|
|
78
78
|
}
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function et(e = {}) {
|
|
82
82
|
const { getAxiosInstance: t } = Hn();
|
|
83
83
|
return {
|
|
84
84
|
axiosInstance: t(e)
|
|
@@ -192,8 +192,8 @@ const Wn = {
|
|
|
192
192
|
validationErrors: nr,
|
|
193
193
|
toggleModal: rr
|
|
194
194
|
};
|
|
195
|
-
function
|
|
196
|
-
const e =
|
|
195
|
+
function je() {
|
|
196
|
+
const e = Kn("en-us", ir);
|
|
197
197
|
return {
|
|
198
198
|
i18n: e,
|
|
199
199
|
i18nT: Dn(e)
|
|
@@ -206,8 +206,8 @@ function Nt() {
|
|
|
206
206
|
return !1;
|
|
207
207
|
const l = /* @__PURE__ */ new Set([...a, ...o]);
|
|
208
208
|
for (const s of l) {
|
|
209
|
-
const
|
|
210
|
-
if (
|
|
209
|
+
const c = a.filter((u) => u === s).length, d = o.filter((u) => u === s).length;
|
|
210
|
+
if (c !== d)
|
|
211
211
|
return !1;
|
|
212
212
|
}
|
|
213
213
|
return !0;
|
|
@@ -238,8 +238,8 @@ function Nt() {
|
|
|
238
238
|
}
|
|
239
239
|
},
|
|
240
240
|
sortAlpha: (a) => (o, l) => {
|
|
241
|
-
let s = o[a] === void 0 || o[a] === null ? "" : o[a],
|
|
242
|
-
return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (
|
|
241
|
+
let s = o[a] === void 0 || o[a] === null ? "" : o[a], c = l[a] === void 0 || l[a] === null ? "" : l[a];
|
|
242
|
+
return Array.isArray(o[a]) && (s = o[a][0]), Array.isArray(l[a]) && (c = l[a][0]), s.localeCompare(c);
|
|
243
243
|
},
|
|
244
244
|
isValidUuid: (a) => a ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(a) : !1
|
|
245
245
|
};
|
|
@@ -249,85 +249,85 @@ function ar(e, t, n, r = {
|
|
|
249
249
|
searchKeys: ["id"]
|
|
250
250
|
}) {
|
|
251
251
|
n || (n = "1000");
|
|
252
|
-
const { axiosInstance: i } =
|
|
252
|
+
const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (h) => {
|
|
253
253
|
await Z(h);
|
|
254
|
-
}, 200), s =
|
|
254
|
+
}, 200), s = R(!1), c = R(""), d = R(""), u = R([]), g = R([]), p = R(void 0), y = T(t);
|
|
255
255
|
let v = `${e.apiBaseUrl}${y}`;
|
|
256
256
|
e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
257
257
|
const { isValidUuid: _ } = Nt(), N = async () => {
|
|
258
258
|
try {
|
|
259
259
|
s.value = !0;
|
|
260
260
|
const { data: h } = await i.get(`${v}?size=${n}`);
|
|
261
|
-
h != null && h.next || (p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []),
|
|
261
|
+
h != null && h.next || (p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], u.value = g.value;
|
|
262
262
|
} catch {
|
|
263
|
-
|
|
263
|
+
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
264
264
|
} finally {
|
|
265
265
|
s.value = !1;
|
|
266
266
|
}
|
|
267
|
-
},
|
|
268
|
-
var
|
|
269
|
-
if (
|
|
270
|
-
if (
|
|
267
|
+
}, w = R(""), Z = async (h) => {
|
|
268
|
+
var I, f, E;
|
|
269
|
+
if (w.value !== h)
|
|
270
|
+
if (w.value = h || "", p.value === void 0)
|
|
271
271
|
try {
|
|
272
|
-
if (s.value = !0,
|
|
272
|
+
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
273
273
|
let O = v + "";
|
|
274
274
|
h && (O += `/${h}`);
|
|
275
275
|
const { data: x } = await i.get(`${O}?size=${n}`);
|
|
276
|
-
r.fetchedItemsKey in x ?
|
|
276
|
+
r.fetchedItemsKey in x ? u.value = x[r.fetchedItemsKey] : x != null && x.id ? u.value = [x] : u.value = [];
|
|
277
277
|
} else if (h) {
|
|
278
278
|
const O = [];
|
|
279
279
|
_(h) && r.searchKeys.includes("id") ? O.push((async () => {
|
|
280
|
-
const { data:
|
|
281
|
-
return [
|
|
280
|
+
const { data: F } = await i.get(`${v}/${h}`);
|
|
281
|
+
return [F[r.fetchedItemsKey] ?? F];
|
|
282
282
|
})()) : O.push(
|
|
283
|
-
...r.searchKeys.filter((
|
|
284
|
-
const { data:
|
|
285
|
-
return
|
|
283
|
+
...r.searchKeys.filter((F) => F !== "id").map(async (F) => {
|
|
284
|
+
const { data: A } = await i.get(`${v}?${F}=${h}`);
|
|
285
|
+
return A[r.fetchedItemsKey];
|
|
286
286
|
})
|
|
287
287
|
);
|
|
288
|
-
const x = await Promise.all(O),
|
|
289
|
-
|
|
290
|
-
var
|
|
291
|
-
(
|
|
292
|
-
|
|
288
|
+
const x = await Promise.all(O), U = /* @__PURE__ */ new Set();
|
|
289
|
+
u.value = [], (I = x == null ? void 0 : x.forEach) == null || I.call(x, (F) => {
|
|
290
|
+
var A;
|
|
291
|
+
(A = F == null ? void 0 : F.forEach) == null || A.call(F, (j) => {
|
|
292
|
+
U.has(j.id) || (U.add(j.id), u.value.push(j));
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
} else
|
|
296
|
-
|
|
296
|
+
u.value = g.value;
|
|
297
297
|
} catch (O) {
|
|
298
|
-
((f = O == null ? void 0 : O.response) == null ? void 0 : f.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (
|
|
298
|
+
((f = O == null ? void 0 : O.response) == null ? void 0 : f.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
|
|
299
299
|
} finally {
|
|
300
300
|
s.value = !1;
|
|
301
301
|
}
|
|
302
302
|
else
|
|
303
|
-
s.value = !0, d.value = "", h ? (
|
|
304
|
-
var
|
|
303
|
+
s.value = !0, d.value = "", h ? (u.value = (E = p.value) == null ? void 0 : E.filter((O) => {
|
|
304
|
+
var U;
|
|
305
305
|
let x = !1;
|
|
306
|
-
for (const
|
|
307
|
-
const
|
|
308
|
-
|
|
306
|
+
for (const F of r.searchKeys) {
|
|
307
|
+
const A = typeof O[F] == "string" ? (U = O[F]) == null ? void 0 : U.toLowerCase() : O[F];
|
|
308
|
+
A != null && A.includes(h.toLowerCase()) && (x = !0);
|
|
309
309
|
}
|
|
310
310
|
return x;
|
|
311
|
-
}), (!
|
|
311
|
+
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = p.value, s.value = !1;
|
|
312
312
|
};
|
|
313
313
|
return {
|
|
314
314
|
loading: s,
|
|
315
|
-
error:
|
|
315
|
+
error: c,
|
|
316
316
|
validationError: d,
|
|
317
|
-
results:
|
|
317
|
+
results: u,
|
|
318
318
|
allRecords: p,
|
|
319
319
|
loadItems: N,
|
|
320
320
|
debouncedQueryChange: l
|
|
321
321
|
};
|
|
322
322
|
}
|
|
323
323
|
function or(e, t) {
|
|
324
|
-
const n =
|
|
324
|
+
const n = T(t), r = k(
|
|
325
325
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
326
326
|
);
|
|
327
327
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
328
328
|
}
|
|
329
329
|
function lr() {
|
|
330
|
-
const { i18n: { t: e } } =
|
|
330
|
+
const { i18n: { t: e } } = je();
|
|
331
331
|
return {
|
|
332
332
|
getMessageFromError: (n) => {
|
|
333
333
|
var r, i, a, o;
|
|
@@ -367,46 +367,46 @@ function sr(e) {
|
|
|
367
367
|
return console.warn("Failed to build valid URL:", r), "";
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
|
-
function
|
|
371
|
-
const n =
|
|
370
|
+
function Bt(e, t) {
|
|
371
|
+
const n = R(T(e)), r = R(T(t)), i = k(
|
|
372
372
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
373
|
-
), a =
|
|
373
|
+
), a = k(
|
|
374
374
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
375
375
|
);
|
|
376
376
|
return (o) => {
|
|
377
|
-
const { page: l, pageSize: s, offset:
|
|
377
|
+
const { page: l, pageSize: s, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = o;
|
|
378
378
|
try {
|
|
379
379
|
let p = new URL(a.value.href);
|
|
380
|
-
return i.value &&
|
|
380
|
+
return i.value && g ? (p.search = "", p = n.value.isExactMatch ? new URL(`${p.href}/${g}/`) : new URL(`${p.href}?filter[name][contains]=${g}`)) : (i.value || new URLSearchParams(g).forEach((y, v) => {
|
|
381
381
|
p.searchParams.append(v, y);
|
|
382
|
-
}), d && p.searchParams.append("sort_by", d),
|
|
382
|
+
}), d && p.searchParams.append("sort_by", d), u === "desc" && p.searchParams.append("sort_desc", "1"), p.searchParams.append("size", String(s))), c && l !== 1 && p.searchParams.append("offset", String(c)), p.href;
|
|
383
383
|
} catch (p) {
|
|
384
384
|
return console.error("RouteList(fetcher)", p), r.value;
|
|
385
385
|
}
|
|
386
386
|
};
|
|
387
387
|
}
|
|
388
|
-
function
|
|
389
|
-
const r =
|
|
388
|
+
function ur(e, t, n = "data") {
|
|
389
|
+
const r = T(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Bt(e, r), o = R({
|
|
390
390
|
status: be.Idle
|
|
391
391
|
});
|
|
392
392
|
return { fetcher: async (s) => {
|
|
393
|
-
var
|
|
393
|
+
var c;
|
|
394
394
|
try {
|
|
395
395
|
o.value = { status: be.Loading };
|
|
396
396
|
let d = a(s);
|
|
397
397
|
d.includes("filter[name]") && (d = `${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
398
|
-
const
|
|
399
|
-
if (
|
|
400
|
-
throw
|
|
401
|
-
const
|
|
398
|
+
const u = await i.get(d);
|
|
399
|
+
if (u.status >= 400)
|
|
400
|
+
throw u;
|
|
401
|
+
const g = u.data, p = n && n.replace(/[^\w-_]/gi, "");
|
|
402
402
|
let y;
|
|
403
|
-
|
|
403
|
+
g[p] && Array.isArray(g[p]) ? y = g[p] : Array.isArray(g) ? y = g : y = Object.keys(g).length ? [g] : [];
|
|
404
404
|
const v = {
|
|
405
405
|
data: y,
|
|
406
406
|
total: y.length,
|
|
407
|
-
...
|
|
407
|
+
...g.offset ? {
|
|
408
408
|
pagination: {
|
|
409
|
-
offset:
|
|
409
|
+
offset: g.offset
|
|
410
410
|
}
|
|
411
411
|
} : null
|
|
412
412
|
};
|
|
@@ -415,41 +415,41 @@ function cr(e, t, n = "data") {
|
|
|
415
415
|
response: v
|
|
416
416
|
}, v;
|
|
417
417
|
} catch (d) {
|
|
418
|
-
const
|
|
418
|
+
const u = {
|
|
419
419
|
data: [],
|
|
420
420
|
total: 0
|
|
421
421
|
};
|
|
422
|
-
return s.query && (((
|
|
422
|
+
return s.query && (((c = d.response) == null ? void 0 : c.status) === 404 || d.status === 404) ? (o.value = {
|
|
423
423
|
status: be.NoResults,
|
|
424
|
-
response:
|
|
424
|
+
response: u,
|
|
425
425
|
error: d.response ? d : { response: d }
|
|
426
|
-
},
|
|
426
|
+
}, u) : (o.value = {
|
|
427
427
|
status: be.Error,
|
|
428
|
-
response:
|
|
428
|
+
response: u,
|
|
429
429
|
error: d.response ? d : { response: d }
|
|
430
|
-
},
|
|
430
|
+
}, u);
|
|
431
431
|
}
|
|
432
432
|
}, fetcherState: o };
|
|
433
433
|
}
|
|
434
|
-
function
|
|
434
|
+
function cr() {
|
|
435
435
|
const e = (r, i = "_") => r ? r.split(i).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
436
436
|
return {
|
|
437
437
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
438
438
|
convertKeyToTitle: e
|
|
439
439
|
};
|
|
440
440
|
}
|
|
441
|
-
const
|
|
441
|
+
const Rt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ut = (e) => {
|
|
442
442
|
if (typeof e != "string")
|
|
443
443
|
throw new TypeError("Invalid argument expected string");
|
|
444
|
-
const t = e.match(
|
|
444
|
+
const t = e.match(Rt);
|
|
445
445
|
if (!t)
|
|
446
446
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
447
447
|
return t.shift(), t;
|
|
448
|
-
},
|
|
448
|
+
}, ct = (e) => e === "*" || e === "x" || e === "X", dt = (e) => {
|
|
449
449
|
const t = parseInt(e, 10);
|
|
450
450
|
return isNaN(t) ? e : t;
|
|
451
451
|
}, dr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], fr = (e, t) => {
|
|
452
|
-
if (
|
|
452
|
+
if (ct(e) || ct(t))
|
|
453
453
|
return 0;
|
|
454
454
|
const [n, r] = dr(dt(e), dt(t));
|
|
455
455
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
@@ -461,25 +461,25 @@ const Bt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
461
461
|
}
|
|
462
462
|
return 0;
|
|
463
463
|
}, pr = (e, t) => {
|
|
464
|
-
const n =
|
|
464
|
+
const n = ut(e), r = ut(t), i = n.pop(), a = r.pop(), o = ft(n, r);
|
|
465
465
|
return o !== 0 ? o : i && a ? ft(i.split("."), a.split(".")) : i || a ? i ? -1 : 1 : 0;
|
|
466
466
|
}, pt = (e, t, n) => {
|
|
467
467
|
hr(n);
|
|
468
468
|
const r = pr(e, t);
|
|
469
|
-
return
|
|
470
|
-
},
|
|
469
|
+
return Mt[n].includes(r);
|
|
470
|
+
}, Mt = {
|
|
471
471
|
">": [1],
|
|
472
472
|
">=": [0, 1],
|
|
473
473
|
"=": [0],
|
|
474
474
|
"<=": [-1, 0],
|
|
475
475
|
"<": [-1],
|
|
476
476
|
"!=": [-1, 1]
|
|
477
|
-
}, ht = Object.keys(
|
|
477
|
+
}, ht = Object.keys(Mt), hr = (e) => {
|
|
478
478
|
if (typeof e != "string")
|
|
479
479
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
480
480
|
if (ht.indexOf(e) === -1)
|
|
481
481
|
throw new Error(`Invalid operator, expected one of ${ht.join("|")}`);
|
|
482
|
-
}, mr = (e) => typeof e == "string" && /^[v\d]/.test(e) &&
|
|
482
|
+
}, mr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Rt.test(e);
|
|
483
483
|
function gr(e) {
|
|
484
484
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
485
485
|
if (!t)
|
|
@@ -494,37 +494,37 @@ function gr(e) {
|
|
|
494
494
|
return !(o && pt(i, o, "<") || l && pt(i, l, ">"));
|
|
495
495
|
}
|
|
496
496
|
function yr(e) {
|
|
497
|
-
const t =
|
|
497
|
+
const t = R(0), n = R(0), r = R(!1);
|
|
498
498
|
return Ae(e, (a) => {
|
|
499
499
|
a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
|
|
500
500
|
}), {
|
|
501
|
-
isTruncated:
|
|
501
|
+
isTruncated: k(() => t.value < n.value)
|
|
502
502
|
};
|
|
503
503
|
}
|
|
504
504
|
function vr() {
|
|
505
|
-
const { i18n: { t: e } } =
|
|
505
|
+
const { i18n: { t: e } } = je();
|
|
506
506
|
return {
|
|
507
507
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
const
|
|
511
|
-
useAxios:
|
|
510
|
+
const Y = {
|
|
511
|
+
useAxios: et,
|
|
512
512
|
useDebouncedFilter: ar,
|
|
513
513
|
useDeleteUrlBuilder: or,
|
|
514
514
|
useErrors: lr,
|
|
515
515
|
useExternalLinkCreator: sr,
|
|
516
|
-
useFetcher:
|
|
517
|
-
useFetchUrlBuilder:
|
|
516
|
+
useFetcher: ur,
|
|
517
|
+
useFetchUrlBuilder: Bt,
|
|
518
518
|
useHelpers: Nt,
|
|
519
|
-
useStringHelpers:
|
|
520
|
-
useI18n:
|
|
519
|
+
useStringHelpers: cr,
|
|
520
|
+
useI18n: je,
|
|
521
521
|
useGatewayFeatureSupported: gr,
|
|
522
522
|
useTruncationDetector: yr,
|
|
523
523
|
useValidators: vr
|
|
524
524
|
}, br = {
|
|
525
525
|
key: 0,
|
|
526
526
|
class: "config-card-fieldset-title"
|
|
527
|
-
}, xr = /* @__PURE__ */
|
|
527
|
+
}, xr = /* @__PURE__ */ P({
|
|
528
528
|
__name: "JsonCardItem",
|
|
529
529
|
props: {
|
|
530
530
|
item: {
|
|
@@ -541,25 +541,25 @@ const W = {
|
|
|
541
541
|
}
|
|
542
542
|
},
|
|
543
543
|
setup(e) {
|
|
544
|
-
const t = e, { i18n: { t: n } } =
|
|
544
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = k(() => t.item.key ?? "json-array-item"), a = k(() => t.item.value ?? t.item), o = k(() => {
|
|
545
545
|
const s = JSON.parse(JSON.stringify(a.value));
|
|
546
546
|
return t.isArrayItem && delete s.name, s;
|
|
547
|
-
}), l =
|
|
547
|
+
}), l = k(() => {
|
|
548
548
|
var s;
|
|
549
549
|
return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
550
550
|
});
|
|
551
|
-
return (s,
|
|
552
|
-
class:
|
|
551
|
+
return (s, c) => (m(), M(ce(e.isArrayItem ? "fieldset" : "div"), {
|
|
552
|
+
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
553
553
|
}, {
|
|
554
554
|
default: b(() => [
|
|
555
|
-
e.isArrayItem ? (
|
|
555
|
+
e.isArrayItem ? (m(), S("legend", br, [
|
|
556
556
|
L("b", null, $(l.value), 1)
|
|
557
|
-
])) :
|
|
558
|
-
(
|
|
559
|
-
key: `${i.value}-property-${
|
|
557
|
+
])) : D("", !0),
|
|
558
|
+
(m(!0), S(se, null, oe(Object.keys(o.value), (d, u) => (m(), M(Dt, {
|
|
559
|
+
key: `${i.value}-property-${u}`,
|
|
560
560
|
item: {
|
|
561
561
|
key: d,
|
|
562
|
-
label:
|
|
562
|
+
label: T(r)(d),
|
|
563
563
|
value: o.value[d]
|
|
564
564
|
}
|
|
565
565
|
}, null, 8, ["item"]))), 128))
|
|
@@ -567,12 +567,12 @@ const W = {
|
|
|
567
567
|
_: 1
|
|
568
568
|
}, 8, ["class"]));
|
|
569
569
|
}
|
|
570
|
-
}),
|
|
570
|
+
}), ae = (e, t) => {
|
|
571
571
|
const n = e.__vccOpts || e;
|
|
572
572
|
for (const [r, i] of t)
|
|
573
573
|
n[r] = i;
|
|
574
574
|
return n;
|
|
575
|
-
},
|
|
575
|
+
}, Kt = /* @__PURE__ */ ae(xr, [["__scopeId", "data-v-68ca83ec"]]), Cr = /* @__PURE__ */ P({
|
|
576
576
|
__name: "InternalLinkItem",
|
|
577
577
|
props: {
|
|
578
578
|
item: {
|
|
@@ -582,24 +582,24 @@ const W = {
|
|
|
582
582
|
},
|
|
583
583
|
emits: ["navigation-click"],
|
|
584
584
|
setup(e) {
|
|
585
|
-
const { i18n: { t } } =
|
|
585
|
+
const { i18n: { t } } = Y.useI18n();
|
|
586
586
|
return (n, r) => {
|
|
587
587
|
const i = K("KButton");
|
|
588
|
-
return
|
|
589
|
-
|
|
588
|
+
return m(), S("div", null, [
|
|
589
|
+
B(i, {
|
|
590
590
|
appearance: "tertiary",
|
|
591
591
|
class: "navigation-button",
|
|
592
592
|
onClick: r[0] || (r[0] = (a) => n.$emit("navigation-click", e.item))
|
|
593
593
|
}, {
|
|
594
594
|
default: b(() => [
|
|
595
|
-
|
|
595
|
+
V($(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
|
|
596
596
|
]),
|
|
597
597
|
_: 1
|
|
598
598
|
})
|
|
599
599
|
]);
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
|
-
}),
|
|
602
|
+
}), kr = /* @__PURE__ */ ae(Cr, [["__scopeId", "data-v-c96811e5"]]), _r = /* @__PURE__ */ P({
|
|
603
603
|
__name: "StatusBadge",
|
|
604
604
|
props: {
|
|
605
605
|
status: {
|
|
@@ -608,24 +608,24 @@ const W = {
|
|
|
608
608
|
}
|
|
609
609
|
},
|
|
610
610
|
setup(e) {
|
|
611
|
-
const { i18n: { t } } =
|
|
611
|
+
const { i18n: { t } } = Y.useI18n();
|
|
612
612
|
return (n, r) => {
|
|
613
613
|
const i = K("KBadge");
|
|
614
|
-
return
|
|
614
|
+
return m(), M(i, {
|
|
615
615
|
appearance: e.status ? "success" : "neutral"
|
|
616
616
|
}, {
|
|
617
617
|
default: b(() => [
|
|
618
|
-
|
|
618
|
+
V($(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
619
619
|
]),
|
|
620
620
|
_: 1
|
|
621
621
|
}, 8, ["appearance"]);
|
|
622
622
|
};
|
|
623
623
|
}
|
|
624
|
-
}), wr = "#0044f4", Ar = "#e0e4ea", Sr = "#
|
|
624
|
+
}), wr = "#0044f4", Ar = "#e0e4ea", Sr = "#afb7c5", Ir = "#0044f4", Er = "1px", Tr = "16px", Fr = "20px", Or = { class: "config-card-details-row" }, $r = ["data-testid"], Lr = ["data-testid"], Nr = ["data-testid"], Br = ["data-testid"], Rr = { key: 1 }, Mr = ["data-testid"], Kr = ["data-testid"], Dr = ["data-testid"], Ur = ["data-testid"], jr = {
|
|
625
625
|
name: "ConfigCardItem",
|
|
626
|
-
components: { JsonCardItem:
|
|
627
|
-
},
|
|
628
|
-
...
|
|
626
|
+
components: { JsonCardItem: Kt, StatusBadge: _r, InternalLinkItem: kr }
|
|
627
|
+
}, qr = /* @__PURE__ */ P({
|
|
628
|
+
...jr,
|
|
629
629
|
props: {
|
|
630
630
|
item: {
|
|
631
631
|
type: Object,
|
|
@@ -645,14 +645,14 @@ const W = {
|
|
|
645
645
|
emits: ["navigation-click"],
|
|
646
646
|
setup(e, { emit: t }) {
|
|
647
647
|
$t((y) => ({
|
|
648
|
-
"07753575": d.value ? "none" : `solid ${
|
|
649
|
-
"32d44ea8":
|
|
650
|
-
"5036b738":
|
|
651
|
-
"5038fd13":
|
|
648
|
+
"07753575": d.value ? "none" : `solid ${T(Er)} ${T(Ar)}`,
|
|
649
|
+
"32d44ea8": c.value && l.value ? "block" : "flex",
|
|
650
|
+
"5036b738": c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
651
|
+
"5038fd13": c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
652
652
|
}));
|
|
653
|
-
const n = e, r = t, i =
|
|
653
|
+
const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = Y.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), c = k(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = k(() => n.item.type === H.JsonArray), u = k(() => {
|
|
654
654
|
switch (n.item.type) {
|
|
655
|
-
case
|
|
655
|
+
case H.ID:
|
|
656
656
|
return {
|
|
657
657
|
tag: "KCopy",
|
|
658
658
|
attrs: {
|
|
@@ -661,7 +661,7 @@ const W = {
|
|
|
661
661
|
text: n.item.value
|
|
662
662
|
}
|
|
663
663
|
};
|
|
664
|
-
case
|
|
664
|
+
case H.IdArray:
|
|
665
665
|
return {
|
|
666
666
|
tag: "div",
|
|
667
667
|
additionalComponent: "KCopy",
|
|
@@ -669,7 +669,7 @@ const W = {
|
|
|
669
669
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
670
670
|
}
|
|
671
671
|
};
|
|
672
|
-
case
|
|
672
|
+
case H.Redacted:
|
|
673
673
|
return {
|
|
674
674
|
tag: "KCopy",
|
|
675
675
|
attrs: {
|
|
@@ -679,7 +679,7 @@ const W = {
|
|
|
679
679
|
text: n.item.value
|
|
680
680
|
}
|
|
681
681
|
};
|
|
682
|
-
case
|
|
682
|
+
case H.RedactedArray:
|
|
683
683
|
return {
|
|
684
684
|
tag: "div",
|
|
685
685
|
additionalComponent: "KCopy",
|
|
@@ -688,7 +688,7 @@ const W = {
|
|
|
688
688
|
"copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
|
|
689
689
|
}
|
|
690
690
|
};
|
|
691
|
-
case
|
|
691
|
+
case H.Date:
|
|
692
692
|
return {
|
|
693
693
|
tag: "div",
|
|
694
694
|
attrs: {
|
|
@@ -696,7 +696,7 @@ const W = {
|
|
|
696
696
|
},
|
|
697
697
|
text: o(n.item.value)
|
|
698
698
|
};
|
|
699
|
-
case
|
|
699
|
+
case H.BadgeStatus:
|
|
700
700
|
return {
|
|
701
701
|
tag: "StatusBadge",
|
|
702
702
|
attrs: {
|
|
@@ -704,17 +704,17 @@ const W = {
|
|
|
704
704
|
status: n.item.value
|
|
705
705
|
}
|
|
706
706
|
};
|
|
707
|
-
case
|
|
707
|
+
case H.BadgeTag:
|
|
708
708
|
return {
|
|
709
709
|
tag: "div",
|
|
710
710
|
additionalComponent: "KBadge"
|
|
711
711
|
};
|
|
712
|
-
case
|
|
712
|
+
case H.BadgeMethod:
|
|
713
713
|
return {
|
|
714
714
|
tag: "div",
|
|
715
715
|
additionalComponent: "KMethodBadge"
|
|
716
716
|
};
|
|
717
|
-
case
|
|
717
|
+
case H.LinkInternal:
|
|
718
718
|
return {
|
|
719
719
|
tag: "InternalLinkItem",
|
|
720
720
|
attrs: {
|
|
@@ -725,7 +725,7 @@ const W = {
|
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
727
|
};
|
|
728
|
-
case
|
|
728
|
+
case H.LinkExternal:
|
|
729
729
|
return {
|
|
730
730
|
tag: "KExternalLink",
|
|
731
731
|
attrs: {
|
|
@@ -734,7 +734,7 @@ const W = {
|
|
|
734
734
|
},
|
|
735
735
|
text: n.item.value
|
|
736
736
|
};
|
|
737
|
-
case
|
|
737
|
+
case H.Json:
|
|
738
738
|
return {
|
|
739
739
|
tag: "JsonCardItem",
|
|
740
740
|
attrs: {
|
|
@@ -742,7 +742,7 @@ const W = {
|
|
|
742
742
|
item: n.item
|
|
743
743
|
}
|
|
744
744
|
};
|
|
745
|
-
case
|
|
745
|
+
case H.JsonArray:
|
|
746
746
|
return {
|
|
747
747
|
tag: "div",
|
|
748
748
|
additionalComponent: "JsonCardItem",
|
|
@@ -760,18 +760,18 @@ const W = {
|
|
|
760
760
|
text: n.item.value
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
}),
|
|
763
|
+
}), g = R(), { isTruncated: p } = Y.useTruncationDetector(g);
|
|
764
764
|
return (y, v) => {
|
|
765
|
-
const _ = K("KLabel"), N = K("KBadge"),
|
|
766
|
-
return
|
|
765
|
+
const _ = K("KLabel"), N = K("KBadge"), w = K("KCopy"), Z = K("KTooltip");
|
|
766
|
+
return m(), S("div", Or, [
|
|
767
767
|
L("div", {
|
|
768
768
|
class: "config-card-details-label",
|
|
769
769
|
"data-testid": `${e.item.key}-label`
|
|
770
770
|
}, [
|
|
771
771
|
z(y.$slots, "label", { item: e.item }, () => [
|
|
772
|
-
|
|
772
|
+
B(_, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
|
|
773
773
|
default: b(() => [
|
|
774
|
-
|
|
774
|
+
V($(e.item.label) + " ", 1)
|
|
775
775
|
]),
|
|
776
776
|
_: 2
|
|
777
777
|
}, [
|
|
@@ -782,15 +782,15 @@ const W = {
|
|
|
782
782
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
783
783
|
}, [
|
|
784
784
|
z(y.$slots, "label-tooltip", {}, () => [
|
|
785
|
-
|
|
785
|
+
V($(e.item.tooltip), 1)
|
|
786
786
|
], !0)
|
|
787
|
-
], 8,
|
|
787
|
+
], 8, Lr)
|
|
788
788
|
]),
|
|
789
789
|
key: "0"
|
|
790
790
|
} : void 0
|
|
791
791
|
]), 1024)
|
|
792
792
|
], !0)
|
|
793
|
-
], 8,
|
|
793
|
+
], 8, $r),
|
|
794
794
|
L("div", {
|
|
795
795
|
class: "config-card-details-value",
|
|
796
796
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -798,92 +798,92 @@ const W = {
|
|
|
798
798
|
z(y.$slots, e.item.key, {
|
|
799
799
|
rowValue: e.item.value
|
|
800
800
|
}, () => [
|
|
801
|
-
l.value ? (
|
|
802
|
-
(
|
|
801
|
+
l.value ? (m(), S("div", Rr, [
|
|
802
|
+
(m(), M(ce(u.value.tag), On($n(u.value.attrs)), {
|
|
803
803
|
default: b(() => [
|
|
804
|
-
|
|
804
|
+
u.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
805
805
|
key: 0,
|
|
806
806
|
"data-testid": `${e.item.key}-badge-tags`
|
|
807
807
|
}, [
|
|
808
|
-
(
|
|
809
|
-
key: `${e.item.key}-badge-tag-${
|
|
808
|
+
(m(!0), S(se, null, oe(e.item.value, (h, I) => (m(), M(N, {
|
|
809
|
+
key: `${e.item.key}-badge-tag-${I}`,
|
|
810
810
|
class: "config-badge",
|
|
811
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
811
|
+
"data-testid": `${e.item.key}-badge-tag-${I}`,
|
|
812
812
|
tooltip: h,
|
|
813
813
|
"truncation-tooltip": ""
|
|
814
814
|
}, {
|
|
815
815
|
default: b(() => [
|
|
816
|
-
|
|
816
|
+
V($(h), 1)
|
|
817
817
|
]),
|
|
818
818
|
_: 2
|
|
819
819
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
820
|
-
], 8, Mr)) :
|
|
821
|
-
|
|
820
|
+
], 8, Mr)) : D("", !0),
|
|
821
|
+
u.value.additionalComponent === "KCopy" ? (m(), S("div", {
|
|
822
822
|
key: 1,
|
|
823
823
|
class: "copy-uuid-array",
|
|
824
824
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
825
825
|
}, [
|
|
826
|
-
(
|
|
827
|
-
key: `${e.item.key}-copy-uuid-${
|
|
828
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
826
|
+
(m(!0), S(se, null, oe(e.item.value, (h, I) => (m(), M(w, Ln({ ref_for: !0 }, u.value.childAttrs, {
|
|
827
|
+
key: `${e.item.key}-copy-uuid-${I}`,
|
|
828
|
+
"data-testid": `${e.item.key}-copy-uuid-${I}`,
|
|
829
829
|
text: h
|
|
830
830
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
831
|
-
], 8,
|
|
831
|
+
], 8, Kr)) : u.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
|
|
832
832
|
key: 2,
|
|
833
833
|
class: "method-badge-array",
|
|
834
834
|
"data-testid": `${e.item.key}-badge-methods`
|
|
835
835
|
}, [
|
|
836
|
-
(
|
|
837
|
-
key: `${e.item.key}-badge-method-${
|
|
838
|
-
appearance: Object.values(
|
|
836
|
+
(m(!0), S(se, null, oe(e.item.value, (h, I) => (m(), M(N, {
|
|
837
|
+
key: `${e.item.key}-badge-method-${I}`,
|
|
838
|
+
appearance: Object.values(T(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
839
839
|
class: "config-badge",
|
|
840
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
840
|
+
"data-testid": `${e.item.key}-badge-method-${I}`
|
|
841
841
|
}, {
|
|
842
842
|
default: b(() => [
|
|
843
|
-
|
|
843
|
+
V($(h), 1)
|
|
844
844
|
]),
|
|
845
845
|
_: 2
|
|
846
846
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
847
|
-
], 8,
|
|
848
|
-
|
|
847
|
+
], 8, Dr)) : D("", !0),
|
|
848
|
+
u.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
|
|
849
849
|
key: 3,
|
|
850
850
|
"data-testid": `${n.item.key}-json-array-content`
|
|
851
851
|
}, [
|
|
852
|
-
(
|
|
853
|
-
key: `json-array-item-${
|
|
854
|
-
index:
|
|
852
|
+
(m(!0), S(se, null, oe(e.item.value, (h, I) => (m(), M(Kt, {
|
|
853
|
+
key: `json-array-item-${I}`,
|
|
854
|
+
index: I,
|
|
855
855
|
"is-array-item": "",
|
|
856
856
|
item: h
|
|
857
857
|
}, null, 8, ["index", "item"]))), 128))
|
|
858
|
-
], 8,
|
|
858
|
+
], 8, Ur)) : (m(), M(Z, {
|
|
859
859
|
key: 4,
|
|
860
|
-
text:
|
|
860
|
+
text: T(p) ? e.item.value : ""
|
|
861
861
|
}, {
|
|
862
862
|
default: b(() => [
|
|
863
863
|
L("span", {
|
|
864
864
|
ref_key: "textContent",
|
|
865
|
-
ref:
|
|
866
|
-
class:
|
|
867
|
-
}, $(
|
|
865
|
+
ref: g,
|
|
866
|
+
class: fe(["attrs-data-text", { truncated: e.truncated }])
|
|
867
|
+
}, $(u.value.text), 3)
|
|
868
868
|
]),
|
|
869
869
|
_: 1
|
|
870
870
|
}, 8, ["text"]))
|
|
871
871
|
]),
|
|
872
872
|
_: 1
|
|
873
873
|
}, 16))
|
|
874
|
-
])) : (
|
|
874
|
+
])) : (m(), S("div", {
|
|
875
875
|
key: 0,
|
|
876
876
|
"data-testid": `${e.item.key}-no-value`
|
|
877
877
|
}, " – ", 8, Br))
|
|
878
878
|
], !0)
|
|
879
|
-
], 8,
|
|
879
|
+
], 8, Nr)
|
|
880
880
|
]);
|
|
881
881
|
};
|
|
882
882
|
}
|
|
883
|
-
}), Dt = /* @__PURE__ */
|
|
883
|
+
}), Dt = /* @__PURE__ */ ae(qr, [["__scopeId", "data-v-d056663c"]]), Pr = { class: "json-config" }, Hr = {
|
|
884
884
|
key: 0,
|
|
885
885
|
class: "json-endpoint"
|
|
886
|
-
}, Ut = /* @__PURE__ */
|
|
886
|
+
}, Ut = /* @__PURE__ */ P({
|
|
887
887
|
__name: "JsonCodeBlock",
|
|
888
888
|
props: {
|
|
889
889
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -914,7 +914,7 @@ const W = {
|
|
|
914
914
|
$t((i) => ({
|
|
915
915
|
"4520e3ec": `${r.value}ch`
|
|
916
916
|
}));
|
|
917
|
-
const t = e, n =
|
|
917
|
+
const t = e, n = k(() => t.jsonRecord), r = k(() => {
|
|
918
918
|
var o;
|
|
919
919
|
if (!t.fetcherUrl)
|
|
920
920
|
return 0;
|
|
@@ -923,32 +923,32 @@ const W = {
|
|
|
923
923
|
});
|
|
924
924
|
return (i, a) => {
|
|
925
925
|
const o = K("KBadge"), l = K("KCodeBlock");
|
|
926
|
-
return
|
|
927
|
-
t.fetcherUrl ? (
|
|
928
|
-
|
|
926
|
+
return m(), S("div", Pr, [
|
|
927
|
+
t.fetcherUrl ? (m(), S("div", Hr, [
|
|
928
|
+
B(o, {
|
|
929
929
|
appearance: t.requestMethod
|
|
930
930
|
}, {
|
|
931
931
|
default: b(() => [
|
|
932
|
-
|
|
932
|
+
V($(t.requestMethod), 1)
|
|
933
933
|
]),
|
|
934
934
|
_: 1
|
|
935
935
|
}, 8, ["appearance"]),
|
|
936
|
-
|
|
936
|
+
B(l, {
|
|
937
937
|
id: "json-endpoint-codeblock",
|
|
938
938
|
code: t.fetcherUrl,
|
|
939
939
|
language: "json",
|
|
940
940
|
"single-line": "",
|
|
941
941
|
theme: "dark"
|
|
942
942
|
}, null, 8, ["code"])
|
|
943
|
-
])) :
|
|
944
|
-
t.jsonRecord ? (
|
|
943
|
+
])) : D("", !0),
|
|
944
|
+
t.jsonRecord ? (m(), M(l, {
|
|
945
945
|
key: 1,
|
|
946
946
|
id: "json-codeblock",
|
|
947
|
-
class:
|
|
947
|
+
class: fe({ "json-content": t.fetcherUrl }),
|
|
948
948
|
code: JSON.stringify(n.value, null, 2),
|
|
949
949
|
language: "json",
|
|
950
950
|
theme: "dark"
|
|
951
|
-
}, null, 8, ["class", "code"])) :
|
|
951
|
+
}, null, 8, ["class", "code"])) : D("", !0)
|
|
952
952
|
]);
|
|
953
953
|
};
|
|
954
954
|
}
|
|
@@ -957,35 +957,35 @@ const W = {
|
|
|
957
957
|
function jt(e) {
|
|
958
958
|
return typeof e > "u" || e === null;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function Vr(e) {
|
|
961
961
|
return typeof e == "object" && e !== null;
|
|
962
962
|
}
|
|
963
963
|
function zr(e) {
|
|
964
964
|
return Array.isArray(e) ? e : jt(e) ? [] : [e];
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function Yr(e, t) {
|
|
967
967
|
var n, r, i, a;
|
|
968
968
|
if (t)
|
|
969
969
|
for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1)
|
|
970
970
|
i = a[n], e[i] = t[i];
|
|
971
971
|
return e;
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function Wr(e, t) {
|
|
974
974
|
var n = "", r;
|
|
975
975
|
for (r = 0; r < t; r += 1)
|
|
976
976
|
n += e;
|
|
977
977
|
return n;
|
|
978
978
|
}
|
|
979
|
-
function
|
|
979
|
+
function Jr(e) {
|
|
980
980
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
981
981
|
}
|
|
982
|
-
var
|
|
983
|
-
isNothing:
|
|
984
|
-
isObject:
|
|
985
|
-
toArray:
|
|
986
|
-
repeat:
|
|
987
|
-
isNegativeZero:
|
|
988
|
-
extend:
|
|
982
|
+
var Gr = jt, Zr = Vr, Qr = zr, Xr = Wr, ei = Jr, ti = Yr, G = {
|
|
983
|
+
isNothing: Gr,
|
|
984
|
+
isObject: Zr,
|
|
985
|
+
toArray: Qr,
|
|
986
|
+
repeat: Xr,
|
|
987
|
+
isNegativeZero: ei,
|
|
988
|
+
extend: ti
|
|
989
989
|
};
|
|
990
990
|
function qt(e, t) {
|
|
991
991
|
var n = "", r = e.reason || "(unknown reason)";
|
|
@@ -993,16 +993,16 @@ function qt(e, t) {
|
|
|
993
993
|
|
|
994
994
|
` + e.mark.snippet), r + " " + n) : r;
|
|
995
995
|
}
|
|
996
|
-
function
|
|
996
|
+
function Oe(e, t) {
|
|
997
997
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = qt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
998
998
|
}
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
999
|
+
Oe.prototype = Object.create(Error.prototype);
|
|
1000
|
+
Oe.prototype.constructor = Oe;
|
|
1001
|
+
Oe.prototype.toString = function(t) {
|
|
1002
1002
|
return this.name + ": " + qt(this, t);
|
|
1003
1003
|
};
|
|
1004
|
-
var te =
|
|
1005
|
-
function
|
|
1004
|
+
var te = Oe;
|
|
1005
|
+
function He(e, t, n, r, i) {
|
|
1006
1006
|
var a = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1007
1007
|
return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
|
|
1008
1008
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
@@ -1010,40 +1010,40 @@ function Ve(e, t, n, r, i) {
|
|
|
1010
1010
|
// relative position
|
|
1011
1011
|
};
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function Ve(e, t) {
|
|
1014
1014
|
return G.repeat(" ", t - e.length) + e;
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1016
|
+
function ni(e, t) {
|
|
1017
1017
|
if (t = Object.create(t || null), !e.buffer)
|
|
1018
1018
|
return null;
|
|
1019
1019
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
1020
1020
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], a, o = -1; a = n.exec(e.buffer); )
|
|
1021
1021
|
i.push(a.index), r.push(a.index + a[0].length), e.position <= a.index && o < 0 && (o = r.length - 2);
|
|
1022
1022
|
o < 0 && (o = r.length - 1);
|
|
1023
|
-
var l = "", s,
|
|
1023
|
+
var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1024
1024
|
for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
|
|
1025
|
-
|
|
1025
|
+
c = He(
|
|
1026
1026
|
e.buffer,
|
|
1027
1027
|
r[o - s],
|
|
1028
1028
|
i[o - s],
|
|
1029
1029
|
e.position - (r[o] - r[o - s]),
|
|
1030
|
-
|
|
1031
|
-
), l = G.repeat(" ", t.indent) +
|
|
1030
|
+
u
|
|
1031
|
+
), l = G.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1032
1032
|
` + l;
|
|
1033
|
-
for (
|
|
1034
|
-
`, l += G.repeat("-", t.indent + d + 3 +
|
|
1033
|
+
for (c = He(e.buffer, r[o], i[o], e.position, u), l += G.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1034
|
+
`, l += G.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1035
1035
|
`, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
|
|
1036
|
-
|
|
1036
|
+
c = He(
|
|
1037
1037
|
e.buffer,
|
|
1038
1038
|
r[o + s],
|
|
1039
1039
|
i[o + s],
|
|
1040
1040
|
e.position - (r[o] - r[o + s]),
|
|
1041
|
-
|
|
1042
|
-
), l += G.repeat(" ", t.indent) +
|
|
1041
|
+
u
|
|
1042
|
+
), l += G.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1043
1043
|
`;
|
|
1044
1044
|
return l.replace(/\n$/, "");
|
|
1045
1045
|
}
|
|
1046
|
-
var
|
|
1046
|
+
var ri = ni, ii = [
|
|
1047
1047
|
"kind",
|
|
1048
1048
|
"multi",
|
|
1049
1049
|
"resolve",
|
|
@@ -1054,12 +1054,12 @@ var ii = ri, ai = [
|
|
|
1054
1054
|
"representName",
|
|
1055
1055
|
"defaultStyle",
|
|
1056
1056
|
"styleAliases"
|
|
1057
|
-
],
|
|
1057
|
+
], ai = [
|
|
1058
1058
|
"scalar",
|
|
1059
1059
|
"sequence",
|
|
1060
1060
|
"mapping"
|
|
1061
1061
|
];
|
|
1062
|
-
function
|
|
1062
|
+
function oi(e) {
|
|
1063
1063
|
var t = {};
|
|
1064
1064
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1065
1065
|
e[n].forEach(function(r) {
|
|
@@ -1067,18 +1067,18 @@ function li(e) {
|
|
|
1067
1067
|
});
|
|
1068
1068
|
}), t;
|
|
1069
1069
|
}
|
|
1070
|
-
function
|
|
1070
|
+
function li(e, t) {
|
|
1071
1071
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1072
|
-
if (
|
|
1072
|
+
if (ii.indexOf(n) === -1)
|
|
1073
1073
|
throw new te('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1074
1074
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1075
1075
|
return !0;
|
|
1076
1076
|
}, this.construct = t.construct || function(n) {
|
|
1077
1077
|
return n;
|
|
1078
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1078
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = oi(t.styleAliases || null), ai.indexOf(this.kind) === -1)
|
|
1079
1079
|
throw new te('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1080
1080
|
}
|
|
1081
|
-
var X =
|
|
1081
|
+
var X = li;
|
|
1082
1082
|
function mt(e, t) {
|
|
1083
1083
|
var n = [];
|
|
1084
1084
|
return e[t].forEach(function(r) {
|
|
@@ -1088,7 +1088,7 @@ function mt(e, t) {
|
|
|
1088
1088
|
}), n[i] = r;
|
|
1089
1089
|
}), n;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function si() {
|
|
1092
1092
|
var e = {
|
|
1093
1093
|
scalar: {},
|
|
1094
1094
|
sequence: {},
|
|
@@ -1108,10 +1108,10 @@ function ci() {
|
|
|
1108
1108
|
arguments[t].forEach(r);
|
|
1109
1109
|
return e;
|
|
1110
1110
|
}
|
|
1111
|
-
function
|
|
1111
|
+
function We(e) {
|
|
1112
1112
|
return this.extend(e);
|
|
1113
1113
|
}
|
|
1114
|
-
|
|
1114
|
+
We.prototype.extend = function(t) {
|
|
1115
1115
|
var n = [], r = [];
|
|
1116
1116
|
if (t instanceof X)
|
|
1117
1117
|
r.push(t);
|
|
@@ -1132,10 +1132,10 @@ Je.prototype.extend = function(t) {
|
|
|
1132
1132
|
if (!(a instanceof X))
|
|
1133
1133
|
throw new te("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1134
1134
|
});
|
|
1135
|
-
var i = Object.create(
|
|
1136
|
-
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mt(i, "implicit"), i.compiledExplicit = mt(i, "explicit"), i.compiledTypeMap =
|
|
1135
|
+
var i = Object.create(We.prototype);
|
|
1136
|
+
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = mt(i, "implicit"), i.compiledExplicit = mt(i, "explicit"), i.compiledTypeMap = si(i.compiledImplicit, i.compiledExplicit), i;
|
|
1137
1137
|
};
|
|
1138
|
-
var Pt =
|
|
1138
|
+
var Pt = We, Ht = new X("tag:yaml.org,2002:str", {
|
|
1139
1139
|
kind: "scalar",
|
|
1140
1140
|
construct: function(e) {
|
|
1141
1141
|
return e !== null ? e : "";
|
|
@@ -1145,16 +1145,16 @@ var Pt = Je, Ht = new X("tag:yaml.org,2002:str", {
|
|
|
1145
1145
|
construct: function(e) {
|
|
1146
1146
|
return e !== null ? e : [];
|
|
1147
1147
|
}
|
|
1148
|
-
}),
|
|
1148
|
+
}), zt = new X("tag:yaml.org,2002:map", {
|
|
1149
1149
|
kind: "mapping",
|
|
1150
1150
|
construct: function(e) {
|
|
1151
1151
|
return e !== null ? e : {};
|
|
1152
1152
|
}
|
|
1153
|
-
}),
|
|
1153
|
+
}), Yt = new Pt({
|
|
1154
1154
|
explicit: [
|
|
1155
1155
|
Ht,
|
|
1156
1156
|
Vt,
|
|
1157
|
-
|
|
1157
|
+
zt
|
|
1158
1158
|
]
|
|
1159
1159
|
});
|
|
1160
1160
|
function ui(e) {
|
|
@@ -1163,17 +1163,17 @@ function ui(e) {
|
|
|
1163
1163
|
var t = e.length;
|
|
1164
1164
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1165
1165
|
}
|
|
1166
|
-
function
|
|
1166
|
+
function ci() {
|
|
1167
1167
|
return null;
|
|
1168
1168
|
}
|
|
1169
|
-
function
|
|
1169
|
+
function di(e) {
|
|
1170
1170
|
return e === null;
|
|
1171
1171
|
}
|
|
1172
1172
|
var Wt = new X("tag:yaml.org,2002:null", {
|
|
1173
1173
|
kind: "scalar",
|
|
1174
1174
|
resolve: ui,
|
|
1175
|
-
construct:
|
|
1176
|
-
predicate:
|
|
1175
|
+
construct: ci,
|
|
1176
|
+
predicate: di,
|
|
1177
1177
|
represent: {
|
|
1178
1178
|
canonical: function() {
|
|
1179
1179
|
return "~";
|
|
@@ -1193,23 +1193,23 @@ var Wt = new X("tag:yaml.org,2002:null", {
|
|
|
1193
1193
|
},
|
|
1194
1194
|
defaultStyle: "lowercase"
|
|
1195
1195
|
});
|
|
1196
|
-
function
|
|
1196
|
+
function fi(e) {
|
|
1197
1197
|
if (e === null)
|
|
1198
1198
|
return !1;
|
|
1199
1199
|
var t = e.length;
|
|
1200
1200
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1201
1201
|
}
|
|
1202
|
-
function
|
|
1202
|
+
function pi(e) {
|
|
1203
1203
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1204
1204
|
}
|
|
1205
|
-
function
|
|
1205
|
+
function hi(e) {
|
|
1206
1206
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1207
1207
|
}
|
|
1208
1208
|
var Jt = new X("tag:yaml.org,2002:bool", {
|
|
1209
1209
|
kind: "scalar",
|
|
1210
|
-
resolve:
|
|
1211
|
-
construct:
|
|
1212
|
-
predicate:
|
|
1210
|
+
resolve: fi,
|
|
1211
|
+
construct: pi,
|
|
1212
|
+
predicate: hi,
|
|
1213
1213
|
represent: {
|
|
1214
1214
|
lowercase: function(e) {
|
|
1215
1215
|
return e ? "true" : "false";
|
|
@@ -1223,16 +1223,16 @@ var Jt = new X("tag:yaml.org,2002:bool", {
|
|
|
1223
1223
|
},
|
|
1224
1224
|
defaultStyle: "lowercase"
|
|
1225
1225
|
});
|
|
1226
|
-
function
|
|
1226
|
+
function mi(e) {
|
|
1227
1227
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1228
1228
|
}
|
|
1229
|
-
function
|
|
1229
|
+
function gi(e) {
|
|
1230
1230
|
return 48 <= e && e <= 55;
|
|
1231
1231
|
}
|
|
1232
|
-
function
|
|
1232
|
+
function yi(e) {
|
|
1233
1233
|
return 48 <= e && e <= 57;
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function vi(e) {
|
|
1236
1236
|
if (e === null)
|
|
1237
1237
|
return !1;
|
|
1238
1238
|
var t = e.length, n = 0, r = !1, i;
|
|
@@ -1253,7 +1253,7 @@ function bi(e) {
|
|
|
1253
1253
|
if (i === "x") {
|
|
1254
1254
|
for (n++; n < t; n++)
|
|
1255
1255
|
if (i = e[n], i !== "_") {
|
|
1256
|
-
if (!
|
|
1256
|
+
if (!mi(e.charCodeAt(n)))
|
|
1257
1257
|
return !1;
|
|
1258
1258
|
r = !0;
|
|
1259
1259
|
}
|
|
@@ -1262,7 +1262,7 @@ function bi(e) {
|
|
|
1262
1262
|
if (i === "o") {
|
|
1263
1263
|
for (n++; n < t; n++)
|
|
1264
1264
|
if (i = e[n], i !== "_") {
|
|
1265
|
-
if (!
|
|
1265
|
+
if (!gi(e.charCodeAt(n)))
|
|
1266
1266
|
return !1;
|
|
1267
1267
|
r = !0;
|
|
1268
1268
|
}
|
|
@@ -1273,13 +1273,13 @@ function bi(e) {
|
|
|
1273
1273
|
return !1;
|
|
1274
1274
|
for (; n < t; n++)
|
|
1275
1275
|
if (i = e[n], i !== "_") {
|
|
1276
|
-
if (!
|
|
1276
|
+
if (!yi(e.charCodeAt(n)))
|
|
1277
1277
|
return !1;
|
|
1278
1278
|
r = !0;
|
|
1279
1279
|
}
|
|
1280
1280
|
return !(!r || i === "_");
|
|
1281
1281
|
}
|
|
1282
|
-
function
|
|
1282
|
+
function bi(e) {
|
|
1283
1283
|
var t = e, n = 1, r;
|
|
1284
1284
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0")
|
|
1285
1285
|
return 0;
|
|
@@ -1293,14 +1293,14 @@ function xi(e) {
|
|
|
1293
1293
|
}
|
|
1294
1294
|
return n * parseInt(t, 10);
|
|
1295
1295
|
}
|
|
1296
|
-
function
|
|
1296
|
+
function xi(e) {
|
|
1297
1297
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !G.isNegativeZero(e);
|
|
1298
1298
|
}
|
|
1299
1299
|
var Gt = new X("tag:yaml.org,2002:int", {
|
|
1300
1300
|
kind: "scalar",
|
|
1301
|
-
resolve:
|
|
1302
|
-
construct:
|
|
1303
|
-
predicate:
|
|
1301
|
+
resolve: vi,
|
|
1302
|
+
construct: bi,
|
|
1303
|
+
predicate: xi,
|
|
1304
1304
|
represent: {
|
|
1305
1305
|
binary: function(e) {
|
|
1306
1306
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1323,21 +1323,21 @@ var Gt = new X("tag:yaml.org,2002:int", {
|
|
|
1323
1323
|
decimal: [10, "dec"],
|
|
1324
1324
|
hexadecimal: [16, "hex"]
|
|
1325
1325
|
}
|
|
1326
|
-
}),
|
|
1326
|
+
}), Ci = new RegExp(
|
|
1327
1327
|
// 2.5e4, 2.5 and integers
|
|
1328
1328
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1329
1329
|
);
|
|
1330
1330
|
function ki(e) {
|
|
1331
|
-
return !(e === null || !
|
|
1331
|
+
return !(e === null || !Ci.test(e) || // Quick hack to not allow integers end with `_`
|
|
1332
1332
|
// Probably should update regexp & check speed
|
|
1333
1333
|
e[e.length - 1] === "_");
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1335
|
+
function _i(e) {
|
|
1336
1336
|
var t, n;
|
|
1337
1337
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1338
1338
|
}
|
|
1339
|
-
var
|
|
1340
|
-
function
|
|
1339
|
+
var wi = /^[-+]?[0-9]+e/;
|
|
1340
|
+
function Ai(e, t) {
|
|
1341
1341
|
var n;
|
|
1342
1342
|
if (isNaN(e))
|
|
1343
1343
|
switch (t) {
|
|
@@ -1368,19 +1368,19 @@ function Si(e, t) {
|
|
|
1368
1368
|
}
|
|
1369
1369
|
else if (G.isNegativeZero(e))
|
|
1370
1370
|
return "-0.0";
|
|
1371
|
-
return n = e.toString(10),
|
|
1371
|
+
return n = e.toString(10), wi.test(n) ? n.replace("e", ".e") : n;
|
|
1372
1372
|
}
|
|
1373
|
-
function
|
|
1373
|
+
function Si(e) {
|
|
1374
1374
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || G.isNegativeZero(e));
|
|
1375
1375
|
}
|
|
1376
1376
|
var Zt = new X("tag:yaml.org,2002:float", {
|
|
1377
1377
|
kind: "scalar",
|
|
1378
1378
|
resolve: ki,
|
|
1379
|
-
construct:
|
|
1380
|
-
predicate:
|
|
1381
|
-
represent:
|
|
1379
|
+
construct: _i,
|
|
1380
|
+
predicate: Si,
|
|
1381
|
+
represent: Ai,
|
|
1382
1382
|
defaultStyle: "lowercase"
|
|
1383
|
-
}), Qt =
|
|
1383
|
+
}), Qt = Yt.extend({
|
|
1384
1384
|
implicit: [
|
|
1385
1385
|
Wt,
|
|
1386
1386
|
Jt,
|
|
@@ -1392,11 +1392,11 @@ var Zt = new X("tag:yaml.org,2002:float", {
|
|
|
1392
1392
|
), tn = new RegExp(
|
|
1393
1393
|
"^([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]))?))?$"
|
|
1394
1394
|
);
|
|
1395
|
-
function
|
|
1395
|
+
function Ii(e) {
|
|
1396
1396
|
return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
|
|
1397
1397
|
}
|
|
1398
|
-
function
|
|
1399
|
-
var t, n, r, i, a, o, l, s = 0,
|
|
1398
|
+
function Ei(e) {
|
|
1399
|
+
var t, n, r, i, a, o, l, s = 0, c = null, d, u, g;
|
|
1400
1400
|
if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null)
|
|
1401
1401
|
throw new Error("Date resolve error");
|
|
1402
1402
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
@@ -1406,30 +1406,30 @@ function Ti(e) {
|
|
|
1406
1406
|
s += "0";
|
|
1407
1407
|
s = +s;
|
|
1408
1408
|
}
|
|
1409
|
-
return t[9] && (d = +t[10],
|
|
1409
|
+
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), g = new Date(Date.UTC(n, r, i, a, o, l, s)), c && g.setTime(g.getTime() - c), g;
|
|
1410
1410
|
}
|
|
1411
|
-
function
|
|
1411
|
+
function Ti(e) {
|
|
1412
1412
|
return e.toISOString();
|
|
1413
1413
|
}
|
|
1414
1414
|
var nn = new X("tag:yaml.org,2002:timestamp", {
|
|
1415
1415
|
kind: "scalar",
|
|
1416
|
-
resolve:
|
|
1417
|
-
construct:
|
|
1416
|
+
resolve: Ii,
|
|
1417
|
+
construct: Ei,
|
|
1418
1418
|
instanceOf: Date,
|
|
1419
|
-
represent:
|
|
1419
|
+
represent: Ti
|
|
1420
1420
|
});
|
|
1421
|
-
function
|
|
1421
|
+
function Fi(e) {
|
|
1422
1422
|
return e === "<<" || e === null;
|
|
1423
1423
|
}
|
|
1424
1424
|
var rn = new X("tag:yaml.org,2002:merge", {
|
|
1425
1425
|
kind: "scalar",
|
|
1426
|
-
resolve:
|
|
1427
|
-
}),
|
|
1426
|
+
resolve: Fi
|
|
1427
|
+
}), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1428
1428
|
\r`;
|
|
1429
|
-
function
|
|
1429
|
+
function Oi(e) {
|
|
1430
1430
|
if (e === null)
|
|
1431
1431
|
return !1;
|
|
1432
|
-
var t, n, r = 0, i = e.length, a =
|
|
1432
|
+
var t, n, r = 0, i = e.length, a = tt;
|
|
1433
1433
|
for (n = 0; n < i; n++)
|
|
1434
1434
|
if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1435
1435
|
if (t < 0)
|
|
@@ -1438,34 +1438,34 @@ function $i(e) {
|
|
|
1438
1438
|
}
|
|
1439
1439
|
return r % 8 === 0;
|
|
1440
1440
|
}
|
|
1441
|
-
function
|
|
1442
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
1441
|
+
function $i(e) {
|
|
1442
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = tt, o = 0, l = [];
|
|
1443
1443
|
for (t = 0; t < i; t++)
|
|
1444
1444
|
t % 4 === 0 && t && (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)), o = o << 6 | a.indexOf(r.charAt(t));
|
|
1445
1445
|
return n = i % 4 * 6, n === 0 ? (l.push(o >> 16 & 255), l.push(o >> 8 & 255), l.push(o & 255)) : n === 18 ? (l.push(o >> 10 & 255), l.push(o >> 2 & 255)) : n === 12 && l.push(o >> 4 & 255), new Uint8Array(l);
|
|
1446
1446
|
}
|
|
1447
|
-
function
|
|
1448
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
1447
|
+
function Li(e) {
|
|
1448
|
+
var t = "", n = 0, r, i, a = e.length, o = tt;
|
|
1449
1449
|
for (r = 0; r < a; r++)
|
|
1450
1450
|
r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1451
1451
|
return i = a % 3, i === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : i === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : i === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
1452
1452
|
}
|
|
1453
|
-
function
|
|
1453
|
+
function Ni(e) {
|
|
1454
1454
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1455
1455
|
}
|
|
1456
1456
|
var an = new X("tag:yaml.org,2002:binary", {
|
|
1457
1457
|
kind: "scalar",
|
|
1458
|
-
resolve:
|
|
1459
|
-
construct:
|
|
1460
|
-
predicate:
|
|
1461
|
-
represent:
|
|
1462
|
-
}), Bi = Object.prototype.hasOwnProperty,
|
|
1458
|
+
resolve: Oi,
|
|
1459
|
+
construct: $i,
|
|
1460
|
+
predicate: Ni,
|
|
1461
|
+
represent: Li
|
|
1462
|
+
}), Bi = Object.prototype.hasOwnProperty, Ri = Object.prototype.toString;
|
|
1463
1463
|
function Mi(e) {
|
|
1464
1464
|
if (e === null)
|
|
1465
1465
|
return !0;
|
|
1466
1466
|
var t = [], n, r, i, a, o, l = e;
|
|
1467
1467
|
for (n = 0, r = l.length; n < r; n += 1) {
|
|
1468
|
-
if (i = l[n], o = !1,
|
|
1468
|
+
if (i = l[n], o = !1, Ri.call(i) !== "[object Object]")
|
|
1469
1469
|
return !1;
|
|
1470
1470
|
for (a in i)
|
|
1471
1471
|
if (Bi.call(i, a))
|
|
@@ -1482,26 +1482,26 @@ function Mi(e) {
|
|
|
1482
1482
|
}
|
|
1483
1483
|
return !0;
|
|
1484
1484
|
}
|
|
1485
|
-
function
|
|
1485
|
+
function Ki(e) {
|
|
1486
1486
|
return e !== null ? e : [];
|
|
1487
1487
|
}
|
|
1488
1488
|
var on = new X("tag:yaml.org,2002:omap", {
|
|
1489
1489
|
kind: "sequence",
|
|
1490
1490
|
resolve: Mi,
|
|
1491
|
-
construct:
|
|
1492
|
-
}),
|
|
1493
|
-
function
|
|
1491
|
+
construct: Ki
|
|
1492
|
+
}), Di = Object.prototype.toString;
|
|
1493
|
+
function Ui(e) {
|
|
1494
1494
|
if (e === null)
|
|
1495
1495
|
return !0;
|
|
1496
1496
|
var t, n, r, i, a, o = e;
|
|
1497
1497
|
for (a = new Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1498
|
-
if (r = o[t],
|
|
1498
|
+
if (r = o[t], Di.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1))
|
|
1499
1499
|
return !1;
|
|
1500
1500
|
a[t] = [i[0], r[i[0]]];
|
|
1501
1501
|
}
|
|
1502
1502
|
return !0;
|
|
1503
1503
|
}
|
|
1504
|
-
function
|
|
1504
|
+
function ji(e) {
|
|
1505
1505
|
if (e === null)
|
|
1506
1506
|
return [];
|
|
1507
1507
|
var t, n, r, i, a, o = e;
|
|
@@ -1511,26 +1511,26 @@ function qi(e) {
|
|
|
1511
1511
|
}
|
|
1512
1512
|
var ln = new X("tag:yaml.org,2002:pairs", {
|
|
1513
1513
|
kind: "sequence",
|
|
1514
|
-
resolve:
|
|
1515
|
-
construct:
|
|
1516
|
-
}),
|
|
1517
|
-
function
|
|
1514
|
+
resolve: Ui,
|
|
1515
|
+
construct: ji
|
|
1516
|
+
}), qi = Object.prototype.hasOwnProperty;
|
|
1517
|
+
function Pi(e) {
|
|
1518
1518
|
if (e === null)
|
|
1519
1519
|
return !0;
|
|
1520
1520
|
var t, n = e;
|
|
1521
1521
|
for (t in n)
|
|
1522
|
-
if (
|
|
1522
|
+
if (qi.call(n, t) && n[t] !== null)
|
|
1523
1523
|
return !1;
|
|
1524
1524
|
return !0;
|
|
1525
1525
|
}
|
|
1526
|
-
function
|
|
1526
|
+
function Hi(e) {
|
|
1527
1527
|
return e !== null ? e : {};
|
|
1528
1528
|
}
|
|
1529
1529
|
var sn = new X("tag:yaml.org,2002:set", {
|
|
1530
1530
|
kind: "mapping",
|
|
1531
|
-
resolve:
|
|
1532
|
-
construct:
|
|
1533
|
-
}),
|
|
1531
|
+
resolve: Pi,
|
|
1532
|
+
construct: Hi
|
|
1533
|
+
}), nt = Xt.extend({
|
|
1534
1534
|
implicit: [
|
|
1535
1535
|
nn,
|
|
1536
1536
|
rn
|
|
@@ -1541,14 +1541,14 @@ var sn = new X("tag:yaml.org,2002:set", {
|
|
|
1541
1541
|
ln,
|
|
1542
1542
|
sn
|
|
1543
1543
|
]
|
|
1544
|
-
}),
|
|
1544
|
+
}), pe = Object.prototype.hasOwnProperty, Re = 1, un = 2, cn = 3, Me = 4, ze = 1, Vi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Yi = /[\x85\u2028\u2029]/, Wi = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1545
1545
|
function yt(e) {
|
|
1546
1546
|
return Object.prototype.toString.call(e);
|
|
1547
1547
|
}
|
|
1548
|
-
function
|
|
1548
|
+
function le(e) {
|
|
1549
1549
|
return e === 10 || e === 13;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1551
|
+
function ye(e) {
|
|
1552
1552
|
return e === 9 || e === 32;
|
|
1553
1553
|
}
|
|
1554
1554
|
function ne(e) {
|
|
@@ -1557,21 +1557,21 @@ function ne(e) {
|
|
|
1557
1557
|
function Ce(e) {
|
|
1558
1558
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1559
1559
|
}
|
|
1560
|
-
function
|
|
1560
|
+
function Ji(e) {
|
|
1561
1561
|
var t;
|
|
1562
1562
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1563
1563
|
}
|
|
1564
|
-
function
|
|
1564
|
+
function Gi(e) {
|
|
1565
1565
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1566
1566
|
}
|
|
1567
|
-
function
|
|
1567
|
+
function Zi(e) {
|
|
1568
1568
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1569
1569
|
}
|
|
1570
1570
|
function vt(e) {
|
|
1571
1571
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1572
1572
|
` : 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" : "";
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function Qi(e) {
|
|
1575
1575
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1576
1576
|
(e - 65536 >> 10) + 55296,
|
|
1577
1577
|
(e - 65536 & 1023) + 56320
|
|
@@ -1580,8 +1580,8 @@ function Xi(e) {
|
|
|
1580
1580
|
var pn = new Array(256), hn = new Array(256);
|
|
1581
1581
|
for (var ve = 0; ve < 256; ve++)
|
|
1582
1582
|
pn[ve] = vt(ve) ? 1 : 0, hn[ve] = vt(ve);
|
|
1583
|
-
function
|
|
1584
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1583
|
+
function Xi(e, t) {
|
|
1584
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || nt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1585
1585
|
}
|
|
1586
1586
|
function mn(e, t) {
|
|
1587
1587
|
var n = {
|
|
@@ -1592,22 +1592,22 @@ function mn(e, t) {
|
|
|
1592
1592
|
line: e.line,
|
|
1593
1593
|
column: e.position - e.lineStart
|
|
1594
1594
|
};
|
|
1595
|
-
return n.snippet =
|
|
1595
|
+
return n.snippet = ri(n), new te(t, n);
|
|
1596
1596
|
}
|
|
1597
1597
|
function C(e, t) {
|
|
1598
1598
|
throw mn(e, t);
|
|
1599
1599
|
}
|
|
1600
|
-
function
|
|
1600
|
+
function Ke(e, t) {
|
|
1601
1601
|
e.onWarning && e.onWarning.call(null, mn(e, t));
|
|
1602
1602
|
}
|
|
1603
1603
|
var bt = {
|
|
1604
1604
|
YAML: function(t, n, r) {
|
|
1605
1605
|
var i, a, o;
|
|
1606
|
-
t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 &&
|
|
1606
|
+
t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Ke(t, "unsupported YAML version of the document");
|
|
1607
1607
|
},
|
|
1608
1608
|
TAG: function(t, n, r) {
|
|
1609
1609
|
var i, a;
|
|
1610
|
-
r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1], dn.test(i) || C(t, "ill-formed tag handle (first argument) of the TAG directive"),
|
|
1610
|
+
r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1], dn.test(i) || C(t, "ill-formed tag handle (first argument) of the TAG directive"), pe.call(t.tagMap, i) && C(t, 'there is a previously declared suffix for "' + i + '" tag handle'), fn.test(a) || C(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1611
1611
|
try {
|
|
1612
1612
|
a = decodeURIComponent(a);
|
|
1613
1613
|
} catch {
|
|
@@ -1616,7 +1616,7 @@ var bt = {
|
|
|
1616
1616
|
t.tagMap[i] = a;
|
|
1617
1617
|
}
|
|
1618
1618
|
};
|
|
1619
|
-
function
|
|
1619
|
+
function de(e, t, n, r) {
|
|
1620
1620
|
var i, a, o, l;
|
|
1621
1621
|
if (t < n) {
|
|
1622
1622
|
if (l = e.input.slice(t, n), r)
|
|
@@ -1630,21 +1630,21 @@ function ue(e, t, n, r) {
|
|
|
1630
1630
|
function xt(e, t, n, r) {
|
|
1631
1631
|
var i, a, o, l;
|
|
1632
1632
|
for (G.isObject(n) || C(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), o = 0, l = i.length; o < l; o += 1)
|
|
1633
|
-
a = i[o],
|
|
1633
|
+
a = i[o], pe.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
1634
1634
|
}
|
|
1635
|
-
function
|
|
1636
|
-
var
|
|
1635
|
+
function ke(e, t, n, r, i, a, o, l, s) {
|
|
1636
|
+
var c, d;
|
|
1637
1637
|
if (Array.isArray(i))
|
|
1638
|
-
for (i = Array.prototype.slice.call(i),
|
|
1639
|
-
Array.isArray(i[
|
|
1638
|
+
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1639
|
+
Array.isArray(i[c]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1640
1640
|
if (typeof i == "object" && yt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1641
1641
|
if (Array.isArray(a))
|
|
1642
|
-
for (
|
|
1643
|
-
xt(e, t, a[
|
|
1642
|
+
for (c = 0, d = a.length; c < d; c += 1)
|
|
1643
|
+
xt(e, t, a[c], n);
|
|
1644
1644
|
else
|
|
1645
1645
|
xt(e, t, a, n);
|
|
1646
1646
|
else
|
|
1647
|
-
!e.json && !
|
|
1647
|
+
!e.json && !pe.call(n, i) && pe.call(t, i) && (e.line = o || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, C(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
1648
1648
|
configurable: !0,
|
|
1649
1649
|
enumerable: !0,
|
|
1650
1650
|
writable: !0,
|
|
@@ -1652,36 +1652,36 @@ function _e(e, t, n, r, i, a, o, l, s) {
|
|
|
1652
1652
|
}) : t[i] = a, delete n[i];
|
|
1653
1653
|
return t;
|
|
1654
1654
|
}
|
|
1655
|
-
function
|
|
1655
|
+
function rt(e) {
|
|
1656
1656
|
var t;
|
|
1657
1657
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : C(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function W(e, t, n) {
|
|
1660
1660
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1661
|
-
for (;
|
|
1661
|
+
for (; ye(i); )
|
|
1662
1662
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1663
1663
|
if (t && i === 35)
|
|
1664
1664
|
do
|
|
1665
1665
|
i = e.input.charCodeAt(++e.position);
|
|
1666
1666
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1667
|
-
if (
|
|
1668
|
-
for (
|
|
1667
|
+
if (le(i))
|
|
1668
|
+
for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1669
1669
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1670
1670
|
else
|
|
1671
1671
|
break;
|
|
1672
1672
|
}
|
|
1673
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1673
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Ke(e, "deficient indentation"), r;
|
|
1674
1674
|
}
|
|
1675
|
-
function
|
|
1675
|
+
function qe(e) {
|
|
1676
1676
|
var t = e.position, n;
|
|
1677
1677
|
return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || ne(n)));
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function it(e, t) {
|
|
1680
1680
|
t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
|
|
1681
1681
|
`, t - 1));
|
|
1682
1682
|
}
|
|
1683
|
-
function
|
|
1684
|
-
var r, i, a, o, l, s,
|
|
1683
|
+
function ea(e, t, n) {
|
|
1684
|
+
var r, i, a, o, l, s, c, d, u = e.kind, g = e.result, p;
|
|
1685
1685
|
if (p = e.input.charCodeAt(e.position), ne(p) || Ce(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
|
|
1686
1686
|
return !1;
|
|
1687
1687
|
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; p !== 0; ) {
|
|
@@ -1692,102 +1692,102 @@ function ta(e, t, n) {
|
|
|
1692
1692
|
if (r = e.input.charCodeAt(e.position - 1), ne(r))
|
|
1693
1693
|
break;
|
|
1694
1694
|
} else {
|
|
1695
|
-
if (e.position === e.lineStart &&
|
|
1695
|
+
if (e.position === e.lineStart && qe(e) || n && Ce(p))
|
|
1696
1696
|
break;
|
|
1697
|
-
if (
|
|
1698
|
-
if (s = e.line,
|
|
1697
|
+
if (le(p))
|
|
1698
|
+
if (s = e.line, c = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
|
|
1699
1699
|
l = !0, p = e.input.charCodeAt(e.position);
|
|
1700
1700
|
continue;
|
|
1701
1701
|
} else {
|
|
1702
|
-
e.position = o, e.line = s, e.lineStart =
|
|
1702
|
+
e.position = o, e.line = s, e.lineStart = c, e.lineIndent = d;
|
|
1703
1703
|
break;
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
-
l && (
|
|
1706
|
+
l && (de(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(p) || (o = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1707
1707
|
}
|
|
1708
|
-
return
|
|
1708
|
+
return de(e, a, o, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1709
1709
|
}
|
|
1710
|
-
function
|
|
1710
|
+
function ta(e, t) {
|
|
1711
1711
|
var n, r, i;
|
|
1712
1712
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1713
1713
|
return !1;
|
|
1714
1714
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1715
1715
|
if (n === 39)
|
|
1716
|
-
if (
|
|
1716
|
+
if (de(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1717
1717
|
r = e.position, e.position++, i = e.position;
|
|
1718
1718
|
else
|
|
1719
1719
|
return !0;
|
|
1720
1720
|
else
|
|
1721
|
-
|
|
1721
|
+
le(n) ? (de(e, r, i, !0), it(e, W(e, !1, t)), r = i = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1722
1722
|
C(e, "unexpected end of the stream within a single quoted scalar");
|
|
1723
1723
|
}
|
|
1724
|
-
function
|
|
1724
|
+
function na(e, t) {
|
|
1725
1725
|
var n, r, i, a, o, l;
|
|
1726
1726
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1727
1727
|
return !1;
|
|
1728
1728
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1729
1729
|
if (l === 34)
|
|
1730
|
-
return
|
|
1730
|
+
return de(e, n, e.position, !0), e.position++, !0;
|
|
1731
1731
|
if (l === 92) {
|
|
1732
|
-
if (
|
|
1733
|
-
|
|
1732
|
+
if (de(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), le(l))
|
|
1733
|
+
W(e, !1, t);
|
|
1734
1734
|
else if (l < 256 && pn[l])
|
|
1735
1735
|
e.result += hn[l], e.position++;
|
|
1736
|
-
else if ((o =
|
|
1736
|
+
else if ((o = Gi(l)) > 0) {
|
|
1737
1737
|
for (i = o, a = 0; i > 0; i--)
|
|
1738
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
1739
|
-
e.result +=
|
|
1738
|
+
l = e.input.charCodeAt(++e.position), (o = Ji(l)) >= 0 ? a = (a << 4) + o : C(e, "expected hexadecimal character");
|
|
1739
|
+
e.result += Qi(a), e.position++;
|
|
1740
1740
|
} else
|
|
1741
1741
|
C(e, "unknown escape sequence");
|
|
1742
1742
|
n = r = e.position;
|
|
1743
1743
|
} else
|
|
1744
|
-
|
|
1744
|
+
le(l) ? (de(e, n, r, !0), it(e, W(e, !1, t)), n = r = e.position) : e.position === e.lineStart && qe(e) ? C(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1745
1745
|
}
|
|
1746
1746
|
C(e, "unexpected end of the stream within a double quoted scalar");
|
|
1747
1747
|
}
|
|
1748
|
-
function
|
|
1749
|
-
var n = !0, r, i, a, o = e.tag, l, s = e.anchor,
|
|
1750
|
-
if (
|
|
1748
|
+
function ra(e, t) {
|
|
1749
|
+
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, c, d, u, g, p, y = /* @__PURE__ */ Object.create(null), v, _, N, w;
|
|
1750
|
+
if (w = e.input.charCodeAt(e.position), w === 91)
|
|
1751
1751
|
d = 93, p = !1, l = [];
|
|
1752
|
-
else if (
|
|
1752
|
+
else if (w === 123)
|
|
1753
1753
|
d = 125, p = !0, l = {};
|
|
1754
1754
|
else
|
|
1755
1755
|
return !1;
|
|
1756
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = l),
|
|
1757
|
-
if (
|
|
1756
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), w = e.input.charCodeAt(++e.position); w !== 0; ) {
|
|
1757
|
+
if (W(e, !0, t), w = e.input.charCodeAt(e.position), w === d)
|
|
1758
1758
|
return e.position++, e.tag = o, e.anchor = s, e.kind = p ? "mapping" : "sequence", e.result = l, !0;
|
|
1759
|
-
n ?
|
|
1759
|
+
n ? w === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), _ = v = N = null, u = g = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), ne(c) && (u = g = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Re, !1, !0), _ = e.tag, v = e.result, W(e, !0, t), w = e.input.charCodeAt(e.position), (g || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), W(e, !0, t), we(e, t, Re, !1, !0), N = e.result), p ? ke(e, l, y, _, v, N, r, i, a) : u ? l.push(ke(e, null, y, _, v, N, r, i, a)) : l.push(v), W(e, !0, t), w = e.input.charCodeAt(e.position), w === 44 ? (n = !0, w = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1760
1760
|
}
|
|
1761
1761
|
C(e, "unexpected end of the stream within a flow collection");
|
|
1762
1762
|
}
|
|
1763
|
-
function
|
|
1764
|
-
var n, r, i = ze, a = !1, o = !1, l = t, s = 0,
|
|
1765
|
-
if (
|
|
1763
|
+
function ia(e, t) {
|
|
1764
|
+
var n, r, i = ze, a = !1, o = !1, l = t, s = 0, c = !1, d, u;
|
|
1765
|
+
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1766
1766
|
r = !1;
|
|
1767
|
-
else if (
|
|
1767
|
+
else if (u === 62)
|
|
1768
1768
|
r = !0;
|
|
1769
1769
|
else
|
|
1770
1770
|
return !1;
|
|
1771
|
-
for (e.kind = "scalar", e.result = "";
|
|
1772
|
-
if (
|
|
1773
|
-
ze === i ? i =
|
|
1774
|
-
else if ((d =
|
|
1771
|
+
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1772
|
+
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1773
|
+
ze === i ? i = u === 43 ? gt : Vi : C(e, "repeat of a chomping mode identifier");
|
|
1774
|
+
else if ((d = Zi(u)) >= 0)
|
|
1775
1775
|
d === 0 ? C(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? C(e, "repeat of an indentation width identifier") : (l = t + d - 1, o = !0);
|
|
1776
1776
|
else
|
|
1777
1777
|
break;
|
|
1778
|
-
if (
|
|
1778
|
+
if (ye(u)) {
|
|
1779
1779
|
do
|
|
1780
|
-
|
|
1781
|
-
while (
|
|
1782
|
-
if (
|
|
1780
|
+
u = e.input.charCodeAt(++e.position);
|
|
1781
|
+
while (ye(u));
|
|
1782
|
+
if (u === 35)
|
|
1783
1783
|
do
|
|
1784
|
-
|
|
1785
|
-
while (!
|
|
1784
|
+
u = e.input.charCodeAt(++e.position);
|
|
1785
|
+
while (!le(u) && u !== 0);
|
|
1786
1786
|
}
|
|
1787
|
-
for (;
|
|
1788
|
-
for (
|
|
1789
|
-
e.lineIndent++,
|
|
1790
|
-
if (!o && e.lineIndent > l && (l = e.lineIndent),
|
|
1787
|
+
for (; u !== 0; ) {
|
|
1788
|
+
for (rt(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && u === 32; )
|
|
1789
|
+
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1790
|
+
if (!o && e.lineIndent > l && (l = e.lineIndent), le(u)) {
|
|
1791
1791
|
s++;
|
|
1792
1792
|
continue;
|
|
1793
1793
|
}
|
|
@@ -1797,13 +1797,13 @@ function aa(e, t) {
|
|
|
1797
1797
|
`);
|
|
1798
1798
|
break;
|
|
1799
1799
|
}
|
|
1800
|
-
for (r ?
|
|
1801
|
-
`, a ? 1 + s : s)) :
|
|
1800
|
+
for (r ? ye(u) ? (c = !0, e.result += G.repeat(`
|
|
1801
|
+
`, a ? 1 + s : s)) : c ? (c = !1, e.result += G.repeat(`
|
|
1802
1802
|
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
|
|
1803
1803
|
`, s) : e.result += G.repeat(`
|
|
1804
|
-
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !
|
|
1805
|
-
|
|
1806
|
-
|
|
1804
|
+
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !le(u) && u !== 0; )
|
|
1805
|
+
u = e.input.charCodeAt(++e.position);
|
|
1806
|
+
de(e, n, e.position, !1);
|
|
1807
1807
|
}
|
|
1808
1808
|
return !0;
|
|
1809
1809
|
}
|
|
@@ -1812,49 +1812,49 @@ function Ct(e, t) {
|
|
|
1812
1812
|
if (e.firstTabInLine !== -1)
|
|
1813
1813
|
return !1;
|
|
1814
1814
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = a), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), !(s !== 45 || (o = e.input.charCodeAt(e.position + 1), !ne(o)))); ) {
|
|
1815
|
-
if (l = !0, e.position++,
|
|
1815
|
+
if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
|
|
1816
1816
|
a.push(null), s = e.input.charCodeAt(e.position);
|
|
1817
1817
|
continue;
|
|
1818
1818
|
}
|
|
1819
|
-
if (n = e.line, we(e, t,
|
|
1819
|
+
if (n = e.line, we(e, t, cn, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1820
1820
|
C(e, "bad indentation of a sequence entry");
|
|
1821
1821
|
else if (e.lineIndent < t)
|
|
1822
1822
|
break;
|
|
1823
1823
|
}
|
|
1824
1824
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1825
1825
|
}
|
|
1826
|
-
function
|
|
1827
|
-
var r, i, a, o, l, s,
|
|
1826
|
+
function aa(e, t, n) {
|
|
1827
|
+
var r, i, a, o, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), p = null, y = null, v = null, _ = !1, N = !1, w;
|
|
1828
1828
|
if (e.firstTabInLine !== -1)
|
|
1829
1829
|
return !1;
|
|
1830
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] =
|
|
1831
|
-
if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (
|
|
1832
|
-
|
|
1830
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), w = e.input.charCodeAt(e.position); w !== 0; ) {
|
|
1831
|
+
if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, C(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (w === 63 || w === 58) && ne(r))
|
|
1832
|
+
w === 63 ? (_ && (ke(e, u, g, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : C(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
|
|
1833
1833
|
else {
|
|
1834
|
-
if (o = e.line, l = e.lineStart, s = e.position, !we(e, n,
|
|
1834
|
+
if (o = e.line, l = e.lineStart, s = e.position, !we(e, n, un, !1, !0))
|
|
1835
1835
|
break;
|
|
1836
1836
|
if (e.line === a) {
|
|
1837
|
-
for (
|
|
1838
|
-
|
|
1839
|
-
if (
|
|
1840
|
-
|
|
1837
|
+
for (w = e.input.charCodeAt(e.position); ye(w); )
|
|
1838
|
+
w = e.input.charCodeAt(++e.position);
|
|
1839
|
+
if (w === 58)
|
|
1840
|
+
w = e.input.charCodeAt(++e.position), ne(w) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (ke(e, u, g, p, y, null, o, l, s), p = y = v = null), N = !0, _ = !1, i = !1, p = e.tag, y = e.result;
|
|
1841
1841
|
else if (N)
|
|
1842
1842
|
C(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1843
1843
|
else
|
|
1844
|
-
return e.tag =
|
|
1844
|
+
return e.tag = c, e.anchor = d, !0;
|
|
1845
1845
|
} else if (N)
|
|
1846
1846
|
C(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1847
1847
|
else
|
|
1848
|
-
return e.tag =
|
|
1848
|
+
return e.tag = c, e.anchor = d, !0;
|
|
1849
1849
|
}
|
|
1850
|
-
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (
|
|
1850
|
+
if ((e.line === a || e.lineIndent > t) && (_ && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Me, !0, i) && (_ ? y = e.result : v = e.result), _ || (ke(e, u, g, p, y, v, o, l, s), p = y = v = null), W(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && w !== 0)
|
|
1851
1851
|
C(e, "bad indentation of a mapping entry");
|
|
1852
1852
|
else if (e.lineIndent < t)
|
|
1853
1853
|
break;
|
|
1854
1854
|
}
|
|
1855
|
-
return _ &&
|
|
1855
|
+
return _ && ke(e, u, g, p, y, null, o, l, s), N && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), N;
|
|
1856
1856
|
}
|
|
1857
|
-
function
|
|
1857
|
+
function oa(e) {
|
|
1858
1858
|
var t, n = !1, r = !1, i, a, o;
|
|
1859
1859
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1860
1860
|
return !1;
|
|
@@ -1866,7 +1866,7 @@ function la(e) {
|
|
|
1866
1866
|
} else {
|
|
1867
1867
|
for (; o !== 0 && !ne(o); )
|
|
1868
1868
|
o === 33 && (r ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), dn.test(i) || C(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
1869
|
-
a = e.input.slice(t, e.position),
|
|
1869
|
+
a = e.input.slice(t, e.position), Wi.test(a) && C(e, "tag suffix cannot contain flow indicator characters");
|
|
1870
1870
|
}
|
|
1871
1871
|
a && !fn.test(a) && C(e, "tag name cannot contain such characters: " + a);
|
|
1872
1872
|
try {
|
|
@@ -1874,9 +1874,9 @@ function la(e) {
|
|
|
1874
1874
|
} catch {
|
|
1875
1875
|
C(e, "tag name is malformed: " + a);
|
|
1876
1876
|
}
|
|
1877
|
-
return n ? e.tag = a :
|
|
1877
|
+
return n ? e.tag = a : pe.call(e.tagMap, i) ? e.tag = e.tagMap[i] + a : i === "!" ? e.tag = "!" + a : i === "!!" ? e.tag = "tag:yaml.org,2002:" + a : C(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function la(e) {
|
|
1880
1880
|
var t, n;
|
|
1881
1881
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
1882
1882
|
return !1;
|
|
@@ -1884,34 +1884,34 @@ function sa(e) {
|
|
|
1884
1884
|
n = e.input.charCodeAt(++e.position);
|
|
1885
1885
|
return e.position === t && C(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1886
1886
|
}
|
|
1887
|
-
function
|
|
1887
|
+
function sa(e) {
|
|
1888
1888
|
var t, n, r;
|
|
1889
1889
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
1890
1890
|
return !1;
|
|
1891
1891
|
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
|
|
1892
1892
|
r = e.input.charCodeAt(++e.position);
|
|
1893
|
-
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
1893
|
+
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), pe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
|
|
1894
1894
|
}
|
|
1895
1895
|
function we(e, t, n, r, i) {
|
|
1896
|
-
var a, o, l, s = 1,
|
|
1897
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n ||
|
|
1898
|
-
for (;
|
|
1899
|
-
|
|
1900
|
-
if (l && (l =
|
|
1896
|
+
var a, o, l, s = 1, c = !1, d = !1, u, g, p, y, v, _;
|
|
1897
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Me === n || cn === n, r && W(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1898
|
+
for (; oa(e) || la(e); )
|
|
1899
|
+
W(e, !0, -1) ? (c = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1900
|
+
if (l && (l = c || i), (s === 1 || Me === n) && (Re === n || un === n ? v = t : v = t + 1, _ = e.position - e.lineStart, s === 1 ? l && (Ct(e, _) || aa(e, _, v)) || ra(e, v) ? d = !0 : (o && ia(e, v) || ta(e, v) || na(e, v) ? d = !0 : sa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ea(e, v, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, _))), e.tag === null)
|
|
1901
1901
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1902
1902
|
else if (e.tag === "?") {
|
|
1903
|
-
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'),
|
|
1904
|
-
if (y = e.implicitTypes[
|
|
1903
|
+
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
1904
|
+
if (y = e.implicitTypes[u], y.resolve(e.result)) {
|
|
1905
1905
|
e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1906
1906
|
break;
|
|
1907
1907
|
}
|
|
1908
1908
|
} else if (e.tag !== "!") {
|
|
1909
|
-
if (
|
|
1909
|
+
if (pe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1910
1910
|
y = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1911
1911
|
else
|
|
1912
|
-
for (y = null, p = e.typeMap.multi[e.kind || "fallback"],
|
|
1913
|
-
if (e.tag.slice(0, p[
|
|
1914
|
-
y = p[
|
|
1912
|
+
for (y = null, p = e.typeMap.multi[e.kind || "fallback"], u = 0, g = p.length; u < g; u += 1)
|
|
1913
|
+
if (e.tag.slice(0, p[u].tag.length) === p[u].tag) {
|
|
1914
|
+
y = p[u];
|
|
1915
1915
|
break;
|
|
1916
1916
|
}
|
|
1917
1917
|
y || C(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && C(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : C(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
@@ -1920,28 +1920,28 @@ function we(e, t, n, r, i) {
|
|
|
1920
1920
|
}
|
|
1921
1921
|
function ua(e) {
|
|
1922
1922
|
var t = e.position, n, r, i, a = !1, o;
|
|
1923
|
-
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (
|
|
1923
|
+
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (W(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
1924
1924
|
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
|
|
1925
1925
|
o = e.input.charCodeAt(++e.position);
|
|
1926
1926
|
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && C(e, "directive name must not be less than one character in length"); o !== 0; ) {
|
|
1927
|
-
for (;
|
|
1927
|
+
for (; ye(o); )
|
|
1928
1928
|
o = e.input.charCodeAt(++e.position);
|
|
1929
1929
|
if (o === 35) {
|
|
1930
1930
|
do
|
|
1931
1931
|
o = e.input.charCodeAt(++e.position);
|
|
1932
|
-
while (o !== 0 && !
|
|
1932
|
+
while (o !== 0 && !le(o));
|
|
1933
1933
|
break;
|
|
1934
1934
|
}
|
|
1935
|
-
if (
|
|
1935
|
+
if (le(o))
|
|
1936
1936
|
break;
|
|
1937
1937
|
for (n = e.position; o !== 0 && !ne(o); )
|
|
1938
1938
|
o = e.input.charCodeAt(++e.position);
|
|
1939
1939
|
i.push(e.input.slice(n, e.position));
|
|
1940
1940
|
}
|
|
1941
|
-
o !== 0 &&
|
|
1941
|
+
o !== 0 && rt(e), pe.call(bt, r) ? bt[r](e, r, i) : Ke(e, 'unknown document directive "' + r + '"');
|
|
1942
1942
|
}
|
|
1943
|
-
if (
|
|
1944
|
-
e.input.charCodeAt(e.position) === 46 && (e.position += 3,
|
|
1943
|
+
if (W(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, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), we(e, e.lineIndent - 1, Me, !1, !0), W(e, !0, -1), e.checkLineBreaks && Yi.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
1944
|
+
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
1945
1945
|
return;
|
|
1946
1946
|
}
|
|
1947
1947
|
if (e.position < e.length - 1)
|
|
@@ -1952,14 +1952,14 @@ function ua(e) {
|
|
|
1952
1952
|
function gn(e, t) {
|
|
1953
1953
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1954
1954
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1955
|
-
var n = new
|
|
1955
|
+
var n = new Xi(e, t), r = e.indexOf("\0");
|
|
1956
1956
|
for (r !== -1 && (n.position = r, C(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1957
1957
|
n.lineIndent += 1, n.position += 1;
|
|
1958
1958
|
for (; n.position < n.length - 1; )
|
|
1959
1959
|
ua(n);
|
|
1960
1960
|
return n.documents;
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function ca(e, t, n) {
|
|
1963
1963
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1964
1964
|
var r = gn(e, n);
|
|
1965
1965
|
if (typeof t != "function")
|
|
@@ -1967,7 +1967,7 @@ function da(e, t, n) {
|
|
|
1967
1967
|
for (var i = 0, a = r.length; i < a; i += 1)
|
|
1968
1968
|
t(r[i]);
|
|
1969
1969
|
}
|
|
1970
|
-
function
|
|
1970
|
+
function da(e, t) {
|
|
1971
1971
|
var n = gn(e, t);
|
|
1972
1972
|
if (n.length !== 0) {
|
|
1973
1973
|
if (n.length === 1)
|
|
@@ -1975,10 +1975,10 @@ function fa(e, t) {
|
|
|
1975
1975
|
throw new te("expected a single document in the stream, but found more");
|
|
1976
1976
|
}
|
|
1977
1977
|
}
|
|
1978
|
-
var
|
|
1979
|
-
loadAll:
|
|
1980
|
-
load:
|
|
1981
|
-
}, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty,
|
|
1978
|
+
var fa = ca, pa = da, yn = {
|
|
1979
|
+
loadAll: fa,
|
|
1980
|
+
load: pa
|
|
1981
|
+
}, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ha = 9, $e = 10, ma = 13, ga = 32, ya = 33, va = 34, Je = 35, ba = 37, xa = 38, Ca = 39, ka = 42, xn = 44, _a = 45, De = 58, wa = 61, Aa = 62, Sa = 63, Ia = 64, Cn = 91, kn = 93, Ea = 96, _n = 123, Ta = 124, wn = 125, ee = {};
|
|
1982
1982
|
ee[0] = "\\0";
|
|
1983
1983
|
ee[7] = "\\a";
|
|
1984
1984
|
ee[8] = "\\b";
|
|
@@ -1994,7 +1994,7 @@ ee[133] = "\\N";
|
|
|
1994
1994
|
ee[160] = "\\_";
|
|
1995
1995
|
ee[8232] = "\\L";
|
|
1996
1996
|
ee[8233] = "\\P";
|
|
1997
|
-
var
|
|
1997
|
+
var Fa = [
|
|
1998
1998
|
"y",
|
|
1999
1999
|
"Y",
|
|
2000
2000
|
"yes",
|
|
@@ -2011,8 +2011,8 @@ var Oa = [
|
|
|
2011
2011
|
"off",
|
|
2012
2012
|
"Off",
|
|
2013
2013
|
"OFF"
|
|
2014
|
-
],
|
|
2015
|
-
function
|
|
2014
|
+
], Oa = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2015
|
+
function $a(e, t) {
|
|
2016
2016
|
var n, r, i, a, o, l, s;
|
|
2017
2017
|
if (t === null)
|
|
2018
2018
|
return {};
|
|
@@ -2020,7 +2020,7 @@ function La(e, t) {
|
|
|
2020
2020
|
o = r[i], l = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), s = e.compiledTypeMap.fallback[o], s && bn.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[o] = l;
|
|
2021
2021
|
return n;
|
|
2022
2022
|
}
|
|
2023
|
-
function
|
|
2023
|
+
function La(e) {
|
|
2024
2024
|
var t, n, r;
|
|
2025
2025
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2026
2026
|
n = "x", r = 2;
|
|
@@ -2032,54 +2032,54 @@ function Na(e) {
|
|
|
2032
2032
|
throw new te("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2033
2033
|
return "\\" + n + G.repeat("0", r - t.length) + t;
|
|
2034
2034
|
}
|
|
2035
|
-
var
|
|
2035
|
+
var Na = 1, Le = 2;
|
|
2036
2036
|
function Ba(e) {
|
|
2037
|
-
this.schema = e.schema ||
|
|
2037
|
+
this.schema = e.schema || nt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = G.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $a(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 === '"' ? Le : Na, 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;
|
|
2038
2038
|
}
|
|
2039
|
-
function
|
|
2039
|
+
function kt(e, t) {
|
|
2040
2040
|
for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
|
|
2041
2041
|
i = e.indexOf(`
|
|
2042
2042
|
`, r), i === -1 ? (o = e.slice(r), r = l) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== `
|
|
2043
2043
|
` && (a += n), a += o;
|
|
2044
2044
|
return a;
|
|
2045
2045
|
}
|
|
2046
|
-
function
|
|
2046
|
+
function Ge(e, t) {
|
|
2047
2047
|
return `
|
|
2048
2048
|
` + G.repeat(" ", e.indent * t);
|
|
2049
2049
|
}
|
|
2050
|
-
function
|
|
2050
|
+
function Ra(e, t) {
|
|
2051
2051
|
var n, r, i;
|
|
2052
2052
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2053
2053
|
if (i = e.implicitTypes[n], i.resolve(t))
|
|
2054
2054
|
return !0;
|
|
2055
2055
|
return !1;
|
|
2056
2056
|
}
|
|
2057
|
-
function
|
|
2058
|
-
return e ===
|
|
2057
|
+
function Ue(e) {
|
|
2058
|
+
return e === ga || e === ha;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2061
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2060
|
+
function Ne(e) {
|
|
2061
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
|
|
2062
2062
|
}
|
|
2063
|
-
function
|
|
2064
|
-
return
|
|
2063
|
+
function _t(e) {
|
|
2064
|
+
return Ne(e) && e !== at && e !== ma && e !== $e;
|
|
2065
2065
|
}
|
|
2066
2066
|
function wt(e, t, n) {
|
|
2067
|
-
var r =
|
|
2067
|
+
var r = _t(e), i = r && !Ue(e);
|
|
2068
2068
|
return (
|
|
2069
2069
|
// ns-plain-safe
|
|
2070
2070
|
(n ? (
|
|
2071
2071
|
// c = flow-in
|
|
2072
2072
|
r
|
|
2073
|
-
) : r && e !== xn && e !== Cn && e !==
|
|
2073
|
+
) : r && e !== xn && e !== Cn && e !== kn && e !== _n && e !== wn) && e !== Je && !(t === De && !i) || _t(t) && !Ue(t) && e === Je || t === De && i
|
|
2074
2074
|
);
|
|
2075
2075
|
}
|
|
2076
2076
|
function Ma(e) {
|
|
2077
|
-
return
|
|
2077
|
+
return Ne(e) && e !== at && !Ue(e) && e !== _a && e !== Sa && e !== De && e !== xn && e !== Cn && e !== kn && e !== _n && e !== wn && e !== Je && e !== xa && e !== ka && e !== ya && e !== Ta && e !== wa && e !== Aa && e !== Ca && e !== va && e !== ba && e !== Ia && e !== Ea;
|
|
2078
2078
|
}
|
|
2079
|
-
function
|
|
2080
|
-
return !
|
|
2079
|
+
function Ka(e) {
|
|
2080
|
+
return !Ue(e) && e !== De;
|
|
2081
2081
|
}
|
|
2082
|
-
function
|
|
2082
|
+
function Fe(e, t) {
|
|
2083
2083
|
var n = e.charCodeAt(t), r;
|
|
2084
2084
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (r = e.charCodeAt(t + 1), r >= 56320 && r <= 57343) ? (n - 55296) * 1024 + r - 56320 + 65536 : n;
|
|
2085
2085
|
}
|
|
@@ -2087,39 +2087,39 @@ function An(e) {
|
|
|
2087
2087
|
var t = /^\n* /;
|
|
2088
2088
|
return t.test(e);
|
|
2089
2089
|
}
|
|
2090
|
-
var Sn = 1,
|
|
2091
|
-
function
|
|
2092
|
-
var s,
|
|
2090
|
+
var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
|
|
2091
|
+
function Da(e, t, n, r, i, a, o, l) {
|
|
2092
|
+
var s, c = 0, d = null, u = !1, g = !1, p = r !== -1, y = -1, v = Ma(Fe(e, 0)) && Ka(Fe(e, e.length - 1));
|
|
2093
2093
|
if (t || o)
|
|
2094
|
-
for (s = 0; s < e.length;
|
|
2095
|
-
if (
|
|
2094
|
+
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2095
|
+
if (c = Fe(e, s), !Ne(c))
|
|
2096
2096
|
return xe;
|
|
2097
|
-
v = v && wt(
|
|
2097
|
+
v = v && wt(c, d, l), d = c;
|
|
2098
2098
|
}
|
|
2099
2099
|
else {
|
|
2100
|
-
for (s = 0; s < e.length;
|
|
2101
|
-
if (
|
|
2102
|
-
|
|
2100
|
+
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2101
|
+
if (c = Fe(e, s), c === $e)
|
|
2102
|
+
u = !0, p && (g = g || // Foldable line = too long, and not more-indented.
|
|
2103
2103
|
s - y - 1 > r && e[y + 1] !== " ", y = s);
|
|
2104
|
-
else if (!
|
|
2104
|
+
else if (!Ne(c))
|
|
2105
2105
|
return xe;
|
|
2106
|
-
v = v && wt(
|
|
2106
|
+
v = v && wt(c, d, l), d = c;
|
|
2107
2107
|
}
|
|
2108
|
-
|
|
2108
|
+
g = g || p && s - y - 1 > r && e[y + 1] !== " ";
|
|
2109
2109
|
}
|
|
2110
|
-
return !
|
|
2110
|
+
return !u && !g ? v && !o && !i(e) ? Sn : a === Le ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Le ? xe : Ze : g ? En : In;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function Ua(e, t, n, r, i) {
|
|
2113
2113
|
e.dump = function() {
|
|
2114
2114
|
if (t.length === 0)
|
|
2115
|
-
return e.quotingType ===
|
|
2116
|
-
if (!e.noCompatMode && (
|
|
2117
|
-
return e.quotingType ===
|
|
2115
|
+
return e.quotingType === Le ? '""' : "''";
|
|
2116
|
+
if (!e.noCompatMode && (Fa.indexOf(t) !== -1 || Oa.test(t)))
|
|
2117
|
+
return e.quotingType === Le ? '"' + t + '"' : "'" + t + "'";
|
|
2118
2118
|
var a = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2119
|
-
function s(
|
|
2120
|
-
return
|
|
2119
|
+
function s(c) {
|
|
2120
|
+
return Ra(e, c);
|
|
2121
2121
|
}
|
|
2122
|
-
switch (
|
|
2122
|
+
switch (Da(
|
|
2123
2123
|
t,
|
|
2124
2124
|
l,
|
|
2125
2125
|
e.indent,
|
|
@@ -2131,14 +2131,14 @@ function ja(e, t, n, r, i) {
|
|
|
2131
2131
|
)) {
|
|
2132
2132
|
case Sn:
|
|
2133
2133
|
return t;
|
|
2134
|
-
case
|
|
2134
|
+
case Ze:
|
|
2135
2135
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2136
2136
|
case In:
|
|
2137
|
-
return "|" + At(t, e.indent) + St(
|
|
2137
|
+
return "|" + At(t, e.indent) + St(kt(t, a));
|
|
2138
2138
|
case En:
|
|
2139
|
-
return ">" + At(t, e.indent) + St(
|
|
2139
|
+
return ">" + At(t, e.indent) + St(kt(ja(t, o), a));
|
|
2140
2140
|
case xe:
|
|
2141
|
-
return '"' +
|
|
2141
|
+
return '"' + qa(t) + '"';
|
|
2142
2142
|
default:
|
|
2143
2143
|
throw new te("impossible error: invalid scalar style");
|
|
2144
2144
|
}
|
|
@@ -2156,11 +2156,11 @@ function St(e) {
|
|
|
2156
2156
|
return e[e.length - 1] === `
|
|
2157
2157
|
` ? e.slice(0, -1) : e;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function ja(e, t) {
|
|
2160
2160
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2161
|
-
var
|
|
2161
|
+
var c = e.indexOf(`
|
|
2162
2162
|
`);
|
|
2163
|
-
return
|
|
2163
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, It(e.slice(0, c), t);
|
|
2164
2164
|
}(), i = e[0] === `
|
|
2165
2165
|
` || e[0] === " ", a, o; o = n.exec(e); ) {
|
|
2166
2166
|
var l = o[1], s = o[2];
|
|
@@ -2179,31 +2179,31 @@ function It(e, t) {
|
|
|
2179
2179
|
`, e.length - i > t && o > i ? s += e.slice(i, o) + `
|
|
2180
2180
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function qa(e) {
|
|
2183
2183
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2184
|
-
n =
|
|
2184
|
+
n = Fe(e, i), r = ee[n], !r && Ne(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || La(n);
|
|
2185
2185
|
return t;
|
|
2186
2186
|
}
|
|
2187
|
-
function
|
|
2187
|
+
function Pa(e, t, n) {
|
|
2188
2188
|
var r = "", i = e.tag, a, o, l;
|
|
2189
2189
|
for (a = 0, o = n.length; a < o; a += 1)
|
|
2190
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (
|
|
2190
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (ue(e, t, l, !1, !1) || typeof l > "u" && ue(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2191
2191
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2192
2192
|
}
|
|
2193
2193
|
function Et(e, t, n, r) {
|
|
2194
2194
|
var i = "", a = e.tag, o, l, s;
|
|
2195
2195
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
2196
|
-
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (
|
|
2196
|
+
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ue(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ue(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && $e === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2197
2197
|
e.tag = a, e.dump = i || "[]";
|
|
2198
2198
|
}
|
|
2199
|
-
function
|
|
2200
|
-
var r = "", i = e.tag, a = Object.keys(n), o, l, s,
|
|
2199
|
+
function Ha(e, t, n) {
|
|
2200
|
+
var r = "", i = e.tag, a = Object.keys(n), o, l, s, c, d;
|
|
2201
2201
|
for (o = 0, l = a.length; o < l; o += 1)
|
|
2202
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o],
|
|
2202
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), ue(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ue(e, t, c, !1, !1) && (d += e.dump, r += d));
|
|
2203
2203
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2204
2204
|
}
|
|
2205
|
-
function
|
|
2206
|
-
var i = "", a = e.tag, o = Object.keys(n), l, s,
|
|
2205
|
+
function Va(e, t, n, r) {
|
|
2206
|
+
var i = "", a = e.tag, o = Object.keys(n), l, s, c, d, u, g;
|
|
2207
2207
|
if (e.sortKeys === !0)
|
|
2208
2208
|
o.sort();
|
|
2209
2209
|
else if (typeof e.sortKeys == "function")
|
|
@@ -2211,7 +2211,7 @@ function Ya(e, t, n, r) {
|
|
|
2211
2211
|
else if (e.sortKeys)
|
|
2212
2212
|
throw new te("sortKeys must be a boolean or a function");
|
|
2213
2213
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2214
|
-
|
|
2214
|
+
g = "", (!r || i !== "") && (g += Ge(e, t)), c = o[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), ue(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && $e === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ge(e, t)), ue(e, t + 1, d, !0, u) && (e.dump && $e === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, i += g));
|
|
2215
2215
|
e.tag = a, e.dump = i || "{}";
|
|
2216
2216
|
}
|
|
2217
2217
|
function Tt(e, t, n) {
|
|
@@ -2231,20 +2231,20 @@ function Tt(e, t, n) {
|
|
|
2231
2231
|
}
|
|
2232
2232
|
return !1;
|
|
2233
2233
|
}
|
|
2234
|
-
function
|
|
2234
|
+
function ue(e, t, n, r, i, a, o) {
|
|
2235
2235
|
e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
|
|
2236
|
-
var l = vn.call(e.dump), s = r,
|
|
2236
|
+
var l = vn.call(e.dump), s = r, c;
|
|
2237
2237
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2238
|
-
var d = l === "[object Object]" || l === "[object Array]",
|
|
2239
|
-
if (d && (
|
|
2240
|
-
e.dump = "*ref_" +
|
|
2238
|
+
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2239
|
+
if (d && (u = e.duplicates.indexOf(n), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (i = !1), g && e.usedDuplicates[u])
|
|
2240
|
+
e.dump = "*ref_" + u;
|
|
2241
2241
|
else {
|
|
2242
|
-
if (d &&
|
|
2243
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2242
|
+
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2243
|
+
r && Object.keys(e.dump).length !== 0 ? (Va(e, t, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (Ha(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2244
2244
|
else if (l === "[object Array]")
|
|
2245
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i),
|
|
2245
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), g && (e.dump = "&ref_" + u + e.dump)) : (Pa(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2246
2246
|
else if (l === "[object String]")
|
|
2247
|
-
e.tag !== "?" &&
|
|
2247
|
+
e.tag !== "?" && Ua(e, e.dump, t, a, s);
|
|
2248
2248
|
else {
|
|
2249
2249
|
if (l === "[object Undefined]")
|
|
2250
2250
|
return !1;
|
|
@@ -2252,50 +2252,50 @@ function ce(e, t, n, r, i, a, o) {
|
|
|
2252
2252
|
return !1;
|
|
2253
2253
|
throw new te("unacceptable kind of an object to dump " + l);
|
|
2254
2254
|
}
|
|
2255
|
-
e.tag !== null && e.tag !== "?" && (
|
|
2255
|
+
e.tag !== null && e.tag !== "?" && (c = encodeURI(
|
|
2256
2256
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
2257
|
-
).replace(/!/g, "%21"), e.tag[0] === "!" ?
|
|
2257
|
+
).replace(/!/g, "%21"), e.tag[0] === "!" ? c = "!" + c : c.slice(0, 18) === "tag:yaml.org,2002:" ? c = "!!" + c.slice(18) : c = "!<" + c + ">", e.dump = c + " " + e.dump);
|
|
2258
2258
|
}
|
|
2259
2259
|
return !0;
|
|
2260
2260
|
}
|
|
2261
2261
|
function za(e, t) {
|
|
2262
2262
|
var n = [], r = [], i, a;
|
|
2263
|
-
for (
|
|
2263
|
+
for (Qe(e, n, r), i = 0, a = r.length; i < a; i += 1)
|
|
2264
2264
|
t.duplicates.push(n[r[i]]);
|
|
2265
2265
|
t.usedDuplicates = new Array(a);
|
|
2266
2266
|
}
|
|
2267
|
-
function
|
|
2267
|
+
function Qe(e, t, n) {
|
|
2268
2268
|
var r, i, a;
|
|
2269
2269
|
if (e !== null && typeof e == "object")
|
|
2270
2270
|
if (i = t.indexOf(e), i !== -1)
|
|
2271
2271
|
n.indexOf(i) === -1 && n.push(i);
|
|
2272
2272
|
else if (t.push(e), Array.isArray(e))
|
|
2273
2273
|
for (i = 0, a = e.length; i < a; i += 1)
|
|
2274
|
-
|
|
2274
|
+
Qe(e[i], t, n);
|
|
2275
2275
|
else
|
|
2276
2276
|
for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2277
|
-
|
|
2277
|
+
Qe(e[r[i]], t, n);
|
|
2278
2278
|
}
|
|
2279
|
-
function
|
|
2279
|
+
function Ya(e, t) {
|
|
2280
2280
|
t = t || {};
|
|
2281
2281
|
var n = new Ba(t);
|
|
2282
2282
|
n.noRefs || za(e, n);
|
|
2283
2283
|
var r = e;
|
|
2284
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2284
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), ue(n, 0, r, !0, !0) ? n.dump + `
|
|
2285
2285
|
` : "";
|
|
2286
2286
|
}
|
|
2287
|
-
var
|
|
2288
|
-
dump:
|
|
2287
|
+
var Wa = Ya, Ja = {
|
|
2288
|
+
dump: Wa
|
|
2289
2289
|
};
|
|
2290
|
-
function
|
|
2290
|
+
function ot(e, t) {
|
|
2291
2291
|
return function() {
|
|
2292
2292
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2293
2293
|
};
|
|
2294
2294
|
}
|
|
2295
|
-
var
|
|
2295
|
+
var Ga = X, Za = Pt, Qa = Yt, Xa = Qt, eo = Xt, to = nt, no = yn.load, ro = yn.loadAll, io = Ja.dump, ao = te, oo = {
|
|
2296
2296
|
binary: an,
|
|
2297
2297
|
float: Zt,
|
|
2298
|
-
map:
|
|
2298
|
+
map: zt,
|
|
2299
2299
|
null: Wt,
|
|
2300
2300
|
pairs: ln,
|
|
2301
2301
|
set: sn,
|
|
@@ -2306,23 +2306,23 @@ var Za = X, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = rt, ro = yn.load, io = yn.l
|
|
|
2306
2306
|
omap: on,
|
|
2307
2307
|
seq: Vt,
|
|
2308
2308
|
str: Ht
|
|
2309
|
-
},
|
|
2310
|
-
Type:
|
|
2311
|
-
Schema:
|
|
2312
|
-
FAILSAFE_SCHEMA:
|
|
2313
|
-
JSON_SCHEMA:
|
|
2314
|
-
CORE_SCHEMA:
|
|
2315
|
-
DEFAULT_SCHEMA:
|
|
2316
|
-
load:
|
|
2317
|
-
loadAll:
|
|
2318
|
-
dump:
|
|
2319
|
-
YAMLException:
|
|
2320
|
-
types:
|
|
2321
|
-
safeLoad:
|
|
2322
|
-
safeLoadAll:
|
|
2309
|
+
}, lo = ot("safeLoad", "load"), so = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), co = {
|
|
2310
|
+
Type: Ga,
|
|
2311
|
+
Schema: Za,
|
|
2312
|
+
FAILSAFE_SCHEMA: Qa,
|
|
2313
|
+
JSON_SCHEMA: Xa,
|
|
2314
|
+
CORE_SCHEMA: eo,
|
|
2315
|
+
DEFAULT_SCHEMA: to,
|
|
2316
|
+
load: no,
|
|
2317
|
+
loadAll: ro,
|
|
2318
|
+
dump: io,
|
|
2319
|
+
YAMLException: ao,
|
|
2320
|
+
types: oo,
|
|
2321
|
+
safeLoad: lo,
|
|
2322
|
+
safeLoadAll: so,
|
|
2323
2323
|
safeDump: uo
|
|
2324
2324
|
};
|
|
2325
|
-
const
|
|
2325
|
+
const fo = { class: "yaml-config" }, Tn = /* @__PURE__ */ P({
|
|
2326
2326
|
__name: "YamlCodeBlock",
|
|
2327
2327
|
props: {
|
|
2328
2328
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2332,30 +2332,30 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2332
2332
|
}
|
|
2333
2333
|
},
|
|
2334
2334
|
setup(e) {
|
|
2335
|
-
const t = e, n =
|
|
2335
|
+
const t = e, n = k(() => {
|
|
2336
2336
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2337
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2337
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : co.dump(r).trim();
|
|
2338
2338
|
});
|
|
2339
2339
|
return (r, i) => {
|
|
2340
2340
|
const a = K("KCodeBlock");
|
|
2341
|
-
return
|
|
2342
|
-
t.yamlRecord ? (
|
|
2341
|
+
return m(), S("div", fo, [
|
|
2342
|
+
t.yamlRecord ? (m(), M(a, {
|
|
2343
2343
|
key: 0,
|
|
2344
2344
|
id: "yaml-codeblock",
|
|
2345
2345
|
code: n.value,
|
|
2346
2346
|
language: "yaml",
|
|
2347
2347
|
theme: "dark"
|
|
2348
|
-
}, null, 8, ["code"])) :
|
|
2348
|
+
}, null, 8, ["code"])) : D("", !0)
|
|
2349
2349
|
]);
|
|
2350
2350
|
};
|
|
2351
2351
|
}
|
|
2352
|
-
}),
|
|
2352
|
+
}), po = {
|
|
2353
2353
|
key: 0,
|
|
2354
2354
|
class: "config-card-display-form"
|
|
2355
|
-
},
|
|
2355
|
+
}, ho = ["data-testid"], mo = {
|
|
2356
2356
|
key: 0,
|
|
2357
2357
|
class: "config-card-prop-section-title"
|
|
2358
|
-
},
|
|
2358
|
+
}, go = /* @__PURE__ */ P({
|
|
2359
2359
|
__name: "ConfigCardDisplay",
|
|
2360
2360
|
props: {
|
|
2361
2361
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2394,70 +2394,70 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2394
2394
|
}
|
|
2395
2395
|
},
|
|
2396
2396
|
setup(e) {
|
|
2397
|
-
const t = e, n =
|
|
2397
|
+
const t = e, n = Xe(), { i18n: { t: r } } = Y.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = k(() => {
|
|
2398
2398
|
if (!t.record)
|
|
2399
2399
|
return t.record;
|
|
2400
2400
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2401
2401
|
return delete o.created_at, delete o.updated_at, o;
|
|
2402
2402
|
});
|
|
2403
|
-
return (o, l) => (
|
|
2404
|
-
e.format === "structured" ? (
|
|
2405
|
-
(
|
|
2403
|
+
return (o, l) => (m(), S(se, null, [
|
|
2404
|
+
e.format === "structured" ? (m(), S("div", po, [
|
|
2405
|
+
(m(!0), S(se, null, oe(e.propListTypes, (s) => (m(), S("div", {
|
|
2406
2406
|
key: `config-card-details-${s}-props`,
|
|
2407
|
-
class:
|
|
2407
|
+
class: fe(`config-card-details-${s}-props`),
|
|
2408
2408
|
"data-testid": `config-card-details-${s}-props`
|
|
2409
2409
|
}, [
|
|
2410
|
-
s !== "basic" ? (
|
|
2411
|
-
(
|
|
2412
|
-
key:
|
|
2413
|
-
item:
|
|
2414
|
-
},
|
|
2410
|
+
s !== "basic" ? (m(), S("div", mo, $(s === "advanced" ? T(r)("baseConfigCard.sections.advanced") : T(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2411
|
+
(m(!0), S(se, null, oe(e.propertyCollections[s], (c) => (m(), M(Dt, {
|
|
2412
|
+
key: c.key,
|
|
2413
|
+
item: c
|
|
2414
|
+
}, _e({
|
|
2415
2415
|
label: b(() => [
|
|
2416
|
-
z(o.$slots, `${
|
|
2416
|
+
z(o.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2417
2417
|
]),
|
|
2418
|
-
[
|
|
2419
|
-
z(o.$slots,
|
|
2420
|
-
row:
|
|
2418
|
+
[c.key]: b(({ rowValue: d }) => [
|
|
2419
|
+
z(o.$slots, c.key, {
|
|
2420
|
+
row: c,
|
|
2421
2421
|
rowValue: d
|
|
2422
2422
|
}, void 0, !0)
|
|
2423
2423
|
]),
|
|
2424
2424
|
_: 2
|
|
2425
2425
|
}, [
|
|
2426
|
-
i(
|
|
2426
|
+
i(c) ? {
|
|
2427
2427
|
name: "label-tooltip",
|
|
2428
2428
|
fn: b(() => [
|
|
2429
|
-
z(o.$slots, `${
|
|
2429
|
+
z(o.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
|
|
2430
2430
|
]),
|
|
2431
2431
|
key: "0"
|
|
2432
2432
|
} : void 0
|
|
2433
2433
|
]), 1032, ["item"]))), 128))
|
|
2434
|
-
], 10,
|
|
2435
|
-
])) :
|
|
2436
|
-
e.format === "json" && t.record ? (
|
|
2434
|
+
], 10, ho))), 128))
|
|
2435
|
+
])) : D("", !0),
|
|
2436
|
+
e.format === "json" && t.record ? (m(), M(Ut, {
|
|
2437
2437
|
key: 1,
|
|
2438
2438
|
config: t.config,
|
|
2439
2439
|
"fetcher-url": t.fetcherUrl,
|
|
2440
2440
|
"json-record": a.value,
|
|
2441
2441
|
"request-method": "get"
|
|
2442
|
-
}, null, 8, ["config", "fetcher-url", "json-record"])) :
|
|
2443
|
-
e.format === "yaml" && t.record ? (
|
|
2442
|
+
}, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
|
|
2443
|
+
e.format === "yaml" && t.record ? (m(), M(Tn, {
|
|
2444
2444
|
key: 2,
|
|
2445
2445
|
"yaml-record": a.value
|
|
2446
|
-
}, null, 8, ["yaml-record"])) :
|
|
2446
|
+
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2447
2447
|
], 64));
|
|
2448
2448
|
}
|
|
2449
|
-
}),
|
|
2449
|
+
}), yo = /* @__PURE__ */ ae(go, [["__scopeId", "data-v-147a2f70"]]), ie = "24px", Te = (e, t) => {
|
|
2450
2450
|
const n = e.__vccOpts || e;
|
|
2451
2451
|
for (const [r, i] of t)
|
|
2452
2452
|
n[r] = i;
|
|
2453
2453
|
return n;
|
|
2454
|
-
},
|
|
2454
|
+
}, vo = (e) => (Ie("data-v-1d2a8d30"), e = e(), Ee(), e), bo = ["aria-hidden"], xo = {
|
|
2455
2455
|
key: 0,
|
|
2456
2456
|
"data-testid": "kui-icon-svg-title"
|
|
2457
|
-
},
|
|
2457
|
+
}, Co = /* @__PURE__ */ vo(() => /* @__PURE__ */ L("path", {
|
|
2458
2458
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2459
2459
|
fill: "currentColor"
|
|
2460
|
-
}, null, -1)), ko = /* @__PURE__ */
|
|
2460
|
+
}, null, -1)), ko = /* @__PURE__ */ P({
|
|
2461
2461
|
__name: "AddIcon",
|
|
2462
2462
|
props: {
|
|
2463
2463
|
/** The accessibility text provided to screen readers */
|
|
@@ -2488,7 +2488,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2488
2488
|
size: {
|
|
2489
2489
|
type: [Number, String],
|
|
2490
2490
|
required: !1,
|
|
2491
|
-
default:
|
|
2491
|
+
default: ie,
|
|
2492
2492
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2493
2493
|
validator: (e) => {
|
|
2494
2494
|
if (typeof e == "number" && e > 0)
|
|
@@ -2509,7 +2509,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2509
2509
|
}
|
|
2510
2510
|
},
|
|
2511
2511
|
setup(e) {
|
|
2512
|
-
const t = e, n =
|
|
2512
|
+
const t = e, n = k(() => {
|
|
2513
2513
|
if (typeof t.size == "number" && t.size > 0)
|
|
2514
2514
|
return `${t.size}px`;
|
|
2515
2515
|
if (typeof t.size == "string") {
|
|
@@ -2517,8 +2517,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2517
2517
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2518
2518
|
return `${a}px`;
|
|
2519
2519
|
}
|
|
2520
|
-
return
|
|
2521
|
-
}), r =
|
|
2520
|
+
return ie;
|
|
2521
|
+
}), r = k(() => ({
|
|
2522
2522
|
boxSizing: "border-box",
|
|
2523
2523
|
color: t.color,
|
|
2524
2524
|
display: t.display,
|
|
@@ -2526,14 +2526,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2526
2526
|
lineHeight: "0",
|
|
2527
2527
|
width: n.value
|
|
2528
2528
|
}));
|
|
2529
|
-
return (i, a) => (
|
|
2529
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
2530
2530
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2531
2531
|
class: "kui-icon add-icon",
|
|
2532
2532
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2533
|
-
style:
|
|
2533
|
+
style: Se(r.value)
|
|
2534
2534
|
}, {
|
|
2535
2535
|
default: b(() => [
|
|
2536
|
-
(
|
|
2536
|
+
(m(), S("svg", {
|
|
2537
2537
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2538
2538
|
"data-testid": "kui-icon-svg-add-icon",
|
|
2539
2539
|
fill: "none",
|
|
@@ -2543,20 +2543,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2543
2543
|
width: "100%",
|
|
2544
2544
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2545
2545
|
}, [
|
|
2546
|
-
e.title ? (
|
|
2547
|
-
|
|
2548
|
-
], 8,
|
|
2546
|
+
e.title ? (m(), S("title", xo, $(e.title), 1)) : D("", !0),
|
|
2547
|
+
Co
|
|
2548
|
+
], 8, bo))
|
|
2549
2549
|
]),
|
|
2550
2550
|
_: 1
|
|
2551
2551
|
}, 8, ["aria-hidden", "style"]));
|
|
2552
2552
|
}
|
|
2553
|
-
}),
|
|
2553
|
+
}), _o = /* @__PURE__ */ Te(ko, [["__scopeId", "data-v-1d2a8d30"]]), wo = (e) => (Ie("data-v-929b4762"), e = e(), Ee(), e), Ao = ["aria-hidden"], So = {
|
|
2554
2554
|
key: 0,
|
|
2555
2555
|
"data-testid": "kui-icon-svg-title"
|
|
2556
|
-
},
|
|
2556
|
+
}, Io = /* @__PURE__ */ wo(() => /* @__PURE__ */ L("path", {
|
|
2557
2557
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2558
2558
|
fill: "currentColor"
|
|
2559
|
-
}, null, -1)),
|
|
2559
|
+
}, null, -1)), Eo = /* @__PURE__ */ P({
|
|
2560
2560
|
__name: "BookIcon",
|
|
2561
2561
|
props: {
|
|
2562
2562
|
/** The accessibility text provided to screen readers */
|
|
@@ -2587,7 +2587,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2587
2587
|
size: {
|
|
2588
2588
|
type: [Number, String],
|
|
2589
2589
|
required: !1,
|
|
2590
|
-
default:
|
|
2590
|
+
default: ie,
|
|
2591
2591
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2592
2592
|
validator: (e) => {
|
|
2593
2593
|
if (typeof e == "number" && e > 0)
|
|
@@ -2608,7 +2608,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2608
2608
|
}
|
|
2609
2609
|
},
|
|
2610
2610
|
setup(e) {
|
|
2611
|
-
const t = e, n =
|
|
2611
|
+
const t = e, n = k(() => {
|
|
2612
2612
|
if (typeof t.size == "number" && t.size > 0)
|
|
2613
2613
|
return `${t.size}px`;
|
|
2614
2614
|
if (typeof t.size == "string") {
|
|
@@ -2616,8 +2616,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2616
2616
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2617
2617
|
return `${a}px`;
|
|
2618
2618
|
}
|
|
2619
|
-
return
|
|
2620
|
-
}), r =
|
|
2619
|
+
return ie;
|
|
2620
|
+
}), r = k(() => ({
|
|
2621
2621
|
boxSizing: "border-box",
|
|
2622
2622
|
color: t.color,
|
|
2623
2623
|
display: t.display,
|
|
@@ -2625,14 +2625,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2625
2625
|
lineHeight: "0",
|
|
2626
2626
|
width: n.value
|
|
2627
2627
|
}));
|
|
2628
|
-
return (i, a) => (
|
|
2628
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
2629
2629
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2630
2630
|
class: "kui-icon book-icon",
|
|
2631
2631
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2632
|
-
style:
|
|
2632
|
+
style: Se(r.value)
|
|
2633
2633
|
}, {
|
|
2634
2634
|
default: b(() => [
|
|
2635
|
-
(
|
|
2635
|
+
(m(), S("svg", {
|
|
2636
2636
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2637
2637
|
"data-testid": "kui-icon-svg-book-icon",
|
|
2638
2638
|
fill: "none",
|
|
@@ -2642,20 +2642,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2642
2642
|
width: "100%",
|
|
2643
2643
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2644
2644
|
}, [
|
|
2645
|
-
e.title ? (
|
|
2646
|
-
|
|
2647
|
-
], 8,
|
|
2645
|
+
e.title ? (m(), S("title", So, $(e.title), 1)) : D("", !0),
|
|
2646
|
+
Io
|
|
2647
|
+
], 8, Ao))
|
|
2648
2648
|
]),
|
|
2649
2649
|
_: 1
|
|
2650
2650
|
}, 8, ["aria-hidden", "style"]));
|
|
2651
2651
|
}
|
|
2652
|
-
}),
|
|
2652
|
+
}), To = /* @__PURE__ */ Te(Eo, [["__scopeId", "data-v-929b4762"]]), Fo = (e) => (Ie("data-v-219f8484"), e = e(), Ee(), e), Oo = ["aria-hidden"], $o = {
|
|
2653
2653
|
key: 0,
|
|
2654
2654
|
"data-testid": "kui-icon-svg-title"
|
|
2655
|
-
},
|
|
2655
|
+
}, Lo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ L("path", {
|
|
2656
2656
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2657
2657
|
fill: "currentColor"
|
|
2658
|
-
}, null, -1)),
|
|
2658
|
+
}, null, -1)), No = /* @__PURE__ */ P({
|
|
2659
2659
|
__name: "ChevronDownIcon",
|
|
2660
2660
|
props: {
|
|
2661
2661
|
/** The accessibility text provided to screen readers */
|
|
@@ -2686,7 +2686,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2686
2686
|
size: {
|
|
2687
2687
|
type: [Number, String],
|
|
2688
2688
|
required: !1,
|
|
2689
|
-
default:
|
|
2689
|
+
default: ie,
|
|
2690
2690
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2691
2691
|
validator: (e) => {
|
|
2692
2692
|
if (typeof e == "number" && e > 0)
|
|
@@ -2707,7 +2707,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2707
2707
|
}
|
|
2708
2708
|
},
|
|
2709
2709
|
setup(e) {
|
|
2710
|
-
const t = e, n =
|
|
2710
|
+
const t = e, n = k(() => {
|
|
2711
2711
|
if (typeof t.size == "number" && t.size > 0)
|
|
2712
2712
|
return `${t.size}px`;
|
|
2713
2713
|
if (typeof t.size == "string") {
|
|
@@ -2715,8 +2715,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2715
2715
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2716
2716
|
return `${a}px`;
|
|
2717
2717
|
}
|
|
2718
|
-
return
|
|
2719
|
-
}), r =
|
|
2718
|
+
return ie;
|
|
2719
|
+
}), r = k(() => ({
|
|
2720
2720
|
boxSizing: "border-box",
|
|
2721
2721
|
color: t.color,
|
|
2722
2722
|
display: t.display,
|
|
@@ -2724,14 +2724,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2724
2724
|
lineHeight: "0",
|
|
2725
2725
|
width: n.value
|
|
2726
2726
|
}));
|
|
2727
|
-
return (i, a) => (
|
|
2727
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
2728
2728
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2729
2729
|
class: "kui-icon chevron-down-icon",
|
|
2730
2730
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2731
|
-
style:
|
|
2731
|
+
style: Se(r.value)
|
|
2732
2732
|
}, {
|
|
2733
2733
|
default: b(() => [
|
|
2734
|
-
(
|
|
2734
|
+
(m(), S("svg", {
|
|
2735
2735
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2736
2736
|
"data-testid": "kui-icon-svg-chevron-down-icon",
|
|
2737
2737
|
fill: "none",
|
|
@@ -2741,20 +2741,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2741
2741
|
width: "100%",
|
|
2742
2742
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2743
2743
|
}, [
|
|
2744
|
-
e.title ? (
|
|
2745
|
-
|
|
2746
|
-
], 8,
|
|
2744
|
+
e.title ? (m(), S("title", $o, $(e.title), 1)) : D("", !0),
|
|
2745
|
+
Lo
|
|
2746
|
+
], 8, Oo))
|
|
2747
2747
|
]),
|
|
2748
2748
|
_: 1
|
|
2749
2749
|
}, 8, ["aria-hidden", "style"]));
|
|
2750
2750
|
}
|
|
2751
|
-
}), Bo = /* @__PURE__ */
|
|
2751
|
+
}), Bo = /* @__PURE__ */ Te(No, [["__scopeId", "data-v-219f8484"]]), Ro = (e) => (Ie("data-v-ed11facd"), e = e(), Ee(), e), Mo = ["aria-hidden"], Ko = {
|
|
2752
2752
|
key: 0,
|
|
2753
2753
|
"data-testid": "kui-icon-svg-title"
|
|
2754
|
-
},
|
|
2754
|
+
}, Do = /* @__PURE__ */ Ro(() => /* @__PURE__ */ L("path", {
|
|
2755
2755
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2756
2756
|
fill: "currentColor"
|
|
2757
|
-
}, null, -1)),
|
|
2757
|
+
}, null, -1)), Uo = /* @__PURE__ */ P({
|
|
2758
2758
|
__name: "CloseIcon",
|
|
2759
2759
|
props: {
|
|
2760
2760
|
/** The accessibility text provided to screen readers */
|
|
@@ -2785,7 +2785,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2785
2785
|
size: {
|
|
2786
2786
|
type: [Number, String],
|
|
2787
2787
|
required: !1,
|
|
2788
|
-
default:
|
|
2788
|
+
default: ie,
|
|
2789
2789
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2790
2790
|
validator: (e) => {
|
|
2791
2791
|
if (typeof e == "number" && e > 0)
|
|
@@ -2806,7 +2806,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2806
2806
|
}
|
|
2807
2807
|
},
|
|
2808
2808
|
setup(e) {
|
|
2809
|
-
const t = e, n =
|
|
2809
|
+
const t = e, n = k(() => {
|
|
2810
2810
|
if (typeof t.size == "number" && t.size > 0)
|
|
2811
2811
|
return `${t.size}px`;
|
|
2812
2812
|
if (typeof t.size == "string") {
|
|
@@ -2814,8 +2814,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2814
2814
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2815
2815
|
return `${a}px`;
|
|
2816
2816
|
}
|
|
2817
|
-
return
|
|
2818
|
-
}), r =
|
|
2817
|
+
return ie;
|
|
2818
|
+
}), r = k(() => ({
|
|
2819
2819
|
boxSizing: "border-box",
|
|
2820
2820
|
color: t.color,
|
|
2821
2821
|
display: t.display,
|
|
@@ -2823,14 +2823,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2823
2823
|
lineHeight: "0",
|
|
2824
2824
|
width: n.value
|
|
2825
2825
|
}));
|
|
2826
|
-
return (i, a) => (
|
|
2826
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
2827
2827
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2828
2828
|
class: "kui-icon close-icon",
|
|
2829
2829
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2830
|
-
style:
|
|
2830
|
+
style: Se(r.value)
|
|
2831
2831
|
}, {
|
|
2832
2832
|
default: b(() => [
|
|
2833
|
-
(
|
|
2833
|
+
(m(), S("svg", {
|
|
2834
2834
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2835
2835
|
"data-testid": "kui-icon-svg-close-icon",
|
|
2836
2836
|
fill: "none",
|
|
@@ -2840,20 +2840,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2840
2840
|
width: "100%",
|
|
2841
2841
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2842
2842
|
}, [
|
|
2843
|
-
e.title ? (
|
|
2844
|
-
|
|
2843
|
+
e.title ? (m(), S("title", Ko, $(e.title), 1)) : D("", !0),
|
|
2844
|
+
Do
|
|
2845
2845
|
], 8, Mo))
|
|
2846
2846
|
]),
|
|
2847
2847
|
_: 1
|
|
2848
2848
|
}, 8, ["aria-hidden", "style"]));
|
|
2849
2849
|
}
|
|
2850
|
-
}),
|
|
2850
|
+
}), jo = /* @__PURE__ */ Te(Uo, [["__scopeId", "data-v-ed11facd"]]), qo = (e) => (Ie("data-v-4399d24a"), e = e(), Ee(), e), Po = ["aria-hidden"], Ho = {
|
|
2851
2851
|
key: 0,
|
|
2852
2852
|
"data-testid": "kui-icon-svg-title"
|
|
2853
|
-
},
|
|
2853
|
+
}, Vo = /* @__PURE__ */ qo(() => /* @__PURE__ */ L("path", {
|
|
2854
2854
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
2855
2855
|
fill: "currentColor"
|
|
2856
|
-
}, null, -1)), zo = /* @__PURE__ */
|
|
2856
|
+
}, null, -1)), zo = /* @__PURE__ */ P({
|
|
2857
2857
|
__name: "CopyIcon",
|
|
2858
2858
|
props: {
|
|
2859
2859
|
/** The accessibility text provided to screen readers */
|
|
@@ -2884,7 +2884,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2884
2884
|
size: {
|
|
2885
2885
|
type: [Number, String],
|
|
2886
2886
|
required: !1,
|
|
2887
|
-
default:
|
|
2887
|
+
default: ie,
|
|
2888
2888
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2889
2889
|
validator: (e) => {
|
|
2890
2890
|
if (typeof e == "number" && e > 0)
|
|
@@ -2905,7 +2905,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2905
2905
|
}
|
|
2906
2906
|
},
|
|
2907
2907
|
setup(e) {
|
|
2908
|
-
const t = e, n =
|
|
2908
|
+
const t = e, n = k(() => {
|
|
2909
2909
|
if (typeof t.size == "number" && t.size > 0)
|
|
2910
2910
|
return `${t.size}px`;
|
|
2911
2911
|
if (typeof t.size == "string") {
|
|
@@ -2913,8 +2913,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2913
2913
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2914
2914
|
return `${a}px`;
|
|
2915
2915
|
}
|
|
2916
|
-
return
|
|
2917
|
-
}), r =
|
|
2916
|
+
return ie;
|
|
2917
|
+
}), r = k(() => ({
|
|
2918
2918
|
boxSizing: "border-box",
|
|
2919
2919
|
color: t.color,
|
|
2920
2920
|
display: t.display,
|
|
@@ -2922,14 +2922,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2922
2922
|
lineHeight: "0",
|
|
2923
2923
|
width: n.value
|
|
2924
2924
|
}));
|
|
2925
|
-
return (i, a) => (
|
|
2925
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
2926
2926
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2927
2927
|
class: "kui-icon copy-icon",
|
|
2928
2928
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2929
|
-
style:
|
|
2929
|
+
style: Se(r.value)
|
|
2930
2930
|
}, {
|
|
2931
2931
|
default: b(() => [
|
|
2932
|
-
(
|
|
2932
|
+
(m(), S("svg", {
|
|
2933
2933
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2934
2934
|
"data-testid": "kui-icon-svg-copy-icon",
|
|
2935
2935
|
fill: "none",
|
|
@@ -2939,17 +2939,116 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
2939
2939
|
width: "100%",
|
|
2940
2940
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2941
2941
|
}, [
|
|
2942
|
-
e.title ? (
|
|
2943
|
-
|
|
2944
|
-
], 8,
|
|
2942
|
+
e.title ? (m(), S("title", Ho, $(e.title), 1)) : D("", !0),
|
|
2943
|
+
Vo
|
|
2944
|
+
], 8, Po))
|
|
2945
|
+
]),
|
|
2946
|
+
_: 1
|
|
2947
|
+
}, 8, ["aria-hidden", "style"]));
|
|
2948
|
+
}
|
|
2949
|
+
}), Yo = /* @__PURE__ */ Te(zo, [["__scopeId", "data-v-4399d24a"]]), Wo = (e) => (Ie("data-v-cf4e7d0b"), e = e(), Ee(), e), Jo = ["aria-hidden"], Go = {
|
|
2950
|
+
key: 0,
|
|
2951
|
+
"data-testid": "kui-icon-svg-title"
|
|
2952
|
+
}, Zo = /* @__PURE__ */ Wo(() => /* @__PURE__ */ L("path", {
|
|
2953
|
+
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
2954
|
+
fill: "currentColor"
|
|
2955
|
+
}, null, -1)), Qo = /* @__PURE__ */ P({
|
|
2956
|
+
__name: "MoreIcon",
|
|
2957
|
+
props: {
|
|
2958
|
+
/** The accessibility text provided to screen readers */
|
|
2959
|
+
title: {
|
|
2960
|
+
type: String,
|
|
2961
|
+
required: !1,
|
|
2962
|
+
default: ""
|
|
2963
|
+
},
|
|
2964
|
+
/** The icon color. Defaults to `currentColor` which inherits text color from the parent element */
|
|
2965
|
+
color: {
|
|
2966
|
+
type: String,
|
|
2967
|
+
required: !1,
|
|
2968
|
+
default: "currentColor"
|
|
2969
|
+
},
|
|
2970
|
+
/** The CSS display property for the icon. Defaults to `block` */
|
|
2971
|
+
display: {
|
|
2972
|
+
type: String,
|
|
2973
|
+
required: !1,
|
|
2974
|
+
default: "block"
|
|
2975
|
+
},
|
|
2976
|
+
/** Whether the icon is just eye-candy or is meaningful to the page (should screen-readers ignore the icon?) */
|
|
2977
|
+
decorative: {
|
|
2978
|
+
type: Boolean,
|
|
2979
|
+
required: !1,
|
|
2980
|
+
default: !1
|
|
2981
|
+
},
|
|
2982
|
+
/** The icon size */
|
|
2983
|
+
size: {
|
|
2984
|
+
type: [Number, String],
|
|
2985
|
+
required: !1,
|
|
2986
|
+
default: ie,
|
|
2987
|
+
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2988
|
+
validator: (e) => {
|
|
2989
|
+
if (typeof e == "number" && e > 0)
|
|
2990
|
+
return !0;
|
|
2991
|
+
if (typeof e == "string") {
|
|
2992
|
+
const t = String(e).replace(/px/gi, ""), n = Number(t);
|
|
2993
|
+
if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
|
|
2994
|
+
return !0;
|
|
2995
|
+
}
|
|
2996
|
+
return !1;
|
|
2997
|
+
}
|
|
2998
|
+
},
|
|
2999
|
+
/** The HTML tag to utilize for the icon's wrapper element. Defaults to `span` */
|
|
3000
|
+
as: {
|
|
3001
|
+
type: String,
|
|
3002
|
+
required: !1,
|
|
3003
|
+
default: "span"
|
|
3004
|
+
}
|
|
3005
|
+
},
|
|
3006
|
+
setup(e) {
|
|
3007
|
+
const t = e, n = k(() => {
|
|
3008
|
+
if (typeof t.size == "number" && t.size > 0)
|
|
3009
|
+
return `${t.size}px`;
|
|
3010
|
+
if (typeof t.size == "string") {
|
|
3011
|
+
const i = String(t.size).replace(/px/gi, ""), a = Number(i);
|
|
3012
|
+
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
3013
|
+
return `${a}px`;
|
|
3014
|
+
}
|
|
3015
|
+
return ie;
|
|
3016
|
+
}), r = k(() => ({
|
|
3017
|
+
boxSizing: "border-box",
|
|
3018
|
+
color: t.color,
|
|
3019
|
+
display: t.display,
|
|
3020
|
+
height: n.value,
|
|
3021
|
+
lineHeight: "0",
|
|
3022
|
+
width: n.value
|
|
3023
|
+
}));
|
|
3024
|
+
return (i, a) => (m(), M(ce(e.as), {
|
|
3025
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3026
|
+
class: "kui-icon more-icon",
|
|
3027
|
+
"data-testid": "kui-icon-wrapper-more-icon",
|
|
3028
|
+
style: Se(r.value)
|
|
3029
|
+
}, {
|
|
3030
|
+
default: b(() => [
|
|
3031
|
+
(m(), S("svg", {
|
|
3032
|
+
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3033
|
+
"data-testid": "kui-icon-svg-more-icon",
|
|
3034
|
+
fill: "none",
|
|
3035
|
+
height: "100%",
|
|
3036
|
+
role: "img",
|
|
3037
|
+
viewBox: "0 0 24 24",
|
|
3038
|
+
width: "100%",
|
|
3039
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
3040
|
+
}, [
|
|
3041
|
+
e.title ? (m(), S("title", Go, $(e.title), 1)) : D("", !0),
|
|
3042
|
+
Zo
|
|
3043
|
+
], 8, Jo))
|
|
2945
3044
|
]),
|
|
2946
3045
|
_: 1
|
|
2947
3046
|
}, 8, ["aria-hidden", "style"]));
|
|
2948
3047
|
}
|
|
2949
|
-
}),
|
|
3048
|
+
}), Xo = /* @__PURE__ */ Te(Qo, [["__scopeId", "data-v-cf4e7d0b"]]), el = {
|
|
2950
3049
|
class: "config-card-title",
|
|
2951
3050
|
"data-testid": "config-card-title"
|
|
2952
|
-
},
|
|
3051
|
+
}, tl = { class: "config-card-actions" }, nl = ["href"], rl = { class: "config-card-details-section" }, il = /* @__PURE__ */ P({
|
|
2953
3052
|
__name: "EntityBaseConfigCard",
|
|
2954
3053
|
props: {
|
|
2955
3054
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3027,8 +3126,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3027
3126
|
},
|
|
3028
3127
|
emits: ["loading", "fetch:success", "fetch:error"],
|
|
3029
3128
|
setup(e, { emit: t }) {
|
|
3030
|
-
var
|
|
3031
|
-
const n = t, r = e, { i18n: { t: i } } =
|
|
3129
|
+
var I;
|
|
3130
|
+
const n = t, r = e, { i18n: { t: i } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { convertKeyToTitle: o } = Y.useStringHelpers(), { axiosInstance: l } = Y.useAxios((I = r.config) == null ? void 0 : I.axiosRequestConfig), s = [
|
|
3032
3131
|
{
|
|
3033
3132
|
label: i("baseConfigCard.general.structuredFormat"),
|
|
3034
3133
|
value: "structured",
|
|
@@ -3042,11 +3141,11 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3042
3141
|
label: "YAML",
|
|
3043
3142
|
value: "yaml"
|
|
3044
3143
|
}
|
|
3045
|
-
],
|
|
3046
|
-
|
|
3047
|
-
},
|
|
3144
|
+
], c = R("structured"), d = (f) => {
|
|
3145
|
+
c.value = f == null ? void 0 : f.value;
|
|
3146
|
+
}, u = {
|
|
3048
3147
|
id: {
|
|
3049
|
-
type:
|
|
3148
|
+
type: H.ID,
|
|
3050
3149
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
3051
3150
|
order: 0,
|
|
3052
3151
|
section: re.Basic
|
|
@@ -3056,97 +3155,97 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3056
3155
|
section: re.Basic
|
|
3057
3156
|
},
|
|
3058
3157
|
enabled: {
|
|
3059
|
-
type:
|
|
3158
|
+
type: H.BadgeStatus,
|
|
3060
3159
|
order: 2,
|
|
3061
3160
|
section: re.Basic
|
|
3062
3161
|
},
|
|
3063
3162
|
updated_at: {
|
|
3064
|
-
type:
|
|
3163
|
+
type: H.Date,
|
|
3065
3164
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
3066
3165
|
order: 3,
|
|
3067
3166
|
section: re.Basic
|
|
3068
3167
|
},
|
|
3069
3168
|
created_at: {
|
|
3070
|
-
type:
|
|
3169
|
+
type: H.Date,
|
|
3071
3170
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
3072
3171
|
order: 4,
|
|
3073
3172
|
section: re.Basic
|
|
3074
3173
|
},
|
|
3075
3174
|
tags: {
|
|
3076
|
-
type:
|
|
3175
|
+
type: H.BadgeTag,
|
|
3077
3176
|
order: -1,
|
|
3078
3177
|
// the last property displayed
|
|
3079
3178
|
section: re.Basic
|
|
3080
3179
|
}
|
|
3081
|
-
},
|
|
3082
|
-
var O, x,
|
|
3180
|
+
}, g = R(!1), p = R(!1), y = R(""), v = R({}), _ = k(() => {
|
|
3181
|
+
var O, x, U;
|
|
3083
3182
|
if (!v.value)
|
|
3084
3183
|
return [];
|
|
3085
|
-
const f = [],
|
|
3086
|
-
for (const
|
|
3087
|
-
const
|
|
3088
|
-
let q =
|
|
3089
|
-
(
|
|
3184
|
+
const f = [], E = Object.keys(v.value).length;
|
|
3185
|
+
for (const F in v.value) {
|
|
3186
|
+
const A = (x = (O = r.configSchema) == null ? void 0 : O[F]) == null ? void 0 : x.order, j = (U = u[F]) == null ? void 0 : U.order;
|
|
3187
|
+
let q = E;
|
|
3188
|
+
(j || j === 0) && (q = j === -1 ? E + 1 : j), A && (q = A === -1 ? E + 1 : A), f.push([F, q]);
|
|
3090
3189
|
}
|
|
3091
|
-
return f.sort(function(
|
|
3092
|
-
return
|
|
3093
|
-
}), f.map((
|
|
3094
|
-
var
|
|
3095
|
-
const
|
|
3190
|
+
return f.sort(function(F, A) {
|
|
3191
|
+
return F[1] - A[1];
|
|
3192
|
+
}), f.map((F) => {
|
|
3193
|
+
var he, lt;
|
|
3194
|
+
const A = F[0], j = (he = v.value) == null ? void 0 : he[A], q = ((lt = r.configSchema) == null ? void 0 : lt[A]) || {}, J = u[A];
|
|
3096
3195
|
return {
|
|
3097
|
-
key:
|
|
3098
|
-
value:
|
|
3196
|
+
key: A,
|
|
3197
|
+
value: j,
|
|
3099
3198
|
hidden: q.hidden || !1,
|
|
3100
|
-
type: q.type ?? ((
|
|
3101
|
-
label: q.label ?? ((
|
|
3102
|
-
tooltip: q.tooltip ?? ((
|
|
3103
|
-
section: q.section ?? ((
|
|
3199
|
+
type: q.type ?? ((J == null ? void 0 : J.type) || H.Text),
|
|
3200
|
+
label: q.label ?? ((J == null ? void 0 : J.label) || o(A)),
|
|
3201
|
+
tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
|
|
3202
|
+
section: q.section ?? ((J == null ? void 0 : J.section) || re.Advanced)
|
|
3104
3203
|
};
|
|
3105
|
-
}).filter((
|
|
3106
|
-
}), N =
|
|
3107
|
-
var x,
|
|
3204
|
+
}).filter((F) => !F.hidden && F.key !== r.pluginConfigKey);
|
|
3205
|
+
}), N = k(() => {
|
|
3206
|
+
var x, U;
|
|
3108
3207
|
if (!v.value || !r.pluginConfigKey)
|
|
3109
3208
|
return [];
|
|
3110
|
-
const f = v.value[r.pluginConfigKey] || {},
|
|
3111
|
-
for (const
|
|
3112
|
-
const
|
|
3113
|
-
let q =
|
|
3114
|
-
|
|
3209
|
+
const f = v.value[r.pluginConfigKey] || {}, E = Object.keys(f).length, O = [];
|
|
3210
|
+
for (const F in f) {
|
|
3211
|
+
const A = (U = (x = r.pluginConfigSchema) == null ? void 0 : x[F]) == null ? void 0 : U.order, j = f[F];
|
|
3212
|
+
let q = j != null && j !== "" ? E - 1 : E;
|
|
3213
|
+
A && (q = A === -1 ? E + 1 : A), O.push([F, q]);
|
|
3115
3214
|
}
|
|
3116
|
-
return O.sort(function(
|
|
3117
|
-
return
|
|
3118
|
-
}), O.map((
|
|
3119
|
-
var
|
|
3120
|
-
const
|
|
3215
|
+
return O.sort(function(F, A) {
|
|
3216
|
+
return F[1] - A[1];
|
|
3217
|
+
}), O.map((F) => {
|
|
3218
|
+
var J;
|
|
3219
|
+
const A = F[0], j = f[A], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[A]) || {};
|
|
3121
3220
|
return {
|
|
3122
|
-
key:
|
|
3123
|
-
value:
|
|
3221
|
+
key: A,
|
|
3222
|
+
value: j,
|
|
3124
3223
|
hidden: q.hidden || !1,
|
|
3125
|
-
type: q.type ??
|
|
3126
|
-
label: q.label ?? o(
|
|
3224
|
+
type: q.type ?? H.Text,
|
|
3225
|
+
label: q.label ?? o(A),
|
|
3127
3226
|
tooltip: q.tooltip ?? void 0,
|
|
3128
3227
|
section: re.Plugin
|
|
3129
3228
|
};
|
|
3130
|
-
}).filter((
|
|
3131
|
-
}),
|
|
3132
|
-
var f,
|
|
3229
|
+
}).filter((F) => !F.hidden);
|
|
3230
|
+
}), w = k(() => {
|
|
3231
|
+
var f, E, O, x;
|
|
3133
3232
|
return {
|
|
3134
|
-
basic: (f = _.value) == null ? void 0 : f.filter((
|
|
3135
|
-
advanced: (
|
|
3136
|
-
plugin: (x = N.value) == null ? void 0 : x.concat((O = _.value) == null ? void 0 : O.filter((
|
|
3233
|
+
basic: (f = _.value) == null ? void 0 : f.filter((U) => U.section === re.Basic),
|
|
3234
|
+
advanced: (E = _.value) == null ? void 0 : E.filter((U) => U.section === re.Advanced),
|
|
3235
|
+
plugin: (x = N.value) == null ? void 0 : x.concat((O = _.value) == null ? void 0 : O.filter((U) => U.section === re.Plugin))
|
|
3137
3236
|
};
|
|
3138
|
-
}), Z =
|
|
3237
|
+
}), Z = k(() => {
|
|
3139
3238
|
const f = [];
|
|
3140
|
-
return
|
|
3141
|
-
}), h =
|
|
3142
|
-
var
|
|
3239
|
+
return w.value.basic.length && f.push("basic"), w.value.advanced.length && f.push("advanced"), w.value.plugin.length && f.push("plugin"), f;
|
|
3240
|
+
}), h = k(() => {
|
|
3241
|
+
var E, O;
|
|
3143
3242
|
let f = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3144
|
-
return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((
|
|
3243
|
+
return r.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.controlPlaneId) || "") : r.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), f = f.replace(/{id}/gi, r.config.entityId), f;
|
|
3145
3244
|
});
|
|
3146
|
-
return Ae(
|
|
3245
|
+
return Ae(g, (f) => {
|
|
3147
3246
|
n("loading", f);
|
|
3148
3247
|
}, { immediate: !0 }), Lt(async () => {
|
|
3149
|
-
p.value = !1,
|
|
3248
|
+
p.value = !1, g.value = !0;
|
|
3150
3249
|
try {
|
|
3151
3250
|
const { data: f } = await l.get(h.value);
|
|
3152
3251
|
if (r.dataKey)
|
|
@@ -3160,35 +3259,35 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3160
3259
|
v.value && typeof v.value[O] > "u" && (v.value[O] = null);
|
|
3161
3260
|
}), n("fetch:success", f);
|
|
3162
3261
|
} catch (f) {
|
|
3163
|
-
const
|
|
3164
|
-
y.value =
|
|
3262
|
+
const E = a(f);
|
|
3263
|
+
y.value = E.startsWith("code") ? i("baseConfigCard.errors.load") : E, p.value = !0, n("fetch:error", f);
|
|
3165
3264
|
} finally {
|
|
3166
|
-
|
|
3265
|
+
g.value = !1;
|
|
3167
3266
|
}
|
|
3168
|
-
}), (f,
|
|
3169
|
-
const O = K("KLabel"), x = K("KSelect"),
|
|
3170
|
-
return
|
|
3267
|
+
}), (f, E) => {
|
|
3268
|
+
const O = K("KLabel"), x = K("KSelect"), U = K("KButton"), F = K("KSkeleton"), A = K("KEmptyState"), j = K("KCard");
|
|
3269
|
+
return m(), M(j, {
|
|
3171
3270
|
class: "kong-ui-entity-base-config-card",
|
|
3172
3271
|
"title-tag": e.titleTag
|
|
3173
|
-
},
|
|
3272
|
+
}, _e({
|
|
3174
3273
|
actions: b(() => [
|
|
3175
|
-
L("div",
|
|
3274
|
+
L("div", tl, [
|
|
3176
3275
|
z(f.$slots, "actions", {}, void 0, !0),
|
|
3177
|
-
|
|
3276
|
+
B(O, {
|
|
3178
3277
|
class: "config-format-select-label",
|
|
3179
3278
|
"data-testid": "config-format-select-label"
|
|
3180
3279
|
}, {
|
|
3181
3280
|
default: b(() => [
|
|
3182
|
-
|
|
3281
|
+
V($(e.label), 1)
|
|
3183
3282
|
]),
|
|
3184
3283
|
_: 1
|
|
3185
3284
|
}),
|
|
3186
|
-
|
|
3285
|
+
B(x, {
|
|
3187
3286
|
"data-testid": "select-config-format",
|
|
3188
3287
|
items: s,
|
|
3189
3288
|
onChange: d
|
|
3190
3289
|
}),
|
|
3191
|
-
e.configCardDoc ? (
|
|
3290
|
+
e.configCardDoc ? (m(), M(U, {
|
|
3192
3291
|
key: 0,
|
|
3193
3292
|
appearance: "tertiary",
|
|
3194
3293
|
class: "book-icon",
|
|
@@ -3200,20 +3299,20 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3200
3299
|
rel: "noopener",
|
|
3201
3300
|
target: "_blank"
|
|
3202
3301
|
}, [
|
|
3203
|
-
|
|
3204
|
-
], 8,
|
|
3302
|
+
B(T(To), { size: T(Fr) }, null, 8, ["size"])
|
|
3303
|
+
], 8, nl)
|
|
3205
3304
|
]),
|
|
3206
3305
|
_: 1
|
|
3207
|
-
})) :
|
|
3306
|
+
})) : D("", !0)
|
|
3208
3307
|
])
|
|
3209
3308
|
]),
|
|
3210
3309
|
default: b(() => [
|
|
3211
|
-
|
|
3310
|
+
g.value ? (m(), M(F, {
|
|
3212
3311
|
key: 0,
|
|
3213
3312
|
"data-testid": "config-card-loader",
|
|
3214
3313
|
"table-columns": 2,
|
|
3215
3314
|
type: "table"
|
|
3216
|
-
})) : p.value ? (
|
|
3315
|
+
})) : p.value ? (m(), M(A, {
|
|
3217
3316
|
key: 1,
|
|
3218
3317
|
"data-testid": "config-card-fetch-error",
|
|
3219
3318
|
"icon-variant": "error"
|
|
@@ -3222,22 +3321,22 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3222
3321
|
L("h3", null, $(y.value), 1)
|
|
3223
3322
|
]),
|
|
3224
3323
|
_: 1
|
|
3225
|
-
})) :
|
|
3226
|
-
L("div",
|
|
3227
|
-
|
|
3324
|
+
})) : D("", !0),
|
|
3325
|
+
L("div", rl, [
|
|
3326
|
+
B(yo, {
|
|
3228
3327
|
config: e.config,
|
|
3229
3328
|
"fetcher-url": h.value,
|
|
3230
|
-
format:
|
|
3329
|
+
format: c.value,
|
|
3231
3330
|
"prop-list-types": Z.value,
|
|
3232
|
-
"property-collections":
|
|
3331
|
+
"property-collections": w.value,
|
|
3233
3332
|
record: v.value
|
|
3234
|
-
},
|
|
3235
|
-
|
|
3333
|
+
}, _e({ _: 2 }, [
|
|
3334
|
+
oe(Object.keys(f.$slots), (q) => ({
|
|
3236
3335
|
name: q,
|
|
3237
|
-
fn: b(({ row:
|
|
3336
|
+
fn: b(({ row: J, rowValue: he }) => [
|
|
3238
3337
|
z(f.$slots, q, {
|
|
3239
|
-
row:
|
|
3240
|
-
rowValue:
|
|
3338
|
+
row: J,
|
|
3339
|
+
rowValue: he
|
|
3241
3340
|
}, void 0, !0)
|
|
3242
3341
|
])
|
|
3243
3342
|
}))
|
|
@@ -3249,9 +3348,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3249
3348
|
e.hideTitle ? void 0 : {
|
|
3250
3349
|
name: "title",
|
|
3251
3350
|
fn: b(() => [
|
|
3252
|
-
L("span",
|
|
3351
|
+
L("span", el, [
|
|
3253
3352
|
z(f.$slots, "title", {}, () => [
|
|
3254
|
-
|
|
3353
|
+
V($(T(i)("baseConfigCard.title")), 1)
|
|
3255
3354
|
], !0)
|
|
3256
3355
|
])
|
|
3257
3356
|
]),
|
|
@@ -3260,10 +3359,10 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3260
3359
|
]), 1032, ["title-tag"]);
|
|
3261
3360
|
};
|
|
3262
3361
|
}
|
|
3263
|
-
}),
|
|
3362
|
+
}), es = /* @__PURE__ */ ae(il, [["__scopeId", "data-v-f40a683b"]]), al = ["novalidate"], ol = {
|
|
3264
3363
|
class: "form-actions",
|
|
3265
3364
|
"data-testid": "form-actions"
|
|
3266
|
-
},
|
|
3365
|
+
}, ll = /* @__PURE__ */ P({
|
|
3267
3366
|
__name: "EntityBaseForm",
|
|
3268
3367
|
props: {
|
|
3269
3368
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3325,19 +3424,19 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3325
3424
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3326
3425
|
setup(e, { emit: t }) {
|
|
3327
3426
|
var Z;
|
|
3328
|
-
const n = t, r = e, i = jn(), { i18n: { t: a } } =
|
|
3329
|
-
var
|
|
3427
|
+
const n = t, r = e, i = jn(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((Z = r.config) == null ? void 0 : Z.axiosRequestConfig), s = R(!1), c = R(!1), d = R(""), u = k(() => r.canSubmit === !1 || r.isReadonly), g = R(!1), p = k(() => {
|
|
3428
|
+
var I, f;
|
|
3330
3429
|
let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3331
|
-
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((
|
|
3430
|
+
return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
|
|
3332
3431
|
}), y = () => {
|
|
3333
|
-
|
|
3432
|
+
g.value = !g.value;
|
|
3334
3433
|
}, v = () => {
|
|
3335
3434
|
r.config.cancelRoute ? i.push(r.config.cancelRoute) : _();
|
|
3336
3435
|
}, _ = () => {
|
|
3337
3436
|
n("cancel");
|
|
3338
3437
|
}, N = () => {
|
|
3339
|
-
|
|
3340
|
-
},
|
|
3438
|
+
u.value || n("submit");
|
|
3439
|
+
}, w = R([
|
|
3341
3440
|
{
|
|
3342
3441
|
title: a("baseForm.configuration.yaml"),
|
|
3343
3442
|
hash: "#yaml"
|
|
@@ -3352,25 +3451,25 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3352
3451
|
}, { immediate: !0 }), Lt(async () => {
|
|
3353
3452
|
if (r.editId)
|
|
3354
3453
|
try {
|
|
3355
|
-
|
|
3454
|
+
c.value = !1, s.value = !0;
|
|
3356
3455
|
const { data: h } = await l.get(p.value);
|
|
3357
3456
|
n("fetch:success", h);
|
|
3358
3457
|
} catch (h) {
|
|
3359
|
-
const
|
|
3360
|
-
d.value =
|
|
3458
|
+
const I = o(h);
|
|
3459
|
+
d.value = I.startsWith("code") ? a("baseForm.errors.edit") : I, c.value = !0, n("fetch:error", h);
|
|
3361
3460
|
} finally {
|
|
3362
3461
|
s.value = !1;
|
|
3363
3462
|
}
|
|
3364
|
-
}), (h,
|
|
3365
|
-
const f = K("KSkeleton"),
|
|
3366
|
-
return
|
|
3463
|
+
}), (h, I) => {
|
|
3464
|
+
const f = K("KSkeleton"), E = K("KEmptyState"), O = K("KAlert"), x = K("KButton"), U = K("KTabs"), F = K("KSlideout"), A = K("KCard");
|
|
3465
|
+
return m(), M(A, { class: "kong-ui-entity-base-form" }, {
|
|
3367
3466
|
default: b(() => [
|
|
3368
|
-
s.value ? (
|
|
3467
|
+
s.value ? (m(), M(f, {
|
|
3369
3468
|
key: 0,
|
|
3370
3469
|
type: "form"
|
|
3371
|
-
})) :
|
|
3470
|
+
})) : c.value ? (m(), M(E, {
|
|
3372
3471
|
key: 1,
|
|
3373
|
-
"action-button-text":
|
|
3472
|
+
"action-button-text": T(a)("baseForm.actions.back"),
|
|
3374
3473
|
"data-testid": "form-fetch-error",
|
|
3375
3474
|
"icon-variant": "error",
|
|
3376
3475
|
onClickAction: v
|
|
@@ -3379,74 +3478,74 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3379
3478
|
L("h3", null, $(d.value), 1)
|
|
3380
3479
|
]),
|
|
3381
3480
|
_: 1
|
|
3382
|
-
}, 8, ["action-button-text"])) : (
|
|
3481
|
+
}, 8, ["action-button-text"])) : (m(), S("form", {
|
|
3383
3482
|
key: 2,
|
|
3384
3483
|
"data-testid": "form-content",
|
|
3385
3484
|
novalidate: r.noValidate,
|
|
3386
|
-
onReset:
|
|
3387
|
-
onSubmit:
|
|
3485
|
+
onReset: Ye(_, ["prevent"]),
|
|
3486
|
+
onSubmit: Ye(N, ["prevent"])
|
|
3388
3487
|
}, [
|
|
3389
3488
|
z(h.$slots, "default", {}, void 0, !0),
|
|
3390
|
-
e.errorMessage ? (
|
|
3489
|
+
e.errorMessage ? (m(), M(O, {
|
|
3391
3490
|
key: 0,
|
|
3392
3491
|
appearance: "danger",
|
|
3393
3492
|
"data-testid": "form-error",
|
|
3394
3493
|
message: e.errorMessage
|
|
3395
|
-
}, null, 8, ["message"])) :
|
|
3396
|
-
L("div",
|
|
3494
|
+
}, null, 8, ["message"])) : D("", !0),
|
|
3495
|
+
L("div", ol, [
|
|
3397
3496
|
z(h.$slots, "form-actions", {}, () => [
|
|
3398
|
-
|
|
3497
|
+
B(x, {
|
|
3399
3498
|
appearance: "tertiary",
|
|
3400
3499
|
"data-testid": "form-view-configuration",
|
|
3401
|
-
onClick:
|
|
3500
|
+
onClick: I[0] || (I[0] = (j) => y())
|
|
3402
3501
|
}, {
|
|
3403
3502
|
default: b(() => [
|
|
3404
|
-
|
|
3503
|
+
V($(T(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3405
3504
|
]),
|
|
3406
3505
|
_: 1
|
|
3407
3506
|
}),
|
|
3408
|
-
|
|
3507
|
+
B(x, {
|
|
3409
3508
|
appearance: "secondary",
|
|
3410
3509
|
"data-testid": "form-cancel",
|
|
3411
3510
|
disabled: e.isReadonly,
|
|
3412
3511
|
type: "reset"
|
|
3413
3512
|
}, {
|
|
3414
3513
|
default: b(() => [
|
|
3415
|
-
|
|
3514
|
+
V($(T(a)("baseForm.actions.cancel")), 1)
|
|
3416
3515
|
]),
|
|
3417
3516
|
_: 1
|
|
3418
3517
|
}, 8, ["disabled"]),
|
|
3419
|
-
|
|
3518
|
+
B(x, {
|
|
3420
3519
|
appearance: "primary",
|
|
3421
3520
|
"data-testid": "form-submit",
|
|
3422
|
-
disabled:
|
|
3521
|
+
disabled: u.value,
|
|
3423
3522
|
type: "submit"
|
|
3424
3523
|
}, {
|
|
3425
3524
|
default: b(() => [
|
|
3426
|
-
|
|
3525
|
+
V($(T(a)("baseForm.actions.save")), 1)
|
|
3427
3526
|
]),
|
|
3428
3527
|
_: 1
|
|
3429
3528
|
}, 8, ["disabled"])
|
|
3430
3529
|
], !0)
|
|
3431
3530
|
])
|
|
3432
|
-
], 40,
|
|
3433
|
-
|
|
3531
|
+
], 40, al)),
|
|
3532
|
+
B(F, {
|
|
3434
3533
|
"close-on-blur": !1,
|
|
3435
3534
|
"data-testid": "form-view-configuration-slideout",
|
|
3436
3535
|
"has-overlay": !1,
|
|
3437
3536
|
"offset-top": 60,
|
|
3438
|
-
title:
|
|
3439
|
-
visible:
|
|
3440
|
-
onClose:
|
|
3537
|
+
title: T(a)("baseForm.configuration.title"),
|
|
3538
|
+
visible: g.value,
|
|
3539
|
+
onClose: I[1] || (I[1] = (j) => y())
|
|
3441
3540
|
}, {
|
|
3442
3541
|
default: b(() => [
|
|
3443
|
-
L("div", null, $(
|
|
3444
|
-
|
|
3542
|
+
L("div", null, $(T(a)("baseForm.configuration.message")), 1),
|
|
3543
|
+
B(U, {
|
|
3445
3544
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3446
|
-
tabs:
|
|
3545
|
+
tabs: w.value
|
|
3447
3546
|
}, {
|
|
3448
3547
|
json: b(() => [
|
|
3449
|
-
|
|
3548
|
+
B(Ut, {
|
|
3450
3549
|
config: e.config,
|
|
3451
3550
|
"fetcher-url": p.value,
|
|
3452
3551
|
"json-record": r.formFields,
|
|
@@ -3454,7 +3553,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3454
3553
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3455
3554
|
]),
|
|
3456
3555
|
yaml: b(() => [
|
|
3457
|
-
|
|
3556
|
+
B(Tn, {
|
|
3458
3557
|
"yaml-record": r.formFields
|
|
3459
3558
|
}, null, 8, ["yaml-record"])
|
|
3460
3559
|
]),
|
|
@@ -3468,7 +3567,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3468
3567
|
});
|
|
3469
3568
|
};
|
|
3470
3569
|
}
|
|
3471
|
-
}),
|
|
3570
|
+
}), ts = /* @__PURE__ */ ae(ll, [["__scopeId", "data-v-3def74fe"]]), sl = ["data-truncate"], ul = /* @__PURE__ */ P({
|
|
3472
3571
|
__name: "EntityBaseTableCell",
|
|
3473
3572
|
props: {
|
|
3474
3573
|
keyName: {
|
|
@@ -3485,29 +3584,29 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3485
3584
|
}
|
|
3486
3585
|
},
|
|
3487
3586
|
setup(e) {
|
|
3488
|
-
const t = e, n =
|
|
3587
|
+
const t = e, n = k(() => {
|
|
3489
3588
|
var _;
|
|
3490
3589
|
return ((_ = t.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3491
|
-
}), r =
|
|
3590
|
+
}), r = k(() => {
|
|
3492
3591
|
var _;
|
|
3493
3592
|
return ((_ = n.value) == null ? void 0 : _.querySelector('[data-truncate="true"]')) || null;
|
|
3494
|
-
}), i =
|
|
3495
|
-
var N,
|
|
3593
|
+
}), i = k(() => {
|
|
3594
|
+
var N, w;
|
|
3496
3595
|
const _ = (N = t.rowEl) == null ? void 0 : N.querySelectorAll("td");
|
|
3497
|
-
return _ ? ((
|
|
3498
|
-
}), a =
|
|
3596
|
+
return _ ? ((w = _[0]) == null ? void 0 : w.getAttribute("data-testid")) === t.keyName : !1;
|
|
3597
|
+
}), a = k(() => i.value || t.tooltip);
|
|
3499
3598
|
let o;
|
|
3500
3599
|
const l = () => {
|
|
3501
3600
|
o && (o.disconnect(), o = void 0);
|
|
3502
3601
|
}, s = () => {
|
|
3503
|
-
var N,
|
|
3602
|
+
var N, w, Z;
|
|
3504
3603
|
let _ = ((N = n.value) == null ? void 0 : N.clientWidth) || 0;
|
|
3505
3604
|
if (n.value && "getComputedStyle" in window) {
|
|
3506
3605
|
const h = window.getComputedStyle(n.value);
|
|
3507
3606
|
_ -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
|
|
3508
3607
|
}
|
|
3509
|
-
d.value = ((
|
|
3510
|
-
},
|
|
3608
|
+
d.value = ((w = r.value) == null ? void 0 : w.getBoundingClientRect().width) || 0, u.value = _, g.value = ((Z = c.value) == null ? void 0 : Z.innerText) || "";
|
|
3609
|
+
}, c = R({}), d = R(0), u = R(0), g = R(""), p = k(() => [r.value, n.value]), y = Ae(
|
|
3511
3610
|
p,
|
|
3512
3611
|
(_) => {
|
|
3513
3612
|
if (a.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3521,40 +3620,40 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3521
3620
|
}
|
|
3522
3621
|
},
|
|
3523
3622
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3524
|
-
), v =
|
|
3623
|
+
), v = k(() => a.value ? d.value > u.value : !1);
|
|
3525
3624
|
return Nn(() => {
|
|
3526
3625
|
s();
|
|
3527
|
-
}),
|
|
3626
|
+
}), Bn(() => {
|
|
3528
3627
|
y();
|
|
3529
3628
|
}), (_, N) => {
|
|
3530
|
-
const
|
|
3531
|
-
return
|
|
3629
|
+
const w = K("KTooltip");
|
|
3630
|
+
return m(), S("span", {
|
|
3532
3631
|
ref_key: "contentRef",
|
|
3533
|
-
ref:
|
|
3632
|
+
ref: c,
|
|
3534
3633
|
class: "content-wrapper"
|
|
3535
3634
|
}, [
|
|
3536
|
-
a.value ? (
|
|
3635
|
+
a.value ? (m(), S("span", {
|
|
3537
3636
|
key: 0,
|
|
3538
3637
|
"data-truncate": a.value || void 0
|
|
3539
3638
|
}, [
|
|
3540
|
-
|
|
3639
|
+
B(w, {
|
|
3541
3640
|
"max-width": "300",
|
|
3542
3641
|
placement: "bottomStart",
|
|
3543
|
-
text: v.value ?
|
|
3642
|
+
text: v.value ? g.value : ""
|
|
3544
3643
|
}, {
|
|
3545
3644
|
default: b(() => [
|
|
3546
3645
|
z(_.$slots, "default", {}, void 0, !0)
|
|
3547
3646
|
]),
|
|
3548
3647
|
_: 3
|
|
3549
3648
|
}, 8, ["text"])
|
|
3550
|
-
], 8,
|
|
3649
|
+
], 8, sl)) : z(_.$slots, "default", { key: 1 }, void 0, !0)
|
|
3551
3650
|
], 512);
|
|
3552
3651
|
};
|
|
3553
3652
|
}
|
|
3554
|
-
}),
|
|
3653
|
+
}), cl = /* @__PURE__ */ ae(ul, [["__scopeId", "data-v-471ce76e"]]), dl = { class: "toolbar-container" }, fl = {
|
|
3555
3654
|
key: 0,
|
|
3556
3655
|
class: "toolbar-button-container"
|
|
3557
|
-
},
|
|
3656
|
+
}, pl = ["data-testid"], hl = /* @__PURE__ */ P({
|
|
3558
3657
|
__name: "EntityBaseTable",
|
|
3559
3658
|
props: {
|
|
3560
3659
|
// table header configuration
|
|
@@ -3672,8 +3771,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3672
3771
|
},
|
|
3673
3772
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3674
3773
|
setup(e, { emit: t }) {
|
|
3675
|
-
const n = e, r = t, { i18n: { t: i } } =
|
|
3676
|
-
var f,
|
|
3774
|
+
const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), a = k(() => {
|
|
3775
|
+
var f, E;
|
|
3677
3776
|
return typeof n.errorMessage == "string" ? {
|
|
3678
3777
|
hasError: !!n.errorMessage,
|
|
3679
3778
|
title: n.errorMessage,
|
|
@@ -3681,9 +3780,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3681
3780
|
} : {
|
|
3682
3781
|
hasError: !!n.errorMessage,
|
|
3683
3782
|
title: (f = n.errorMessage) == null ? void 0 : f.title,
|
|
3684
|
-
message: (
|
|
3783
|
+
message: (E = n.errorMessage) == null ? void 0 : E.message
|
|
3685
3784
|
};
|
|
3686
|
-
}), o =
|
|
3785
|
+
}), o = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (f) => f.hasData || !!n.query, s = k(() => {
|
|
3687
3786
|
const f = [];
|
|
3688
3787
|
return Object.keys(n.tableHeaders).forEach((O) => {
|
|
3689
3788
|
const x = n.tableHeaders[O];
|
|
@@ -3697,60 +3796,60 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3697
3796
|
key: "actions",
|
|
3698
3797
|
hideLabel: !0
|
|
3699
3798
|
}), f;
|
|
3700
|
-
}),
|
|
3799
|
+
}), c = (f) => ({
|
|
3701
3800
|
"data-rowid": f.id,
|
|
3702
3801
|
"data-testid": f.name,
|
|
3703
3802
|
...n.rowAttributes(f)
|
|
3704
|
-
}), d =
|
|
3705
|
-
var
|
|
3706
|
-
return (
|
|
3707
|
-
},
|
|
3708
|
-
const
|
|
3803
|
+
}), d = R({}), u = (f) => {
|
|
3804
|
+
var E;
|
|
3805
|
+
return (E = d.value) == null ? void 0 : E.$el.querySelector(`[data-rowid="${f.id}"]`);
|
|
3806
|
+
}, g = (f) => {
|
|
3807
|
+
const E = {
|
|
3709
3808
|
"data-testid": f.headerKey,
|
|
3710
3809
|
...n.cellAttributes(f)
|
|
3711
3810
|
};
|
|
3712
|
-
return f.colIndex === 0 && (
|
|
3811
|
+
return f.colIndex === 0 && (E.style = {
|
|
3713
3812
|
maxWidth: "250px",
|
|
3714
3813
|
overflowX: "hidden",
|
|
3715
3814
|
textOverflow: "ellipsis"
|
|
3716
|
-
}),
|
|
3815
|
+
}), E;
|
|
3717
3816
|
}, p = () => {
|
|
3718
3817
|
r("empty-state-cta-clicked"), y();
|
|
3719
3818
|
}, y = () => {
|
|
3720
3819
|
r("clear-search-input");
|
|
3721
|
-
}, v =
|
|
3722
|
-
r("click:row",
|
|
3820
|
+
}, v = k(() => n.disableRowClick ? void 0 : (f, E) => {
|
|
3821
|
+
r("click:row", E);
|
|
3723
3822
|
}), _ = (f) => {
|
|
3724
3823
|
r("sort", f);
|
|
3725
|
-
}, { setTablePreferences: N, getTablePreferences:
|
|
3726
|
-
const f =
|
|
3824
|
+
}, { setTablePreferences: N, getTablePreferences: w } = Yn(), Z = R(w(o.value)), h = k(() => {
|
|
3825
|
+
const f = w(o.value);
|
|
3727
3826
|
return {
|
|
3728
3827
|
...n.initialFetcherParams,
|
|
3729
3828
|
...f
|
|
3730
3829
|
};
|
|
3731
|
-
}),
|
|
3830
|
+
}), I = (f) => {
|
|
3732
3831
|
Z.value = f, o.value && N(o.value, f);
|
|
3733
3832
|
};
|
|
3734
|
-
return (f,
|
|
3735
|
-
const O = K("
|
|
3736
|
-
return
|
|
3833
|
+
return (f, E) => {
|
|
3834
|
+
const O = K("KButton"), x = K("KDropdown"), U = K("KTable"), F = K("KCard");
|
|
3835
|
+
return m(), M(F, {
|
|
3737
3836
|
class: "kong-ui-entity-base-table",
|
|
3738
3837
|
title: e.title,
|
|
3739
3838
|
"title-tag": e.titleTag
|
|
3740
3839
|
}, {
|
|
3741
3840
|
default: b(() => [
|
|
3742
|
-
|
|
3841
|
+
B(U, {
|
|
3743
3842
|
ref_key: "tableRefs",
|
|
3744
3843
|
ref: d,
|
|
3745
3844
|
"cache-identifier": o.value,
|
|
3746
|
-
"cell-attrs":
|
|
3845
|
+
"cell-attrs": g,
|
|
3747
3846
|
"client-sort": e.enableClientSort,
|
|
3748
3847
|
"disable-pagination-page-jump": e.disablePaginationPageJump,
|
|
3749
|
-
"empty-state-action-message": e.query ?
|
|
3848
|
+
"empty-state-action-message": e.query ? T(i)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3750
3849
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3751
3850
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3752
|
-
"empty-state-message": e.query ?
|
|
3753
|
-
"empty-state-title": e.query ?
|
|
3851
|
+
"empty-state-message": e.query ? T(i)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3852
|
+
"empty-state-title": e.query ? T(i)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3754
3853
|
error: a.value.hasError,
|
|
3755
3854
|
"error-state-message": a.value.message,
|
|
3756
3855
|
"error-state-title": a.value.title,
|
|
@@ -3762,7 +3861,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3762
3861
|
loading: e.isLoading,
|
|
3763
3862
|
"pagination-offset": e.paginationType === "offset",
|
|
3764
3863
|
"resize-columns": "",
|
|
3765
|
-
"row-attrs":
|
|
3864
|
+
"row-attrs": c,
|
|
3766
3865
|
"search-input": e.query,
|
|
3767
3866
|
"sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
|
|
3768
3867
|
sortable: !e.disableSorting,
|
|
@@ -3770,72 +3869,69 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3770
3869
|
onEmptyStateActionClick: p,
|
|
3771
3870
|
onKtableEmptyStateCtaClicked: p,
|
|
3772
3871
|
"onRow:click": v.value,
|
|
3773
|
-
onSort:
|
|
3774
|
-
"onUpdate:tablePreferences":
|
|
3775
|
-
},
|
|
3776
|
-
toolbar: b(({ state:
|
|
3777
|
-
|
|
3872
|
+
onSort: E[0] || (E[0] = (A) => _(A)),
|
|
3873
|
+
"onUpdate:tablePreferences": I
|
|
3874
|
+
}, _e({
|
|
3875
|
+
toolbar: b(({ state: A }) => [
|
|
3876
|
+
me(L("div", dl, [
|
|
3778
3877
|
z(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3779
|
-
f.$slots["toolbar-button"] ? (
|
|
3878
|
+
f.$slots["toolbar-button"] ? (m(), S("div", fl, [
|
|
3780
3879
|
z(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3781
|
-
])) :
|
|
3880
|
+
])) : D("", !0)
|
|
3782
3881
|
], 512), [
|
|
3783
|
-
[
|
|
3882
|
+
[ge, l(A)]
|
|
3784
3883
|
])
|
|
3785
3884
|
]),
|
|
3786
|
-
actions: b(({ row:
|
|
3885
|
+
actions: b(({ row: A, rowKey: j, rowValue: q }) => [
|
|
3787
3886
|
L("div", {
|
|
3788
3887
|
class: "actions-container",
|
|
3789
|
-
"data-testid":
|
|
3888
|
+
"data-testid": A.name
|
|
3790
3889
|
}, [
|
|
3791
|
-
|
|
3890
|
+
B(x, {
|
|
3792
3891
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3793
3892
|
width: e.dropdownMenuWidth
|
|
3794
3893
|
}, {
|
|
3795
3894
|
items: b(() => [
|
|
3796
3895
|
z(f.$slots, "actions", {
|
|
3797
|
-
row:
|
|
3798
|
-
rowKey:
|
|
3799
|
-
rowValue:
|
|
3896
|
+
row: A,
|
|
3897
|
+
rowKey: j,
|
|
3898
|
+
rowValue: q
|
|
3800
3899
|
}, void 0, !0)
|
|
3801
3900
|
]),
|
|
3802
3901
|
default: b(() => [
|
|
3803
|
-
|
|
3902
|
+
B(O, {
|
|
3903
|
+
appearance: "tertiary",
|
|
3804
3904
|
class: "actions-trigger",
|
|
3805
3905
|
"data-testid": "overflow-actions-button",
|
|
3806
3906
|
size: "small"
|
|
3807
3907
|
}, {
|
|
3808
3908
|
icon: b(() => [
|
|
3809
|
-
|
|
3810
|
-
color: E(Sr),
|
|
3811
|
-
icon: "more",
|
|
3812
|
-
size: "16"
|
|
3813
|
-
}, null, 8, ["color"])
|
|
3909
|
+
B(T(Xo))
|
|
3814
3910
|
]),
|
|
3815
3911
|
_: 1
|
|
3816
3912
|
})
|
|
3817
3913
|
]),
|
|
3818
3914
|
_: 2
|
|
3819
3915
|
}, 1032, ["width"])
|
|
3820
|
-
], 8,
|
|
3916
|
+
], 8, pl)
|
|
3821
3917
|
]),
|
|
3822
3918
|
_: 2
|
|
3823
3919
|
}, [
|
|
3824
|
-
|
|
3825
|
-
name:
|
|
3826
|
-
fn: b(({ row:
|
|
3827
|
-
|
|
3828
|
-
"key-name": String(
|
|
3829
|
-
"row-el":
|
|
3830
|
-
tooltip:
|
|
3920
|
+
oe(e.tableHeaders, (A, j) => ({
|
|
3921
|
+
name: j,
|
|
3922
|
+
fn: b(({ row: q, rowKey: J, rowValue: he }) => [
|
|
3923
|
+
B(cl, {
|
|
3924
|
+
"key-name": String(j),
|
|
3925
|
+
"row-el": u(q),
|
|
3926
|
+
tooltip: A.tooltip
|
|
3831
3927
|
}, {
|
|
3832
3928
|
default: b(() => [
|
|
3833
|
-
z(f.$slots,
|
|
3834
|
-
row:
|
|
3835
|
-
rowKey:
|
|
3836
|
-
rowValue:
|
|
3929
|
+
z(f.$slots, j, {
|
|
3930
|
+
row: q,
|
|
3931
|
+
rowKey: J,
|
|
3932
|
+
rowValue: he
|
|
3837
3933
|
}, () => [
|
|
3838
|
-
|
|
3934
|
+
V($(he), 1)
|
|
3839
3935
|
], !0)
|
|
3840
3936
|
]),
|
|
3841
3937
|
_: 2
|
|
@@ -3845,7 +3941,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3845
3941
|
e.query ? void 0 : {
|
|
3846
3942
|
name: "empty-state-action-icon",
|
|
3847
3943
|
fn: b(() => [
|
|
3848
|
-
|
|
3944
|
+
B(T(_o))
|
|
3849
3945
|
]),
|
|
3850
3946
|
key: "0"
|
|
3851
3947
|
}
|
|
@@ -3855,13 +3951,13 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3855
3951
|
}, 8, ["title", "title-tag"]);
|
|
3856
3952
|
};
|
|
3857
3953
|
}
|
|
3858
|
-
}),
|
|
3954
|
+
}), ns = /* @__PURE__ */ ae(hl, [["__scopeId", "data-v-605eff9b"]]), ml = {
|
|
3859
3955
|
key: 0,
|
|
3860
3956
|
class: "kong-ui-entity-delete-error"
|
|
3861
|
-
},
|
|
3957
|
+
}, gl = {
|
|
3862
3958
|
key: 1,
|
|
3863
3959
|
class: "description"
|
|
3864
|
-
},
|
|
3960
|
+
}, yl = /* @__PURE__ */ P({
|
|
3865
3961
|
__name: "EntityDeleteModal",
|
|
3866
3962
|
props: {
|
|
3867
3963
|
visible: {
|
|
@@ -3900,14 +3996,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3900
3996
|
},
|
|
3901
3997
|
emits: ["cancel", "proceed"],
|
|
3902
3998
|
setup(e, { emit: t }) {
|
|
3903
|
-
const { i18nT: n } =
|
|
3999
|
+
const { i18nT: n } = Y.useI18n(), r = e, i = t, a = k(() => r.needConfirm ? r.entityName : ""), o = () => {
|
|
3904
4000
|
i("cancel");
|
|
3905
4001
|
}, l = () => {
|
|
3906
4002
|
i("proceed");
|
|
3907
4003
|
};
|
|
3908
|
-
return (s,
|
|
3909
|
-
const d = K("KAlert"),
|
|
3910
|
-
return
|
|
4004
|
+
return (s, c) => {
|
|
4005
|
+
const d = K("KAlert"), u = K("KPrompt");
|
|
4006
|
+
return m(), M(u, {
|
|
3911
4007
|
"action-button-appearance": "danger",
|
|
3912
4008
|
"action-button-disabled": e.actionPending,
|
|
3913
4009
|
"action-button-text": "Yes, delete",
|
|
@@ -3919,21 +4015,21 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3919
4015
|
onProceed: l
|
|
3920
4016
|
}, {
|
|
3921
4017
|
default: b(() => [
|
|
3922
|
-
e.error ? (
|
|
3923
|
-
|
|
4018
|
+
e.error ? (m(), S("div", ml, [
|
|
4019
|
+
B(d, { appearance: "danger" }, {
|
|
3924
4020
|
default: b(() => [
|
|
3925
|
-
|
|
4021
|
+
V($(e.error), 1)
|
|
3926
4022
|
]),
|
|
3927
4023
|
_: 1
|
|
3928
4024
|
})
|
|
3929
|
-
])) :
|
|
3930
|
-
|
|
4025
|
+
])) : D("", !0),
|
|
4026
|
+
B(T(n), {
|
|
3931
4027
|
class: "message",
|
|
3932
4028
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3933
4029
|
tag: "p"
|
|
3934
|
-
},
|
|
4030
|
+
}, _e({
|
|
3935
4031
|
entityType: b(() => [
|
|
3936
|
-
|
|
4032
|
+
V($(r.entityType), 1)
|
|
3937
4033
|
]),
|
|
3938
4034
|
_: 2
|
|
3939
4035
|
}, [
|
|
@@ -3945,23 +4041,23 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3945
4041
|
key: "0"
|
|
3946
4042
|
} : void 0
|
|
3947
4043
|
]), 1032, ["keypath"]),
|
|
3948
|
-
r.description || s.$slots.description ? (
|
|
4044
|
+
r.description || s.$slots.description ? (m(), S("div", gl, [
|
|
3949
4045
|
z(s.$slots, "description", {}, () => [
|
|
3950
4046
|
L("p", null, $(r.description), 1)
|
|
3951
4047
|
], !0)
|
|
3952
|
-
])) :
|
|
4048
|
+
])) : D("", !0)
|
|
3953
4049
|
]),
|
|
3954
4050
|
_: 3
|
|
3955
4051
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3956
4052
|
};
|
|
3957
4053
|
}
|
|
3958
|
-
}),
|
|
4054
|
+
}), rs = /* @__PURE__ */ ae(yl, [["__scopeId", "data-v-4361d622"]]), vl = {
|
|
3959
4055
|
fill: "none",
|
|
3960
4056
|
height: "20",
|
|
3961
4057
|
viewBox: "0 0 20 20",
|
|
3962
4058
|
width: "20",
|
|
3963
4059
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3964
|
-
},
|
|
4060
|
+
}, bl = {
|
|
3965
4061
|
id: "mask0_180_20349",
|
|
3966
4062
|
height: "20",
|
|
3967
4063
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3969,7 +4065,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3969
4065
|
width: "20",
|
|
3970
4066
|
x: "0",
|
|
3971
4067
|
y: "0"
|
|
3972
|
-
},
|
|
4068
|
+
}, xl = ["fill"], Cl = { mask: "url(#mask0_180_20349)" }, kl = ["fill"], Ft = /* @__PURE__ */ P({
|
|
3973
4069
|
__name: "IconFilter",
|
|
3974
4070
|
props: {
|
|
3975
4071
|
color: {
|
|
@@ -3978,26 +4074,26 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
3978
4074
|
}
|
|
3979
4075
|
},
|
|
3980
4076
|
setup(e) {
|
|
3981
|
-
return (t, n) => (
|
|
3982
|
-
L("mask",
|
|
4077
|
+
return (t, n) => (m(), S("svg", vl, [
|
|
4078
|
+
L("mask", bl, [
|
|
3983
4079
|
L("rect", {
|
|
3984
4080
|
fill: e.color,
|
|
3985
4081
|
height: "20",
|
|
3986
4082
|
width: "20"
|
|
3987
|
-
}, null, 8,
|
|
4083
|
+
}, null, 8, xl)
|
|
3988
4084
|
]),
|
|
3989
|
-
L("g",
|
|
4085
|
+
L("g", Cl, [
|
|
3990
4086
|
L("path", {
|
|
3991
4087
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3992
4088
|
fill: e.color
|
|
3993
|
-
}, null, 8,
|
|
4089
|
+
}, null, 8, kl)
|
|
3994
4090
|
])
|
|
3995
4091
|
]));
|
|
3996
4092
|
}
|
|
3997
|
-
}),
|
|
4093
|
+
}), _l = {
|
|
3998
4094
|
key: 1,
|
|
3999
4095
|
class: "kong-ui-entity-filter"
|
|
4000
|
-
},
|
|
4096
|
+
}, wl = { class: "kong-ui-entity-filter-menu" }, Al = ["data-testid"], Sl = ["onClick", "onKeydown"], Il = { class: "menu-item-indicator" }, El = { class: "menu-item-body" }, Tl = ["for"], Fl = { class: "menu-item-buttons" }, Ol = { class: "filter-clear-button-container" }, $l = /* @__PURE__ */ P({
|
|
4001
4097
|
__name: "EntityFilter",
|
|
4002
4098
|
props: {
|
|
4003
4099
|
// filter config, either exact match or fuzzy match
|
|
@@ -4017,191 +4113,191 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4017
4113
|
},
|
|
4018
4114
|
emits: ["update:modelValue"],
|
|
4019
4115
|
setup(e, { emit: t }) {
|
|
4020
|
-
const { i18n: { t: n } } =
|
|
4116
|
+
const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
|
|
4021
4117
|
const h = [];
|
|
4022
|
-
return new URLSearchParams(r.modelValue).forEach((
|
|
4023
|
-
|
|
4118
|
+
return new URLSearchParams(r.modelValue).forEach((I, f) => {
|
|
4119
|
+
I !== "" && h.push(f);
|
|
4024
4120
|
}), h;
|
|
4025
|
-
}),
|
|
4121
|
+
}), c = k(() => {
|
|
4026
4122
|
const h = r.config.fields;
|
|
4027
|
-
return Object.keys(h).filter((
|
|
4123
|
+
return Object.keys(h).filter((I) => {
|
|
4028
4124
|
var f;
|
|
4029
|
-
return (f = h == null ? void 0 : h[
|
|
4030
|
-
}).map((
|
|
4031
|
-
label: h[
|
|
4032
|
-
value:
|
|
4125
|
+
return (f = h == null ? void 0 : h[I]) == null ? void 0 : f.searchable;
|
|
4126
|
+
}).map((I) => ({
|
|
4127
|
+
label: h[I].label || I,
|
|
4128
|
+
value: I,
|
|
4033
4129
|
expanded: !1
|
|
4034
4130
|
}));
|
|
4035
4131
|
});
|
|
4036
4132
|
Ae(() => r.modelValue, (h) => {
|
|
4037
|
-
o.value = {}, new URLSearchParams(h).forEach((
|
|
4038
|
-
o.value[f] =
|
|
4133
|
+
o.value = {}, new URLSearchParams(h).forEach((I, f) => {
|
|
4134
|
+
o.value[f] = I;
|
|
4039
4135
|
});
|
|
4040
4136
|
});
|
|
4041
4137
|
const d = () => {
|
|
4042
4138
|
a.value = !a.value;
|
|
4043
|
-
},
|
|
4139
|
+
}, u = (h) => {
|
|
4044
4140
|
l.value.has(h) ? l.value.delete(h) : l.value.add(h);
|
|
4045
|
-
},
|
|
4141
|
+
}, g = (h) => {
|
|
4046
4142
|
i("update:modelValue", h);
|
|
4047
4143
|
}, p = () => {
|
|
4048
|
-
|
|
4144
|
+
g("");
|
|
4049
4145
|
}, y = (h) => `filter-${h}`, v = (h) => {
|
|
4050
|
-
var
|
|
4051
|
-
return (((f = (
|
|
4052
|
-
value:
|
|
4053
|
-
label:
|
|
4146
|
+
var I, f;
|
|
4147
|
+
return (((f = (I = r.config.schema) == null ? void 0 : I[h]) == null ? void 0 : f.values) ?? []).map((E) => ({
|
|
4148
|
+
value: E,
|
|
4149
|
+
label: E
|
|
4054
4150
|
}));
|
|
4055
4151
|
}, _ = (h) => {
|
|
4056
|
-
var
|
|
4057
|
-
return ((f = (
|
|
4152
|
+
var I, f;
|
|
4153
|
+
return ((f = (I = r.config.schema) == null ? void 0 : I[h]) == null ? void 0 : f.type) ?? "text";
|
|
4058
4154
|
}, N = (h) => {
|
|
4059
4155
|
o.value = {
|
|
4060
4156
|
...o.value,
|
|
4061
4157
|
[h]: ""
|
|
4062
4158
|
}, Z();
|
|
4063
|
-
},
|
|
4159
|
+
}, w = () => {
|
|
4064
4160
|
o.value = {}, Z(!0);
|
|
4065
4161
|
}, Z = (h = !1) => {
|
|
4066
|
-
const
|
|
4067
|
-
h && (a.value = !1), i("update:modelValue", new URLSearchParams(
|
|
4162
|
+
const I = Object.keys(o.value).reduce((f, E) => (o.value[E] && (f[E] = `${o.value[E]}`), f), {});
|
|
4163
|
+
h && (a.value = !1), i("update:modelValue", new URLSearchParams(I).toString());
|
|
4068
4164
|
};
|
|
4069
|
-
return (h,
|
|
4070
|
-
const f = K("KInput"),
|
|
4071
|
-
return e.config.isExactMatch ? (
|
|
4165
|
+
return (h, I) => {
|
|
4166
|
+
const f = K("KInput"), E = K("KButton"), O = K("KSelect");
|
|
4167
|
+
return e.config.isExactMatch ? (m(), M(f, {
|
|
4072
4168
|
key: 0,
|
|
4073
4169
|
autocomplete: "off",
|
|
4074
4170
|
class: "kong-ui-entity-filter-input",
|
|
4075
4171
|
"data-testid": "search-input",
|
|
4076
4172
|
"model-value": e.modelValue,
|
|
4077
4173
|
placeholder: e.config.placeholder,
|
|
4078
|
-
"onUpdate:modelValue":
|
|
4174
|
+
"onUpdate:modelValue": g
|
|
4079
4175
|
}, {
|
|
4080
4176
|
before: b(() => [
|
|
4081
|
-
|
|
4177
|
+
B(Ft)
|
|
4082
4178
|
]),
|
|
4083
4179
|
after: b(() => [
|
|
4084
|
-
|
|
4180
|
+
me(B(T(jo), {
|
|
4085
4181
|
class: "kong-ui-entity-filter-clear",
|
|
4086
4182
|
onClick: p
|
|
4087
4183
|
}, null, 512), [
|
|
4088
|
-
[
|
|
4184
|
+
[ge, e.modelValue !== ""]
|
|
4089
4185
|
])
|
|
4090
4186
|
]),
|
|
4091
4187
|
_: 1
|
|
4092
|
-
}, 8, ["model-value", "placeholder"])) : (
|
|
4093
|
-
|
|
4188
|
+
}, 8, ["model-value", "placeholder"])) : (m(), S("div", _l, [
|
|
4189
|
+
B(E, {
|
|
4094
4190
|
appearance: "tertiary",
|
|
4095
4191
|
"data-testid": "filter-button",
|
|
4096
4192
|
onClick: d
|
|
4097
4193
|
}, {
|
|
4098
4194
|
default: b(() => [
|
|
4099
|
-
|
|
4100
|
-
|
|
4195
|
+
B(Ft),
|
|
4196
|
+
V(" " + $(T(n)("filter.filterButtonText")) + " " + $(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4101
4197
|
]),
|
|
4102
4198
|
_: 1
|
|
4103
4199
|
}),
|
|
4104
|
-
|
|
4200
|
+
me(L("div", {
|
|
4105
4201
|
class: "kong-ui-entity-filter-backdrop",
|
|
4106
4202
|
onClick: d
|
|
4107
4203
|
}, null, 512), [
|
|
4108
|
-
[
|
|
4204
|
+
[ge, a.value]
|
|
4109
4205
|
]),
|
|
4110
|
-
|
|
4111
|
-
(
|
|
4112
|
-
var
|
|
4113
|
-
return
|
|
4206
|
+
me(L("div", wl, [
|
|
4207
|
+
(m(!0), S(se, null, oe(c.value, (x) => {
|
|
4208
|
+
var U, F;
|
|
4209
|
+
return m(), S("div", {
|
|
4114
4210
|
key: x.value,
|
|
4115
4211
|
class: "kong-ui-entity-filter-menu-item",
|
|
4116
4212
|
"data-testid": x.value
|
|
4117
4213
|
}, [
|
|
4118
4214
|
L("span", {
|
|
4119
|
-
class:
|
|
4215
|
+
class: fe(["menu-item-title", { expanded: l.value.has(x.value) }]),
|
|
4120
4216
|
role: "button",
|
|
4121
4217
|
tabindex: "0",
|
|
4122
|
-
onClick: (
|
|
4123
|
-
onKeydown:
|
|
4218
|
+
onClick: (A) => u(x.value),
|
|
4219
|
+
onKeydown: Rn((A) => u(x.value), ["enter"])
|
|
4124
4220
|
}, [
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
[
|
|
4221
|
+
V($(x.label) + " ", 1),
|
|
4222
|
+
me(L("span", Il, null, 512), [
|
|
4223
|
+
[ge, s.value.includes(x.value)]
|
|
4128
4224
|
]),
|
|
4129
|
-
|
|
4130
|
-
class:
|
|
4131
|
-
color:
|
|
4225
|
+
B(T(Bo), {
|
|
4226
|
+
class: fe(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
|
|
4227
|
+
color: T(Sr)
|
|
4132
4228
|
}, null, 8, ["class", "color"])
|
|
4133
|
-
], 42,
|
|
4134
|
-
|
|
4229
|
+
], 42, Sl),
|
|
4230
|
+
me(L("div", El, [
|
|
4135
4231
|
L("label", {
|
|
4136
4232
|
class: "menu-item-label",
|
|
4137
4233
|
for: y(x.value)
|
|
4138
|
-
}, $(
|
|
4139
|
-
((
|
|
4234
|
+
}, $(T(n)("filter.fieldLabel")), 9, Tl),
|
|
4235
|
+
((F = (U = e.config.schema) == null ? void 0 : U[x.value]) == null ? void 0 : F.type) === "select" ? (m(), M(O, {
|
|
4140
4236
|
key: 0,
|
|
4141
4237
|
id: y(x.value),
|
|
4142
4238
|
modelValue: o.value[x.value],
|
|
4143
|
-
"onUpdate:modelValue": (
|
|
4239
|
+
"onUpdate:modelValue": (A) => o.value[x.value] = A,
|
|
4144
4240
|
items: v(x.value),
|
|
4145
|
-
placeholder:
|
|
4146
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (
|
|
4241
|
+
placeholder: T(n)("filter.selectPlaceholder")
|
|
4242
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), M(f, {
|
|
4147
4243
|
key: 1,
|
|
4148
4244
|
id: y(x.value),
|
|
4149
4245
|
modelValue: o.value[x.value],
|
|
4150
|
-
"onUpdate:modelValue": (
|
|
4246
|
+
"onUpdate:modelValue": (A) => o.value[x.value] = A,
|
|
4151
4247
|
autocomplete: "off",
|
|
4152
|
-
placeholder:
|
|
4248
|
+
placeholder: T(n)("filter.inputPlaceholder"),
|
|
4153
4249
|
type: _(x.value)
|
|
4154
4250
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4155
4251
|
], 512), [
|
|
4156
|
-
[
|
|
4252
|
+
[ge, l.value.has(x.value)]
|
|
4157
4253
|
]),
|
|
4158
|
-
|
|
4159
|
-
|
|
4254
|
+
me(L("div", Fl, [
|
|
4255
|
+
B(E, {
|
|
4160
4256
|
appearance: "tertiary",
|
|
4161
4257
|
"data-testid": "apply-filter",
|
|
4162
4258
|
size: "small",
|
|
4163
|
-
onClick:
|
|
4259
|
+
onClick: I[0] || (I[0] = (A) => Z(!0))
|
|
4164
4260
|
}, {
|
|
4165
4261
|
default: b(() => [
|
|
4166
|
-
|
|
4262
|
+
V($(T(n)("filter.applyButtonText")), 1)
|
|
4167
4263
|
]),
|
|
4168
4264
|
_: 1
|
|
4169
4265
|
}),
|
|
4170
|
-
|
|
4266
|
+
B(E, {
|
|
4171
4267
|
appearance: "tertiary",
|
|
4172
4268
|
"data-testid": "clear-filter",
|
|
4173
4269
|
size: "small",
|
|
4174
|
-
onClick: (
|
|
4270
|
+
onClick: (A) => N(x.value)
|
|
4175
4271
|
}, {
|
|
4176
4272
|
default: b(() => [
|
|
4177
|
-
|
|
4273
|
+
V($(T(n)("filter.clearButtonText")), 1)
|
|
4178
4274
|
]),
|
|
4179
4275
|
_: 2
|
|
4180
4276
|
}, 1032, ["onClick"])
|
|
4181
4277
|
], 512), [
|
|
4182
|
-
[
|
|
4278
|
+
[ge, l.value.has(x.value)]
|
|
4183
4279
|
])
|
|
4184
|
-
], 8,
|
|
4280
|
+
], 8, Al);
|
|
4185
4281
|
}), 128)),
|
|
4186
|
-
L("div",
|
|
4187
|
-
|
|
4282
|
+
L("div", Ol, [
|
|
4283
|
+
B(E, {
|
|
4188
4284
|
appearance: "tertiary",
|
|
4189
4285
|
size: "small",
|
|
4190
|
-
onClick:
|
|
4286
|
+
onClick: w
|
|
4191
4287
|
}, {
|
|
4192
4288
|
default: b(() => [
|
|
4193
|
-
|
|
4289
|
+
V($(T(n)("filter.clearAllButtonText")), 1)
|
|
4194
4290
|
]),
|
|
4195
4291
|
_: 1
|
|
4196
4292
|
})
|
|
4197
4293
|
])
|
|
4198
4294
|
], 512), [
|
|
4199
|
-
[
|
|
4295
|
+
[ge, a.value]
|
|
4200
4296
|
])
|
|
4201
4297
|
]));
|
|
4202
4298
|
};
|
|
4203
4299
|
}
|
|
4204
|
-
}),
|
|
4300
|
+
}), is = /* @__PURE__ */ ae($l, [["__scopeId", "data-v-9a370e3a"]]), as = /* @__PURE__ */ P({
|
|
4205
4301
|
__name: "EntityToggleModal",
|
|
4206
4302
|
props: {
|
|
4207
4303
|
visible: {
|
|
@@ -4233,41 +4329,41 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4233
4329
|
},
|
|
4234
4330
|
emits: ["cancel", "proceed"],
|
|
4235
4331
|
setup(e, { emit: t }) {
|
|
4236
|
-
const { i18n: { t: n }, i18nT: r } =
|
|
4332
|
+
const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, a = t, o = R(!1), l = k(
|
|
4237
4333
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4238
|
-
), s =
|
|
4334
|
+
), s = k(
|
|
4239
4335
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4240
|
-
),
|
|
4336
|
+
), c = () => a("cancel"), d = async () => {
|
|
4241
4337
|
if (i.onConfirm) {
|
|
4242
4338
|
o.value = !0;
|
|
4243
4339
|
try {
|
|
4244
4340
|
await i.onConfirm(), a("proceed");
|
|
4245
|
-
} catch (
|
|
4246
|
-
console.error(
|
|
4341
|
+
} catch (u) {
|
|
4342
|
+
console.error(u);
|
|
4247
4343
|
} finally {
|
|
4248
4344
|
o.value = !1;
|
|
4249
4345
|
}
|
|
4250
4346
|
}
|
|
4251
4347
|
};
|
|
4252
|
-
return (
|
|
4348
|
+
return (u, g) => {
|
|
4253
4349
|
const p = K("KPrompt");
|
|
4254
|
-
return
|
|
4255
|
-
|
|
4350
|
+
return m(), M(Mn, { to: "body" }, [
|
|
4351
|
+
B(p, {
|
|
4256
4352
|
"action-button-disabled": o.value,
|
|
4257
4353
|
"action-button-text": s.value,
|
|
4258
4354
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
4259
4355
|
title: l.value,
|
|
4260
4356
|
visible: e.visible,
|
|
4261
|
-
onCancel:
|
|
4357
|
+
onCancel: c,
|
|
4262
4358
|
onProceed: d
|
|
4263
4359
|
}, {
|
|
4264
4360
|
default: b(() => [
|
|
4265
|
-
|
|
4361
|
+
B(T(r), {
|
|
4266
4362
|
keypath: `toggleModal.${i.action}.message`,
|
|
4267
4363
|
scope: "global"
|
|
4268
4364
|
}, {
|
|
4269
4365
|
entityType: b(() => [
|
|
4270
|
-
|
|
4366
|
+
V($(e.entityType), 1)
|
|
4271
4367
|
]),
|
|
4272
4368
|
entityName: b(() => [
|
|
4273
4369
|
L("strong", null, $(e.entityName), 1)
|
|
@@ -4280,7 +4376,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4280
4376
|
]);
|
|
4281
4377
|
};
|
|
4282
4378
|
}
|
|
4283
|
-
}),
|
|
4379
|
+
}), os = /* @__PURE__ */ P({
|
|
4284
4380
|
__name: "PermissionsWrapper",
|
|
4285
4381
|
props: {
|
|
4286
4382
|
/**
|
|
@@ -4302,51 +4398,51 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
|
4302
4398
|
}
|
|
4303
4399
|
},
|
|
4304
4400
|
setup(e) {
|
|
4305
|
-
const t = e, n =
|
|
4401
|
+
const t = e, n = R(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4306
4402
|
return Ae(() => t.authFunction, async () => {
|
|
4307
4403
|
n.value = await t.authFunction();
|
|
4308
4404
|
}, { immediate: !0 }), (i, a) => r.value ? z(i.$slots, "default", {
|
|
4309
4405
|
key: 0,
|
|
4310
4406
|
isAllowed: n.value
|
|
4311
|
-
}) :
|
|
4407
|
+
}) : D("", !0);
|
|
4312
4408
|
}
|
|
4313
4409
|
});
|
|
4314
4410
|
let Be;
|
|
4315
|
-
const
|
|
4316
|
-
function
|
|
4411
|
+
const Ll = new Uint8Array(16);
|
|
4412
|
+
function Nl() {
|
|
4317
4413
|
if (!Be && (Be = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Be))
|
|
4318
4414
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4319
|
-
return Be(
|
|
4415
|
+
return Be(Ll);
|
|
4320
4416
|
}
|
|
4321
4417
|
const Q = [];
|
|
4322
4418
|
for (let e = 0; e < 256; ++e)
|
|
4323
4419
|
Q.push((e + 256).toString(16).slice(1));
|
|
4324
|
-
function
|
|
4420
|
+
function Bl(e, t = 0) {
|
|
4325
4421
|
return Q[e[t + 0]] + Q[e[t + 1]] + Q[e[t + 2]] + Q[e[t + 3]] + "-" + Q[e[t + 4]] + Q[e[t + 5]] + "-" + Q[e[t + 6]] + Q[e[t + 7]] + "-" + Q[e[t + 8]] + Q[e[t + 9]] + "-" + Q[e[t + 10]] + Q[e[t + 11]] + Q[e[t + 12]] + Q[e[t + 13]] + Q[e[t + 14]] + Q[e[t + 15]];
|
|
4326
4422
|
}
|
|
4327
|
-
const
|
|
4328
|
-
randomUUID:
|
|
4423
|
+
const Rl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ot = {
|
|
4424
|
+
randomUUID: Rl
|
|
4329
4425
|
};
|
|
4330
|
-
function
|
|
4426
|
+
function Ml(e, t, n) {
|
|
4331
4427
|
if (Ot.randomUUID && !t && !e)
|
|
4332
4428
|
return Ot.randomUUID();
|
|
4333
4429
|
e = e || {};
|
|
4334
|
-
const r = e.random || (e.rng ||
|
|
4430
|
+
const r = e.random || (e.rng || Nl)();
|
|
4335
4431
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4336
4432
|
n = n || 0;
|
|
4337
4433
|
for (let i = 0; i < 16; ++i)
|
|
4338
4434
|
t[n + i] = r[i];
|
|
4339
4435
|
return t;
|
|
4340
4436
|
}
|
|
4341
|
-
return
|
|
4437
|
+
return Bl(r);
|
|
4342
4438
|
}
|
|
4343
|
-
const
|
|
4439
|
+
const Kl = ["aria-labelledby"], Dl = { class: "form-section-wrapper" }, Ul = {
|
|
4344
4440
|
key: 1,
|
|
4345
4441
|
class: "form-section-description"
|
|
4346
|
-
},
|
|
4442
|
+
}, jl = {
|
|
4347
4443
|
key: 2,
|
|
4348
4444
|
class: "form-section-footer"
|
|
4349
|
-
},
|
|
4445
|
+
}, ql = { class: "form-section-content" }, Pl = /* @__PURE__ */ P({
|
|
4350
4446
|
__name: "EntityFormSection",
|
|
4351
4447
|
props: {
|
|
4352
4448
|
title: {
|
|
@@ -4375,49 +4471,49 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4375
4471
|
}
|
|
4376
4472
|
},
|
|
4377
4473
|
setup(e) {
|
|
4378
|
-
const t =
|
|
4379
|
-
return (r, i) => (
|
|
4380
|
-
"aria-labelledby": e.title ?
|
|
4381
|
-
class:
|
|
4474
|
+
const t = Xe(), n = Ml();
|
|
4475
|
+
return (r, i) => (m(), S("div", {
|
|
4476
|
+
"aria-labelledby": e.title ? T(n) : void 0,
|
|
4477
|
+
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4382
4478
|
role: "group"
|
|
4383
4479
|
}, [
|
|
4384
|
-
L("div",
|
|
4385
|
-
e.hideInfoHeader ?
|
|
4480
|
+
L("div", Dl, [
|
|
4481
|
+
e.hideInfoHeader ? D("", !0) : (m(), S("div", {
|
|
4386
4482
|
key: 0,
|
|
4387
|
-
class:
|
|
4483
|
+
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4388
4484
|
}, [
|
|
4389
|
-
e.title ? (
|
|
4485
|
+
e.title ? (m(), M(ce(e.titleTag), {
|
|
4390
4486
|
key: 0,
|
|
4391
|
-
id:
|
|
4487
|
+
id: T(n),
|
|
4392
4488
|
class: "form-section-title"
|
|
4393
4489
|
}, {
|
|
4394
4490
|
default: b(() => [
|
|
4395
|
-
|
|
4491
|
+
V($(e.title), 1)
|
|
4396
4492
|
]),
|
|
4397
4493
|
_: 1
|
|
4398
|
-
}, 8, ["id"])) :
|
|
4399
|
-
e.description ||
|
|
4494
|
+
}, 8, ["id"])) : D("", !0),
|
|
4495
|
+
e.description || T(t).description ? (m(), S("div", Ul, [
|
|
4400
4496
|
z(r.$slots, "description", {}, () => [
|
|
4401
4497
|
L("p", null, $(e.description), 1)
|
|
4402
4498
|
], !0)
|
|
4403
|
-
])) :
|
|
4404
|
-
|
|
4499
|
+
])) : D("", !0),
|
|
4500
|
+
T(t).footer ? (m(), S("div", jl, [
|
|
4405
4501
|
z(r.$slots, "footer", {}, void 0, !0)
|
|
4406
|
-
])) :
|
|
4502
|
+
])) : D("", !0)
|
|
4407
4503
|
], 2)),
|
|
4408
|
-
L("div",
|
|
4504
|
+
L("div", ql, [
|
|
4409
4505
|
z(r.$slots, "default", {}, void 0, !0)
|
|
4410
4506
|
])
|
|
4411
4507
|
])
|
|
4412
|
-
], 10,
|
|
4508
|
+
], 10, Kl));
|
|
4413
4509
|
}
|
|
4414
|
-
}),
|
|
4510
|
+
}), ls = /* @__PURE__ */ ae(Pl, [["__scopeId", "data-v-b1f74200"]]), Hl = {
|
|
4415
4511
|
class: "kong-ui-public-entity-link",
|
|
4416
4512
|
"data-testid": "entity-link-parent"
|
|
4417
|
-
},
|
|
4513
|
+
}, Vl = {
|
|
4418
4514
|
key: 0,
|
|
4419
4515
|
class: "deleted-entity"
|
|
4420
|
-
},
|
|
4516
|
+
}, zl = { key: 1 }, Yl = ["onClick"], Wl = /* @__PURE__ */ P({
|
|
4421
4517
|
__name: "EntityLink",
|
|
4422
4518
|
props: {
|
|
4423
4519
|
entityLinkData: {
|
|
@@ -4441,21 +4537,21 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4441
4537
|
}
|
|
4442
4538
|
},
|
|
4443
4539
|
setup(e) {
|
|
4444
|
-
const t = e, n =
|
|
4445
|
-
var
|
|
4446
|
-
return (
|
|
4447
|
-
}),
|
|
4448
|
-
var
|
|
4449
|
-
return `${(
|
|
4450
|
-
}), d = async (
|
|
4451
|
-
await
|
|
4540
|
+
const t = e, n = R(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => {
|
|
4541
|
+
var u;
|
|
4542
|
+
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4543
|
+
}), c = k(() => {
|
|
4544
|
+
var u;
|
|
4545
|
+
return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4546
|
+
}), d = async (u) => {
|
|
4547
|
+
await u(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
|
|
4452
4548
|
o.value = a;
|
|
4453
4549
|
}, 1800));
|
|
4454
4550
|
};
|
|
4455
|
-
return (
|
|
4551
|
+
return (u, g) => {
|
|
4456
4552
|
const p = K("KTooltip"), y = K("KExternalLink"), v = K("KClipboardProvider");
|
|
4457
|
-
return
|
|
4458
|
-
l.value ? (
|
|
4553
|
+
return m(), S("div", Hl, [
|
|
4554
|
+
l.value ? (m(), S("div", Vl, $(c.value), 1)) : s.value ? s.value ? (m(), M(y, {
|
|
4459
4555
|
key: 2,
|
|
4460
4556
|
class: "entity-link",
|
|
4461
4557
|
"hide-icon": !e.newWindow,
|
|
@@ -4463,8 +4559,8 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4463
4559
|
target: e.newWindow ? "_blank" : "_self"
|
|
4464
4560
|
}, {
|
|
4465
4561
|
default: b(() => [
|
|
4466
|
-
|
|
4467
|
-
text:
|
|
4562
|
+
B(p, {
|
|
4563
|
+
text: T(r) && e.entityLinkData.label || ""
|
|
4468
4564
|
}, {
|
|
4469
4565
|
default: b(() => [
|
|
4470
4566
|
L("span", {
|
|
@@ -4477,8 +4573,8 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4477
4573
|
}, 8, ["text"])
|
|
4478
4574
|
]),
|
|
4479
4575
|
_: 1
|
|
4480
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4481
|
-
s.value && e.allowCopy ? (
|
|
4576
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), S("div", zl, $(" – "))),
|
|
4577
|
+
s.value && e.allowCopy ? (m(), M(p, {
|
|
4482
4578
|
key: o.value,
|
|
4483
4579
|
class: "copy-uuid-tooltip",
|
|
4484
4580
|
"max-width": "160",
|
|
@@ -4486,59 +4582,59 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
|
4486
4582
|
text: o.value
|
|
4487
4583
|
}, {
|
|
4488
4584
|
default: b(() => [
|
|
4489
|
-
|
|
4585
|
+
B(v, null, {
|
|
4490
4586
|
default: b(({ copyToClipboard: _ }) => [
|
|
4491
4587
|
L("span", {
|
|
4492
4588
|
class: "entity-link-copy-id",
|
|
4493
|
-
onClick:
|
|
4589
|
+
onClick: Ye((N) => d(_), ["stop"])
|
|
4494
4590
|
}, [
|
|
4495
|
-
|
|
4591
|
+
B(T(Yo), {
|
|
4496
4592
|
class: "copy-icon",
|
|
4497
|
-
color:
|
|
4593
|
+
color: T(Ir),
|
|
4498
4594
|
"data-testid": "copy-id",
|
|
4499
|
-
size:
|
|
4595
|
+
size: T(Tr)
|
|
4500
4596
|
}, null, 8, ["color", "size"])
|
|
4501
|
-
], 8,
|
|
4597
|
+
], 8, Yl)
|
|
4502
4598
|
]),
|
|
4503
4599
|
_: 1
|
|
4504
4600
|
})
|
|
4505
4601
|
]),
|
|
4506
4602
|
_: 1
|
|
4507
|
-
}, 8, ["text"])) :
|
|
4603
|
+
}, 8, ["text"])) : D("", !0)
|
|
4508
4604
|
]);
|
|
4509
4605
|
};
|
|
4510
4606
|
}
|
|
4511
|
-
}),
|
|
4607
|
+
}), ss = /* @__PURE__ */ ae(Wl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: us, useDeleteUrlBuilder: cs, useErrors: ds, useExternalLinkCreator: fs, useFetchUrlBuilder: ps, useFetcher: hs, useDebouncedFilter: ms, useStringHelpers: gs, useHelpers: ys, useGatewayFeatureSupported: vs, useTruncationDetector: bs, useValidators: xs } = Y;
|
|
4512
4608
|
export {
|
|
4513
|
-
|
|
4609
|
+
yo as ConfigCardDisplay,
|
|
4514
4610
|
Dt as ConfigCardItem,
|
|
4515
4611
|
re as ConfigurationSchemaSection,
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4612
|
+
H as ConfigurationSchemaType,
|
|
4613
|
+
es as EntityBaseConfigCard,
|
|
4614
|
+
ts as EntityBaseForm,
|
|
4519
4615
|
Pn as EntityBaseFormType,
|
|
4520
|
-
|
|
4521
|
-
|
|
4522
|
-
|
|
4523
|
-
|
|
4524
|
-
|
|
4525
|
-
|
|
4616
|
+
ns as EntityBaseTable,
|
|
4617
|
+
rs as EntityDeleteModal,
|
|
4618
|
+
is as EntityFilter,
|
|
4619
|
+
ls as EntityFormSection,
|
|
4620
|
+
ss as EntityLink,
|
|
4621
|
+
as as EntityToggleModal,
|
|
4526
4622
|
qn as EntityTypes,
|
|
4527
4623
|
be as FetcherStatus,
|
|
4528
|
-
|
|
4624
|
+
kr as InternalLinkItem,
|
|
4529
4625
|
Ut as JsonCodeBlock,
|
|
4530
|
-
|
|
4626
|
+
os as PermissionsWrapper,
|
|
4531
4627
|
Tn as YamlCodeBlock,
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
|
|
4542
|
-
|
|
4543
|
-
|
|
4628
|
+
us as useAxios,
|
|
4629
|
+
ms as useDebouncedFilter,
|
|
4630
|
+
cs as useDeleteUrlBuilder,
|
|
4631
|
+
ds as useErrors,
|
|
4632
|
+
fs as useExternalLinkCreator,
|
|
4633
|
+
ps as useFetchUrlBuilder,
|
|
4634
|
+
hs as useFetcher,
|
|
4635
|
+
vs as useGatewayFeatureSupported,
|
|
4636
|
+
ys as useHelpers,
|
|
4637
|
+
gs as useStringHelpers,
|
|
4638
|
+
bs as useTruncationDetector,
|
|
4639
|
+
xs as useValidators
|
|
4544
4640
|
};
|