@kong-ui-public/entities-shared 3.0.6-pr.1333.e2778df6.0 → 3.0.6
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,21 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
var
|
|
7
|
-
function
|
|
1
|
+
import { inject as Fn, ref as B, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as R, createVNode as N, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
|
|
2
|
+
import st from "axios";
|
|
3
|
+
import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as Un } from "@kong/kongponents";
|
|
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 || {}), P = /* @__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))(P || {}), re = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(re || {});
|
|
7
|
+
function Hn() {
|
|
8
8
|
return {
|
|
9
9
|
getAxiosInstance: (e = {}) => {
|
|
10
10
|
try {
|
|
11
|
-
const t =
|
|
12
|
-
return typeof t == "function" ? t(e) :
|
|
11
|
+
const t = Fn("get-axios-instance", void 0);
|
|
12
|
+
return typeof t == "function" ? t(e) : st.create({
|
|
13
13
|
withCredentials: !0,
|
|
14
14
|
timeout: 3e4,
|
|
15
15
|
...e
|
|
16
16
|
});
|
|
17
17
|
} catch (t) {
|
|
18
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
18
|
+
return console.warn("getAxiosInstance:", t.message || t), st.create({
|
|
19
19
|
withCredentials: !0,
|
|
20
20
|
timeout: 3e4,
|
|
21
21
|
...e
|
|
@@ -28,7 +28,7 @@ function Un() {
|
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function
|
|
31
|
+
function Vn() {
|
|
32
32
|
return {
|
|
33
33
|
debounce: (e, t) => {
|
|
34
34
|
let n;
|
|
@@ -40,12 +40,12 @@ function qn() {
|
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
|
-
const
|
|
43
|
+
const Pe = "khcp-user-table-preferences", Yn = {
|
|
44
44
|
pageSize: 30,
|
|
45
45
|
sortColumnKey: void 0,
|
|
46
46
|
sortColumnOrder: void 0
|
|
47
47
|
};
|
|
48
|
-
function
|
|
48
|
+
function zn() {
|
|
49
49
|
const e = (n) => {
|
|
50
50
|
if (typeof n == "string")
|
|
51
51
|
try {
|
|
@@ -55,44 +55,44 @@ function Hn() {
|
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
57
|
}, t = () => {
|
|
58
|
-
const n = e(localStorage.getItem(
|
|
58
|
+
const n = e(localStorage.getItem(Pe));
|
|
59
59
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
60
60
|
};
|
|
61
61
|
return {
|
|
62
62
|
setTablePreferences: (n, r) => {
|
|
63
63
|
try {
|
|
64
64
|
const i = t();
|
|
65
|
-
i.set(n, r), localStorage.setItem(
|
|
65
|
+
i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
|
|
66
66
|
} catch (i) {
|
|
67
67
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
getTablePreferences: (n) => {
|
|
71
71
|
const r = t();
|
|
72
|
-
return (r == null ? void 0 : r.get(n)) || void 0 ||
|
|
72
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || Yn;
|
|
73
73
|
},
|
|
74
74
|
deleteAllTablePreferences: () => {
|
|
75
|
-
localStorage.removeItem(
|
|
75
|
+
localStorage.removeItem(Pe);
|
|
76
76
|
}
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
const { getAxiosInstance: t } =
|
|
79
|
+
function et(e = {}) {
|
|
80
|
+
const { getAxiosInstance: t } = Hn();
|
|
81
81
|
return {
|
|
82
82
|
axiosInstance: t(e)
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const Wn = {
|
|
86
86
|
actions: {
|
|
87
87
|
copyId: "Copy ID",
|
|
88
88
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
89
89
|
copyToClipboard: "Copied successfully!",
|
|
90
90
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
91
91
|
}
|
|
92
|
-
},
|
|
92
|
+
}, Jn = {
|
|
93
93
|
message: "Are you sure you want to delete this {entityType}?",
|
|
94
94
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
95
|
-
},
|
|
95
|
+
}, Gn = {
|
|
96
96
|
actions: {
|
|
97
97
|
viewConfiguration: "View Configuration",
|
|
98
98
|
save: "Save",
|
|
@@ -108,13 +108,13 @@ const Vn = {
|
|
|
108
108
|
errors: {
|
|
109
109
|
edit: "The entity could not be edited at this time."
|
|
110
110
|
}
|
|
111
|
-
},
|
|
111
|
+
}, Zn = {
|
|
112
112
|
emptyState: {
|
|
113
113
|
noSearchResultsTitle: "No results found",
|
|
114
114
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
115
115
|
noSearchResultsCtaText: "Clear"
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, Qn = {
|
|
118
118
|
title: "Configuration",
|
|
119
119
|
actions: {
|
|
120
120
|
copy: "Copy JSON"
|
|
@@ -149,7 +149,7 @@ const Vn = {
|
|
|
149
149
|
entryTitle: "Entry {index}",
|
|
150
150
|
structuredFormat: "Structured"
|
|
151
151
|
}
|
|
152
|
-
},
|
|
152
|
+
}, Xn = {
|
|
153
153
|
filterButtonText: "Filter",
|
|
154
154
|
fieldLabel: "Filter by:",
|
|
155
155
|
inputPlaceholder: "Enter a value",
|
|
@@ -157,17 +157,17 @@ const Vn = {
|
|
|
157
157
|
applyButtonText: "Apply",
|
|
158
158
|
clearButtonText: "Clear",
|
|
159
159
|
clearAllButtonText: "Clear all filters"
|
|
160
|
-
},
|
|
160
|
+
}, er = {
|
|
161
161
|
errors: {
|
|
162
162
|
fetch: "Could not fetch available items",
|
|
163
163
|
invalid: "Please select a valid value"
|
|
164
164
|
}
|
|
165
|
-
},
|
|
165
|
+
}, tr = {
|
|
166
166
|
unexpected: "An unexpected error has occurred",
|
|
167
167
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
168
|
-
},
|
|
168
|
+
}, nr = {
|
|
169
169
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
170
|
-
},
|
|
170
|
+
}, rr = {
|
|
171
171
|
enable: {
|
|
172
172
|
title: "Enable {entityType}",
|
|
173
173
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -178,27 +178,27 @@ const Vn = {
|
|
|
178
178
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
179
179
|
confirmText: "Yes, disable"
|
|
180
180
|
}
|
|
181
|
-
},
|
|
182
|
-
global:
|
|
183
|
-
deleteModal:
|
|
184
|
-
baseForm:
|
|
185
|
-
baseTable:
|
|
186
|
-
baseConfigCard:
|
|
187
|
-
filter:
|
|
188
|
-
debouncedFilter:
|
|
189
|
-
errors:
|
|
190
|
-
validationErrors:
|
|
191
|
-
toggleModal:
|
|
181
|
+
}, ir = {
|
|
182
|
+
global: Wn,
|
|
183
|
+
deleteModal: Jn,
|
|
184
|
+
baseForm: Gn,
|
|
185
|
+
baseTable: Zn,
|
|
186
|
+
baseConfigCard: Qn,
|
|
187
|
+
filter: Xn,
|
|
188
|
+
debouncedFilter: er,
|
|
189
|
+
errors: tr,
|
|
190
|
+
validationErrors: nr,
|
|
191
|
+
toggleModal: rr
|
|
192
192
|
};
|
|
193
|
-
function
|
|
194
|
-
const e =
|
|
193
|
+
function je() {
|
|
194
|
+
const e = Mn("en-us", ir);
|
|
195
195
|
return {
|
|
196
196
|
i18n: e,
|
|
197
|
-
i18nT:
|
|
197
|
+
i18nT: Dn(e)
|
|
198
198
|
// Translation component <i18n-t>
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
function
|
|
201
|
+
function Nt() {
|
|
202
202
|
const e = (a, o) => (o == null ? void 0 : o[a]) ?? void 0, t = (a, o) => {
|
|
203
203
|
if (a.length !== o.length)
|
|
204
204
|
return !1;
|
|
@@ -242,17 +242,17 @@ function Ot() {
|
|
|
242
242
|
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
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
|
-
function
|
|
245
|
+
function ar(e, t, n, r = {
|
|
246
246
|
fetchedItemsKey: "data",
|
|
247
247
|
searchKeys: ["id"]
|
|
248
248
|
}) {
|
|
249
249
|
n || (n = "1000");
|
|
250
|
-
const { axiosInstance: i } =
|
|
251
|
-
await
|
|
252
|
-
}, 200), s =
|
|
250
|
+
const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (m) => {
|
|
251
|
+
await te(m);
|
|
252
|
+
}, 200), s = B(!1), u = B(""), d = B(""), c = B([]), p = B([]), f = B(void 0), b = I(t);
|
|
253
253
|
let v = `${e.apiBaseUrl}${b}`;
|
|
254
254
|
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}` : ""));
|
|
255
|
-
const { isValidUuid:
|
|
255
|
+
const { isValidUuid: w } = Nt(), M = async () => {
|
|
256
256
|
try {
|
|
257
257
|
s.value = !0;
|
|
258
258
|
const { data: m } = await i.get(`${v}?size=${n}`);
|
|
@@ -262,7 +262,7 @@ function nr(e, t, n, r = {
|
|
|
262
262
|
} finally {
|
|
263
263
|
s.value = !1;
|
|
264
264
|
}
|
|
265
|
-
}, E =
|
|
265
|
+
}, E = B(""), te = async (m) => {
|
|
266
266
|
var y, g, $;
|
|
267
267
|
if (E.value !== m)
|
|
268
268
|
if (E.value = m || "", f.value === void 0)
|
|
@@ -274,20 +274,20 @@ function nr(e, t, n, r = {
|
|
|
274
274
|
r.fetchedItemsKey in _ ? c.value = _[r.fetchedItemsKey] : _ != null && _.id ? c.value = [_] : c.value = [];
|
|
275
275
|
} else if (m) {
|
|
276
276
|
const F = [];
|
|
277
|
-
|
|
277
|
+
w(m) && r.searchKeys.includes("id") ? F.push((async () => {
|
|
278
278
|
const { data: T } = await i.get(`${v}/${m}`);
|
|
279
279
|
return [T[r.fetchedItemsKey] ?? T];
|
|
280
280
|
})()) : F.push(
|
|
281
281
|
...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
|
|
282
|
-
const { data:
|
|
283
|
-
return
|
|
282
|
+
const { data: A } = await i.get(`${v}?${T}=${m}`);
|
|
283
|
+
return A[r.fetchedItemsKey];
|
|
284
284
|
})
|
|
285
285
|
);
|
|
286
|
-
const _ = await Promise.all(F),
|
|
286
|
+
const _ = await Promise.all(F), U = /* @__PURE__ */ new Set();
|
|
287
287
|
c.value = [], (y = _ == null ? void 0 : _.forEach) == null || y.call(_, (T) => {
|
|
288
|
-
var
|
|
289
|
-
(
|
|
290
|
-
|
|
288
|
+
var A;
|
|
289
|
+
(A = T == null ? void 0 : T.forEach) == null || A.call(T, (j) => {
|
|
290
|
+
U.has(j.id) || (U.add(j.id), c.value.push(j));
|
|
291
291
|
});
|
|
292
292
|
});
|
|
293
293
|
} else
|
|
@@ -299,11 +299,11 @@ function nr(e, t, n, r = {
|
|
|
299
299
|
}
|
|
300
300
|
else
|
|
301
301
|
s.value = !0, d.value = "", m ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
|
|
302
|
-
var
|
|
302
|
+
var U;
|
|
303
303
|
let _ = !1;
|
|
304
304
|
for (const T of r.searchKeys) {
|
|
305
|
-
const
|
|
306
|
-
|
|
305
|
+
const A = typeof F[T] == "string" ? (U = F[T]) == null ? void 0 : U.toLowerCase() : F[T];
|
|
306
|
+
A != null && A.includes(m.toLowerCase()) && (_ = !0);
|
|
307
307
|
}
|
|
308
308
|
return _;
|
|
309
309
|
}), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
|
|
@@ -318,14 +318,14 @@ function nr(e, t, n, r = {
|
|
|
318
318
|
debouncedQueryChange: l
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
function
|
|
321
|
+
function or(e, t) {
|
|
322
322
|
const n = I(t), r = k(
|
|
323
323
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
324
324
|
);
|
|
325
325
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
326
326
|
}
|
|
327
|
-
function
|
|
328
|
-
const { i18n: { t: e } } =
|
|
327
|
+
function lr() {
|
|
328
|
+
const { i18n: { t: e } } = je();
|
|
329
329
|
return {
|
|
330
330
|
getMessageFromError: (n) => {
|
|
331
331
|
var r, i, a, o;
|
|
@@ -354,7 +354,7 @@ function ir() {
|
|
|
354
354
|
}
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function sr(e) {
|
|
358
358
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
359
359
|
try {
|
|
360
360
|
const r = e.join("/"), i = `${n}${r}`, a = e.some((l) => l.trim() === "");
|
|
@@ -365,8 +365,8 @@ function ar(e) {
|
|
|
365
365
|
return console.warn("Failed to build valid URL:", r), "";
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
|
-
function
|
|
369
|
-
const n =
|
|
368
|
+
function Rt(e, t) {
|
|
369
|
+
const n = B(I(e)), r = B(I(t)), i = k(
|
|
370
370
|
() => !!(n.value.app === "konnect" || n.value.isExactMatch)
|
|
371
371
|
), a = k(
|
|
372
372
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
@@ -383,14 +383,14 @@ function $t(e, t) {
|
|
|
383
383
|
}
|
|
384
384
|
};
|
|
385
385
|
}
|
|
386
|
-
function
|
|
387
|
-
const r = I(t), { axiosInstance: i } =
|
|
388
|
-
status:
|
|
386
|
+
function cr(e, t, n = "data") {
|
|
387
|
+
const r = I(t), { axiosInstance: i } = et(e.axiosRequestConfig), a = Rt(e, r), o = B({
|
|
388
|
+
status: be.Idle
|
|
389
389
|
});
|
|
390
390
|
return { fetcher: async (s) => {
|
|
391
391
|
var u;
|
|
392
392
|
try {
|
|
393
|
-
o.value = { status:
|
|
393
|
+
o.value = { status: be.Loading };
|
|
394
394
|
let d = a(s);
|
|
395
395
|
d.includes("filter[name]") && (d = `${d}&page[size]=${s.pageSize}&page[number]=${s.page}`);
|
|
396
396
|
const c = await i.get(d);
|
|
@@ -409,7 +409,7 @@ function or(e, t, n = "data") {
|
|
|
409
409
|
} : null
|
|
410
410
|
};
|
|
411
411
|
return o.value = {
|
|
412
|
-
status:
|
|
412
|
+
status: be.Idle,
|
|
413
413
|
response: v
|
|
414
414
|
}, v;
|
|
415
415
|
} catch (d) {
|
|
@@ -418,111 +418,111 @@ function or(e, t, n = "data") {
|
|
|
418
418
|
total: 0
|
|
419
419
|
};
|
|
420
420
|
return s.query && (((u = d.response) == null ? void 0 : u.status) === 404 || d.status === 404) ? (o.value = {
|
|
421
|
-
status:
|
|
421
|
+
status: be.NoResults,
|
|
422
422
|
response: c,
|
|
423
423
|
error: d.response ? d : { response: d }
|
|
424
424
|
}, c) : (o.value = {
|
|
425
|
-
status:
|
|
425
|
+
status: be.Error,
|
|
426
426
|
response: c,
|
|
427
427
|
error: d.response ? d : { response: d }
|
|
428
428
|
}, c);
|
|
429
429
|
}
|
|
430
430
|
}, fetcherState: o };
|
|
431
431
|
}
|
|
432
|
-
function
|
|
432
|
+
function ur() {
|
|
433
433
|
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;
|
|
434
434
|
return {
|
|
435
435
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
436
436
|
convertKeyToTitle: e
|
|
437
437
|
};
|
|
438
438
|
}
|
|
439
|
-
const
|
|
439
|
+
const Bt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ct = (e) => {
|
|
440
440
|
if (typeof e != "string")
|
|
441
441
|
throw new TypeError("Invalid argument expected string");
|
|
442
|
-
const t = e.match(
|
|
442
|
+
const t = e.match(Bt);
|
|
443
443
|
if (!t)
|
|
444
444
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
445
445
|
return t.shift(), t;
|
|
446
|
-
},
|
|
446
|
+
}, ut = (e) => e === "*" || e === "x" || e === "X", dt = (e) => {
|
|
447
447
|
const t = parseInt(e, 10);
|
|
448
448
|
return isNaN(t) ? e : t;
|
|
449
|
-
},
|
|
450
|
-
if (
|
|
449
|
+
}, dr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], fr = (e, t) => {
|
|
450
|
+
if (ut(e) || ut(t))
|
|
451
451
|
return 0;
|
|
452
|
-
const [n, r] =
|
|
452
|
+
const [n, r] = dr(dt(e), dt(t));
|
|
453
453
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
454
|
-
},
|
|
454
|
+
}, ft = (e, t) => {
|
|
455
455
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
456
|
-
const r =
|
|
456
|
+
const r = fr(e[n] || "0", t[n] || "0");
|
|
457
457
|
if (r !== 0)
|
|
458
458
|
return r;
|
|
459
459
|
}
|
|
460
460
|
return 0;
|
|
461
|
-
},
|
|
462
|
-
const n =
|
|
463
|
-
return o !== 0 ? o : i && a ?
|
|
464
|
-
},
|
|
465
|
-
|
|
466
|
-
const r =
|
|
467
|
-
return
|
|
468
|
-
},
|
|
461
|
+
}, pr = (e, t) => {
|
|
462
|
+
const n = ct(e), r = ct(t), i = n.pop(), a = r.pop(), o = ft(n, r);
|
|
463
|
+
return o !== 0 ? o : i && a ? ft(i.split("."), a.split(".")) : i || a ? i ? -1 : 1 : 0;
|
|
464
|
+
}, pt = (e, t, n) => {
|
|
465
|
+
hr(n);
|
|
466
|
+
const r = pr(e, t);
|
|
467
|
+
return Kt[n].includes(r);
|
|
468
|
+
}, Kt = {
|
|
469
469
|
">": [1],
|
|
470
470
|
">=": [0, 1],
|
|
471
471
|
"=": [0],
|
|
472
472
|
"<=": [-1, 0],
|
|
473
473
|
"<": [-1],
|
|
474
474
|
"!=": [-1, 1]
|
|
475
|
-
},
|
|
475
|
+
}, ht = Object.keys(Kt), hr = (e) => {
|
|
476
476
|
if (typeof e != "string")
|
|
477
477
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
478
|
-
if (
|
|
479
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
480
|
-
},
|
|
481
|
-
function
|
|
478
|
+
if (ht.indexOf(e) === -1)
|
|
479
|
+
throw new Error(`Invalid operator, expected one of ${ht.join("|")}`);
|
|
480
|
+
}, mr = (e) => typeof e == "string" && /^[v\d]/.test(e) && Bt.test(e);
|
|
481
|
+
function gr(e) {
|
|
482
482
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
483
483
|
if (!t)
|
|
484
484
|
return !0;
|
|
485
485
|
const { edition: r, version: i } = t;
|
|
486
|
-
if (!
|
|
486
|
+
if (!mr(i))
|
|
487
487
|
return console.error("Invalid version"), !1;
|
|
488
488
|
const a = n[r];
|
|
489
489
|
if (!a)
|
|
490
490
|
return !1;
|
|
491
491
|
const [o, l] = a;
|
|
492
|
-
return !(o &&
|
|
492
|
+
return !(o && pt(i, o, "<") || l && pt(i, l, ">"));
|
|
493
493
|
}
|
|
494
|
-
function
|
|
495
|
-
const t =
|
|
494
|
+
function yr(e) {
|
|
495
|
+
const t = B(0), n = B(0), r = B(!1);
|
|
496
496
|
return Ae(e, (a) => {
|
|
497
497
|
a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
|
|
498
498
|
}), {
|
|
499
499
|
isTruncated: k(() => t.value < n.value)
|
|
500
500
|
};
|
|
501
501
|
}
|
|
502
|
-
function
|
|
503
|
-
const { i18n: { t: e } } =
|
|
502
|
+
function vr() {
|
|
503
|
+
const { i18n: { t: e } } = je();
|
|
504
504
|
return {
|
|
505
505
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
506
506
|
};
|
|
507
507
|
}
|
|
508
508
|
const z = {
|
|
509
|
-
useAxios:
|
|
510
|
-
useDebouncedFilter:
|
|
511
|
-
useDeleteUrlBuilder:
|
|
512
|
-
useErrors:
|
|
513
|
-
useExternalLinkCreator:
|
|
514
|
-
useFetcher:
|
|
515
|
-
useFetchUrlBuilder:
|
|
516
|
-
useHelpers:
|
|
517
|
-
useStringHelpers:
|
|
518
|
-
useI18n:
|
|
519
|
-
useGatewayFeatureSupported:
|
|
520
|
-
useTruncationDetector:
|
|
521
|
-
useValidators:
|
|
522
|
-
},
|
|
509
|
+
useAxios: et,
|
|
510
|
+
useDebouncedFilter: ar,
|
|
511
|
+
useDeleteUrlBuilder: or,
|
|
512
|
+
useErrors: lr,
|
|
513
|
+
useExternalLinkCreator: sr,
|
|
514
|
+
useFetcher: cr,
|
|
515
|
+
useFetchUrlBuilder: Rt,
|
|
516
|
+
useHelpers: Nt,
|
|
517
|
+
useStringHelpers: ur,
|
|
518
|
+
useI18n: je,
|
|
519
|
+
useGatewayFeatureSupported: gr,
|
|
520
|
+
useTruncationDetector: yr,
|
|
521
|
+
useValidators: vr
|
|
522
|
+
}, br = {
|
|
523
523
|
key: 0,
|
|
524
524
|
class: "config-card-fieldset-title"
|
|
525
|
-
},
|
|
525
|
+
}, xr = /* @__PURE__ */ H({
|
|
526
526
|
__name: "JsonCardItem",
|
|
527
527
|
props: {
|
|
528
528
|
item: {
|
|
@@ -546,14 +546,14 @@ const z = {
|
|
|
546
546
|
var s;
|
|
547
547
|
return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
548
548
|
});
|
|
549
|
-
return (s, u) => (h(), K(
|
|
550
|
-
class:
|
|
549
|
+
return (s, u) => (h(), K(pe(e.isArrayItem ? "fieldset" : "div"), {
|
|
550
|
+
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
551
551
|
}, {
|
|
552
552
|
default: x(() => [
|
|
553
|
-
e.isArrayItem ? (h(), S("legend",
|
|
553
|
+
e.isArrayItem ? (h(), S("legend", br, [
|
|
554
554
|
L("b", null, O(l.value), 1)
|
|
555
555
|
])) : D("", !0),
|
|
556
|
-
(h(!0), S(
|
|
556
|
+
(h(!0), S(se, null, ae(Object.keys(o.value), (d, c) => (h(), K(Dt, {
|
|
557
557
|
key: `${i.value}-property-${c}`,
|
|
558
558
|
item: {
|
|
559
559
|
key: d,
|
|
@@ -565,12 +565,12 @@ const z = {
|
|
|
565
565
|
_: 1
|
|
566
566
|
}, 8, ["class"]));
|
|
567
567
|
}
|
|
568
|
-
}),
|
|
568
|
+
}), ie = (e, t) => {
|
|
569
569
|
const n = e.__vccOpts || e;
|
|
570
570
|
for (const [r, i] of t)
|
|
571
571
|
n[r] = i;
|
|
572
572
|
return n;
|
|
573
|
-
},
|
|
573
|
+
}, Mt = /* @__PURE__ */ ie(xr, [["__scopeId", "data-v-68ca83ec"]]), Cr = /* @__PURE__ */ H({
|
|
574
574
|
__name: "InternalLinkItem",
|
|
575
575
|
props: {
|
|
576
576
|
item: {
|
|
@@ -582,7 +582,7 @@ const z = {
|
|
|
582
582
|
setup(e) {
|
|
583
583
|
const { i18n: { t } } = z.useI18n();
|
|
584
584
|
return (n, r) => {
|
|
585
|
-
const i =
|
|
585
|
+
const i = R("KButton");
|
|
586
586
|
return h(), S("div", null, [
|
|
587
587
|
N(i, {
|
|
588
588
|
appearance: "tertiary",
|
|
@@ -597,7 +597,7 @@ const z = {
|
|
|
597
597
|
]);
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
600
|
+
}), _r = /* @__PURE__ */ ie(Cr, [["__scopeId", "data-v-c96811e5"]]), kr = /* @__PURE__ */ H({
|
|
601
601
|
__name: "StatusBadge",
|
|
602
602
|
props: {
|
|
603
603
|
status: {
|
|
@@ -608,7 +608,7 @@ const z = {
|
|
|
608
608
|
setup(e) {
|
|
609
609
|
const { i18n: { t } } = z.useI18n();
|
|
610
610
|
return (n, r) => {
|
|
611
|
-
const i =
|
|
611
|
+
const i = R("KBadge");
|
|
612
612
|
return h(), K(i, {
|
|
613
613
|
appearance: e.status ? "success" : "neutral"
|
|
614
614
|
}, {
|
|
@@ -619,11 +619,11 @@ const z = {
|
|
|
619
619
|
}, 8, ["appearance"]);
|
|
620
620
|
};
|
|
621
621
|
}
|
|
622
|
-
}),
|
|
622
|
+
}), wr = "#0044f4", Ar = "#e0e4ea", Sr = "#3a3f51", Ir = "#afb7c5", Er = "#0044f4", Tr = "1px", Fr = "16px", Or = "20px", $r = { class: "config-card-details-row" }, Lr = ["data-testid"], Nr = ["data-testid"], Rr = ["data-testid"], Br = ["data-testid"], Kr = { key: 1 }, Mr = ["data-testid"], Dr = ["data-testid"], Ur = ["data-testid"], jr = ["data-testid"], qr = {
|
|
623
623
|
name: "ConfigCardItem",
|
|
624
|
-
components: { JsonCardItem:
|
|
625
|
-
},
|
|
626
|
-
...
|
|
624
|
+
components: { JsonCardItem: Mt, StatusBadge: kr, InternalLinkItem: _r }
|
|
625
|
+
}, Pr = /* @__PURE__ */ H({
|
|
626
|
+
...qr,
|
|
627
627
|
props: {
|
|
628
628
|
item: {
|
|
629
629
|
type: Object,
|
|
@@ -642,13 +642,13 @@ const z = {
|
|
|
642
642
|
},
|
|
643
643
|
emits: ["navigation-click"],
|
|
644
644
|
setup(e, { emit: t }) {
|
|
645
|
-
|
|
646
|
-
"07753575": d.value ? "none" : `solid ${I(
|
|
645
|
+
$t((b) => ({
|
|
646
|
+
"07753575": d.value ? "none" : `solid ${I(Tr)} ${I(Ar)}`,
|
|
647
647
|
"32d44ea8": u.value && l.value ? "block" : "flex",
|
|
648
648
|
"5036b738": u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
649
649
|
"5038fd13": u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
650
650
|
}));
|
|
651
|
-
const n = e, r = t, i =
|
|
651
|
+
const n = e, r = t, i = Xe(), { i18n: { t: a, formatUnixTimeStamp: o } } = z.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = k(() => !!(n.item.tooltip || i["label-tooltip"])), u = k(() => n.item.type === P.Json || n.item.type === P.JsonArray), d = k(() => n.item.type === P.JsonArray), c = k(() => {
|
|
652
652
|
switch (n.item.type) {
|
|
653
653
|
case P.ID:
|
|
654
654
|
return {
|
|
@@ -758,16 +758,16 @@ const z = {
|
|
|
758
758
|
text: n.item.value
|
|
759
759
|
};
|
|
760
760
|
}
|
|
761
|
-
}), p =
|
|
761
|
+
}), p = B(), { isTruncated: f } = z.useTruncationDetector(p);
|
|
762
762
|
return (b, v) => {
|
|
763
|
-
const
|
|
764
|
-
return h(), S("div",
|
|
763
|
+
const w = R("KLabel"), M = R("KBadge"), E = R("KCopy"), te = R("KTooltip");
|
|
764
|
+
return h(), S("div", $r, [
|
|
765
765
|
L("div", {
|
|
766
766
|
class: "config-card-details-label",
|
|
767
767
|
"data-testid": `${e.item.key}-label`
|
|
768
768
|
}, [
|
|
769
769
|
Y(b.$slots, "label", { item: e.item }, () => [
|
|
770
|
-
N(
|
|
770
|
+
N(w, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
771
771
|
default: x(() => [
|
|
772
772
|
V(O(e.item.label) + " ", 1)
|
|
773
773
|
]),
|
|
@@ -782,13 +782,13 @@ const z = {
|
|
|
782
782
|
Y(b.$slots, "label-tooltip", {}, () => [
|
|
783
783
|
V(O(e.item.tooltip), 1)
|
|
784
784
|
], !0)
|
|
785
|
-
], 8,
|
|
785
|
+
], 8, Nr)
|
|
786
786
|
]),
|
|
787
787
|
key: "0"
|
|
788
788
|
} : void 0
|
|
789
789
|
]), 1024)
|
|
790
790
|
], !0)
|
|
791
|
-
], 8,
|
|
791
|
+
], 8, Lr),
|
|
792
792
|
L("div", {
|
|
793
793
|
class: "config-card-details-value",
|
|
794
794
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -796,14 +796,14 @@ const z = {
|
|
|
796
796
|
Y(b.$slots, e.item.key, {
|
|
797
797
|
rowValue: e.item.value
|
|
798
798
|
}, () => [
|
|
799
|
-
l.value ? (h(), S("div",
|
|
800
|
-
(h(), K(
|
|
799
|
+
l.value ? (h(), S("div", Kr, [
|
|
800
|
+
(h(), K(pe(c.value.tag), On($n(c.value.attrs)), {
|
|
801
801
|
default: x(() => [
|
|
802
802
|
c.value.additionalComponent === "KBadge" ? (h(), S("div", {
|
|
803
803
|
key: 0,
|
|
804
804
|
"data-testid": `${e.item.key}-badge-tags`
|
|
805
805
|
}, [
|
|
806
|
-
(h(!0), S(
|
|
806
|
+
(h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(M, {
|
|
807
807
|
key: `${e.item.key}-badge-tag-${y}`,
|
|
808
808
|
class: "config-badge",
|
|
809
809
|
"data-testid": `${e.item.key}-badge-tag-${y}`,
|
|
@@ -815,25 +815,25 @@ const z = {
|
|
|
815
815
|
]),
|
|
816
816
|
_: 2
|
|
817
817
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
818
|
-
], 8,
|
|
818
|
+
], 8, Mr)) : D("", !0),
|
|
819
819
|
c.value.additionalComponent === "KCopy" ? (h(), S("div", {
|
|
820
820
|
key: 1,
|
|
821
821
|
class: "copy-uuid-array",
|
|
822
822
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
823
823
|
}, [
|
|
824
|
-
(h(!0), S(
|
|
824
|
+
(h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(E, Ln(c.value.childAttrs, {
|
|
825
825
|
key: `${e.item.key}-copy-uuid-${y}`,
|
|
826
826
|
"data-testid": `${e.item.key}-copy-uuid-${y}`,
|
|
827
827
|
text: m
|
|
828
828
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
829
|
-
], 8,
|
|
829
|
+
], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (h(), S("div", {
|
|
830
830
|
key: 2,
|
|
831
831
|
class: "method-badge-array",
|
|
832
832
|
"data-testid": `${e.item.key}-badge-methods`
|
|
833
833
|
}, [
|
|
834
|
-
(h(!0), S(
|
|
834
|
+
(h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(M, {
|
|
835
835
|
key: `${e.item.key}-badge-method-${y}`,
|
|
836
|
-
appearance: Object.values(I(
|
|
836
|
+
appearance: Object.values(I(Un)).includes(m.toLowerCase()) ? m.toLowerCase() : "custom",
|
|
837
837
|
class: "config-badge",
|
|
838
838
|
"data-testid": `${e.item.key}-badge-method-${y}`
|
|
839
839
|
}, {
|
|
@@ -842,18 +842,18 @@ const z = {
|
|
|
842
842
|
]),
|
|
843
843
|
_: 2
|
|
844
844
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
845
|
-
], 8,
|
|
845
|
+
], 8, Ur)) : D("", !0),
|
|
846
846
|
c.value.additionalComponent === "JsonCardItem" ? (h(), S("div", {
|
|
847
847
|
key: 3,
|
|
848
848
|
"data-testid": `${n.item.key}-json-array-content`
|
|
849
849
|
}, [
|
|
850
|
-
(h(!0), S(
|
|
850
|
+
(h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(Mt, {
|
|
851
851
|
key: `json-array-item-${y}`,
|
|
852
852
|
index: y,
|
|
853
853
|
"is-array-item": "",
|
|
854
854
|
item: m
|
|
855
855
|
}, null, 8, ["index", "item"]))), 128))
|
|
856
|
-
], 8,
|
|
856
|
+
], 8, jr)) : (h(), K(te, {
|
|
857
857
|
key: 4,
|
|
858
858
|
text: I(f) ? e.item.value : ""
|
|
859
859
|
}, {
|
|
@@ -861,7 +861,7 @@ const z = {
|
|
|
861
861
|
L("span", {
|
|
862
862
|
ref_key: "textContent",
|
|
863
863
|
ref: p,
|
|
864
|
-
class:
|
|
864
|
+
class: de(["attrs-data-text", { truncated: e.truncated }])
|
|
865
865
|
}, O(c.value.text), 3)
|
|
866
866
|
]),
|
|
867
867
|
_: 1
|
|
@@ -872,16 +872,16 @@ const z = {
|
|
|
872
872
|
])) : (h(), S("div", {
|
|
873
873
|
key: 0,
|
|
874
874
|
"data-testid": `${e.item.key}-no-value`
|
|
875
|
-
}, " – ", 8,
|
|
875
|
+
}, " – ", 8, Br))
|
|
876
876
|
], !0)
|
|
877
|
-
], 8,
|
|
877
|
+
], 8, Rr)
|
|
878
878
|
]);
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
881
|
+
}), Dt = /* @__PURE__ */ ie(Pr, [["__scopeId", "data-v-d056663c"]]), Hr = { class: "json-config" }, Vr = {
|
|
882
882
|
key: 0,
|
|
883
883
|
class: "json-endpoint"
|
|
884
|
-
},
|
|
884
|
+
}, Ut = /* @__PURE__ */ H({
|
|
885
885
|
__name: "JsonCodeBlock",
|
|
886
886
|
props: {
|
|
887
887
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -909,8 +909,8 @@ const z = {
|
|
|
909
909
|
}
|
|
910
910
|
},
|
|
911
911
|
setup(e) {
|
|
912
|
-
|
|
913
|
-
"
|
|
912
|
+
$t((i) => ({
|
|
913
|
+
"954d3eca": `${r.value}ch`
|
|
914
914
|
}));
|
|
915
915
|
const t = e, n = k(() => t.jsonRecord), r = k(() => {
|
|
916
916
|
var o;
|
|
@@ -920,9 +920,9 @@ const z = {
|
|
|
920
920
|
return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
|
|
921
921
|
});
|
|
922
922
|
return (i, a) => {
|
|
923
|
-
const o =
|
|
924
|
-
return h(), S("div",
|
|
925
|
-
t.fetcherUrl ? (h(), S("div",
|
|
923
|
+
const o = R("KBadge"), l = R("KCodeBlock");
|
|
924
|
+
return h(), S("div", Hr, [
|
|
925
|
+
t.fetcherUrl ? (h(), S("div", Vr, [
|
|
926
926
|
N(o, {
|
|
927
927
|
appearance: t.requestMethod
|
|
928
928
|
}, {
|
|
@@ -934,15 +934,15 @@ const z = {
|
|
|
934
934
|
N(l, {
|
|
935
935
|
id: "json-endpoint-codeblock",
|
|
936
936
|
code: t.fetcherUrl,
|
|
937
|
+
"is-single-line": "",
|
|
937
938
|
language: "json",
|
|
938
|
-
"single-line": "",
|
|
939
939
|
theme: "dark"
|
|
940
940
|
}, null, 8, ["code"])
|
|
941
941
|
])) : D("", !0),
|
|
942
942
|
t.jsonRecord ? (h(), K(l, {
|
|
943
943
|
key: 1,
|
|
944
944
|
id: "json-codeblock",
|
|
945
|
-
class:
|
|
945
|
+
class: de({ "json-content": t.fetcherUrl }),
|
|
946
946
|
code: JSON.stringify(n.value, null, 2),
|
|
947
947
|
language: "json",
|
|
948
948
|
theme: "dark"
|
|
@@ -952,55 +952,55 @@ const z = {
|
|
|
952
952
|
}
|
|
953
953
|
});
|
|
954
954
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
955
|
-
function
|
|
955
|
+
function jt(e) {
|
|
956
956
|
return typeof e > "u" || e === null;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Yr(e) {
|
|
959
959
|
return typeof e == "object" && e !== null;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
962
|
-
return Array.isArray(e) ? e :
|
|
961
|
+
function zr(e) {
|
|
962
|
+
return Array.isArray(e) ? e : jt(e) ? [] : [e];
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Wr(e, t) {
|
|
965
965
|
var n, r, i, a;
|
|
966
966
|
if (t)
|
|
967
967
|
for (a = Object.keys(t), n = 0, r = a.length; n < r; n += 1)
|
|
968
968
|
i = a[n], e[i] = t[i];
|
|
969
969
|
return e;
|
|
970
970
|
}
|
|
971
|
-
function
|
|
971
|
+
function Jr(e, t) {
|
|
972
972
|
var n = "", r;
|
|
973
973
|
for (r = 0; r < t; r += 1)
|
|
974
974
|
n += e;
|
|
975
975
|
return n;
|
|
976
976
|
}
|
|
977
|
-
function
|
|
977
|
+
function Gr(e) {
|
|
978
978
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
979
979
|
}
|
|
980
|
-
var
|
|
981
|
-
isNothing:
|
|
982
|
-
isObject:
|
|
983
|
-
toArray:
|
|
984
|
-
repeat:
|
|
985
|
-
isNegativeZero:
|
|
986
|
-
extend:
|
|
980
|
+
var Zr = jt, Qr = Yr, Xr = zr, ei = Jr, ti = Gr, ni = Wr, G = {
|
|
981
|
+
isNothing: Zr,
|
|
982
|
+
isObject: Qr,
|
|
983
|
+
toArray: Xr,
|
|
984
|
+
repeat: ei,
|
|
985
|
+
isNegativeZero: ti,
|
|
986
|
+
extend: ni
|
|
987
987
|
};
|
|
988
|
-
function
|
|
988
|
+
function qt(e, t) {
|
|
989
989
|
var n = "", r = e.reason || "(unknown reason)";
|
|
990
990
|
return e.mark ? (e.mark.name && (n += 'in "' + e.mark.name + '" '), n += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !t && e.mark.snippet && (n += `
|
|
991
991
|
|
|
992
992
|
` + e.mark.snippet), r + " " + n) : r;
|
|
993
993
|
}
|
|
994
|
-
function
|
|
995
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
994
|
+
function Ie(e, t) {
|
|
995
|
+
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 || "";
|
|
996
996
|
}
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
return this.name + ": " +
|
|
997
|
+
Ie.prototype = Object.create(Error.prototype);
|
|
998
|
+
Ie.prototype.constructor = Ie;
|
|
999
|
+
Ie.prototype.toString = function(t) {
|
|
1000
|
+
return this.name + ": " + qt(this, t);
|
|
1001
1001
|
};
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
1002
|
+
var ee = Ie;
|
|
1003
|
+
function He(e, t, n, r, i) {
|
|
1004
1004
|
var a = "", o = "", l = Math.floor(i / 2) - 1;
|
|
1005
1005
|
return r - t > l && (a = " ... ", t = r - l + a.length), n - r > l && (o = " ...", n = r + l - o.length), {
|
|
1006
1006
|
str: a + e.slice(t, n).replace(/\t/g, "→") + o,
|
|
@@ -1008,10 +1008,10 @@ function qe(e, t, n, r, i) {
|
|
|
1008
1008
|
// relative position
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Ve(e, t) {
|
|
1012
1012
|
return G.repeat(" ", t - e.length) + e;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function ri(e, t) {
|
|
1015
1015
|
if (t = Object.create(t || null), !e.buffer)
|
|
1016
1016
|
return null;
|
|
1017
1017
|
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,28 +1020,28 @@ function ei(e, t) {
|
|
|
1020
1020
|
o < 0 && (o = r.length - 1);
|
|
1021
1021
|
var l = "", s, u, d = Math.min(e.line + t.linesAfter, i.length).toString().length, c = t.maxLength - (t.indent + d + 3);
|
|
1022
1022
|
for (s = 1; s <= t.linesBefore && !(o - s < 0); s++)
|
|
1023
|
-
u =
|
|
1023
|
+
u = He(
|
|
1024
1024
|
e.buffer,
|
|
1025
1025
|
r[o - s],
|
|
1026
1026
|
i[o - s],
|
|
1027
1027
|
e.position - (r[o] - r[o - s]),
|
|
1028
1028
|
c
|
|
1029
|
-
), l = G.repeat(" ", t.indent) +
|
|
1029
|
+
), l = G.repeat(" ", t.indent) + Ve((e.line - s + 1).toString(), d) + " | " + u.str + `
|
|
1030
1030
|
` + l;
|
|
1031
|
-
for (u =
|
|
1031
|
+
for (u = He(e.buffer, r[o], i[o], e.position, c), l += G.repeat(" ", t.indent) + Ve((e.line + 1).toString(), d) + " | " + u.str + `
|
|
1032
1032
|
`, l += G.repeat("-", t.indent + d + 3 + u.pos) + `^
|
|
1033
1033
|
`, s = 1; s <= t.linesAfter && !(o + s >= i.length); s++)
|
|
1034
|
-
u =
|
|
1034
|
+
u = He(
|
|
1035
1035
|
e.buffer,
|
|
1036
1036
|
r[o + s],
|
|
1037
1037
|
i[o + s],
|
|
1038
1038
|
e.position - (r[o] - r[o + s]),
|
|
1039
1039
|
c
|
|
1040
|
-
), l += G.repeat(" ", t.indent) +
|
|
1040
|
+
), l += G.repeat(" ", t.indent) + Ve((e.line + s + 1).toString(), d) + " | " + u.str + `
|
|
1041
1041
|
`;
|
|
1042
1042
|
return l.replace(/\n$/, "");
|
|
1043
1043
|
}
|
|
1044
|
-
var
|
|
1044
|
+
var ii = ri, ai = [
|
|
1045
1045
|
"kind",
|
|
1046
1046
|
"multi",
|
|
1047
1047
|
"resolve",
|
|
@@ -1052,12 +1052,12 @@ var ti = ei, ni = [
|
|
|
1052
1052
|
"representName",
|
|
1053
1053
|
"defaultStyle",
|
|
1054
1054
|
"styleAliases"
|
|
1055
|
-
],
|
|
1055
|
+
], oi = [
|
|
1056
1056
|
"scalar",
|
|
1057
1057
|
"sequence",
|
|
1058
1058
|
"mapping"
|
|
1059
1059
|
];
|
|
1060
|
-
function
|
|
1060
|
+
function li(e) {
|
|
1061
1061
|
var t = {};
|
|
1062
1062
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1063
1063
|
e[n].forEach(function(r) {
|
|
@@ -1065,19 +1065,19 @@ function ii(e) {
|
|
|
1065
1065
|
});
|
|
1066
1066
|
}), t;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function si(e, t) {
|
|
1069
1069
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1070
|
-
if (
|
|
1071
|
-
throw new
|
|
1070
|
+
if (ai.indexOf(n) === -1)
|
|
1071
|
+
throw new ee('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1072
1072
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1073
1073
|
return !0;
|
|
1074
1074
|
}, this.construct = t.construct || function(n) {
|
|
1075
1075
|
return n;
|
|
1076
|
-
}, 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 =
|
|
1077
|
-
throw new
|
|
1076
|
+
}, 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 = li(t.styleAliases || null), oi.indexOf(this.kind) === -1)
|
|
1077
|
+
throw new ee('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1078
1078
|
}
|
|
1079
|
-
var
|
|
1080
|
-
function
|
|
1079
|
+
var Q = si;
|
|
1080
|
+
function mt(e, t) {
|
|
1081
1081
|
var n = [];
|
|
1082
1082
|
return e[t].forEach(function(r) {
|
|
1083
1083
|
var i = n.length;
|
|
@@ -1086,7 +1086,7 @@ function pt(e, t) {
|
|
|
1086
1086
|
}), n[i] = r;
|
|
1087
1087
|
}), n;
|
|
1088
1088
|
}
|
|
1089
|
-
function
|
|
1089
|
+
function ci() {
|
|
1090
1090
|
var e = {
|
|
1091
1091
|
scalar: {},
|
|
1092
1092
|
sequence: {},
|
|
@@ -1106,72 +1106,72 @@ function oi() {
|
|
|
1106
1106
|
arguments[t].forEach(r);
|
|
1107
1107
|
return e;
|
|
1108
1108
|
}
|
|
1109
|
-
function
|
|
1109
|
+
function We(e) {
|
|
1110
1110
|
return this.extend(e);
|
|
1111
1111
|
}
|
|
1112
|
-
|
|
1112
|
+
We.prototype.extend = function(t) {
|
|
1113
1113
|
var n = [], r = [];
|
|
1114
|
-
if (t instanceof
|
|
1114
|
+
if (t instanceof Q)
|
|
1115
1115
|
r.push(t);
|
|
1116
1116
|
else if (Array.isArray(t))
|
|
1117
1117
|
r = r.concat(t);
|
|
1118
1118
|
else if (t && (Array.isArray(t.implicit) || Array.isArray(t.explicit)))
|
|
1119
1119
|
t.implicit && (n = n.concat(t.implicit)), t.explicit && (r = r.concat(t.explicit));
|
|
1120
1120
|
else
|
|
1121
|
-
throw new
|
|
1121
|
+
throw new ee("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1122
1122
|
n.forEach(function(a) {
|
|
1123
|
-
if (!(a instanceof
|
|
1124
|
-
throw new
|
|
1123
|
+
if (!(a instanceof Q))
|
|
1124
|
+
throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1125
1125
|
if (a.loadKind && a.loadKind !== "scalar")
|
|
1126
|
-
throw new
|
|
1126
|
+
throw new ee("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1127
1127
|
if (a.multi)
|
|
1128
|
-
throw new
|
|
1128
|
+
throw new ee("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1129
1129
|
}), r.forEach(function(a) {
|
|
1130
|
-
if (!(a instanceof
|
|
1131
|
-
throw new
|
|
1130
|
+
if (!(a instanceof Q))
|
|
1131
|
+
throw new ee("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1132
1132
|
});
|
|
1133
|
-
var i = Object.create(
|
|
1134
|
-
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit =
|
|
1133
|
+
var i = Object.create(We.prototype);
|
|
1134
|
+
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 = ci(i.compiledImplicit, i.compiledExplicit), i;
|
|
1135
1135
|
};
|
|
1136
|
-
var
|
|
1136
|
+
var Pt = We, Ht = new Q("tag:yaml.org,2002:str", {
|
|
1137
1137
|
kind: "scalar",
|
|
1138
1138
|
construct: function(e) {
|
|
1139
1139
|
return e !== null ? e : "";
|
|
1140
1140
|
}
|
|
1141
|
-
}),
|
|
1141
|
+
}), Vt = new Q("tag:yaml.org,2002:seq", {
|
|
1142
1142
|
kind: "sequence",
|
|
1143
1143
|
construct: function(e) {
|
|
1144
1144
|
return e !== null ? e : [];
|
|
1145
1145
|
}
|
|
1146
|
-
}),
|
|
1146
|
+
}), Yt = new Q("tag:yaml.org,2002:map", {
|
|
1147
1147
|
kind: "mapping",
|
|
1148
1148
|
construct: function(e) {
|
|
1149
1149
|
return e !== null ? e : {};
|
|
1150
1150
|
}
|
|
1151
|
-
}),
|
|
1151
|
+
}), zt = new Pt({
|
|
1152
1152
|
explicit: [
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1153
|
+
Ht,
|
|
1154
|
+
Vt,
|
|
1155
|
+
Yt
|
|
1156
1156
|
]
|
|
1157
1157
|
});
|
|
1158
|
-
function
|
|
1158
|
+
function ui(e) {
|
|
1159
1159
|
if (e === null)
|
|
1160
1160
|
return !0;
|
|
1161
1161
|
var t = e.length;
|
|
1162
1162
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1163
1163
|
}
|
|
1164
|
-
function
|
|
1164
|
+
function di() {
|
|
1165
1165
|
return null;
|
|
1166
1166
|
}
|
|
1167
|
-
function
|
|
1167
|
+
function fi(e) {
|
|
1168
1168
|
return e === null;
|
|
1169
1169
|
}
|
|
1170
|
-
var
|
|
1170
|
+
var Wt = new Q("tag:yaml.org,2002:null", {
|
|
1171
1171
|
kind: "scalar",
|
|
1172
|
-
resolve:
|
|
1173
|
-
construct:
|
|
1174
|
-
predicate:
|
|
1172
|
+
resolve: ui,
|
|
1173
|
+
construct: di,
|
|
1174
|
+
predicate: fi,
|
|
1175
1175
|
represent: {
|
|
1176
1176
|
canonical: function() {
|
|
1177
1177
|
return "~";
|
|
@@ -1191,23 +1191,23 @@ var Vt = new Z("tag:yaml.org,2002:null", {
|
|
|
1191
1191
|
},
|
|
1192
1192
|
defaultStyle: "lowercase"
|
|
1193
1193
|
});
|
|
1194
|
-
function
|
|
1194
|
+
function pi(e) {
|
|
1195
1195
|
if (e === null)
|
|
1196
1196
|
return !1;
|
|
1197
1197
|
var t = e.length;
|
|
1198
1198
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1199
1199
|
}
|
|
1200
|
-
function
|
|
1200
|
+
function hi(e) {
|
|
1201
1201
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1202
1202
|
}
|
|
1203
|
-
function
|
|
1203
|
+
function mi(e) {
|
|
1204
1204
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1205
1205
|
}
|
|
1206
|
-
var
|
|
1206
|
+
var Jt = new Q("tag:yaml.org,2002:bool", {
|
|
1207
1207
|
kind: "scalar",
|
|
1208
|
-
resolve:
|
|
1209
|
-
construct:
|
|
1210
|
-
predicate:
|
|
1208
|
+
resolve: pi,
|
|
1209
|
+
construct: hi,
|
|
1210
|
+
predicate: mi,
|
|
1211
1211
|
represent: {
|
|
1212
1212
|
lowercase: function(e) {
|
|
1213
1213
|
return e ? "true" : "false";
|
|
@@ -1221,16 +1221,16 @@ var Yt = new Z("tag:yaml.org,2002:bool", {
|
|
|
1221
1221
|
},
|
|
1222
1222
|
defaultStyle: "lowercase"
|
|
1223
1223
|
});
|
|
1224
|
-
function
|
|
1224
|
+
function gi(e) {
|
|
1225
1225
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function yi(e) {
|
|
1228
1228
|
return 48 <= e && e <= 55;
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function vi(e) {
|
|
1231
1231
|
return 48 <= e && e <= 57;
|
|
1232
1232
|
}
|
|
1233
|
-
function
|
|
1233
|
+
function bi(e) {
|
|
1234
1234
|
if (e === null)
|
|
1235
1235
|
return !1;
|
|
1236
1236
|
var t = e.length, n = 0, r = !1, i;
|
|
@@ -1251,7 +1251,7 @@ function gi(e) {
|
|
|
1251
1251
|
if (i === "x") {
|
|
1252
1252
|
for (n++; n < t; n++)
|
|
1253
1253
|
if (i = e[n], i !== "_") {
|
|
1254
|
-
if (!
|
|
1254
|
+
if (!gi(e.charCodeAt(n)))
|
|
1255
1255
|
return !1;
|
|
1256
1256
|
r = !0;
|
|
1257
1257
|
}
|
|
@@ -1260,7 +1260,7 @@ function gi(e) {
|
|
|
1260
1260
|
if (i === "o") {
|
|
1261
1261
|
for (n++; n < t; n++)
|
|
1262
1262
|
if (i = e[n], i !== "_") {
|
|
1263
|
-
if (!
|
|
1263
|
+
if (!yi(e.charCodeAt(n)))
|
|
1264
1264
|
return !1;
|
|
1265
1265
|
r = !0;
|
|
1266
1266
|
}
|
|
@@ -1271,13 +1271,13 @@ function gi(e) {
|
|
|
1271
1271
|
return !1;
|
|
1272
1272
|
for (; n < t; n++)
|
|
1273
1273
|
if (i = e[n], i !== "_") {
|
|
1274
|
-
if (!
|
|
1274
|
+
if (!vi(e.charCodeAt(n)))
|
|
1275
1275
|
return !1;
|
|
1276
1276
|
r = !0;
|
|
1277
1277
|
}
|
|
1278
1278
|
return !(!r || i === "_");
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function xi(e) {
|
|
1281
1281
|
var t = e, n = 1, r;
|
|
1282
1282
|
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")
|
|
1283
1283
|
return 0;
|
|
@@ -1291,14 +1291,14 @@ function yi(e) {
|
|
|
1291
1291
|
}
|
|
1292
1292
|
return n * parseInt(t, 10);
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Ci(e) {
|
|
1295
1295
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !G.isNegativeZero(e);
|
|
1296
1296
|
}
|
|
1297
|
-
var
|
|
1297
|
+
var Gt = new Q("tag:yaml.org,2002:int", {
|
|
1298
1298
|
kind: "scalar",
|
|
1299
|
-
resolve:
|
|
1300
|
-
construct:
|
|
1301
|
-
predicate:
|
|
1299
|
+
resolve: bi,
|
|
1300
|
+
construct: xi,
|
|
1301
|
+
predicate: Ci,
|
|
1302
1302
|
represent: {
|
|
1303
1303
|
binary: function(e) {
|
|
1304
1304
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1321,21 +1321,21 @@ var zt = new Z("tag:yaml.org,2002:int", {
|
|
|
1321
1321
|
decimal: [10, "dec"],
|
|
1322
1322
|
hexadecimal: [16, "hex"]
|
|
1323
1323
|
}
|
|
1324
|
-
}),
|
|
1324
|
+
}), _i = new RegExp(
|
|
1325
1325
|
// 2.5e4, 2.5 and integers
|
|
1326
1326
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1327
1327
|
);
|
|
1328
|
-
function
|
|
1329
|
-
return !(e === null || !
|
|
1328
|
+
function ki(e) {
|
|
1329
|
+
return !(e === null || !_i.test(e) || // Quick hack to not allow integers end with `_`
|
|
1330
1330
|
// Probably should update regexp & check speed
|
|
1331
1331
|
e[e.length - 1] === "_");
|
|
1332
1332
|
}
|
|
1333
|
-
function
|
|
1333
|
+
function wi(e) {
|
|
1334
1334
|
var t, n;
|
|
1335
1335
|
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);
|
|
1336
1336
|
}
|
|
1337
|
-
var
|
|
1338
|
-
function
|
|
1337
|
+
var Ai = /^[-+]?[0-9]+e/;
|
|
1338
|
+
function Si(e, t) {
|
|
1339
1339
|
var n;
|
|
1340
1340
|
if (isNaN(e))
|
|
1341
1341
|
switch (t) {
|
|
@@ -1366,36 +1366,36 @@ function ki(e, t) {
|
|
|
1366
1366
|
}
|
|
1367
1367
|
else if (G.isNegativeZero(e))
|
|
1368
1368
|
return "-0.0";
|
|
1369
|
-
return n = e.toString(10),
|
|
1369
|
+
return n = e.toString(10), Ai.test(n) ? n.replace("e", ".e") : n;
|
|
1370
1370
|
}
|
|
1371
|
-
function
|
|
1371
|
+
function Ii(e) {
|
|
1372
1372
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || G.isNegativeZero(e));
|
|
1373
1373
|
}
|
|
1374
|
-
var
|
|
1374
|
+
var Zt = new Q("tag:yaml.org,2002:float", {
|
|
1375
1375
|
kind: "scalar",
|
|
1376
|
-
resolve:
|
|
1377
|
-
construct:
|
|
1378
|
-
predicate:
|
|
1379
|
-
represent:
|
|
1376
|
+
resolve: ki,
|
|
1377
|
+
construct: wi,
|
|
1378
|
+
predicate: Ii,
|
|
1379
|
+
represent: Si,
|
|
1380
1380
|
defaultStyle: "lowercase"
|
|
1381
|
-
}),
|
|
1381
|
+
}), Qt = zt.extend({
|
|
1382
1382
|
implicit: [
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1383
|
+
Wt,
|
|
1384
|
+
Jt,
|
|
1385
|
+
Gt,
|
|
1386
|
+
Zt
|
|
1387
1387
|
]
|
|
1388
|
-
}),
|
|
1388
|
+
}), Xt = Qt, en = new RegExp(
|
|
1389
1389
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1390
|
-
),
|
|
1390
|
+
), tn = new RegExp(
|
|
1391
1391
|
"^([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]))?))?$"
|
|
1392
1392
|
);
|
|
1393
|
-
function
|
|
1394
|
-
return e === null ? !1 :
|
|
1393
|
+
function Ei(e) {
|
|
1394
|
+
return e === null ? !1 : en.exec(e) !== null || tn.exec(e) !== null;
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function Ti(e) {
|
|
1397
1397
|
var t, n, r, i, a, o, l, s = 0, u = null, d, c, p;
|
|
1398
|
-
if (t =
|
|
1398
|
+
if (t = en.exec(e), t === null && (t = tn.exec(e)), t === null)
|
|
1399
1399
|
throw new Error("Date resolve error");
|
|
1400
1400
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
1401
1401
|
return new Date(Date.UTC(n, r, i));
|
|
@@ -1406,28 +1406,28 @@ function Si(e) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
return t[9] && (d = +t[10], c = +(t[11] || 0), u = (d * 60 + c) * 6e4, t[9] === "-" && (u = -u)), p = new Date(Date.UTC(n, r, i, a, o, l, s)), u && p.setTime(p.getTime() - u), p;
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Fi(e) {
|
|
1410
1410
|
return e.toISOString();
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var nn = new Q("tag:yaml.org,2002:timestamp", {
|
|
1413
1413
|
kind: "scalar",
|
|
1414
|
-
resolve:
|
|
1415
|
-
construct:
|
|
1414
|
+
resolve: Ei,
|
|
1415
|
+
construct: Ti,
|
|
1416
1416
|
instanceOf: Date,
|
|
1417
|
-
represent:
|
|
1417
|
+
represent: Fi
|
|
1418
1418
|
});
|
|
1419
|
-
function
|
|
1419
|
+
function Oi(e) {
|
|
1420
1420
|
return e === "<<" || e === null;
|
|
1421
1421
|
}
|
|
1422
|
-
var
|
|
1422
|
+
var rn = new Q("tag:yaml.org,2002:merge", {
|
|
1423
1423
|
kind: "scalar",
|
|
1424
|
-
resolve:
|
|
1425
|
-
}),
|
|
1424
|
+
resolve: Oi
|
|
1425
|
+
}), tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1426
1426
|
\r`;
|
|
1427
|
-
function
|
|
1427
|
+
function $i(e) {
|
|
1428
1428
|
if (e === null)
|
|
1429
1429
|
return !1;
|
|
1430
|
-
var t, n, r = 0, i = e.length, a =
|
|
1430
|
+
var t, n, r = 0, i = e.length, a = tt;
|
|
1431
1431
|
for (n = 0; n < i; n++)
|
|
1432
1432
|
if (t = a.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1433
1433
|
if (t < 0)
|
|
@@ -1436,37 +1436,37 @@ function Ti(e) {
|
|
|
1436
1436
|
}
|
|
1437
1437
|
return r % 8 === 0;
|
|
1438
1438
|
}
|
|
1439
|
-
function
|
|
1440
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a =
|
|
1439
|
+
function Li(e) {
|
|
1440
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, a = tt, o = 0, l = [];
|
|
1441
1441
|
for (t = 0; t < i; t++)
|
|
1442
1442
|
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));
|
|
1443
1443
|
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);
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1446
|
-
var t = "", n = 0, r, i, a = e.length, o =
|
|
1445
|
+
function Ni(e) {
|
|
1446
|
+
var t = "", n = 0, r, i, a = e.length, o = tt;
|
|
1447
1447
|
for (r = 0; r < a; r++)
|
|
1448
1448
|
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];
|
|
1449
1449
|
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;
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Ri(e) {
|
|
1452
1452
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1453
1453
|
}
|
|
1454
|
-
var
|
|
1454
|
+
var an = new Q("tag:yaml.org,2002:binary", {
|
|
1455
1455
|
kind: "scalar",
|
|
1456
|
-
resolve:
|
|
1457
|
-
construct:
|
|
1458
|
-
predicate:
|
|
1459
|
-
represent:
|
|
1460
|
-
}),
|
|
1461
|
-
function
|
|
1456
|
+
resolve: $i,
|
|
1457
|
+
construct: Li,
|
|
1458
|
+
predicate: Ri,
|
|
1459
|
+
represent: Ni
|
|
1460
|
+
}), Bi = Object.prototype.hasOwnProperty, Ki = Object.prototype.toString;
|
|
1461
|
+
function Mi(e) {
|
|
1462
1462
|
if (e === null)
|
|
1463
1463
|
return !0;
|
|
1464
1464
|
var t = [], n, r, i, a, o, l = e;
|
|
1465
1465
|
for (n = 0, r = l.length; n < r; n += 1) {
|
|
1466
|
-
if (i = l[n], o = !1,
|
|
1466
|
+
if (i = l[n], o = !1, Ki.call(i) !== "[object Object]")
|
|
1467
1467
|
return !1;
|
|
1468
1468
|
for (a in i)
|
|
1469
|
-
if (
|
|
1469
|
+
if (Bi.call(i, a))
|
|
1470
1470
|
if (!o)
|
|
1471
1471
|
o = !0;
|
|
1472
1472
|
else
|
|
@@ -1480,26 +1480,26 @@ function Bi(e) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return !0;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function Di(e) {
|
|
1484
1484
|
return e !== null ? e : [];
|
|
1485
1485
|
}
|
|
1486
|
-
var
|
|
1486
|
+
var on = new Q("tag:yaml.org,2002:omap", {
|
|
1487
1487
|
kind: "sequence",
|
|
1488
|
-
resolve:
|
|
1489
|
-
construct:
|
|
1490
|
-
}),
|
|
1491
|
-
function
|
|
1488
|
+
resolve: Mi,
|
|
1489
|
+
construct: Di
|
|
1490
|
+
}), Ui = Object.prototype.toString;
|
|
1491
|
+
function ji(e) {
|
|
1492
1492
|
if (e === null)
|
|
1493
1493
|
return !0;
|
|
1494
1494
|
var t, n, r, i, a, o = e;
|
|
1495
1495
|
for (a = new Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1496
|
-
if (r = o[t],
|
|
1496
|
+
if (r = o[t], Ui.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1))
|
|
1497
1497
|
return !1;
|
|
1498
1498
|
a[t] = [i[0], r[i[0]]];
|
|
1499
1499
|
}
|
|
1500
1500
|
return !0;
|
|
1501
1501
|
}
|
|
1502
|
-
function
|
|
1502
|
+
function qi(e) {
|
|
1503
1503
|
if (e === null)
|
|
1504
1504
|
return [];
|
|
1505
1505
|
var t, n, r, i, a, o = e;
|
|
@@ -1507,81 +1507,81 @@ function Di(e) {
|
|
|
1507
1507
|
r = o[t], i = Object.keys(r), a[t] = [i[0], r[i[0]]];
|
|
1508
1508
|
return a;
|
|
1509
1509
|
}
|
|
1510
|
-
var
|
|
1510
|
+
var ln = new Q("tag:yaml.org,2002:pairs", {
|
|
1511
1511
|
kind: "sequence",
|
|
1512
|
-
resolve:
|
|
1513
|
-
construct:
|
|
1514
|
-
}),
|
|
1515
|
-
function
|
|
1512
|
+
resolve: ji,
|
|
1513
|
+
construct: qi
|
|
1514
|
+
}), Pi = Object.prototype.hasOwnProperty;
|
|
1515
|
+
function Hi(e) {
|
|
1516
1516
|
if (e === null)
|
|
1517
1517
|
return !0;
|
|
1518
1518
|
var t, n = e;
|
|
1519
1519
|
for (t in n)
|
|
1520
|
-
if (
|
|
1520
|
+
if (Pi.call(n, t) && n[t] !== null)
|
|
1521
1521
|
return !1;
|
|
1522
1522
|
return !0;
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1524
|
+
function Vi(e) {
|
|
1525
1525
|
return e !== null ? e : {};
|
|
1526
1526
|
}
|
|
1527
|
-
var
|
|
1527
|
+
var sn = new Q("tag:yaml.org,2002:set", {
|
|
1528
1528
|
kind: "mapping",
|
|
1529
|
-
resolve:
|
|
1530
|
-
construct:
|
|
1531
|
-
}),
|
|
1529
|
+
resolve: Hi,
|
|
1530
|
+
construct: Vi
|
|
1531
|
+
}), nt = Xt.extend({
|
|
1532
1532
|
implicit: [
|
|
1533
|
-
|
|
1534
|
-
|
|
1533
|
+
nn,
|
|
1534
|
+
rn
|
|
1535
1535
|
],
|
|
1536
1536
|
explicit: [
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1537
|
+
an,
|
|
1538
|
+
on,
|
|
1539
|
+
ln,
|
|
1540
|
+
sn
|
|
1541
1541
|
]
|
|
1542
|
-
}),
|
|
1543
|
-
function
|
|
1542
|
+
}), fe = Object.prototype.hasOwnProperty, Be = 1, cn = 2, un = 3, Ke = 4, Ye = 1, Yi = 2, gt = 3, zi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Wi = /[\x85\u2028\u2029]/, Ji = /[,\[\]\{\}]/, dn = /^(?:!|!!|![a-z\-]+!)$/i, fn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1543
|
+
function yt(e) {
|
|
1544
1544
|
return Object.prototype.toString.call(e);
|
|
1545
1545
|
}
|
|
1546
|
-
function
|
|
1546
|
+
function oe(e) {
|
|
1547
1547
|
return e === 10 || e === 13;
|
|
1548
1548
|
}
|
|
1549
|
-
function
|
|
1549
|
+
function ye(e) {
|
|
1550
1550
|
return e === 9 || e === 32;
|
|
1551
1551
|
}
|
|
1552
|
-
function
|
|
1552
|
+
function ne(e) {
|
|
1553
1553
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1554
1554
|
}
|
|
1555
|
-
function
|
|
1555
|
+
function Ce(e) {
|
|
1556
1556
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1557
1557
|
}
|
|
1558
|
-
function
|
|
1558
|
+
function Gi(e) {
|
|
1559
1559
|
var t;
|
|
1560
1560
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function Zi(e) {
|
|
1563
1563
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1564
1564
|
}
|
|
1565
|
-
function
|
|
1565
|
+
function Qi(e) {
|
|
1566
1566
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function vt(e) {
|
|
1569
1569
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1570
1570
|
` : 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" : "";
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function Xi(e) {
|
|
1573
1573
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1574
1574
|
(e - 65536 >> 10) + 55296,
|
|
1575
1575
|
(e - 65536 & 1023) + 56320
|
|
1576
1576
|
);
|
|
1577
1577
|
}
|
|
1578
|
-
var
|
|
1579
|
-
for (var
|
|
1580
|
-
|
|
1581
|
-
function
|
|
1582
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1578
|
+
var pn = new Array(256), hn = new Array(256);
|
|
1579
|
+
for (var ve = 0; ve < 256; ve++)
|
|
1580
|
+
pn[ve] = vt(ve) ? 1 : 0, hn[ve] = vt(ve);
|
|
1581
|
+
function ea(e, t) {
|
|
1582
|
+
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 = [];
|
|
1583
1583
|
}
|
|
1584
|
-
function
|
|
1584
|
+
function mn(e, t) {
|
|
1585
1585
|
var n = {
|
|
1586
1586
|
name: e.filename,
|
|
1587
1587
|
buffer: e.input.slice(0, -1),
|
|
@@ -1590,22 +1590,22 @@ function fn(e, t) {
|
|
|
1590
1590
|
line: e.line,
|
|
1591
1591
|
column: e.position - e.lineStart
|
|
1592
1592
|
};
|
|
1593
|
-
return n.snippet =
|
|
1593
|
+
return n.snippet = ii(n), new ee(t, n);
|
|
1594
1594
|
}
|
|
1595
1595
|
function C(e, t) {
|
|
1596
|
-
throw
|
|
1596
|
+
throw mn(e, t);
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1599
|
-
e.onWarning && e.onWarning.call(null,
|
|
1598
|
+
function Me(e, t) {
|
|
1599
|
+
e.onWarning && e.onWarning.call(null, mn(e, t));
|
|
1600
1600
|
}
|
|
1601
|
-
var
|
|
1601
|
+
var bt = {
|
|
1602
1602
|
YAML: function(t, n, r) {
|
|
1603
1603
|
var i, a, o;
|
|
1604
|
-
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 &&
|
|
1604
|
+
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 && Me(t, "unsupported YAML version of the document");
|
|
1605
1605
|
},
|
|
1606
1606
|
TAG: function(t, n, r) {
|
|
1607
1607
|
var i, a;
|
|
1608
|
-
r.length !== 2 && C(t, "TAG directive accepts exactly two arguments"), i = r[0], a = r[1],
|
|
1608
|
+
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"), fe.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");
|
|
1609
1609
|
try {
|
|
1610
1610
|
a = decodeURIComponent(a);
|
|
1611
1611
|
} catch {
|
|
@@ -1614,35 +1614,35 @@ var yt = {
|
|
|
1614
1614
|
t.tagMap[i] = a;
|
|
1615
1615
|
}
|
|
1616
1616
|
};
|
|
1617
|
-
function
|
|
1617
|
+
function ue(e, t, n, r) {
|
|
1618
1618
|
var i, a, o, l;
|
|
1619
1619
|
if (t < n) {
|
|
1620
1620
|
if (l = e.input.slice(t, n), r)
|
|
1621
1621
|
for (i = 0, a = l.length; i < a; i += 1)
|
|
1622
1622
|
o = l.charCodeAt(i), o === 9 || 32 <= o && o <= 1114111 || C(e, "expected valid JSON character");
|
|
1623
1623
|
else
|
|
1624
|
-
|
|
1624
|
+
zi.test(l) && C(e, "the stream contains non-printable characters");
|
|
1625
1625
|
e.result += l;
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
function
|
|
1628
|
+
function xt(e, t, n, r) {
|
|
1629
1629
|
var i, a, o, l;
|
|
1630
1630
|
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)
|
|
1631
|
-
a = i[o],
|
|
1631
|
+
a = i[o], fe.call(t, a) || (t[a] = n[a], r[a] = !0);
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function _e(e, t, n, r, i, a, o, l, s) {
|
|
1634
1634
|
var u, d;
|
|
1635
1635
|
if (Array.isArray(i))
|
|
1636
1636
|
for (i = Array.prototype.slice.call(i), u = 0, d = i.length; u < d; u += 1)
|
|
1637
|
-
Array.isArray(i[u]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" &&
|
|
1638
|
-
if (typeof i == "object" &&
|
|
1637
|
+
Array.isArray(i[u]) && C(e, "nested arrays are not supported inside keys"), typeof i == "object" && yt(i[u]) === "[object Object]" && (i[u] = "[object Object]");
|
|
1638
|
+
if (typeof i == "object" && yt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1639
1639
|
if (Array.isArray(a))
|
|
1640
1640
|
for (u = 0, d = a.length; u < d; u += 1)
|
|
1641
|
-
|
|
1641
|
+
xt(e, t, a[u], n);
|
|
1642
1642
|
else
|
|
1643
|
-
|
|
1643
|
+
xt(e, t, a, n);
|
|
1644
1644
|
else
|
|
1645
|
-
!e.json && !
|
|
1645
|
+
!e.json && !fe.call(n, i) && fe.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, {
|
|
1646
1646
|
configurable: !0,
|
|
1647
1647
|
enumerable: !0,
|
|
1648
1648
|
writable: !0,
|
|
@@ -1650,49 +1650,49 @@ function Ce(e, t, n, r, i, a, o, l, s) {
|
|
|
1650
1650
|
}) : t[i] = a, delete n[i];
|
|
1651
1651
|
return t;
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1653
|
+
function rt(e) {
|
|
1654
1654
|
var t;
|
|
1655
1655
|
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;
|
|
1656
1656
|
}
|
|
1657
1657
|
function W(e, t, n) {
|
|
1658
1658
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1659
|
-
for (;
|
|
1659
|
+
for (; ye(i); )
|
|
1660
1660
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1661
1661
|
if (t && i === 35)
|
|
1662
1662
|
do
|
|
1663
1663
|
i = e.input.charCodeAt(++e.position);
|
|
1664
1664
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1665
|
-
if (
|
|
1666
|
-
for (
|
|
1665
|
+
if (oe(i))
|
|
1666
|
+
for (rt(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1667
1667
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1668
1668
|
else
|
|
1669
1669
|
break;
|
|
1670
1670
|
}
|
|
1671
|
-
return n !== -1 && r !== 0 && e.lineIndent < n &&
|
|
1671
|
+
return n !== -1 && r !== 0 && e.lineIndent < n && Me(e, "deficient indentation"), r;
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function qe(e) {
|
|
1674
1674
|
var t = e.position, n;
|
|
1675
|
-
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 ||
|
|
1675
|
+
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)));
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1677
|
+
function it(e, t) {
|
|
1678
1678
|
t === 1 ? e.result += " " : t > 1 && (e.result += G.repeat(`
|
|
1679
1679
|
`, t - 1));
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function ta(e, t, n) {
|
|
1682
1682
|
var r, i, a, o, l, s, u, d, c = e.kind, p = e.result, f;
|
|
1683
|
-
if (f = e.input.charCodeAt(e.position),
|
|
1683
|
+
if (f = e.input.charCodeAt(e.position), ne(f) || Ce(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i)))
|
|
1684
1684
|
return !1;
|
|
1685
1685
|
for (e.kind = "scalar", e.result = "", a = o = e.position, l = !1; f !== 0; ) {
|
|
1686
1686
|
if (f === 58) {
|
|
1687
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
1687
|
+
if (i = e.input.charCodeAt(e.position + 1), ne(i) || n && Ce(i))
|
|
1688
1688
|
break;
|
|
1689
1689
|
} else if (f === 35) {
|
|
1690
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
1690
|
+
if (r = e.input.charCodeAt(e.position - 1), ne(r))
|
|
1691
1691
|
break;
|
|
1692
1692
|
} else {
|
|
1693
|
-
if (e.position === e.lineStart &&
|
|
1693
|
+
if (e.position === e.lineStart && qe(e) || n && Ce(f))
|
|
1694
1694
|
break;
|
|
1695
|
-
if (
|
|
1695
|
+
if (oe(f))
|
|
1696
1696
|
if (s = e.line, u = e.lineStart, d = e.lineIndent, W(e, !1, -1), e.lineIndent >= t) {
|
|
1697
1697
|
l = !0, f = e.input.charCodeAt(e.position);
|
|
1698
1698
|
continue;
|
|
@@ -1701,50 +1701,50 @@ function Qi(e, t, n) {
|
|
|
1701
1701
|
break;
|
|
1702
1702
|
}
|
|
1703
1703
|
}
|
|
1704
|
-
l && (
|
|
1704
|
+
l && (ue(e, a, o, !1), it(e, e.line - s), a = o = e.position, l = !1), ye(f) || (o = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1705
1705
|
}
|
|
1706
|
-
return
|
|
1706
|
+
return ue(e, a, o, !1), e.result ? !0 : (e.kind = c, e.result = p, !1);
|
|
1707
1707
|
}
|
|
1708
|
-
function
|
|
1708
|
+
function na(e, t) {
|
|
1709
1709
|
var n, r, i;
|
|
1710
1710
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1711
1711
|
return !1;
|
|
1712
1712
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1713
1713
|
if (n === 39)
|
|
1714
|
-
if (
|
|
1714
|
+
if (ue(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1715
1715
|
r = e.position, e.position++, i = e.position;
|
|
1716
1716
|
else
|
|
1717
1717
|
return !0;
|
|
1718
1718
|
else
|
|
1719
|
-
|
|
1719
|
+
oe(n) ? (ue(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);
|
|
1720
1720
|
C(e, "unexpected end of the stream within a single quoted scalar");
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function ra(e, t) {
|
|
1723
1723
|
var n, r, i, a, o, l;
|
|
1724
1724
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1725
1725
|
return !1;
|
|
1726
1726
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1727
1727
|
if (l === 34)
|
|
1728
|
-
return
|
|
1728
|
+
return ue(e, n, e.position, !0), e.position++, !0;
|
|
1729
1729
|
if (l === 92) {
|
|
1730
|
-
if (
|
|
1730
|
+
if (ue(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), oe(l))
|
|
1731
1731
|
W(e, !1, t);
|
|
1732
|
-
else if (l < 256 &&
|
|
1733
|
-
e.result +=
|
|
1734
|
-
else if ((o =
|
|
1732
|
+
else if (l < 256 && pn[l])
|
|
1733
|
+
e.result += hn[l], e.position++;
|
|
1734
|
+
else if ((o = Zi(l)) > 0) {
|
|
1735
1735
|
for (i = o, a = 0; i > 0; i--)
|
|
1736
|
-
l = e.input.charCodeAt(++e.position), (o =
|
|
1737
|
-
e.result +=
|
|
1736
|
+
l = e.input.charCodeAt(++e.position), (o = Gi(l)) >= 0 ? a = (a << 4) + o : C(e, "expected hexadecimal character");
|
|
1737
|
+
e.result += Xi(a), e.position++;
|
|
1738
1738
|
} else
|
|
1739
1739
|
C(e, "unknown escape sequence");
|
|
1740
1740
|
n = r = e.position;
|
|
1741
1741
|
} else
|
|
1742
|
-
|
|
1742
|
+
oe(l) ? (ue(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);
|
|
1743
1743
|
}
|
|
1744
1744
|
C(e, "unexpected end of the stream within a double quoted scalar");
|
|
1745
1745
|
}
|
|
1746
|
-
function
|
|
1747
|
-
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, p, f, b = /* @__PURE__ */ Object.create(null), v,
|
|
1746
|
+
function ia(e, t) {
|
|
1747
|
+
var n = !0, r, i, a, o = e.tag, l, s = e.anchor, u, d, c, p, f, b = /* @__PURE__ */ Object.create(null), v, w, M, E;
|
|
1748
1748
|
if (E = e.input.charCodeAt(e.position), E === 91)
|
|
1749
1749
|
d = 93, f = !1, l = [];
|
|
1750
1750
|
else if (E === 123)
|
|
@@ -1754,12 +1754,12 @@ function ta(e, t) {
|
|
|
1754
1754
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), E = e.input.charCodeAt(++e.position); E !== 0; ) {
|
|
1755
1755
|
if (W(e, !0, t), E = e.input.charCodeAt(e.position), E === d)
|
|
1756
1756
|
return e.position++, e.tag = o, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1757
|
-
n ? E === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"),
|
|
1757
|
+
n ? E === 44 && C(e, "expected the node content, but found ','") : C(e, "missed comma between flow collection entries"), w = v = M = null, c = p = !1, E === 63 && (u = e.input.charCodeAt(e.position + 1), ne(u) && (c = p = !0, e.position++, W(e, !0, t))), r = e.line, i = e.lineStart, a = e.position, we(e, t, Be, !1, !0), w = e.tag, v = e.result, W(e, !0, t), E = e.input.charCodeAt(e.position), (p || e.line === r) && E === 58 && (c = !0, E = e.input.charCodeAt(++e.position), W(e, !0, t), we(e, t, Be, !1, !0), M = e.result), f ? _e(e, l, b, w, v, M, r, i, a) : c ? l.push(_e(e, null, b, w, v, M, r, i, a)) : l.push(v), W(e, !0, t), E = e.input.charCodeAt(e.position), E === 44 ? (n = !0, E = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1758
1758
|
}
|
|
1759
1759
|
C(e, "unexpected end of the stream within a flow collection");
|
|
1760
1760
|
}
|
|
1761
|
-
function
|
|
1762
|
-
var n, r, i =
|
|
1761
|
+
function aa(e, t) {
|
|
1762
|
+
var n, r, i = Ye, a = !1, o = !1, l = t, s = 0, u = !1, d, c;
|
|
1763
1763
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
1764
1764
|
r = !1;
|
|
1765
1765
|
else if (c === 62)
|
|
@@ -1768,74 +1768,74 @@ function na(e, t) {
|
|
|
1768
1768
|
return !1;
|
|
1769
1769
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
1770
1770
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
1771
|
-
|
|
1772
|
-
else if ((d =
|
|
1771
|
+
Ye === i ? i = c === 43 ? gt : Yi : C(e, "repeat of a chomping mode identifier");
|
|
1772
|
+
else if ((d = Qi(c)) >= 0)
|
|
1773
1773
|
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);
|
|
1774
1774
|
else
|
|
1775
1775
|
break;
|
|
1776
|
-
if (
|
|
1776
|
+
if (ye(c)) {
|
|
1777
1777
|
do
|
|
1778
1778
|
c = e.input.charCodeAt(++e.position);
|
|
1779
|
-
while (
|
|
1779
|
+
while (ye(c));
|
|
1780
1780
|
if (c === 35)
|
|
1781
1781
|
do
|
|
1782
1782
|
c = e.input.charCodeAt(++e.position);
|
|
1783
|
-
while (!
|
|
1783
|
+
while (!oe(c) && c !== 0);
|
|
1784
1784
|
}
|
|
1785
1785
|
for (; c !== 0; ) {
|
|
1786
|
-
for (
|
|
1786
|
+
for (rt(e), e.lineIndent = 0, c = e.input.charCodeAt(e.position); (!o || e.lineIndent < l) && c === 32; )
|
|
1787
1787
|
e.lineIndent++, c = e.input.charCodeAt(++e.position);
|
|
1788
|
-
if (!o && e.lineIndent > l && (l = e.lineIndent),
|
|
1788
|
+
if (!o && e.lineIndent > l && (l = e.lineIndent), oe(c)) {
|
|
1789
1789
|
s++;
|
|
1790
1790
|
continue;
|
|
1791
1791
|
}
|
|
1792
1792
|
if (e.lineIndent < l) {
|
|
1793
|
-
i ===
|
|
1794
|
-
`, a ? 1 + s : s) : i ===
|
|
1793
|
+
i === gt ? e.result += G.repeat(`
|
|
1794
|
+
`, a ? 1 + s : s) : i === Ye && a && (e.result += `
|
|
1795
1795
|
`);
|
|
1796
1796
|
break;
|
|
1797
1797
|
}
|
|
1798
|
-
for (r ?
|
|
1798
|
+
for (r ? ye(c) ? (u = !0, e.result += G.repeat(`
|
|
1799
1799
|
`, a ? 1 + s : s)) : u ? (u = !1, e.result += G.repeat(`
|
|
1800
1800
|
`, s + 1)) : s === 0 ? a && (e.result += " ") : e.result += G.repeat(`
|
|
1801
1801
|
`, s) : e.result += G.repeat(`
|
|
1802
|
-
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !
|
|
1802
|
+
`, a ? 1 + s : s), a = !0, o = !0, s = 0, n = e.position; !oe(c) && c !== 0; )
|
|
1803
1803
|
c = e.input.charCodeAt(++e.position);
|
|
1804
|
-
|
|
1804
|
+
ue(e, n, e.position, !1);
|
|
1805
1805
|
}
|
|
1806
1806
|
return !0;
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function Ct(e, t) {
|
|
1809
1809
|
var n, r = e.tag, i = e.anchor, a = [], o, l = !1, s;
|
|
1810
1810
|
if (e.firstTabInLine !== -1)
|
|
1811
1811
|
return !1;
|
|
1812
|
-
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), !
|
|
1812
|
+
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)))); ) {
|
|
1813
1813
|
if (l = !0, e.position++, W(e, !0, -1) && e.lineIndent <= t) {
|
|
1814
1814
|
a.push(null), s = e.input.charCodeAt(e.position);
|
|
1815
1815
|
continue;
|
|
1816
1816
|
}
|
|
1817
|
-
if (n = e.line,
|
|
1817
|
+
if (n = e.line, we(e, t, un, !1, !0), a.push(e.result), W(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1818
1818
|
C(e, "bad indentation of a sequence entry");
|
|
1819
1819
|
else if (e.lineIndent < t)
|
|
1820
1820
|
break;
|
|
1821
1821
|
}
|
|
1822
1822
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1823
1823
|
}
|
|
1824
|
-
function
|
|
1825
|
-
var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, p = /* @__PURE__ */ Object.create(null), f = null, b = null, v = null,
|
|
1824
|
+
function oa(e, t, n) {
|
|
1825
|
+
var r, i, a, o, l, s, u = e.tag, d = e.anchor, c = {}, p = /* @__PURE__ */ Object.create(null), f = null, b = null, v = null, w = !1, M = !1, E;
|
|
1826
1826
|
if (e.firstTabInLine !== -1)
|
|
1827
1827
|
return !1;
|
|
1828
1828
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), E = e.input.charCodeAt(e.position); E !== 0; ) {
|
|
1829
|
-
if (!
|
|
1830
|
-
E === 63 ? (
|
|
1829
|
+
if (!w && 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, (E === 63 || E === 58) && ne(r))
|
|
1830
|
+
E === 63 ? (w && (_e(e, c, p, f, b, null, o, l, s), f = b = v = null), M = !0, w = !0, i = !0) : w ? (w = !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, E = r;
|
|
1831
1831
|
else {
|
|
1832
|
-
if (o = e.line, l = e.lineStart, s = e.position, !
|
|
1832
|
+
if (o = e.line, l = e.lineStart, s = e.position, !we(e, n, cn, !1, !0))
|
|
1833
1833
|
break;
|
|
1834
1834
|
if (e.line === a) {
|
|
1835
|
-
for (E = e.input.charCodeAt(e.position);
|
|
1835
|
+
for (E = e.input.charCodeAt(e.position); ye(E); )
|
|
1836
1836
|
E = e.input.charCodeAt(++e.position);
|
|
1837
1837
|
if (E === 58)
|
|
1838
|
-
E = e.input.charCodeAt(++e.position),
|
|
1838
|
+
E = e.input.charCodeAt(++e.position), ne(E) || C(e, "a whitespace character is expected after the key-value separator within a block mapping"), w && (_e(e, c, p, f, b, null, o, l, s), f = b = v = null), M = !0, w = !1, i = !1, f = e.tag, b = e.result;
|
|
1839
1839
|
else if (M)
|
|
1840
1840
|
C(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1841
1841
|
else
|
|
@@ -1845,14 +1845,14 @@ function ra(e, t, n) {
|
|
|
1845
1845
|
else
|
|
1846
1846
|
return e.tag = u, e.anchor = d, !0;
|
|
1847
1847
|
}
|
|
1848
|
-
if ((e.line === a || e.lineIndent > t) && (
|
|
1848
|
+
if ((e.line === a || e.lineIndent > t) && (w && (o = e.line, l = e.lineStart, s = e.position), we(e, t, Ke, !0, i) && (w ? b = e.result : v = e.result), w || (_e(e, c, p, f, b, v, o, l, s), f = b = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
|
|
1849
1849
|
C(e, "bad indentation of a mapping entry");
|
|
1850
1850
|
else if (e.lineIndent < t)
|
|
1851
1851
|
break;
|
|
1852
1852
|
}
|
|
1853
|
-
return
|
|
1853
|
+
return w && _e(e, c, p, f, b, null, o, l, s), M && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), M;
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function la(e) {
|
|
1856
1856
|
var t, n = !1, r = !1, i, a, o;
|
|
1857
1857
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
1858
1858
|
return !1;
|
|
@@ -1862,40 +1862,40 @@ function ia(e) {
|
|
|
1862
1862
|
while (o !== 0 && o !== 62);
|
|
1863
1863
|
e.position < e.length ? (a = e.input.slice(t, e.position), o = e.input.charCodeAt(++e.position)) : C(e, "unexpected end of the stream within a verbatim tag");
|
|
1864
1864
|
} else {
|
|
1865
|
-
for (; o !== 0 && !
|
|
1866
|
-
o === 33 && (r ? C(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1),
|
|
1867
|
-
a = e.input.slice(t, e.position),
|
|
1865
|
+
for (; o !== 0 && !ne(o); )
|
|
1866
|
+
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);
|
|
1867
|
+
a = e.input.slice(t, e.position), Ji.test(a) && C(e, "tag suffix cannot contain flow indicator characters");
|
|
1868
1868
|
}
|
|
1869
|
-
a && !
|
|
1869
|
+
a && !fn.test(a) && C(e, "tag name cannot contain such characters: " + a);
|
|
1870
1870
|
try {
|
|
1871
1871
|
a = decodeURIComponent(a);
|
|
1872
1872
|
} catch {
|
|
1873
1873
|
C(e, "tag name is malformed: " + a);
|
|
1874
1874
|
}
|
|
1875
|
-
return n ? e.tag = a :
|
|
1875
|
+
return n ? e.tag = a : fe.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;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function sa(e) {
|
|
1878
1878
|
var t, n;
|
|
1879
1879
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
1880
1880
|
return !1;
|
|
1881
|
-
for (e.anchor !== null && C(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !
|
|
1881
|
+
for (e.anchor !== null && C(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ne(n) && !Ce(n); )
|
|
1882
1882
|
n = e.input.charCodeAt(++e.position);
|
|
1883
1883
|
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;
|
|
1884
1884
|
}
|
|
1885
|
-
function
|
|
1885
|
+
function ca(e) {
|
|
1886
1886
|
var t, n, r;
|
|
1887
1887
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
1888
1888
|
return !1;
|
|
1889
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
1889
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ne(r) && !Ce(r); )
|
|
1890
1890
|
r = e.input.charCodeAt(++e.position);
|
|
1891
|
-
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
1891
|
+
return e.position === t && C(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), fe.call(e.anchorMap, n) || C(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], W(e, !0, -1), !0;
|
|
1892
1892
|
}
|
|
1893
|
-
function
|
|
1894
|
-
var a, o, l, s = 1, u = !1, d = !1, c, p, f, b, v,
|
|
1895
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l =
|
|
1896
|
-
for (;
|
|
1893
|
+
function we(e, t, n, r, i) {
|
|
1894
|
+
var a, o, l, s = 1, u = !1, d = !1, c, p, f, b, v, w;
|
|
1895
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Ke === n || un === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1896
|
+
for (; la(e) || sa(e); )
|
|
1897
1897
|
W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1898
|
-
if (l && (l = u || i), (s === 1 ||
|
|
1898
|
+
if (l && (l = u || i), (s === 1 || Ke === n) && (Be === n || cn === n ? v = t : v = t + 1, w = e.position - e.lineStart, s === 1 ? l && (Ct(e, w) || oa(e, w, v)) || ia(e, v) ? d = !0 : (o && aa(e, v) || na(e, v) || ra(e, v) ? d = !0 : ca(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : ta(e, v, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ct(e, w))), e.tag === null)
|
|
1899
1899
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1900
1900
|
else if (e.tag === "?") {
|
|
1901
1901
|
for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, p = e.implicitTypes.length; c < p; c += 1)
|
|
@@ -1904,7 +1904,7 @@ function ke(e, t, n, r, i) {
|
|
|
1904
1904
|
break;
|
|
1905
1905
|
}
|
|
1906
1906
|
} else if (e.tag !== "!") {
|
|
1907
|
-
if (
|
|
1907
|
+
if (fe.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1908
1908
|
b = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1909
1909
|
else
|
|
1910
1910
|
for (b = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, p = f.length; c < p; c += 1)
|
|
@@ -1916,29 +1916,29 @@ function ke(e, t, n, r, i) {
|
|
|
1916
1916
|
}
|
|
1917
1917
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1918
1918
|
}
|
|
1919
|
-
function
|
|
1919
|
+
function ua(e) {
|
|
1920
1920
|
var t = e.position, n, r, i, a = !1, o;
|
|
1921
1921
|
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)); ) {
|
|
1922
|
-
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !
|
|
1922
|
+
for (a = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ne(o); )
|
|
1923
1923
|
o = e.input.charCodeAt(++e.position);
|
|
1924
1924
|
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; ) {
|
|
1925
|
-
for (;
|
|
1925
|
+
for (; ye(o); )
|
|
1926
1926
|
o = e.input.charCodeAt(++e.position);
|
|
1927
1927
|
if (o === 35) {
|
|
1928
1928
|
do
|
|
1929
1929
|
o = e.input.charCodeAt(++e.position);
|
|
1930
|
-
while (o !== 0 && !
|
|
1930
|
+
while (o !== 0 && !oe(o));
|
|
1931
1931
|
break;
|
|
1932
1932
|
}
|
|
1933
|
-
if (
|
|
1933
|
+
if (oe(o))
|
|
1934
1934
|
break;
|
|
1935
|
-
for (n = e.position; o !== 0 && !
|
|
1935
|
+
for (n = e.position; o !== 0 && !ne(o); )
|
|
1936
1936
|
o = e.input.charCodeAt(++e.position);
|
|
1937
1937
|
i.push(e.input.slice(n, e.position));
|
|
1938
1938
|
}
|
|
1939
|
-
o !== 0 &&
|
|
1939
|
+
o !== 0 && rt(e), fe.call(bt, r) ? bt[r](e, r, i) : Me(e, 'unknown document directive "' + r + '"');
|
|
1940
1940
|
}
|
|
1941
|
-
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"),
|
|
1941
|
+
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, Ke, !1, !0), W(e, !0, -1), e.checkLineBreaks && Wi.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
1942
1942
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
|
|
1943
1943
|
return;
|
|
1944
1944
|
}
|
|
@@ -1947,52 +1947,52 @@ function la(e) {
|
|
|
1947
1947
|
else
|
|
1948
1948
|
return;
|
|
1949
1949
|
}
|
|
1950
|
-
function
|
|
1950
|
+
function gn(e, t) {
|
|
1951
1951
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1952
1952
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1953
|
-
var n = new
|
|
1953
|
+
var n = new ea(e, t), r = e.indexOf("\0");
|
|
1954
1954
|
for (r !== -1 && (n.position = r, C(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1955
1955
|
n.lineIndent += 1, n.position += 1;
|
|
1956
1956
|
for (; n.position < n.length - 1; )
|
|
1957
|
-
|
|
1957
|
+
ua(n);
|
|
1958
1958
|
return n.documents;
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function da(e, t, n) {
|
|
1961
1961
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
1962
|
-
var r =
|
|
1962
|
+
var r = gn(e, n);
|
|
1963
1963
|
if (typeof t != "function")
|
|
1964
1964
|
return r;
|
|
1965
1965
|
for (var i = 0, a = r.length; i < a; i += 1)
|
|
1966
1966
|
t(r[i]);
|
|
1967
1967
|
}
|
|
1968
|
-
function
|
|
1969
|
-
var n =
|
|
1968
|
+
function fa(e, t) {
|
|
1969
|
+
var n = gn(e, t);
|
|
1970
1970
|
if (n.length !== 0) {
|
|
1971
1971
|
if (n.length === 1)
|
|
1972
1972
|
return n[0];
|
|
1973
|
-
throw new
|
|
1973
|
+
throw new ee("expected a single document in the stream, but found more");
|
|
1974
1974
|
}
|
|
1975
1975
|
}
|
|
1976
|
-
var
|
|
1977
|
-
loadAll:
|
|
1978
|
-
load:
|
|
1979
|
-
},
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
var
|
|
1976
|
+
var pa = da, ha = fa, yn = {
|
|
1977
|
+
loadAll: pa,
|
|
1978
|
+
load: ha
|
|
1979
|
+
}, vn = Object.prototype.toString, bn = Object.prototype.hasOwnProperty, at = 65279, ma = 9, Ee = 10, ga = 13, ya = 32, va = 33, ba = 34, Je = 35, xa = 37, Ca = 38, _a = 39, ka = 42, xn = 44, wa = 45, De = 58, Aa = 61, Sa = 62, Ia = 63, Ea = 64, Cn = 91, _n = 93, Ta = 96, kn = 123, Fa = 124, wn = 125, X = {};
|
|
1980
|
+
X[0] = "\\0";
|
|
1981
|
+
X[7] = "\\a";
|
|
1982
|
+
X[8] = "\\b";
|
|
1983
|
+
X[9] = "\\t";
|
|
1984
|
+
X[10] = "\\n";
|
|
1985
|
+
X[11] = "\\v";
|
|
1986
|
+
X[12] = "\\f";
|
|
1987
|
+
X[13] = "\\r";
|
|
1988
|
+
X[27] = "\\e";
|
|
1989
|
+
X[34] = '\\"';
|
|
1990
|
+
X[92] = "\\\\";
|
|
1991
|
+
X[133] = "\\N";
|
|
1992
|
+
X[160] = "\\_";
|
|
1993
|
+
X[8232] = "\\L";
|
|
1994
|
+
X[8233] = "\\P";
|
|
1995
|
+
var Oa = [
|
|
1996
1996
|
"y",
|
|
1997
1997
|
"Y",
|
|
1998
1998
|
"yes",
|
|
@@ -2009,16 +2009,16 @@ var Ea = [
|
|
|
2009
2009
|
"off",
|
|
2010
2010
|
"Off",
|
|
2011
2011
|
"OFF"
|
|
2012
|
-
],
|
|
2013
|
-
function
|
|
2012
|
+
], $a = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2013
|
+
function La(e, t) {
|
|
2014
2014
|
var n, r, i, a, o, l, s;
|
|
2015
2015
|
if (t === null)
|
|
2016
2016
|
return {};
|
|
2017
2017
|
for (n = {}, r = Object.keys(t), i = 0, a = r.length; i < a; i += 1)
|
|
2018
|
-
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 &&
|
|
2018
|
+
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;
|
|
2019
2019
|
return n;
|
|
2020
2020
|
}
|
|
2021
|
-
function
|
|
2021
|
+
function Na(e) {
|
|
2022
2022
|
var t, n, r;
|
|
2023
2023
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2024
2024
|
n = "x", r = 2;
|
|
@@ -2027,97 +2027,97 @@ function Oa(e) {
|
|
|
2027
2027
|
else if (e <= 4294967295)
|
|
2028
2028
|
n = "U", r = 8;
|
|
2029
2029
|
else
|
|
2030
|
-
throw new
|
|
2030
|
+
throw new ee("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2031
2031
|
return "\\" + n + G.repeat("0", r - t.length) + t;
|
|
2032
2032
|
}
|
|
2033
|
-
var
|
|
2034
|
-
function
|
|
2035
|
-
this.schema = e.schema ||
|
|
2033
|
+
var Ra = 1, Te = 2;
|
|
2034
|
+
function Ba(e) {
|
|
2035
|
+
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 = La(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 === '"' ? Te : Ra, 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;
|
|
2036
2036
|
}
|
|
2037
|
-
function
|
|
2037
|
+
function _t(e, t) {
|
|
2038
2038
|
for (var n = G.repeat(" ", t), r = 0, i = -1, a = "", o, l = e.length; r < l; )
|
|
2039
2039
|
i = e.indexOf(`
|
|
2040
2040
|
`, r), i === -1 ? (o = e.slice(r), r = l) : (o = e.slice(r, i + 1), r = i + 1), o.length && o !== `
|
|
2041
2041
|
` && (a += n), a += o;
|
|
2042
2042
|
return a;
|
|
2043
2043
|
}
|
|
2044
|
-
function
|
|
2044
|
+
function Ge(e, t) {
|
|
2045
2045
|
return `
|
|
2046
2046
|
` + G.repeat(" ", e.indent * t);
|
|
2047
2047
|
}
|
|
2048
|
-
function
|
|
2048
|
+
function Ka(e, t) {
|
|
2049
2049
|
var n, r, i;
|
|
2050
2050
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2051
2051
|
if (i = e.implicitTypes[n], i.resolve(t))
|
|
2052
2052
|
return !0;
|
|
2053
2053
|
return !1;
|
|
2054
2054
|
}
|
|
2055
|
-
function
|
|
2056
|
-
return e ===
|
|
2055
|
+
function Ue(e) {
|
|
2056
|
+
return e === ya || e === ma;
|
|
2057
2057
|
}
|
|
2058
|
-
function
|
|
2059
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2058
|
+
function Fe(e) {
|
|
2059
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== at || 65536 <= e && e <= 1114111;
|
|
2060
2060
|
}
|
|
2061
|
-
function
|
|
2062
|
-
return
|
|
2061
|
+
function kt(e) {
|
|
2062
|
+
return Fe(e) && e !== at && e !== ga && e !== Ee;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2065
|
-
var r =
|
|
2064
|
+
function wt(e, t, n) {
|
|
2065
|
+
var r = kt(e), i = r && !Ue(e);
|
|
2066
2066
|
return (
|
|
2067
2067
|
// ns-plain-safe
|
|
2068
2068
|
(n ? (
|
|
2069
2069
|
// c = flow-in
|
|
2070
2070
|
r
|
|
2071
|
-
) : r && e !==
|
|
2071
|
+
) : r && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn) && e !== Je && !(t === De && !i) || kt(t) && !Ue(t) && e === Je || t === De && i
|
|
2072
2072
|
);
|
|
2073
2073
|
}
|
|
2074
|
-
function
|
|
2075
|
-
return
|
|
2074
|
+
function Ma(e) {
|
|
2075
|
+
return Fe(e) && e !== at && !Ue(e) && e !== wa && e !== Ia && e !== De && e !== xn && e !== Cn && e !== _n && e !== kn && e !== wn && e !== Je && e !== Ca && e !== ka && e !== va && e !== Fa && e !== Aa && e !== Sa && e !== _a && e !== ba && e !== xa && e !== Ea && e !== Ta;
|
|
2076
2076
|
}
|
|
2077
|
-
function
|
|
2078
|
-
return !
|
|
2077
|
+
function Da(e) {
|
|
2078
|
+
return !Ue(e) && e !== De;
|
|
2079
2079
|
}
|
|
2080
|
-
function
|
|
2080
|
+
function Se(e, t) {
|
|
2081
2081
|
var n = e.charCodeAt(t), r;
|
|
2082
2082
|
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;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function An(e) {
|
|
2085
2085
|
var t = /^\n* /;
|
|
2086
2086
|
return t.test(e);
|
|
2087
2087
|
}
|
|
2088
|
-
var
|
|
2089
|
-
function
|
|
2090
|
-
var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, v =
|
|
2088
|
+
var Sn = 1, Ze = 2, In = 3, En = 4, xe = 5;
|
|
2089
|
+
function Ua(e, t, n, r, i, a, o, l) {
|
|
2090
|
+
var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, v = Ma(Se(e, 0)) && Da(Se(e, e.length - 1));
|
|
2091
2091
|
if (t || o)
|
|
2092
2092
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2093
|
-
if (u =
|
|
2094
|
-
return
|
|
2095
|
-
v = v &&
|
|
2093
|
+
if (u = Se(e, s), !Fe(u))
|
|
2094
|
+
return xe;
|
|
2095
|
+
v = v && wt(u, d, l), d = u;
|
|
2096
2096
|
}
|
|
2097
2097
|
else {
|
|
2098
2098
|
for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
|
|
2099
|
-
if (u =
|
|
2099
|
+
if (u = Se(e, s), u === Ee)
|
|
2100
2100
|
c = !0, f && (p = p || // Foldable line = too long, and not more-indented.
|
|
2101
2101
|
s - b - 1 > r && e[b + 1] !== " ", b = s);
|
|
2102
|
-
else if (!
|
|
2103
|
-
return
|
|
2104
|
-
v = v &&
|
|
2102
|
+
else if (!Fe(u))
|
|
2103
|
+
return xe;
|
|
2104
|
+
v = v && wt(u, d, l), d = u;
|
|
2105
2105
|
}
|
|
2106
2106
|
p = p || f && s - b - 1 > r && e[b + 1] !== " ";
|
|
2107
2107
|
}
|
|
2108
|
-
return !c && !p ? v && !o && !i(e) ?
|
|
2108
|
+
return !c && !p ? v && !o && !i(e) ? Sn : a === Te ? xe : Ze : n > 9 && An(e) ? xe : o ? a === Te ? xe : Ze : p ? En : In;
|
|
2109
2109
|
}
|
|
2110
|
-
function
|
|
2110
|
+
function ja(e, t, n, r, i) {
|
|
2111
2111
|
e.dump = function() {
|
|
2112
2112
|
if (t.length === 0)
|
|
2113
|
-
return e.quotingType ===
|
|
2114
|
-
if (!e.noCompatMode && (
|
|
2115
|
-
return e.quotingType ===
|
|
2113
|
+
return e.quotingType === Te ? '""' : "''";
|
|
2114
|
+
if (!e.noCompatMode && (Oa.indexOf(t) !== -1 || $a.test(t)))
|
|
2115
|
+
return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
|
|
2116
2116
|
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;
|
|
2117
2117
|
function s(u) {
|
|
2118
|
-
return
|
|
2118
|
+
return Ka(e, u);
|
|
2119
2119
|
}
|
|
2120
|
-
switch (
|
|
2120
|
+
switch (Ua(
|
|
2121
2121
|
t,
|
|
2122
2122
|
l,
|
|
2123
2123
|
e.indent,
|
|
@@ -2127,47 +2127,47 @@ function Ma(e, t, n, r, i) {
|
|
|
2127
2127
|
e.forceQuotes && !r,
|
|
2128
2128
|
i
|
|
2129
2129
|
)) {
|
|
2130
|
-
case
|
|
2130
|
+
case Sn:
|
|
2131
2131
|
return t;
|
|
2132
|
-
case
|
|
2132
|
+
case Ze:
|
|
2133
2133
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2134
|
-
case
|
|
2135
|
-
return "|" +
|
|
2136
|
-
case
|
|
2137
|
-
return ">" +
|
|
2138
|
-
case
|
|
2139
|
-
return '"' +
|
|
2134
|
+
case In:
|
|
2135
|
+
return "|" + At(t, e.indent) + St(_t(t, a));
|
|
2136
|
+
case En:
|
|
2137
|
+
return ">" + At(t, e.indent) + St(_t(qa(t, o), a));
|
|
2138
|
+
case xe:
|
|
2139
|
+
return '"' + Pa(t) + '"';
|
|
2140
2140
|
default:
|
|
2141
|
-
throw new
|
|
2141
|
+
throw new ee("impossible error: invalid scalar style");
|
|
2142
2142
|
}
|
|
2143
2143
|
}();
|
|
2144
2144
|
}
|
|
2145
|
-
function
|
|
2146
|
-
var n =
|
|
2145
|
+
function At(e, t) {
|
|
2146
|
+
var n = An(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
2147
2147
|
`, i = r && (e[e.length - 2] === `
|
|
2148
2148
|
` || e === `
|
|
2149
2149
|
`), a = i ? "+" : r ? "" : "-";
|
|
2150
2150
|
return n + a + `
|
|
2151
2151
|
`;
|
|
2152
2152
|
}
|
|
2153
|
-
function
|
|
2153
|
+
function St(e) {
|
|
2154
2154
|
return e[e.length - 1] === `
|
|
2155
2155
|
` ? e.slice(0, -1) : e;
|
|
2156
2156
|
}
|
|
2157
|
-
function
|
|
2157
|
+
function qa(e, t) {
|
|
2158
2158
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2159
2159
|
var u = e.indexOf(`
|
|
2160
2160
|
`);
|
|
2161
|
-
return u = u !== -1 ? u : e.length, n.lastIndex = u,
|
|
2161
|
+
return u = u !== -1 ? u : e.length, n.lastIndex = u, It(e.slice(0, u), t);
|
|
2162
2162
|
}(), i = e[0] === `
|
|
2163
2163
|
` || e[0] === " ", a, o; o = n.exec(e); ) {
|
|
2164
2164
|
var l = o[1], s = o[2];
|
|
2165
2165
|
a = s[0] === " ", r += l + (!i && !a && s !== "" ? `
|
|
2166
|
-
` : "") +
|
|
2166
|
+
` : "") + It(s, t), i = a;
|
|
2167
2167
|
}
|
|
2168
2168
|
return r;
|
|
2169
2169
|
}
|
|
2170
|
-
function
|
|
2170
|
+
function It(e, t) {
|
|
2171
2171
|
if (e === "" || e[0] === " ")
|
|
2172
2172
|
return e;
|
|
2173
2173
|
for (var n = / [^ ]/g, r, i = 0, a, o = 0, l = 0, s = ""; r = n.exec(e); )
|
|
@@ -2177,78 +2177,78 @@ function wt(e, t) {
|
|
|
2177
2177
|
`, e.length - i > t && o > i ? s += e.slice(i, o) + `
|
|
2178
2178
|
` + e.slice(o + 1) : s += e.slice(i), s.slice(1);
|
|
2179
2179
|
}
|
|
2180
|
-
function
|
|
2180
|
+
function Pa(e) {
|
|
2181
2181
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2182
|
-
n =
|
|
2182
|
+
n = Se(e, i), r = X[n], !r && Fe(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Na(n);
|
|
2183
2183
|
return t;
|
|
2184
2184
|
}
|
|
2185
|
-
function
|
|
2185
|
+
function Ha(e, t, n) {
|
|
2186
2186
|
var r = "", i = e.tag, a, o, l;
|
|
2187
2187
|
for (a = 0, o = n.length; a < o; a += 1)
|
|
2188
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (
|
|
2188
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (ce(e, t, l, !1, !1) || typeof l > "u" && ce(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2189
2189
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2190
2190
|
}
|
|
2191
|
-
function
|
|
2191
|
+
function Et(e, t, n, r) {
|
|
2192
2192
|
var i = "", a = e.tag, o, l, s;
|
|
2193
2193
|
for (o = 0, l = n.length; o < l; o += 1)
|
|
2194
|
-
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (
|
|
2194
|
+
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (ce(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && ce(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Ge(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2195
2195
|
e.tag = a, e.dump = i || "[]";
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2197
|
+
function Va(e, t, n) {
|
|
2198
2198
|
var r = "", i = e.tag, a = Object.keys(n), o, l, s, u, d;
|
|
2199
2199
|
for (o = 0, l = a.length; o < l; o += 1)
|
|
2200
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)),
|
|
2200
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = a[o], u = n[s], e.replacer && (u = e.replacer.call(n, s, u)), ce(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ce(e, t, u, !1, !1) && (d += e.dump, r += d));
|
|
2201
2201
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2202
2202
|
}
|
|
2203
|
-
function
|
|
2203
|
+
function Ya(e, t, n, r) {
|
|
2204
2204
|
var i = "", a = e.tag, o = Object.keys(n), l, s, u, d, c, p;
|
|
2205
2205
|
if (e.sortKeys === !0)
|
|
2206
2206
|
o.sort();
|
|
2207
2207
|
else if (typeof e.sortKeys == "function")
|
|
2208
2208
|
o.sort(e.sortKeys);
|
|
2209
2209
|
else if (e.sortKeys)
|
|
2210
|
-
throw new
|
|
2210
|
+
throw new ee("sortKeys must be a boolean or a function");
|
|
2211
2211
|
for (l = 0, s = o.length; l < s; l += 1)
|
|
2212
|
-
p = "", (!r || i !== "") && (p +=
|
|
2212
|
+
p = "", (!r || i !== "") && (p += Ge(e, t)), u = o[l], d = n[u], e.replacer && (d = e.replacer.call(n, u, d)), ce(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Ee === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, c && (p += Ge(e, t)), ce(e, t + 1, d, !0, c) && (e.dump && Ee === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, i += p));
|
|
2213
2213
|
e.tag = a, e.dump = i || "{}";
|
|
2214
2214
|
}
|
|
2215
|
-
function
|
|
2215
|
+
function Tt(e, t, n) {
|
|
2216
2216
|
var r, i, a, o, l, s;
|
|
2217
2217
|
for (i = n ? e.explicitTypes : e.implicitTypes, a = 0, o = i.length; a < o; a += 1)
|
|
2218
2218
|
if (l = i[a], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2219
2219
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2220
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2220
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, vn.call(l.represent) === "[object Function]")
|
|
2221
2221
|
r = l.represent(t, s);
|
|
2222
|
-
else if (
|
|
2222
|
+
else if (bn.call(l.represent, s))
|
|
2223
2223
|
r = l.represent[s](t, s);
|
|
2224
2224
|
else
|
|
2225
|
-
throw new
|
|
2225
|
+
throw new ee("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
2226
2226
|
e.dump = r;
|
|
2227
2227
|
}
|
|
2228
2228
|
return !0;
|
|
2229
2229
|
}
|
|
2230
2230
|
return !1;
|
|
2231
2231
|
}
|
|
2232
|
-
function
|
|
2233
|
-
e.tag = null, e.dump = n,
|
|
2234
|
-
var l =
|
|
2232
|
+
function ce(e, t, n, r, i, a, o) {
|
|
2233
|
+
e.tag = null, e.dump = n, Tt(e, n, !1) || Tt(e, n, !0);
|
|
2234
|
+
var l = vn.call(e.dump), s = r, u;
|
|
2235
2235
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2236
2236
|
var d = l === "[object Object]" || l === "[object Array]", c, p;
|
|
2237
2237
|
if (d && (c = e.duplicates.indexOf(n), p = c !== -1), (e.tag !== null && e.tag !== "?" || p || e.indent !== 2 && t > 0) && (i = !1), p && e.usedDuplicates[c])
|
|
2238
2238
|
e.dump = "*ref_" + c;
|
|
2239
2239
|
else {
|
|
2240
2240
|
if (d && p && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), l === "[object Object]")
|
|
2241
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2241
|
+
r && Object.keys(e.dump).length !== 0 ? (Ya(e, t, e.dump, i), p && (e.dump = "&ref_" + c + e.dump)) : (Va(e, t, e.dump), p && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2242
2242
|
else if (l === "[object Array]")
|
|
2243
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ?
|
|
2243
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? Et(e, t - 1, e.dump, i) : Et(e, t, e.dump, i), p && (e.dump = "&ref_" + c + e.dump)) : (Ha(e, t, e.dump), p && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2244
2244
|
else if (l === "[object String]")
|
|
2245
|
-
e.tag !== "?" &&
|
|
2245
|
+
e.tag !== "?" && ja(e, e.dump, t, a, s);
|
|
2246
2246
|
else {
|
|
2247
2247
|
if (l === "[object Undefined]")
|
|
2248
2248
|
return !1;
|
|
2249
2249
|
if (e.skipInvalid)
|
|
2250
2250
|
return !1;
|
|
2251
|
-
throw new
|
|
2251
|
+
throw new ee("unacceptable kind of an object to dump " + l);
|
|
2252
2252
|
}
|
|
2253
2253
|
e.tag !== null && e.tag !== "?" && (u = encodeURI(
|
|
2254
2254
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -2256,71 +2256,71 @@ function se(e, t, n, r, i, a, o) {
|
|
|
2256
2256
|
}
|
|
2257
2257
|
return !0;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function za(e, t) {
|
|
2260
2260
|
var n = [], r = [], i, a;
|
|
2261
|
-
for (
|
|
2261
|
+
for (Qe(e, n, r), i = 0, a = r.length; i < a; i += 1)
|
|
2262
2262
|
t.duplicates.push(n[r[i]]);
|
|
2263
2263
|
t.usedDuplicates = new Array(a);
|
|
2264
2264
|
}
|
|
2265
|
-
function
|
|
2265
|
+
function Qe(e, t, n) {
|
|
2266
2266
|
var r, i, a;
|
|
2267
2267
|
if (e !== null && typeof e == "object")
|
|
2268
2268
|
if (i = t.indexOf(e), i !== -1)
|
|
2269
2269
|
n.indexOf(i) === -1 && n.push(i);
|
|
2270
2270
|
else if (t.push(e), Array.isArray(e))
|
|
2271
2271
|
for (i = 0, a = e.length; i < a; i += 1)
|
|
2272
|
-
|
|
2272
|
+
Qe(e[i], t, n);
|
|
2273
2273
|
else
|
|
2274
2274
|
for (r = Object.keys(e), i = 0, a = r.length; i < a; i += 1)
|
|
2275
|
-
|
|
2275
|
+
Qe(e[r[i]], t, n);
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function Wa(e, t) {
|
|
2278
2278
|
t = t || {};
|
|
2279
|
-
var n = new
|
|
2280
|
-
n.noRefs ||
|
|
2279
|
+
var n = new Ba(t);
|
|
2280
|
+
n.noRefs || za(e, n);
|
|
2281
2281
|
var r = e;
|
|
2282
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2282
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), ce(n, 0, r, !0, !0) ? n.dump + `
|
|
2283
2283
|
` : "";
|
|
2284
2284
|
}
|
|
2285
|
-
var
|
|
2286
|
-
dump:
|
|
2285
|
+
var Ja = Wa, Ga = {
|
|
2286
|
+
dump: Ja
|
|
2287
2287
|
};
|
|
2288
|
-
function
|
|
2288
|
+
function ot(e, t) {
|
|
2289
2289
|
return function() {
|
|
2290
2290
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2291
2291
|
};
|
|
2292
2292
|
}
|
|
2293
|
-
var
|
|
2294
|
-
binary:
|
|
2295
|
-
float:
|
|
2296
|
-
map:
|
|
2297
|
-
null:
|
|
2298
|
-
pairs:
|
|
2299
|
-
set:
|
|
2300
|
-
timestamp:
|
|
2301
|
-
bool:
|
|
2302
|
-
int:
|
|
2303
|
-
merge:
|
|
2304
|
-
omap:
|
|
2305
|
-
seq:
|
|
2306
|
-
str:
|
|
2307
|
-
},
|
|
2308
|
-
Type:
|
|
2309
|
-
Schema:
|
|
2310
|
-
FAILSAFE_SCHEMA:
|
|
2311
|
-
JSON_SCHEMA:
|
|
2312
|
-
CORE_SCHEMA:
|
|
2313
|
-
DEFAULT_SCHEMA:
|
|
2314
|
-
load:
|
|
2315
|
-
loadAll:
|
|
2316
|
-
dump:
|
|
2317
|
-
YAMLException:
|
|
2318
|
-
types:
|
|
2319
|
-
safeLoad:
|
|
2320
|
-
safeLoadAll:
|
|
2321
|
-
safeDump:
|
|
2293
|
+
var Za = Q, Qa = Pt, Xa = zt, eo = Qt, to = Xt, no = nt, ro = yn.load, io = yn.loadAll, ao = Ga.dump, oo = ee, lo = {
|
|
2294
|
+
binary: an,
|
|
2295
|
+
float: Zt,
|
|
2296
|
+
map: Yt,
|
|
2297
|
+
null: Wt,
|
|
2298
|
+
pairs: ln,
|
|
2299
|
+
set: sn,
|
|
2300
|
+
timestamp: nn,
|
|
2301
|
+
bool: Jt,
|
|
2302
|
+
int: Gt,
|
|
2303
|
+
merge: rn,
|
|
2304
|
+
omap: on,
|
|
2305
|
+
seq: Vt,
|
|
2306
|
+
str: Ht
|
|
2307
|
+
}, so = ot("safeLoad", "load"), co = ot("safeLoadAll", "loadAll"), uo = ot("safeDump", "dump"), fo = {
|
|
2308
|
+
Type: Za,
|
|
2309
|
+
Schema: Qa,
|
|
2310
|
+
FAILSAFE_SCHEMA: Xa,
|
|
2311
|
+
JSON_SCHEMA: eo,
|
|
2312
|
+
CORE_SCHEMA: to,
|
|
2313
|
+
DEFAULT_SCHEMA: no,
|
|
2314
|
+
load: ro,
|
|
2315
|
+
loadAll: io,
|
|
2316
|
+
dump: ao,
|
|
2317
|
+
YAMLException: oo,
|
|
2318
|
+
types: lo,
|
|
2319
|
+
safeLoad: so,
|
|
2320
|
+
safeLoadAll: co,
|
|
2321
|
+
safeDump: uo
|
|
2322
2322
|
};
|
|
2323
|
-
const
|
|
2323
|
+
const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
|
|
2324
2324
|
__name: "YamlCodeBlock",
|
|
2325
2325
|
props: {
|
|
2326
2326
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2332,11 +2332,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2332
2332
|
setup(e) {
|
|
2333
2333
|
const t = e, n = k(() => {
|
|
2334
2334
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, i]) => i && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2335
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2335
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : fo.dump(r).trim();
|
|
2336
2336
|
});
|
|
2337
2337
|
return (r, i) => {
|
|
2338
|
-
const a =
|
|
2339
|
-
return h(), S("div",
|
|
2338
|
+
const a = R("KCodeBlock");
|
|
2339
|
+
return h(), S("div", po, [
|
|
2340
2340
|
t.yamlRecord ? (h(), K(a, {
|
|
2341
2341
|
key: 0,
|
|
2342
2342
|
id: "yaml-codeblock",
|
|
@@ -2347,13 +2347,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2347
2347
|
]);
|
|
2348
2348
|
};
|
|
2349
2349
|
}
|
|
2350
|
-
}),
|
|
2350
|
+
}), ho = {
|
|
2351
2351
|
key: 0,
|
|
2352
2352
|
class: "config-card-display-form"
|
|
2353
|
-
},
|
|
2353
|
+
}, mo = ["data-testid"], go = {
|
|
2354
2354
|
key: 0,
|
|
2355
2355
|
class: "config-card-prop-section-title"
|
|
2356
|
-
},
|
|
2356
|
+
}, yo = /* @__PURE__ */ H({
|
|
2357
2357
|
__name: "ConfigCardDisplay",
|
|
2358
2358
|
props: {
|
|
2359
2359
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2392,24 +2392,24 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2392
2392
|
}
|
|
2393
2393
|
},
|
|
2394
2394
|
setup(e) {
|
|
2395
|
-
const t = e, n =
|
|
2395
|
+
const t = e, n = Xe(), { i18n: { t: r } } = z.useI18n(), i = (o) => !!(o.tooltip || n[`${o.key}-label-tooltip`]), a = k(() => {
|
|
2396
2396
|
if (!t.record)
|
|
2397
2397
|
return t.record;
|
|
2398
2398
|
const o = JSON.parse(JSON.stringify(t.record));
|
|
2399
2399
|
return delete o.created_at, delete o.updated_at, o;
|
|
2400
2400
|
});
|
|
2401
|
-
return (o, l) => (h(), S(
|
|
2402
|
-
e.format === "structured" ? (h(), S("div",
|
|
2403
|
-
(h(!0), S(
|
|
2401
|
+
return (o, l) => (h(), S(se, null, [
|
|
2402
|
+
e.format === "structured" ? (h(), S("div", ho, [
|
|
2403
|
+
(h(!0), S(se, null, ae(e.propListTypes, (s) => (h(), S("div", {
|
|
2404
2404
|
key: `config-card-details-${s}-props`,
|
|
2405
|
-
class:
|
|
2405
|
+
class: de(`config-card-details-${s}-props`),
|
|
2406
2406
|
"data-testid": `config-card-details-${s}-props`
|
|
2407
2407
|
}, [
|
|
2408
|
-
s !== "basic" ? (h(), S("div",
|
|
2409
|
-
(h(!0), S(
|
|
2408
|
+
s !== "basic" ? (h(), S("div", go, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
|
|
2409
|
+
(h(!0), S(se, null, ae(e.propertyCollections[s], (u) => (h(), K(Dt, {
|
|
2410
2410
|
key: u.key,
|
|
2411
2411
|
item: u
|
|
2412
|
-
},
|
|
2412
|
+
}, ke({
|
|
2413
2413
|
label: x(() => [
|
|
2414
2414
|
Y(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2415
2415
|
]),
|
|
@@ -2429,33 +2429,33 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2429
2429
|
key: "0"
|
|
2430
2430
|
} : void 0
|
|
2431
2431
|
]), 1032, ["item"]))), 128))
|
|
2432
|
-
], 10,
|
|
2432
|
+
], 10, mo))), 128))
|
|
2433
2433
|
])) : D("", !0),
|
|
2434
|
-
e.format === "json" && t.record ? (h(), K(
|
|
2434
|
+
e.format === "json" && t.record ? (h(), K(Ut, {
|
|
2435
2435
|
key: 1,
|
|
2436
2436
|
config: t.config,
|
|
2437
2437
|
"fetcher-url": t.fetcherUrl,
|
|
2438
2438
|
"json-record": a.value,
|
|
2439
2439
|
"request-method": "get"
|
|
2440
2440
|
}, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
|
|
2441
|
-
e.format === "yaml" && t.record ? (h(), K(
|
|
2441
|
+
e.format === "yaml" && t.record ? (h(), K(Tn, {
|
|
2442
2442
|
key: 2,
|
|
2443
2443
|
"yaml-record": a.value
|
|
2444
2444
|
}, null, 8, ["yaml-record"])) : D("", !0)
|
|
2445
2445
|
], 64));
|
|
2446
2446
|
}
|
|
2447
|
-
}),
|
|
2447
|
+
}), vo = /* @__PURE__ */ ie(yo, [["__scopeId", "data-v-147a2f70"]]), le = "24px", Ne = (e, t) => {
|
|
2448
2448
|
const n = e.__vccOpts || e;
|
|
2449
2449
|
for (const [r, i] of t)
|
|
2450
2450
|
n[r] = i;
|
|
2451
2451
|
return n;
|
|
2452
|
-
},
|
|
2452
|
+
}, bo = (e) => ($e("data-v-a81be499"), e = e(), Le(), e), xo = ["aria-hidden"], Co = {
|
|
2453
2453
|
key: 0,
|
|
2454
2454
|
"data-testid": "kui-icon-svg-title"
|
|
2455
|
-
},
|
|
2455
|
+
}, _o = /* @__PURE__ */ bo(() => /* @__PURE__ */ L("path", {
|
|
2456
2456
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2457
2457
|
fill: "currentColor"
|
|
2458
|
-
}, null, -1)),
|
|
2458
|
+
}, null, -1)), ko = /* @__PURE__ */ H({
|
|
2459
2459
|
__name: "AddIcon",
|
|
2460
2460
|
props: {
|
|
2461
2461
|
/** The accessibility text provided to screen readers */
|
|
@@ -2486,7 +2486,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2486
2486
|
size: {
|
|
2487
2487
|
type: [Number, String],
|
|
2488
2488
|
required: !1,
|
|
2489
|
-
default:
|
|
2489
|
+
default: le,
|
|
2490
2490
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2491
2491
|
validator: (e) => {
|
|
2492
2492
|
if (typeof e == "number" && e > 0)
|
|
@@ -2515,7 +2515,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2515
2515
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2516
2516
|
return `${a}px`;
|
|
2517
2517
|
}
|
|
2518
|
-
return
|
|
2518
|
+
return le;
|
|
2519
2519
|
}), r = k(() => ({
|
|
2520
2520
|
boxSizing: "border-box",
|
|
2521
2521
|
color: t.color,
|
|
@@ -2524,11 +2524,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2524
2524
|
lineHeight: "0",
|
|
2525
2525
|
width: n.value
|
|
2526
2526
|
}));
|
|
2527
|
-
return (i, a) => (h(), K(
|
|
2527
|
+
return (i, a) => (h(), K(pe(e.as), {
|
|
2528
2528
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2529
2529
|
class: "kui-icon add-icon",
|
|
2530
2530
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
2531
|
-
style:
|
|
2531
|
+
style: Oe(r.value)
|
|
2532
2532
|
}, {
|
|
2533
2533
|
default: x(() => [
|
|
2534
2534
|
(h(), S("svg", {
|
|
@@ -2541,20 +2541,20 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2541
2541
|
width: "100%",
|
|
2542
2542
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2543
2543
|
}, [
|
|
2544
|
-
e.title ? (h(), S("title",
|
|
2545
|
-
|
|
2546
|
-
], 8,
|
|
2544
|
+
e.title ? (h(), S("title", Co, O(e.title), 1)) : D("", !0),
|
|
2545
|
+
_o
|
|
2546
|
+
], 8, xo))
|
|
2547
2547
|
]),
|
|
2548
2548
|
_: 1
|
|
2549
2549
|
}, 8, ["aria-hidden", "style"]));
|
|
2550
2550
|
}
|
|
2551
|
-
}),
|
|
2551
|
+
}), wo = /* @__PURE__ */ Ne(ko, [["__scopeId", "data-v-a81be499"]]), Ao = (e) => ($e("data-v-82729631"), e = e(), Le(), e), So = ["aria-hidden"], Io = {
|
|
2552
2552
|
key: 0,
|
|
2553
2553
|
"data-testid": "kui-icon-svg-title"
|
|
2554
|
-
},
|
|
2554
|
+
}, Eo = /* @__PURE__ */ Ao(() => /* @__PURE__ */ L("path", {
|
|
2555
2555
|
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",
|
|
2556
2556
|
fill: "currentColor"
|
|
2557
|
-
}, null, -1)),
|
|
2557
|
+
}, null, -1)), To = /* @__PURE__ */ H({
|
|
2558
2558
|
__name: "BookIcon",
|
|
2559
2559
|
props: {
|
|
2560
2560
|
/** The accessibility text provided to screen readers */
|
|
@@ -2585,7 +2585,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2585
2585
|
size: {
|
|
2586
2586
|
type: [Number, String],
|
|
2587
2587
|
required: !1,
|
|
2588
|
-
default:
|
|
2588
|
+
default: le,
|
|
2589
2589
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2590
2590
|
validator: (e) => {
|
|
2591
2591
|
if (typeof e == "number" && e > 0)
|
|
@@ -2614,7 +2614,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2614
2614
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2615
2615
|
return `${a}px`;
|
|
2616
2616
|
}
|
|
2617
|
-
return
|
|
2617
|
+
return le;
|
|
2618
2618
|
}), r = k(() => ({
|
|
2619
2619
|
boxSizing: "border-box",
|
|
2620
2620
|
color: t.color,
|
|
@@ -2623,11 +2623,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2623
2623
|
lineHeight: "0",
|
|
2624
2624
|
width: n.value
|
|
2625
2625
|
}));
|
|
2626
|
-
return (i, a) => (h(), K(
|
|
2626
|
+
return (i, a) => (h(), K(pe(e.as), {
|
|
2627
2627
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2628
2628
|
class: "kui-icon book-icon",
|
|
2629
2629
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2630
|
-
style:
|
|
2630
|
+
style: Oe(r.value)
|
|
2631
2631
|
}, {
|
|
2632
2632
|
default: x(() => [
|
|
2633
2633
|
(h(), S("svg", {
|
|
@@ -2640,20 +2640,20 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2640
2640
|
width: "100%",
|
|
2641
2641
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2642
2642
|
}, [
|
|
2643
|
-
e.title ? (h(), S("title",
|
|
2644
|
-
|
|
2645
|
-
], 8,
|
|
2643
|
+
e.title ? (h(), S("title", Io, O(e.title), 1)) : D("", !0),
|
|
2644
|
+
Eo
|
|
2645
|
+
], 8, So))
|
|
2646
2646
|
]),
|
|
2647
2647
|
_: 1
|
|
2648
2648
|
}, 8, ["aria-hidden", "style"]));
|
|
2649
2649
|
}
|
|
2650
|
-
}),
|
|
2650
|
+
}), Fo = /* @__PURE__ */ Ne(To, [["__scopeId", "data-v-82729631"]]), Oo = (e) => ($e("data-v-c0f10e09"), e = e(), Le(), e), $o = ["aria-hidden"], Lo = {
|
|
2651
2651
|
key: 0,
|
|
2652
2652
|
"data-testid": "kui-icon-svg-title"
|
|
2653
|
-
},
|
|
2653
|
+
}, No = /* @__PURE__ */ Oo(() => /* @__PURE__ */ L("path", {
|
|
2654
2654
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2655
2655
|
fill: "currentColor"
|
|
2656
|
-
}, null, -1)),
|
|
2656
|
+
}, null, -1)), Ro = /* @__PURE__ */ H({
|
|
2657
2657
|
__name: "ChevronDownIcon",
|
|
2658
2658
|
props: {
|
|
2659
2659
|
/** The accessibility text provided to screen readers */
|
|
@@ -2684,7 +2684,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2684
2684
|
size: {
|
|
2685
2685
|
type: [Number, String],
|
|
2686
2686
|
required: !1,
|
|
2687
|
-
default:
|
|
2687
|
+
default: le,
|
|
2688
2688
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2689
2689
|
validator: (e) => {
|
|
2690
2690
|
if (typeof e == "number" && e > 0)
|
|
@@ -2713,7 +2713,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2713
2713
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2714
2714
|
return `${a}px`;
|
|
2715
2715
|
}
|
|
2716
|
-
return
|
|
2716
|
+
return le;
|
|
2717
2717
|
}), r = k(() => ({
|
|
2718
2718
|
boxSizing: "border-box",
|
|
2719
2719
|
color: t.color,
|
|
@@ -2722,11 +2722,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2722
2722
|
lineHeight: "0",
|
|
2723
2723
|
width: n.value
|
|
2724
2724
|
}));
|
|
2725
|
-
return (i, a) => (h(), K(
|
|
2725
|
+
return (i, a) => (h(), K(pe(e.as), {
|
|
2726
2726
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2727
2727
|
class: "kui-icon chevron-down-icon",
|
|
2728
2728
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
2729
|
-
style:
|
|
2729
|
+
style: Oe(r.value)
|
|
2730
2730
|
}, {
|
|
2731
2731
|
default: x(() => [
|
|
2732
2732
|
(h(), S("svg", {
|
|
@@ -2739,20 +2739,20 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2739
2739
|
width: "100%",
|
|
2740
2740
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2741
2741
|
}, [
|
|
2742
|
-
e.title ? (h(), S("title",
|
|
2743
|
-
|
|
2744
|
-
], 8,
|
|
2742
|
+
e.title ? (h(), S("title", Lo, O(e.title), 1)) : D("", !0),
|
|
2743
|
+
No
|
|
2744
|
+
], 8, $o))
|
|
2745
2745
|
]),
|
|
2746
2746
|
_: 1
|
|
2747
2747
|
}, 8, ["aria-hidden", "style"]));
|
|
2748
2748
|
}
|
|
2749
|
-
}),
|
|
2749
|
+
}), Bo = /* @__PURE__ */ Ne(Ro, [["__scopeId", "data-v-c0f10e09"]]), Ko = (e) => ($e("data-v-79c90e9e"), e = e(), Le(), e), Mo = ["aria-hidden"], Do = {
|
|
2750
2750
|
key: 0,
|
|
2751
2751
|
"data-testid": "kui-icon-svg-title"
|
|
2752
|
-
},
|
|
2752
|
+
}, Uo = /* @__PURE__ */ Ko(() => /* @__PURE__ */ L("path", {
|
|
2753
2753
|
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",
|
|
2754
2754
|
fill: "currentColor"
|
|
2755
|
-
}, null, -1)),
|
|
2755
|
+
}, null, -1)), jo = /* @__PURE__ */ H({
|
|
2756
2756
|
__name: "CloseIcon",
|
|
2757
2757
|
props: {
|
|
2758
2758
|
/** The accessibility text provided to screen readers */
|
|
@@ -2783,7 +2783,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2783
2783
|
size: {
|
|
2784
2784
|
type: [Number, String],
|
|
2785
2785
|
required: !1,
|
|
2786
|
-
default:
|
|
2786
|
+
default: le,
|
|
2787
2787
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2788
2788
|
validator: (e) => {
|
|
2789
2789
|
if (typeof e == "number" && e > 0)
|
|
@@ -2812,7 +2812,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2812
2812
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2813
2813
|
return `${a}px`;
|
|
2814
2814
|
}
|
|
2815
|
-
return
|
|
2815
|
+
return le;
|
|
2816
2816
|
}), r = k(() => ({
|
|
2817
2817
|
boxSizing: "border-box",
|
|
2818
2818
|
color: t.color,
|
|
@@ -2821,11 +2821,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2821
2821
|
lineHeight: "0",
|
|
2822
2822
|
width: n.value
|
|
2823
2823
|
}));
|
|
2824
|
-
return (i, a) => (h(), K(
|
|
2824
|
+
return (i, a) => (h(), K(pe(e.as), {
|
|
2825
2825
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2826
2826
|
class: "kui-icon close-icon",
|
|
2827
2827
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
2828
|
-
style:
|
|
2828
|
+
style: Oe(r.value)
|
|
2829
2829
|
}, {
|
|
2830
2830
|
default: x(() => [
|
|
2831
2831
|
(h(), S("svg", {
|
|
@@ -2838,20 +2838,20 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2838
2838
|
width: "100%",
|
|
2839
2839
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2840
2840
|
}, [
|
|
2841
|
-
e.title ? (h(), S("title",
|
|
2842
|
-
|
|
2843
|
-
], 8,
|
|
2841
|
+
e.title ? (h(), S("title", Do, O(e.title), 1)) : D("", !0),
|
|
2842
|
+
Uo
|
|
2843
|
+
], 8, Mo))
|
|
2844
2844
|
]),
|
|
2845
2845
|
_: 1
|
|
2846
2846
|
}, 8, ["aria-hidden", "style"]));
|
|
2847
2847
|
}
|
|
2848
|
-
}),
|
|
2848
|
+
}), qo = /* @__PURE__ */ Ne(jo, [["__scopeId", "data-v-79c90e9e"]]), Po = (e) => ($e("data-v-3285de10"), e = e(), Le(), e), Ho = ["aria-hidden"], Vo = {
|
|
2849
2849
|
key: 0,
|
|
2850
2850
|
"data-testid": "kui-icon-svg-title"
|
|
2851
|
-
},
|
|
2851
|
+
}, Yo = /* @__PURE__ */ Po(() => /* @__PURE__ */ L("path", {
|
|
2852
2852
|
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",
|
|
2853
2853
|
fill: "currentColor"
|
|
2854
|
-
}, null, -1)),
|
|
2854
|
+
}, null, -1)), zo = /* @__PURE__ */ H({
|
|
2855
2855
|
__name: "CopyIcon",
|
|
2856
2856
|
props: {
|
|
2857
2857
|
/** The accessibility text provided to screen readers */
|
|
@@ -2882,7 +2882,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2882
2882
|
size: {
|
|
2883
2883
|
type: [Number, String],
|
|
2884
2884
|
required: !1,
|
|
2885
|
-
default:
|
|
2885
|
+
default: le,
|
|
2886
2886
|
// if setting to the imported const fails, just pass a number of 24 as the default.
|
|
2887
2887
|
validator: (e) => {
|
|
2888
2888
|
if (typeof e == "number" && e > 0)
|
|
@@ -2911,7 +2911,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2911
2911
|
if (a && !isNaN(a) && Number.isInteger(a) && a > 0)
|
|
2912
2912
|
return `${a}px`;
|
|
2913
2913
|
}
|
|
2914
|
-
return
|
|
2914
|
+
return le;
|
|
2915
2915
|
}), r = k(() => ({
|
|
2916
2916
|
boxSizing: "border-box",
|
|
2917
2917
|
color: t.color,
|
|
@@ -2920,11 +2920,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2920
2920
|
lineHeight: "0",
|
|
2921
2921
|
width: n.value
|
|
2922
2922
|
}));
|
|
2923
|
-
return (i, a) => (h(), K(
|
|
2923
|
+
return (i, a) => (h(), K(pe(e.as), {
|
|
2924
2924
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2925
2925
|
class: "kui-icon copy-icon",
|
|
2926
2926
|
"data-testid": "kui-icon-wrapper-copy-icon",
|
|
2927
|
-
style:
|
|
2927
|
+
style: Oe(r.value)
|
|
2928
2928
|
}, {
|
|
2929
2929
|
default: x(() => [
|
|
2930
2930
|
(h(), S("svg", {
|
|
@@ -2937,17 +2937,17 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
2937
2937
|
width: "100%",
|
|
2938
2938
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2939
2939
|
}, [
|
|
2940
|
-
e.title ? (h(), S("title",
|
|
2941
|
-
|
|
2942
|
-
], 8,
|
|
2940
|
+
e.title ? (h(), S("title", Vo, O(e.title), 1)) : D("", !0),
|
|
2941
|
+
Yo
|
|
2942
|
+
], 8, Ho))
|
|
2943
2943
|
]),
|
|
2944
2944
|
_: 1
|
|
2945
2945
|
}, 8, ["aria-hidden", "style"]));
|
|
2946
2946
|
}
|
|
2947
|
-
}),
|
|
2947
|
+
}), Wo = /* @__PURE__ */ Ne(zo, [["__scopeId", "data-v-3285de10"]]), Jo = {
|
|
2948
2948
|
class: "config-card-title",
|
|
2949
2949
|
"data-testid": "config-card-title"
|
|
2950
|
-
},
|
|
2950
|
+
}, Go = { class: "config-card-actions" }, Zo = ["href"], Qo = { class: "config-card-details-section" }, Xo = /* @__PURE__ */ H({
|
|
2951
2951
|
__name: "EntityBaseConfigCard",
|
|
2952
2952
|
props: {
|
|
2953
2953
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3040,100 +3040,100 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3040
3040
|
label: "YAML",
|
|
3041
3041
|
value: "yaml"
|
|
3042
3042
|
}
|
|
3043
|
-
], u =
|
|
3043
|
+
], u = B("structured"), d = (g) => {
|
|
3044
3044
|
u.value = g == null ? void 0 : g.value;
|
|
3045
3045
|
}, c = {
|
|
3046
3046
|
id: {
|
|
3047
3047
|
type: P.ID,
|
|
3048
3048
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
3049
3049
|
order: 0,
|
|
3050
|
-
section:
|
|
3050
|
+
section: re.Basic
|
|
3051
3051
|
},
|
|
3052
3052
|
name: {
|
|
3053
3053
|
order: 1,
|
|
3054
|
-
section:
|
|
3054
|
+
section: re.Basic
|
|
3055
3055
|
},
|
|
3056
3056
|
enabled: {
|
|
3057
3057
|
type: P.BadgeStatus,
|
|
3058
3058
|
order: 2,
|
|
3059
|
-
section:
|
|
3059
|
+
section: re.Basic
|
|
3060
3060
|
},
|
|
3061
3061
|
updated_at: {
|
|
3062
3062
|
type: P.Date,
|
|
3063
3063
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
3064
3064
|
order: 3,
|
|
3065
|
-
section:
|
|
3065
|
+
section: re.Basic
|
|
3066
3066
|
},
|
|
3067
3067
|
created_at: {
|
|
3068
3068
|
type: P.Date,
|
|
3069
3069
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
3070
3070
|
order: 4,
|
|
3071
|
-
section:
|
|
3071
|
+
section: re.Basic
|
|
3072
3072
|
},
|
|
3073
3073
|
tags: {
|
|
3074
3074
|
type: P.BadgeTag,
|
|
3075
3075
|
order: -1,
|
|
3076
3076
|
// the last property displayed
|
|
3077
|
-
section:
|
|
3077
|
+
section: re.Basic
|
|
3078
3078
|
}
|
|
3079
|
-
}, p =
|
|
3080
|
-
var F, _,
|
|
3079
|
+
}, p = B(!1), f = B(!1), b = B(""), v = B({}), w = k(() => {
|
|
3080
|
+
var F, _, U;
|
|
3081
3081
|
if (!v.value)
|
|
3082
3082
|
return [];
|
|
3083
3083
|
const g = [], $ = Object.keys(v.value).length;
|
|
3084
3084
|
for (const T in v.value) {
|
|
3085
|
-
const
|
|
3085
|
+
const A = (_ = (F = r.configSchema) == null ? void 0 : F[T]) == null ? void 0 : _.order, j = (U = c[T]) == null ? void 0 : U.order;
|
|
3086
3086
|
let q = $;
|
|
3087
|
-
(
|
|
3087
|
+
(j || j === 0) && (q = j === -1 ? $ + 1 : j), A && (q = A === -1 ? $ + 1 : A), g.push([T, q]);
|
|
3088
3088
|
}
|
|
3089
|
-
return g.sort(function(T,
|
|
3090
|
-
return T[1] -
|
|
3089
|
+
return g.sort(function(T, A) {
|
|
3090
|
+
return T[1] - A[1];
|
|
3091
3091
|
}), g.map((T) => {
|
|
3092
|
-
var
|
|
3093
|
-
const
|
|
3092
|
+
var he, lt;
|
|
3093
|
+
const A = T[0], j = (he = v.value) == null ? void 0 : he[A], q = ((lt = r.configSchema) == null ? void 0 : lt[A]) || {}, J = c[A];
|
|
3094
3094
|
return {
|
|
3095
|
-
key:
|
|
3096
|
-
value:
|
|
3095
|
+
key: A,
|
|
3096
|
+
value: j,
|
|
3097
3097
|
hidden: q.hidden || !1,
|
|
3098
3098
|
type: q.type ?? ((J == null ? void 0 : J.type) || P.Text),
|
|
3099
|
-
label: q.label ?? ((J == null ? void 0 : J.label) || o(
|
|
3099
|
+
label: q.label ?? ((J == null ? void 0 : J.label) || o(A)),
|
|
3100
3100
|
tooltip: q.tooltip ?? ((J == null ? void 0 : J.tooltip) || void 0),
|
|
3101
|
-
section: q.section ?? ((J == null ? void 0 : J.section) ||
|
|
3101
|
+
section: q.section ?? ((J == null ? void 0 : J.section) || re.Advanced)
|
|
3102
3102
|
};
|
|
3103
3103
|
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
3104
3104
|
}), M = k(() => {
|
|
3105
|
-
var _,
|
|
3105
|
+
var _, U;
|
|
3106
3106
|
if (!v.value || !r.pluginConfigKey)
|
|
3107
3107
|
return [];
|
|
3108
3108
|
const g = v.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, F = [];
|
|
3109
3109
|
for (const T in g) {
|
|
3110
|
-
const
|
|
3111
|
-
let q =
|
|
3112
|
-
|
|
3110
|
+
const A = (U = (_ = r.pluginConfigSchema) == null ? void 0 : _[T]) == null ? void 0 : U.order, j = g[T];
|
|
3111
|
+
let q = j != null && j !== "" ? $ - 1 : $;
|
|
3112
|
+
A && (q = A === -1 ? $ + 1 : A), F.push([T, q]);
|
|
3113
3113
|
}
|
|
3114
|
-
return F.sort(function(T,
|
|
3115
|
-
return T[1] -
|
|
3114
|
+
return F.sort(function(T, A) {
|
|
3115
|
+
return T[1] - A[1];
|
|
3116
3116
|
}), F.map((T) => {
|
|
3117
3117
|
var J;
|
|
3118
|
-
const
|
|
3118
|
+
const A = T[0], j = g[A], q = ((J = r.pluginConfigSchema) == null ? void 0 : J[A]) || {};
|
|
3119
3119
|
return {
|
|
3120
|
-
key:
|
|
3121
|
-
value:
|
|
3120
|
+
key: A,
|
|
3121
|
+
value: j,
|
|
3122
3122
|
hidden: q.hidden || !1,
|
|
3123
3123
|
type: q.type ?? P.Text,
|
|
3124
|
-
label: q.label ?? o(
|
|
3124
|
+
label: q.label ?? o(A),
|
|
3125
3125
|
tooltip: q.tooltip ?? void 0,
|
|
3126
|
-
section:
|
|
3126
|
+
section: re.Plugin
|
|
3127
3127
|
};
|
|
3128
3128
|
}).filter((T) => !T.hidden);
|
|
3129
3129
|
}), E = k(() => {
|
|
3130
3130
|
var g, $, F, _;
|
|
3131
3131
|
return {
|
|
3132
|
-
basic: (g =
|
|
3133
|
-
advanced: ($ =
|
|
3134
|
-
plugin: (_ = M.value) == null ? void 0 : _.concat((F =
|
|
3132
|
+
basic: (g = w.value) == null ? void 0 : g.filter((U) => U.section === re.Basic),
|
|
3133
|
+
advanced: ($ = w.value) == null ? void 0 : $.filter((U) => U.section === re.Advanced),
|
|
3134
|
+
plugin: (_ = M.value) == null ? void 0 : _.concat((F = w.value) == null ? void 0 : F.filter((U) => U.section === re.Plugin))
|
|
3135
3135
|
};
|
|
3136
|
-
}),
|
|
3136
|
+
}), te = k(() => {
|
|
3137
3137
|
const g = [];
|
|
3138
3138
|
return E.value.basic.length && g.push("basic"), E.value.advanced.length && g.push("advanced"), E.value.plugin.length && g.push("plugin"), g;
|
|
3139
3139
|
}), m = k(() => {
|
|
@@ -3143,7 +3143,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3143
3143
|
});
|
|
3144
3144
|
return Ae(p, (g) => {
|
|
3145
3145
|
n("loading", g);
|
|
3146
|
-
}, { immediate: !0 }),
|
|
3146
|
+
}, { immediate: !0 }), Lt(async () => {
|
|
3147
3147
|
f.value = !1, p.value = !0;
|
|
3148
3148
|
try {
|
|
3149
3149
|
const { data: g } = await l.get(m.value);
|
|
@@ -3164,13 +3164,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3164
3164
|
p.value = !1;
|
|
3165
3165
|
}
|
|
3166
3166
|
}), (g, $) => {
|
|
3167
|
-
const F =
|
|
3168
|
-
return h(), K(
|
|
3167
|
+
const F = R("KLabel"), _ = R("KSelect"), U = R("KButton"), T = R("KSkeleton"), A = R("KEmptyState"), j = R("KCard");
|
|
3168
|
+
return h(), K(j, {
|
|
3169
3169
|
class: "kong-ui-entity-base-config-card",
|
|
3170
3170
|
"title-tag": e.titleTag
|
|
3171
|
-
},
|
|
3171
|
+
}, ke({
|
|
3172
3172
|
actions: x(() => [
|
|
3173
|
-
L("div",
|
|
3173
|
+
L("div", Go, [
|
|
3174
3174
|
Y(g.$slots, "actions", {}, void 0, !0),
|
|
3175
3175
|
N(F, {
|
|
3176
3176
|
class: "config-format-select-label",
|
|
@@ -3186,7 +3186,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3186
3186
|
items: s,
|
|
3187
3187
|
onChange: d
|
|
3188
3188
|
}),
|
|
3189
|
-
e.configCardDoc ? (h(), K(
|
|
3189
|
+
e.configCardDoc ? (h(), K(U, {
|
|
3190
3190
|
key: 0,
|
|
3191
3191
|
appearance: "tertiary",
|
|
3192
3192
|
class: "book-icon",
|
|
@@ -3198,8 +3198,8 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3198
3198
|
rel: "noopener",
|
|
3199
3199
|
target: "_blank"
|
|
3200
3200
|
}, [
|
|
3201
|
-
N(I(
|
|
3202
|
-
], 8,
|
|
3201
|
+
N(I(Fo), { size: I(Or) }, null, 8, ["size"])
|
|
3202
|
+
], 8, Zo)
|
|
3203
3203
|
]),
|
|
3204
3204
|
_: 1
|
|
3205
3205
|
})) : D("", !0)
|
|
@@ -3211,7 +3211,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3211
3211
|
"data-testid": "config-card-loader",
|
|
3212
3212
|
"table-columns": 2,
|
|
3213
3213
|
type: "table"
|
|
3214
|
-
})) : f.value ? (h(), K(
|
|
3214
|
+
})) : f.value ? (h(), K(A, {
|
|
3215
3215
|
key: 1,
|
|
3216
3216
|
"data-testid": "config-card-fetch-error",
|
|
3217
3217
|
"icon-variant": "error"
|
|
@@ -3221,21 +3221,21 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3221
3221
|
]),
|
|
3222
3222
|
_: 1
|
|
3223
3223
|
})) : D("", !0),
|
|
3224
|
-
L("div",
|
|
3225
|
-
N(
|
|
3224
|
+
L("div", Qo, [
|
|
3225
|
+
N(vo, {
|
|
3226
3226
|
config: e.config,
|
|
3227
3227
|
"fetcher-url": m.value,
|
|
3228
3228
|
format: u.value,
|
|
3229
|
-
"prop-list-types":
|
|
3229
|
+
"prop-list-types": te.value,
|
|
3230
3230
|
"property-collections": E.value,
|
|
3231
3231
|
record: v.value
|
|
3232
|
-
},
|
|
3233
|
-
|
|
3232
|
+
}, ke({ _: 2 }, [
|
|
3233
|
+
ae(Object.keys(g.$slots), (q) => ({
|
|
3234
3234
|
name: q,
|
|
3235
|
-
fn: x(({ row: J, rowValue:
|
|
3235
|
+
fn: x(({ row: J, rowValue: he }) => [
|
|
3236
3236
|
Y(g.$slots, q, {
|
|
3237
3237
|
row: J,
|
|
3238
|
-
rowValue:
|
|
3238
|
+
rowValue: he
|
|
3239
3239
|
}, void 0, !0)
|
|
3240
3240
|
])
|
|
3241
3241
|
}))
|
|
@@ -3247,7 +3247,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3247
3247
|
e.hideTitle ? void 0 : {
|
|
3248
3248
|
name: "title",
|
|
3249
3249
|
fn: x(() => [
|
|
3250
|
-
L("span",
|
|
3250
|
+
L("span", Jo, [
|
|
3251
3251
|
Y(g.$slots, "title", {}, () => [
|
|
3252
3252
|
V(O(I(i)("baseConfigCard.title")), 1)
|
|
3253
3253
|
], !0)
|
|
@@ -3258,10 +3258,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3258
3258
|
]), 1032, ["title-tag"]);
|
|
3259
3259
|
};
|
|
3260
3260
|
}
|
|
3261
|
-
}),
|
|
3261
|
+
}), Jl = /* @__PURE__ */ ie(Xo, [["__scopeId", "data-v-f40a683b"]]), el = ["novalidate"], tl = {
|
|
3262
3262
|
class: "form-actions",
|
|
3263
3263
|
"data-testid": "form-actions"
|
|
3264
|
-
},
|
|
3264
|
+
}, nl = /* @__PURE__ */ H({
|
|
3265
3265
|
__name: "EntityBaseForm",
|
|
3266
3266
|
props: {
|
|
3267
3267
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3322,20 +3322,20 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3322
3322
|
},
|
|
3323
3323
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3324
3324
|
setup(e, { emit: t }) {
|
|
3325
|
-
var
|
|
3326
|
-
const n = t, r = e, i =
|
|
3325
|
+
var te;
|
|
3326
|
+
const n = t, r = e, i = jn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((te = r.config) == null ? void 0 : te.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = k(() => r.canSubmit === !1 || r.isReadonly), p = B(!1), f = k(() => {
|
|
3327
3327
|
var y, g;
|
|
3328
3328
|
let m = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3329
3329
|
return r.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (m = m.replace(/{id}/gi, r.editId), m) : (m = m.replace(/\/{id}/gi, ""), m);
|
|
3330
3330
|
}), b = () => {
|
|
3331
3331
|
p.value = !p.value;
|
|
3332
3332
|
}, v = () => {
|
|
3333
|
-
r.config.cancelRoute ? i.push(r.config.cancelRoute) :
|
|
3334
|
-
},
|
|
3333
|
+
r.config.cancelRoute ? i.push(r.config.cancelRoute) : w();
|
|
3334
|
+
}, w = () => {
|
|
3335
3335
|
n("cancel");
|
|
3336
3336
|
}, M = () => {
|
|
3337
3337
|
c.value || n("submit");
|
|
3338
|
-
}, E =
|
|
3338
|
+
}, E = B([
|
|
3339
3339
|
{
|
|
3340
3340
|
title: a("baseForm.configuration.yaml"),
|
|
3341
3341
|
hash: "#yaml"
|
|
@@ -3347,7 +3347,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3347
3347
|
]);
|
|
3348
3348
|
return Ae(() => s.value, (m) => {
|
|
3349
3349
|
n("loading", m);
|
|
3350
|
-
}, { immediate: !0 }),
|
|
3350
|
+
}, { immediate: !0 }), Lt(async () => {
|
|
3351
3351
|
if (r.editId)
|
|
3352
3352
|
try {
|
|
3353
3353
|
u.value = !1, s.value = !0;
|
|
@@ -3360,8 +3360,8 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3360
3360
|
s.value = !1;
|
|
3361
3361
|
}
|
|
3362
3362
|
}), (m, y) => {
|
|
3363
|
-
const g =
|
|
3364
|
-
return h(), K(
|
|
3363
|
+
const g = R("KSkeleton"), $ = R("KEmptyState"), F = R("KAlert"), _ = R("KButton"), U = R("KTabs"), T = R("KSlideout"), A = R("KCard");
|
|
3364
|
+
return h(), K(A, { class: "kong-ui-entity-base-form" }, {
|
|
3365
3365
|
default: x(() => [
|
|
3366
3366
|
s.value ? (h(), K(g, {
|
|
3367
3367
|
key: 0,
|
|
@@ -3381,8 +3381,8 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3381
3381
|
key: 2,
|
|
3382
3382
|
"data-testid": "form-content",
|
|
3383
3383
|
novalidate: r.noValidate,
|
|
3384
|
-
onReset:
|
|
3385
|
-
onSubmit:
|
|
3384
|
+
onReset: ze(w, ["prevent"]),
|
|
3385
|
+
onSubmit: ze(M, ["prevent"])
|
|
3386
3386
|
}, [
|
|
3387
3387
|
Y(m.$slots, "default", {}, void 0, !0),
|
|
3388
3388
|
e.errorMessage ? (h(), K(F, {
|
|
@@ -3391,12 +3391,12 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3391
3391
|
"data-testid": "form-error",
|
|
3392
3392
|
message: e.errorMessage
|
|
3393
3393
|
}, null, 8, ["message"])) : D("", !0),
|
|
3394
|
-
L("div",
|
|
3394
|
+
L("div", tl, [
|
|
3395
3395
|
Y(m.$slots, "form-actions", {}, () => [
|
|
3396
3396
|
N(_, {
|
|
3397
3397
|
appearance: "tertiary",
|
|
3398
3398
|
"data-testid": "form-view-configuration",
|
|
3399
|
-
onClick: y[0] || (y[0] = (
|
|
3399
|
+
onClick: y[0] || (y[0] = (j) => b())
|
|
3400
3400
|
}, {
|
|
3401
3401
|
default: x(() => [
|
|
3402
3402
|
V(O(I(a)("baseForm.actions.viewConfiguration")), 1)
|
|
@@ -3427,7 +3427,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3427
3427
|
}, 8, ["disabled"])
|
|
3428
3428
|
], !0)
|
|
3429
3429
|
])
|
|
3430
|
-
], 40,
|
|
3430
|
+
], 40, el)),
|
|
3431
3431
|
N(T, {
|
|
3432
3432
|
"close-on-blur": !1,
|
|
3433
3433
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3435,16 +3435,16 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3435
3435
|
"offset-top": 60,
|
|
3436
3436
|
title: I(a)("baseForm.configuration.title"),
|
|
3437
3437
|
visible: p.value,
|
|
3438
|
-
onClose: y[1] || (y[1] = (
|
|
3438
|
+
onClose: y[1] || (y[1] = (j) => b())
|
|
3439
3439
|
}, {
|
|
3440
3440
|
default: x(() => [
|
|
3441
3441
|
L("div", null, O(I(a)("baseForm.configuration.message")), 1),
|
|
3442
|
-
N(
|
|
3442
|
+
N(U, {
|
|
3443
3443
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3444
3444
|
tabs: E.value
|
|
3445
3445
|
}, {
|
|
3446
3446
|
json: x(() => [
|
|
3447
|
-
N(
|
|
3447
|
+
N(Ut, {
|
|
3448
3448
|
config: e.config,
|
|
3449
3449
|
"fetcher-url": f.value,
|
|
3450
3450
|
"json-record": r.formFields,
|
|
@@ -3452,7 +3452,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3452
3452
|
}, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
|
|
3453
3453
|
]),
|
|
3454
3454
|
yaml: x(() => [
|
|
3455
|
-
N(
|
|
3455
|
+
N(Tn, {
|
|
3456
3456
|
"yaml-record": r.formFields
|
|
3457
3457
|
}, null, 8, ["yaml-record"])
|
|
3458
3458
|
]),
|
|
@@ -3466,10 +3466,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3466
3466
|
});
|
|
3467
3467
|
};
|
|
3468
3468
|
}
|
|
3469
|
-
}),
|
|
3469
|
+
}), Gl = /* @__PURE__ */ ie(nl, [["__scopeId", "data-v-3def74fe"]]), rl = {
|
|
3470
3470
|
key: 0,
|
|
3471
3471
|
"data-testid": "first-col"
|
|
3472
|
-
},
|
|
3472
|
+
}, il = /* @__PURE__ */ H({
|
|
3473
3473
|
__name: "EntityBaseTableCell",
|
|
3474
3474
|
props: {
|
|
3475
3475
|
keyName: {
|
|
@@ -3489,43 +3489,43 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3489
3489
|
var v;
|
|
3490
3490
|
return ((v = n.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
|
|
3491
3491
|
}), i = k(() => {
|
|
3492
|
-
var
|
|
3493
|
-
const v = (
|
|
3492
|
+
var w, M;
|
|
3493
|
+
const v = (w = t.rowEl) == null ? void 0 : w.querySelectorAll("td");
|
|
3494
3494
|
return v ? ((M = v[0]) == null ? void 0 : M.getAttribute("data-testid")) === t.keyName : !1;
|
|
3495
3495
|
});
|
|
3496
3496
|
let a;
|
|
3497
3497
|
const o = () => {
|
|
3498
3498
|
a && (a.disconnect(), a = void 0);
|
|
3499
3499
|
}, l = () => {
|
|
3500
|
-
var v,
|
|
3501
|
-
u.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((
|
|
3502
|
-
}, s =
|
|
3500
|
+
var v, w, M;
|
|
3501
|
+
u.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((w = n.value) == null ? void 0 : w.clientWidth) || 0, c.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
|
|
3502
|
+
}, s = B({}), u = B(0), d = B(0), c = B(""), p = k(() => [r.value, n.value]), f = Ae(
|
|
3503
3503
|
p,
|
|
3504
3504
|
(v) => {
|
|
3505
3505
|
if (i.value && (o(), "ResizeObserver" in window && window)) {
|
|
3506
|
-
a = new ResizeObserver((
|
|
3506
|
+
a = new ResizeObserver((w) => {
|
|
3507
3507
|
window.requestAnimationFrame(() => {
|
|
3508
|
-
!Array.isArray(
|
|
3508
|
+
!Array.isArray(w) || !w.length || l();
|
|
3509
3509
|
});
|
|
3510
3510
|
});
|
|
3511
|
-
for (const
|
|
3512
|
-
|
|
3511
|
+
for (const w of v)
|
|
3512
|
+
w && a.observe(w);
|
|
3513
3513
|
}
|
|
3514
3514
|
},
|
|
3515
3515
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3516
3516
|
), b = k(() => i.value ? u.value > d.value : !1);
|
|
3517
|
-
return
|
|
3517
|
+
return Nn(() => {
|
|
3518
3518
|
l();
|
|
3519
|
-
}),
|
|
3519
|
+
}), Rn(() => {
|
|
3520
3520
|
f();
|
|
3521
|
-
}), (v,
|
|
3522
|
-
const M =
|
|
3521
|
+
}), (v, w) => {
|
|
3522
|
+
const M = R("KTooltip");
|
|
3523
3523
|
return h(), S("span", {
|
|
3524
3524
|
ref_key: "contentRef",
|
|
3525
3525
|
ref: s,
|
|
3526
3526
|
class: "content-wrapper"
|
|
3527
3527
|
}, [
|
|
3528
|
-
i.value ? (h(), S("span",
|
|
3528
|
+
i.value ? (h(), S("span", rl, [
|
|
3529
3529
|
N(M, {
|
|
3530
3530
|
"max-width": "300",
|
|
3531
3531
|
placement: "bottomStart",
|
|
@@ -3540,10 +3540,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3540
3540
|
], 512);
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
}),
|
|
3543
|
+
}), al = /* @__PURE__ */ ie(il, [["__scopeId", "data-v-c4379fd4"]]), ol = { class: "toolbar-container" }, ll = {
|
|
3544
3544
|
key: 0,
|
|
3545
3545
|
class: "toolbar-button-container"
|
|
3546
|
-
},
|
|
3546
|
+
}, sl = ["data-testid"], cl = /* @__PURE__ */ H({
|
|
3547
3547
|
__name: "EntityBaseTable",
|
|
3548
3548
|
props: {
|
|
3549
3549
|
// table header configuration
|
|
@@ -3685,7 +3685,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3685
3685
|
"data-rowid": y.id,
|
|
3686
3686
|
"data-testid": y.name,
|
|
3687
3687
|
...n.rowAttributes(y)
|
|
3688
|
-
}), d =
|
|
3688
|
+
}), d = B({}), c = (y) => {
|
|
3689
3689
|
var g;
|
|
3690
3690
|
return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
|
|
3691
3691
|
}, p = (y) => {
|
|
@@ -3704,9 +3704,9 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3704
3704
|
r("clear-search-input");
|
|
3705
3705
|
}, v = k(() => n.disableRowClick ? void 0 : (y, g) => {
|
|
3706
3706
|
r("click:row", g);
|
|
3707
|
-
}),
|
|
3707
|
+
}), w = (y) => {
|
|
3708
3708
|
r("sort", y);
|
|
3709
|
-
}, { setTablePreferences: M, getTablePreferences: E } =
|
|
3709
|
+
}, { setTablePreferences: M, getTablePreferences: E } = zn(), te = k(() => {
|
|
3710
3710
|
const y = E(n.preferencesStorageKey);
|
|
3711
3711
|
return {
|
|
3712
3712
|
...n.initialFetcherParams,
|
|
@@ -3716,14 +3716,14 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3716
3716
|
n.preferencesStorageKey && M(n.preferencesStorageKey, y);
|
|
3717
3717
|
};
|
|
3718
3718
|
return (y, g) => {
|
|
3719
|
-
const $ =
|
|
3719
|
+
const $ = R("KIcon"), F = R("KButton"), _ = R("KDropdown"), U = R("KTable"), T = R("KCard");
|
|
3720
3720
|
return h(), K(T, {
|
|
3721
3721
|
class: "kong-ui-entity-base-table",
|
|
3722
3722
|
title: e.title,
|
|
3723
3723
|
"title-tag": e.titleTag
|
|
3724
3724
|
}, {
|
|
3725
3725
|
default: x(() => [
|
|
3726
|
-
N(
|
|
3726
|
+
N(U, {
|
|
3727
3727
|
ref_key: "tableRefs",
|
|
3728
3728
|
ref: d,
|
|
3729
3729
|
"cache-identifier": o.value,
|
|
@@ -3743,30 +3743,30 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3743
3743
|
"has-error": a.value.hasError,
|
|
3744
3744
|
headers: s.value,
|
|
3745
3745
|
"hide-pagination-when-optional": "",
|
|
3746
|
-
"initial-fetcher-params":
|
|
3746
|
+
"initial-fetcher-params": te.value,
|
|
3747
3747
|
"is-loading": e.isLoading,
|
|
3748
3748
|
"pagination-type": e.paginationType,
|
|
3749
3749
|
"row-attrs": u,
|
|
3750
3750
|
"search-input": e.query,
|
|
3751
3751
|
onKtableEmptyStateCtaClicked: f,
|
|
3752
3752
|
"onRow:click": v.value,
|
|
3753
|
-
onSort: g[0] || (g[0] = (
|
|
3753
|
+
onSort: g[0] || (g[0] = (A) => w(A)),
|
|
3754
3754
|
"onUpdate:tablePreferences": m
|
|
3755
|
-
},
|
|
3756
|
-
toolbar: x(({ state:
|
|
3757
|
-
|
|
3755
|
+
}, ke({
|
|
3756
|
+
toolbar: x(({ state: A }) => [
|
|
3757
|
+
me(L("div", ol, [
|
|
3758
3758
|
Y(y.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3759
|
-
y.$slots["toolbar-button"] ? (h(), S("div",
|
|
3759
|
+
y.$slots["toolbar-button"] ? (h(), S("div", ll, [
|
|
3760
3760
|
Y(y.$slots, "toolbar-button", {}, void 0, !0)
|
|
3761
3761
|
])) : D("", !0)
|
|
3762
3762
|
], 512), [
|
|
3763
|
-
[
|
|
3763
|
+
[ge, l(A)]
|
|
3764
3764
|
])
|
|
3765
3765
|
]),
|
|
3766
|
-
actions: x(({ row:
|
|
3766
|
+
actions: x(({ row: A, rowKey: j, rowValue: q }) => [
|
|
3767
3767
|
L("div", {
|
|
3768
3768
|
class: "actions-container",
|
|
3769
|
-
"data-testid":
|
|
3769
|
+
"data-testid": A.name
|
|
3770
3770
|
}, [
|
|
3771
3771
|
N(_, {
|
|
3772
3772
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
@@ -3774,8 +3774,8 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3774
3774
|
}, {
|
|
3775
3775
|
items: x(() => [
|
|
3776
3776
|
Y(y.$slots, "actions", {
|
|
3777
|
-
row:
|
|
3778
|
-
rowKey:
|
|
3777
|
+
row: A,
|
|
3778
|
+
rowKey: j,
|
|
3779
3779
|
rowValue: q
|
|
3780
3780
|
}, void 0, !0)
|
|
3781
3781
|
]),
|
|
@@ -3787,7 +3787,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3787
3787
|
}, {
|
|
3788
3788
|
icon: x(() => [
|
|
3789
3789
|
N($, {
|
|
3790
|
-
color: I(
|
|
3790
|
+
color: I(Sr),
|
|
3791
3791
|
icon: "more",
|
|
3792
3792
|
size: "16"
|
|
3793
3793
|
}, null, 8, ["color"])
|
|
@@ -3797,24 +3797,24 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3797
3797
|
]),
|
|
3798
3798
|
_: 2
|
|
3799
3799
|
}, 1032, ["width"])
|
|
3800
|
-
], 8,
|
|
3800
|
+
], 8, sl)
|
|
3801
3801
|
]),
|
|
3802
3802
|
_: 2
|
|
3803
3803
|
}, [
|
|
3804
|
-
|
|
3805
|
-
name:
|
|
3806
|
-
fn: x(({ row: q, rowKey: J, rowValue:
|
|
3807
|
-
N(
|
|
3808
|
-
"key-name": String(
|
|
3804
|
+
ae(e.tableHeaders, (A, j) => ({
|
|
3805
|
+
name: j,
|
|
3806
|
+
fn: x(({ row: q, rowKey: J, rowValue: he }) => [
|
|
3807
|
+
N(al, {
|
|
3808
|
+
"key-name": String(j),
|
|
3809
3809
|
"row-el": c(q)
|
|
3810
3810
|
}, {
|
|
3811
3811
|
default: x(() => [
|
|
3812
|
-
Y(y.$slots,
|
|
3812
|
+
Y(y.$slots, j, {
|
|
3813
3813
|
row: q,
|
|
3814
3814
|
rowKey: J,
|
|
3815
|
-
rowValue:
|
|
3815
|
+
rowValue: he
|
|
3816
3816
|
}, () => [
|
|
3817
|
-
V(O(
|
|
3817
|
+
V(O(he), 1)
|
|
3818
3818
|
], !0)
|
|
3819
3819
|
]),
|
|
3820
3820
|
_: 2
|
|
@@ -3824,7 +3824,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3824
3824
|
e.query ? void 0 : {
|
|
3825
3825
|
name: "empty-state-action-icon",
|
|
3826
3826
|
fn: x(() => [
|
|
3827
|
-
N(I(
|
|
3827
|
+
N(I(wo))
|
|
3828
3828
|
]),
|
|
3829
3829
|
key: "0"
|
|
3830
3830
|
}
|
|
@@ -3834,13 +3834,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3834
3834
|
}, 8, ["title", "title-tag"]);
|
|
3835
3835
|
};
|
|
3836
3836
|
}
|
|
3837
|
-
}),
|
|
3837
|
+
}), Zl = /* @__PURE__ */ ie(cl, [["__scopeId", "data-v-590c2d76"]]), ul = {
|
|
3838
3838
|
key: 0,
|
|
3839
3839
|
class: "kong-ui-entity-delete-error"
|
|
3840
|
-
},
|
|
3840
|
+
}, dl = {
|
|
3841
3841
|
key: 1,
|
|
3842
3842
|
class: "description"
|
|
3843
|
-
},
|
|
3843
|
+
}, fl = /* @__PURE__ */ H({
|
|
3844
3844
|
__name: "EntityDeleteModal",
|
|
3845
3845
|
props: {
|
|
3846
3846
|
visible: {
|
|
@@ -3885,7 +3885,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3885
3885
|
i("proceed");
|
|
3886
3886
|
};
|
|
3887
3887
|
return (s, u) => {
|
|
3888
|
-
const d =
|
|
3888
|
+
const d = R("KAlert"), c = R("KPrompt");
|
|
3889
3889
|
return h(), K(c, {
|
|
3890
3890
|
"action-button-appearance": "danger",
|
|
3891
3891
|
"action-button-disabled": e.actionPending,
|
|
@@ -3898,7 +3898,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3898
3898
|
onProceed: l
|
|
3899
3899
|
}, {
|
|
3900
3900
|
default: x(() => [
|
|
3901
|
-
e.error ? (h(), S("div",
|
|
3901
|
+
e.error ? (h(), S("div", ul, [
|
|
3902
3902
|
N(d, { appearance: "danger" }, {
|
|
3903
3903
|
default: x(() => [
|
|
3904
3904
|
V(O(e.error), 1)
|
|
@@ -3910,7 +3910,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3910
3910
|
class: "message",
|
|
3911
3911
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3912
3912
|
tag: "p"
|
|
3913
|
-
},
|
|
3913
|
+
}, ke({
|
|
3914
3914
|
entityType: x(() => [
|
|
3915
3915
|
V(O(r.entityType), 1)
|
|
3916
3916
|
]),
|
|
@@ -3924,7 +3924,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3924
3924
|
key: "0"
|
|
3925
3925
|
} : void 0
|
|
3926
3926
|
]), 1032, ["keypath"]),
|
|
3927
|
-
r.description || s.$slots.description ? (h(), S("div",
|
|
3927
|
+
r.description || s.$slots.description ? (h(), S("div", dl, [
|
|
3928
3928
|
Y(s.$slots, "description", {}, () => [
|
|
3929
3929
|
L("p", null, O(r.description), 1)
|
|
3930
3930
|
], !0)
|
|
@@ -3934,13 +3934,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3934
3934
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3935
3935
|
};
|
|
3936
3936
|
}
|
|
3937
|
-
}),
|
|
3937
|
+
}), Ql = /* @__PURE__ */ ie(fl, [["__scopeId", "data-v-4361d622"]]), pl = {
|
|
3938
3938
|
fill: "none",
|
|
3939
3939
|
height: "20",
|
|
3940
3940
|
viewBox: "0 0 20 20",
|
|
3941
3941
|
width: "20",
|
|
3942
3942
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3943
|
-
},
|
|
3943
|
+
}, hl = {
|
|
3944
3944
|
id: "mask0_180_20349",
|
|
3945
3945
|
height: "20",
|
|
3946
3946
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3948,35 +3948,35 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3948
3948
|
width: "20",
|
|
3949
3949
|
x: "0",
|
|
3950
3950
|
y: "0"
|
|
3951
|
-
},
|
|
3951
|
+
}, ml = ["fill"], gl = { mask: "url(#mask0_180_20349)" }, yl = ["fill"], Ft = /* @__PURE__ */ H({
|
|
3952
3952
|
__name: "IconFilter",
|
|
3953
3953
|
props: {
|
|
3954
3954
|
color: {
|
|
3955
3955
|
type: String,
|
|
3956
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3956
|
+
default: `var(--kong-ui-entity-filter-color, ${wr})`
|
|
3957
3957
|
}
|
|
3958
3958
|
},
|
|
3959
3959
|
setup(e) {
|
|
3960
|
-
return (t, n) => (h(), S("svg",
|
|
3961
|
-
L("mask",
|
|
3960
|
+
return (t, n) => (h(), S("svg", pl, [
|
|
3961
|
+
L("mask", hl, [
|
|
3962
3962
|
L("rect", {
|
|
3963
3963
|
fill: e.color,
|
|
3964
3964
|
height: "20",
|
|
3965
3965
|
width: "20"
|
|
3966
|
-
}, null, 8,
|
|
3966
|
+
}, null, 8, ml)
|
|
3967
3967
|
]),
|
|
3968
|
-
L("g",
|
|
3968
|
+
L("g", gl, [
|
|
3969
3969
|
L("path", {
|
|
3970
3970
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3971
3971
|
fill: e.color
|
|
3972
|
-
}, null, 8,
|
|
3972
|
+
}, null, 8, yl)
|
|
3973
3973
|
])
|
|
3974
3974
|
]));
|
|
3975
3975
|
}
|
|
3976
|
-
}),
|
|
3976
|
+
}), vl = {
|
|
3977
3977
|
key: 1,
|
|
3978
3978
|
class: "kong-ui-entity-filter"
|
|
3979
|
-
},
|
|
3979
|
+
}, bl = { class: "kong-ui-entity-filter-menu" }, xl = ["data-testid"], Cl = ["onClick", "onKeydown"], _l = { class: "menu-item-indicator" }, kl = { class: "menu-item-body" }, wl = ["for"], Al = { class: "menu-item-buttons" }, Sl = { class: "filter-clear-button-container" }, Il = /* @__PURE__ */ H({
|
|
3980
3980
|
__name: "EntityFilter",
|
|
3981
3981
|
props: {
|
|
3982
3982
|
// filter config, either exact match or fuzzy match
|
|
@@ -3996,7 +3996,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
3996
3996
|
},
|
|
3997
3997
|
emits: ["update:modelValue"],
|
|
3998
3998
|
setup(e, { emit: t }) {
|
|
3999
|
-
const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a =
|
|
3999
|
+
const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = k(() => {
|
|
4000
4000
|
const m = [];
|
|
4001
4001
|
return new URLSearchParams(r.modelValue).forEach((y, g) => {
|
|
4002
4002
|
y !== "" && m.push(g);
|
|
@@ -4028,22 +4028,22 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4028
4028
|
value: $,
|
|
4029
4029
|
label: $
|
|
4030
4030
|
}));
|
|
4031
|
-
},
|
|
4031
|
+
}, w = (m) => {
|
|
4032
4032
|
var y, g;
|
|
4033
4033
|
return ((g = (y = r.config.schema) == null ? void 0 : y[m]) == null ? void 0 : g.type) ?? "text";
|
|
4034
4034
|
}, M = (m) => {
|
|
4035
4035
|
o.value = {
|
|
4036
4036
|
...o.value,
|
|
4037
4037
|
[m]: ""
|
|
4038
|
-
},
|
|
4038
|
+
}, te();
|
|
4039
4039
|
}, E = () => {
|
|
4040
|
-
o.value = {},
|
|
4041
|
-
},
|
|
4040
|
+
o.value = {}, te(!0);
|
|
4041
|
+
}, te = (m = !1) => {
|
|
4042
4042
|
const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
|
|
4043
4043
|
m && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
|
|
4044
4044
|
};
|
|
4045
4045
|
return (m, y) => {
|
|
4046
|
-
const g =
|
|
4046
|
+
const g = R("KInput"), $ = R("KButton"), F = R("KSelect");
|
|
4047
4047
|
return e.config.isExactMatch ? (h(), K(g, {
|
|
4048
4048
|
key: 0,
|
|
4049
4049
|
autocomplete: "off",
|
|
@@ -4054,89 +4054,89 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4054
4054
|
"onUpdate:modelValue": p
|
|
4055
4055
|
}, {
|
|
4056
4056
|
before: x(() => [
|
|
4057
|
-
N(
|
|
4057
|
+
N(Ft)
|
|
4058
4058
|
]),
|
|
4059
4059
|
after: x(() => [
|
|
4060
|
-
|
|
4060
|
+
me(N(I(qo), {
|
|
4061
4061
|
class: "kong-ui-entity-filter-clear",
|
|
4062
4062
|
onClick: f
|
|
4063
4063
|
}, null, 512), [
|
|
4064
|
-
[
|
|
4064
|
+
[ge, e.modelValue !== ""]
|
|
4065
4065
|
])
|
|
4066
4066
|
]),
|
|
4067
4067
|
_: 1
|
|
4068
|
-
}, 8, ["model-value", "placeholder"])) : (h(), S("div",
|
|
4068
|
+
}, 8, ["model-value", "placeholder"])) : (h(), S("div", vl, [
|
|
4069
4069
|
N($, {
|
|
4070
4070
|
appearance: "tertiary",
|
|
4071
4071
|
"data-testid": "filter-button",
|
|
4072
4072
|
onClick: d
|
|
4073
4073
|
}, {
|
|
4074
4074
|
default: x(() => [
|
|
4075
|
-
N(
|
|
4075
|
+
N(Ft),
|
|
4076
4076
|
V(" " + O(I(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
4077
4077
|
]),
|
|
4078
4078
|
_: 1
|
|
4079
4079
|
}),
|
|
4080
|
-
|
|
4080
|
+
me(L("div", {
|
|
4081
4081
|
class: "kong-ui-entity-filter-backdrop",
|
|
4082
4082
|
onClick: d
|
|
4083
4083
|
}, null, 512), [
|
|
4084
|
-
[
|
|
4084
|
+
[ge, a.value]
|
|
4085
4085
|
]),
|
|
4086
|
-
|
|
4087
|
-
(h(!0), S(
|
|
4088
|
-
var
|
|
4086
|
+
me(L("div", bl, [
|
|
4087
|
+
(h(!0), S(se, null, ae(u.value, (_) => {
|
|
4088
|
+
var U, T;
|
|
4089
4089
|
return h(), S("div", {
|
|
4090
4090
|
key: _.value,
|
|
4091
4091
|
class: "kong-ui-entity-filter-menu-item",
|
|
4092
4092
|
"data-testid": _.value
|
|
4093
4093
|
}, [
|
|
4094
4094
|
L("span", {
|
|
4095
|
-
class:
|
|
4095
|
+
class: de(["menu-item-title", { expanded: l.value.has(_.value) }]),
|
|
4096
4096
|
role: "button",
|
|
4097
4097
|
tabindex: "0",
|
|
4098
|
-
onClick: (
|
|
4099
|
-
onKeydown:
|
|
4098
|
+
onClick: (A) => c(_.value),
|
|
4099
|
+
onKeydown: Bn((A) => c(_.value), ["enter"])
|
|
4100
4100
|
}, [
|
|
4101
4101
|
V(O(_.label) + " ", 1),
|
|
4102
|
-
|
|
4103
|
-
[
|
|
4102
|
+
me(L("span", _l, null, 512), [
|
|
4103
|
+
[ge, s.value.includes(_.value)]
|
|
4104
4104
|
]),
|
|
4105
|
-
N(I(
|
|
4106
|
-
class:
|
|
4107
|
-
color: I(
|
|
4105
|
+
N(I(Bo), {
|
|
4106
|
+
class: de(["menu-item-expand-icon", { expanded: l.value.has(_.value) }]),
|
|
4107
|
+
color: I(Ir)
|
|
4108
4108
|
}, null, 8, ["class", "color"])
|
|
4109
|
-
], 42,
|
|
4110
|
-
|
|
4109
|
+
], 42, Cl),
|
|
4110
|
+
me(L("div", kl, [
|
|
4111
4111
|
L("label", {
|
|
4112
4112
|
class: "menu-item-label",
|
|
4113
4113
|
for: b(_.value)
|
|
4114
|
-
}, O(I(n)("filter.fieldLabel")), 9,
|
|
4115
|
-
((T = (
|
|
4114
|
+
}, O(I(n)("filter.fieldLabel")), 9, wl),
|
|
4115
|
+
((T = (U = e.config.schema) == null ? void 0 : U[_.value]) == null ? void 0 : T.type) === "select" ? (h(), K(F, {
|
|
4116
4116
|
key: 0,
|
|
4117
4117
|
id: b(_.value),
|
|
4118
4118
|
modelValue: o.value[_.value],
|
|
4119
|
-
"onUpdate:modelValue": (
|
|
4119
|
+
"onUpdate:modelValue": (A) => o.value[_.value] = A,
|
|
4120
4120
|
items: v(_.value),
|
|
4121
4121
|
placeholder: I(n)("filter.selectPlaceholder")
|
|
4122
4122
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), K(g, {
|
|
4123
4123
|
key: 1,
|
|
4124
4124
|
id: b(_.value),
|
|
4125
4125
|
modelValue: o.value[_.value],
|
|
4126
|
-
"onUpdate:modelValue": (
|
|
4126
|
+
"onUpdate:modelValue": (A) => o.value[_.value] = A,
|
|
4127
4127
|
autocomplete: "off",
|
|
4128
4128
|
placeholder: I(n)("filter.inputPlaceholder"),
|
|
4129
|
-
type:
|
|
4129
|
+
type: w(_.value)
|
|
4130
4130
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4131
4131
|
], 512), [
|
|
4132
|
-
[
|
|
4132
|
+
[ge, l.value.has(_.value)]
|
|
4133
4133
|
]),
|
|
4134
|
-
|
|
4134
|
+
me(L("div", Al, [
|
|
4135
4135
|
N($, {
|
|
4136
4136
|
appearance: "tertiary",
|
|
4137
4137
|
"data-testid": "apply-filter",
|
|
4138
4138
|
size: "small",
|
|
4139
|
-
onClick: y[0] || (y[0] = (
|
|
4139
|
+
onClick: y[0] || (y[0] = (A) => te(!0))
|
|
4140
4140
|
}, {
|
|
4141
4141
|
default: x(() => [
|
|
4142
4142
|
V(O(I(n)("filter.applyButtonText")), 1)
|
|
@@ -4147,7 +4147,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4147
4147
|
appearance: "tertiary",
|
|
4148
4148
|
"data-testid": "clear-filter",
|
|
4149
4149
|
size: "small",
|
|
4150
|
-
onClick: (
|
|
4150
|
+
onClick: (A) => M(_.value)
|
|
4151
4151
|
}, {
|
|
4152
4152
|
default: x(() => [
|
|
4153
4153
|
V(O(I(n)("filter.clearButtonText")), 1)
|
|
@@ -4155,11 +4155,11 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4155
4155
|
_: 2
|
|
4156
4156
|
}, 1032, ["onClick"])
|
|
4157
4157
|
], 512), [
|
|
4158
|
-
[
|
|
4158
|
+
[ge, l.value.has(_.value)]
|
|
4159
4159
|
])
|
|
4160
|
-
], 8,
|
|
4160
|
+
], 8, xl);
|
|
4161
4161
|
}), 128)),
|
|
4162
|
-
L("div",
|
|
4162
|
+
L("div", Sl, [
|
|
4163
4163
|
N($, {
|
|
4164
4164
|
appearance: "tertiary",
|
|
4165
4165
|
size: "small",
|
|
@@ -4172,12 +4172,12 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4172
4172
|
})
|
|
4173
4173
|
])
|
|
4174
4174
|
], 512), [
|
|
4175
|
-
[
|
|
4175
|
+
[ge, a.value]
|
|
4176
4176
|
])
|
|
4177
4177
|
]));
|
|
4178
4178
|
};
|
|
4179
4179
|
}
|
|
4180
|
-
}),
|
|
4180
|
+
}), Xl = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-8cfadde3"]]), es = /* @__PURE__ */ H({
|
|
4181
4181
|
__name: "EntityToggleModal",
|
|
4182
4182
|
props: {
|
|
4183
4183
|
visible: {
|
|
@@ -4209,7 +4209,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4209
4209
|
},
|
|
4210
4210
|
emits: ["cancel", "proceed"],
|
|
4211
4211
|
setup(e, { emit: t }) {
|
|
4212
|
-
const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o =
|
|
4212
|
+
const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = B(!1), l = k(
|
|
4213
4213
|
() => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
|
|
4214
4214
|
), s = k(
|
|
4215
4215
|
() => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
@@ -4226,8 +4226,8 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4226
4226
|
}
|
|
4227
4227
|
};
|
|
4228
4228
|
return (c, p) => {
|
|
4229
|
-
const f =
|
|
4230
|
-
return h(), K(
|
|
4229
|
+
const f = R("KPrompt");
|
|
4230
|
+
return h(), K(Kn, { to: "body" }, [
|
|
4231
4231
|
N(f, {
|
|
4232
4232
|
"action-button-disabled": o.value,
|
|
4233
4233
|
"action-button-text": s.value,
|
|
@@ -4256,7 +4256,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4256
4256
|
]);
|
|
4257
4257
|
};
|
|
4258
4258
|
}
|
|
4259
|
-
}),
|
|
4259
|
+
}), ts = /* @__PURE__ */ H({
|
|
4260
4260
|
__name: "PermissionsWrapper",
|
|
4261
4261
|
props: {
|
|
4262
4262
|
/**
|
|
@@ -4278,7 +4278,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4278
4278
|
}
|
|
4279
4279
|
},
|
|
4280
4280
|
setup(e) {
|
|
4281
|
-
const t = e, n =
|
|
4281
|
+
const t = e, n = B(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4282
4282
|
return Ae(() => t.authFunction, async () => {
|
|
4283
4283
|
n.value = await t.authFunction();
|
|
4284
4284
|
}, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
|
|
@@ -4286,13 +4286,43 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4286
4286
|
isAllowed: n.value
|
|
4287
4287
|
}) : D("", !0);
|
|
4288
4288
|
}
|
|
4289
|
-
})
|
|
4289
|
+
});
|
|
4290
|
+
let Re;
|
|
4291
|
+
const El = new Uint8Array(16);
|
|
4292
|
+
function Tl() {
|
|
4293
|
+
if (!Re && (Re = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Re))
|
|
4294
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4295
|
+
return Re(El);
|
|
4296
|
+
}
|
|
4297
|
+
const Z = [];
|
|
4298
|
+
for (let e = 0; e < 256; ++e)
|
|
4299
|
+
Z.push((e + 256).toString(16).slice(1));
|
|
4300
|
+
function Fl(e, t = 0) {
|
|
4301
|
+
return Z[e[t + 0]] + Z[e[t + 1]] + Z[e[t + 2]] + Z[e[t + 3]] + "-" + Z[e[t + 4]] + Z[e[t + 5]] + "-" + Z[e[t + 6]] + Z[e[t + 7]] + "-" + Z[e[t + 8]] + Z[e[t + 9]] + "-" + Z[e[t + 10]] + Z[e[t + 11]] + Z[e[t + 12]] + Z[e[t + 13]] + Z[e[t + 14]] + Z[e[t + 15]];
|
|
4302
|
+
}
|
|
4303
|
+
const Ol = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ot = {
|
|
4304
|
+
randomUUID: Ol
|
|
4305
|
+
};
|
|
4306
|
+
function $l(e, t, n) {
|
|
4307
|
+
if (Ot.randomUUID && !t && !e)
|
|
4308
|
+
return Ot.randomUUID();
|
|
4309
|
+
e = e || {};
|
|
4310
|
+
const r = e.random || (e.rng || Tl)();
|
|
4311
|
+
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4312
|
+
n = n || 0;
|
|
4313
|
+
for (let i = 0; i < 16; ++i)
|
|
4314
|
+
t[n + i] = r[i];
|
|
4315
|
+
return t;
|
|
4316
|
+
}
|
|
4317
|
+
return Fl(r);
|
|
4318
|
+
}
|
|
4319
|
+
const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
|
|
4290
4320
|
key: 1,
|
|
4291
4321
|
class: "form-section-description"
|
|
4292
|
-
},
|
|
4322
|
+
}, Bl = {
|
|
4293
4323
|
key: 2,
|
|
4294
4324
|
class: "form-section-footer"
|
|
4295
|
-
},
|
|
4325
|
+
}, Kl = { class: "form-section-content" }, Ml = /* @__PURE__ */ H({
|
|
4296
4326
|
__name: "EntityFormSection",
|
|
4297
4327
|
props: {
|
|
4298
4328
|
title: {
|
|
@@ -4321,46 +4351,49 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4321
4351
|
}
|
|
4322
4352
|
},
|
|
4323
4353
|
setup(e) {
|
|
4324
|
-
const t =
|
|
4325
|
-
return (
|
|
4326
|
-
|
|
4354
|
+
const t = Xe(), n = $l();
|
|
4355
|
+
return (r, i) => (h(), S("div", {
|
|
4356
|
+
"aria-labelledby": e.title ? I(n) : void 0,
|
|
4357
|
+
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4358
|
+
role: "group"
|
|
4327
4359
|
}, [
|
|
4328
|
-
L("div",
|
|
4360
|
+
L("div", Nl, [
|
|
4329
4361
|
e.hideInfoHeader ? D("", !0) : (h(), S("div", {
|
|
4330
4362
|
key: 0,
|
|
4331
|
-
class:
|
|
4363
|
+
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4332
4364
|
}, [
|
|
4333
|
-
e.title ? (h(), K(
|
|
4365
|
+
e.title ? (h(), K(pe(e.titleTag), {
|
|
4334
4366
|
key: 0,
|
|
4367
|
+
id: I(n),
|
|
4335
4368
|
class: "form-section-title"
|
|
4336
4369
|
}, {
|
|
4337
4370
|
default: x(() => [
|
|
4338
4371
|
V(O(e.title), 1)
|
|
4339
4372
|
]),
|
|
4340
4373
|
_: 1
|
|
4341
|
-
})) : D("", !0),
|
|
4342
|
-
e.description || I(t).description ? (h(), S("div",
|
|
4343
|
-
Y(
|
|
4374
|
+
}, 8, ["id"])) : D("", !0),
|
|
4375
|
+
e.description || I(t).description ? (h(), S("div", Rl, [
|
|
4376
|
+
Y(r.$slots, "description", {}, () => [
|
|
4344
4377
|
L("p", null, O(e.description), 1)
|
|
4345
4378
|
], !0)
|
|
4346
4379
|
])) : D("", !0),
|
|
4347
|
-
I(t).footer ? (h(), S("div",
|
|
4348
|
-
Y(
|
|
4380
|
+
I(t).footer ? (h(), S("div", Bl, [
|
|
4381
|
+
Y(r.$slots, "footer", {}, void 0, !0)
|
|
4349
4382
|
])) : D("", !0)
|
|
4350
4383
|
], 2)),
|
|
4351
|
-
L("div",
|
|
4352
|
-
Y(
|
|
4384
|
+
L("div", Kl, [
|
|
4385
|
+
Y(r.$slots, "default", {}, void 0, !0)
|
|
4353
4386
|
])
|
|
4354
4387
|
])
|
|
4355
|
-
],
|
|
4388
|
+
], 10, Ll));
|
|
4356
4389
|
}
|
|
4357
|
-
}),
|
|
4390
|
+
}), ns = /* @__PURE__ */ ie(Ml, [["__scopeId", "data-v-76e52dbd"]]), Dl = {
|
|
4358
4391
|
class: "kong-ui-public-entity-link",
|
|
4359
4392
|
"data-testid": "entity-link-parent"
|
|
4360
|
-
},
|
|
4393
|
+
}, Ul = {
|
|
4361
4394
|
key: 0,
|
|
4362
4395
|
class: "deleted-entity"
|
|
4363
|
-
},
|
|
4396
|
+
}, jl = { key: 1 }, ql = ["onClick"], Pl = /* @__PURE__ */ H({
|
|
4364
4397
|
__name: "EntityLink",
|
|
4365
4398
|
props: {
|
|
4366
4399
|
entityLinkData: {
|
|
@@ -4384,7 +4417,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4384
4417
|
}
|
|
4385
4418
|
},
|
|
4386
4419
|
setup(e) {
|
|
4387
|
-
const t = e, n =
|
|
4420
|
+
const t = e, n = B(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = B(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => {
|
|
4388
4421
|
var c;
|
|
4389
4422
|
return (c = t.entityLinkData.id) != null && c.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4390
4423
|
}), u = k(() => {
|
|
@@ -4396,9 +4429,9 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4396
4429
|
}, 1800));
|
|
4397
4430
|
};
|
|
4398
4431
|
return (c, p) => {
|
|
4399
|
-
const f =
|
|
4400
|
-
return h(), S("div",
|
|
4401
|
-
l.value ? (h(), S("div",
|
|
4432
|
+
const f = R("KTooltip"), b = R("KExternalLink"), v = R("KClipboardProvider");
|
|
4433
|
+
return h(), S("div", Dl, [
|
|
4434
|
+
l.value ? (h(), S("div", Ul, O(u.value), 1)) : s.value ? s.value ? (h(), K(b, {
|
|
4402
4435
|
key: 2,
|
|
4403
4436
|
class: "entity-link",
|
|
4404
4437
|
"hide-icon": !e.newWindow,
|
|
@@ -4420,7 +4453,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4420
4453
|
}, 8, ["text"])
|
|
4421
4454
|
]),
|
|
4422
4455
|
_: 1
|
|
4423
|
-
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div",
|
|
4456
|
+
}, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div", jl, O(" – "))),
|
|
4424
4457
|
s.value && e.allowCopy ? (h(), K(f, {
|
|
4425
4458
|
key: o.value,
|
|
4426
4459
|
class: "copy-uuid-tooltip",
|
|
@@ -4430,18 +4463,18 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4430
4463
|
}, {
|
|
4431
4464
|
default: x(() => [
|
|
4432
4465
|
N(v, null, {
|
|
4433
|
-
default: x(({ copyToClipboard:
|
|
4466
|
+
default: x(({ copyToClipboard: w }) => [
|
|
4434
4467
|
L("span", {
|
|
4435
4468
|
class: "entity-link-copy-id",
|
|
4436
|
-
onClick:
|
|
4469
|
+
onClick: ze((M) => d(w), ["stop"])
|
|
4437
4470
|
}, [
|
|
4438
|
-
N(I(
|
|
4471
|
+
N(I(Wo), {
|
|
4439
4472
|
class: "copy-icon",
|
|
4440
|
-
color: I(
|
|
4473
|
+
color: I(Er),
|
|
4441
4474
|
"data-testid": "copy-id",
|
|
4442
|
-
size: I(
|
|
4475
|
+
size: I(Fr)
|
|
4443
4476
|
}, null, 8, ["color", "size"])
|
|
4444
|
-
], 8,
|
|
4477
|
+
], 8, ql)
|
|
4445
4478
|
]),
|
|
4446
4479
|
_: 1
|
|
4447
4480
|
})
|
|
@@ -4451,37 +4484,37 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
|
|
|
4451
4484
|
]);
|
|
4452
4485
|
};
|
|
4453
4486
|
}
|
|
4454
|
-
}),
|
|
4487
|
+
}), rs = /* @__PURE__ */ ie(Pl, [["__scopeId", "data-v-be5bda4c"]]), { useAxios: is, useDeleteUrlBuilder: as, useErrors: os, useExternalLinkCreator: ls, useFetchUrlBuilder: ss, useFetcher: cs, useDebouncedFilter: us, useStringHelpers: ds, useHelpers: fs, useGatewayFeatureSupported: ps, useTruncationDetector: hs, useValidators: ms } = z;
|
|
4455
4488
|
export {
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4489
|
+
vo as ConfigCardDisplay,
|
|
4490
|
+
Dt as ConfigCardItem,
|
|
4491
|
+
re as ConfigurationSchemaSection,
|
|
4459
4492
|
P as ConfigurationSchemaType,
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4486
|
-
|
|
4493
|
+
Jl as EntityBaseConfigCard,
|
|
4494
|
+
Gl as EntityBaseForm,
|
|
4495
|
+
Pn as EntityBaseFormType,
|
|
4496
|
+
Zl as EntityBaseTable,
|
|
4497
|
+
Ql as EntityDeleteModal,
|
|
4498
|
+
Xl as EntityFilter,
|
|
4499
|
+
ns as EntityFormSection,
|
|
4500
|
+
rs as EntityLink,
|
|
4501
|
+
es as EntityToggleModal,
|
|
4502
|
+
qn as EntityTypes,
|
|
4503
|
+
be as FetcherStatus,
|
|
4504
|
+
_r as InternalLinkItem,
|
|
4505
|
+
Ut as JsonCodeBlock,
|
|
4506
|
+
ts as PermissionsWrapper,
|
|
4507
|
+
Tn as YamlCodeBlock,
|
|
4508
|
+
is as useAxios,
|
|
4509
|
+
us as useDebouncedFilter,
|
|
4510
|
+
as as useDeleteUrlBuilder,
|
|
4511
|
+
os as useErrors,
|
|
4512
|
+
ls as useExternalLinkCreator,
|
|
4513
|
+
ss as useFetchUrlBuilder,
|
|
4514
|
+
cs as useFetcher,
|
|
4515
|
+
ps as useGatewayFeatureSupported,
|
|
4516
|
+
fs as useHelpers,
|
|
4517
|
+
ds as useStringHelpers,
|
|
4518
|
+
hs as useTruncationDetector,
|
|
4519
|
+
ms as useValidators
|
|
4487
4520
|
};
|