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