@kong-ui-public/entities-shared 3.27.3 → 3.27.4-pr.2338.59372f0cc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.es.js +823 -820
- package/dist/entities-shared.umd.js +20 -20
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { BookIcon as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
1
|
+
import { inject as Mt, ref as B, computed as F, unref as $, toValue as me, watch as ve, toRef as qn, provide as jt, defineComponent as W, createBlock as N, openBlock as h, resolveDynamicComponent as je, normalizeClass as de, withCtx as _, createElementBlock as S, createCommentVNode as K, createElementVNode as L, toDisplayString as O, Fragment as ce, renderList as se, resolveComponent as D, createVNode as M, createTextVNode as U, useCssVars as Dt, useId as Hn, useSlots as De, renderSlot as j, createSlots as we, normalizeProps as Vn, guardReactiveProps as Yn, mergeProps as Wn, onMounted as Pt, onBeforeMount as tt, withModifiers as Le, Teleport as Ut, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn } from "vue";
|
|
2
|
+
import dt from "axios";
|
|
3
|
+
import { createI18n as zn, i18nTComponent as Qn } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as Zn, KButton as ft, KTruncate as Xn, KBadge as ei } from "@kong/kongponents";
|
|
5
|
+
import { BookIcon as qt, AddIcon as Ht, CloseIcon as ti, ChevronDownIcon as ni, CopyIcon as ii } from "@kong/icons";
|
|
6
|
+
import { useRouter as ri } from "vue-router";
|
|
7
|
+
var ai = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(ai || {}), oi = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(oi || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), nt = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.RedisConfiguration = "redis_configuration", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(nt || {});
|
|
8
|
+
const Pe = Object.values(nt);
|
|
9
9
|
var H = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(H || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(le || {});
|
|
10
|
-
const
|
|
10
|
+
const pt = [
|
|
11
11
|
"primary",
|
|
12
12
|
"secondary"
|
|
13
13
|
];
|
|
14
|
-
function
|
|
14
|
+
function li() {
|
|
15
15
|
return {
|
|
16
16
|
getAxiosInstance: (e = {}) => {
|
|
17
17
|
try {
|
|
18
|
-
const t =
|
|
19
|
-
return typeof t == "function" ? t(e) :
|
|
18
|
+
const t = Mt("get-axios-instance", void 0);
|
|
19
|
+
return typeof t == "function" ? t(e) : dt.create({
|
|
20
20
|
withCredentials: !0,
|
|
21
21
|
timeout: 3e4,
|
|
22
22
|
...e
|
|
23
23
|
});
|
|
24
24
|
} catch (t) {
|
|
25
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
25
|
+
return console.warn("getAxiosInstance:", t.message || t), dt.create({
|
|
26
26
|
withCredentials: !0,
|
|
27
27
|
timeout: 3e4,
|
|
28
28
|
...e
|
|
@@ -35,7 +35,7 @@ function si() {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function si() {
|
|
39
39
|
return {
|
|
40
40
|
debounce: (e, t) => {
|
|
41
41
|
let n;
|
|
@@ -47,13 +47,13 @@ function ci() {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const He = "khcp-user-table-preferences", ci = {
|
|
51
51
|
pageSize: 30,
|
|
52
52
|
sortColumnKey: void 0,
|
|
53
53
|
sortColumnOrder: void 0,
|
|
54
54
|
columnVisibility: {}
|
|
55
55
|
};
|
|
56
|
-
function
|
|
56
|
+
function ui() {
|
|
57
57
|
const e = (n) => {
|
|
58
58
|
if (typeof n == "string")
|
|
59
59
|
try {
|
|
@@ -63,44 +63,44 @@ function di() {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
}, t = () => {
|
|
66
|
-
const n = e(localStorage.getItem(
|
|
66
|
+
const n = e(localStorage.getItem(He));
|
|
67
67
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
68
68
|
};
|
|
69
69
|
return {
|
|
70
70
|
setTablePreferences: (n, i) => {
|
|
71
71
|
try {
|
|
72
72
|
const r = t();
|
|
73
|
-
r.set(n, i), localStorage.setItem(
|
|
73
|
+
r.set(n, i), localStorage.setItem(He, JSON.stringify(Object.fromEntries(r.entries())));
|
|
74
74
|
} catch (r) {
|
|
75
75
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
getTablePreferences: (n, i) => {
|
|
79
79
|
const r = t();
|
|
80
|
-
return (r == null ? void 0 : r.get(n)) || void 0 || i ||
|
|
80
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || i || ci;
|
|
81
81
|
},
|
|
82
82
|
deleteAllTablePreferences: () => {
|
|
83
|
-
localStorage.removeItem(
|
|
83
|
+
localStorage.removeItem(He);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const { getAxiosInstance: t } =
|
|
87
|
+
function it(e = {}) {
|
|
88
|
+
const { getAxiosInstance: t } = li();
|
|
89
89
|
return {
|
|
90
90
|
axiosInstance: t(e)
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const di = {
|
|
94
94
|
actions: {
|
|
95
95
|
copyId: "Copy ID",
|
|
96
96
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
97
97
|
copyToClipboard: "Copied successfully!",
|
|
98
98
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, fi = {
|
|
101
101
|
message: "Are you sure you want to delete this {entityType}?",
|
|
102
102
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
103
|
-
},
|
|
103
|
+
}, pi = {
|
|
104
104
|
actions: {
|
|
105
105
|
viewConfiguration: "View Configuration",
|
|
106
106
|
save: "Save",
|
|
@@ -117,13 +117,13 @@ const fi = {
|
|
|
117
117
|
errors: {
|
|
118
118
|
edit: "The entity could not be edited at this time."
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, mi = {
|
|
121
121
|
emptyState: {
|
|
122
122
|
noSearchResultsTitle: "No results found",
|
|
123
123
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
124
124
|
noSearchResultsCtaText: "Clear"
|
|
125
125
|
}
|
|
126
|
-
},
|
|
126
|
+
}, hi = {
|
|
127
127
|
title: "Configuration",
|
|
128
128
|
actions: {
|
|
129
129
|
copy: "Copy JSON"
|
|
@@ -159,10 +159,10 @@ const fi = {
|
|
|
159
159
|
entryTitle: "Entry {index}",
|
|
160
160
|
structuredFormat: "Structured"
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, gi = {
|
|
163
163
|
learnMore: "Learn more",
|
|
164
164
|
pricingTitle: "Pricing: "
|
|
165
|
-
},
|
|
165
|
+
}, yi = {
|
|
166
166
|
filterButtonText: "Filter",
|
|
167
167
|
fieldLabel: "Filter by:",
|
|
168
168
|
inputPlaceholder: "Enter a value",
|
|
@@ -170,17 +170,17 @@ const fi = {
|
|
|
170
170
|
applyButtonText: "Apply",
|
|
171
171
|
clearButtonText: "Clear",
|
|
172
172
|
clearAllButtonText: "Clear all filters"
|
|
173
|
-
},
|
|
173
|
+
}, vi = {
|
|
174
174
|
errors: {
|
|
175
175
|
fetch: "Could not fetch available items",
|
|
176
176
|
invalid: "Please select a valid value"
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, bi = {
|
|
179
179
|
unexpected: "An unexpected error has occurred",
|
|
180
180
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
181
|
-
},
|
|
181
|
+
}, xi = {
|
|
182
182
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
183
|
-
},
|
|
183
|
+
}, Ci = {
|
|
184
184
|
enable: {
|
|
185
185
|
title: "Enable {entityType}",
|
|
186
186
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -191,28 +191,28 @@ const fi = {
|
|
|
191
191
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
192
192
|
confirmText: "Yes, disable"
|
|
193
193
|
}
|
|
194
|
-
},
|
|
195
|
-
global:
|
|
196
|
-
deleteModal:
|
|
197
|
-
baseForm:
|
|
198
|
-
baseTable:
|
|
199
|
-
baseConfigCard:
|
|
200
|
-
emptyState:
|
|
201
|
-
filter:
|
|
202
|
-
debouncedFilter:
|
|
203
|
-
errors:
|
|
204
|
-
validationErrors:
|
|
205
|
-
toggleModal:
|
|
194
|
+
}, ki = {
|
|
195
|
+
global: di,
|
|
196
|
+
deleteModal: fi,
|
|
197
|
+
baseForm: pi,
|
|
198
|
+
baseTable: mi,
|
|
199
|
+
baseConfigCard: hi,
|
|
200
|
+
emptyState: gi,
|
|
201
|
+
filter: yi,
|
|
202
|
+
debouncedFilter: vi,
|
|
203
|
+
errors: bi,
|
|
204
|
+
validationErrors: xi,
|
|
205
|
+
toggleModal: Ci
|
|
206
206
|
};
|
|
207
|
-
function
|
|
208
|
-
const e =
|
|
207
|
+
function Ue() {
|
|
208
|
+
const e = zn("en-us", ki);
|
|
209
209
|
return {
|
|
210
210
|
i18n: e,
|
|
211
|
-
i18nT:
|
|
211
|
+
i18nT: Qn(e)
|
|
212
212
|
// Translation component <i18n-t>
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Vt() {
|
|
216
216
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
217
217
|
if (o.length !== a.length) return !1;
|
|
218
218
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -254,53 +254,53 @@ function Yt() {
|
|
|
254
254
|
isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ai(e, t, n, i = {
|
|
258
258
|
fetchedItemsKey: "data",
|
|
259
259
|
searchKeys: ["id"]
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
|
-
const { axiosInstance: r } =
|
|
263
|
-
await x(
|
|
264
|
-
}, 200), s =
|
|
265
|
-
const
|
|
266
|
-
return e.app === "konnect" ?
|
|
267
|
-
}), { isValidUuid: C } =
|
|
262
|
+
const { axiosInstance: r } = it(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = si(), l = a(async (E) => {
|
|
263
|
+
await x(E);
|
|
264
|
+
}, 200), s = B(!1), c = B(""), d = B(""), u = B([]), g = B([]), p = B(void 0), y = F(() => {
|
|
265
|
+
const E = `${e.apiBaseUrl}${$(t)}`;
|
|
266
|
+
return e.app === "konnect" ? E.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? E.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : E;
|
|
267
|
+
}), { isValidUuid: C } = Vt(), b = async () => {
|
|
268
268
|
try {
|
|
269
269
|
s.value = !0;
|
|
270
|
-
const { data:
|
|
271
|
-
|
|
270
|
+
const { data: E } = await r.get(`${y.value}?size=${n}`);
|
|
271
|
+
E != null && E.next || (p.value = i.fetchedItemsKey in E ? E[i.fetchedItemsKey] : []), g.value = i.fetchedItemsKey in E ? E[i.fetchedItemsKey] : [], u.value = g.value;
|
|
272
272
|
} catch {
|
|
273
273
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
274
274
|
} finally {
|
|
275
275
|
s.value = !1;
|
|
276
276
|
}
|
|
277
|
-
}, w =
|
|
277
|
+
}, w = B(""), x = async (E) => {
|
|
278
278
|
var G, Q, k;
|
|
279
|
-
if (w.value !==
|
|
280
|
-
if (w.value =
|
|
279
|
+
if (w.value !== E) {
|
|
280
|
+
if (w.value = E ?? "", !E) {
|
|
281
281
|
u.value = g.value;
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
if (p.value === void 0)
|
|
285
285
|
try {
|
|
286
286
|
if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
287
|
-
const A = `${y.value}/${
|
|
287
|
+
const A = `${y.value}/${E}`, { data: f } = await r.get(`${A}?size=${n}`);
|
|
288
288
|
i.fetchedItemsKey in f ? u.value = f[i.fetchedItemsKey] : f != null && f[i.exactMatchKey ?? "id"] ? u.value = [f] : u.value = [];
|
|
289
289
|
} else {
|
|
290
290
|
const A = [];
|
|
291
|
-
C(
|
|
292
|
-
const { data: v } = await r.get(`${y.value}/${
|
|
291
|
+
C(E) && i.searchKeys.includes("id") ? A.push((async () => {
|
|
292
|
+
const { data: v } = await r.get(`${y.value}/${E}`);
|
|
293
293
|
return [v[i.fetchedItemsKey] ?? v];
|
|
294
294
|
})()) : A.push(
|
|
295
295
|
...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
|
|
296
|
-
const { data:
|
|
297
|
-
return
|
|
296
|
+
const { data: I } = await r.get(`${y.value}?${v}=${E}`);
|
|
297
|
+
return I[i.fetchedItemsKey];
|
|
298
298
|
})
|
|
299
299
|
);
|
|
300
300
|
const f = await Promise.all(A), m = /* @__PURE__ */ new Set();
|
|
301
301
|
u.value = [], (G = f == null ? void 0 : f.forEach) == null || G.call(f, (v) => {
|
|
302
|
-
var
|
|
303
|
-
(
|
|
302
|
+
var I;
|
|
303
|
+
(I = v == null ? void 0 : v.forEach) == null || I.call(v, (q) => {
|
|
304
304
|
m.has(q.id) || (m.add(q.id), u.value.push(q));
|
|
305
305
|
});
|
|
306
306
|
});
|
|
@@ -315,8 +315,8 @@ function _i(e, t, n, i = {
|
|
|
315
315
|
var m;
|
|
316
316
|
let f = !1;
|
|
317
317
|
for (const v of i.searchKeys) {
|
|
318
|
-
const
|
|
319
|
-
|
|
318
|
+
const I = typeof A[v] == "string" ? (m = A[v]) == null ? void 0 : m.toLowerCase() : A[v];
|
|
319
|
+
I != null && I.includes(E.toLowerCase()) && (f = !0);
|
|
320
320
|
}
|
|
321
321
|
return f;
|
|
322
322
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
@@ -332,14 +332,14 @@ function _i(e, t, n, i = {
|
|
|
332
332
|
debouncedQueryChange: l
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
function
|
|
336
|
-
const n = $(t), i =
|
|
335
|
+
function _i(e, t) {
|
|
336
|
+
const n = $(t), i = F(
|
|
337
337
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
338
338
|
);
|
|
339
339
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
const { i18n: { t: e } } =
|
|
341
|
+
function wi() {
|
|
342
|
+
const { i18n: { t: e } } = Ue();
|
|
343
343
|
return {
|
|
344
344
|
getErrorFieldsFromError: (i) => {
|
|
345
345
|
var a, l, s;
|
|
@@ -410,7 +410,7 @@ function Si() {
|
|
|
410
410
|
}
|
|
411
411
|
};
|
|
412
412
|
}
|
|
413
|
-
function
|
|
413
|
+
function Si(e) {
|
|
414
414
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
415
415
|
try {
|
|
416
416
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
|
|
@@ -421,11 +421,11 @@ function $i(e) {
|
|
|
421
421
|
return console.warn("Failed to build valid URL:", i), "";
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
|
-
function
|
|
425
|
-
const n =
|
|
424
|
+
function Yt(e, t) {
|
|
425
|
+
const n = F(() => {
|
|
426
426
|
const r = me(e);
|
|
427
427
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
428
|
-
}), i =
|
|
428
|
+
}), i = F(() => {
|
|
429
429
|
const r = me(t);
|
|
430
430
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
431
431
|
});
|
|
@@ -441,9 +441,9 @@ function Wt(e, t) {
|
|
|
441
441
|
}
|
|
442
442
|
};
|
|
443
443
|
}
|
|
444
|
-
const
|
|
445
|
-
function
|
|
446
|
-
const i =
|
|
444
|
+
const mt = /* @__PURE__ */ new Map();
|
|
445
|
+
function $i(e, t, n) {
|
|
446
|
+
const i = B(!0), r = me(e), { axiosInstance: o } = it(r.axiosRequestConfig), a = Yt(e, t), l = B({
|
|
447
447
|
status: pe.Idle
|
|
448
448
|
}), s = async (u) => {
|
|
449
449
|
var p;
|
|
@@ -458,7 +458,7 @@ function Ti(e, t, n) {
|
|
|
458
458
|
const b = C.data, w = g && g.replace(/[^\w-_]/gi, "");
|
|
459
459
|
let x;
|
|
460
460
|
b[w] ? x = Array.isArray(b[w]) ? b[w] : [b[w]] : Array.isArray(b) ? x = b : x = Object.keys(b).length ? [b] : [];
|
|
461
|
-
const
|
|
461
|
+
const E = {
|
|
462
462
|
data: x,
|
|
463
463
|
total: x.length,
|
|
464
464
|
...b.offset ? {
|
|
@@ -467,13 +467,13 @@ function Ti(e, t, n) {
|
|
|
467
467
|
}
|
|
468
468
|
} : null
|
|
469
469
|
};
|
|
470
|
-
return
|
|
470
|
+
return E.data.length === 0 && !u.query ? l.value = {
|
|
471
471
|
status: pe.NoRecords,
|
|
472
|
-
response:
|
|
472
|
+
response: E
|
|
473
473
|
} : l.value = {
|
|
474
474
|
status: pe.Idle,
|
|
475
|
-
response:
|
|
476
|
-
},
|
|
475
|
+
response: E
|
|
476
|
+
}, E;
|
|
477
477
|
} catch (y) {
|
|
478
478
|
const C = {
|
|
479
479
|
data: [],
|
|
@@ -489,102 +489,102 @@ function Ti(e, t, n) {
|
|
|
489
489
|
error: y.response ? y : { response: y }
|
|
490
490
|
}, C);
|
|
491
491
|
}
|
|
492
|
-
}, c = r.cacheIdentifier, d =
|
|
492
|
+
}, c = r.cacheIdentifier, d = Wt(c);
|
|
493
493
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
494
494
|
}
|
|
495
|
-
function
|
|
495
|
+
function Wt(e) {
|
|
496
496
|
if (e) {
|
|
497
|
-
let t =
|
|
498
|
-
return t || (t =
|
|
497
|
+
let t = mt.get(e);
|
|
498
|
+
return t || (t = B(1), mt.set(e, t)), t;
|
|
499
499
|
}
|
|
500
|
-
return
|
|
500
|
+
return B(1);
|
|
501
501
|
}
|
|
502
|
-
function
|
|
502
|
+
function Ti() {
|
|
503
503
|
const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
504
504
|
return {
|
|
505
505
|
capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
|
|
506
506
|
convertKeyToTitle: e
|
|
507
507
|
};
|
|
508
508
|
}
|
|
509
|
-
const
|
|
509
|
+
const Jt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ht = (e) => {
|
|
510
510
|
if (typeof e != "string")
|
|
511
511
|
throw new TypeError("Invalid argument expected string");
|
|
512
|
-
const t = e.match(
|
|
512
|
+
const t = e.match(Jt);
|
|
513
513
|
if (!t)
|
|
514
514
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
515
515
|
return t.shift(), t;
|
|
516
|
-
},
|
|
516
|
+
}, gt = (e) => e === "*" || e === "x" || e === "X", yt = (e) => {
|
|
517
517
|
const t = parseInt(e, 10);
|
|
518
518
|
return isNaN(t) ? e : t;
|
|
519
|
-
},
|
|
520
|
-
if (
|
|
519
|
+
}, Ii = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Fi = (e, t) => {
|
|
520
|
+
if (gt(e) || gt(t))
|
|
521
521
|
return 0;
|
|
522
|
-
const [n, i] =
|
|
522
|
+
const [n, i] = Ii(yt(e), yt(t));
|
|
523
523
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
524
|
-
},
|
|
524
|
+
}, vt = (e, t) => {
|
|
525
525
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
526
|
-
const i =
|
|
526
|
+
const i = Fi(e[n] || "0", t[n] || "0");
|
|
527
527
|
if (i !== 0)
|
|
528
528
|
return i;
|
|
529
529
|
}
|
|
530
530
|
return 0;
|
|
531
|
-
},
|
|
532
|
-
const n =
|
|
533
|
-
return a !== 0 ? a : r && o ?
|
|
534
|
-
},
|
|
535
|
-
|
|
536
|
-
const i =
|
|
537
|
-
return
|
|
538
|
-
},
|
|
531
|
+
}, Ei = (e, t) => {
|
|
532
|
+
const n = ht(e), i = ht(t), r = n.pop(), o = i.pop(), a = vt(n, i);
|
|
533
|
+
return a !== 0 ? a : r && o ? vt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
534
|
+
}, bt = (e, t, n) => {
|
|
535
|
+
Oi(n);
|
|
536
|
+
const i = Ei(e, t);
|
|
537
|
+
return Gt[n].includes(i);
|
|
538
|
+
}, Gt = {
|
|
539
539
|
">": [1],
|
|
540
540
|
">=": [0, 1],
|
|
541
541
|
"=": [0],
|
|
542
542
|
"<=": [-1, 0],
|
|
543
543
|
"<": [-1],
|
|
544
544
|
"!=": [-1, 1]
|
|
545
|
-
},
|
|
545
|
+
}, xt = Object.keys(Gt), Oi = (e) => {
|
|
546
546
|
if (typeof e != "string")
|
|
547
547
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
548
|
-
if (
|
|
549
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
550
|
-
},
|
|
548
|
+
if (xt.indexOf(e) === -1)
|
|
549
|
+
throw new Error(`Invalid operator, expected one of ${xt.join("|")}`);
|
|
550
|
+
}, Li = (e) => typeof e == "string" && /^[v\d]/.test(e) && Jt.test(e);
|
|
551
551
|
function Ri(e) {
|
|
552
552
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
553
553
|
if (!t)
|
|
554
554
|
return !0;
|
|
555
555
|
const { edition: i, version: r } = t;
|
|
556
|
-
if (!
|
|
556
|
+
if (!Li(r))
|
|
557
557
|
return console.error("Invalid version"), !1;
|
|
558
558
|
const o = n[i];
|
|
559
559
|
if (!o)
|
|
560
560
|
return !1;
|
|
561
561
|
const [a, l] = o;
|
|
562
|
-
return !(a &&
|
|
562
|
+
return !(a && bt(r, a, "<") || l && bt(r, l, ">"));
|
|
563
563
|
}
|
|
564
|
-
function
|
|
565
|
-
const t =
|
|
564
|
+
function Bi(e) {
|
|
565
|
+
const t = B(0), n = B(0), i = B(!1);
|
|
566
566
|
return ve(e, (o) => {
|
|
567
567
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
568
568
|
}), {
|
|
569
|
-
isTruncated:
|
|
569
|
+
isTruncated: F(() => t.value < n.value)
|
|
570
570
|
};
|
|
571
571
|
}
|
|
572
|
-
function
|
|
573
|
-
const { i18n: { t: e } } =
|
|
572
|
+
function Ki() {
|
|
573
|
+
const { i18n: { t: e } } = Ue();
|
|
574
574
|
return {
|
|
575
575
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
576
576
|
};
|
|
577
577
|
}
|
|
578
|
-
const
|
|
579
|
-
|
|
580
|
-
},
|
|
578
|
+
const Ge = Symbol("schema"), Ni = (e) => {
|
|
579
|
+
jt(Ge, e);
|
|
580
|
+
}, Mi = (e) => {
|
|
581
581
|
var r, o;
|
|
582
|
-
const t =
|
|
583
|
-
return
|
|
582
|
+
const t = Mt(Ge, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = qn(n == null ? void 0 : n[e]);
|
|
583
|
+
return jt(Ge, i), i;
|
|
584
584
|
};
|
|
585
|
-
function
|
|
585
|
+
function ji(e) {
|
|
586
586
|
let t = "";
|
|
587
|
-
const n =
|
|
587
|
+
const n = B(!1), i = B(null), r = F(() => {
|
|
588
588
|
let a;
|
|
589
589
|
return n.value ? a = !0 : i.value ? a = i.value.hasData || e && me(e) : a = !1, !a;
|
|
590
590
|
});
|
|
@@ -598,27 +598,27 @@ function Di(e) {
|
|
|
598
598
|
};
|
|
599
599
|
}
|
|
600
600
|
const V = {
|
|
601
|
-
useAxios:
|
|
602
|
-
useDebouncedFilter:
|
|
603
|
-
useDeleteUrlBuilder:
|
|
604
|
-
useErrors:
|
|
605
|
-
useExternalLinkCreator:
|
|
606
|
-
useFetcher:
|
|
607
|
-
useFetcherCacheKey:
|
|
608
|
-
useFetchUrlBuilder:
|
|
609
|
-
useHelpers:
|
|
610
|
-
useStringHelpers:
|
|
611
|
-
useI18n:
|
|
601
|
+
useAxios: it,
|
|
602
|
+
useDebouncedFilter: Ai,
|
|
603
|
+
useDeleteUrlBuilder: _i,
|
|
604
|
+
useErrors: wi,
|
|
605
|
+
useExternalLinkCreator: Si,
|
|
606
|
+
useFetcher: $i,
|
|
607
|
+
useFetcherCacheKey: Wt,
|
|
608
|
+
useFetchUrlBuilder: Yt,
|
|
609
|
+
useHelpers: Vt,
|
|
610
|
+
useStringHelpers: Ti,
|
|
611
|
+
useI18n: Ue,
|
|
612
612
|
useGatewayFeatureSupported: Ri,
|
|
613
|
-
useTruncationDetector:
|
|
614
|
-
useValidators:
|
|
615
|
-
useSchemaProvider:
|
|
616
|
-
useSubSchema:
|
|
617
|
-
useTableState:
|
|
618
|
-
},
|
|
613
|
+
useTruncationDetector: Bi,
|
|
614
|
+
useValidators: Ki,
|
|
615
|
+
useSchemaProvider: Ni,
|
|
616
|
+
useSubSchema: Mi,
|
|
617
|
+
useTableState: ji
|
|
618
|
+
}, Di = {
|
|
619
619
|
key: 0,
|
|
620
620
|
class: "config-card-fieldset-title"
|
|
621
|
-
},
|
|
621
|
+
}, Pi = /* @__PURE__ */ W({
|
|
622
622
|
__name: "JsonCardItem",
|
|
623
623
|
props: {
|
|
624
624
|
item: {
|
|
@@ -635,21 +635,21 @@ const V = {
|
|
|
635
635
|
}
|
|
636
636
|
},
|
|
637
637
|
setup(e) {
|
|
638
|
-
const t = e, { i18n: { t: n } } = V.useI18n(), { convertKeyToTitle: i } = V.useStringHelpers(), r =
|
|
638
|
+
const t = e, { i18n: { t: n } } = V.useI18n(), { convertKeyToTitle: i } = V.useStringHelpers(), r = F(() => t.item.key ?? "json-array-item"), o = F(() => t.item.value ?? t.item), a = F(() => {
|
|
639
639
|
const s = JSON.parse(JSON.stringify(o.value));
|
|
640
640
|
return t.isArrayItem && delete s.name, s;
|
|
641
|
-
}), l =
|
|
641
|
+
}), l = F(() => {
|
|
642
642
|
var s;
|
|
643
643
|
return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
644
644
|
});
|
|
645
|
-
return (s, c) => (h(), N(
|
|
645
|
+
return (s, c) => (h(), N(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
646
646
|
class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
647
647
|
}, {
|
|
648
648
|
default: _(() => [
|
|
649
|
-
e.isArrayItem ? (h(), S("legend",
|
|
649
|
+
e.isArrayItem ? (h(), S("legend", Di, [
|
|
650
650
|
L("b", null, O(l.value), 1)
|
|
651
651
|
])) : K("", !0),
|
|
652
|
-
(h(!0), S(ce, null, se(Object.keys(a.value), (d, u) => (h(), N(
|
|
652
|
+
(h(!0), S(ce, null, se(Object.keys(a.value), (d, u) => (h(), N(Qt, {
|
|
653
653
|
key: `${r.value}-property-${u}`,
|
|
654
654
|
item: {
|
|
655
655
|
key: d,
|
|
@@ -666,7 +666,7 @@ const V = {
|
|
|
666
666
|
for (const [i, r] of t)
|
|
667
667
|
n[i] = r;
|
|
668
668
|
return n;
|
|
669
|
-
},
|
|
669
|
+
}, zt = /* @__PURE__ */ oe(Pi, [["__scopeId", "data-v-dc1e39a1"]]), Ui = /* @__PURE__ */ W({
|
|
670
670
|
__name: "InternalLinkItem",
|
|
671
671
|
props: {
|
|
672
672
|
item: {
|
|
@@ -693,7 +693,7 @@ const V = {
|
|
|
693
693
|
]);
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
}),
|
|
696
|
+
}), qi = /* @__PURE__ */ oe(Ui, [["__scopeId", "data-v-2feb8c2e"]]), Hi = /* @__PURE__ */ W({
|
|
697
697
|
__name: "StatusBadge",
|
|
698
698
|
props: {
|
|
699
699
|
status: {
|
|
@@ -715,11 +715,11 @@ const V = {
|
|
|
715
715
|
}, 8, ["appearance"]);
|
|
716
716
|
};
|
|
717
717
|
}
|
|
718
|
-
}),
|
|
718
|
+
}), Vi = "#0044f4", Yi = "#e0e4ea", Wi = "#afb7c5", Ji = "#0044f4", Gi = "1px", zi = "16px", Qi = "20px", Zi = { class: "config-card-details-row" }, Xi = ["data-testid"], er = ["data-testid"], tr = ["data-testid"], nr = ["data-testid"], ir = { key: 1 }, rr = ["data-testid"], ar = ["data-testid"], or = ["data-testid"], lr = ["data-testid"], sr = {
|
|
719
719
|
name: "ConfigCardItem",
|
|
720
|
-
components: { JsonCardItem:
|
|
721
|
-
},
|
|
722
|
-
...
|
|
720
|
+
components: { JsonCardItem: zt, StatusBadge: Hi, InternalLinkItem: qi }
|
|
721
|
+
}, cr = /* @__PURE__ */ W({
|
|
722
|
+
...sr,
|
|
723
723
|
props: {
|
|
724
724
|
item: {
|
|
725
725
|
type: Object,
|
|
@@ -738,16 +738,16 @@ const V = {
|
|
|
738
738
|
},
|
|
739
739
|
emits: ["navigation-click"],
|
|
740
740
|
setup(e, { emit: t }) {
|
|
741
|
-
|
|
742
|
-
"2f90d7f7": u.value ? "none" : `solid ${$(
|
|
741
|
+
Dt((E) => ({
|
|
742
|
+
"2f90d7f7": u.value ? "none" : `solid ${$(Gi)} ${$(Yi)}`,
|
|
743
743
|
"668a792a": d.value && s.value ? "block" : "flex",
|
|
744
744
|
"5bc9ad14": d.value && s.value ? "100%" : n.slim ? "50%" : "25%",
|
|
745
745
|
"5bc5215e": d.value && s.value ? "100%" : n.slim ? "50%" : "75%"
|
|
746
746
|
}));
|
|
747
|
-
const n = e, i = t, r =
|
|
748
|
-
var
|
|
749
|
-
return n.item.type ? n.item.type : (
|
|
750
|
-
}), y =
|
|
747
|
+
const n = e, i = t, r = Hn(), o = De(), { i18n: { t: a, formatUnixTimeStamp: l } } = V.useI18n(), s = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = F(() => !!(n.item.tooltip || o["label-tooltip"])), d = F(() => n.item.type === H.Json || n.item.type === H.JsonArray), u = F(() => n.item.type === H.JsonArray), g = V.useSubSchema(n.item.key), p = F(() => {
|
|
748
|
+
var E;
|
|
749
|
+
return n.item.type ? n.item.type : (E = g == null ? void 0 : g.value) != null && E.encrypted ? H.Redacted : void 0;
|
|
750
|
+
}), y = F(() => {
|
|
751
751
|
switch (p.value) {
|
|
752
752
|
case H.ID:
|
|
753
753
|
return {
|
|
@@ -828,8 +828,8 @@ const V = {
|
|
|
828
828
|
attrs: {
|
|
829
829
|
"data-testid": `${n.item.key}-internal-link`,
|
|
830
830
|
item: n.item,
|
|
831
|
-
onNavigationClick: (
|
|
832
|
-
i("navigation-click",
|
|
831
|
+
onNavigationClick: (E) => {
|
|
832
|
+
i("navigation-click", E);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
};
|
|
@@ -878,15 +878,15 @@ const V = {
|
|
|
878
878
|
text: n.item.value
|
|
879
879
|
};
|
|
880
880
|
}
|
|
881
|
-
}), C =
|
|
882
|
-
return (
|
|
881
|
+
}), C = B(), b = B(), { isTruncated: w } = V.useTruncationDetector(C), { isTruncated: x } = V.useTruncationDetector(b);
|
|
882
|
+
return (E, G) => {
|
|
883
883
|
const Q = D("KTooltip"), k = D("KLabel"), A = D("KBadge"), f = D("KCopy");
|
|
884
|
-
return h(), S("div",
|
|
884
|
+
return h(), S("div", Zi, [
|
|
885
885
|
L("div", {
|
|
886
886
|
class: "config-card-details-label",
|
|
887
887
|
"data-testid": `${e.item.key}-label`
|
|
888
888
|
}, [
|
|
889
|
-
j(
|
|
889
|
+
j(E.$slots, "label", { item: e.item }, () => [
|
|
890
890
|
M(k, { "tooltip-attributes": { maxWidth: "500px" } }, we({
|
|
891
891
|
default: _(() => [
|
|
892
892
|
M(Q, {
|
|
@@ -910,25 +910,25 @@ const V = {
|
|
|
910
910
|
L("div", {
|
|
911
911
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
912
912
|
}, [
|
|
913
|
-
j(
|
|
913
|
+
j(E.$slots, "label-tooltip", {}, () => [
|
|
914
914
|
U(O(e.item.tooltip), 1)
|
|
915
915
|
], !0)
|
|
916
|
-
], 8,
|
|
916
|
+
], 8, er)
|
|
917
917
|
]),
|
|
918
918
|
key: "0"
|
|
919
919
|
} : void 0
|
|
920
920
|
]), 1024)
|
|
921
921
|
], !0)
|
|
922
|
-
], 8,
|
|
922
|
+
], 8, Xi),
|
|
923
923
|
L("div", {
|
|
924
924
|
class: "config-card-details-value",
|
|
925
925
|
"data-testid": `${e.item.key}-property-value`
|
|
926
926
|
}, [
|
|
927
|
-
j(
|
|
927
|
+
j(E.$slots, e.item.key, {
|
|
928
928
|
rowValue: e.item.value
|
|
929
929
|
}, () => [
|
|
930
|
-
s.value ? (h(), S("div",
|
|
931
|
-
(h(), N(
|
|
930
|
+
s.value ? (h(), S("div", ir, [
|
|
931
|
+
(h(), N(je(y.value.tag), Vn(Yn(y.value.attrs)), {
|
|
932
932
|
default: _(() => [
|
|
933
933
|
y.value.additionalComponent === "KBadge" ? (h(), S("div", {
|
|
934
934
|
key: 0,
|
|
@@ -946,24 +946,24 @@ const V = {
|
|
|
946
946
|
]),
|
|
947
947
|
_: 2
|
|
948
948
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
949
|
-
], 8,
|
|
949
|
+
], 8, rr)) : y.value.additionalComponent === "KCopy" ? (h(), S("div", {
|
|
950
950
|
key: 1,
|
|
951
951
|
class: "copy-uuid-array",
|
|
952
952
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
953
953
|
}, [
|
|
954
|
-
(h(!0), S(ce, null, se(e.item.value, (m, v) => (h(), N(f,
|
|
954
|
+
(h(!0), S(ce, null, se(e.item.value, (m, v) => (h(), N(f, Wn({ ref_for: !0 }, y.value.childAttrs, {
|
|
955
955
|
key: `${e.item.key}-copy-uuid-${v}`,
|
|
956
956
|
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
957
957
|
text: m
|
|
958
958
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
959
|
-
], 8,
|
|
959
|
+
], 8, ar)) : y.value.additionalComponent === "KMethodBadge" ? (h(), S("div", {
|
|
960
960
|
key: 2,
|
|
961
961
|
class: "method-badge-array",
|
|
962
962
|
"data-testid": `${e.item.key}-badge-methods`
|
|
963
963
|
}, [
|
|
964
964
|
(h(!0), S(ce, null, se(e.item.value, (m, v) => (h(), N(A, {
|
|
965
965
|
key: `${e.item.key}-badge-method-${v}`,
|
|
966
|
-
appearance: Object.values($(
|
|
966
|
+
appearance: Object.values($(Zn)).includes(m.toLowerCase()) ? m.toLowerCase() : "custom",
|
|
967
967
|
class: "config-badge",
|
|
968
968
|
"data-testid": `${e.item.key}-badge-method-${v}`
|
|
969
969
|
}, {
|
|
@@ -972,17 +972,17 @@ const V = {
|
|
|
972
972
|
]),
|
|
973
973
|
_: 2
|
|
974
974
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
975
|
-
], 8,
|
|
975
|
+
], 8, or)) : y.value.additionalComponent === "JsonCardItem" ? (h(), S("div", {
|
|
976
976
|
key: 3,
|
|
977
977
|
"data-testid": `${n.item.key}-json-array-content`
|
|
978
978
|
}, [
|
|
979
|
-
(h(!0), S(ce, null, se(e.item.value, (m, v) => (h(), N(
|
|
979
|
+
(h(!0), S(ce, null, se(e.item.value, (m, v) => (h(), N(zt, {
|
|
980
980
|
key: `json-array-item-${v}`,
|
|
981
981
|
index: v,
|
|
982
982
|
"is-array-item": "",
|
|
983
983
|
item: m
|
|
984
984
|
}, null, 8, ["index", "item"]))), 128))
|
|
985
|
-
], 8,
|
|
985
|
+
], 8, lr)) : (h(), N(Q, {
|
|
986
986
|
key: 4,
|
|
987
987
|
text: $(x) ? e.item.value : ""
|
|
988
988
|
}, {
|
|
@@ -1001,16 +1001,16 @@ const V = {
|
|
|
1001
1001
|
])) : (h(), S("div", {
|
|
1002
1002
|
key: 0,
|
|
1003
1003
|
"data-testid": `${e.item.key}-no-value`
|
|
1004
|
-
}, " – ", 8,
|
|
1004
|
+
}, " – ", 8, nr))
|
|
1005
1005
|
], !0)
|
|
1006
|
-
], 8,
|
|
1006
|
+
], 8, tr)
|
|
1007
1007
|
]);
|
|
1008
1008
|
};
|
|
1009
1009
|
}
|
|
1010
|
-
}),
|
|
1010
|
+
}), Qt = /* @__PURE__ */ oe(cr, [["__scopeId", "data-v-5f9aa0e8"]]), ur = { class: "json-config config-card-code-block" }, dr = {
|
|
1011
1011
|
key: 0,
|
|
1012
1012
|
class: "json-endpoint"
|
|
1013
|
-
},
|
|
1013
|
+
}, Zt = /* @__PURE__ */ W({
|
|
1014
1014
|
__name: "JsonCodeBlock",
|
|
1015
1015
|
props: {
|
|
1016
1016
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1038,10 +1038,10 @@ const V = {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
},
|
|
1040
1040
|
setup(e) {
|
|
1041
|
-
|
|
1041
|
+
Dt((r) => ({
|
|
1042
1042
|
eca0976a: `${i.value}ch`
|
|
1043
1043
|
}));
|
|
1044
|
-
const t = e, n =
|
|
1044
|
+
const t = e, n = F(() => t.entityRecord), i = F(() => {
|
|
1045
1045
|
var a;
|
|
1046
1046
|
if (!t.fetcherUrl)
|
|
1047
1047
|
return 0;
|
|
@@ -1050,8 +1050,8 @@ const V = {
|
|
|
1050
1050
|
});
|
|
1051
1051
|
return (r, o) => {
|
|
1052
1052
|
const a = D("KBadge"), l = D("KCodeBlock");
|
|
1053
|
-
return h(), S("div",
|
|
1054
|
-
t.fetcherUrl ? (h(), S("div",
|
|
1053
|
+
return h(), S("div", ur, [
|
|
1054
|
+
t.fetcherUrl ? (h(), S("div", dr, [
|
|
1055
1055
|
M(a, {
|
|
1056
1056
|
appearance: t.requestMethod
|
|
1057
1057
|
}, {
|
|
@@ -1081,55 +1081,55 @@ const V = {
|
|
|
1081
1081
|
}
|
|
1082
1082
|
});
|
|
1083
1083
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1084
|
-
function
|
|
1084
|
+
function Xt(e) {
|
|
1085
1085
|
return typeof e > "u" || e === null;
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function fr(e) {
|
|
1088
1088
|
return typeof e == "object" && e !== null;
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1091
|
-
return Array.isArray(e) ? e :
|
|
1090
|
+
function pr(e) {
|
|
1091
|
+
return Array.isArray(e) ? e : Xt(e) ? [] : [e];
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function mr(e, t) {
|
|
1094
1094
|
var n, i, r, o;
|
|
1095
1095
|
if (t)
|
|
1096
1096
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1097
1097
|
r = o[n], e[r] = t[r];
|
|
1098
1098
|
return e;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function hr(e, t) {
|
|
1101
1101
|
var n = "", i;
|
|
1102
1102
|
for (i = 0; i < t; i += 1)
|
|
1103
1103
|
n += e;
|
|
1104
1104
|
return n;
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function gr(e) {
|
|
1107
1107
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1108
1108
|
}
|
|
1109
|
-
var vr =
|
|
1110
|
-
isNothing:
|
|
1111
|
-
isObject:
|
|
1112
|
-
toArray:
|
|
1113
|
-
repeat:
|
|
1114
|
-
isNegativeZero:
|
|
1115
|
-
extend:
|
|
1109
|
+
var yr = Xt, vr = fr, br = pr, xr = hr, Cr = gr, kr = mr, z = {
|
|
1110
|
+
isNothing: yr,
|
|
1111
|
+
isObject: vr,
|
|
1112
|
+
toArray: br,
|
|
1113
|
+
repeat: xr,
|
|
1114
|
+
isNegativeZero: Cr,
|
|
1115
|
+
extend: kr
|
|
1116
1116
|
};
|
|
1117
|
-
function
|
|
1117
|
+
function en(e, t) {
|
|
1118
1118
|
var n = "", i = e.reason || "(unknown reason)";
|
|
1119
1119
|
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 += `
|
|
1120
1120
|
|
|
1121
1121
|
` + e.mark.snippet), i + " " + n) : i;
|
|
1122
1122
|
}
|
|
1123
1123
|
function Te(e, t) {
|
|
1124
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1124
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = en(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1125
1125
|
}
|
|
1126
1126
|
Te.prototype = Object.create(Error.prototype);
|
|
1127
1127
|
Te.prototype.constructor = Te;
|
|
1128
1128
|
Te.prototype.toString = function(t) {
|
|
1129
|
-
return this.name + ": " +
|
|
1129
|
+
return this.name + ": " + en(this, t);
|
|
1130
1130
|
};
|
|
1131
1131
|
var re = Te;
|
|
1132
|
-
function
|
|
1132
|
+
function Ve(e, t, n, i, r) {
|
|
1133
1133
|
var o = "", a = "", l = Math.floor(r / 2) - 1;
|
|
1134
1134
|
return i - t > l && (o = " ... ", t = i - l + o.length), n - i > l && (a = " ...", n = i + l - a.length), {
|
|
1135
1135
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1137,10 +1137,10 @@ function Ye(e, t, n, i, r) {
|
|
|
1137
1137
|
// relative position
|
|
1138
1138
|
};
|
|
1139
1139
|
}
|
|
1140
|
-
function
|
|
1140
|
+
function Ye(e, t) {
|
|
1141
1141
|
return z.repeat(" ", t - e.length) + e;
|
|
1142
1142
|
}
|
|
1143
|
-
function
|
|
1143
|
+
function Ar(e, t) {
|
|
1144
1144
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1145
1145
|
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);
|
|
1146
1146
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1148,28 +1148,28 @@ function _r(e, t) {
|
|
|
1148
1148
|
a < 0 && (a = i.length - 1);
|
|
1149
1149
|
var l = "", s, c, d = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1150
1150
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1151
|
-
c =
|
|
1151
|
+
c = Ve(
|
|
1152
1152
|
e.buffer,
|
|
1153
1153
|
i[a - s],
|
|
1154
1154
|
r[a - s],
|
|
1155
1155
|
e.position - (i[a] - i[a - s]),
|
|
1156
1156
|
u
|
|
1157
|
-
), l = z.repeat(" ", t.indent) +
|
|
1157
|
+
), l = z.repeat(" ", t.indent) + Ye((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1158
1158
|
` + l;
|
|
1159
|
-
for (c =
|
|
1159
|
+
for (c = Ve(e.buffer, i[a], r[a], e.position, u), l += z.repeat(" ", t.indent) + Ye((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1160
1160
|
`, l += z.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1161
1161
|
`, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
|
|
1162
|
-
c =
|
|
1162
|
+
c = Ve(
|
|
1163
1163
|
e.buffer,
|
|
1164
1164
|
i[a + s],
|
|
1165
1165
|
r[a + s],
|
|
1166
1166
|
e.position - (i[a] - i[a + s]),
|
|
1167
1167
|
u
|
|
1168
|
-
), l += z.repeat(" ", t.indent) +
|
|
1168
|
+
), l += z.repeat(" ", t.indent) + Ye((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1169
1169
|
`;
|
|
1170
1170
|
return l.replace(/\n$/, "");
|
|
1171
1171
|
}
|
|
1172
|
-
var
|
|
1172
|
+
var _r = Ar, wr = [
|
|
1173
1173
|
"kind",
|
|
1174
1174
|
"multi",
|
|
1175
1175
|
"resolve",
|
|
@@ -1180,12 +1180,12 @@ var wr = _r, Sr = [
|
|
|
1180
1180
|
"representName",
|
|
1181
1181
|
"defaultStyle",
|
|
1182
1182
|
"styleAliases"
|
|
1183
|
-
],
|
|
1183
|
+
], Sr = [
|
|
1184
1184
|
"scalar",
|
|
1185
1185
|
"sequence",
|
|
1186
1186
|
"mapping"
|
|
1187
1187
|
];
|
|
1188
|
-
function
|
|
1188
|
+
function $r(e) {
|
|
1189
1189
|
var t = {};
|
|
1190
1190
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1191
1191
|
e[n].forEach(function(i) {
|
|
@@ -1193,19 +1193,19 @@ function Tr(e) {
|
|
|
1193
1193
|
});
|
|
1194
1194
|
}), t;
|
|
1195
1195
|
}
|
|
1196
|
-
function
|
|
1196
|
+
function Tr(e, t) {
|
|
1197
1197
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1198
|
-
if (
|
|
1198
|
+
if (wr.indexOf(n) === -1)
|
|
1199
1199
|
throw new re('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1200
1200
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1201
1201
|
return !0;
|
|
1202
1202
|
}, this.construct = t.construct || function(n) {
|
|
1203
1203
|
return n;
|
|
1204
|
-
}, 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 =
|
|
1204
|
+
}, 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 = $r(t.styleAliases || null), Sr.indexOf(this.kind) === -1)
|
|
1205
1205
|
throw new re('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1206
1206
|
}
|
|
1207
|
-
var te =
|
|
1208
|
-
function
|
|
1207
|
+
var te = Tr;
|
|
1208
|
+
function Ct(e, t) {
|
|
1209
1209
|
var n = [];
|
|
1210
1210
|
return e[t].forEach(function(i) {
|
|
1211
1211
|
var r = n.length;
|
|
@@ -1214,7 +1214,7 @@ function kt(e, t) {
|
|
|
1214
1214
|
}), n[r] = i;
|
|
1215
1215
|
}), n;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Ir() {
|
|
1218
1218
|
var e = {
|
|
1219
1219
|
scalar: {},
|
|
1220
1220
|
sequence: {},
|
|
@@ -1234,10 +1234,10 @@ function Fr() {
|
|
|
1234
1234
|
arguments[t].forEach(i);
|
|
1235
1235
|
return e;
|
|
1236
1236
|
}
|
|
1237
|
-
function
|
|
1237
|
+
function ze(e) {
|
|
1238
1238
|
return this.extend(e);
|
|
1239
1239
|
}
|
|
1240
|
-
|
|
1240
|
+
ze.prototype.extend = function(t) {
|
|
1241
1241
|
var n = [], i = [];
|
|
1242
1242
|
if (t instanceof te)
|
|
1243
1243
|
i.push(t);
|
|
@@ -1258,47 +1258,47 @@ Qe.prototype.extend = function(t) {
|
|
|
1258
1258
|
if (!(o instanceof te))
|
|
1259
1259
|
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1260
1260
|
});
|
|
1261
|
-
var r = Object.create(
|
|
1262
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit =
|
|
1261
|
+
var r = Object.create(ze.prototype);
|
|
1262
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = Ct(r, "implicit"), r.compiledExplicit = Ct(r, "explicit"), r.compiledTypeMap = Ir(r.compiledImplicit, r.compiledExplicit), r;
|
|
1263
1263
|
};
|
|
1264
|
-
var
|
|
1264
|
+
var tn = ze, nn = new te("tag:yaml.org,2002:str", {
|
|
1265
1265
|
kind: "scalar",
|
|
1266
1266
|
construct: function(e) {
|
|
1267
1267
|
return e !== null ? e : "";
|
|
1268
1268
|
}
|
|
1269
|
-
}),
|
|
1269
|
+
}), rn = new te("tag:yaml.org,2002:seq", {
|
|
1270
1270
|
kind: "sequence",
|
|
1271
1271
|
construct: function(e) {
|
|
1272
1272
|
return e !== null ? e : [];
|
|
1273
1273
|
}
|
|
1274
|
-
}),
|
|
1274
|
+
}), an = new te("tag:yaml.org,2002:map", {
|
|
1275
1275
|
kind: "mapping",
|
|
1276
1276
|
construct: function(e) {
|
|
1277
1277
|
return e !== null ? e : {};
|
|
1278
1278
|
}
|
|
1279
|
-
}),
|
|
1279
|
+
}), on = new tn({
|
|
1280
1280
|
explicit: [
|
|
1281
|
+
nn,
|
|
1281
1282
|
rn,
|
|
1282
|
-
an
|
|
1283
|
-
on
|
|
1283
|
+
an
|
|
1284
1284
|
]
|
|
1285
1285
|
});
|
|
1286
|
-
function
|
|
1286
|
+
function Fr(e) {
|
|
1287
1287
|
if (e === null) return !0;
|
|
1288
1288
|
var t = e.length;
|
|
1289
1289
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1290
1290
|
}
|
|
1291
|
-
function
|
|
1291
|
+
function Er() {
|
|
1292
1292
|
return null;
|
|
1293
1293
|
}
|
|
1294
|
-
function
|
|
1294
|
+
function Or(e) {
|
|
1295
1295
|
return e === null;
|
|
1296
1296
|
}
|
|
1297
|
-
var
|
|
1297
|
+
var ln = new te("tag:yaml.org,2002:null", {
|
|
1298
1298
|
kind: "scalar",
|
|
1299
|
-
resolve:
|
|
1300
|
-
construct:
|
|
1301
|
-
predicate:
|
|
1299
|
+
resolve: Fr,
|
|
1300
|
+
construct: Er,
|
|
1301
|
+
predicate: Or,
|
|
1302
1302
|
represent: {
|
|
1303
1303
|
canonical: function() {
|
|
1304
1304
|
return "~";
|
|
@@ -1318,7 +1318,7 @@ var sn = new te("tag:yaml.org,2002:null", {
|
|
|
1318
1318
|
},
|
|
1319
1319
|
defaultStyle: "lowercase"
|
|
1320
1320
|
});
|
|
1321
|
-
function
|
|
1321
|
+
function Lr(e) {
|
|
1322
1322
|
if (e === null) return !1;
|
|
1323
1323
|
var t = e.length;
|
|
1324
1324
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
@@ -1326,14 +1326,14 @@ function Br(e) {
|
|
|
1326
1326
|
function Rr(e) {
|
|
1327
1327
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function Br(e) {
|
|
1330
1330
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1331
1331
|
}
|
|
1332
|
-
var
|
|
1332
|
+
var sn = new te("tag:yaml.org,2002:bool", {
|
|
1333
1333
|
kind: "scalar",
|
|
1334
|
-
resolve:
|
|
1334
|
+
resolve: Lr,
|
|
1335
1335
|
construct: Rr,
|
|
1336
|
-
predicate:
|
|
1336
|
+
predicate: Br,
|
|
1337
1337
|
represent: {
|
|
1338
1338
|
lowercase: function(e) {
|
|
1339
1339
|
return e ? "true" : "false";
|
|
@@ -1347,16 +1347,16 @@ var cn = new te("tag:yaml.org,2002:bool", {
|
|
|
1347
1347
|
},
|
|
1348
1348
|
defaultStyle: "lowercase"
|
|
1349
1349
|
});
|
|
1350
|
-
function
|
|
1350
|
+
function Kr(e) {
|
|
1351
1351
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Nr(e) {
|
|
1354
1354
|
return 48 <= e && e <= 55;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Mr(e) {
|
|
1357
1357
|
return 48 <= e && e <= 57;
|
|
1358
1358
|
}
|
|
1359
|
-
function
|
|
1359
|
+
function jr(e) {
|
|
1360
1360
|
if (e === null) return !1;
|
|
1361
1361
|
var t = e.length, n = 0, i = !1, r;
|
|
1362
1362
|
if (!t) return !1;
|
|
@@ -1373,7 +1373,7 @@ function Dr(e) {
|
|
|
1373
1373
|
if (r === "x") {
|
|
1374
1374
|
for (n++; n < t; n++)
|
|
1375
1375
|
if (r = e[n], r !== "_") {
|
|
1376
|
-
if (!
|
|
1376
|
+
if (!Kr(e.charCodeAt(n))) return !1;
|
|
1377
1377
|
i = !0;
|
|
1378
1378
|
}
|
|
1379
1379
|
return i && r !== "_";
|
|
@@ -1381,7 +1381,7 @@ function Dr(e) {
|
|
|
1381
1381
|
if (r === "o") {
|
|
1382
1382
|
for (n++; n < t; n++)
|
|
1383
1383
|
if (r = e[n], r !== "_") {
|
|
1384
|
-
if (!
|
|
1384
|
+
if (!Nr(e.charCodeAt(n))) return !1;
|
|
1385
1385
|
i = !0;
|
|
1386
1386
|
}
|
|
1387
1387
|
return i && r !== "_";
|
|
@@ -1390,13 +1390,13 @@ function Dr(e) {
|
|
|
1390
1390
|
if (r === "_") return !1;
|
|
1391
1391
|
for (; n < t; n++)
|
|
1392
1392
|
if (r = e[n], r !== "_") {
|
|
1393
|
-
if (!
|
|
1393
|
+
if (!Mr(e.charCodeAt(n)))
|
|
1394
1394
|
return !1;
|
|
1395
1395
|
i = !0;
|
|
1396
1396
|
}
|
|
1397
1397
|
return !(!i || r === "_");
|
|
1398
1398
|
}
|
|
1399
|
-
function
|
|
1399
|
+
function Dr(e) {
|
|
1400
1400
|
var t = e, n = 1, i;
|
|
1401
1401
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), i = t[0], (i === "-" || i === "+") && (i === "-" && (n = -1), t = t.slice(1), i = t[0]), t === "0") return 0;
|
|
1402
1402
|
if (i === "0") {
|
|
@@ -1406,14 +1406,14 @@ function Pr(e) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
return n * parseInt(t, 10);
|
|
1408
1408
|
}
|
|
1409
|
-
function
|
|
1409
|
+
function Pr(e) {
|
|
1410
1410
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !z.isNegativeZero(e);
|
|
1411
1411
|
}
|
|
1412
|
-
var
|
|
1412
|
+
var cn = new te("tag:yaml.org,2002:int", {
|
|
1413
1413
|
kind: "scalar",
|
|
1414
|
-
resolve:
|
|
1415
|
-
construct:
|
|
1416
|
-
predicate:
|
|
1414
|
+
resolve: jr,
|
|
1415
|
+
construct: Dr,
|
|
1416
|
+
predicate: Pr,
|
|
1417
1417
|
represent: {
|
|
1418
1418
|
binary: function(e) {
|
|
1419
1419
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1436,21 +1436,21 @@ var un = new te("tag:yaml.org,2002:int", {
|
|
|
1436
1436
|
decimal: [10, "dec"],
|
|
1437
1437
|
hexadecimal: [16, "hex"]
|
|
1438
1438
|
}
|
|
1439
|
-
}),
|
|
1439
|
+
}), Ur = new RegExp(
|
|
1440
1440
|
// 2.5e4, 2.5 and integers
|
|
1441
1441
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1442
1442
|
);
|
|
1443
|
-
function
|
|
1444
|
-
return !(e === null || !
|
|
1443
|
+
function qr(e) {
|
|
1444
|
+
return !(e === null || !Ur.test(e) || // Quick hack to not allow integers end with `_`
|
|
1445
1445
|
// Probably should update regexp & check speed
|
|
1446
1446
|
e[e.length - 1] === "_");
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function Hr(e) {
|
|
1449
1449
|
var t, n;
|
|
1450
1450
|
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);
|
|
1451
1451
|
}
|
|
1452
|
-
var
|
|
1453
|
-
function
|
|
1452
|
+
var Vr = /^[-+]?[0-9]+e/;
|
|
1453
|
+
function Yr(e, t) {
|
|
1454
1454
|
var n;
|
|
1455
1455
|
if (isNaN(e))
|
|
1456
1456
|
switch (t) {
|
|
@@ -1481,36 +1481,36 @@ function Wr(e, t) {
|
|
|
1481
1481
|
}
|
|
1482
1482
|
else if (z.isNegativeZero(e))
|
|
1483
1483
|
return "-0.0";
|
|
1484
|
-
return n = e.toString(10),
|
|
1484
|
+
return n = e.toString(10), Vr.test(n) ? n.replace("e", ".e") : n;
|
|
1485
1485
|
}
|
|
1486
|
-
function
|
|
1486
|
+
function Wr(e) {
|
|
1487
1487
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || z.isNegativeZero(e));
|
|
1488
1488
|
}
|
|
1489
|
-
var
|
|
1489
|
+
var un = new te("tag:yaml.org,2002:float", {
|
|
1490
1490
|
kind: "scalar",
|
|
1491
|
-
resolve:
|
|
1492
|
-
construct:
|
|
1493
|
-
predicate:
|
|
1494
|
-
represent:
|
|
1491
|
+
resolve: qr,
|
|
1492
|
+
construct: Hr,
|
|
1493
|
+
predicate: Wr,
|
|
1494
|
+
represent: Yr,
|
|
1495
1495
|
defaultStyle: "lowercase"
|
|
1496
|
-
}),
|
|
1496
|
+
}), dn = on.extend({
|
|
1497
1497
|
implicit: [
|
|
1498
|
+
ln,
|
|
1498
1499
|
sn,
|
|
1499
1500
|
cn,
|
|
1500
|
-
un
|
|
1501
|
-
dn
|
|
1501
|
+
un
|
|
1502
1502
|
]
|
|
1503
|
-
}),
|
|
1503
|
+
}), fn = dn, pn = new RegExp(
|
|
1504
1504
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1505
|
-
),
|
|
1505
|
+
), mn = new RegExp(
|
|
1506
1506
|
"^([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]))?))?$"
|
|
1507
1507
|
);
|
|
1508
|
-
function
|
|
1509
|
-
return e === null ? !1 :
|
|
1508
|
+
function Jr(e) {
|
|
1509
|
+
return e === null ? !1 : pn.exec(e) !== null || mn.exec(e) !== null;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function Gr(e) {
|
|
1512
1512
|
var t, n, i, r, o, a, l, s = 0, c = null, d, u, g;
|
|
1513
|
-
if (t =
|
|
1513
|
+
if (t = pn.exec(e), t === null && (t = mn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1514
1514
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1515
1515
|
return new Date(Date.UTC(n, i, r));
|
|
1516
1516
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1520,27 +1520,27 @@ function zr(e) {
|
|
|
1520
1520
|
}
|
|
1521
1521
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), g = new Date(Date.UTC(n, i, r, o, a, l, s)), c && g.setTime(g.getTime() - c), g;
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function zr(e) {
|
|
1524
1524
|
return e.toISOString();
|
|
1525
1525
|
}
|
|
1526
|
-
var
|
|
1526
|
+
var hn = new te("tag:yaml.org,2002:timestamp", {
|
|
1527
1527
|
kind: "scalar",
|
|
1528
|
-
resolve:
|
|
1529
|
-
construct:
|
|
1528
|
+
resolve: Jr,
|
|
1529
|
+
construct: Gr,
|
|
1530
1530
|
instanceOf: Date,
|
|
1531
|
-
represent:
|
|
1531
|
+
represent: zr
|
|
1532
1532
|
});
|
|
1533
|
-
function
|
|
1533
|
+
function Qr(e) {
|
|
1534
1534
|
return e === "<<" || e === null;
|
|
1535
1535
|
}
|
|
1536
|
-
var
|
|
1536
|
+
var gn = new te("tag:yaml.org,2002:merge", {
|
|
1537
1537
|
kind: "scalar",
|
|
1538
|
-
resolve:
|
|
1539
|
-
}),
|
|
1538
|
+
resolve: Qr
|
|
1539
|
+
}), rt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1540
1540
|
\r`;
|
|
1541
|
-
function
|
|
1541
|
+
function Zr(e) {
|
|
1542
1542
|
if (e === null) return !1;
|
|
1543
|
-
var t, n, i = 0, r = e.length, o =
|
|
1543
|
+
var t, n, i = 0, r = e.length, o = rt;
|
|
1544
1544
|
for (n = 0; n < r; n++)
|
|
1545
1545
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1546
1546
|
if (t < 0) return !1;
|
|
@@ -1548,35 +1548,35 @@ function Xr(e) {
|
|
|
1548
1548
|
}
|
|
1549
1549
|
return i % 8 === 0;
|
|
1550
1550
|
}
|
|
1551
|
-
function
|
|
1552
|
-
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o =
|
|
1551
|
+
function Xr(e) {
|
|
1552
|
+
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = rt, a = 0, l = [];
|
|
1553
1553
|
for (t = 0; t < r; t++)
|
|
1554
1554
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1555
1555
|
return n = r % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1558
|
-
var t = "", n = 0, i, r, o = e.length, a =
|
|
1557
|
+
function ea(e) {
|
|
1558
|
+
var t = "", n = 0, i, r, o = e.length, a = rt;
|
|
1559
1559
|
for (i = 0; i < o; i++)
|
|
1560
1560
|
i % 3 === 0 && i && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[i];
|
|
1561
1561
|
return r = o % 3, r === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : r === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : r === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
1562
1562
|
}
|
|
1563
|
-
function
|
|
1563
|
+
function ta(e) {
|
|
1564
1564
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1565
1565
|
}
|
|
1566
|
-
var
|
|
1566
|
+
var yn = new te("tag:yaml.org,2002:binary", {
|
|
1567
1567
|
kind: "scalar",
|
|
1568
|
-
resolve:
|
|
1569
|
-
construct:
|
|
1570
|
-
predicate:
|
|
1571
|
-
represent:
|
|
1572
|
-
}),
|
|
1573
|
-
function
|
|
1568
|
+
resolve: Zr,
|
|
1569
|
+
construct: Xr,
|
|
1570
|
+
predicate: ta,
|
|
1571
|
+
represent: ea
|
|
1572
|
+
}), na = Object.prototype.hasOwnProperty, ia = Object.prototype.toString;
|
|
1573
|
+
function ra(e) {
|
|
1574
1574
|
if (e === null) return !0;
|
|
1575
1575
|
var t = [], n, i, r, o, a, l = e;
|
|
1576
1576
|
for (n = 0, i = l.length; n < i; n += 1) {
|
|
1577
|
-
if (r = l[n], a = !1,
|
|
1577
|
+
if (r = l[n], a = !1, ia.call(r) !== "[object Object]") return !1;
|
|
1578
1578
|
for (o in r)
|
|
1579
|
-
if (
|
|
1579
|
+
if (na.call(r, o))
|
|
1580
1580
|
if (!a) a = !0;
|
|
1581
1581
|
else return !1;
|
|
1582
1582
|
if (!a) return !1;
|
|
@@ -1585,63 +1585,63 @@ function aa(e) {
|
|
|
1585
1585
|
}
|
|
1586
1586
|
return !0;
|
|
1587
1587
|
}
|
|
1588
|
-
function
|
|
1588
|
+
function aa(e) {
|
|
1589
1589
|
return e !== null ? e : [];
|
|
1590
1590
|
}
|
|
1591
|
-
var
|
|
1591
|
+
var vn = new te("tag:yaml.org,2002:omap", {
|
|
1592
1592
|
kind: "sequence",
|
|
1593
|
-
resolve:
|
|
1594
|
-
construct:
|
|
1595
|
-
}),
|
|
1596
|
-
function
|
|
1593
|
+
resolve: ra,
|
|
1594
|
+
construct: aa
|
|
1595
|
+
}), oa = Object.prototype.toString;
|
|
1596
|
+
function la(e) {
|
|
1597
1597
|
if (e === null) return !0;
|
|
1598
1598
|
var t, n, i, r, o, a = e;
|
|
1599
1599
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1600
|
-
if (i = a[t],
|
|
1600
|
+
if (i = a[t], oa.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1601
1601
|
o[t] = [r[0], i[r[0]]];
|
|
1602
1602
|
}
|
|
1603
1603
|
return !0;
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function sa(e) {
|
|
1606
1606
|
if (e === null) return [];
|
|
1607
1607
|
var t, n, i, r, o, a = e;
|
|
1608
1608
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
1609
1609
|
i = a[t], r = Object.keys(i), o[t] = [r[0], i[r[0]]];
|
|
1610
1610
|
return o;
|
|
1611
1611
|
}
|
|
1612
|
-
var
|
|
1612
|
+
var bn = new te("tag:yaml.org,2002:pairs", {
|
|
1613
1613
|
kind: "sequence",
|
|
1614
|
-
resolve:
|
|
1615
|
-
construct:
|
|
1616
|
-
}),
|
|
1617
|
-
function
|
|
1614
|
+
resolve: la,
|
|
1615
|
+
construct: sa
|
|
1616
|
+
}), ca = Object.prototype.hasOwnProperty;
|
|
1617
|
+
function ua(e) {
|
|
1618
1618
|
if (e === null) return !0;
|
|
1619
1619
|
var t, n = e;
|
|
1620
1620
|
for (t in n)
|
|
1621
|
-
if (
|
|
1621
|
+
if (ca.call(n, t) && n[t] !== null)
|
|
1622
1622
|
return !1;
|
|
1623
1623
|
return !0;
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function da(e) {
|
|
1626
1626
|
return e !== null ? e : {};
|
|
1627
1627
|
}
|
|
1628
|
-
var
|
|
1628
|
+
var xn = new te("tag:yaml.org,2002:set", {
|
|
1629
1629
|
kind: "mapping",
|
|
1630
|
-
resolve:
|
|
1631
|
-
construct:
|
|
1632
|
-
}),
|
|
1630
|
+
resolve: ua,
|
|
1631
|
+
construct: da
|
|
1632
|
+
}), at = fn.extend({
|
|
1633
1633
|
implicit: [
|
|
1634
|
-
|
|
1635
|
-
|
|
1634
|
+
hn,
|
|
1635
|
+
gn
|
|
1636
1636
|
],
|
|
1637
1637
|
explicit: [
|
|
1638
|
+
yn,
|
|
1638
1639
|
vn,
|
|
1639
1640
|
bn,
|
|
1640
|
-
xn
|
|
1641
|
-
Cn
|
|
1641
|
+
xn
|
|
1642
1642
|
]
|
|
1643
|
-
}), ge = Object.prototype.hasOwnProperty, Re = 1,
|
|
1644
|
-
function
|
|
1643
|
+
}), ge = Object.prototype.hasOwnProperty, Re = 1, Cn = 2, kn = 3, Be = 4, We = 1, fa = 2, kt = 3, pa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, ma = /[\x85\u2028\u2029]/, ha = /[,\[\]\{\}]/, An = /^(?:!|!!|![a-z\-]+!)$/i, _n = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1644
|
+
function At(e) {
|
|
1645
1645
|
return Object.prototype.toString.call(e);
|
|
1646
1646
|
}
|
|
1647
1647
|
function ue(e) {
|
|
@@ -1656,33 +1656,33 @@ function ae(e) {
|
|
|
1656
1656
|
function Ae(e) {
|
|
1657
1657
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1658
1658
|
}
|
|
1659
|
-
function
|
|
1659
|
+
function ga(e) {
|
|
1660
1660
|
var t;
|
|
1661
1661
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1662
1662
|
}
|
|
1663
|
-
function
|
|
1663
|
+
function ya(e) {
|
|
1664
1664
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1665
1665
|
}
|
|
1666
|
-
function
|
|
1666
|
+
function va(e) {
|
|
1667
1667
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1668
1668
|
}
|
|
1669
|
-
function
|
|
1669
|
+
function _t(e) {
|
|
1670
1670
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1671
1671
|
` : 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" : "";
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function ba(e) {
|
|
1674
1674
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1675
1675
|
(e - 65536 >> 10) + 55296,
|
|
1676
1676
|
(e - 65536 & 1023) + 56320
|
|
1677
1677
|
);
|
|
1678
1678
|
}
|
|
1679
|
-
var
|
|
1679
|
+
var wn = new Array(256), Sn = new Array(256);
|
|
1680
1680
|
for (var Ce = 0; Ce < 256; Ce++)
|
|
1681
|
-
|
|
1682
|
-
function
|
|
1683
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1681
|
+
wn[Ce] = _t(Ce) ? 1 : 0, Sn[Ce] = _t(Ce);
|
|
1682
|
+
function xa(e, t) {
|
|
1683
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || at, 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 = [];
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function $n(e, t) {
|
|
1686
1686
|
var n = {
|
|
1687
1687
|
name: e.filename,
|
|
1688
1688
|
buffer: e.input.slice(0, -1),
|
|
@@ -1691,22 +1691,22 @@ function Tn(e, t) {
|
|
|
1691
1691
|
line: e.line,
|
|
1692
1692
|
column: e.position - e.lineStart
|
|
1693
1693
|
};
|
|
1694
|
-
return n.snippet =
|
|
1694
|
+
return n.snippet = _r(n), new re(t, n);
|
|
1695
1695
|
}
|
|
1696
1696
|
function T(e, t) {
|
|
1697
|
-
throw
|
|
1697
|
+
throw $n(e, t);
|
|
1698
1698
|
}
|
|
1699
|
-
function
|
|
1700
|
-
e.onWarning && e.onWarning.call(null,
|
|
1699
|
+
function Ke(e, t) {
|
|
1700
|
+
e.onWarning && e.onWarning.call(null, $n(e, t));
|
|
1701
1701
|
}
|
|
1702
|
-
var
|
|
1702
|
+
var wt = {
|
|
1703
1703
|
YAML: function(t, n, i) {
|
|
1704
1704
|
var r, o, a;
|
|
1705
|
-
t.version !== null && T(t, "duplication of %YAML directive"), i.length !== 1 && T(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && T(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && T(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 &&
|
|
1705
|
+
t.version !== null && T(t, "duplication of %YAML directive"), i.length !== 1 && T(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && T(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && T(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Ke(t, "unsupported YAML version of the document");
|
|
1706
1706
|
},
|
|
1707
1707
|
TAG: function(t, n, i) {
|
|
1708
1708
|
var r, o;
|
|
1709
|
-
i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1],
|
|
1709
|
+
i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], An.test(r) || T(t, "ill-formed tag handle (first argument) of the TAG directive"), ge.call(t.tagMap, r) && T(t, 'there is a previously declared suffix for "' + r + '" tag handle'), _n.test(o) || T(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1710
1710
|
try {
|
|
1711
1711
|
o = decodeURIComponent(o);
|
|
1712
1712
|
} catch {
|
|
@@ -1721,11 +1721,11 @@ function he(e, t, n, i) {
|
|
|
1721
1721
|
if (l = e.input.slice(t, n), i)
|
|
1722
1722
|
for (r = 0, o = l.length; r < o; r += 1)
|
|
1723
1723
|
a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || T(e, "expected valid JSON character");
|
|
1724
|
-
else
|
|
1724
|
+
else pa.test(l) && T(e, "the stream contains non-printable characters");
|
|
1725
1725
|
e.result += l;
|
|
1726
1726
|
}
|
|
1727
1727
|
}
|
|
1728
|
-
function
|
|
1728
|
+
function St(e, t, n, i) {
|
|
1729
1729
|
var r, o, a, l;
|
|
1730
1730
|
for (z.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
|
|
1731
1731
|
o = r[a], ge.call(t, o) || (t[o] = n[o], i[o] = !0);
|
|
@@ -1734,13 +1734,13 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1734
1734
|
var c, d;
|
|
1735
1735
|
if (Array.isArray(r))
|
|
1736
1736
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
1737
|
-
Array.isArray(r[c]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" &&
|
|
1738
|
-
if (typeof r == "object" &&
|
|
1737
|
+
Array.isArray(r[c]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" && At(r[c]) === "[object Object]" && (r[c] = "[object Object]");
|
|
1738
|
+
if (typeof r == "object" && At(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1739
1739
|
if (Array.isArray(o))
|
|
1740
1740
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
1741
|
-
|
|
1741
|
+
St(e, t, o[c], n);
|
|
1742
1742
|
else
|
|
1743
|
-
|
|
1743
|
+
St(e, t, o, n);
|
|
1744
1744
|
else
|
|
1745
1745
|
!e.json && !ge.call(n, r) && ge.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, T(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(t, r, {
|
|
1746
1746
|
configurable: !0,
|
|
@@ -1750,7 +1750,7 @@ function _e(e, t, n, i, r, o, a, l, s) {
|
|
|
1750
1750
|
}) : t[r] = o, delete n[r];
|
|
1751
1751
|
return t;
|
|
1752
1752
|
}
|
|
1753
|
-
function
|
|
1753
|
+
function ot(e) {
|
|
1754
1754
|
var t;
|
|
1755
1755
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1756
1756
|
}
|
|
@@ -1763,22 +1763,22 @@ function J(e, t, n) {
|
|
|
1763
1763
|
r = e.input.charCodeAt(++e.position);
|
|
1764
1764
|
while (r !== 10 && r !== 13 && r !== 0);
|
|
1765
1765
|
if (ue(r))
|
|
1766
|
-
for (
|
|
1766
|
+
for (ot(e), r = e.input.charCodeAt(e.position), i++, e.lineIndent = 0; r === 32; )
|
|
1767
1767
|
e.lineIndent++, r = e.input.charCodeAt(++e.position);
|
|
1768
1768
|
else
|
|
1769
1769
|
break;
|
|
1770
1770
|
}
|
|
1771
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
1771
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Ke(e, "deficient indentation"), i;
|
|
1772
1772
|
}
|
|
1773
|
-
function
|
|
1773
|
+
function qe(e) {
|
|
1774
1774
|
var t = e.position, n;
|
|
1775
1775
|
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 || ae(n)));
|
|
1776
1776
|
}
|
|
1777
|
-
function
|
|
1777
|
+
function lt(e, t) {
|
|
1778
1778
|
t === 1 ? e.result += " " : t > 1 && (e.result += z.repeat(`
|
|
1779
1779
|
`, t - 1));
|
|
1780
1780
|
}
|
|
1781
|
-
function
|
|
1781
|
+
function Ca(e, t, n) {
|
|
1782
1782
|
var i, r, o, a, l, s, c, d, u = e.kind, g = e.result, p;
|
|
1783
1783
|
if (p = e.input.charCodeAt(e.position), ae(p) || Ae(p) || p === 35 || p === 38 || p === 42 || p === 33 || p === 124 || p === 62 || p === 39 || p === 34 || p === 37 || p === 64 || p === 96 || (p === 63 || p === 45) && (r = e.input.charCodeAt(e.position + 1), ae(r) || n && Ae(r)))
|
|
1784
1784
|
return !1;
|
|
@@ -1790,7 +1790,7 @@ function ka(e, t, n) {
|
|
|
1790
1790
|
if (i = e.input.charCodeAt(e.position - 1), ae(i))
|
|
1791
1791
|
break;
|
|
1792
1792
|
} else {
|
|
1793
|
-
if (e.position === e.lineStart &&
|
|
1793
|
+
if (e.position === e.lineStart && qe(e) || n && Ae(p))
|
|
1794
1794
|
break;
|
|
1795
1795
|
if (ue(p))
|
|
1796
1796
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, J(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1801,11 +1801,11 @@ function ka(e, t, n) {
|
|
|
1801
1801
|
break;
|
|
1802
1802
|
}
|
|
1803
1803
|
}
|
|
1804
|
-
l && (he(e, o, a, !1),
|
|
1804
|
+
l && (he(e, o, a, !1), lt(e, e.line - s), o = a = e.position, l = !1), ye(p) || (a = e.position + 1), p = e.input.charCodeAt(++e.position);
|
|
1805
1805
|
}
|
|
1806
1806
|
return he(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function ka(e, t) {
|
|
1809
1809
|
var n, i, r;
|
|
1810
1810
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1811
1811
|
return !1;
|
|
@@ -1815,10 +1815,10 @@ function Aa(e, t) {
|
|
|
1815
1815
|
i = e.position, e.position++, r = e.position;
|
|
1816
1816
|
else
|
|
1817
1817
|
return !0;
|
|
1818
|
-
else ue(n) ? (he(e, i, r, !0),
|
|
1818
|
+
else ue(n) ? (he(e, i, r, !0), lt(e, J(e, !1, t)), i = r = e.position) : e.position === e.lineStart && qe(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1819
1819
|
T(e, "unexpected end of the stream within a single quoted scalar");
|
|
1820
1820
|
}
|
|
1821
|
-
function
|
|
1821
|
+
function Aa(e, t) {
|
|
1822
1822
|
var n, i, r, o, a, l;
|
|
1823
1823
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1824
1824
|
return !1;
|
|
@@ -1828,20 +1828,20 @@ function _a(e, t) {
|
|
|
1828
1828
|
if (l === 92) {
|
|
1829
1829
|
if (he(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ue(l))
|
|
1830
1830
|
J(e, !1, t);
|
|
1831
|
-
else if (l < 256 &&
|
|
1832
|
-
e.result +=
|
|
1833
|
-
else if ((a =
|
|
1831
|
+
else if (l < 256 && wn[l])
|
|
1832
|
+
e.result += Sn[l], e.position++;
|
|
1833
|
+
else if ((a = ya(l)) > 0) {
|
|
1834
1834
|
for (r = a, o = 0; r > 0; r--)
|
|
1835
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1836
|
-
e.result +=
|
|
1835
|
+
l = e.input.charCodeAt(++e.position), (a = ga(l)) >= 0 ? o = (o << 4) + a : T(e, "expected hexadecimal character");
|
|
1836
|
+
e.result += ba(o), e.position++;
|
|
1837
1837
|
} else
|
|
1838
1838
|
T(e, "unknown escape sequence");
|
|
1839
1839
|
n = i = e.position;
|
|
1840
|
-
} else ue(l) ? (he(e, n, i, !0),
|
|
1840
|
+
} else ue(l) ? (he(e, n, i, !0), lt(e, J(e, !1, t)), n = i = e.position) : e.position === e.lineStart && qe(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1841
1841
|
}
|
|
1842
1842
|
T(e, "unexpected end of the stream within a double quoted scalar");
|
|
1843
1843
|
}
|
|
1844
|
-
function
|
|
1844
|
+
function _a(e, t) {
|
|
1845
1845
|
var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, g, p, y = /* @__PURE__ */ Object.create(null), C, b, w, x;
|
|
1846
1846
|
if (x = e.input.charCodeAt(e.position), x === 91)
|
|
1847
1847
|
d = 93, p = !1, l = [];
|
|
@@ -1856,8 +1856,8 @@ function wa(e, t) {
|
|
|
1856
1856
|
}
|
|
1857
1857
|
T(e, "unexpected end of the stream within a flow collection");
|
|
1858
1858
|
}
|
|
1859
|
-
function
|
|
1860
|
-
var n, i, r =
|
|
1859
|
+
function wa(e, t) {
|
|
1860
|
+
var n, i, r = We, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
1861
1861
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1862
1862
|
i = !1;
|
|
1863
1863
|
else if (u === 62)
|
|
@@ -1866,8 +1866,8 @@ function Sa(e, t) {
|
|
|
1866
1866
|
return !1;
|
|
1867
1867
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1868
1868
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1869
|
-
|
|
1870
|
-
else if ((d =
|
|
1869
|
+
We === r ? r = u === 43 ? kt : fa : T(e, "repeat of a chomping mode identifier");
|
|
1870
|
+
else if ((d = va(u)) >= 0)
|
|
1871
1871
|
d === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? T(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
1872
1872
|
else
|
|
1873
1873
|
break;
|
|
@@ -1881,15 +1881,15 @@ function Sa(e, t) {
|
|
|
1881
1881
|
while (!ue(u) && u !== 0);
|
|
1882
1882
|
}
|
|
1883
1883
|
for (; u !== 0; ) {
|
|
1884
|
-
for (
|
|
1884
|
+
for (ot(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1885
1885
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1886
1886
|
if (!a && e.lineIndent > l && (l = e.lineIndent), ue(u)) {
|
|
1887
1887
|
s++;
|
|
1888
1888
|
continue;
|
|
1889
1889
|
}
|
|
1890
1890
|
if (e.lineIndent < l) {
|
|
1891
|
-
r ===
|
|
1892
|
-
`, o ? 1 + s : s) : r ===
|
|
1891
|
+
r === kt ? e.result += z.repeat(`
|
|
1892
|
+
`, o ? 1 + s : s) : r === We && o && (e.result += `
|
|
1893
1893
|
`);
|
|
1894
1894
|
break;
|
|
1895
1895
|
}
|
|
@@ -1903,7 +1903,7 @@ function Sa(e, t) {
|
|
|
1903
1903
|
}
|
|
1904
1904
|
return !0;
|
|
1905
1905
|
}
|
|
1906
|
-
function
|
|
1906
|
+
function $t(e, t) {
|
|
1907
1907
|
var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
|
|
1908
1908
|
if (e.firstTabInLine !== -1) return !1;
|
|
1909
1909
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ae(a)))); ) {
|
|
@@ -1911,21 +1911,21 @@ function Tt(e, t) {
|
|
|
1911
1911
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1912
1912
|
continue;
|
|
1913
1913
|
}
|
|
1914
|
-
if (n = e.line, Se(e, t,
|
|
1914
|
+
if (n = e.line, Se(e, t, kn, !1, !0), o.push(e.result), J(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1915
1915
|
T(e, "bad indentation of a sequence entry");
|
|
1916
1916
|
else if (e.lineIndent < t)
|
|
1917
1917
|
break;
|
|
1918
1918
|
}
|
|
1919
1919
|
return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function Sa(e, t, n) {
|
|
1922
1922
|
var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), p = null, y = null, C = null, b = !1, w = !1, x;
|
|
1923
1923
|
if (e.firstTabInLine !== -1) return !1;
|
|
1924
1924
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
|
|
1925
1925
|
if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && ae(i))
|
|
1926
1926
|
x === 63 ? (b && (_e(e, u, g, p, y, null, a, l, s), p = y = C = null), w = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
|
|
1927
1927
|
else {
|
|
1928
|
-
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n,
|
|
1928
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Se(e, n, Cn, !1, !0))
|
|
1929
1929
|
break;
|
|
1930
1930
|
if (e.line === o) {
|
|
1931
1931
|
for (x = e.input.charCodeAt(e.position); ye(x); )
|
|
@@ -1941,14 +1941,14 @@ function $a(e, t, n) {
|
|
|
1941
1941
|
else
|
|
1942
1942
|
return e.tag = c, e.anchor = d, !0;
|
|
1943
1943
|
}
|
|
1944
|
-
if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Se(e, t,
|
|
1944
|
+
if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Se(e, t, Be, !0, r) && (b ? y = e.result : C = e.result), b || (_e(e, u, g, p, y, C, a, l, s), p = y = C = null), J(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
|
|
1945
1945
|
T(e, "bad indentation of a mapping entry");
|
|
1946
1946
|
else if (e.lineIndent < t)
|
|
1947
1947
|
break;
|
|
1948
1948
|
}
|
|
1949
1949
|
return b && _e(e, u, g, p, y, null, a, l, s), w && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), w;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function $a(e) {
|
|
1952
1952
|
var t, n = !1, i = !1, r, o, a;
|
|
1953
1953
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1954
1954
|
if (e.tag !== null && T(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
|
|
@@ -1958,10 +1958,10 @@ function Ta(e) {
|
|
|
1958
1958
|
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
|
|
1959
1959
|
} else {
|
|
1960
1960
|
for (; a !== 0 && !ae(a); )
|
|
1961
|
-
a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1),
|
|
1962
|
-
o = e.input.slice(t, e.position),
|
|
1961
|
+
a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), An.test(r) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1962
|
+
o = e.input.slice(t, e.position), ha.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
|
|
1963
1963
|
}
|
|
1964
|
-
o && !
|
|
1964
|
+
o && !_n.test(o) && T(e, "tag name cannot contain such characters: " + o);
|
|
1965
1965
|
try {
|
|
1966
1966
|
o = decodeURIComponent(o);
|
|
1967
1967
|
} catch {
|
|
@@ -1969,14 +1969,14 @@ function Ta(e) {
|
|
|
1969
1969
|
}
|
|
1970
1970
|
return n ? e.tag = o : ge.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1971
1971
|
}
|
|
1972
|
-
function
|
|
1972
|
+
function Ta(e) {
|
|
1973
1973
|
var t, n;
|
|
1974
1974
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1975
1975
|
for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ae(n) && !Ae(n); )
|
|
1976
1976
|
n = e.input.charCodeAt(++e.position);
|
|
1977
1977
|
return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1978
1978
|
}
|
|
1979
|
-
function
|
|
1979
|
+
function Ia(e) {
|
|
1980
1980
|
var t, n, i;
|
|
1981
1981
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
1982
1982
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !ae(i) && !Ae(i); )
|
|
@@ -1985,10 +1985,10 @@ function Fa(e) {
|
|
|
1985
1985
|
}
|
|
1986
1986
|
function Se(e, t, n, i, r) {
|
|
1987
1987
|
var o, a, l, s = 1, c = !1, d = !1, u, g, p, y, C, b;
|
|
1988
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l =
|
|
1989
|
-
for (;
|
|
1988
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Be === n || kn === n, i && J(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1989
|
+
for (; $a(e) || Ta(e); )
|
|
1990
1990
|
J(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1991
|
-
if (l && (l = c || r), (s === 1 ||
|
|
1991
|
+
if (l && (l = c || r), (s === 1 || Be === n) && (Re === n || Cn === n ? C = t : C = t + 1, b = e.position - e.lineStart, s === 1 ? l && ($t(e, b) || Sa(e, b, C)) || _a(e, C) ? d = !0 : (a && wa(e, C) || ka(e, C) || Aa(e, C) ? d = !0 : Ia(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ca(e, C, Re === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && $t(e, b))), e.tag === null)
|
|
1992
1992
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1993
1993
|
else if (e.tag === "?") {
|
|
1994
1994
|
for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2009,7 +2009,7 @@ function Se(e, t, n, i, r) {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2011
2011
|
}
|
|
2012
|
-
function
|
|
2012
|
+
function Fa(e) {
|
|
2013
2013
|
var t = e.position, n, i, r, o = !1, a;
|
|
2014
2014
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (J(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2015
2015
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ae(a); )
|
|
@@ -2028,9 +2028,9 @@ function Ea(e) {
|
|
|
2028
2028
|
a = e.input.charCodeAt(++e.position);
|
|
2029
2029
|
r.push(e.input.slice(n, e.position));
|
|
2030
2030
|
}
|
|
2031
|
-
a !== 0 &&
|
|
2031
|
+
a !== 0 && ot(e), ge.call(wt, i) ? wt[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
|
|
2032
2032
|
}
|
|
2033
|
-
if (J(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, J(e, !0, -1)) : o && T(e, "directives end mark is expected"), Se(e, e.lineIndent - 1,
|
|
2033
|
+
if (J(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, J(e, !0, -1)) : o && T(e, "directives end mark is expected"), Se(e, e.lineIndent - 1, Be, !1, !0), J(e, !0, -1), e.checkLineBreaks && ma.test(e.input.slice(t, e.position)) && Ke(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && qe(e)) {
|
|
2034
2034
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, J(e, !0, -1));
|
|
2035
2035
|
return;
|
|
2036
2036
|
}
|
|
@@ -2039,36 +2039,36 @@ function Ea(e) {
|
|
|
2039
2039
|
else
|
|
2040
2040
|
return;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Tn(e, t) {
|
|
2043
2043
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2044
2044
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2045
|
-
var n = new
|
|
2045
|
+
var n = new xa(e, t), i = e.indexOf("\0");
|
|
2046
2046
|
for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2047
2047
|
n.lineIndent += 1, n.position += 1;
|
|
2048
2048
|
for (; n.position < n.length - 1; )
|
|
2049
|
-
|
|
2049
|
+
Fa(n);
|
|
2050
2050
|
return n.documents;
|
|
2051
2051
|
}
|
|
2052
|
-
function
|
|
2052
|
+
function Ea(e, t, n) {
|
|
2053
2053
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2054
|
-
var i =
|
|
2054
|
+
var i = Tn(e, n);
|
|
2055
2055
|
if (typeof t != "function")
|
|
2056
2056
|
return i;
|
|
2057
2057
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2058
2058
|
t(i[r]);
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2061
|
-
var n =
|
|
2060
|
+
function Oa(e, t) {
|
|
2061
|
+
var n = Tn(e, t);
|
|
2062
2062
|
if (n.length !== 0) {
|
|
2063
2063
|
if (n.length === 1)
|
|
2064
2064
|
return n[0];
|
|
2065
2065
|
throw new re("expected a single document in the stream, but found more");
|
|
2066
2066
|
}
|
|
2067
2067
|
}
|
|
2068
|
-
var
|
|
2069
|
-
loadAll:
|
|
2068
|
+
var La = Ea, Ra = Oa, In = {
|
|
2069
|
+
loadAll: La,
|
|
2070
2070
|
load: Ra
|
|
2071
|
-
},
|
|
2071
|
+
}, Fn = Object.prototype.toString, En = Object.prototype.hasOwnProperty, st = 65279, Ba = 9, Ie = 10, Ka = 13, Na = 32, Ma = 33, ja = 34, Qe = 35, Da = 37, Pa = 38, Ua = 39, qa = 42, On = 44, Ha = 45, Ne = 58, Va = 61, Ya = 62, Wa = 63, Ja = 64, Ln = 91, Rn = 93, Ga = 96, Bn = 123, za = 124, Kn = 125, ne = {};
|
|
2072
2072
|
ne[0] = "\\0";
|
|
2073
2073
|
ne[7] = "\\a";
|
|
2074
2074
|
ne[8] = "\\b";
|
|
@@ -2084,7 +2084,7 @@ ne[133] = "\\N";
|
|
|
2084
2084
|
ne[160] = "\\_";
|
|
2085
2085
|
ne[8232] = "\\L";
|
|
2086
2086
|
ne[8233] = "\\P";
|
|
2087
|
-
var
|
|
2087
|
+
var Qa = [
|
|
2088
2088
|
"y",
|
|
2089
2089
|
"Y",
|
|
2090
2090
|
"yes",
|
|
@@ -2101,15 +2101,15 @@ var Za = [
|
|
|
2101
2101
|
"off",
|
|
2102
2102
|
"Off",
|
|
2103
2103
|
"OFF"
|
|
2104
|
-
],
|
|
2105
|
-
function
|
|
2104
|
+
], Za = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2105
|
+
function Xa(e, t) {
|
|
2106
2106
|
var n, i, r, o, a, l, s;
|
|
2107
2107
|
if (t === null) return {};
|
|
2108
2108
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2109
|
-
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2109
|
+
a = i[r], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2110
2110
|
return n;
|
|
2111
2111
|
}
|
|
2112
|
-
function
|
|
2112
|
+
function eo(e) {
|
|
2113
2113
|
var t, n, i;
|
|
2114
2114
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2115
2115
|
n = "x", i = 2;
|
|
@@ -2121,69 +2121,69 @@ function to(e) {
|
|
|
2121
2121
|
throw new re("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2122
2122
|
return "\\" + n + z.repeat("0", i - t.length) + t;
|
|
2123
2123
|
}
|
|
2124
|
-
var
|
|
2125
|
-
function
|
|
2126
|
-
this.schema = e.schema ||
|
|
2124
|
+
var to = 1, Fe = 2;
|
|
2125
|
+
function no(e) {
|
|
2126
|
+
this.schema = e.schema || at, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Xa(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 === '"' ? Fe : to, 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;
|
|
2127
2127
|
}
|
|
2128
|
-
function
|
|
2128
|
+
function Tt(e, t) {
|
|
2129
2129
|
for (var n = z.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
|
|
2130
2130
|
r = e.indexOf(`
|
|
2131
2131
|
`, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
2132
2132
|
` && (o += n), o += a;
|
|
2133
2133
|
return o;
|
|
2134
2134
|
}
|
|
2135
|
-
function
|
|
2135
|
+
function Ze(e, t) {
|
|
2136
2136
|
return `
|
|
2137
2137
|
` + z.repeat(" ", e.indent * t);
|
|
2138
2138
|
}
|
|
2139
|
-
function
|
|
2139
|
+
function io(e, t) {
|
|
2140
2140
|
var n, i, r;
|
|
2141
2141
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2142
2142
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
2143
2143
|
return !0;
|
|
2144
2144
|
return !1;
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2147
|
-
return e ===
|
|
2146
|
+
function Me(e) {
|
|
2147
|
+
return e === Na || e === Ba;
|
|
2148
2148
|
}
|
|
2149
2149
|
function Ee(e) {
|
|
2150
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2150
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== st || 65536 <= e && e <= 1114111;
|
|
2151
2151
|
}
|
|
2152
|
-
function
|
|
2153
|
-
return Ee(e) && e !==
|
|
2152
|
+
function It(e) {
|
|
2153
|
+
return Ee(e) && e !== st && e !== Ka && e !== Ie;
|
|
2154
2154
|
}
|
|
2155
|
-
function
|
|
2156
|
-
var i =
|
|
2155
|
+
function Ft(e, t, n) {
|
|
2156
|
+
var i = It(e), r = i && !Me(e);
|
|
2157
2157
|
return (
|
|
2158
2158
|
// ns-plain-safe
|
|
2159
2159
|
(n ? (
|
|
2160
2160
|
// c = flow-in
|
|
2161
2161
|
i
|
|
2162
|
-
) : i && e !==
|
|
2162
|
+
) : i && e !== On && e !== Ln && e !== Rn && e !== Bn && e !== Kn) && e !== Qe && !(t === Ne && !r) || It(t) && !Me(t) && e === Qe || t === Ne && r
|
|
2163
2163
|
);
|
|
2164
2164
|
}
|
|
2165
|
-
function
|
|
2166
|
-
return Ee(e) && e !==
|
|
2165
|
+
function ro(e) {
|
|
2166
|
+
return Ee(e) && e !== st && !Me(e) && e !== Ha && e !== Wa && e !== Ne && e !== On && e !== Ln && e !== Rn && e !== Bn && e !== Kn && e !== Qe && e !== Pa && e !== qa && e !== Ma && e !== za && e !== Va && e !== Ya && e !== Ua && e !== ja && e !== Da && e !== Ja && e !== Ga;
|
|
2167
2167
|
}
|
|
2168
|
-
function
|
|
2169
|
-
return !
|
|
2168
|
+
function ao(e) {
|
|
2169
|
+
return !Me(e) && e !== Ne;
|
|
2170
2170
|
}
|
|
2171
2171
|
function $e(e, t) {
|
|
2172
2172
|
var n = e.charCodeAt(t), i;
|
|
2173
2173
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2174
2174
|
}
|
|
2175
|
-
function
|
|
2175
|
+
function Nn(e) {
|
|
2176
2176
|
var t = /^\n* /;
|
|
2177
2177
|
return t.test(e);
|
|
2178
2178
|
}
|
|
2179
|
-
var
|
|
2180
|
-
function
|
|
2181
|
-
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1, C =
|
|
2179
|
+
var Mn = 1, Xe = 2, jn = 3, Dn = 4, ke = 5;
|
|
2180
|
+
function oo(e, t, n, i, r, o, a, l) {
|
|
2181
|
+
var s, c = 0, d = null, u = !1, g = !1, p = i !== -1, y = -1, C = ro($e(e, 0)) && ao($e(e, e.length - 1));
|
|
2182
2182
|
if (t || a)
|
|
2183
2183
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2184
2184
|
if (c = $e(e, s), !Ee(c))
|
|
2185
2185
|
return ke;
|
|
2186
|
-
C = C &&
|
|
2186
|
+
C = C && Ft(c, d, l), d = c;
|
|
2187
2187
|
}
|
|
2188
2188
|
else {
|
|
2189
2189
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
@@ -2192,23 +2192,23 @@ function lo(e, t, n, i, r, o, a, l) {
|
|
|
2192
2192
|
s - y - 1 > i && e[y + 1] !== " ", y = s);
|
|
2193
2193
|
else if (!Ee(c))
|
|
2194
2194
|
return ke;
|
|
2195
|
-
C = C &&
|
|
2195
|
+
C = C && Ft(c, d, l), d = c;
|
|
2196
2196
|
}
|
|
2197
2197
|
g = g || p && s - y - 1 > i && e[y + 1] !== " ";
|
|
2198
2198
|
}
|
|
2199
|
-
return !u && !g ? C && !a && !r(e) ?
|
|
2199
|
+
return !u && !g ? C && !a && !r(e) ? Mn : o === Fe ? ke : Xe : n > 9 && Nn(e) ? ke : a ? o === Fe ? ke : Xe : g ? Dn : jn;
|
|
2200
2200
|
}
|
|
2201
|
-
function
|
|
2201
|
+
function lo(e, t, n, i, r) {
|
|
2202
2202
|
e.dump = function() {
|
|
2203
2203
|
if (t.length === 0)
|
|
2204
2204
|
return e.quotingType === Fe ? '""' : "''";
|
|
2205
|
-
if (!e.noCompatMode && (
|
|
2205
|
+
if (!e.noCompatMode && (Qa.indexOf(t) !== -1 || Za.test(t)))
|
|
2206
2206
|
return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
|
|
2207
2207
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2208
2208
|
function s(c) {
|
|
2209
|
-
return
|
|
2209
|
+
return io(e, c);
|
|
2210
2210
|
}
|
|
2211
|
-
switch (
|
|
2211
|
+
switch (oo(
|
|
2212
2212
|
t,
|
|
2213
2213
|
l,
|
|
2214
2214
|
e.indent,
|
|
@@ -2218,47 +2218,47 @@ function so(e, t, n, i, r) {
|
|
|
2218
2218
|
e.forceQuotes && !i,
|
|
2219
2219
|
r
|
|
2220
2220
|
)) {
|
|
2221
|
-
case
|
|
2221
|
+
case Mn:
|
|
2222
2222
|
return t;
|
|
2223
|
-
case
|
|
2223
|
+
case Xe:
|
|
2224
2224
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2225
|
+
case jn:
|
|
2226
|
+
return "|" + Et(t, e.indent) + Ot(Tt(t, o));
|
|
2225
2227
|
case Dn:
|
|
2226
|
-
return "
|
|
2227
|
-
case Pn:
|
|
2228
|
-
return ">" + Ot(t, e.indent) + Lt(It(co(t, a), o));
|
|
2228
|
+
return ">" + Et(t, e.indent) + Ot(Tt(so(t, a), o));
|
|
2229
2229
|
case ke:
|
|
2230
|
-
return '"' +
|
|
2230
|
+
return '"' + co(t) + '"';
|
|
2231
2231
|
default:
|
|
2232
2232
|
throw new re("impossible error: invalid scalar style");
|
|
2233
2233
|
}
|
|
2234
2234
|
}();
|
|
2235
2235
|
}
|
|
2236
|
-
function
|
|
2237
|
-
var n =
|
|
2236
|
+
function Et(e, t) {
|
|
2237
|
+
var n = Nn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2238
2238
|
`, r = i && (e[e.length - 2] === `
|
|
2239
2239
|
` || e === `
|
|
2240
2240
|
`), o = r ? "+" : i ? "" : "-";
|
|
2241
2241
|
return n + o + `
|
|
2242
2242
|
`;
|
|
2243
2243
|
}
|
|
2244
|
-
function
|
|
2244
|
+
function Ot(e) {
|
|
2245
2245
|
return e[e.length - 1] === `
|
|
2246
2246
|
` ? e.slice(0, -1) : e;
|
|
2247
2247
|
}
|
|
2248
|
-
function
|
|
2248
|
+
function so(e, t) {
|
|
2249
2249
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2250
2250
|
var c = e.indexOf(`
|
|
2251
2251
|
`);
|
|
2252
|
-
return c = c !== -1 ? c : e.length, n.lastIndex = c,
|
|
2252
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, Lt(e.slice(0, c), t);
|
|
2253
2253
|
}(), r = e[0] === `
|
|
2254
2254
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2255
2255
|
var l = a[1], s = a[2];
|
|
2256
2256
|
o = s[0] === " ", i += l + (!r && !o && s !== "" ? `
|
|
2257
|
-
` : "") +
|
|
2257
|
+
` : "") + Lt(s, t), r = o;
|
|
2258
2258
|
}
|
|
2259
2259
|
return i;
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function Lt(e, t) {
|
|
2262
2262
|
if (e === "" || e[0] === " ") return e;
|
|
2263
2263
|
for (var n = / [^ ]/g, i, r = 0, o, a = 0, l = 0, s = ""; i = n.exec(e); )
|
|
2264
2264
|
l = i.index, l - r > t && (o = a > r ? a : l, s += `
|
|
@@ -2267,12 +2267,12 @@ function Bt(e, t) {
|
|
|
2267
2267
|
`, e.length - r > t && a > r ? s += e.slice(r, a) + `
|
|
2268
2268
|
` + e.slice(a + 1) : s += e.slice(r), s.slice(1);
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function co(e) {
|
|
2271
2271
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2272
|
-
n = $e(e, r), i = ne[n], !i && Ee(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i ||
|
|
2272
|
+
n = $e(e, r), i = ne[n], !i && Ee(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || eo(n);
|
|
2273
2273
|
return t;
|
|
2274
2274
|
}
|
|
2275
|
-
function
|
|
2275
|
+
function uo(e, t, n) {
|
|
2276
2276
|
var i = "", r = e.tag, o, a, l;
|
|
2277
2277
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2278
2278
|
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (fe(e, t, l, !1, !1) || typeof l > "u" && fe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
@@ -2281,16 +2281,16 @@ function fo(e, t, n) {
|
|
|
2281
2281
|
function Rt(e, t, n, i) {
|
|
2282
2282
|
var r = "", o = e.tag, a, l, s;
|
|
2283
2283
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2284
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (fe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && fe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2284
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (fe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && fe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Ze(e, t)), e.dump && Ie === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2285
2285
|
e.tag = o, e.dump = r || "[]";
|
|
2286
2286
|
}
|
|
2287
|
-
function
|
|
2287
|
+
function fo(e, t, n) {
|
|
2288
2288
|
var i = "", r = e.tag, o = Object.keys(n), a, l, s, c, d;
|
|
2289
2289
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2290
2290
|
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), fe(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), fe(e, t, c, !1, !1) && (d += e.dump, i += d));
|
|
2291
2291
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2292
2292
|
}
|
|
2293
|
-
function
|
|
2293
|
+
function po(e, t, n, i) {
|
|
2294
2294
|
var r = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, g;
|
|
2295
2295
|
if (e.sortKeys === !0)
|
|
2296
2296
|
a.sort();
|
|
@@ -2299,17 +2299,17 @@ function mo(e, t, n, i) {
|
|
|
2299
2299
|
else if (e.sortKeys)
|
|
2300
2300
|
throw new re("sortKeys must be a boolean or a function");
|
|
2301
2301
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2302
|
-
g = "", (!i || r !== "") && (g +=
|
|
2302
|
+
g = "", (!i || r !== "") && (g += Ze(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), fe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ie === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ze(e, t)), fe(e, t + 1, d, !0, u) && (e.dump && Ie === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, r += g));
|
|
2303
2303
|
e.tag = o, e.dump = r || "{}";
|
|
2304
2304
|
}
|
|
2305
|
-
function
|
|
2305
|
+
function Bt(e, t, n) {
|
|
2306
2306
|
var i, r, o, a, l, s;
|
|
2307
2307
|
for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
|
|
2308
2308
|
if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2309
2309
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2310
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2310
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, Fn.call(l.represent) === "[object Function]")
|
|
2311
2311
|
i = l.represent(t, s);
|
|
2312
|
-
else if (
|
|
2312
|
+
else if (En.call(l.represent, s))
|
|
2313
2313
|
i = l.represent[s](t, s);
|
|
2314
2314
|
else
|
|
2315
2315
|
throw new re("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
@@ -2320,19 +2320,19 @@ function Kt(e, t, n) {
|
|
|
2320
2320
|
return !1;
|
|
2321
2321
|
}
|
|
2322
2322
|
function fe(e, t, n, i, r, o, a) {
|
|
2323
|
-
e.tag = null, e.dump = n,
|
|
2324
|
-
var l =
|
|
2323
|
+
e.tag = null, e.dump = n, Bt(e, n, !1) || Bt(e, n, !0);
|
|
2324
|
+
var l = Fn.call(e.dump), s = i, c;
|
|
2325
2325
|
i && (i = e.flowLevel < 0 || e.flowLevel > t);
|
|
2326
2326
|
var d = l === "[object Object]" || l === "[object Array]", u, g;
|
|
2327
2327
|
if (d && (u = e.duplicates.indexOf(n), g = u !== -1), (e.tag !== null && e.tag !== "?" || g || e.indent !== 2 && t > 0) && (r = !1), g && e.usedDuplicates[u])
|
|
2328
2328
|
e.dump = "*ref_" + u;
|
|
2329
2329
|
else {
|
|
2330
2330
|
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2331
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2331
|
+
i && Object.keys(e.dump).length !== 0 ? (po(e, t, e.dump, r), g && (e.dump = "&ref_" + u + e.dump)) : (fo(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2332
2332
|
else if (l === "[object Array]")
|
|
2333
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Rt(e, t - 1, e.dump, r) : Rt(e, t, e.dump, r), g && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2333
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Rt(e, t - 1, e.dump, r) : Rt(e, t, e.dump, r), g && (e.dump = "&ref_" + u + e.dump)) : (uo(e, t, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2334
2334
|
else if (l === "[object String]")
|
|
2335
|
-
e.tag !== "?" &&
|
|
2335
|
+
e.tag !== "?" && lo(e, e.dump, t, o, s);
|
|
2336
2336
|
else {
|
|
2337
2337
|
if (l === "[object Undefined]")
|
|
2338
2338
|
return !1;
|
|
@@ -2345,71 +2345,71 @@ function fe(e, t, n, i, r, o, a) {
|
|
|
2345
2345
|
}
|
|
2346
2346
|
return !0;
|
|
2347
2347
|
}
|
|
2348
|
-
function
|
|
2348
|
+
function mo(e, t) {
|
|
2349
2349
|
var n = [], i = [], r, o;
|
|
2350
|
-
for (
|
|
2350
|
+
for (et(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2351
2351
|
t.duplicates.push(n[i[r]]);
|
|
2352
2352
|
t.usedDuplicates = new Array(o);
|
|
2353
2353
|
}
|
|
2354
|
-
function
|
|
2354
|
+
function et(e, t, n) {
|
|
2355
2355
|
var i, r, o;
|
|
2356
2356
|
if (e !== null && typeof e == "object")
|
|
2357
2357
|
if (r = t.indexOf(e), r !== -1)
|
|
2358
2358
|
n.indexOf(r) === -1 && n.push(r);
|
|
2359
2359
|
else if (t.push(e), Array.isArray(e))
|
|
2360
2360
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2361
|
-
|
|
2361
|
+
et(e[r], t, n);
|
|
2362
2362
|
else
|
|
2363
2363
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2364
|
-
|
|
2364
|
+
et(e[i[r]], t, n);
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function ho(e, t) {
|
|
2367
2367
|
t = t || {};
|
|
2368
|
-
var n = new
|
|
2369
|
-
n.noRefs ||
|
|
2368
|
+
var n = new no(t);
|
|
2369
|
+
n.noRefs || mo(e, n);
|
|
2370
2370
|
var i = e;
|
|
2371
2371
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), fe(n, 0, i, !0, !0) ? n.dump + `
|
|
2372
2372
|
` : "";
|
|
2373
2373
|
}
|
|
2374
|
-
var
|
|
2375
|
-
dump:
|
|
2374
|
+
var go = ho, yo = {
|
|
2375
|
+
dump: go
|
|
2376
2376
|
};
|
|
2377
|
-
function
|
|
2377
|
+
function ct(e, t) {
|
|
2378
2378
|
return function() {
|
|
2379
2379
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2380
2380
|
};
|
|
2381
2381
|
}
|
|
2382
|
-
var
|
|
2383
|
-
binary:
|
|
2384
|
-
float:
|
|
2385
|
-
map:
|
|
2386
|
-
null:
|
|
2387
|
-
pairs:
|
|
2388
|
-
set:
|
|
2389
|
-
timestamp:
|
|
2390
|
-
bool:
|
|
2391
|
-
int:
|
|
2392
|
-
merge:
|
|
2393
|
-
omap:
|
|
2394
|
-
seq:
|
|
2395
|
-
str:
|
|
2396
|
-
},
|
|
2397
|
-
Type:
|
|
2398
|
-
Schema:
|
|
2399
|
-
FAILSAFE_SCHEMA:
|
|
2400
|
-
JSON_SCHEMA:
|
|
2401
|
-
CORE_SCHEMA:
|
|
2402
|
-
DEFAULT_SCHEMA:
|
|
2403
|
-
load:
|
|
2404
|
-
loadAll:
|
|
2405
|
-
dump:
|
|
2406
|
-
YAMLException:
|
|
2407
|
-
types:
|
|
2408
|
-
safeLoad:
|
|
2409
|
-
safeLoadAll:
|
|
2410
|
-
safeDump:
|
|
2382
|
+
var vo = te, bo = tn, xo = on, Co = dn, ko = fn, Ao = at, _o = In.load, wo = In.loadAll, So = yo.dump, $o = re, To = {
|
|
2383
|
+
binary: yn,
|
|
2384
|
+
float: un,
|
|
2385
|
+
map: an,
|
|
2386
|
+
null: ln,
|
|
2387
|
+
pairs: bn,
|
|
2388
|
+
set: xn,
|
|
2389
|
+
timestamp: hn,
|
|
2390
|
+
bool: sn,
|
|
2391
|
+
int: cn,
|
|
2392
|
+
merge: gn,
|
|
2393
|
+
omap: vn,
|
|
2394
|
+
seq: rn,
|
|
2395
|
+
str: nn
|
|
2396
|
+
}, Io = ct("safeLoad", "load"), Fo = ct("safeLoadAll", "loadAll"), Eo = ct("safeDump", "dump"), Oo = {
|
|
2397
|
+
Type: vo,
|
|
2398
|
+
Schema: bo,
|
|
2399
|
+
FAILSAFE_SCHEMA: xo,
|
|
2400
|
+
JSON_SCHEMA: Co,
|
|
2401
|
+
CORE_SCHEMA: ko,
|
|
2402
|
+
DEFAULT_SCHEMA: Ao,
|
|
2403
|
+
load: _o,
|
|
2404
|
+
loadAll: wo,
|
|
2405
|
+
dump: So,
|
|
2406
|
+
YAMLException: $o,
|
|
2407
|
+
types: To,
|
|
2408
|
+
safeLoad: Io,
|
|
2409
|
+
safeLoadAll: Fo,
|
|
2410
|
+
safeDump: Eo
|
|
2411
2411
|
};
|
|
2412
|
-
const
|
|
2412
|
+
const Lo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */ W({
|
|
2413
2413
|
__name: "YamlCodeBlock",
|
|
2414
2414
|
props: {
|
|
2415
2415
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2419,13 +2419,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2419
2419
|
}
|
|
2420
2420
|
},
|
|
2421
2421
|
setup(e) {
|
|
2422
|
-
const t = e, n =
|
|
2422
|
+
const t = e, n = F(() => {
|
|
2423
2423
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2424
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2424
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Oo.dump(i).trim();
|
|
2425
2425
|
});
|
|
2426
2426
|
return (i, r) => {
|
|
2427
2427
|
const o = D("KCodeBlock");
|
|
2428
|
-
return h(), S("div",
|
|
2428
|
+
return h(), S("div", Lo, [
|
|
2429
2429
|
t.entityRecord ? (h(), N(o, {
|
|
2430
2430
|
key: 0,
|
|
2431
2431
|
id: "yaml-codeblock",
|
|
@@ -2436,7 +2436,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2436
2436
|
]);
|
|
2437
2437
|
};
|
|
2438
2438
|
}
|
|
2439
|
-
}), Ro = { class: "terraform-config config-card-code-block" }, ie = " ",
|
|
2439
|
+
}), Ro = { class: "terraform-config config-card-code-block" }, ie = " ", Un = /* @__PURE__ */ W({
|
|
2440
2440
|
__name: "TerraformCodeBlock",
|
|
2441
2441
|
props: {
|
|
2442
2442
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2447,7 +2447,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2447
2447
|
entityType: {
|
|
2448
2448
|
type: String,
|
|
2449
2449
|
required: !0,
|
|
2450
|
-
validator: (e) =>
|
|
2450
|
+
validator: (e) => Pe.includes(e)
|
|
2451
2451
|
},
|
|
2452
2452
|
credentialType: {
|
|
2453
2453
|
type: String,
|
|
@@ -2499,7 +2499,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2499
2499
|
for (const [c, d] of Object.entries(l))
|
|
2500
2500
|
Array.isArray(d) ? s += r(d, c) : typeof d == "object" ? s += i(d, c) : s += n(d, c);
|
|
2501
2501
|
return s;
|
|
2502
|
-
}, a =
|
|
2502
|
+
}, a = F(() => {
|
|
2503
2503
|
var u, g, p, y, C, b, w;
|
|
2504
2504
|
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x != null)), s = t.entityRecord.config ? Object.fromEntries(Object.entries((u = t.entityRecord) == null ? void 0 : u.config).filter(([, x]) => x != null)) : void 0;
|
|
2505
2505
|
if (s && (l.config = s), Object.keys(l).length === 0)
|
|
@@ -2533,13 +2533,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2533
2533
|
]);
|
|
2534
2534
|
};
|
|
2535
2535
|
}
|
|
2536
|
-
}),
|
|
2536
|
+
}), Bo = {
|
|
2537
2537
|
key: 0,
|
|
2538
2538
|
class: "config-card-display-form"
|
|
2539
|
-
},
|
|
2539
|
+
}, Ko = ["data-testid"], No = {
|
|
2540
2540
|
key: 0,
|
|
2541
2541
|
class: "config-card-prop-section-title"
|
|
2542
|
-
},
|
|
2542
|
+
}, Mo = /* @__PURE__ */ W({
|
|
2543
2543
|
__name: "ConfigCardDisplay",
|
|
2544
2544
|
props: {
|
|
2545
2545
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2551,7 +2551,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2551
2551
|
entityType: {
|
|
2552
2552
|
type: String,
|
|
2553
2553
|
required: !0,
|
|
2554
|
-
validator: (e) =>
|
|
2554
|
+
validator: (e) => Pe.includes(e)
|
|
2555
2555
|
},
|
|
2556
2556
|
propertyCollections: {
|
|
2557
2557
|
type: Object,
|
|
@@ -2591,7 +2591,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2591
2591
|
}
|
|
2592
2592
|
},
|
|
2593
2593
|
setup(e) {
|
|
2594
|
-
const t = e, n =
|
|
2594
|
+
const t = e, n = De(), { i18n: { t: i } } = V.useI18n(), r = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = F(() => {
|
|
2595
2595
|
if (!t.record)
|
|
2596
2596
|
return t.record;
|
|
2597
2597
|
let a = t.record;
|
|
@@ -2600,14 +2600,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2600
2600
|
return delete l.created_at, delete l.updated_at, l;
|
|
2601
2601
|
});
|
|
2602
2602
|
return (a, l) => (h(), S(ce, null, [
|
|
2603
|
-
e.format === "structured" ? (h(), S("div",
|
|
2603
|
+
e.format === "structured" ? (h(), S("div", Bo, [
|
|
2604
2604
|
(h(!0), S(ce, null, se(e.propListTypes, (s) => (h(), S("div", {
|
|
2605
2605
|
key: `config-card-details-${s}-props`,
|
|
2606
2606
|
class: de(`config-card-details-${s}-props`),
|
|
2607
2607
|
"data-testid": `config-card-details-${s}-props`
|
|
2608
2608
|
}, [
|
|
2609
|
-
s !== "basic" ? (h(), S("div",
|
|
2610
|
-
(h(!0), S(ce, null, se(e.propertyCollections[s], (c) => (h(), N(
|
|
2609
|
+
s !== "basic" ? (h(), S("div", No, O(s === "advanced" ? $(i)("baseConfigCard.sections.advanced") : $(i)("baseConfigCard.sections.plugin")), 1)) : K("", !0),
|
|
2610
|
+
(h(!0), S(ce, null, se(e.propertyCollections[s], (c) => (h(), N(Qt, {
|
|
2611
2611
|
key: c.key,
|
|
2612
2612
|
item: c
|
|
2613
2613
|
}, we({
|
|
@@ -2630,30 +2630,30 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2630
2630
|
key: "0"
|
|
2631
2631
|
} : void 0
|
|
2632
2632
|
]), 1032, ["item"]))), 128))
|
|
2633
|
-
], 10,
|
|
2633
|
+
], 10, Ko))), 128))
|
|
2634
2634
|
])) : K("", !0),
|
|
2635
|
-
e.format === "json" && o.value ? (h(), N(
|
|
2635
|
+
e.format === "json" && o.value ? (h(), N(Zt, {
|
|
2636
2636
|
key: 1,
|
|
2637
2637
|
config: t.config,
|
|
2638
2638
|
"entity-record": o.value,
|
|
2639
2639
|
"fetcher-url": t.fetcherUrl,
|
|
2640
2640
|
"request-method": "get"
|
|
2641
2641
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : K("", !0),
|
|
2642
|
-
e.format === "yaml" && o.value ? (h(), N(
|
|
2642
|
+
e.format === "yaml" && o.value ? (h(), N(Pn, {
|
|
2643
2643
|
key: 2,
|
|
2644
2644
|
"entity-record": o.value
|
|
2645
2645
|
}, null, 8, ["entity-record"])) : K("", !0),
|
|
2646
|
-
e.format === "terraform" && o.value ? (h(), N(
|
|
2646
|
+
e.format === "terraform" && o.value ? (h(), N(Un, {
|
|
2647
2647
|
key: 3,
|
|
2648
2648
|
"entity-record": o.value,
|
|
2649
2649
|
"entity-type": t.entityType
|
|
2650
2650
|
}, null, 8, ["entity-record", "entity-type"])) : K("", !0)
|
|
2651
2651
|
], 64));
|
|
2652
2652
|
}
|
|
2653
|
-
}),
|
|
2653
|
+
}), jo = /* @__PURE__ */ oe(Mo, [["__scopeId", "data-v-d67757a9"]]), Do = {
|
|
2654
2654
|
class: "config-card-title",
|
|
2655
2655
|
"data-testid": "config-card-title"
|
|
2656
|
-
},
|
|
2656
|
+
}, Po = { class: "config-card-actions" }, Uo = ["href"], qo = { class: "config-card-details-section" }, Ho = /* @__PURE__ */ W({
|
|
2657
2657
|
__name: "EntityBaseConfigCard",
|
|
2658
2658
|
props: {
|
|
2659
2659
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2674,7 +2674,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2674
2674
|
entityType: {
|
|
2675
2675
|
type: String,
|
|
2676
2676
|
required: !0,
|
|
2677
|
-
validator: (e) =>
|
|
2677
|
+
validator: (e) => Pe.includes(e)
|
|
2678
2678
|
},
|
|
2679
2679
|
/** Record key that contains the plugin configuration */
|
|
2680
2680
|
pluginConfigKey: {
|
|
@@ -2778,14 +2778,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2778
2778
|
label: r("baseForm.configuration.terraform"),
|
|
2779
2779
|
value: "terraform"
|
|
2780
2780
|
});
|
|
2781
|
-
const c = s[0].value, d =
|
|
2781
|
+
const c = s[0].value, d = B(c), u = (f) => {
|
|
2782
2782
|
d.value = f == null ? void 0 : f.value;
|
|
2783
2783
|
}, g = (f, m) => {
|
|
2784
2784
|
localStorage.setItem(f, m);
|
|
2785
2785
|
};
|
|
2786
2786
|
ve(d, (f) => {
|
|
2787
2787
|
i.config.formatPreferenceKey && g(i.config.formatPreferenceKey, f);
|
|
2788
|
-
}),
|
|
2788
|
+
}), Pt(() => {
|
|
2789
2789
|
if (i.config.formatPreferenceKey) {
|
|
2790
2790
|
const f = localStorage.getItem(i.config.formatPreferenceKey);
|
|
2791
2791
|
f && s.some((m) => m.value === f) ? d.value = f : d.value = c, g(i.config.formatPreferenceKey, d.value);
|
|
@@ -2832,74 +2832,74 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2832
2832
|
// the last property displayed
|
|
2833
2833
|
section: le.Basic
|
|
2834
2834
|
}
|
|
2835
|
-
}, y =
|
|
2836
|
-
var v,
|
|
2835
|
+
}, y = B(!1), C = B(!1), b = B(""), w = B({}), x = F(() => {
|
|
2836
|
+
var v, I, q;
|
|
2837
2837
|
if (!w.value)
|
|
2838
2838
|
return [];
|
|
2839
2839
|
const f = [], m = Object.keys(w.value).length;
|
|
2840
2840
|
for (const P in w.value) {
|
|
2841
|
-
const
|
|
2841
|
+
const R = (I = (v = i.configSchema) == null ? void 0 : v[P]) == null ? void 0 : I.order, Z = (q = p[P]) == null ? void 0 : q.order;
|
|
2842
2842
|
let Y = m;
|
|
2843
|
-
(Z || Z === 0) && (Y = Z === -1 ? m + 1 : Z),
|
|
2843
|
+
(Z || Z === 0) && (Y = Z === -1 ? m + 1 : Z), R && (Y = R === -1 ? m + 1 : R), f.push([P, Y]);
|
|
2844
2844
|
}
|
|
2845
|
-
return f.sort(function(P,
|
|
2846
|
-
return P[1] -
|
|
2845
|
+
return f.sort(function(P, R) {
|
|
2846
|
+
return P[1] - R[1];
|
|
2847
2847
|
}), f.map((P) => {
|
|
2848
|
-
var Oe,
|
|
2849
|
-
const
|
|
2848
|
+
var Oe, ut;
|
|
2849
|
+
const R = P[0], Z = (Oe = w.value) == null ? void 0 : Oe[R], Y = ((ut = i.configSchema) == null ? void 0 : ut[R]) || {}, X = p[R];
|
|
2850
2850
|
return {
|
|
2851
|
-
key:
|
|
2851
|
+
key: R,
|
|
2852
2852
|
value: Z,
|
|
2853
2853
|
hidden: Y.hidden || !1,
|
|
2854
2854
|
type: Y.type ?? ((X == null ? void 0 : X.type) || H.Text),
|
|
2855
|
-
label: Y.label ?? ((X == null ? void 0 : X.label) || a(
|
|
2855
|
+
label: Y.label ?? ((X == null ? void 0 : X.label) || a(R)),
|
|
2856
2856
|
tooltip: Y.tooltip ?? ((X == null ? void 0 : X.tooltip) || void 0),
|
|
2857
2857
|
section: Y.section ?? ((X == null ? void 0 : X.section) || le.Advanced)
|
|
2858
2858
|
};
|
|
2859
2859
|
}).filter((P) => !P.hidden && P.key !== i.pluginConfigKey);
|
|
2860
|
-
}),
|
|
2861
|
-
var
|
|
2860
|
+
}), E = F(() => {
|
|
2861
|
+
var I, q;
|
|
2862
2862
|
if (!w.value || !i.pluginConfigKey)
|
|
2863
2863
|
return [];
|
|
2864
2864
|
const f = w.value[i.pluginConfigKey] || {}, m = Object.keys(f).length, v = [];
|
|
2865
2865
|
for (const P in f) {
|
|
2866
|
-
const
|
|
2866
|
+
const R = (q = (I = i.pluginConfigSchema) == null ? void 0 : I[P]) == null ? void 0 : q.order, Z = f[P];
|
|
2867
2867
|
let Y = Z != null && Z !== "" ? m - 1 : m;
|
|
2868
|
-
|
|
2868
|
+
R && (Y = R === -1 ? m + 1 : R), v.push([P, Y]);
|
|
2869
2869
|
}
|
|
2870
|
-
return v.sort(function(P,
|
|
2871
|
-
return P[1] -
|
|
2870
|
+
return v.sort(function(P, R) {
|
|
2871
|
+
return P[1] - R[1];
|
|
2872
2872
|
}), v.map((P) => {
|
|
2873
2873
|
var X;
|
|
2874
|
-
const
|
|
2874
|
+
const R = P[0], Z = f[R], Y = ((X = i.pluginConfigSchema) == null ? void 0 : X[R]) || {};
|
|
2875
2875
|
return {
|
|
2876
|
-
key:
|
|
2876
|
+
key: R,
|
|
2877
2877
|
value: Z,
|
|
2878
2878
|
hidden: Y.hidden || !1,
|
|
2879
2879
|
type: Y.type ?? H.Text,
|
|
2880
|
-
label: Y.label ?? a(
|
|
2880
|
+
label: Y.label ?? a(R),
|
|
2881
2881
|
tooltip: Y.tooltip ?? void 0,
|
|
2882
2882
|
section: le.Plugin
|
|
2883
2883
|
};
|
|
2884
2884
|
}).filter((P) => !P.hidden);
|
|
2885
|
-
}), G =
|
|
2886
|
-
var f, m, v,
|
|
2885
|
+
}), G = F(() => {
|
|
2886
|
+
var f, m, v, I;
|
|
2887
2887
|
return {
|
|
2888
2888
|
basic: (f = x.value) == null ? void 0 : f.filter((q) => q.section === le.Basic),
|
|
2889
2889
|
advanced: (m = x.value) == null ? void 0 : m.filter((q) => q.section === le.Advanced),
|
|
2890
|
-
plugin: (
|
|
2890
|
+
plugin: (I = E.value) == null ? void 0 : I.concat((v = x.value) == null ? void 0 : v.filter((q) => q.section === le.Plugin))
|
|
2891
2891
|
};
|
|
2892
|
-
}), Q =
|
|
2892
|
+
}), Q = F(() => {
|
|
2893
2893
|
const f = [];
|
|
2894
2894
|
return G.value.basic.length && f.push("basic"), G.value.advanced.length && f.push("advanced"), G.value.plugin.length && f.push("plugin"), f;
|
|
2895
|
-
}), k =
|
|
2895
|
+
}), k = F(() => {
|
|
2896
2896
|
var m, v;
|
|
2897
2897
|
let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
2898
2898
|
return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((m = i.config) == null ? void 0 : m.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (v = i.config) != null && v.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
|
|
2899
2899
|
});
|
|
2900
2900
|
return ve(y, (f) => {
|
|
2901
2901
|
n("loading", f);
|
|
2902
|
-
}, { immediate: !0 }),
|
|
2902
|
+
}, { immediate: !0 }), tt(async () => {
|
|
2903
2903
|
C.value = !1, y.value = !0;
|
|
2904
2904
|
try {
|
|
2905
2905
|
const { data: f } = await l.get(k.value);
|
|
@@ -2919,13 +2919,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2919
2919
|
y.value = !1;
|
|
2920
2920
|
}
|
|
2921
2921
|
}), (f, m) => {
|
|
2922
|
-
const v = D("KLabel"),
|
|
2922
|
+
const v = D("KLabel"), I = D("KSelect"), q = D("KButton"), P = D("KSkeleton"), R = D("KEmptyState"), Z = D("KCard");
|
|
2923
2923
|
return h(), N(Z, {
|
|
2924
2924
|
class: "kong-ui-entity-base-config-card",
|
|
2925
2925
|
"title-tag": e.titleTag
|
|
2926
2926
|
}, we({
|
|
2927
2927
|
actions: _(() => [
|
|
2928
|
-
L("div",
|
|
2928
|
+
L("div", Po, [
|
|
2929
2929
|
j(f.$slots, "actions", {}, void 0, !0),
|
|
2930
2930
|
M(v, {
|
|
2931
2931
|
class: "config-format-select-label",
|
|
@@ -2936,7 +2936,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2936
2936
|
]),
|
|
2937
2937
|
_: 1
|
|
2938
2938
|
}),
|
|
2939
|
-
M(
|
|
2939
|
+
M(I, {
|
|
2940
2940
|
modelValue: d.value,
|
|
2941
2941
|
"onUpdate:modelValue": m[0] || (m[0] = (Y) => d.value = Y),
|
|
2942
2942
|
"data-testid": "select-config-format",
|
|
@@ -2955,8 +2955,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2955
2955
|
rel: "noopener",
|
|
2956
2956
|
target: "_blank"
|
|
2957
2957
|
}, [
|
|
2958
|
-
M($(
|
|
2959
|
-
], 8,
|
|
2958
|
+
M($(qt), { size: $(Qi) }, null, 8, ["size"])
|
|
2959
|
+
], 8, Uo)
|
|
2960
2960
|
]),
|
|
2961
2961
|
_: 1
|
|
2962
2962
|
})) : K("", !0)
|
|
@@ -2968,7 +2968,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2968
2968
|
"data-testid": "config-card-loader",
|
|
2969
2969
|
"table-columns": 2,
|
|
2970
2970
|
type: "table"
|
|
2971
|
-
})) : C.value ? (h(), N(
|
|
2971
|
+
})) : C.value ? (h(), N(R, {
|
|
2972
2972
|
key: 1,
|
|
2973
2973
|
"data-testid": "config-card-fetch-error",
|
|
2974
2974
|
"icon-variant": "error"
|
|
@@ -2978,8 +2978,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
2978
2978
|
]),
|
|
2979
2979
|
_: 1
|
|
2980
2980
|
})) : K("", !0),
|
|
2981
|
-
L("div",
|
|
2982
|
-
M(
|
|
2981
|
+
L("div", qo, [
|
|
2982
|
+
M(jo, {
|
|
2983
2983
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
2984
2984
|
config: e.config,
|
|
2985
2985
|
"entity-type": e.entityType,
|
|
@@ -3006,7 +3006,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3006
3006
|
e.hideTitle ? void 0 : {
|
|
3007
3007
|
name: "title",
|
|
3008
3008
|
fn: _(() => [
|
|
3009
|
-
L("span",
|
|
3009
|
+
L("span", Do, [
|
|
3010
3010
|
j(f.$slots, "title", {}, () => [
|
|
3011
3011
|
U(O($(r)("baseConfigCard.title")), 1)
|
|
3012
3012
|
], !0)
|
|
@@ -3017,7 +3017,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3017
3017
|
]), 1032, ["title-tag"]);
|
|
3018
3018
|
};
|
|
3019
3019
|
}
|
|
3020
|
-
}),
|
|
3020
|
+
}), us = /* @__PURE__ */ oe(Ho, [["__scopeId", "data-v-9b9ea6f9"]]), Vo = ["novalidate"], Yo = /* @__PURE__ */ W({
|
|
3021
3021
|
__name: "EntityBaseForm",
|
|
3022
3022
|
props: {
|
|
3023
3023
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3038,7 +3038,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3038
3038
|
entityType: {
|
|
3039
3039
|
type: String,
|
|
3040
3040
|
required: !0,
|
|
3041
|
-
validator: (e) =>
|
|
3041
|
+
validator: (e) => Pe.includes(e)
|
|
3042
3042
|
},
|
|
3043
3043
|
/**
|
|
3044
3044
|
* Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
|
|
@@ -3122,7 +3122,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3122
3122
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3123
3123
|
setup(e, { expose: t, emit: n }) {
|
|
3124
3124
|
var Q;
|
|
3125
|
-
const i = n, r = e, o =
|
|
3125
|
+
const i = n, r = e, o = ri(), { i18n: { t: a } } = V.useI18n(), { getMessageFromError: l } = V.useErrors(), { axiosInstance: s } = V.useAxios((Q = r.config) == null ? void 0 : Q.axiosRequestConfig), c = B(!1), d = F(() => !!r.editId), u = B(!1), g = B(""), p = F(() => r.canSubmit === !1 || r.isReadonly), y = B(!1), C = F(() => {
|
|
3126
3126
|
var A, f;
|
|
3127
3127
|
let k = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3128
3128
|
return r.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (k = k.replace(/{id}/gi, r.editId), k) : (k = k.replace(/\/{id}/gi, ""), k);
|
|
@@ -3132,9 +3132,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3132
3132
|
r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
|
|
3133
3133
|
}, x = () => {
|
|
3134
3134
|
i("cancel");
|
|
3135
|
-
},
|
|
3135
|
+
}, E = () => {
|
|
3136
3136
|
p.value || i("submit");
|
|
3137
|
-
}, G =
|
|
3137
|
+
}, G = B([
|
|
3138
3138
|
{
|
|
3139
3139
|
title: a("baseForm.configuration.json"),
|
|
3140
3140
|
hash: "#json"
|
|
@@ -3144,12 +3144,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3144
3144
|
hash: "#yaml"
|
|
3145
3145
|
}
|
|
3146
3146
|
]);
|
|
3147
|
-
return r.config.app === "konnect" && r.entityType !==
|
|
3147
|
+
return r.config.app === "konnect" && r.entityType !== nt.Other && G.value.splice(1, 0, {
|
|
3148
3148
|
title: a("baseForm.configuration.terraform"),
|
|
3149
3149
|
hash: "#terraform"
|
|
3150
3150
|
}), ve(() => c.value, (k) => {
|
|
3151
3151
|
i("loading", k);
|
|
3152
|
-
}, { immediate: !0 }),
|
|
3152
|
+
}, { immediate: !0 }), tt(async () => {
|
|
3153
3153
|
if (r.editId)
|
|
3154
3154
|
try {
|
|
3155
3155
|
u.value = !1, c.value = !0;
|
|
@@ -3164,10 +3164,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3164
3164
|
}), t({
|
|
3165
3165
|
viewConfig: b,
|
|
3166
3166
|
formCancel: x,
|
|
3167
|
-
formSubmit:
|
|
3167
|
+
formSubmit: E
|
|
3168
3168
|
}), (k, A) => {
|
|
3169
|
-
const f = D("KSkeleton"), m = D("KEmptyState"), v = D("KAlert"),
|
|
3170
|
-
return h(), N(
|
|
3169
|
+
const f = D("KSkeleton"), m = D("KEmptyState"), v = D("KAlert"), I = D("KButton"), q = D("KTabs"), P = D("KSlideout");
|
|
3170
|
+
return h(), N(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3171
3171
|
default: _(() => [
|
|
3172
3172
|
c.value ? (h(), N(f, {
|
|
3173
3173
|
key: 0,
|
|
@@ -3187,8 +3187,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3187
3187
|
key: 2,
|
|
3188
3188
|
"data-testid": "form-content",
|
|
3189
3189
|
novalidate: r.noValidate,
|
|
3190
|
-
onReset:
|
|
3191
|
-
onSubmit:
|
|
3190
|
+
onReset: Le(x, ["prevent"]),
|
|
3191
|
+
onSubmit: Le(E, ["prevent"])
|
|
3192
3192
|
}, [
|
|
3193
3193
|
j(k.$slots, "default", {}, void 0, !0),
|
|
3194
3194
|
e.errorMessage ? (h(), N(v, {
|
|
@@ -3197,7 +3197,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3197
3197
|
"data-testid": "form-error",
|
|
3198
3198
|
message: e.errorMessage
|
|
3199
3199
|
}, null, 8, ["message"])) : K("", !0),
|
|
3200
|
-
e.hideActions ? K("", !0) : (h(), N(
|
|
3200
|
+
e.hideActions ? K("", !0) : (h(), N(Ut, {
|
|
3201
3201
|
key: 1,
|
|
3202
3202
|
disabled: !e.actionTeleportTarget,
|
|
3203
3203
|
to: e.actionTeleportTarget
|
|
@@ -3207,34 +3207,34 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3207
3207
|
"data-testid": "form-actions"
|
|
3208
3208
|
}, [
|
|
3209
3209
|
j(k.$slots, "form-actions", {}, () => [
|
|
3210
|
-
M(
|
|
3210
|
+
M(I, {
|
|
3211
3211
|
appearance: "tertiary",
|
|
3212
3212
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3213
|
-
onClick: A[0] || (A[0] = (
|
|
3213
|
+
onClick: A[0] || (A[0] = (R) => b())
|
|
3214
3214
|
}, {
|
|
3215
3215
|
default: _(() => [
|
|
3216
3216
|
U(O($(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3217
3217
|
]),
|
|
3218
3218
|
_: 1
|
|
3219
3219
|
}, 8, ["data-testid"]),
|
|
3220
|
-
M(
|
|
3220
|
+
M(I, {
|
|
3221
3221
|
appearance: "secondary",
|
|
3222
3222
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
|
|
3223
3223
|
disabled: e.isReadonly,
|
|
3224
3224
|
type: "reset",
|
|
3225
|
-
onClick: A[1] || (A[1] = (
|
|
3225
|
+
onClick: A[1] || (A[1] = (R) => !!e.actionTeleportTarget && x())
|
|
3226
3226
|
}, {
|
|
3227
3227
|
default: _(() => [
|
|
3228
3228
|
U(O($(a)("baseForm.actions.cancel")), 1)
|
|
3229
3229
|
]),
|
|
3230
3230
|
_: 1
|
|
3231
3231
|
}, 8, ["data-testid", "disabled"]),
|
|
3232
|
-
M(
|
|
3232
|
+
M(I, {
|
|
3233
3233
|
appearance: "primary",
|
|
3234
3234
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
|
|
3235
3235
|
disabled: p.value,
|
|
3236
3236
|
type: "submit",
|
|
3237
|
-
onClick: A[2] || (A[2] = (
|
|
3237
|
+
onClick: A[2] || (A[2] = (R) => !!e.actionTeleportTarget && E())
|
|
3238
3238
|
}, {
|
|
3239
3239
|
default: _(() => [
|
|
3240
3240
|
U(O($(a)("baseForm.actions.save")), 1)
|
|
@@ -3244,7 +3244,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3244
3244
|
], !0)
|
|
3245
3245
|
], 2)
|
|
3246
3246
|
], 8, ["disabled", "to"]))
|
|
3247
|
-
], 40,
|
|
3247
|
+
], 40, Vo)),
|
|
3248
3248
|
M(P, {
|
|
3249
3249
|
"close-on-blur": !1,
|
|
3250
3250
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3252,7 +3252,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3252
3252
|
"offset-top": e.slidoutTopOffset,
|
|
3253
3253
|
title: $(a)("baseForm.configuration.title"),
|
|
3254
3254
|
visible: y.value,
|
|
3255
|
-
onClose: A[3] || (A[3] = (
|
|
3255
|
+
onClose: A[3] || (A[3] = (R) => b())
|
|
3256
3256
|
}, {
|
|
3257
3257
|
default: _(() => [
|
|
3258
3258
|
L("div", null, O($(a)("baseForm.configuration.message")), 1),
|
|
@@ -3261,7 +3261,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3261
3261
|
tabs: G.value
|
|
3262
3262
|
}, {
|
|
3263
3263
|
json: _(() => [
|
|
3264
|
-
M(
|
|
3264
|
+
M(Zt, {
|
|
3265
3265
|
config: e.config,
|
|
3266
3266
|
"entity-record": r.formFields,
|
|
3267
3267
|
"fetcher-url": C.value,
|
|
@@ -3269,12 +3269,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3269
3269
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3270
3270
|
]),
|
|
3271
3271
|
yaml: _(() => [
|
|
3272
|
-
M(
|
|
3272
|
+
M(Pn, {
|
|
3273
3273
|
"entity-record": r.formFields
|
|
3274
3274
|
}, null, 8, ["entity-record"])
|
|
3275
3275
|
]),
|
|
3276
3276
|
terraform: _(() => [
|
|
3277
|
-
M(
|
|
3277
|
+
M(Un, {
|
|
3278
3278
|
"entity-record": r.formFields,
|
|
3279
3279
|
"entity-type": e.entityType
|
|
3280
3280
|
}, null, 8, ["entity-record", "entity-type"])
|
|
@@ -3289,7 +3289,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3289
3289
|
});
|
|
3290
3290
|
};
|
|
3291
3291
|
}
|
|
3292
|
-
}),
|
|
3292
|
+
}), ds = /* @__PURE__ */ oe(Yo, [["__scopeId", "data-v-612b1eac"]]), Wo = ["data-truncate"], Jo = /* @__PURE__ */ W({
|
|
3293
3293
|
__name: "EntityBaseTableCell",
|
|
3294
3294
|
props: {
|
|
3295
3295
|
keyName: {
|
|
@@ -3306,29 +3306,29 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3306
3306
|
}
|
|
3307
3307
|
},
|
|
3308
3308
|
setup(e) {
|
|
3309
|
-
const t = e, n =
|
|
3309
|
+
const t = e, n = F(() => {
|
|
3310
3310
|
var b;
|
|
3311
3311
|
return ((b = t.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3312
|
-
}), i =
|
|
3312
|
+
}), i = F(() => {
|
|
3313
3313
|
var b;
|
|
3314
3314
|
return ((b = n.value) == null ? void 0 : b.querySelector('[data-truncate="true"]')) || null;
|
|
3315
|
-
}), r =
|
|
3315
|
+
}), r = F(() => {
|
|
3316
3316
|
var w, x;
|
|
3317
3317
|
const b = (w = t.rowEl) == null ? void 0 : w.querySelectorAll("td");
|
|
3318
3318
|
return b ? ((x = b[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
|
|
3319
|
-
}), o =
|
|
3319
|
+
}), o = F(() => r.value || t.tooltip);
|
|
3320
3320
|
let a;
|
|
3321
3321
|
const l = () => {
|
|
3322
3322
|
a && (a.disconnect(), a = void 0);
|
|
3323
3323
|
}, s = () => {
|
|
3324
|
-
var w, x,
|
|
3324
|
+
var w, x, E;
|
|
3325
3325
|
let b = ((w = n.value) == null ? void 0 : w.clientWidth) || 0;
|
|
3326
3326
|
if (n.value && "getComputedStyle" in window) {
|
|
3327
3327
|
const G = window.getComputedStyle(n.value);
|
|
3328
3328
|
b -= (parseFloat(G.paddingLeft) || 0) + (parseFloat(G.paddingRight) || 0);
|
|
3329
3329
|
}
|
|
3330
|
-
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, g.value = ((
|
|
3331
|
-
}, c =
|
|
3330
|
+
d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = b, g.value = ((E = c.value) == null ? void 0 : E.innerText) || "";
|
|
3331
|
+
}, c = B({}), d = B(0), u = B(0), g = B(""), p = F(() => [i.value, n.value]), y = ve(
|
|
3332
3332
|
p,
|
|
3333
3333
|
(b) => {
|
|
3334
3334
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3342,10 +3342,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3342
3342
|
}
|
|
3343
3343
|
},
|
|
3344
3344
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3345
|
-
), C =
|
|
3346
|
-
return
|
|
3345
|
+
), C = F(() => o.value ? d.value > u.value : !1);
|
|
3346
|
+
return Pt(() => {
|
|
3347
3347
|
s();
|
|
3348
|
-
}),
|
|
3348
|
+
}), Jn(() => {
|
|
3349
3349
|
y();
|
|
3350
3350
|
}), (b, w) => {
|
|
3351
3351
|
const x = D("KTooltip");
|
|
@@ -3368,17 +3368,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3368
3368
|
]),
|
|
3369
3369
|
_: 3
|
|
3370
3370
|
}, 8, ["text"])
|
|
3371
|
-
], 8,
|
|
3371
|
+
], 8, Wo)) : j(b.$slots, "default", { key: 1 }, void 0, !0)
|
|
3372
3372
|
], 512);
|
|
3373
3373
|
};
|
|
3374
3374
|
}
|
|
3375
|
-
}),
|
|
3375
|
+
}), Go = /* @__PURE__ */ oe(Jo, [["__scopeId", "data-v-a3a65cac"]]), zo = { class: "toolbar-container" }, Qo = {
|
|
3376
3376
|
key: 0,
|
|
3377
3377
|
class: "toolbar-button-container"
|
|
3378
|
-
},
|
|
3378
|
+
}, Zo = {
|
|
3379
3379
|
key: 0,
|
|
3380
3380
|
class: "hidden"
|
|
3381
|
-
},
|
|
3381
|
+
}, Xo = /* @__PURE__ */ W({
|
|
3382
3382
|
__name: "EntityBaseTable",
|
|
3383
3383
|
props: {
|
|
3384
3384
|
// table header configuration
|
|
@@ -3523,7 +3523,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3523
3523
|
},
|
|
3524
3524
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3525
3525
|
setup(e, { emit: t }) {
|
|
3526
|
-
const n = e, i = t, { i18n: { t: r } } = V.useI18n(), o =
|
|
3526
|
+
const n = e, i = t, { i18n: { t: r } } = V.useI18n(), o = F(() => {
|
|
3527
3527
|
var m, v;
|
|
3528
3528
|
return typeof n.errorMessage == "string" ? {
|
|
3529
3529
|
hasError: !!n.errorMessage,
|
|
@@ -3534,13 +3534,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3534
3534
|
title: (m = n.errorMessage) == null ? void 0 : m.title,
|
|
3535
3535
|
message: (v = n.errorMessage) == null ? void 0 : v.message
|
|
3536
3536
|
};
|
|
3537
|
-
}), a =
|
|
3537
|
+
}), a = F(() => n.cacheIdentifier || n.preferencesStorageKey), l = F(() => {
|
|
3538
3538
|
const m = [];
|
|
3539
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3540
|
-
const q = n.tableHeaders[
|
|
3539
|
+
return Object.keys(n.tableHeaders).forEach((I) => {
|
|
3540
|
+
const q = n.tableHeaders[I];
|
|
3541
3541
|
m.push({
|
|
3542
|
-
label: q.label ??
|
|
3543
|
-
key:
|
|
3542
|
+
label: q.label ?? I,
|
|
3543
|
+
key: I,
|
|
3544
3544
|
sortable: q.sortable ?? !1,
|
|
3545
3545
|
hidable: q.hidable ?? !0
|
|
3546
3546
|
});
|
|
@@ -3552,7 +3552,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3552
3552
|
"data-rowid": m.id,
|
|
3553
3553
|
"data-testid": m.name,
|
|
3554
3554
|
...n.rowAttributes(m)
|
|
3555
|
-
}), c =
|
|
3555
|
+
}), c = B({}), d = (m) => {
|
|
3556
3556
|
var v;
|
|
3557
3557
|
return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${m.id}"]`);
|
|
3558
3558
|
}, u = (m) => {
|
|
@@ -3571,11 +3571,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3571
3571
|
i("empty-state-cta-clicked"), y();
|
|
3572
3572
|
}, y = () => {
|
|
3573
3573
|
i("clear-search-input");
|
|
3574
|
-
}, C =
|
|
3574
|
+
}, C = F(() => n.disableRowClick ? void 0 : (m, v) => {
|
|
3575
3575
|
i("click:row", v);
|
|
3576
3576
|
}), b = (m) => {
|
|
3577
3577
|
i("sort", m);
|
|
3578
|
-
}, { hideTableToolbar: w, handleStateChange: x } = V.useTableState(() => n.query), { setTablePreferences:
|
|
3578
|
+
}, { hideTableToolbar: w, handleStateChange: x } = V.useTableState(() => n.query), { setTablePreferences: E, getTablePreferences: G } = ui(), Q = B(G(a.value, n.defaultTablePreferences)), k = F(() => {
|
|
3579
3579
|
const m = G(a.value);
|
|
3580
3580
|
return {
|
|
3581
3581
|
...n.initialFetcherParams,
|
|
@@ -3584,21 +3584,21 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3584
3584
|
}), A = (m) => {
|
|
3585
3585
|
Q.value = m, l.value.forEach((v) => {
|
|
3586
3586
|
!("hidable" in v) || !Q.value.columnVisibility || v.hidable === !1 && (Q.value.columnVisibility[v.key] = !0);
|
|
3587
|
-
}), a.value &&
|
|
3588
|
-
}, f =
|
|
3587
|
+
}), a.value && E(a.value, m);
|
|
3588
|
+
}, f = F(() => ({
|
|
3589
3589
|
disablePageJump: n.disablePaginationPageJump,
|
|
3590
3590
|
offset: n.paginationType === "offset",
|
|
3591
3591
|
...n.paginationAttributes
|
|
3592
3592
|
}));
|
|
3593
3593
|
return (m, v) => {
|
|
3594
|
-
const
|
|
3594
|
+
const I = D("KTableData"), q = D("KCard");
|
|
3595
3595
|
return h(), N(q, {
|
|
3596
3596
|
class: "kong-ui-entity-base-table",
|
|
3597
3597
|
title: e.title,
|
|
3598
3598
|
"title-tag": e.titleTag
|
|
3599
3599
|
}, {
|
|
3600
3600
|
default: _(() => [
|
|
3601
|
-
M(
|
|
3601
|
+
M(I, {
|
|
3602
3602
|
ref_key: "tableRefs",
|
|
3603
3603
|
ref: c,
|
|
3604
3604
|
"cache-identifier": a.value,
|
|
@@ -3635,9 +3635,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3635
3635
|
"onUpdate:tablePreferences": A
|
|
3636
3636
|
}, we({
|
|
3637
3637
|
toolbar: _(() => [
|
|
3638
|
-
L("div",
|
|
3638
|
+
L("div", zo, [
|
|
3639
3639
|
j(m.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3640
|
-
m.$slots["toolbar-button"] ? (h(), S("div",
|
|
3640
|
+
m.$slots["toolbar-button"] ? (h(), S("div", Qo, [
|
|
3641
3641
|
j(m.$slots, "toolbar-button", {}, void 0, !0)
|
|
3642
3642
|
])) : K("", !0)
|
|
3643
3643
|
])
|
|
@@ -3654,16 +3654,16 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3654
3654
|
]),
|
|
3655
3655
|
key: "0"
|
|
3656
3656
|
} : void 0,
|
|
3657
|
-
se(e.tableHeaders, (P,
|
|
3658
|
-
name:
|
|
3657
|
+
se(e.tableHeaders, (P, R) => ({
|
|
3658
|
+
name: R,
|
|
3659
3659
|
fn: _(({ row: Z, rowValue: Y }) => [
|
|
3660
|
-
M(
|
|
3661
|
-
"key-name": String(
|
|
3660
|
+
M(Go, {
|
|
3661
|
+
"key-name": String(R),
|
|
3662
3662
|
"row-el": d(Z),
|
|
3663
3663
|
tooltip: P.tooltip
|
|
3664
3664
|
}, {
|
|
3665
3665
|
default: _(() => [
|
|
3666
|
-
j(m.$slots,
|
|
3666
|
+
j(m.$slots, R, {
|
|
3667
3667
|
row: Z,
|
|
3668
3668
|
rowKey: e.rowKey,
|
|
3669
3669
|
rowValue: Y
|
|
@@ -3678,12 +3678,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3678
3678
|
e.query ? void 0 : {
|
|
3679
3679
|
name: "empty-state-action-icon",
|
|
3680
3680
|
fn: _(() => [
|
|
3681
|
-
M($(
|
|
3681
|
+
M($(Ht))
|
|
3682
3682
|
]),
|
|
3683
3683
|
key: "1"
|
|
3684
3684
|
}
|
|
3685
3685
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3686
|
-
m.$slots["outside-actions"] && $(w) ? (h(), S("div",
|
|
3686
|
+
m.$slots["outside-actions"] && $(w) ? (h(), S("div", Zo, [
|
|
3687
3687
|
j(m.$slots, "outside-actions", {}, void 0, !0)
|
|
3688
3688
|
])) : K("", !0)
|
|
3689
3689
|
]),
|
|
@@ -3691,13 +3691,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3691
3691
|
}, 8, ["title", "title-tag"]);
|
|
3692
3692
|
};
|
|
3693
3693
|
}
|
|
3694
|
-
}),
|
|
3694
|
+
}), fs = /* @__PURE__ */ oe(Xo, [["__scopeId", "data-v-d86d3e31"]]), el = {
|
|
3695
3695
|
key: 0,
|
|
3696
3696
|
class: "kong-ui-entity-delete-error"
|
|
3697
|
-
},
|
|
3697
|
+
}, tl = {
|
|
3698
3698
|
key: 1,
|
|
3699
3699
|
class: "description"
|
|
3700
|
-
},
|
|
3700
|
+
}, nl = /* @__PURE__ */ W({
|
|
3701
3701
|
__name: "EntityDeleteModal",
|
|
3702
3702
|
props: {
|
|
3703
3703
|
visible: {
|
|
@@ -3736,7 +3736,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3736
3736
|
},
|
|
3737
3737
|
emits: ["cancel", "proceed"],
|
|
3738
3738
|
setup(e, { emit: t }) {
|
|
3739
|
-
const { i18nT: n } = V.useI18n(), i = e, r = t, o =
|
|
3739
|
+
const { i18nT: n } = V.useI18n(), i = e, r = t, o = F(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3740
3740
|
r("cancel");
|
|
3741
3741
|
}, l = () => {
|
|
3742
3742
|
r("proceed");
|
|
@@ -3755,7 +3755,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3755
3755
|
onProceed: l
|
|
3756
3756
|
}, {
|
|
3757
3757
|
default: _(() => [
|
|
3758
|
-
e.error ? (h(), S("div",
|
|
3758
|
+
e.error ? (h(), S("div", el, [
|
|
3759
3759
|
M(d, { appearance: "danger" }, {
|
|
3760
3760
|
default: _(() => [
|
|
3761
3761
|
U(O(e.error), 1)
|
|
@@ -3781,7 +3781,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3781
3781
|
key: "0"
|
|
3782
3782
|
} : void 0
|
|
3783
3783
|
]), 1032, ["keypath"]),
|
|
3784
|
-
i.description || s.$slots.description ? (h(), S("div",
|
|
3784
|
+
i.description || s.$slots.description ? (h(), S("div", tl, [
|
|
3785
3785
|
j(s.$slots, "description", {}, () => [
|
|
3786
3786
|
L("p", null, O(i.description), 1)
|
|
3787
3787
|
], !0)
|
|
@@ -3791,13 +3791,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3791
3791
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3792
3792
|
};
|
|
3793
3793
|
}
|
|
3794
|
-
}),
|
|
3794
|
+
}), ps = /* @__PURE__ */ oe(nl, [["__scopeId", "data-v-4361d622"]]), il = {
|
|
3795
3795
|
fill: "none",
|
|
3796
3796
|
height: "20",
|
|
3797
3797
|
viewBox: "0 0 20 20",
|
|
3798
3798
|
width: "20",
|
|
3799
3799
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3800
|
-
},
|
|
3800
|
+
}, rl = {
|
|
3801
3801
|
id: "mask0_180_20349",
|
|
3802
3802
|
height: "20",
|
|
3803
3803
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3805,35 +3805,35 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3805
3805
|
width: "20",
|
|
3806
3806
|
x: "0",
|
|
3807
3807
|
y: "0"
|
|
3808
|
-
},
|
|
3808
|
+
}, al = ["fill"], ol = { mask: "url(#mask0_180_20349)" }, ll = ["fill"], Kt = /* @__PURE__ */ W({
|
|
3809
3809
|
__name: "IconFilter",
|
|
3810
3810
|
props: {
|
|
3811
3811
|
color: {
|
|
3812
3812
|
type: String,
|
|
3813
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3813
|
+
default: `var(--kong-ui-entity-filter-color, ${Vi})`
|
|
3814
3814
|
}
|
|
3815
3815
|
},
|
|
3816
3816
|
setup(e) {
|
|
3817
|
-
return (t, n) => (h(), S("svg",
|
|
3818
|
-
L("mask",
|
|
3817
|
+
return (t, n) => (h(), S("svg", il, [
|
|
3818
|
+
L("mask", rl, [
|
|
3819
3819
|
L("rect", {
|
|
3820
3820
|
fill: e.color,
|
|
3821
3821
|
height: "20",
|
|
3822
3822
|
width: "20"
|
|
3823
|
-
}, null, 8,
|
|
3823
|
+
}, null, 8, al)
|
|
3824
3824
|
]),
|
|
3825
|
-
L("g",
|
|
3825
|
+
L("g", ol, [
|
|
3826
3826
|
L("path", {
|
|
3827
3827
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3828
3828
|
fill: e.color
|
|
3829
|
-
}, null, 8,
|
|
3829
|
+
}, null, 8, ll)
|
|
3830
3830
|
])
|
|
3831
3831
|
]));
|
|
3832
3832
|
}
|
|
3833
|
-
}),
|
|
3833
|
+
}), sl = {
|
|
3834
3834
|
key: 1,
|
|
3835
3835
|
class: "kong-ui-entity-filter"
|
|
3836
|
-
},
|
|
3836
|
+
}, cl = { class: "kong-ui-entity-filter-menu" }, ul = ["data-testid"], dl = ["onClick", "onKeydown"], fl = { class: "menu-item-indicator" }, pl = { class: "menu-item-body" }, ml = ["for"], hl = { class: "menu-item-buttons" }, gl = { class: "filter-clear-button-container" }, yl = /* @__PURE__ */ W({
|
|
3837
3837
|
__name: "EntityFilter",
|
|
3838
3838
|
props: {
|
|
3839
3839
|
// filter config, either exact match or fuzzy match
|
|
@@ -3853,12 +3853,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3853
3853
|
},
|
|
3854
3854
|
emits: ["update:modelValue"],
|
|
3855
3855
|
setup(e, { emit: t }) {
|
|
3856
|
-
const { i18n: { t: n } } = V.useI18n(), i = e, r = t, o =
|
|
3856
|
+
const { i18n: { t: n } } = V.useI18n(), i = e, r = t, o = B(!1), a = B({}), l = B(/* @__PURE__ */ new Set()), s = F(() => {
|
|
3857
3857
|
const k = [];
|
|
3858
3858
|
return new URLSearchParams(i.modelValue).forEach((A, f) => {
|
|
3859
3859
|
A !== "" && k.push(f);
|
|
3860
3860
|
}), k;
|
|
3861
|
-
}), c =
|
|
3861
|
+
}), c = F(() => {
|
|
3862
3862
|
const k = i.config.fields;
|
|
3863
3863
|
return Object.keys(k).filter((A) => {
|
|
3864
3864
|
var f;
|
|
@@ -3892,10 +3892,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3892
3892
|
a.value = {
|
|
3893
3893
|
...a.value,
|
|
3894
3894
|
[k]: ""
|
|
3895
|
-
},
|
|
3895
|
+
}, E();
|
|
3896
3896
|
}, x = () => {
|
|
3897
|
-
a.value = {},
|
|
3898
|
-
},
|
|
3897
|
+
a.value = {}, E(!0);
|
|
3898
|
+
}, E = (k = !1) => {
|
|
3899
3899
|
const A = Object.keys(a.value).reduce((f, m) => (a.value[m] && (f[m] = `${a.value[m]}`), f), {});
|
|
3900
3900
|
k && (o.value = !1), r("update:modelValue", new URLSearchParams(A).toString());
|
|
3901
3901
|
}, G = (k) => {
|
|
@@ -3918,10 +3918,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3918
3918
|
"onUpdate:modelValue": g
|
|
3919
3919
|
}, {
|
|
3920
3920
|
before: _(() => [
|
|
3921
|
-
M(
|
|
3921
|
+
M(Kt)
|
|
3922
3922
|
]),
|
|
3923
3923
|
after: _(() => [
|
|
3924
|
-
be(M($(
|
|
3924
|
+
be(M($(ti), {
|
|
3925
3925
|
class: "kong-ui-entity-filter-clear",
|
|
3926
3926
|
role: "button",
|
|
3927
3927
|
tabindex: "0",
|
|
@@ -3931,14 +3931,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3931
3931
|
])
|
|
3932
3932
|
]),
|
|
3933
3933
|
_: 1
|
|
3934
|
-
}, 8, ["model-value", "placeholder"])) : (h(), S("div",
|
|
3934
|
+
}, 8, ["model-value", "placeholder"])) : (h(), S("div", sl, [
|
|
3935
3935
|
M(m, {
|
|
3936
3936
|
appearance: "tertiary",
|
|
3937
3937
|
"data-testid": "filter-button",
|
|
3938
3938
|
onClick: d
|
|
3939
3939
|
}, {
|
|
3940
3940
|
default: _(() => [
|
|
3941
|
-
M(
|
|
3941
|
+
M(Kt),
|
|
3942
3942
|
U(" " + O($(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
|
|
3943
3943
|
]),
|
|
3944
3944
|
_: 1
|
|
@@ -3949,62 +3949,62 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
3949
3949
|
}, null, 512), [
|
|
3950
3950
|
[xe, o.value]
|
|
3951
3951
|
]),
|
|
3952
|
-
be(L("div",
|
|
3953
|
-
(h(!0), S(ce, null, se(c.value, (
|
|
3952
|
+
be(L("div", cl, [
|
|
3953
|
+
(h(!0), S(ce, null, se(c.value, (I) => {
|
|
3954
3954
|
var q, P;
|
|
3955
3955
|
return h(), S("div", {
|
|
3956
|
-
key:
|
|
3956
|
+
key: I.value,
|
|
3957
3957
|
class: "kong-ui-entity-filter-menu-item",
|
|
3958
|
-
"data-testid":
|
|
3958
|
+
"data-testid": I.value
|
|
3959
3959
|
}, [
|
|
3960
3960
|
L("span", {
|
|
3961
|
-
class: de(["menu-item-title", { expanded: l.value.has(
|
|
3961
|
+
class: de(["menu-item-title", { expanded: l.value.has(I.value) }]),
|
|
3962
3962
|
role: "button",
|
|
3963
3963
|
tabindex: "0",
|
|
3964
|
-
onClick: (
|
|
3965
|
-
onKeydown:
|
|
3964
|
+
onClick: (R) => u(I.value),
|
|
3965
|
+
onKeydown: Gn((R) => u(I.value), ["enter"])
|
|
3966
3966
|
}, [
|
|
3967
|
-
U(O(
|
|
3968
|
-
be(L("span",
|
|
3969
|
-
[xe, s.value.includes(
|
|
3967
|
+
U(O(I.label) + " ", 1),
|
|
3968
|
+
be(L("span", fl, null, 512), [
|
|
3969
|
+
[xe, s.value.includes(I.value)]
|
|
3970
3970
|
]),
|
|
3971
|
-
M($(
|
|
3972
|
-
class: de(["menu-item-expand-icon", { expanded: l.value.has(
|
|
3973
|
-
color: $(
|
|
3971
|
+
M($(ni), {
|
|
3972
|
+
class: de(["menu-item-expand-icon", { expanded: l.value.has(I.value) }]),
|
|
3973
|
+
color: $(Wi)
|
|
3974
3974
|
}, null, 8, ["class", "color"])
|
|
3975
|
-
], 42,
|
|
3976
|
-
be(L("div",
|
|
3975
|
+
], 42, dl),
|
|
3976
|
+
be(L("div", pl, [
|
|
3977
3977
|
L("label", {
|
|
3978
3978
|
class: "menu-item-label",
|
|
3979
|
-
for: y(
|
|
3980
|
-
}, O($(n)("filter.fieldLabel")), 9,
|
|
3981
|
-
((P = (q = e.config.schema) == null ? void 0 : q[
|
|
3979
|
+
for: y(I.value)
|
|
3980
|
+
}, O($(n)("filter.fieldLabel")), 9, ml),
|
|
3981
|
+
((P = (q = e.config.schema) == null ? void 0 : q[I.value]) == null ? void 0 : P.type) === "select" ? (h(), N(v, {
|
|
3982
3982
|
key: 0,
|
|
3983
|
-
id: y(
|
|
3984
|
-
modelValue: a.value[
|
|
3985
|
-
"onUpdate:modelValue": (
|
|
3986
|
-
"enable-filtering": G(
|
|
3987
|
-
"filter-function": (
|
|
3988
|
-
items: C(
|
|
3983
|
+
id: y(I.value),
|
|
3984
|
+
modelValue: a.value[I.value],
|
|
3985
|
+
"onUpdate:modelValue": (R) => a.value[I.value] = R,
|
|
3986
|
+
"enable-filtering": G(I.value),
|
|
3987
|
+
"filter-function": (R) => Q(I.value, R),
|
|
3988
|
+
items: C(I.value),
|
|
3989
3989
|
placeholder: $(n)("filter.selectPlaceholder")
|
|
3990
3990
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (h(), N(f, {
|
|
3991
3991
|
key: 1,
|
|
3992
|
-
id: y(
|
|
3993
|
-
modelValue: a.value[
|
|
3994
|
-
"onUpdate:modelValue": (
|
|
3992
|
+
id: y(I.value),
|
|
3993
|
+
modelValue: a.value[I.value],
|
|
3994
|
+
"onUpdate:modelValue": (R) => a.value[I.value] = R,
|
|
3995
3995
|
autocomplete: "off",
|
|
3996
3996
|
placeholder: $(n)("filter.inputPlaceholder"),
|
|
3997
|
-
type: b(
|
|
3997
|
+
type: b(I.value)
|
|
3998
3998
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3999
3999
|
], 512), [
|
|
4000
|
-
[xe, l.value.has(
|
|
4000
|
+
[xe, l.value.has(I.value)]
|
|
4001
4001
|
]),
|
|
4002
|
-
be(L("div",
|
|
4002
|
+
be(L("div", hl, [
|
|
4003
4003
|
M(m, {
|
|
4004
4004
|
appearance: "tertiary",
|
|
4005
4005
|
"data-testid": "apply-filter",
|
|
4006
4006
|
size: "small",
|
|
4007
|
-
onClick: A[0] || (A[0] = (
|
|
4007
|
+
onClick: A[0] || (A[0] = (R) => E(!0))
|
|
4008
4008
|
}, {
|
|
4009
4009
|
default: _(() => [
|
|
4010
4010
|
U(O($(n)("filter.applyButtonText")), 1)
|
|
@@ -4015,7 +4015,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4015
4015
|
appearance: "tertiary",
|
|
4016
4016
|
"data-testid": "clear-filter",
|
|
4017
4017
|
size: "small",
|
|
4018
|
-
onClick: (
|
|
4018
|
+
onClick: (R) => w(I.value)
|
|
4019
4019
|
}, {
|
|
4020
4020
|
default: _(() => [
|
|
4021
4021
|
U(O($(n)("filter.clearButtonText")), 1)
|
|
@@ -4023,11 +4023,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4023
4023
|
_: 2
|
|
4024
4024
|
}, 1032, ["onClick"])
|
|
4025
4025
|
], 512), [
|
|
4026
|
-
[xe, l.value.has(
|
|
4026
|
+
[xe, l.value.has(I.value)]
|
|
4027
4027
|
])
|
|
4028
|
-
], 8,
|
|
4028
|
+
], 8, ul);
|
|
4029
4029
|
}), 128)),
|
|
4030
|
-
L("div",
|
|
4030
|
+
L("div", gl, [
|
|
4031
4031
|
M(m, {
|
|
4032
4032
|
appearance: "tertiary",
|
|
4033
4033
|
size: "small",
|
|
@@ -4045,7 +4045,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4045
4045
|
]));
|
|
4046
4046
|
};
|
|
4047
4047
|
}
|
|
4048
|
-
}),
|
|
4048
|
+
}), ms = /* @__PURE__ */ oe(yl, [["__scopeId", "data-v-084f7978"]]), hs = /* @__PURE__ */ W({
|
|
4049
4049
|
__name: "EntityToggleModal",
|
|
4050
4050
|
props: {
|
|
4051
4051
|
visible: {
|
|
@@ -4077,9 +4077,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4077
4077
|
},
|
|
4078
4078
|
emits: ["cancel", "proceed"],
|
|
4079
4079
|
setup(e, { emit: t }) {
|
|
4080
|
-
const { i18n: { t: n }, i18nT: i } = V.useI18n(), r = e, o = t, a =
|
|
4080
|
+
const { i18n: { t: n }, i18nT: i } = V.useI18n(), r = e, o = t, a = B(!1), l = F(
|
|
4081
4081
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4082
|
-
), s =
|
|
4082
|
+
), s = F(
|
|
4083
4083
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4084
4084
|
), c = () => o("cancel"), d = async () => {
|
|
4085
4085
|
if (r.onConfirm) {
|
|
@@ -4095,7 +4095,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4095
4095
|
};
|
|
4096
4096
|
return (u, g) => {
|
|
4097
4097
|
const p = D("KPrompt");
|
|
4098
|
-
return h(), N(
|
|
4098
|
+
return h(), N(Ut, { to: "body" }, [
|
|
4099
4099
|
M(p, {
|
|
4100
4100
|
"action-button-disabled": a.value,
|
|
4101
4101
|
"action-button-text": s.value,
|
|
@@ -4124,7 +4124,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4124
4124
|
]);
|
|
4125
4125
|
};
|
|
4126
4126
|
}
|
|
4127
|
-
}),
|
|
4127
|
+
}), gs = /* @__PURE__ */ W({
|
|
4128
4128
|
__name: "PermissionsWrapper",
|
|
4129
4129
|
props: {
|
|
4130
4130
|
/**
|
|
@@ -4146,7 +4146,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4146
4146
|
}
|
|
4147
4147
|
},
|
|
4148
4148
|
setup(e) {
|
|
4149
|
-
const t = e, n =
|
|
4149
|
+
const t = e, n = B(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4150
4150
|
return ve(() => t.authFunction, async () => {
|
|
4151
4151
|
n.value = await t.authFunction();
|
|
4152
4152
|
}, { immediate: !0 }), (r, o) => i.value ? j(r.$slots, "default", {
|
|
@@ -4154,37 +4154,40 @@ const Bo = { class: "yaml-config config-card-code-block" }, Un = /* @__PURE__ */
|
|
|
4154
4154
|
isAllowed: n.value
|
|
4155
4155
|
}) : K("", !0);
|
|
4156
4156
|
}
|
|
4157
|
-
});
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
function bl(e, t = 0) {
|
|
4157
|
+
}), ee = [];
|
|
4158
|
+
for (let e = 0; e < 256; ++e)
|
|
4159
|
+
ee.push((e + 256).toString(16).slice(1));
|
|
4160
|
+
function vl(e, t = 0) {
|
|
4162
4161
|
return (ee[e[t + 0]] + ee[e[t + 1]] + ee[e[t + 2]] + ee[e[t + 3]] + "-" + ee[e[t + 4]] + ee[e[t + 5]] + "-" + ee[e[t + 6]] + ee[e[t + 7]] + "-" + ee[e[t + 8]] + ee[e[t + 9]] + "-" + ee[e[t + 10]] + ee[e[t + 11]] + ee[e[t + 12]] + ee[e[t + 13]] + ee[e[t + 14]] + ee[e[t + 15]]).toLowerCase();
|
|
4163
4162
|
}
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4163
|
+
let Je;
|
|
4164
|
+
const bl = new Uint8Array(16);
|
|
4165
|
+
function xl() {
|
|
4166
|
+
if (!Je) {
|
|
4167
|
+
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4168
|
+
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4169
|
+
Je = crypto.getRandomValues.bind(crypto);
|
|
4170
|
+
}
|
|
4171
|
+
return Je(bl);
|
|
4169
4172
|
}
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4173
|
-
|
|
4174
|
-
|
|
4175
|
-
if (Mt.randomUUID && !e)
|
|
4176
|
-
return Mt.randomUUID();
|
|
4173
|
+
const Cl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Nt = { randomUUID: Cl };
|
|
4174
|
+
function kl(e, t, n) {
|
|
4175
|
+
var r;
|
|
4176
|
+
if (Nt.randomUUID && !e)
|
|
4177
|
+
return Nt.randomUUID();
|
|
4177
4178
|
e = e || {};
|
|
4178
|
-
|
|
4179
|
-
|
|
4179
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? xl();
|
|
4180
|
+
if (i.length < 16)
|
|
4181
|
+
throw new Error("Random bytes length must be >= 16");
|
|
4182
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, vl(i);
|
|
4180
4183
|
}
|
|
4181
|
-
const
|
|
4184
|
+
const Al = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, wl = {
|
|
4182
4185
|
key: 1,
|
|
4183
4186
|
class: "form-section-description"
|
|
4184
|
-
},
|
|
4187
|
+
}, Sl = {
|
|
4185
4188
|
key: 2,
|
|
4186
4189
|
class: "form-section-footer"
|
|
4187
|
-
},
|
|
4190
|
+
}, $l = { class: "form-section-content" }, Tl = /* @__PURE__ */ W({
|
|
4188
4191
|
__name: "EntityFormSection",
|
|
4189
4192
|
props: {
|
|
4190
4193
|
title: {
|
|
@@ -4213,18 +4216,18 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4213
4216
|
}
|
|
4214
4217
|
},
|
|
4215
4218
|
setup(e) {
|
|
4216
|
-
const t =
|
|
4219
|
+
const t = De(), n = kl();
|
|
4217
4220
|
return (i, r) => (h(), S("div", {
|
|
4218
4221
|
"aria-labelledby": e.title ? $(n) : void 0,
|
|
4219
4222
|
class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4220
4223
|
role: "group"
|
|
4221
4224
|
}, [
|
|
4222
|
-
L("div",
|
|
4225
|
+
L("div", _l, [
|
|
4223
4226
|
e.hideInfoHeader ? K("", !0) : (h(), S("div", {
|
|
4224
4227
|
key: 0,
|
|
4225
4228
|
class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4226
4229
|
}, [
|
|
4227
|
-
e.title ? (h(), N(
|
|
4230
|
+
e.title ? (h(), N(je(e.titleTag), {
|
|
4228
4231
|
key: 0,
|
|
4229
4232
|
id: $(n),
|
|
4230
4233
|
class: "form-section-title"
|
|
@@ -4234,31 +4237,31 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4234
4237
|
]),
|
|
4235
4238
|
_: 1
|
|
4236
4239
|
}, 8, ["id"])) : K("", !0),
|
|
4237
|
-
e.description || $(t).description ? (h(), S("div",
|
|
4240
|
+
e.description || $(t).description ? (h(), S("div", wl, [
|
|
4238
4241
|
j(i.$slots, "description", {}, () => [
|
|
4239
4242
|
L("p", null, O(e.description), 1)
|
|
4240
4243
|
], !0)
|
|
4241
4244
|
])) : K("", !0),
|
|
4242
|
-
$(t).footer ? (h(), S("div",
|
|
4245
|
+
$(t).footer ? (h(), S("div", Sl, [
|
|
4243
4246
|
j(i.$slots, "footer", {}, void 0, !0)
|
|
4244
4247
|
])) : K("", !0)
|
|
4245
4248
|
], 2)),
|
|
4246
|
-
L("div",
|
|
4249
|
+
L("div", $l, [
|
|
4247
4250
|
j(i.$slots, "default", {}, void 0, !0)
|
|
4248
4251
|
])
|
|
4249
4252
|
])
|
|
4250
|
-
], 10,
|
|
4253
|
+
], 10, Al));
|
|
4251
4254
|
}
|
|
4252
|
-
}),
|
|
4255
|
+
}), ys = /* @__PURE__ */ oe(Tl, [["__scopeId", "data-v-b1f74200"]]), Il = { class: "ff-form-section" }, Fl = { class: "header" }, El = {
|
|
4253
4256
|
key: 0,
|
|
4254
4257
|
class: "step"
|
|
4255
|
-
},
|
|
4258
|
+
}, Ol = { class: "header-content" }, Ll = { class: "header-title" }, Rl = {
|
|
4256
4259
|
key: 0,
|
|
4257
4260
|
class: "header-description"
|
|
4258
|
-
},
|
|
4261
|
+
}, Bl = {
|
|
4259
4262
|
key: 1,
|
|
4260
4263
|
class: "header-extra"
|
|
4261
|
-
},
|
|
4264
|
+
}, Kl = { class: "content" }, Nl = /* @__PURE__ */ W({
|
|
4262
4265
|
__name: "EntityFormBlock",
|
|
4263
4266
|
props: {
|
|
4264
4267
|
step: {},
|
|
@@ -4266,12 +4269,12 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4266
4269
|
description: { default: "" }
|
|
4267
4270
|
},
|
|
4268
4271
|
setup(e) {
|
|
4269
|
-
const t =
|
|
4270
|
-
return (n, i) => (h(), S("div",
|
|
4271
|
-
L("header",
|
|
4272
|
-
n.step != null ? (h(), S("div",
|
|
4273
|
-
L("div",
|
|
4274
|
-
L("h2",
|
|
4272
|
+
const t = De();
|
|
4273
|
+
return (n, i) => (h(), S("div", Il, [
|
|
4274
|
+
L("header", Fl, [
|
|
4275
|
+
n.step != null ? (h(), S("div", El, O(n.step), 1)) : K("", !0),
|
|
4276
|
+
L("div", Ol, [
|
|
4277
|
+
L("h2", Ll, [
|
|
4275
4278
|
j(n.$slots, "title", {}, () => [
|
|
4276
4279
|
U(O(n.title), 1)
|
|
4277
4280
|
], !0)
|
|
@@ -4282,22 +4285,22 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4282
4285
|
], !0)
|
|
4283
4286
|
])) : K("", !0)
|
|
4284
4287
|
]),
|
|
4285
|
-
t.extra ? (h(), S("div",
|
|
4288
|
+
t.extra ? (h(), S("div", Bl, [
|
|
4286
4289
|
j(n.$slots, "extra", {}, void 0, !0)
|
|
4287
4290
|
])) : K("", !0)
|
|
4288
4291
|
]),
|
|
4289
|
-
L("div",
|
|
4292
|
+
L("div", Kl, [
|
|
4290
4293
|
j(n.$slots, "default", {}, void 0, !0)
|
|
4291
4294
|
])
|
|
4292
4295
|
]));
|
|
4293
4296
|
}
|
|
4294
|
-
}),
|
|
4297
|
+
}), vs = /* @__PURE__ */ oe(Nl, [["__scopeId", "data-v-cb6d2e95"]]), Ml = {
|
|
4295
4298
|
class: "kong-ui-public-entity-link",
|
|
4296
4299
|
"data-testid": "entity-link-parent"
|
|
4297
|
-
},
|
|
4300
|
+
}, jl = {
|
|
4298
4301
|
key: 0,
|
|
4299
4302
|
class: "deleted-entity"
|
|
4300
|
-
},
|
|
4303
|
+
}, Dl = { key: 1 }, Pl = ["onClick"], Ul = /* @__PURE__ */ W({
|
|
4301
4304
|
__name: "EntityLink",
|
|
4302
4305
|
props: {
|
|
4303
4306
|
entityLinkData: {
|
|
@@ -4321,10 +4324,10 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4321
4324
|
}
|
|
4322
4325
|
},
|
|
4323
4326
|
setup(e) {
|
|
4324
|
-
const t = e, n =
|
|
4327
|
+
const t = e, n = B(), { isTruncated: i } = V.useTruncationDetector(n), { i18n: { t: r } } = V.useI18n(), o = r("global.actions.copyId"), a = B(o), l = F(() => t.entityLinkData.deleted ?? !1), s = F(() => {
|
|
4325
4328
|
var u;
|
|
4326
4329
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4327
|
-
}), c =
|
|
4330
|
+
}), c = F(() => {
|
|
4328
4331
|
var u;
|
|
4329
4332
|
return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4330
4333
|
}), d = async (u) => {
|
|
@@ -4334,8 +4337,8 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4334
4337
|
};
|
|
4335
4338
|
return (u, g) => {
|
|
4336
4339
|
const p = D("KTooltip"), y = D("KExternalLink"), C = D("KClipboardProvider");
|
|
4337
|
-
return h(), S("div",
|
|
4338
|
-
l.value ? (h(), S("div",
|
|
4340
|
+
return h(), S("div", Ml, [
|
|
4341
|
+
l.value ? (h(), S("div", jl, O(c.value), 1)) : s.value ? s.value ? (h(), N(y, {
|
|
4339
4342
|
key: 2,
|
|
4340
4343
|
class: "entity-link",
|
|
4341
4344
|
"hide-icon": !e.newWindow,
|
|
@@ -4357,7 +4360,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4357
4360
|
}, 8, ["text"])
|
|
4358
4361
|
]),
|
|
4359
4362
|
_: 1
|
|
4360
|
-
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (h(), S("div",
|
|
4363
|
+
}, 8, ["hide-icon", "href", "target"])) : K("", !0) : (h(), S("div", Dl, O(" – "))),
|
|
4361
4364
|
s.value && e.allowCopy ? (h(), N(p, {
|
|
4362
4365
|
key: a.value,
|
|
4363
4366
|
class: "copy-uuid-tooltip",
|
|
@@ -4370,15 +4373,15 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4370
4373
|
default: _(({ copyToClipboard: b }) => [
|
|
4371
4374
|
L("span", {
|
|
4372
4375
|
class: "entity-link-copy-id",
|
|
4373
|
-
onClick:
|
|
4376
|
+
onClick: Le((w) => d(b), ["stop"])
|
|
4374
4377
|
}, [
|
|
4375
|
-
M($(
|
|
4378
|
+
M($(ii), {
|
|
4376
4379
|
class: "copy-icon",
|
|
4377
|
-
color: $(
|
|
4380
|
+
color: $(Ji),
|
|
4378
4381
|
"data-testid": "copy-id",
|
|
4379
|
-
size: $(
|
|
4382
|
+
size: $(zi)
|
|
4380
4383
|
}, null, 8, ["color", "size"])
|
|
4381
|
-
], 8,
|
|
4384
|
+
], 8, Pl)
|
|
4382
4385
|
]),
|
|
4383
4386
|
_: 1
|
|
4384
4387
|
})
|
|
@@ -4388,40 +4391,40 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4388
4391
|
]);
|
|
4389
4392
|
};
|
|
4390
4393
|
}
|
|
4391
|
-
}),
|
|
4394
|
+
}), bs = /* @__PURE__ */ oe(Ul, [["__scopeId", "data-v-96efdfa5"]]), ql = { class: "kong-ui-public-entity-empty-state" }, Hl = { class: "entity-empty-state-content" }, Vl = {
|
|
4392
4395
|
key: 0,
|
|
4393
4396
|
class: "empty-state-image"
|
|
4394
|
-
},
|
|
4397
|
+
}, Yl = {
|
|
4395
4398
|
key: 1,
|
|
4396
4399
|
class: "entity-empty-state-title"
|
|
4397
|
-
},
|
|
4400
|
+
}, Wl = {
|
|
4398
4401
|
key: 2,
|
|
4399
4402
|
class: "entity-empty-state-description"
|
|
4400
|
-
},
|
|
4403
|
+
}, Jl = {
|
|
4401
4404
|
key: 3,
|
|
4402
4405
|
class: "entity-empty-state-pricing"
|
|
4403
|
-
},
|
|
4406
|
+
}, Gl = {
|
|
4404
4407
|
key: 0,
|
|
4405
4408
|
class: "entity-empty-state-message"
|
|
4406
|
-
},
|
|
4409
|
+
}, zl = {
|
|
4407
4410
|
key: 1,
|
|
4408
4411
|
class: "entity-empty-state-action"
|
|
4409
|
-
},
|
|
4412
|
+
}, Ql = {
|
|
4410
4413
|
key: 2,
|
|
4411
4414
|
class: "entity-empty-state-card-container"
|
|
4412
|
-
},
|
|
4415
|
+
}, Zl = {
|
|
4413
4416
|
key: 0,
|
|
4414
4417
|
class: "feature-icon"
|
|
4415
|
-
},
|
|
4418
|
+
}, Xl = { class: "card-header" }, es = ["title"], ts = {
|
|
4416
4419
|
key: 3,
|
|
4417
4420
|
class: "entity-empty-state-bottom-container"
|
|
4418
|
-
},
|
|
4421
|
+
}, ns = /* @__PURE__ */ W({
|
|
4419
4422
|
__name: "EntityEmptyState",
|
|
4420
4423
|
props: {
|
|
4421
4424
|
appearance: {
|
|
4422
4425
|
type: String,
|
|
4423
4426
|
default: () => "primary",
|
|
4424
|
-
validator: (e) =>
|
|
4427
|
+
validator: (e) => pt.includes(e)
|
|
4425
4428
|
},
|
|
4426
4429
|
title: {
|
|
4427
4430
|
type: String,
|
|
@@ -4456,17 +4459,17 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4456
4459
|
},
|
|
4457
4460
|
emits: ["click:create", "click:learn-more"],
|
|
4458
4461
|
setup(e) {
|
|
4459
|
-
const t = e, { i18n: { t: n } } = V.useI18n(), i =
|
|
4460
|
-
return
|
|
4462
|
+
const t = e, { i18n: { t: n } } = V.useI18n(), i = B(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => pt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4463
|
+
return tt(async () => {
|
|
4461
4464
|
i.value = await t.canCreate();
|
|
4462
4465
|
}), (a, l) => {
|
|
4463
4466
|
const s = D("KCard");
|
|
4464
|
-
return h(), S("div",
|
|
4465
|
-
L("div",
|
|
4466
|
-
a.$slots.image ? (h(), S("div",
|
|
4467
|
+
return h(), S("div", ql, [
|
|
4468
|
+
L("div", Hl, [
|
|
4469
|
+
a.$slots.image ? (h(), S("div", Vl, [
|
|
4467
4470
|
j(a.$slots, "image", {}, void 0, !0)
|
|
4468
4471
|
])) : K("", !0),
|
|
4469
|
-
e.title || a.$slots.title ? (h(), S("div",
|
|
4472
|
+
e.title || a.$slots.title ? (h(), S("div", Yl, [
|
|
4470
4473
|
L("h1", {
|
|
4471
4474
|
class: de(o.value)
|
|
4472
4475
|
}, [
|
|
@@ -4475,12 +4478,12 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4475
4478
|
], !0)
|
|
4476
4479
|
], 2)
|
|
4477
4480
|
])) : K("", !0),
|
|
4478
|
-
e.description || a.$slots.default ? (h(), S("div",
|
|
4481
|
+
e.description || a.$slots.default ? (h(), S("div", Wl, [
|
|
4479
4482
|
j(a.$slots, "default", {}, () => [
|
|
4480
4483
|
L("p", null, O(e.description), 1)
|
|
4481
4484
|
], !0)
|
|
4482
4485
|
])) : K("", !0),
|
|
4483
|
-
e.pricing || a.$slots.pricing ? (h(), S("div",
|
|
4486
|
+
e.pricing || a.$slots.pricing ? (h(), S("div", Jl, [
|
|
4484
4487
|
L("p", null, [
|
|
4485
4488
|
L("b", null, O($(n)("emptyState.pricingTitle")), 1),
|
|
4486
4489
|
l[2] || (l[2] = U()),
|
|
@@ -4490,12 +4493,12 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4490
4493
|
])
|
|
4491
4494
|
])) : K("", !0)
|
|
4492
4495
|
]),
|
|
4493
|
-
a.$slots.message ? (h(), S("div",
|
|
4496
|
+
a.$slots.message ? (h(), S("div", Gl, [
|
|
4494
4497
|
j(a.$slots, "message", {}, void 0, !0)
|
|
4495
4498
|
])) : K("", !0),
|
|
4496
|
-
r.value || e.learnMore || a.$slots.actions ? (h(), S("div",
|
|
4499
|
+
r.value || e.learnMore || a.$slots.actions ? (h(), S("div", zl, [
|
|
4497
4500
|
j(a.$slots, "actions", {}, () => [
|
|
4498
|
-
r.value ? (h(), N($(
|
|
4501
|
+
r.value ? (h(), N($(ft), {
|
|
4499
4502
|
key: 0,
|
|
4500
4503
|
appearance: "primary",
|
|
4501
4504
|
"data-testid": "entity-create-button",
|
|
@@ -4503,12 +4506,12 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4503
4506
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4504
4507
|
}, {
|
|
4505
4508
|
default: _(() => [
|
|
4506
|
-
M($(
|
|
4509
|
+
M($(Ht)),
|
|
4507
4510
|
U(" " + O(e.actionButtonText), 1)
|
|
4508
4511
|
]),
|
|
4509
4512
|
_: 1
|
|
4510
4513
|
}, 8, ["size"])) : K("", !0),
|
|
4511
|
-
e.learnMore ? (h(), N($(
|
|
4514
|
+
e.learnMore ? (h(), N($(ft), {
|
|
4512
4515
|
key: 1,
|
|
4513
4516
|
appearance: "secondary",
|
|
4514
4517
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4516,39 +4519,39 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4516
4519
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4517
4520
|
}, {
|
|
4518
4521
|
default: _(() => [
|
|
4519
|
-
M($(
|
|
4522
|
+
M($(qt), { decorative: "" }),
|
|
4520
4523
|
U(" " + O($(n)("emptyState.learnMore")), 1)
|
|
4521
4524
|
]),
|
|
4522
4525
|
_: 1
|
|
4523
4526
|
}, 8, ["size"])) : K("", !0)
|
|
4524
4527
|
], !0)
|
|
4525
4528
|
])) : K("", !0),
|
|
4526
|
-
e.features.length ? (h(), S("div",
|
|
4529
|
+
e.features.length ? (h(), S("div", Ql, [
|
|
4527
4530
|
(h(!0), S(ce, null, se(e.features, (c, d) => (h(), N(s, {
|
|
4528
4531
|
key: c,
|
|
4529
4532
|
class: "entity-empty-state-card"
|
|
4530
4533
|
}, {
|
|
4531
4534
|
title: _(() => [
|
|
4532
|
-
a.$slots[`feature-${d}-icon`] ? (h(), S("div",
|
|
4535
|
+
a.$slots[`feature-${d}-icon`] ? (h(), S("div", Zl, [
|
|
4533
4536
|
j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4534
4537
|
])) : K("", !0),
|
|
4535
|
-
L("div",
|
|
4538
|
+
L("div", Xl, O(c.title), 1)
|
|
4536
4539
|
]),
|
|
4537
4540
|
default: _(() => [
|
|
4538
4541
|
L("div", {
|
|
4539
4542
|
title: c.description
|
|
4540
|
-
}, O(c.description), 9,
|
|
4543
|
+
}, O(c.description), 9, es)
|
|
4541
4544
|
]),
|
|
4542
4545
|
_: 2
|
|
4543
4546
|
}, 1024))), 128))
|
|
4544
4547
|
])) : K("", !0),
|
|
4545
|
-
a.$slots.bottom ? (h(), S("div",
|
|
4548
|
+
a.$slots.bottom ? (h(), S("div", ts, [
|
|
4546
4549
|
j(a.$slots, "bottom", {}, void 0, !0)
|
|
4547
4550
|
])) : K("", !0)
|
|
4548
4551
|
]);
|
|
4549
4552
|
};
|
|
4550
4553
|
}
|
|
4551
|
-
}),
|
|
4554
|
+
}), xs = /* @__PURE__ */ oe(ns, [["__scopeId", "data-v-b6376b66"]]), is = { key: 1 }, Cs = /* @__PURE__ */ W({
|
|
4552
4555
|
__name: "TableTags",
|
|
4553
4556
|
props: {
|
|
4554
4557
|
/** The tags to display in the table */
|
|
@@ -4562,7 +4565,7 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4562
4565
|
}
|
|
4563
4566
|
},
|
|
4564
4567
|
setup(e) {
|
|
4565
|
-
const t = e, n =
|
|
4568
|
+
const t = e, n = F(() => {
|
|
4566
4569
|
if (Array.isArray(t.tags))
|
|
4567
4570
|
return t.tags;
|
|
4568
4571
|
if (typeof t.tags == "string")
|
|
@@ -4576,12 +4579,12 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4576
4579
|
});
|
|
4577
4580
|
return (i, r) => {
|
|
4578
4581
|
var o;
|
|
4579
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (h(), N($(
|
|
4582
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (h(), N($(Xn), { key: 0 }, {
|
|
4580
4583
|
default: _(() => [
|
|
4581
|
-
(h(!0), S(ce, null, se(n.value, (a) => (h(), N($(
|
|
4584
|
+
(h(!0), S(ce, null, se(n.value, (a) => (h(), N($(ei), {
|
|
4582
4585
|
key: a,
|
|
4583
4586
|
"max-width": e.tagMaxWidth,
|
|
4584
|
-
onClick: r[0] || (r[0] =
|
|
4587
|
+
onClick: r[0] || (r[0] = Le(() => {
|
|
4585
4588
|
}, ["stop"]))
|
|
4586
4589
|
}, {
|
|
4587
4590
|
default: _(() => [
|
|
@@ -4591,50 +4594,50 @@ const _l = ["aria-labelledby"], wl = { class: "form-section-wrapper" }, Sl = {
|
|
|
4591
4594
|
}, 1032, ["max-width"]))), 128))
|
|
4592
4595
|
]),
|
|
4593
4596
|
_: 1
|
|
4594
|
-
})) : (h(), S("span",
|
|
4597
|
+
})) : (h(), S("span", is, "-"));
|
|
4595
4598
|
};
|
|
4596
4599
|
}
|
|
4597
|
-
}), { useAxios:
|
|
4600
|
+
}), { useAxios: ks, useDeleteUrlBuilder: As, useErrors: _s, useExternalLinkCreator: ws, useFetchUrlBuilder: Ss, useFetcher: $s, useFetcherCacheKey: Ts, useDebouncedFilter: Is, useStringHelpers: Fs, useHelpers: Es, useGatewayFeatureSupported: Os, useTruncationDetector: Ls, useValidators: Rs, useSchemaProvider: Bs, useTableState: Ks } = V;
|
|
4598
4601
|
export {
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
+
pt as Appearances,
|
|
4603
|
+
jo as ConfigCardDisplay,
|
|
4604
|
+
Qt as ConfigCardItem,
|
|
4602
4605
|
le as ConfigurationSchemaSection,
|
|
4603
4606
|
H as ConfigurationSchemaType,
|
|
4604
|
-
|
|
4605
|
-
|
|
4606
|
-
|
|
4607
|
-
|
|
4608
|
-
|
|
4609
|
-
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4607
|
+
us as EntityBaseConfigCard,
|
|
4608
|
+
ds as EntityBaseForm,
|
|
4609
|
+
oi as EntityBaseFormType,
|
|
4610
|
+
fs as EntityBaseTable,
|
|
4611
|
+
ps as EntityDeleteModal,
|
|
4612
|
+
xs as EntityEmptyState,
|
|
4613
|
+
ms as EntityFilter,
|
|
4614
|
+
vs as EntityFormBlock,
|
|
4615
|
+
ys as EntityFormSection,
|
|
4616
|
+
bs as EntityLink,
|
|
4617
|
+
hs as EntityToggleModal,
|
|
4618
|
+
ai as EntityTypes,
|
|
4616
4619
|
pe as FetcherStatus,
|
|
4617
|
-
|
|
4618
|
-
|
|
4619
|
-
|
|
4620
|
-
|
|
4621
|
-
|
|
4622
|
-
|
|
4623
|
-
|
|
4624
|
-
|
|
4625
|
-
|
|
4626
|
-
|
|
4627
|
-
|
|
4628
|
-
|
|
4629
|
-
|
|
4630
|
-
|
|
4631
|
-
|
|
4632
|
-
|
|
4633
|
-
|
|
4634
|
-
|
|
4635
|
-
|
|
4636
|
-
|
|
4637
|
-
|
|
4638
|
-
|
|
4620
|
+
qi as InternalLinkItem,
|
|
4621
|
+
Zt as JsonCodeBlock,
|
|
4622
|
+
gs as PermissionsWrapper,
|
|
4623
|
+
nt as SupportedEntityType,
|
|
4624
|
+
Pe as SupportedEntityTypesArray,
|
|
4625
|
+
Cs as TableTags,
|
|
4626
|
+
Un as TerraformCodeBlock,
|
|
4627
|
+
Pn as YamlCodeBlock,
|
|
4628
|
+
ks as useAxios,
|
|
4629
|
+
Is as useDebouncedFilter,
|
|
4630
|
+
As as useDeleteUrlBuilder,
|
|
4631
|
+
_s as useErrors,
|
|
4632
|
+
ws as useExternalLinkCreator,
|
|
4633
|
+
Ss as useFetchUrlBuilder,
|
|
4634
|
+
$s as useFetcher,
|
|
4635
|
+
Ts as useFetcherCacheKey,
|
|
4636
|
+
Os as useGatewayFeatureSupported,
|
|
4637
|
+
Es as useHelpers,
|
|
4638
|
+
Bs as useSchemaProvider,
|
|
4639
|
+
Fs as useStringHelpers,
|
|
4640
|
+
Ks as useTableState,
|
|
4641
|
+
Ls as useTruncationDetector,
|
|
4639
4642
|
Rs as useValidators
|
|
4640
4643
|
};
|