@kong-ui-public/entities-shared 3.19.1 → 3.19.2-pr.1990.8fdccf5d7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.es.js +917 -916
- package/dist/entities-shared.umd.js +37 -37
- 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/useFetchUrlBuilder.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +7 -3
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import { inject as
|
|
2
|
-
import
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { BookIcon as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
var H = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(H || {}),
|
|
10
|
-
const
|
|
1
|
+
import { inject as Mt, ref as L, computed as T, unref as A, toValue as We, watch as _e, provide as Dt, toRef as Pn, defineComponent as J, openBlock as p, createBlock as M, resolveDynamicComponent as Me, normalizeClass as ue, withCtx as k, createElementBlock as w, createElementVNode as N, toDisplayString as E, createCommentVNode as j, Fragment as se, renderList as le, resolveComponent as U, createVNode as D, createTextVNode as q, useCssVars as jt, useSlots as et, renderSlot as P, createSlots as ke, normalizeProps as qn, guardReactiveProps as Hn, mergeProps as Yn, onBeforeMount as tt, withModifiers as Oe, Teleport as Ut, onMounted as Vn, onUnmounted as Wn, withDirectives as ge, vShow as ye, withKeys as Jn } from "vue";
|
|
2
|
+
import dt from "axios";
|
|
3
|
+
import { createI18n as Gn, i18nTComponent as zn } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as Qn, KButton as ft, KTruncate as Zn, KBadge as Xn } from "@kong/kongponents";
|
|
5
|
+
import { BookIcon as Pt, AddIcon as qt, CloseIcon as er, ChevronDownIcon as tr, CopyIcon as nr } from "@kong/icons";
|
|
6
|
+
import { useRouter as rr } from "vue-router";
|
|
7
|
+
var Q = /* @__PURE__ */ ((e) => (e.Konnect = "konnect", e.KongManager = "kongManager", e))(Q || {}), ir = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(ir || {}), ar = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ar || {}), fe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(fe || {}), nt = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.RedisConfiguration = "redis_configuration", e.Other = "other", e))(nt || {});
|
|
8
|
+
const De = Object.values(nt);
|
|
9
|
+
var H = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(H || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ae || {});
|
|
10
|
+
const pt = [
|
|
11
11
|
"primary",
|
|
12
12
|
"secondary"
|
|
13
13
|
];
|
|
14
|
-
function
|
|
14
|
+
function or() {
|
|
15
15
|
return {
|
|
16
16
|
getAxiosInstance: (e = {}) => {
|
|
17
17
|
try {
|
|
18
|
-
const t =
|
|
19
|
-
return typeof t == "function" ? t(e) :
|
|
18
|
+
const t = Mt("get-axios-instance", void 0);
|
|
19
|
+
return typeof t == "function" ? t(e) : dt.create({
|
|
20
20
|
withCredentials: !0,
|
|
21
21
|
timeout: 3e4,
|
|
22
22
|
...e
|
|
23
23
|
});
|
|
24
24
|
} catch (t) {
|
|
25
|
-
return console.warn("getAxiosInstance:", t.message || t),
|
|
25
|
+
return console.warn("getAxiosInstance:", t.message || t), dt.create({
|
|
26
26
|
withCredentials: !0,
|
|
27
27
|
timeout: 3e4,
|
|
28
28
|
...e
|
|
@@ -35,7 +35,7 @@ function ar() {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function lr() {
|
|
39
39
|
return {
|
|
40
40
|
debounce: (e, t) => {
|
|
41
41
|
let n;
|
|
@@ -47,13 +47,13 @@ function or() {
|
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
const
|
|
50
|
+
const Pe = "khcp-user-table-preferences", sr = {
|
|
51
51
|
pageSize: 30,
|
|
52
52
|
sortColumnKey: void 0,
|
|
53
53
|
sortColumnOrder: void 0,
|
|
54
54
|
columnVisibility: {}
|
|
55
55
|
};
|
|
56
|
-
function
|
|
56
|
+
function cr() {
|
|
57
57
|
const e = (n) => {
|
|
58
58
|
if (typeof n == "string")
|
|
59
59
|
try {
|
|
@@ -63,44 +63,44 @@ function sr() {
|
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
}, t = () => {
|
|
66
|
-
const n = e(localStorage.getItem(
|
|
66
|
+
const n = e(localStorage.getItem(Pe));
|
|
67
67
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
68
68
|
};
|
|
69
69
|
return {
|
|
70
70
|
setTablePreferences: (n, r) => {
|
|
71
71
|
try {
|
|
72
72
|
const i = t();
|
|
73
|
-
i.set(n, r), localStorage.setItem(
|
|
73
|
+
i.set(n, r), localStorage.setItem(Pe, JSON.stringify(Object.fromEntries(i.entries())));
|
|
74
74
|
} catch (i) {
|
|
75
75
|
console.error("useTablePreferences(setTablePreferences)", i);
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
getTablePreferences: (n, r) => {
|
|
79
79
|
const i = t();
|
|
80
|
-
return (i == null ? void 0 : i.get(n)) || void 0 || r ||
|
|
80
|
+
return (i == null ? void 0 : i.get(n)) || void 0 || r || sr;
|
|
81
81
|
},
|
|
82
82
|
deleteAllTablePreferences: () => {
|
|
83
|
-
localStorage.removeItem(
|
|
83
|
+
localStorage.removeItem(Pe);
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
const { getAxiosInstance: t } =
|
|
87
|
+
function rt(e = {}) {
|
|
88
|
+
const { getAxiosInstance: t } = or();
|
|
89
89
|
return {
|
|
90
90
|
axiosInstance: t(e)
|
|
91
91
|
};
|
|
92
92
|
}
|
|
93
|
-
const
|
|
93
|
+
const ur = {
|
|
94
94
|
actions: {
|
|
95
95
|
copyId: "Copy ID",
|
|
96
96
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
97
97
|
copyToClipboard: "Copied successfully!",
|
|
98
98
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
99
99
|
}
|
|
100
|
-
},
|
|
100
|
+
}, dr = {
|
|
101
101
|
message: "Are you sure you want to delete this {entityType}?",
|
|
102
102
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
103
|
-
},
|
|
103
|
+
}, fr = {
|
|
104
104
|
actions: {
|
|
105
105
|
viewConfiguration: "View Configuration",
|
|
106
106
|
save: "Save",
|
|
@@ -117,13 +117,13 @@ const cr = {
|
|
|
117
117
|
errors: {
|
|
118
118
|
edit: "The entity could not be edited at this time."
|
|
119
119
|
}
|
|
120
|
-
},
|
|
120
|
+
}, pr = {
|
|
121
121
|
emptyState: {
|
|
122
122
|
noSearchResultsTitle: "No results found",
|
|
123
123
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
124
124
|
noSearchResultsCtaText: "Clear"
|
|
125
125
|
}
|
|
126
|
-
},
|
|
126
|
+
}, mr = {
|
|
127
127
|
title: "Configuration",
|
|
128
128
|
actions: {
|
|
129
129
|
copy: "Copy JSON"
|
|
@@ -159,10 +159,10 @@ const cr = {
|
|
|
159
159
|
entryTitle: "Entry {index}",
|
|
160
160
|
structuredFormat: "Structured"
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, hr = {
|
|
163
163
|
learnMore: "Learn more",
|
|
164
164
|
pricingTitle: "Pricing: "
|
|
165
|
-
},
|
|
165
|
+
}, gr = {
|
|
166
166
|
filterButtonText: "Filter",
|
|
167
167
|
fieldLabel: "Filter by:",
|
|
168
168
|
inputPlaceholder: "Enter a value",
|
|
@@ -170,17 +170,17 @@ const cr = {
|
|
|
170
170
|
applyButtonText: "Apply",
|
|
171
171
|
clearButtonText: "Clear",
|
|
172
172
|
clearAllButtonText: "Clear all filters"
|
|
173
|
-
},
|
|
173
|
+
}, yr = {
|
|
174
174
|
errors: {
|
|
175
175
|
fetch: "Could not fetch available items",
|
|
176
176
|
invalid: "Please select a valid value"
|
|
177
177
|
}
|
|
178
|
-
},
|
|
178
|
+
}, vr = {
|
|
179
179
|
unexpected: "An unexpected error has occurred",
|
|
180
180
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
181
|
-
}, vr = {
|
|
182
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
183
181
|
}, br = {
|
|
182
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
183
|
+
}, xr = {
|
|
184
184
|
enable: {
|
|
185
185
|
title: "Enable {entityType}",
|
|
186
186
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -191,28 +191,28 @@ const cr = {
|
|
|
191
191
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
192
192
|
confirmText: "Yes, disable"
|
|
193
193
|
}
|
|
194
|
-
},
|
|
195
|
-
global:
|
|
196
|
-
deleteModal:
|
|
197
|
-
baseForm:
|
|
198
|
-
baseTable:
|
|
199
|
-
baseConfigCard:
|
|
200
|
-
emptyState:
|
|
201
|
-
filter:
|
|
202
|
-
debouncedFilter:
|
|
203
|
-
errors:
|
|
204
|
-
validationErrors:
|
|
205
|
-
toggleModal:
|
|
194
|
+
}, Cr = {
|
|
195
|
+
global: ur,
|
|
196
|
+
deleteModal: dr,
|
|
197
|
+
baseForm: fr,
|
|
198
|
+
baseTable: pr,
|
|
199
|
+
baseConfigCard: mr,
|
|
200
|
+
emptyState: hr,
|
|
201
|
+
filter: gr,
|
|
202
|
+
debouncedFilter: yr,
|
|
203
|
+
errors: vr,
|
|
204
|
+
validationErrors: br,
|
|
205
|
+
toggleModal: xr
|
|
206
206
|
};
|
|
207
|
-
function
|
|
208
|
-
const e =
|
|
207
|
+
function je() {
|
|
208
|
+
const e = Gn("en-us", Cr);
|
|
209
209
|
return {
|
|
210
210
|
i18n: e,
|
|
211
|
-
i18nT:
|
|
211
|
+
i18nT: zn(e)
|
|
212
212
|
// Translation component <i18n-t>
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Ht() {
|
|
216
216
|
const e = (o, a) => (a == null ? void 0 : a[o]) ?? void 0, t = (o, a) => {
|
|
217
217
|
if (o.length !== a.length) return !1;
|
|
218
218
|
const l = /* @__PURE__ */ new Set([...o, ...a]);
|
|
@@ -254,53 +254,53 @@ function qt() {
|
|
|
254
254
|
isValidUuid: (o) => o ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(o) : !1
|
|
255
255
|
};
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function kr(e, t, n, r = {
|
|
258
258
|
fetchedItemsKey: "data",
|
|
259
259
|
searchKeys: ["id"]
|
|
260
260
|
}) {
|
|
261
261
|
n || (n = "1000");
|
|
262
|
-
const { axiosInstance: i } =
|
|
263
|
-
await b(
|
|
262
|
+
const { axiosInstance: i } = rt(e.axiosRequestConfig), { i18n: { t: o } } = je(), { debounce: a } = lr(), l = a(async (K) => {
|
|
263
|
+
await b(K);
|
|
264
264
|
}, 200), s = L(!1), c = L(""), d = L(""), u = L([]), m = L([]), f = L(void 0), v = T(() => {
|
|
265
|
-
const
|
|
266
|
-
return e.app ===
|
|
267
|
-
}), { isValidUuid: y } =
|
|
265
|
+
const K = `${e.apiBaseUrl}${A(t)}`;
|
|
266
|
+
return e.app === Q.Konnect ? K.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === Q.KongManager ? K.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : K;
|
|
267
|
+
}), { isValidUuid: y } = Ht(), C = async () => {
|
|
268
268
|
try {
|
|
269
269
|
s.value = !0;
|
|
270
|
-
const { data:
|
|
271
|
-
|
|
270
|
+
const { data: K } = await i.get(`${v.value}?size=${n}`);
|
|
271
|
+
K != null && K.next || (f.value = r.fetchedItemsKey in K ? K[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in K ? K[r.fetchedItemsKey] : [], u.value = m.value;
|
|
272
272
|
} catch {
|
|
273
273
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
274
274
|
} finally {
|
|
275
275
|
s.value = !1;
|
|
276
276
|
}
|
|
277
|
-
}, I = L(""), b = async (
|
|
277
|
+
}, I = L(""), b = async (K) => {
|
|
278
278
|
var F, S, g;
|
|
279
|
-
if (I.value !==
|
|
280
|
-
if (I.value =
|
|
279
|
+
if (I.value !== K) {
|
|
280
|
+
if (I.value = K ?? "", !K) {
|
|
281
281
|
u.value = m.value;
|
|
282
282
|
return;
|
|
283
283
|
}
|
|
284
284
|
if (f.value === void 0)
|
|
285
285
|
try {
|
|
286
|
-
if (s.value = !0, c.value = "", d.value = "", e.app ===
|
|
287
|
-
const $ = `${v.value}/${
|
|
286
|
+
if (s.value = !0, c.value = "", d.value = "", e.app === Q.Konnect) {
|
|
287
|
+
const $ = `${v.value}/${K}`, { data: h } = await i.get(`${$}?size=${n}`);
|
|
288
288
|
r.fetchedItemsKey in h ? u.value = h[r.fetchedItemsKey] : h != null && h[r.exactMatchKey ?? "id"] ? u.value = [h] : u.value = [];
|
|
289
289
|
} else {
|
|
290
290
|
const $ = [];
|
|
291
|
-
y(
|
|
292
|
-
const { data:
|
|
293
|
-
return [
|
|
291
|
+
y(K) && r.searchKeys.includes("id") ? $.push((async () => {
|
|
292
|
+
const { data: R } = await i.get(`${v.value}/${K}`);
|
|
293
|
+
return [R[r.fetchedItemsKey] ?? R];
|
|
294
294
|
})()) : $.push(
|
|
295
|
-
...r.searchKeys.filter((
|
|
296
|
-
const { data:
|
|
297
|
-
return
|
|
295
|
+
...r.searchKeys.filter((R) => R !== "id").map(async (R) => {
|
|
296
|
+
const { data: B } = await i.get(`${v.value}?${R}=${K}`);
|
|
297
|
+
return B[r.fetchedItemsKey];
|
|
298
298
|
})
|
|
299
299
|
);
|
|
300
300
|
const h = await Promise.all($), x = /* @__PURE__ */ new Set();
|
|
301
|
-
u.value = [], (F = h == null ? void 0 : h.forEach) == null || F.call(h, (
|
|
302
|
-
var
|
|
303
|
-
(
|
|
301
|
+
u.value = [], (F = h == null ? void 0 : h.forEach) == null || F.call(h, (R) => {
|
|
302
|
+
var B;
|
|
303
|
+
(B = R == null ? void 0 : R.forEach) == null || B.call(R, (O) => {
|
|
304
304
|
x.has(O.id) || (x.add(O.id), u.value.push(O));
|
|
305
305
|
});
|
|
306
306
|
});
|
|
@@ -314,9 +314,9 @@ function Cr(e, t, n, r = {
|
|
|
314
314
|
s.value = !0, d.value = "", u.value = (g = f.value) == null ? void 0 : g.filter(($) => {
|
|
315
315
|
var x;
|
|
316
316
|
let h = !1;
|
|
317
|
-
for (const
|
|
318
|
-
const
|
|
319
|
-
|
|
317
|
+
for (const R of r.searchKeys) {
|
|
318
|
+
const B = typeof $[R] == "string" ? (x = $[R]) == null ? void 0 : x.toLowerCase() : $[R];
|
|
319
|
+
B != null && B.includes(K.toLowerCase()) && (h = !0);
|
|
320
320
|
}
|
|
321
321
|
return h;
|
|
322
322
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
|
|
@@ -332,14 +332,14 @@ function Cr(e, t, n, r = {
|
|
|
332
332
|
debouncedQueryChange: l
|
|
333
333
|
};
|
|
334
334
|
}
|
|
335
|
-
function
|
|
335
|
+
function Ar(e, t) {
|
|
336
336
|
const n = A(t), r = T(
|
|
337
337
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
338
338
|
);
|
|
339
339
|
return r.value.search = "", (i) => `${r.value.href}/${i}`;
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
const { i18n: { t: e } } =
|
|
341
|
+
function _r() {
|
|
342
|
+
const { i18n: { t: e } } = je();
|
|
343
343
|
return {
|
|
344
344
|
getMessageFromError: (n) => {
|
|
345
345
|
var r, i, o, a;
|
|
@@ -368,7 +368,7 @@ function Ar() {
|
|
|
368
368
|
}
|
|
369
369
|
};
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function wr(e) {
|
|
372
372
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
373
373
|
try {
|
|
374
374
|
const r = e.join("/"), i = `${n}${r}`, o = e.some((l) => l.trim() === "");
|
|
@@ -379,9 +379,9 @@ function _r(e) {
|
|
|
379
379
|
return console.warn("Failed to build valid URL:", r), "";
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
function
|
|
382
|
+
function Yt(e, t) {
|
|
383
383
|
const n = L(A(e)), r = L(A(t)), i = T(
|
|
384
|
-
() => !!(n.value.app ===
|
|
384
|
+
() => !!(n.value.app === Q.Konnect || n.value.isExactMatch)
|
|
385
385
|
), o = T(
|
|
386
386
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
387
387
|
);
|
|
@@ -397,15 +397,15 @@ function Ht(e, t) {
|
|
|
397
397
|
}
|
|
398
398
|
};
|
|
399
399
|
}
|
|
400
|
-
const
|
|
401
|
-
function
|
|
402
|
-
const r = L(!0), i = A(t), { axiosInstance: o } =
|
|
403
|
-
status:
|
|
400
|
+
const mt = /* @__PURE__ */ new Map();
|
|
401
|
+
function Sr(e, t, n) {
|
|
402
|
+
const r = L(!0), i = A(t), { axiosInstance: o } = rt(e.axiosRequestConfig), a = Yt(e, i), l = L({
|
|
403
|
+
status: fe.Idle
|
|
404
404
|
}), s = async (u) => {
|
|
405
405
|
var f;
|
|
406
|
-
const m =
|
|
406
|
+
const m = We(n) || "data";
|
|
407
407
|
try {
|
|
408
|
-
l.value = r.value ? { status:
|
|
408
|
+
l.value = r.value ? { status: fe.InitialLoad } : { status: fe.Loading }, r.value = !1;
|
|
409
409
|
let v = a(u);
|
|
410
410
|
v.includes("filter[name]") && (v = `${v}&page[size]=${u.pageSize}&page[number]=${u.page}`);
|
|
411
411
|
const y = await o.get(v);
|
|
@@ -414,7 +414,7 @@ function wr(e, t, n) {
|
|
|
414
414
|
const C = y.data, I = m && m.replace(/[^\w-_]/gi, "");
|
|
415
415
|
let b;
|
|
416
416
|
C[I] ? b = Array.isArray(C[I]) ? C[I] : [C[I]] : Array.isArray(C) ? b = C : b = Object.keys(C).length ? [C] : [];
|
|
417
|
-
const
|
|
417
|
+
const K = {
|
|
418
418
|
data: b,
|
|
419
419
|
total: b.length,
|
|
420
420
|
...C.offset ? {
|
|
@@ -423,158 +423,158 @@ function wr(e, t, n) {
|
|
|
423
423
|
}
|
|
424
424
|
} : null
|
|
425
425
|
};
|
|
426
|
-
return
|
|
427
|
-
status:
|
|
428
|
-
response:
|
|
426
|
+
return K.data.length === 0 && !u.query ? l.value = {
|
|
427
|
+
status: fe.NoRecords,
|
|
428
|
+
response: K
|
|
429
429
|
} : l.value = {
|
|
430
|
-
status:
|
|
431
|
-
response:
|
|
432
|
-
},
|
|
430
|
+
status: fe.Idle,
|
|
431
|
+
response: K
|
|
432
|
+
}, K;
|
|
433
433
|
} catch (v) {
|
|
434
434
|
const y = {
|
|
435
435
|
data: [],
|
|
436
436
|
total: 0
|
|
437
437
|
};
|
|
438
438
|
return u.query && (((f = v.response) == null ? void 0 : f.status) === 404 || v.status === 404) ? (l.value = {
|
|
439
|
-
status:
|
|
439
|
+
status: fe.NoResults,
|
|
440
440
|
response: y,
|
|
441
441
|
error: v.response ? v : { response: v }
|
|
442
442
|
}, y) : (l.value = {
|
|
443
|
-
status:
|
|
443
|
+
status: fe.Error,
|
|
444
444
|
response: y,
|
|
445
445
|
error: v.response ? v : { response: v }
|
|
446
446
|
}, y);
|
|
447
447
|
}
|
|
448
|
-
}, c = e.cacheIdentifier, d =
|
|
448
|
+
}, c = e.cacheIdentifier, d = Vt(c);
|
|
449
449
|
return { fetcher: s, fetcherState: l, fetcherCacheKey: d };
|
|
450
450
|
}
|
|
451
|
-
function
|
|
451
|
+
function Vt(e) {
|
|
452
452
|
if (e) {
|
|
453
|
-
let t =
|
|
454
|
-
return t || (t = L(1),
|
|
453
|
+
let t = mt.get(e);
|
|
454
|
+
return t || (t = L(1), mt.set(e, t)), t;
|
|
455
455
|
}
|
|
456
456
|
return L(1);
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function $r() {
|
|
459
459
|
const e = (r, i = "_") => r ? r.split(i).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
460
460
|
return {
|
|
461
461
|
capitalize: (r) => r ? r.replace(t, (i) => i.toUpperCase()) : "",
|
|
462
462
|
convertKeyToTitle: e
|
|
463
463
|
};
|
|
464
464
|
}
|
|
465
|
-
const
|
|
465
|
+
const Wt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, ht = (e) => {
|
|
466
466
|
if (typeof e != "string")
|
|
467
467
|
throw new TypeError("Invalid argument expected string");
|
|
468
|
-
const t = e.match(
|
|
468
|
+
const t = e.match(Wt);
|
|
469
469
|
if (!t)
|
|
470
470
|
throw new Error(`Invalid argument not valid semver ('${e}' received)`);
|
|
471
471
|
return t.shift(), t;
|
|
472
|
-
},
|
|
472
|
+
}, gt = (e) => e === "*" || e === "x" || e === "X", yt = (e) => {
|
|
473
473
|
const t = parseInt(e, 10);
|
|
474
474
|
return isNaN(t) ? e : t;
|
|
475
|
-
},
|
|
476
|
-
if (
|
|
475
|
+
}, Tr = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Ir = (e, t) => {
|
|
476
|
+
if (gt(e) || gt(t))
|
|
477
477
|
return 0;
|
|
478
|
-
const [n, r] =
|
|
478
|
+
const [n, r] = Tr(yt(e), yt(t));
|
|
479
479
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
480
|
-
},
|
|
480
|
+
}, vt = (e, t) => {
|
|
481
481
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
482
|
-
const r =
|
|
482
|
+
const r = Ir(e[n] || "0", t[n] || "0");
|
|
483
483
|
if (r !== 0)
|
|
484
484
|
return r;
|
|
485
485
|
}
|
|
486
486
|
return 0;
|
|
487
|
-
},
|
|
488
|
-
const n =
|
|
489
|
-
return a !== 0 ? a : i && o ?
|
|
490
|
-
},
|
|
491
|
-
|
|
492
|
-
const r =
|
|
493
|
-
return
|
|
494
|
-
},
|
|
487
|
+
}, Er = (e, t) => {
|
|
488
|
+
const n = ht(e), r = ht(t), i = n.pop(), o = r.pop(), a = vt(n, r);
|
|
489
|
+
return a !== 0 ? a : i && o ? vt(i.split("."), o.split(".")) : i || o ? i ? -1 : 1 : 0;
|
|
490
|
+
}, bt = (e, t, n) => {
|
|
491
|
+
Fr(n);
|
|
492
|
+
const r = Er(e, t);
|
|
493
|
+
return Jt[n].includes(r);
|
|
494
|
+
}, Jt = {
|
|
495
495
|
">": [1],
|
|
496
496
|
">=": [0, 1],
|
|
497
497
|
"=": [0],
|
|
498
498
|
"<=": [-1, 0],
|
|
499
499
|
"<": [-1],
|
|
500
500
|
"!=": [-1, 1]
|
|
501
|
-
},
|
|
501
|
+
}, xt = Object.keys(Jt), Fr = (e) => {
|
|
502
502
|
if (typeof e != "string")
|
|
503
503
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
504
|
-
if (
|
|
505
|
-
throw new Error(`Invalid operator, expected one of ${
|
|
506
|
-
},
|
|
507
|
-
function
|
|
504
|
+
if (xt.indexOf(e) === -1)
|
|
505
|
+
throw new Error(`Invalid operator, expected one of ${xt.join("|")}`);
|
|
506
|
+
}, Or = (e) => typeof e == "string" && /^[v\d]/.test(e) && Wt.test(e);
|
|
507
|
+
function Lr(e) {
|
|
508
508
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
509
509
|
if (!t)
|
|
510
510
|
return !0;
|
|
511
511
|
const { edition: r, version: i } = t;
|
|
512
|
-
if (!
|
|
512
|
+
if (!Or(i))
|
|
513
513
|
return console.error("Invalid version"), !1;
|
|
514
514
|
const o = n[r];
|
|
515
515
|
if (!o)
|
|
516
516
|
return !1;
|
|
517
517
|
const [a, l] = o;
|
|
518
|
-
return !(a &&
|
|
518
|
+
return !(a && bt(i, a, "<") || l && bt(i, l, ">"));
|
|
519
519
|
}
|
|
520
|
-
function
|
|
520
|
+
function Kr(e) {
|
|
521
521
|
const t = L(0), n = L(0), r = L(!1);
|
|
522
|
-
return
|
|
522
|
+
return _e(e, (o) => {
|
|
523
523
|
o && !r.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, r.value = !0);
|
|
524
524
|
}), {
|
|
525
525
|
isTruncated: T(() => t.value < n.value)
|
|
526
526
|
};
|
|
527
527
|
}
|
|
528
528
|
function Rr() {
|
|
529
|
-
const { i18n: { t: e } } =
|
|
529
|
+
const { i18n: { t: e } } = je();
|
|
530
530
|
return {
|
|
531
531
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
532
532
|
};
|
|
533
533
|
}
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
},
|
|
534
|
+
const Je = Symbol("schema"), Br = (e) => {
|
|
535
|
+
Dt(Je, e);
|
|
536
|
+
}, Nr = (e) => {
|
|
537
537
|
var i, o;
|
|
538
|
-
const t =
|
|
539
|
-
return
|
|
538
|
+
const t = Mt(Je, void 0), n = (o = (i = t == null ? void 0 : t.value) == null ? void 0 : i.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), r = Pn(n == null ? void 0 : n[e]);
|
|
539
|
+
return Dt(Je, r), r;
|
|
540
540
|
};
|
|
541
|
-
function
|
|
541
|
+
function Mr(e) {
|
|
542
542
|
let t = "";
|
|
543
543
|
const n = L(!1), r = L(null), i = T(() => {
|
|
544
544
|
let a;
|
|
545
|
-
return n.value ? a = !0 : r.value ? a = r.value.hasData || e &&
|
|
545
|
+
return n.value ? a = !0 : r.value ? a = r.value.hasData || e && We(e) : a = !1, !a;
|
|
546
546
|
});
|
|
547
547
|
return {
|
|
548
548
|
tableState: r,
|
|
549
549
|
hasRecords: n,
|
|
550
550
|
hideTableToolbar: i,
|
|
551
551
|
handleStateChange: (a) => {
|
|
552
|
-
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t =
|
|
552
|
+
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = We(e)), r.value = { ...a };
|
|
553
553
|
}
|
|
554
554
|
};
|
|
555
555
|
}
|
|
556
556
|
const Y = {
|
|
557
|
-
useAxios:
|
|
558
|
-
useDebouncedFilter:
|
|
559
|
-
useDeleteUrlBuilder:
|
|
560
|
-
useErrors:
|
|
561
|
-
useExternalLinkCreator:
|
|
562
|
-
useFetcher:
|
|
563
|
-
useFetcherCacheKey:
|
|
564
|
-
useFetchUrlBuilder:
|
|
565
|
-
useHelpers:
|
|
566
|
-
useStringHelpers:
|
|
567
|
-
useI18n:
|
|
568
|
-
useGatewayFeatureSupported:
|
|
569
|
-
useTruncationDetector:
|
|
557
|
+
useAxios: rt,
|
|
558
|
+
useDebouncedFilter: kr,
|
|
559
|
+
useDeleteUrlBuilder: Ar,
|
|
560
|
+
useErrors: _r,
|
|
561
|
+
useExternalLinkCreator: wr,
|
|
562
|
+
useFetcher: Sr,
|
|
563
|
+
useFetcherCacheKey: Vt,
|
|
564
|
+
useFetchUrlBuilder: Yt,
|
|
565
|
+
useHelpers: Ht,
|
|
566
|
+
useStringHelpers: $r,
|
|
567
|
+
useI18n: je,
|
|
568
|
+
useGatewayFeatureSupported: Lr,
|
|
569
|
+
useTruncationDetector: Kr,
|
|
570
570
|
useValidators: Rr,
|
|
571
571
|
useSchemaProvider: Br,
|
|
572
|
-
useSubSchema:
|
|
573
|
-
useTableState:
|
|
574
|
-
},
|
|
572
|
+
useSubSchema: Nr,
|
|
573
|
+
useTableState: Mr
|
|
574
|
+
}, Dr = {
|
|
575
575
|
key: 0,
|
|
576
576
|
class: "config-card-fieldset-title"
|
|
577
|
-
},
|
|
577
|
+
}, jr = /* @__PURE__ */ J({
|
|
578
578
|
__name: "JsonCardItem",
|
|
579
579
|
props: {
|
|
580
580
|
item: {
|
|
@@ -598,14 +598,14 @@ const Y = {
|
|
|
598
598
|
var s;
|
|
599
599
|
return t.isArrayItem ? (s = o.value) != null && s.name ? r(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
600
600
|
});
|
|
601
|
-
return (s, c) => (p(), M(
|
|
602
|
-
class:
|
|
601
|
+
return (s, c) => (p(), M(Me(e.isArrayItem ? "fieldset" : "div"), {
|
|
602
|
+
class: ue(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
603
603
|
}, {
|
|
604
604
|
default: k(() => [
|
|
605
|
-
e.isArrayItem ? (p(), w("legend",
|
|
605
|
+
e.isArrayItem ? (p(), w("legend", Dr, [
|
|
606
606
|
N("b", null, E(l.value), 1)
|
|
607
607
|
])) : j("", !0),
|
|
608
|
-
(p(!0), w(
|
|
608
|
+
(p(!0), w(se, null, le(Object.keys(a.value), (d, u) => (p(), M(zt, {
|
|
609
609
|
key: `${i.value}-property-${u}`,
|
|
610
610
|
item: {
|
|
611
611
|
key: d,
|
|
@@ -617,12 +617,12 @@ const Y = {
|
|
|
617
617
|
_: 1
|
|
618
618
|
}, 8, ["class"]));
|
|
619
619
|
}
|
|
620
|
-
}),
|
|
620
|
+
}), oe = (e, t) => {
|
|
621
621
|
const n = e.__vccOpts || e;
|
|
622
622
|
for (const [r, i] of t)
|
|
623
623
|
n[r] = i;
|
|
624
624
|
return n;
|
|
625
|
-
},
|
|
625
|
+
}, Gt = /* @__PURE__ */ oe(jr, [["__scopeId", "data-v-f7096c33"]]), Ur = /* @__PURE__ */ J({
|
|
626
626
|
__name: "InternalLinkItem",
|
|
627
627
|
props: {
|
|
628
628
|
item: {
|
|
@@ -649,7 +649,7 @@ const Y = {
|
|
|
649
649
|
]);
|
|
650
650
|
};
|
|
651
651
|
}
|
|
652
|
-
}),
|
|
652
|
+
}), Pr = /* @__PURE__ */ oe(Ur, [["__scopeId", "data-v-c96811e5"]]), qr = /* @__PURE__ */ J({
|
|
653
653
|
__name: "StatusBadge",
|
|
654
654
|
props: {
|
|
655
655
|
status: {
|
|
@@ -671,11 +671,11 @@ const Y = {
|
|
|
671
671
|
}, 8, ["appearance"]);
|
|
672
672
|
};
|
|
673
673
|
}
|
|
674
|
-
}),
|
|
674
|
+
}), Hr = "#0044f4", Yr = "#e0e4ea", Vr = "#afb7c5", Wr = "#0044f4", Jr = "1px", Gr = "16px", zr = "20px", Qr = { class: "config-card-details-row" }, Zr = ["data-testid"], Xr = ["data-testid"], ei = ["data-testid"], ti = ["data-testid"], ni = { key: 1 }, ri = ["data-testid"], ii = ["data-testid"], ai = ["data-testid"], oi = ["data-testid"], li = {
|
|
675
675
|
name: "ConfigCardItem",
|
|
676
|
-
components: { JsonCardItem:
|
|
677
|
-
},
|
|
678
|
-
...
|
|
676
|
+
components: { JsonCardItem: Gt, StatusBadge: qr, InternalLinkItem: Pr }
|
|
677
|
+
}, si = /* @__PURE__ */ J({
|
|
678
|
+
...li,
|
|
679
679
|
props: {
|
|
680
680
|
item: {
|
|
681
681
|
type: Object,
|
|
@@ -694,13 +694,13 @@ const Y = {
|
|
|
694
694
|
},
|
|
695
695
|
emits: ["navigation-click"],
|
|
696
696
|
setup(e, { emit: t }) {
|
|
697
|
-
|
|
698
|
-
"3ccdd5d2": d.value ? "none" : `solid ${A(
|
|
697
|
+
jt((b) => ({
|
|
698
|
+
"3ccdd5d2": d.value ? "none" : `solid ${A(Jr)} ${A(Yr)}`,
|
|
699
699
|
"4b1da305": c.value && l.value ? "block" : "flex",
|
|
700
700
|
cd20788a: c.value && l.value ? "100%" : n.slim ? "50%" : "25%",
|
|
701
701
|
cd1becd4: c.value && l.value ? "100%" : n.slim ? "50%" : "75%"
|
|
702
702
|
}));
|
|
703
|
-
const n = e, r = t, i =
|
|
703
|
+
const n = e, r = t, i = et(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = T(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), s = T(() => !!(n.item.tooltip || i["label-tooltip"])), c = T(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = T(() => n.item.type === H.JsonArray), u = Y.useSubSchema(n.item.key), m = T(() => {
|
|
704
704
|
var b;
|
|
705
705
|
return n.item.type ? n.item.type : (b = u == null ? void 0 : u.value) != null && b.encrypted ? H.Redacted : void 0;
|
|
706
706
|
}), f = T(() => {
|
|
@@ -825,15 +825,15 @@ const Y = {
|
|
|
825
825
|
};
|
|
826
826
|
}
|
|
827
827
|
}), v = L(), y = L(), { isTruncated: C } = Y.useTruncationDetector(v), { isTruncated: I } = Y.useTruncationDetector(y);
|
|
828
|
-
return (b,
|
|
828
|
+
return (b, K) => {
|
|
829
829
|
const F = U("KTooltip"), S = U("KLabel"), g = U("KBadge"), $ = U("KCopy");
|
|
830
|
-
return p(), w("div",
|
|
830
|
+
return p(), w("div", Qr, [
|
|
831
831
|
N("div", {
|
|
832
832
|
class: "config-card-details-label",
|
|
833
833
|
"data-testid": `${e.item.key}-label`
|
|
834
834
|
}, [
|
|
835
835
|
P(b.$slots, "label", { item: e.item }, () => [
|
|
836
|
-
D(S, { "tooltip-attributes": { maxWidth: "500px" } },
|
|
836
|
+
D(S, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
837
837
|
default: k(() => [
|
|
838
838
|
D(F, {
|
|
839
839
|
text: A(C) ? e.item.label : ""
|
|
@@ -859,13 +859,13 @@ const Y = {
|
|
|
859
859
|
P(b.$slots, "label-tooltip", {}, () => [
|
|
860
860
|
q(E(e.item.tooltip), 1)
|
|
861
861
|
], !0)
|
|
862
|
-
], 8,
|
|
862
|
+
], 8, Xr)
|
|
863
863
|
]),
|
|
864
864
|
key: "0"
|
|
865
865
|
} : void 0
|
|
866
866
|
]), 1024)
|
|
867
867
|
], !0)
|
|
868
|
-
], 8,
|
|
868
|
+
], 8, Zr),
|
|
869
869
|
N("div", {
|
|
870
870
|
class: "config-card-details-value",
|
|
871
871
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -873,14 +873,14 @@ const Y = {
|
|
|
873
873
|
P(b.$slots, e.item.key, {
|
|
874
874
|
rowValue: e.item.value
|
|
875
875
|
}, () => [
|
|
876
|
-
l.value ? (p(), w("div",
|
|
877
|
-
(p(), M(
|
|
876
|
+
l.value ? (p(), w("div", ni, [
|
|
877
|
+
(p(), M(Me(f.value.tag), qn(Hn(f.value.attrs)), {
|
|
878
878
|
default: k(() => [
|
|
879
879
|
f.value.additionalComponent === "KBadge" ? (p(), w("div", {
|
|
880
880
|
key: 0,
|
|
881
881
|
"data-testid": `${e.item.key}-badge-tags`
|
|
882
882
|
}, [
|
|
883
|
-
(p(!0), w(
|
|
883
|
+
(p(!0), w(se, null, le(e.item.value, (h, x) => (p(), M(g, {
|
|
884
884
|
key: `${e.item.key}-badge-tag-${x}`,
|
|
885
885
|
class: "config-badge",
|
|
886
886
|
"data-testid": `${e.item.key}-badge-tag-${x}`,
|
|
@@ -892,25 +892,25 @@ const Y = {
|
|
|
892
892
|
]),
|
|
893
893
|
_: 2
|
|
894
894
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
895
|
-
], 8,
|
|
895
|
+
], 8, ri)) : j("", !0),
|
|
896
896
|
f.value.additionalComponent === "KCopy" ? (p(), w("div", {
|
|
897
897
|
key: 1,
|
|
898
898
|
class: "copy-uuid-array",
|
|
899
899
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
900
900
|
}, [
|
|
901
|
-
(p(!0), w(
|
|
901
|
+
(p(!0), w(se, null, le(e.item.value, (h, x) => (p(), M($, Yn({ ref_for: !0 }, f.value.childAttrs, {
|
|
902
902
|
key: `${e.item.key}-copy-uuid-${x}`,
|
|
903
903
|
"data-testid": `${e.item.key}-copy-uuid-${x}`,
|
|
904
904
|
text: h
|
|
905
905
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
906
|
-
], 8,
|
|
906
|
+
], 8, ii)) : f.value.additionalComponent === "KMethodBadge" ? (p(), w("div", {
|
|
907
907
|
key: 2,
|
|
908
908
|
class: "method-badge-array",
|
|
909
909
|
"data-testid": `${e.item.key}-badge-methods`
|
|
910
910
|
}, [
|
|
911
|
-
(p(!0), w(
|
|
911
|
+
(p(!0), w(se, null, le(e.item.value, (h, x) => (p(), M(g, {
|
|
912
912
|
key: `${e.item.key}-badge-method-${x}`,
|
|
913
|
-
appearance: Object.values(A(
|
|
913
|
+
appearance: Object.values(A(Qn)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
914
914
|
class: "config-badge",
|
|
915
915
|
"data-testid": `${e.item.key}-badge-method-${x}`
|
|
916
916
|
}, {
|
|
@@ -919,18 +919,18 @@ const Y = {
|
|
|
919
919
|
]),
|
|
920
920
|
_: 2
|
|
921
921
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
922
|
-
], 8,
|
|
922
|
+
], 8, ai)) : j("", !0),
|
|
923
923
|
f.value.additionalComponent === "JsonCardItem" ? (p(), w("div", {
|
|
924
924
|
key: 3,
|
|
925
925
|
"data-testid": `${n.item.key}-json-array-content`
|
|
926
926
|
}, [
|
|
927
|
-
(p(!0), w(
|
|
927
|
+
(p(!0), w(se, null, le(e.item.value, (h, x) => (p(), M(Gt, {
|
|
928
928
|
key: `json-array-item-${x}`,
|
|
929
929
|
index: x,
|
|
930
930
|
"is-array-item": "",
|
|
931
931
|
item: h
|
|
932
932
|
}, null, 8, ["index", "item"]))), 128))
|
|
933
|
-
], 8,
|
|
933
|
+
], 8, oi)) : (p(), M(F, {
|
|
934
934
|
key: 4,
|
|
935
935
|
text: A(I) ? e.item.value : ""
|
|
936
936
|
}, {
|
|
@@ -938,7 +938,7 @@ const Y = {
|
|
|
938
938
|
N("span", {
|
|
939
939
|
ref_key: "textContent",
|
|
940
940
|
ref: y,
|
|
941
|
-
class:
|
|
941
|
+
class: ue(["attrs-data-text", { truncated: e.truncated }])
|
|
942
942
|
}, E(f.value.text), 3)
|
|
943
943
|
]),
|
|
944
944
|
_: 1
|
|
@@ -949,16 +949,16 @@ const Y = {
|
|
|
949
949
|
])) : (p(), w("div", {
|
|
950
950
|
key: 0,
|
|
951
951
|
"data-testid": `${e.item.key}-no-value`
|
|
952
|
-
}, " – ", 8,
|
|
952
|
+
}, " – ", 8, ti))
|
|
953
953
|
], !0)
|
|
954
|
-
], 8,
|
|
954
|
+
], 8, ei)
|
|
955
955
|
]);
|
|
956
956
|
};
|
|
957
957
|
}
|
|
958
|
-
}),
|
|
958
|
+
}), zt = /* @__PURE__ */ oe(si, [["__scopeId", "data-v-761f7e64"]]), ci = { class: "json-config config-card-code-block" }, ui = {
|
|
959
959
|
key: 0,
|
|
960
960
|
class: "json-endpoint"
|
|
961
|
-
},
|
|
961
|
+
}, Qt = /* @__PURE__ */ J({
|
|
962
962
|
__name: "JsonCodeBlock",
|
|
963
963
|
props: {
|
|
964
964
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -986,7 +986,7 @@ const Y = {
|
|
|
986
986
|
}
|
|
987
987
|
},
|
|
988
988
|
setup(e) {
|
|
989
|
-
|
|
989
|
+
jt((i) => ({
|
|
990
990
|
"54aebfa2": `${r.value}ch`
|
|
991
991
|
}));
|
|
992
992
|
const t = e, n = T(() => t.entityRecord), r = T(() => {
|
|
@@ -998,8 +998,8 @@ const Y = {
|
|
|
998
998
|
});
|
|
999
999
|
return (i, o) => {
|
|
1000
1000
|
const a = U("KBadge"), l = U("KCodeBlock");
|
|
1001
|
-
return p(), w("div",
|
|
1002
|
-
t.fetcherUrl ? (p(), w("div",
|
|
1001
|
+
return p(), w("div", ci, [
|
|
1002
|
+
t.fetcherUrl ? (p(), w("div", ui, [
|
|
1003
1003
|
D(a, {
|
|
1004
1004
|
appearance: t.requestMethod
|
|
1005
1005
|
}, {
|
|
@@ -1019,7 +1019,7 @@ const Y = {
|
|
|
1019
1019
|
t.entityRecord ? (p(), M(l, {
|
|
1020
1020
|
key: 1,
|
|
1021
1021
|
id: "json-codeblock",
|
|
1022
|
-
class:
|
|
1022
|
+
class: ue({ "json-content": t.fetcherUrl }),
|
|
1023
1023
|
code: JSON.stringify(n.value, null, 2),
|
|
1024
1024
|
language: "json",
|
|
1025
1025
|
theme: "dark"
|
|
@@ -1029,55 +1029,55 @@ const Y = {
|
|
|
1029
1029
|
}
|
|
1030
1030
|
});
|
|
1031
1031
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1032
|
-
function
|
|
1032
|
+
function Zt(e) {
|
|
1033
1033
|
return typeof e > "u" || e === null;
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function di(e) {
|
|
1036
1036
|
return typeof e == "object" && e !== null;
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1039
|
-
return Array.isArray(e) ? e :
|
|
1038
|
+
function fi(e) {
|
|
1039
|
+
return Array.isArray(e) ? e : Zt(e) ? [] : [e];
|
|
1040
1040
|
}
|
|
1041
|
-
function
|
|
1041
|
+
function pi(e, t) {
|
|
1042
1042
|
var n, r, i, o;
|
|
1043
1043
|
if (t)
|
|
1044
1044
|
for (o = Object.keys(t), n = 0, r = o.length; n < r; n += 1)
|
|
1045
1045
|
i = o[n], e[i] = t[i];
|
|
1046
1046
|
return e;
|
|
1047
1047
|
}
|
|
1048
|
-
function
|
|
1048
|
+
function mi(e, t) {
|
|
1049
1049
|
var n = "", r;
|
|
1050
1050
|
for (r = 0; r < t; r += 1)
|
|
1051
1051
|
n += e;
|
|
1052
1052
|
return n;
|
|
1053
1053
|
}
|
|
1054
|
-
function
|
|
1054
|
+
function hi(e) {
|
|
1055
1055
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1056
1056
|
}
|
|
1057
|
-
var
|
|
1058
|
-
isNothing:
|
|
1059
|
-
isObject:
|
|
1060
|
-
toArray:
|
|
1061
|
-
repeat:
|
|
1062
|
-
isNegativeZero:
|
|
1063
|
-
extend:
|
|
1057
|
+
var gi = Zt, yi = di, vi = fi, bi = mi, xi = hi, Ci = pi, Z = {
|
|
1058
|
+
isNothing: gi,
|
|
1059
|
+
isObject: yi,
|
|
1060
|
+
toArray: vi,
|
|
1061
|
+
repeat: bi,
|
|
1062
|
+
isNegativeZero: xi,
|
|
1063
|
+
extend: Ci
|
|
1064
1064
|
};
|
|
1065
|
-
function
|
|
1065
|
+
function Xt(e, t) {
|
|
1066
1066
|
var n = "", r = e.reason || "(unknown reason)";
|
|
1067
1067
|
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 += `
|
|
1068
1068
|
|
|
1069
1069
|
` + e.mark.snippet), r + " " + n) : r;
|
|
1070
1070
|
}
|
|
1071
|
-
function
|
|
1072
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message =
|
|
1071
|
+
function Se(e, t) {
|
|
1072
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = t, this.message = Xt(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1073
1073
|
}
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
return this.name + ": " +
|
|
1074
|
+
Se.prototype = Object.create(Error.prototype);
|
|
1075
|
+
Se.prototype.constructor = Se;
|
|
1076
|
+
Se.prototype.toString = function(t) {
|
|
1077
|
+
return this.name + ": " + Xt(this, t);
|
|
1078
1078
|
};
|
|
1079
|
-
var
|
|
1080
|
-
function
|
|
1079
|
+
var re = Se;
|
|
1080
|
+
function qe(e, t, n, r, i) {
|
|
1081
1081
|
var o = "", a = "", l = Math.floor(i / 2) - 1;
|
|
1082
1082
|
return r - t > l && (o = " ... ", t = r - l + o.length), n - r > l && (a = " ...", n = r + l - a.length), {
|
|
1083
1083
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1085,10 +1085,10 @@ function Pe(e, t, n, r, i) {
|
|
|
1085
1085
|
// relative position
|
|
1086
1086
|
};
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
return
|
|
1088
|
+
function He(e, t) {
|
|
1089
|
+
return Z.repeat(" ", t - e.length) + e;
|
|
1090
1090
|
}
|
|
1091
|
-
function
|
|
1091
|
+
function ki(e, t) {
|
|
1092
1092
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1093
1093
|
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);
|
|
1094
1094
|
for (var n = /\r?\n|\r|\0/g, r = [0], i = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1096,28 +1096,28 @@ function Ci(e, t) {
|
|
|
1096
1096
|
a < 0 && (a = r.length - 1);
|
|
1097
1097
|
var l = "", s, c, d = Math.min(e.line + t.linesAfter, i.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1098
1098
|
for (s = 1; s <= t.linesBefore && !(a - s < 0); s++)
|
|
1099
|
-
c =
|
|
1099
|
+
c = qe(
|
|
1100
1100
|
e.buffer,
|
|
1101
1101
|
r[a - s],
|
|
1102
1102
|
i[a - s],
|
|
1103
1103
|
e.position - (r[a] - r[a - s]),
|
|
1104
1104
|
u
|
|
1105
|
-
), l =
|
|
1105
|
+
), l = Z.repeat(" ", t.indent) + He((e.line - s + 1).toString(), d) + " | " + c.str + `
|
|
1106
1106
|
` + l;
|
|
1107
|
-
for (c =
|
|
1108
|
-
`, l +=
|
|
1107
|
+
for (c = qe(e.buffer, r[a], i[a], e.position, u), l += Z.repeat(" ", t.indent) + He((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1108
|
+
`, l += Z.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1109
1109
|
`, s = 1; s <= t.linesAfter && !(a + s >= i.length); s++)
|
|
1110
|
-
c =
|
|
1110
|
+
c = qe(
|
|
1111
1111
|
e.buffer,
|
|
1112
1112
|
r[a + s],
|
|
1113
1113
|
i[a + s],
|
|
1114
1114
|
e.position - (r[a] - r[a + s]),
|
|
1115
1115
|
u
|
|
1116
|
-
), l +=
|
|
1116
|
+
), l += Z.repeat(" ", t.indent) + He((e.line + s + 1).toString(), d) + " | " + c.str + `
|
|
1117
1117
|
`;
|
|
1118
1118
|
return l.replace(/\n$/, "");
|
|
1119
1119
|
}
|
|
1120
|
-
var
|
|
1120
|
+
var Ai = ki, _i = [
|
|
1121
1121
|
"kind",
|
|
1122
1122
|
"multi",
|
|
1123
1123
|
"resolve",
|
|
@@ -1128,12 +1128,12 @@ var ki = Ci, Ai = [
|
|
|
1128
1128
|
"representName",
|
|
1129
1129
|
"defaultStyle",
|
|
1130
1130
|
"styleAliases"
|
|
1131
|
-
],
|
|
1131
|
+
], wi = [
|
|
1132
1132
|
"scalar",
|
|
1133
1133
|
"sequence",
|
|
1134
1134
|
"mapping"
|
|
1135
1135
|
];
|
|
1136
|
-
function
|
|
1136
|
+
function Si(e) {
|
|
1137
1137
|
var t = {};
|
|
1138
1138
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1139
1139
|
e[n].forEach(function(r) {
|
|
@@ -1141,19 +1141,19 @@ function wi(e) {
|
|
|
1141
1141
|
});
|
|
1142
1142
|
}), t;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1144
|
+
function $i(e, t) {
|
|
1145
1145
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1146
|
-
if (
|
|
1147
|
-
throw new
|
|
1146
|
+
if (_i.indexOf(n) === -1)
|
|
1147
|
+
throw new re('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1148
1148
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1149
1149
|
return !0;
|
|
1150
1150
|
}, this.construct = t.construct || function(n) {
|
|
1151
1151
|
return n;
|
|
1152
|
-
}, 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 =
|
|
1153
|
-
throw new
|
|
1152
|
+
}, 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 = Si(t.styleAliases || null), wi.indexOf(this.kind) === -1)
|
|
1153
|
+
throw new re('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1154
1154
|
}
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1155
|
+
var ee = $i;
|
|
1156
|
+
function Ct(e, t) {
|
|
1157
1157
|
var n = [];
|
|
1158
1158
|
return e[t].forEach(function(r) {
|
|
1159
1159
|
var i = n.length;
|
|
@@ -1162,7 +1162,7 @@ function xt(e, t) {
|
|
|
1162
1162
|
}), n[i] = r;
|
|
1163
1163
|
}), n;
|
|
1164
1164
|
}
|
|
1165
|
-
function
|
|
1165
|
+
function Ti() {
|
|
1166
1166
|
var e = {
|
|
1167
1167
|
scalar: {},
|
|
1168
1168
|
sequence: {},
|
|
@@ -1182,71 +1182,71 @@ function $i() {
|
|
|
1182
1182
|
arguments[t].forEach(r);
|
|
1183
1183
|
return e;
|
|
1184
1184
|
}
|
|
1185
|
-
function
|
|
1185
|
+
function Ge(e) {
|
|
1186
1186
|
return this.extend(e);
|
|
1187
1187
|
}
|
|
1188
|
-
|
|
1188
|
+
Ge.prototype.extend = function(t) {
|
|
1189
1189
|
var n = [], r = [];
|
|
1190
|
-
if (t instanceof
|
|
1190
|
+
if (t instanceof ee)
|
|
1191
1191
|
r.push(t);
|
|
1192
1192
|
else if (Array.isArray(t))
|
|
1193
1193
|
r = r.concat(t);
|
|
1194
1194
|
else if (t && (Array.isArray(t.implicit) || Array.isArray(t.explicit)))
|
|
1195
1195
|
t.implicit && (n = n.concat(t.implicit)), t.explicit && (r = r.concat(t.explicit));
|
|
1196
1196
|
else
|
|
1197
|
-
throw new
|
|
1197
|
+
throw new re("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1198
1198
|
n.forEach(function(o) {
|
|
1199
|
-
if (!(o instanceof
|
|
1200
|
-
throw new
|
|
1199
|
+
if (!(o instanceof ee))
|
|
1200
|
+
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1201
1201
|
if (o.loadKind && o.loadKind !== "scalar")
|
|
1202
|
-
throw new
|
|
1202
|
+
throw new re("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1203
1203
|
if (o.multi)
|
|
1204
|
-
throw new
|
|
1204
|
+
throw new re("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1205
1205
|
}), r.forEach(function(o) {
|
|
1206
|
-
if (!(o instanceof
|
|
1207
|
-
throw new
|
|
1206
|
+
if (!(o instanceof ee))
|
|
1207
|
+
throw new re("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1208
1208
|
});
|
|
1209
|
-
var i = Object.create(
|
|
1210
|
-
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit =
|
|
1209
|
+
var i = Object.create(Ge.prototype);
|
|
1210
|
+
return i.implicit = (this.implicit || []).concat(n), i.explicit = (this.explicit || []).concat(r), i.compiledImplicit = Ct(i, "implicit"), i.compiledExplicit = Ct(i, "explicit"), i.compiledTypeMap = Ti(i.compiledImplicit, i.compiledExplicit), i;
|
|
1211
1211
|
};
|
|
1212
|
-
var
|
|
1212
|
+
var en = Ge, tn = new ee("tag:yaml.org,2002:str", {
|
|
1213
1213
|
kind: "scalar",
|
|
1214
1214
|
construct: function(e) {
|
|
1215
1215
|
return e !== null ? e : "";
|
|
1216
1216
|
}
|
|
1217
|
-
}),
|
|
1217
|
+
}), nn = new ee("tag:yaml.org,2002:seq", {
|
|
1218
1218
|
kind: "sequence",
|
|
1219
1219
|
construct: function(e) {
|
|
1220
1220
|
return e !== null ? e : [];
|
|
1221
1221
|
}
|
|
1222
|
-
}),
|
|
1222
|
+
}), rn = new ee("tag:yaml.org,2002:map", {
|
|
1223
1223
|
kind: "mapping",
|
|
1224
1224
|
construct: function(e) {
|
|
1225
1225
|
return e !== null ? e : {};
|
|
1226
1226
|
}
|
|
1227
|
-
}),
|
|
1227
|
+
}), an = new en({
|
|
1228
1228
|
explicit: [
|
|
1229
|
-
en,
|
|
1230
1229
|
tn,
|
|
1231
|
-
nn
|
|
1230
|
+
nn,
|
|
1231
|
+
rn
|
|
1232
1232
|
]
|
|
1233
1233
|
});
|
|
1234
|
-
function
|
|
1234
|
+
function Ii(e) {
|
|
1235
1235
|
if (e === null) return !0;
|
|
1236
1236
|
var t = e.length;
|
|
1237
1237
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1238
1238
|
}
|
|
1239
|
-
function
|
|
1239
|
+
function Ei() {
|
|
1240
1240
|
return null;
|
|
1241
1241
|
}
|
|
1242
|
-
function
|
|
1242
|
+
function Fi(e) {
|
|
1243
1243
|
return e === null;
|
|
1244
1244
|
}
|
|
1245
|
-
var
|
|
1245
|
+
var on = new ee("tag:yaml.org,2002:null", {
|
|
1246
1246
|
kind: "scalar",
|
|
1247
|
-
resolve:
|
|
1248
|
-
construct:
|
|
1249
|
-
predicate:
|
|
1247
|
+
resolve: Ii,
|
|
1248
|
+
construct: Ei,
|
|
1249
|
+
predicate: Fi,
|
|
1250
1250
|
represent: {
|
|
1251
1251
|
canonical: function() {
|
|
1252
1252
|
return "~";
|
|
@@ -1266,22 +1266,22 @@ var an = new X("tag:yaml.org,2002:null", {
|
|
|
1266
1266
|
},
|
|
1267
1267
|
defaultStyle: "lowercase"
|
|
1268
1268
|
});
|
|
1269
|
-
function
|
|
1269
|
+
function Oi(e) {
|
|
1270
1270
|
if (e === null) return !1;
|
|
1271
1271
|
var t = e.length;
|
|
1272
1272
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Li(e) {
|
|
1275
1275
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ki(e) {
|
|
1278
1278
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1279
1279
|
}
|
|
1280
|
-
var
|
|
1280
|
+
var ln = new ee("tag:yaml.org,2002:bool", {
|
|
1281
1281
|
kind: "scalar",
|
|
1282
|
-
resolve:
|
|
1283
|
-
construct:
|
|
1284
|
-
predicate:
|
|
1282
|
+
resolve: Oi,
|
|
1283
|
+
construct: Li,
|
|
1284
|
+
predicate: Ki,
|
|
1285
1285
|
represent: {
|
|
1286
1286
|
lowercase: function(e) {
|
|
1287
1287
|
return e ? "true" : "false";
|
|
@@ -1301,10 +1301,10 @@ function Ri(e) {
|
|
|
1301
1301
|
function Bi(e) {
|
|
1302
1302
|
return 48 <= e && e <= 55;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function Ni(e) {
|
|
1305
1305
|
return 48 <= e && e <= 57;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Mi(e) {
|
|
1308
1308
|
if (e === null) return !1;
|
|
1309
1309
|
var t = e.length, n = 0, r = !1, i;
|
|
1310
1310
|
if (!t) return !1;
|
|
@@ -1338,13 +1338,13 @@ function Ni(e) {
|
|
|
1338
1338
|
if (i === "_") return !1;
|
|
1339
1339
|
for (; n < t; n++)
|
|
1340
1340
|
if (i = e[n], i !== "_") {
|
|
1341
|
-
if (!
|
|
1341
|
+
if (!Ni(e.charCodeAt(n)))
|
|
1342
1342
|
return !1;
|
|
1343
1343
|
r = !0;
|
|
1344
1344
|
}
|
|
1345
1345
|
return !(!r || i === "_");
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1347
|
+
function Di(e) {
|
|
1348
1348
|
var t = e, n = 1, r;
|
|
1349
1349
|
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") return 0;
|
|
1350
1350
|
if (r === "0") {
|
|
@@ -1354,14 +1354,14 @@ function Mi(e) {
|
|
|
1354
1354
|
}
|
|
1355
1355
|
return n * parseInt(t, 10);
|
|
1356
1356
|
}
|
|
1357
|
-
function
|
|
1358
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1357
|
+
function ji(e) {
|
|
1358
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !Z.isNegativeZero(e);
|
|
1359
1359
|
}
|
|
1360
|
-
var
|
|
1360
|
+
var sn = new ee("tag:yaml.org,2002:int", {
|
|
1361
1361
|
kind: "scalar",
|
|
1362
|
-
resolve:
|
|
1363
|
-
construct:
|
|
1364
|
-
predicate:
|
|
1362
|
+
resolve: Mi,
|
|
1363
|
+
construct: Di,
|
|
1364
|
+
predicate: ji,
|
|
1365
1365
|
represent: {
|
|
1366
1366
|
binary: function(e) {
|
|
1367
1367
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1384,21 +1384,21 @@ var ln = new X("tag:yaml.org,2002:int", {
|
|
|
1384
1384
|
decimal: [10, "dec"],
|
|
1385
1385
|
hexadecimal: [16, "hex"]
|
|
1386
1386
|
}
|
|
1387
|
-
}),
|
|
1387
|
+
}), Ui = new RegExp(
|
|
1388
1388
|
// 2.5e4, 2.5 and integers
|
|
1389
1389
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1390
1390
|
);
|
|
1391
|
-
function
|
|
1392
|
-
return !(e === null || !
|
|
1391
|
+
function Pi(e) {
|
|
1392
|
+
return !(e === null || !Ui.test(e) || // Quick hack to not allow integers end with `_`
|
|
1393
1393
|
// Probably should update regexp & check speed
|
|
1394
1394
|
e[e.length - 1] === "_");
|
|
1395
1395
|
}
|
|
1396
|
-
function
|
|
1396
|
+
function qi(e) {
|
|
1397
1397
|
var t, n;
|
|
1398
1398
|
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);
|
|
1399
1399
|
}
|
|
1400
|
-
var
|
|
1401
|
-
function
|
|
1400
|
+
var Hi = /^[-+]?[0-9]+e/;
|
|
1401
|
+
function Yi(e, t) {
|
|
1402
1402
|
var n;
|
|
1403
1403
|
if (isNaN(e))
|
|
1404
1404
|
switch (t) {
|
|
@@ -1427,38 +1427,38 @@ function Hi(e, t) {
|
|
|
1427
1427
|
case "camelcase":
|
|
1428
1428
|
return "-.Inf";
|
|
1429
1429
|
}
|
|
1430
|
-
else if (
|
|
1430
|
+
else if (Z.isNegativeZero(e))
|
|
1431
1431
|
return "-0.0";
|
|
1432
|
-
return n = e.toString(10),
|
|
1432
|
+
return n = e.toString(10), Hi.test(n) ? n.replace("e", ".e") : n;
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1434
|
+
function Vi(e) {
|
|
1435
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || Z.isNegativeZero(e));
|
|
1436
1436
|
}
|
|
1437
|
-
var
|
|
1437
|
+
var cn = new ee("tag:yaml.org,2002:float", {
|
|
1438
1438
|
kind: "scalar",
|
|
1439
|
-
resolve:
|
|
1440
|
-
construct:
|
|
1441
|
-
predicate:
|
|
1442
|
-
represent:
|
|
1439
|
+
resolve: Pi,
|
|
1440
|
+
construct: qi,
|
|
1441
|
+
predicate: Vi,
|
|
1442
|
+
represent: Yi,
|
|
1443
1443
|
defaultStyle: "lowercase"
|
|
1444
|
-
}),
|
|
1444
|
+
}), un = an.extend({
|
|
1445
1445
|
implicit: [
|
|
1446
|
-
an,
|
|
1447
1446
|
on,
|
|
1448
1447
|
ln,
|
|
1449
|
-
sn
|
|
1448
|
+
sn,
|
|
1449
|
+
cn
|
|
1450
1450
|
]
|
|
1451
|
-
}),
|
|
1451
|
+
}), dn = un, fn = new RegExp(
|
|
1452
1452
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1453
|
-
),
|
|
1453
|
+
), pn = new RegExp(
|
|
1454
1454
|
"^([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]))?))?$"
|
|
1455
1455
|
);
|
|
1456
|
-
function Vi(e) {
|
|
1457
|
-
return e === null ? !1 : dn.exec(e) !== null || fn.exec(e) !== null;
|
|
1458
|
-
}
|
|
1459
1456
|
function Wi(e) {
|
|
1457
|
+
return e === null ? !1 : fn.exec(e) !== null || pn.exec(e) !== null;
|
|
1458
|
+
}
|
|
1459
|
+
function Ji(e) {
|
|
1460
1460
|
var t, n, r, i, o, a, l, s = 0, c = null, d, u, m;
|
|
1461
|
-
if (t =
|
|
1461
|
+
if (t = fn.exec(e), t === null && (t = pn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1462
1462
|
if (n = +t[1], r = +t[2] - 1, i = +t[3], !t[4])
|
|
1463
1463
|
return new Date(Date.UTC(n, r, i));
|
|
1464
1464
|
if (o = +t[4], a = +t[5], l = +t[6], t[7]) {
|
|
@@ -1468,27 +1468,27 @@ function Wi(e) {
|
|
|
1468
1468
|
}
|
|
1469
1469
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), m = new Date(Date.UTC(n, r, i, o, a, l, s)), c && m.setTime(m.getTime() - c), m;
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function Gi(e) {
|
|
1472
1472
|
return e.toISOString();
|
|
1473
1473
|
}
|
|
1474
|
-
var
|
|
1474
|
+
var mn = new ee("tag:yaml.org,2002:timestamp", {
|
|
1475
1475
|
kind: "scalar",
|
|
1476
|
-
resolve:
|
|
1477
|
-
construct:
|
|
1476
|
+
resolve: Wi,
|
|
1477
|
+
construct: Ji,
|
|
1478
1478
|
instanceOf: Date,
|
|
1479
|
-
represent:
|
|
1479
|
+
represent: Gi
|
|
1480
1480
|
});
|
|
1481
|
-
function
|
|
1481
|
+
function zi(e) {
|
|
1482
1482
|
return e === "<<" || e === null;
|
|
1483
1483
|
}
|
|
1484
|
-
var
|
|
1484
|
+
var hn = new ee("tag:yaml.org,2002:merge", {
|
|
1485
1485
|
kind: "scalar",
|
|
1486
|
-
resolve:
|
|
1487
|
-
}),
|
|
1486
|
+
resolve: zi
|
|
1487
|
+
}), it = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1488
1488
|
\r`;
|
|
1489
|
-
function
|
|
1489
|
+
function Qi(e) {
|
|
1490
1490
|
if (e === null) return !1;
|
|
1491
|
-
var t, n, r = 0, i = e.length, o =
|
|
1491
|
+
var t, n, r = 0, i = e.length, o = it;
|
|
1492
1492
|
for (n = 0; n < i; n++)
|
|
1493
1493
|
if (t = o.indexOf(e.charAt(n)), !(t > 64)) {
|
|
1494
1494
|
if (t < 0) return !1;
|
|
@@ -1496,35 +1496,35 @@ function zi(e) {
|
|
|
1496
1496
|
}
|
|
1497
1497
|
return r % 8 === 0;
|
|
1498
1498
|
}
|
|
1499
|
-
function
|
|
1500
|
-
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o =
|
|
1499
|
+
function Zi(e) {
|
|
1500
|
+
var t, n, r = e.replace(/[\r\n=]/g, ""), i = r.length, o = it, a = 0, l = [];
|
|
1501
1501
|
for (t = 0; t < i; t++)
|
|
1502
1502
|
t % 4 === 0 && t && (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)), a = a << 6 | o.indexOf(r.charAt(t));
|
|
1503
1503
|
return n = i % 4 * 6, n === 0 ? (l.push(a >> 16 & 255), l.push(a >> 8 & 255), l.push(a & 255)) : n === 18 ? (l.push(a >> 10 & 255), l.push(a >> 2 & 255)) : n === 12 && l.push(a >> 4 & 255), new Uint8Array(l);
|
|
1504
1504
|
}
|
|
1505
|
-
function
|
|
1506
|
-
var t = "", n = 0, r, i, o = e.length, a =
|
|
1505
|
+
function Xi(e) {
|
|
1506
|
+
var t = "", n = 0, r, i, o = e.length, a = it;
|
|
1507
1507
|
for (r = 0; r < o; r++)
|
|
1508
1508
|
r % 3 === 0 && r && (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]), n = (n << 8) + e[r];
|
|
1509
1509
|
return i = o % 3, i === 0 ? (t += a[n >> 18 & 63], t += a[n >> 12 & 63], t += a[n >> 6 & 63], t += a[n & 63]) : i === 2 ? (t += a[n >> 10 & 63], t += a[n >> 4 & 63], t += a[n << 2 & 63], t += a[64]) : i === 1 && (t += a[n >> 2 & 63], t += a[n << 4 & 63], t += a[64], t += a[64]), t;
|
|
1510
1510
|
}
|
|
1511
|
-
function
|
|
1511
|
+
function ea(e) {
|
|
1512
1512
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1513
1513
|
}
|
|
1514
|
-
var
|
|
1514
|
+
var gn = new ee("tag:yaml.org,2002:binary", {
|
|
1515
1515
|
kind: "scalar",
|
|
1516
|
-
resolve:
|
|
1517
|
-
construct:
|
|
1518
|
-
predicate:
|
|
1519
|
-
represent:
|
|
1520
|
-
}),
|
|
1521
|
-
function
|
|
1516
|
+
resolve: Qi,
|
|
1517
|
+
construct: Zi,
|
|
1518
|
+
predicate: ea,
|
|
1519
|
+
represent: Xi
|
|
1520
|
+
}), ta = Object.prototype.hasOwnProperty, na = Object.prototype.toString;
|
|
1521
|
+
function ra(e) {
|
|
1522
1522
|
if (e === null) return !0;
|
|
1523
1523
|
var t = [], n, r, i, o, a, l = e;
|
|
1524
1524
|
for (n = 0, r = l.length; n < r; n += 1) {
|
|
1525
|
-
if (i = l[n], a = !1,
|
|
1525
|
+
if (i = l[n], a = !1, na.call(i) !== "[object Object]") return !1;
|
|
1526
1526
|
for (o in i)
|
|
1527
|
-
if (
|
|
1527
|
+
if (ta.call(i, o))
|
|
1528
1528
|
if (!a) a = !0;
|
|
1529
1529
|
else return !1;
|
|
1530
1530
|
if (!a) return !1;
|
|
@@ -1533,104 +1533,104 @@ function na(e) {
|
|
|
1533
1533
|
}
|
|
1534
1534
|
return !0;
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1536
|
+
function ia(e) {
|
|
1537
1537
|
return e !== null ? e : [];
|
|
1538
1538
|
}
|
|
1539
|
-
var
|
|
1539
|
+
var yn = new ee("tag:yaml.org,2002:omap", {
|
|
1540
1540
|
kind: "sequence",
|
|
1541
|
-
resolve:
|
|
1542
|
-
construct:
|
|
1543
|
-
}),
|
|
1544
|
-
function
|
|
1541
|
+
resolve: ra,
|
|
1542
|
+
construct: ia
|
|
1543
|
+
}), aa = Object.prototype.toString;
|
|
1544
|
+
function oa(e) {
|
|
1545
1545
|
if (e === null) return !0;
|
|
1546
1546
|
var t, n, r, i, o, a = e;
|
|
1547
1547
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1548
|
-
if (r = a[t],
|
|
1548
|
+
if (r = a[t], aa.call(r) !== "[object Object]" || (i = Object.keys(r), i.length !== 1)) return !1;
|
|
1549
1549
|
o[t] = [i[0], r[i[0]]];
|
|
1550
1550
|
}
|
|
1551
1551
|
return !0;
|
|
1552
1552
|
}
|
|
1553
|
-
function
|
|
1553
|
+
function la(e) {
|
|
1554
1554
|
if (e === null) return [];
|
|
1555
1555
|
var t, n, r, i, o, a = e;
|
|
1556
1556
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
1557
1557
|
r = a[t], i = Object.keys(r), o[t] = [i[0], r[i[0]]];
|
|
1558
1558
|
return o;
|
|
1559
1559
|
}
|
|
1560
|
-
var
|
|
1560
|
+
var vn = new ee("tag:yaml.org,2002:pairs", {
|
|
1561
1561
|
kind: "sequence",
|
|
1562
|
-
resolve:
|
|
1563
|
-
construct:
|
|
1564
|
-
}),
|
|
1565
|
-
function
|
|
1562
|
+
resolve: oa,
|
|
1563
|
+
construct: la
|
|
1564
|
+
}), sa = Object.prototype.hasOwnProperty;
|
|
1565
|
+
function ca(e) {
|
|
1566
1566
|
if (e === null) return !0;
|
|
1567
1567
|
var t, n = e;
|
|
1568
1568
|
for (t in n)
|
|
1569
|
-
if (
|
|
1569
|
+
if (sa.call(n, t) && n[t] !== null)
|
|
1570
1570
|
return !1;
|
|
1571
1571
|
return !0;
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function ua(e) {
|
|
1574
1574
|
return e !== null ? e : {};
|
|
1575
1575
|
}
|
|
1576
|
-
var
|
|
1576
|
+
var bn = new ee("tag:yaml.org,2002:set", {
|
|
1577
1577
|
kind: "mapping",
|
|
1578
|
-
resolve:
|
|
1579
|
-
construct:
|
|
1580
|
-
}),
|
|
1578
|
+
resolve: ca,
|
|
1579
|
+
construct: ua
|
|
1580
|
+
}), at = dn.extend({
|
|
1581
1581
|
implicit: [
|
|
1582
|
-
|
|
1583
|
-
|
|
1582
|
+
mn,
|
|
1583
|
+
hn
|
|
1584
1584
|
],
|
|
1585
1585
|
explicit: [
|
|
1586
|
-
hn,
|
|
1587
1586
|
gn,
|
|
1588
1587
|
yn,
|
|
1589
|
-
vn
|
|
1588
|
+
vn,
|
|
1589
|
+
bn
|
|
1590
1590
|
]
|
|
1591
|
-
}),
|
|
1592
|
-
function
|
|
1591
|
+
}), me = Object.prototype.hasOwnProperty, Le = 1, xn = 2, Cn = 3, Ke = 4, Ye = 1, da = 2, kt = 3, fa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, pa = /[\x85\u2028\u2029]/, ma = /[,\[\]\{\}]/, kn = /^(?:!|!!|![a-z\-]+!)$/i, An = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1592
|
+
function At(e) {
|
|
1593
1593
|
return Object.prototype.toString.call(e);
|
|
1594
1594
|
}
|
|
1595
|
-
function
|
|
1595
|
+
function ce(e) {
|
|
1596
1596
|
return e === 10 || e === 13;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function he(e) {
|
|
1599
1599
|
return e === 9 || e === 32;
|
|
1600
1600
|
}
|
|
1601
|
-
function
|
|
1601
|
+
function ie(e) {
|
|
1602
1602
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1603
1603
|
}
|
|
1604
|
-
function
|
|
1604
|
+
function xe(e) {
|
|
1605
1605
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1606
1606
|
}
|
|
1607
|
-
function
|
|
1607
|
+
function ha(e) {
|
|
1608
1608
|
var t;
|
|
1609
1609
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function ga(e) {
|
|
1612
1612
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1613
1613
|
}
|
|
1614
|
-
function
|
|
1614
|
+
function ya(e) {
|
|
1615
1615
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1616
1616
|
}
|
|
1617
|
-
function
|
|
1617
|
+
function _t(e) {
|
|
1618
1618
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1619
1619
|
` : 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" : "";
|
|
1620
1620
|
}
|
|
1621
|
-
function
|
|
1621
|
+
function va(e) {
|
|
1622
1622
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1623
1623
|
(e - 65536 >> 10) + 55296,
|
|
1624
1624
|
(e - 65536 & 1023) + 56320
|
|
1625
1625
|
);
|
|
1626
1626
|
}
|
|
1627
|
-
var
|
|
1628
|
-
for (var
|
|
1629
|
-
|
|
1630
|
-
function
|
|
1631
|
-
this.input = e, this.filename = t.filename || null, this.schema = t.schema ||
|
|
1627
|
+
var _n = new Array(256), wn = new Array(256);
|
|
1628
|
+
for (var ve = 0; ve < 256; ve++)
|
|
1629
|
+
_n[ve] = _t(ve) ? 1 : 0, wn[ve] = _t(ve);
|
|
1630
|
+
function ba(e, t) {
|
|
1631
|
+
this.input = e, this.filename = t.filename || null, this.schema = t.schema || at, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1632
1632
|
}
|
|
1633
|
-
function
|
|
1633
|
+
function Sn(e, t) {
|
|
1634
1634
|
var n = {
|
|
1635
1635
|
name: e.filename,
|
|
1636
1636
|
buffer: e.input.slice(0, -1),
|
|
@@ -1639,22 +1639,22 @@ function wn(e, t) {
|
|
|
1639
1639
|
line: e.line,
|
|
1640
1640
|
column: e.position - e.lineStart
|
|
1641
1641
|
};
|
|
1642
|
-
return n.snippet =
|
|
1642
|
+
return n.snippet = Ai(n), new re(t, n);
|
|
1643
1643
|
}
|
|
1644
1644
|
function _(e, t) {
|
|
1645
|
-
throw
|
|
1645
|
+
throw Sn(e, t);
|
|
1646
1646
|
}
|
|
1647
1647
|
function Re(e, t) {
|
|
1648
|
-
e.onWarning && e.onWarning.call(null,
|
|
1648
|
+
e.onWarning && e.onWarning.call(null, Sn(e, t));
|
|
1649
1649
|
}
|
|
1650
|
-
var
|
|
1650
|
+
var wt = {
|
|
1651
1651
|
YAML: function(t, n, r) {
|
|
1652
1652
|
var i, o, a;
|
|
1653
1653
|
t.version !== null && _(t, "duplication of %YAML directive"), r.length !== 1 && _(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && _(t, "ill-formed argument of the YAML directive"), o = parseInt(i[1], 10), a = parseInt(i[2], 10), o !== 1 && _(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Re(t, "unsupported YAML version of the document");
|
|
1654
1654
|
},
|
|
1655
1655
|
TAG: function(t, n, r) {
|
|
1656
1656
|
var i, o;
|
|
1657
|
-
r.length !== 2 && _(t, "TAG directive accepts exactly two arguments"), i = r[0], o = r[1],
|
|
1657
|
+
r.length !== 2 && _(t, "TAG directive accepts exactly two arguments"), i = r[0], o = r[1], kn.test(i) || _(t, "ill-formed tag handle (first argument) of the TAG directive"), me.call(t.tagMap, i) && _(t, 'there is a previously declared suffix for "' + i + '" tag handle'), An.test(o) || _(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1658
1658
|
try {
|
|
1659
1659
|
o = decodeURIComponent(o);
|
|
1660
1660
|
} catch {
|
|
@@ -1663,34 +1663,34 @@ var _t = {
|
|
|
1663
1663
|
t.tagMap[i] = o;
|
|
1664
1664
|
}
|
|
1665
1665
|
};
|
|
1666
|
-
function
|
|
1666
|
+
function pe(e, t, n, r) {
|
|
1667
1667
|
var i, o, a, l;
|
|
1668
1668
|
if (t < n) {
|
|
1669
1669
|
if (l = e.input.slice(t, n), r)
|
|
1670
1670
|
for (i = 0, o = l.length; i < o; i += 1)
|
|
1671
1671
|
a = l.charCodeAt(i), a === 9 || 32 <= a && a <= 1114111 || _(e, "expected valid JSON character");
|
|
1672
|
-
else
|
|
1672
|
+
else fa.test(l) && _(e, "the stream contains non-printable characters");
|
|
1673
1673
|
e.result += l;
|
|
1674
1674
|
}
|
|
1675
1675
|
}
|
|
1676
|
-
function
|
|
1676
|
+
function St(e, t, n, r) {
|
|
1677
1677
|
var i, o, a, l;
|
|
1678
|
-
for (
|
|
1679
|
-
o = i[a],
|
|
1678
|
+
for (Z.isObject(n) || _(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
|
|
1679
|
+
o = i[a], me.call(t, o) || (t[o] = n[o], r[o] = !0);
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function Ce(e, t, n, r, i, o, a, l, s) {
|
|
1682
1682
|
var c, d;
|
|
1683
1683
|
if (Array.isArray(i))
|
|
1684
1684
|
for (i = Array.prototype.slice.call(i), c = 0, d = i.length; c < d; c += 1)
|
|
1685
|
-
Array.isArray(i[c]) && _(e, "nested arrays are not supported inside keys"), typeof i == "object" &&
|
|
1686
|
-
if (typeof i == "object" &&
|
|
1685
|
+
Array.isArray(i[c]) && _(e, "nested arrays are not supported inside keys"), typeof i == "object" && At(i[c]) === "[object Object]" && (i[c] = "[object Object]");
|
|
1686
|
+
if (typeof i == "object" && At(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
|
|
1687
1687
|
if (Array.isArray(o))
|
|
1688
1688
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
1689
|
-
|
|
1689
|
+
St(e, t, o[c], n);
|
|
1690
1690
|
else
|
|
1691
|
-
|
|
1691
|
+
St(e, t, o, n);
|
|
1692
1692
|
else
|
|
1693
|
-
!e.json && !
|
|
1693
|
+
!e.json && !me.call(n, i) && me.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, _(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
|
|
1694
1694
|
configurable: !0,
|
|
1695
1695
|
enumerable: !0,
|
|
1696
1696
|
writable: !0,
|
|
@@ -1698,49 +1698,49 @@ function xe(e, t, n, r, i, o, a, l, s) {
|
|
|
1698
1698
|
}) : t[i] = o, delete n[i];
|
|
1699
1699
|
return t;
|
|
1700
1700
|
}
|
|
1701
|
-
function
|
|
1701
|
+
function ot(e) {
|
|
1702
1702
|
var t;
|
|
1703
1703
|
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : _(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1704
1704
|
}
|
|
1705
1705
|
function z(e, t, n) {
|
|
1706
1706
|
for (var r = 0, i = e.input.charCodeAt(e.position); i !== 0; ) {
|
|
1707
|
-
for (;
|
|
1707
|
+
for (; he(i); )
|
|
1708
1708
|
i === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), i = e.input.charCodeAt(++e.position);
|
|
1709
1709
|
if (t && i === 35)
|
|
1710
1710
|
do
|
|
1711
1711
|
i = e.input.charCodeAt(++e.position);
|
|
1712
1712
|
while (i !== 10 && i !== 13 && i !== 0);
|
|
1713
|
-
if (
|
|
1714
|
-
for (
|
|
1713
|
+
if (ce(i))
|
|
1714
|
+
for (ot(e), i = e.input.charCodeAt(e.position), r++, e.lineIndent = 0; i === 32; )
|
|
1715
1715
|
e.lineIndent++, i = e.input.charCodeAt(++e.position);
|
|
1716
1716
|
else
|
|
1717
1717
|
break;
|
|
1718
1718
|
}
|
|
1719
1719
|
return n !== -1 && r !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), r;
|
|
1720
1720
|
}
|
|
1721
|
-
function
|
|
1721
|
+
function Ue(e) {
|
|
1722
1722
|
var t = e.position, n;
|
|
1723
|
-
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 ||
|
|
1723
|
+
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 || ie(n)));
|
|
1724
1724
|
}
|
|
1725
|
-
function
|
|
1726
|
-
t === 1 ? e.result += " " : t > 1 && (e.result +=
|
|
1725
|
+
function lt(e, t) {
|
|
1726
|
+
t === 1 ? e.result += " " : t > 1 && (e.result += Z.repeat(`
|
|
1727
1727
|
`, t - 1));
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function xa(e, t, n) {
|
|
1730
1730
|
var r, i, o, a, l, s, c, d, u = e.kind, m = e.result, f;
|
|
1731
|
-
if (f = e.input.charCodeAt(e.position),
|
|
1731
|
+
if (f = e.input.charCodeAt(e.position), ie(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), ie(i) || n && xe(i)))
|
|
1732
1732
|
return !1;
|
|
1733
1733
|
for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
|
|
1734
1734
|
if (f === 58) {
|
|
1735
|
-
if (i = e.input.charCodeAt(e.position + 1),
|
|
1735
|
+
if (i = e.input.charCodeAt(e.position + 1), ie(i) || n && xe(i))
|
|
1736
1736
|
break;
|
|
1737
1737
|
} else if (f === 35) {
|
|
1738
|
-
if (r = e.input.charCodeAt(e.position - 1),
|
|
1738
|
+
if (r = e.input.charCodeAt(e.position - 1), ie(r))
|
|
1739
1739
|
break;
|
|
1740
1740
|
} else {
|
|
1741
|
-
if (e.position === e.lineStart &&
|
|
1741
|
+
if (e.position === e.lineStart && Ue(e) || n && xe(f))
|
|
1742
1742
|
break;
|
|
1743
|
-
if (
|
|
1743
|
+
if (ce(f))
|
|
1744
1744
|
if (s = e.line, c = e.lineStart, d = e.lineIndent, z(e, !1, -1), e.lineIndent >= t) {
|
|
1745
1745
|
l = !0, f = e.input.charCodeAt(e.position);
|
|
1746
1746
|
continue;
|
|
@@ -1749,47 +1749,47 @@ function ba(e, t, n) {
|
|
|
1749
1749
|
break;
|
|
1750
1750
|
}
|
|
1751
1751
|
}
|
|
1752
|
-
l && (
|
|
1752
|
+
l && (pe(e, o, a, !1), lt(e, e.line - s), o = a = e.position, l = !1), he(f) || (a = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1753
1753
|
}
|
|
1754
|
-
return
|
|
1754
|
+
return pe(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1755
1755
|
}
|
|
1756
|
-
function
|
|
1756
|
+
function Ca(e, t) {
|
|
1757
1757
|
var n, r, i;
|
|
1758
1758
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1759
1759
|
return !1;
|
|
1760
1760
|
for (e.kind = "scalar", e.result = "", e.position++, r = i = e.position; (n = e.input.charCodeAt(e.position)) !== 0; )
|
|
1761
1761
|
if (n === 39)
|
|
1762
|
-
if (
|
|
1762
|
+
if (pe(e, r, e.position, !0), n = e.input.charCodeAt(++e.position), n === 39)
|
|
1763
1763
|
r = e.position, e.position++, i = e.position;
|
|
1764
1764
|
else
|
|
1765
1765
|
return !0;
|
|
1766
|
-
else
|
|
1766
|
+
else ce(n) ? (pe(e, r, i, !0), lt(e, z(e, !1, t)), r = i = e.position) : e.position === e.lineStart && Ue(e) ? _(e, "unexpected end of the document within a single quoted scalar") : (e.position++, i = e.position);
|
|
1767
1767
|
_(e, "unexpected end of the stream within a single quoted scalar");
|
|
1768
1768
|
}
|
|
1769
|
-
function
|
|
1769
|
+
function ka(e, t) {
|
|
1770
1770
|
var n, r, i, o, a, l;
|
|
1771
1771
|
if (l = e.input.charCodeAt(e.position), l !== 34)
|
|
1772
1772
|
return !1;
|
|
1773
1773
|
for (e.kind = "scalar", e.result = "", e.position++, n = r = e.position; (l = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1774
1774
|
if (l === 34)
|
|
1775
|
-
return
|
|
1775
|
+
return pe(e, n, e.position, !0), e.position++, !0;
|
|
1776
1776
|
if (l === 92) {
|
|
1777
|
-
if (
|
|
1777
|
+
if (pe(e, n, e.position, !0), l = e.input.charCodeAt(++e.position), ce(l))
|
|
1778
1778
|
z(e, !1, t);
|
|
1779
|
-
else if (l < 256 &&
|
|
1780
|
-
e.result +=
|
|
1781
|
-
else if ((a =
|
|
1779
|
+
else if (l < 256 && _n[l])
|
|
1780
|
+
e.result += wn[l], e.position++;
|
|
1781
|
+
else if ((a = ga(l)) > 0) {
|
|
1782
1782
|
for (i = a, o = 0; i > 0; i--)
|
|
1783
|
-
l = e.input.charCodeAt(++e.position), (a =
|
|
1784
|
-
e.result +=
|
|
1783
|
+
l = e.input.charCodeAt(++e.position), (a = ha(l)) >= 0 ? o = (o << 4) + a : _(e, "expected hexadecimal character");
|
|
1784
|
+
e.result += va(o), e.position++;
|
|
1785
1785
|
} else
|
|
1786
1786
|
_(e, "unknown escape sequence");
|
|
1787
1787
|
n = r = e.position;
|
|
1788
|
-
} else
|
|
1788
|
+
} else ce(l) ? (pe(e, n, r, !0), lt(e, z(e, !1, t)), n = r = e.position) : e.position === e.lineStart && Ue(e) ? _(e, "unexpected end of the document within a double quoted scalar") : (e.position++, r = e.position);
|
|
1789
1789
|
}
|
|
1790
1790
|
_(e, "unexpected end of the stream within a double quoted scalar");
|
|
1791
1791
|
}
|
|
1792
|
-
function
|
|
1792
|
+
function Aa(e, t) {
|
|
1793
1793
|
var n = !0, r, i, o, a = e.tag, l, s = e.anchor, c, d, u, m, f, v = /* @__PURE__ */ Object.create(null), y, C, I, b;
|
|
1794
1794
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1795
1795
|
d = 93, f = !1, l = [];
|
|
@@ -1800,12 +1800,12 @@ function ka(e, t) {
|
|
|
1800
1800
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = l), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1801
1801
|
if (z(e, !0, t), b = e.input.charCodeAt(e.position), b === d)
|
|
1802
1802
|
return e.position++, e.tag = a, e.anchor = s, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
|
|
1803
|
-
n ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), C = y = I = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1),
|
|
1803
|
+
n ? b === 44 && _(e, "expected the node content, but found ','") : _(e, "missed comma between flow collection entries"), C = y = I = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), ie(c) && (u = m = !0, e.position++, z(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ae(e, t, Le, !1, !0), C = e.tag, y = e.result, z(e, !0, t), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), z(e, !0, t), Ae(e, t, Le, !1, !0), I = e.result), f ? Ce(e, l, v, C, y, I, r, i, o) : u ? l.push(Ce(e, null, v, C, y, I, r, i, o)) : l.push(y), z(e, !0, t), b = e.input.charCodeAt(e.position), b === 44 ? (n = !0, b = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1804
1804
|
}
|
|
1805
1805
|
_(e, "unexpected end of the stream within a flow collection");
|
|
1806
1806
|
}
|
|
1807
|
-
function
|
|
1808
|
-
var n, r, i =
|
|
1807
|
+
function _a(e, t) {
|
|
1808
|
+
var n, r, i = Ye, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
|
|
1809
1809
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1810
1810
|
r = !1;
|
|
1811
1811
|
else if (u === 62)
|
|
@@ -1814,72 +1814,72 @@ function Aa(e, t) {
|
|
|
1814
1814
|
return !1;
|
|
1815
1815
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1816
1816
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1817
|
-
|
|
1818
|
-
else if ((d =
|
|
1817
|
+
Ye === i ? i = u === 43 ? kt : da : _(e, "repeat of a chomping mode identifier");
|
|
1818
|
+
else if ((d = ya(u)) >= 0)
|
|
1819
1819
|
d === 0 ? _(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? _(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
|
|
1820
1820
|
else
|
|
1821
1821
|
break;
|
|
1822
|
-
if (
|
|
1822
|
+
if (he(u)) {
|
|
1823
1823
|
do
|
|
1824
1824
|
u = e.input.charCodeAt(++e.position);
|
|
1825
|
-
while (
|
|
1825
|
+
while (he(u));
|
|
1826
1826
|
if (u === 35)
|
|
1827
1827
|
do
|
|
1828
1828
|
u = e.input.charCodeAt(++e.position);
|
|
1829
|
-
while (!
|
|
1829
|
+
while (!ce(u) && u !== 0);
|
|
1830
1830
|
}
|
|
1831
1831
|
for (; u !== 0; ) {
|
|
1832
|
-
for (
|
|
1832
|
+
for (ot(e), e.lineIndent = 0, u = e.input.charCodeAt(e.position); (!a || e.lineIndent < l) && u === 32; )
|
|
1833
1833
|
e.lineIndent++, u = e.input.charCodeAt(++e.position);
|
|
1834
|
-
if (!a && e.lineIndent > l && (l = e.lineIndent),
|
|
1834
|
+
if (!a && e.lineIndent > l && (l = e.lineIndent), ce(u)) {
|
|
1835
1835
|
s++;
|
|
1836
1836
|
continue;
|
|
1837
1837
|
}
|
|
1838
1838
|
if (e.lineIndent < l) {
|
|
1839
|
-
i ===
|
|
1840
|
-
`, o ? 1 + s : s) : i ===
|
|
1839
|
+
i === kt ? e.result += Z.repeat(`
|
|
1840
|
+
`, o ? 1 + s : s) : i === Ye && o && (e.result += `
|
|
1841
1841
|
`);
|
|
1842
1842
|
break;
|
|
1843
1843
|
}
|
|
1844
|
-
for (r ?
|
|
1845
|
-
`, o ? 1 + s : s)) : c ? (c = !1, e.result +=
|
|
1846
|
-
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result +=
|
|
1847
|
-
`, s) : e.result +=
|
|
1848
|
-
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !
|
|
1844
|
+
for (r ? he(u) ? (c = !0, e.result += Z.repeat(`
|
|
1845
|
+
`, o ? 1 + s : s)) : c ? (c = !1, e.result += Z.repeat(`
|
|
1846
|
+
`, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += Z.repeat(`
|
|
1847
|
+
`, s) : e.result += Z.repeat(`
|
|
1848
|
+
`, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !ce(u) && u !== 0; )
|
|
1849
1849
|
u = e.input.charCodeAt(++e.position);
|
|
1850
|
-
|
|
1850
|
+
pe(e, n, e.position, !1);
|
|
1851
1851
|
}
|
|
1852
1852
|
return !0;
|
|
1853
1853
|
}
|
|
1854
|
-
function
|
|
1854
|
+
function $t(e, t) {
|
|
1855
1855
|
var n, r = e.tag, i = e.anchor, o = [], a, l = !1, s;
|
|
1856
1856
|
if (e.firstTabInLine !== -1) return !1;
|
|
1857
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !
|
|
1857
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !ie(a)))); ) {
|
|
1858
1858
|
if (l = !0, e.position++, z(e, !0, -1) && e.lineIndent <= t) {
|
|
1859
1859
|
o.push(null), s = e.input.charCodeAt(e.position);
|
|
1860
1860
|
continue;
|
|
1861
1861
|
}
|
|
1862
|
-
if (n = e.line,
|
|
1862
|
+
if (n = e.line, Ae(e, t, Cn, !1, !0), o.push(e.result), z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
|
|
1863
1863
|
_(e, "bad indentation of a sequence entry");
|
|
1864
1864
|
else if (e.lineIndent < t)
|
|
1865
1865
|
break;
|
|
1866
1866
|
}
|
|
1867
1867
|
return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function wa(e, t, n) {
|
|
1870
1870
|
var r, i, o, a, l, s, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, v = null, y = null, C = !1, I = !1, b;
|
|
1871
1871
|
if (e.firstTabInLine !== -1) return !1;
|
|
1872
1872
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
1873
|
-
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) &&
|
|
1874
|
-
b === 63 ? (C && (
|
|
1873
|
+
if (!C && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, _(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (b === 63 || b === 58) && ie(r))
|
|
1874
|
+
b === 63 ? (C && (Ce(e, u, m, f, v, null, a, l, s), f = v = y = null), I = !0, C = !0, i = !0) : C ? (C = !1, i = !0) : _(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
1875
1875
|
else {
|
|
1876
|
-
if (a = e.line, l = e.lineStart, s = e.position, !
|
|
1876
|
+
if (a = e.line, l = e.lineStart, s = e.position, !Ae(e, n, xn, !1, !0))
|
|
1877
1877
|
break;
|
|
1878
1878
|
if (e.line === o) {
|
|
1879
|
-
for (b = e.input.charCodeAt(e.position);
|
|
1879
|
+
for (b = e.input.charCodeAt(e.position); he(b); )
|
|
1880
1880
|
b = e.input.charCodeAt(++e.position);
|
|
1881
1881
|
if (b === 58)
|
|
1882
|
-
b = e.input.charCodeAt(++e.position),
|
|
1882
|
+
b = e.input.charCodeAt(++e.position), ie(b) || _(e, "a whitespace character is expected after the key-value separator within a block mapping"), C && (Ce(e, u, m, f, v, null, a, l, s), f = v = y = null), I = !0, C = !1, i = !1, f = e.tag, v = e.result;
|
|
1883
1883
|
else if (I)
|
|
1884
1884
|
_(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1885
1885
|
else
|
|
@@ -1889,14 +1889,14 @@ function _a(e, t, n) {
|
|
|
1889
1889
|
else
|
|
1890
1890
|
return e.tag = c, e.anchor = d, !0;
|
|
1891
1891
|
}
|
|
1892
|
-
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, s = e.position),
|
|
1892
|
+
if ((e.line === o || e.lineIndent > t) && (C && (a = e.line, l = e.lineStart, s = e.position), Ae(e, t, Ke, !0, i) && (C ? v = e.result : y = e.result), C || (Ce(e, u, m, f, v, y, a, l, s), f = v = y = null), z(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && b !== 0)
|
|
1893
1893
|
_(e, "bad indentation of a mapping entry");
|
|
1894
1894
|
else if (e.lineIndent < t)
|
|
1895
1895
|
break;
|
|
1896
1896
|
}
|
|
1897
|
-
return C &&
|
|
1897
|
+
return C && Ce(e, u, m, f, v, null, a, l, s), I && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), I;
|
|
1898
1898
|
}
|
|
1899
|
-
function
|
|
1899
|
+
function Sa(e) {
|
|
1900
1900
|
var t, n = !1, r = !1, i, o, a;
|
|
1901
1901
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1902
1902
|
if (e.tag !== null && _(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (r = !0, i = "!!", a = e.input.charCodeAt(++e.position)) : i = "!", t = e.position, n) {
|
|
@@ -1905,38 +1905,38 @@ function wa(e) {
|
|
|
1905
1905
|
while (a !== 0 && a !== 62);
|
|
1906
1906
|
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : _(e, "unexpected end of the stream within a verbatim tag");
|
|
1907
1907
|
} else {
|
|
1908
|
-
for (; a !== 0 && !
|
|
1909
|
-
a === 33 && (r ? _(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1),
|
|
1910
|
-
o = e.input.slice(t, e.position),
|
|
1908
|
+
for (; a !== 0 && !ie(a); )
|
|
1909
|
+
a === 33 && (r ? _(e, "tag suffix cannot contain exclamation marks") : (i = e.input.slice(t - 1, e.position + 1), kn.test(i) || _(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1910
|
+
o = e.input.slice(t, e.position), ma.test(o) && _(e, "tag suffix cannot contain flow indicator characters");
|
|
1911
1911
|
}
|
|
1912
|
-
o && !
|
|
1912
|
+
o && !An.test(o) && _(e, "tag name cannot contain such characters: " + o);
|
|
1913
1913
|
try {
|
|
1914
1914
|
o = decodeURIComponent(o);
|
|
1915
1915
|
} catch {
|
|
1916
1916
|
_(e, "tag name is malformed: " + o);
|
|
1917
1917
|
}
|
|
1918
|
-
return n ? e.tag = o :
|
|
1918
|
+
return n ? e.tag = o : me.call(e.tagMap, i) ? e.tag = e.tagMap[i] + o : i === "!" ? e.tag = "!" + o : i === "!!" ? e.tag = "tag:yaml.org,2002:" + o : _(e, 'undeclared tag handle "' + i + '"'), !0;
|
|
1919
1919
|
}
|
|
1920
|
-
function
|
|
1920
|
+
function $a(e) {
|
|
1921
1921
|
var t, n;
|
|
1922
1922
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1923
|
-
for (e.anchor !== null && _(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !
|
|
1923
|
+
for (e.anchor !== null && _(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !ie(n) && !xe(n); )
|
|
1924
1924
|
n = e.input.charCodeAt(++e.position);
|
|
1925
1925
|
return e.position === t && _(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1926
1926
|
}
|
|
1927
|
-
function
|
|
1927
|
+
function Ta(e) {
|
|
1928
1928
|
var t, n, r;
|
|
1929
1929
|
if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
|
|
1930
|
-
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !
|
|
1930
|
+
for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !ie(r) && !xe(r); )
|
|
1931
1931
|
r = e.input.charCodeAt(++e.position);
|
|
1932
|
-
return e.position === t && _(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position),
|
|
1932
|
+
return e.position === t && _(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), me.call(e.anchorMap, n) || _(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], z(e, !0, -1), !0;
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function Ae(e, t, n, r, i) {
|
|
1935
1935
|
var o, a, l, s = 1, c = !1, d = !1, u, m, f, v, y, C;
|
|
1936
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l =
|
|
1937
|
-
for (;
|
|
1936
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ke === n || Cn === n, r && z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
|
|
1937
|
+
for (; Sa(e) || $a(e); )
|
|
1938
1938
|
z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
|
|
1939
|
-
if (l && (l = c || i), (s === 1 ||
|
|
1939
|
+
if (l && (l = c || i), (s === 1 || Ke === n) && (Le === n || xn === n ? y = t : y = t + 1, C = e.position - e.lineStart, s === 1 ? l && ($t(e, C) || wa(e, C, y)) || Aa(e, y) ? d = !0 : (a && _a(e, y) || Ca(e, y) || ka(e, y) ? d = !0 : Ta(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && _(e, "alias node should not have any properties")) : xa(e, y, Le === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && $t(e, C))), e.tag === null)
|
|
1940
1940
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1941
1941
|
else if (e.tag === "?") {
|
|
1942
1942
|
for (e.result !== null && e.kind !== "scalar" && _(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -1945,7 +1945,7 @@ function ke(e, t, n, r, i) {
|
|
|
1945
1945
|
break;
|
|
1946
1946
|
}
|
|
1947
1947
|
} else if (e.tag !== "!") {
|
|
1948
|
-
if (
|
|
1948
|
+
if (me.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
1949
1949
|
v = e.typeMap[e.kind || "fallback"][e.tag];
|
|
1950
1950
|
else
|
|
1951
1951
|
for (v = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, m = f.length; u < m; u += 1)
|
|
@@ -1957,28 +1957,28 @@ function ke(e, t, n, r, i) {
|
|
|
1957
1957
|
}
|
|
1958
1958
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1959
1959
|
}
|
|
1960
|
-
function
|
|
1960
|
+
function Ia(e) {
|
|
1961
1961
|
var t = e.position, n, r, i, o = !1, a;
|
|
1962
1962
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
1963
|
-
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !
|
|
1963
|
+
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !ie(a); )
|
|
1964
1964
|
a = e.input.charCodeAt(++e.position);
|
|
1965
1965
|
for (r = e.input.slice(n, e.position), i = [], r.length < 1 && _(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
1966
|
-
for (;
|
|
1966
|
+
for (; he(a); )
|
|
1967
1967
|
a = e.input.charCodeAt(++e.position);
|
|
1968
1968
|
if (a === 35) {
|
|
1969
1969
|
do
|
|
1970
1970
|
a = e.input.charCodeAt(++e.position);
|
|
1971
|
-
while (a !== 0 && !
|
|
1971
|
+
while (a !== 0 && !ce(a));
|
|
1972
1972
|
break;
|
|
1973
1973
|
}
|
|
1974
|
-
if (
|
|
1975
|
-
for (n = e.position; a !== 0 && !
|
|
1974
|
+
if (ce(a)) break;
|
|
1975
|
+
for (n = e.position; a !== 0 && !ie(a); )
|
|
1976
1976
|
a = e.input.charCodeAt(++e.position);
|
|
1977
1977
|
i.push(e.input.slice(n, e.position));
|
|
1978
1978
|
}
|
|
1979
|
-
a !== 0 &&
|
|
1979
|
+
a !== 0 && ot(e), me.call(wt, r) ? wt[r](e, r, i) : Re(e, 'unknown document directive "' + r + '"');
|
|
1980
1980
|
}
|
|
1981
|
-
if (z(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, z(e, !0, -1)) : o && _(e, "directives end mark is expected"),
|
|
1981
|
+
if (z(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, z(e, !0, -1)) : o && _(e, "directives end mark is expected"), Ae(e, e.lineIndent - 1, Ke, !1, !0), z(e, !0, -1), e.checkLineBreaks && pa.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 && Ue(e)) {
|
|
1982
1982
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, z(e, !0, -1));
|
|
1983
1983
|
return;
|
|
1984
1984
|
}
|
|
@@ -1987,52 +1987,52 @@ function Ta(e) {
|
|
|
1987
1987
|
else
|
|
1988
1988
|
return;
|
|
1989
1989
|
}
|
|
1990
|
-
function
|
|
1990
|
+
function $n(e, t) {
|
|
1991
1991
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
1992
1992
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
1993
|
-
var n = new
|
|
1993
|
+
var n = new ba(e, t), r = e.indexOf("\0");
|
|
1994
1994
|
for (r !== -1 && (n.position = r, _(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
1995
1995
|
n.lineIndent += 1, n.position += 1;
|
|
1996
1996
|
for (; n.position < n.length - 1; )
|
|
1997
|
-
|
|
1997
|
+
Ia(n);
|
|
1998
1998
|
return n.documents;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function Ea(e, t, n) {
|
|
2001
2001
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2002
|
-
var r =
|
|
2002
|
+
var r = $n(e, n);
|
|
2003
2003
|
if (typeof t != "function")
|
|
2004
2004
|
return r;
|
|
2005
2005
|
for (var i = 0, o = r.length; i < o; i += 1)
|
|
2006
2006
|
t(r[i]);
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2009
|
-
var n =
|
|
2008
|
+
function Fa(e, t) {
|
|
2009
|
+
var n = $n(e, t);
|
|
2010
2010
|
if (n.length !== 0) {
|
|
2011
2011
|
if (n.length === 1)
|
|
2012
2012
|
return n[0];
|
|
2013
|
-
throw new
|
|
2013
|
+
throw new re("expected a single document in the stream, but found more");
|
|
2014
2014
|
}
|
|
2015
2015
|
}
|
|
2016
|
-
var
|
|
2017
|
-
loadAll:
|
|
2018
|
-
load:
|
|
2019
|
-
},
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
var
|
|
2016
|
+
var Oa = Ea, La = Fa, Tn = {
|
|
2017
|
+
loadAll: Oa,
|
|
2018
|
+
load: La
|
|
2019
|
+
}, In = Object.prototype.toString, En = Object.prototype.hasOwnProperty, st = 65279, Ka = 9, $e = 10, Ra = 13, Ba = 32, Na = 33, Ma = 34, ze = 35, Da = 37, ja = 38, Ua = 39, Pa = 42, Fn = 44, qa = 45, Be = 58, Ha = 61, Ya = 62, Va = 63, Wa = 64, On = 91, Ln = 93, Ja = 96, Kn = 123, Ga = 124, Rn = 125, te = {};
|
|
2020
|
+
te[0] = "\\0";
|
|
2021
|
+
te[7] = "\\a";
|
|
2022
|
+
te[8] = "\\b";
|
|
2023
|
+
te[9] = "\\t";
|
|
2024
|
+
te[10] = "\\n";
|
|
2025
|
+
te[11] = "\\v";
|
|
2026
|
+
te[12] = "\\f";
|
|
2027
|
+
te[13] = "\\r";
|
|
2028
|
+
te[27] = "\\e";
|
|
2029
|
+
te[34] = '\\"';
|
|
2030
|
+
te[92] = "\\\\";
|
|
2031
|
+
te[133] = "\\N";
|
|
2032
|
+
te[160] = "\\_";
|
|
2033
|
+
te[8232] = "\\L";
|
|
2034
|
+
te[8233] = "\\P";
|
|
2035
|
+
var za = [
|
|
2036
2036
|
"y",
|
|
2037
2037
|
"Y",
|
|
2038
2038
|
"yes",
|
|
@@ -2049,15 +2049,15 @@ var Ga = [
|
|
|
2049
2049
|
"off",
|
|
2050
2050
|
"Off",
|
|
2051
2051
|
"OFF"
|
|
2052
|
-
],
|
|
2053
|
-
function
|
|
2052
|
+
], Qa = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2053
|
+
function Za(e, t) {
|
|
2054
2054
|
var n, r, i, o, a, l, s;
|
|
2055
2055
|
if (t === null) return {};
|
|
2056
2056
|
for (n = {}, r = Object.keys(t), i = 0, o = r.length; i < o; i += 1)
|
|
2057
|
-
a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s &&
|
|
2057
|
+
a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), s = e.compiledTypeMap.fallback[a], s && En.call(s.styleAliases, l) && (l = s.styleAliases[l]), n[a] = l;
|
|
2058
2058
|
return n;
|
|
2059
2059
|
}
|
|
2060
|
-
function
|
|
2060
|
+
function Xa(e) {
|
|
2061
2061
|
var t, n, r;
|
|
2062
2062
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2063
2063
|
n = "x", r = 2;
|
|
@@ -2066,57 +2066,57 @@ function Za(e) {
|
|
|
2066
2066
|
else if (e <= 4294967295)
|
|
2067
2067
|
n = "U", r = 8;
|
|
2068
2068
|
else
|
|
2069
|
-
throw new
|
|
2070
|
-
return "\\" + n +
|
|
2069
|
+
throw new re("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2070
|
+
return "\\" + n + Z.repeat("0", r - t.length) + t;
|
|
2071
2071
|
}
|
|
2072
|
-
var
|
|
2073
|
-
function
|
|
2074
|
-
this.schema = e.schema ||
|
|
2072
|
+
var eo = 1, Te = 2;
|
|
2073
|
+
function to(e) {
|
|
2074
|
+
this.schema = e.schema || at, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = Z.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Za(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Te : eo, 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;
|
|
2075
2075
|
}
|
|
2076
|
-
function
|
|
2077
|
-
for (var n =
|
|
2076
|
+
function Tt(e, t) {
|
|
2077
|
+
for (var n = Z.repeat(" ", t), r = 0, i = -1, o = "", a, l = e.length; r < l; )
|
|
2078
2078
|
i = e.indexOf(`
|
|
2079
2079
|
`, r), i === -1 ? (a = e.slice(r), r = l) : (a = e.slice(r, i + 1), r = i + 1), a.length && a !== `
|
|
2080
2080
|
` && (o += n), o += a;
|
|
2081
2081
|
return o;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Qe(e, t) {
|
|
2084
2084
|
return `
|
|
2085
|
-
` +
|
|
2085
|
+
` + Z.repeat(" ", e.indent * t);
|
|
2086
2086
|
}
|
|
2087
|
-
function
|
|
2087
|
+
function no(e, t) {
|
|
2088
2088
|
var n, r, i;
|
|
2089
2089
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2090
2090
|
if (i = e.implicitTypes[n], i.resolve(t))
|
|
2091
2091
|
return !0;
|
|
2092
2092
|
return !1;
|
|
2093
2093
|
}
|
|
2094
|
-
function
|
|
2095
|
-
return e === Ba || e ===
|
|
2094
|
+
function Ne(e) {
|
|
2095
|
+
return e === Ba || e === Ka;
|
|
2096
2096
|
}
|
|
2097
|
-
function
|
|
2098
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2097
|
+
function Ie(e) {
|
|
2098
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== st || 65536 <= e && e <= 1114111;
|
|
2099
2099
|
}
|
|
2100
|
-
function
|
|
2101
|
-
return
|
|
2100
|
+
function It(e) {
|
|
2101
|
+
return Ie(e) && e !== st && e !== Ra && e !== $e;
|
|
2102
2102
|
}
|
|
2103
|
-
function
|
|
2104
|
-
var r =
|
|
2103
|
+
function Et(e, t, n) {
|
|
2104
|
+
var r = It(e), i = r && !Ne(e);
|
|
2105
2105
|
return (
|
|
2106
2106
|
// ns-plain-safe
|
|
2107
2107
|
(n ? (
|
|
2108
2108
|
// c = flow-in
|
|
2109
2109
|
r
|
|
2110
|
-
) : r && e !==
|
|
2110
|
+
) : r && e !== Fn && e !== On && e !== Ln && e !== Kn && e !== Rn) && e !== ze && !(t === Be && !i) || It(t) && !Ne(t) && e === ze || t === Be && i
|
|
2111
2111
|
);
|
|
2112
2112
|
}
|
|
2113
|
-
function no(e) {
|
|
2114
|
-
return Te(e) && e !== lt && !Ke(e) && e !== Pa && e !== Ya && e !== Be && e !== En && e !== Fn && e !== On && e !== Ln && e !== Rn && e !== Ge && e !== Da && e !== Ua && e !== Ka && e !== Ja && e !== qa && e !== Ha && e !== ja && e !== Na && e !== Ma && e !== Va && e !== Wa;
|
|
2115
|
-
}
|
|
2116
2113
|
function ro(e) {
|
|
2117
|
-
return !
|
|
2114
|
+
return Ie(e) && e !== st && !Ne(e) && e !== qa && e !== Va && e !== Be && e !== Fn && e !== On && e !== Ln && e !== Kn && e !== Rn && e !== ze && e !== ja && e !== Pa && e !== Na && e !== Ga && e !== Ha && e !== Ya && e !== Ua && e !== Ma && e !== Da && e !== Wa && e !== Ja;
|
|
2115
|
+
}
|
|
2116
|
+
function io(e) {
|
|
2117
|
+
return !Ne(e) && e !== Be;
|
|
2118
2118
|
}
|
|
2119
|
-
function
|
|
2119
|
+
function we(e, t) {
|
|
2120
2120
|
var n = e.charCodeAt(t), r;
|
|
2121
2121
|
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;
|
|
2122
2122
|
}
|
|
@@ -2124,39 +2124,39 @@ function Bn(e) {
|
|
|
2124
2124
|
var t = /^\n* /;
|
|
2125
2125
|
return t.test(e);
|
|
2126
2126
|
}
|
|
2127
|
-
var
|
|
2128
|
-
function
|
|
2129
|
-
var s, c = 0, d = null, u = !1, m = !1, f = r !== -1, v = -1, y =
|
|
2127
|
+
var Nn = 1, Ze = 2, Mn = 3, Dn = 4, be = 5;
|
|
2128
|
+
function ao(e, t, n, r, i, o, a, l) {
|
|
2129
|
+
var s, c = 0, d = null, u = !1, m = !1, f = r !== -1, v = -1, y = ro(we(e, 0)) && io(we(e, e.length - 1));
|
|
2130
2130
|
if (t || a)
|
|
2131
2131
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2132
|
-
if (c =
|
|
2133
|
-
return
|
|
2134
|
-
y = y &&
|
|
2132
|
+
if (c = we(e, s), !Ie(c))
|
|
2133
|
+
return be;
|
|
2134
|
+
y = y && Et(c, d, l), d = c;
|
|
2135
2135
|
}
|
|
2136
2136
|
else {
|
|
2137
2137
|
for (s = 0; s < e.length; c >= 65536 ? s += 2 : s++) {
|
|
2138
|
-
if (c =
|
|
2138
|
+
if (c = we(e, s), c === $e)
|
|
2139
2139
|
u = !0, f && (m = m || // Foldable line = too long, and not more-indented.
|
|
2140
2140
|
s - v - 1 > r && e[v + 1] !== " ", v = s);
|
|
2141
|
-
else if (!
|
|
2142
|
-
return
|
|
2143
|
-
y = y &&
|
|
2141
|
+
else if (!Ie(c))
|
|
2142
|
+
return be;
|
|
2143
|
+
y = y && Et(c, d, l), d = c;
|
|
2144
2144
|
}
|
|
2145
2145
|
m = m || f && s - v - 1 > r && e[v + 1] !== " ";
|
|
2146
2146
|
}
|
|
2147
|
-
return !u && !m ? y && !a && !i(e) ?
|
|
2147
|
+
return !u && !m ? y && !a && !i(e) ? Nn : o === Te ? be : Ze : n > 9 && Bn(e) ? be : a ? o === Te ? be : Ze : m ? Dn : Mn;
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function oo(e, t, n, r, i) {
|
|
2150
2150
|
e.dump = function() {
|
|
2151
2151
|
if (t.length === 0)
|
|
2152
|
-
return e.quotingType ===
|
|
2153
|
-
if (!e.noCompatMode && (
|
|
2154
|
-
return e.quotingType ===
|
|
2152
|
+
return e.quotingType === Te ? '""' : "''";
|
|
2153
|
+
if (!e.noCompatMode && (za.indexOf(t) !== -1 || Qa.test(t)))
|
|
2154
|
+
return e.quotingType === Te ? '"' + t + '"' : "'" + t + "'";
|
|
2155
2155
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), l = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2156
2156
|
function s(c) {
|
|
2157
|
-
return
|
|
2157
|
+
return no(e, c);
|
|
2158
2158
|
}
|
|
2159
|
-
switch (
|
|
2159
|
+
switch (ao(
|
|
2160
2160
|
t,
|
|
2161
2161
|
l,
|
|
2162
2162
|
e.indent,
|
|
@@ -2166,22 +2166,22 @@ function ao(e, t, n, r, i) {
|
|
|
2166
2166
|
e.forceQuotes && !r,
|
|
2167
2167
|
i
|
|
2168
2168
|
)) {
|
|
2169
|
-
case
|
|
2169
|
+
case Nn:
|
|
2170
2170
|
return t;
|
|
2171
|
-
case
|
|
2171
|
+
case Ze:
|
|
2172
2172
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2173
|
-
case Nn:
|
|
2174
|
-
return "|" + Et(t, e.indent) + Ft($t(t, o));
|
|
2175
2173
|
case Mn:
|
|
2176
|
-
return "
|
|
2177
|
-
case
|
|
2178
|
-
return
|
|
2174
|
+
return "|" + Ft(t, e.indent) + Ot(Tt(t, o));
|
|
2175
|
+
case Dn:
|
|
2176
|
+
return ">" + Ft(t, e.indent) + Ot(Tt(lo(t, a), o));
|
|
2177
|
+
case be:
|
|
2178
|
+
return '"' + so(t) + '"';
|
|
2179
2179
|
default:
|
|
2180
|
-
throw new
|
|
2180
|
+
throw new re("impossible error: invalid scalar style");
|
|
2181
2181
|
}
|
|
2182
2182
|
}();
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function Ft(e, t) {
|
|
2185
2185
|
var n = Bn(e) ? String(t) : "", r = e[e.length - 1] === `
|
|
2186
2186
|
`, i = r && (e[e.length - 2] === `
|
|
2187
2187
|
` || e === `
|
|
@@ -2189,24 +2189,24 @@ function Et(e, t) {
|
|
|
2189
2189
|
return n + o + `
|
|
2190
2190
|
`;
|
|
2191
2191
|
}
|
|
2192
|
-
function
|
|
2192
|
+
function Ot(e) {
|
|
2193
2193
|
return e[e.length - 1] === `
|
|
2194
2194
|
` ? e.slice(0, -1) : e;
|
|
2195
2195
|
}
|
|
2196
|
-
function
|
|
2196
|
+
function lo(e, t) {
|
|
2197
2197
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2198
2198
|
var c = e.indexOf(`
|
|
2199
2199
|
`);
|
|
2200
|
-
return c = c !== -1 ? c : e.length, n.lastIndex = c,
|
|
2200
|
+
return c = c !== -1 ? c : e.length, n.lastIndex = c, Lt(e.slice(0, c), t);
|
|
2201
2201
|
}(), i = e[0] === `
|
|
2202
2202
|
` || e[0] === " ", o, a; a = n.exec(e); ) {
|
|
2203
2203
|
var l = a[1], s = a[2];
|
|
2204
2204
|
o = s[0] === " ", r += l + (!i && !o && s !== "" ? `
|
|
2205
|
-
` : "") +
|
|
2205
|
+
` : "") + Lt(s, t), i = o;
|
|
2206
2206
|
}
|
|
2207
2207
|
return r;
|
|
2208
2208
|
}
|
|
2209
|
-
function
|
|
2209
|
+
function Lt(e, t) {
|
|
2210
2210
|
if (e === "" || e[0] === " ") return e;
|
|
2211
2211
|
for (var n = / [^ ]/g, r, i = 0, o, a = 0, l = 0, s = ""; r = n.exec(e); )
|
|
2212
2212
|
l = r.index, l - i > t && (o = a > i ? a : l, s += `
|
|
@@ -2215,39 +2215,39 @@ function Ot(e, t) {
|
|
|
2215
2215
|
`, e.length - i > t && a > i ? s += e.slice(i, a) + `
|
|
2216
2216
|
` + e.slice(a + 1) : s += e.slice(i), s.slice(1);
|
|
2217
2217
|
}
|
|
2218
|
-
function
|
|
2218
|
+
function so(e) {
|
|
2219
2219
|
for (var t = "", n = 0, r, i = 0; i < e.length; n >= 65536 ? i += 2 : i++)
|
|
2220
|
-
n =
|
|
2220
|
+
n = we(e, i), r = te[n], !r && Ie(n) ? (t += e[i], n >= 65536 && (t += e[i + 1])) : t += r || Xa(n);
|
|
2221
2221
|
return t;
|
|
2222
2222
|
}
|
|
2223
|
-
function
|
|
2223
|
+
function co(e, t, n) {
|
|
2224
2224
|
var r = "", i = e.tag, o, a, l;
|
|
2225
2225
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2226
|
-
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (
|
|
2226
|
+
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (de(e, t, l, !1, !1) || typeof l > "u" && de(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2227
2227
|
e.tag = i, e.dump = "[" + r + "]";
|
|
2228
2228
|
}
|
|
2229
|
-
function
|
|
2229
|
+
function Kt(e, t, n, r) {
|
|
2230
2230
|
var i = "", o = e.tag, a, l, s;
|
|
2231
2231
|
for (a = 0, l = n.length; a < l; a += 1)
|
|
2232
|
-
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (
|
|
2232
|
+
s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (de(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && de(e, t + 1, null, !0, !0, !1, !0)) && ((!r || i !== "") && (i += Qe(e, t)), e.dump && $e === e.dump.charCodeAt(0) ? i += "-" : i += "- ", i += e.dump);
|
|
2233
2233
|
e.tag = o, e.dump = i || "[]";
|
|
2234
2234
|
}
|
|
2235
|
-
function
|
|
2235
|
+
function uo(e, t, n) {
|
|
2236
2236
|
var r = "", i = e.tag, o = Object.keys(n), a, l, s, c, d;
|
|
2237
2237
|
for (a = 0, l = o.length; a < l; a += 1)
|
|
2238
|
-
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)),
|
|
2238
|
+
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), s = o[a], c = n[s], e.replacer && (c = e.replacer.call(n, s, c)), de(e, t, s, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), de(e, t, c, !1, !1) && (d += e.dump, r += d));
|
|
2239
2239
|
e.tag = i, e.dump = "{" + r + "}";
|
|
2240
2240
|
}
|
|
2241
|
-
function
|
|
2241
|
+
function fo(e, t, n, r) {
|
|
2242
2242
|
var i = "", o = e.tag, a = Object.keys(n), l, s, c, d, u, m;
|
|
2243
2243
|
if (e.sortKeys === !0)
|
|
2244
2244
|
a.sort();
|
|
2245
2245
|
else if (typeof e.sortKeys == "function")
|
|
2246
2246
|
a.sort(e.sortKeys);
|
|
2247
2247
|
else if (e.sortKeys)
|
|
2248
|
-
throw new
|
|
2248
|
+
throw new re("sortKeys must be a boolean or a function");
|
|
2249
2249
|
for (l = 0, s = a.length; l < s; l += 1)
|
|
2250
|
-
m = "", (!r || i !== "") && (m +=
|
|
2250
|
+
m = "", (!r || i !== "") && (m += Qe(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), de(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && $e === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Qe(e, t)), de(e, t + 1, d, !0, u) && (e.dump && $e === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, i += m));
|
|
2251
2251
|
e.tag = o, e.dump = i || "{}";
|
|
2252
2252
|
}
|
|
2253
2253
|
function Rt(e, t, n) {
|
|
@@ -2255,37 +2255,37 @@ function Rt(e, t, n) {
|
|
|
2255
2255
|
for (i = n ? e.explicitTypes : e.implicitTypes, o = 0, a = i.length; o < a; o += 1)
|
|
2256
2256
|
if (l = i[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
|
|
2257
2257
|
if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
|
|
2258
|
-
if (s = e.styleMap[l.tag] || l.defaultStyle,
|
|
2258
|
+
if (s = e.styleMap[l.tag] || l.defaultStyle, In.call(l.represent) === "[object Function]")
|
|
2259
2259
|
r = l.represent(t, s);
|
|
2260
|
-
else if (
|
|
2260
|
+
else if (En.call(l.represent, s))
|
|
2261
2261
|
r = l.represent[s](t, s);
|
|
2262
2262
|
else
|
|
2263
|
-
throw new
|
|
2263
|
+
throw new re("!<" + l.tag + '> tag resolver accepts not "' + s + '" style');
|
|
2264
2264
|
e.dump = r;
|
|
2265
2265
|
}
|
|
2266
2266
|
return !0;
|
|
2267
2267
|
}
|
|
2268
2268
|
return !1;
|
|
2269
2269
|
}
|
|
2270
|
-
function
|
|
2270
|
+
function de(e, t, n, r, i, o, a) {
|
|
2271
2271
|
e.tag = null, e.dump = n, Rt(e, n, !1) || Rt(e, n, !0);
|
|
2272
|
-
var l =
|
|
2272
|
+
var l = In.call(e.dump), s = r, c;
|
|
2273
2273
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
2274
2274
|
var d = l === "[object Object]" || l === "[object Array]", u, m;
|
|
2275
2275
|
if (d && (u = e.duplicates.indexOf(n), m = u !== -1), (e.tag !== null && e.tag !== "?" || m || e.indent !== 2 && t > 0) && (i = !1), m && e.usedDuplicates[u])
|
|
2276
2276
|
e.dump = "*ref_" + u;
|
|
2277
2277
|
else {
|
|
2278
2278
|
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
|
|
2279
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2279
|
+
r && Object.keys(e.dump).length !== 0 ? (fo(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (uo(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2280
2280
|
else if (l === "[object Array]")
|
|
2281
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ?
|
|
2281
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, i) : Kt(e, t, e.dump, i), m && (e.dump = "&ref_" + u + e.dump)) : (co(e, t, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2282
2282
|
else if (l === "[object String]")
|
|
2283
|
-
e.tag !== "?" &&
|
|
2283
|
+
e.tag !== "?" && oo(e, e.dump, t, o, s);
|
|
2284
2284
|
else {
|
|
2285
2285
|
if (l === "[object Undefined]")
|
|
2286
2286
|
return !1;
|
|
2287
2287
|
if (e.skipInvalid) return !1;
|
|
2288
|
-
throw new
|
|
2288
|
+
throw new re("unacceptable kind of an object to dump " + l);
|
|
2289
2289
|
}
|
|
2290
2290
|
e.tag !== null && e.tag !== "?" && (c = encodeURI(
|
|
2291
2291
|
e.tag[0] === "!" ? e.tag.slice(1) : e.tag
|
|
@@ -2293,71 +2293,71 @@ function ue(e, t, n, r, i, o, a) {
|
|
|
2293
2293
|
}
|
|
2294
2294
|
return !0;
|
|
2295
2295
|
}
|
|
2296
|
-
function
|
|
2296
|
+
function po(e, t) {
|
|
2297
2297
|
var n = [], r = [], i, o;
|
|
2298
|
-
for (
|
|
2298
|
+
for (Xe(e, n, r), i = 0, o = r.length; i < o; i += 1)
|
|
2299
2299
|
t.duplicates.push(n[r[i]]);
|
|
2300
2300
|
t.usedDuplicates = new Array(o);
|
|
2301
2301
|
}
|
|
2302
|
-
function
|
|
2302
|
+
function Xe(e, t, n) {
|
|
2303
2303
|
var r, i, o;
|
|
2304
2304
|
if (e !== null && typeof e == "object")
|
|
2305
2305
|
if (i = t.indexOf(e), i !== -1)
|
|
2306
2306
|
n.indexOf(i) === -1 && n.push(i);
|
|
2307
2307
|
else if (t.push(e), Array.isArray(e))
|
|
2308
2308
|
for (i = 0, o = e.length; i < o; i += 1)
|
|
2309
|
-
|
|
2309
|
+
Xe(e[i], t, n);
|
|
2310
2310
|
else
|
|
2311
2311
|
for (r = Object.keys(e), i = 0, o = r.length; i < o; i += 1)
|
|
2312
|
-
|
|
2312
|
+
Xe(e[r[i]], t, n);
|
|
2313
2313
|
}
|
|
2314
|
-
function
|
|
2314
|
+
function mo(e, t) {
|
|
2315
2315
|
t = t || {};
|
|
2316
|
-
var n = new
|
|
2317
|
-
n.noRefs ||
|
|
2316
|
+
var n = new to(t);
|
|
2317
|
+
n.noRefs || po(e, n);
|
|
2318
2318
|
var r = e;
|
|
2319
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2319
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), de(n, 0, r, !0, !0) ? n.dump + `
|
|
2320
2320
|
` : "";
|
|
2321
2321
|
}
|
|
2322
|
-
var
|
|
2323
|
-
dump:
|
|
2322
|
+
var ho = mo, go = {
|
|
2323
|
+
dump: ho
|
|
2324
2324
|
};
|
|
2325
|
-
function
|
|
2325
|
+
function ct(e, t) {
|
|
2326
2326
|
return function() {
|
|
2327
2327
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2328
2328
|
};
|
|
2329
2329
|
}
|
|
2330
|
-
var
|
|
2331
|
-
binary:
|
|
2332
|
-
float:
|
|
2333
|
-
map:
|
|
2334
|
-
null:
|
|
2335
|
-
pairs:
|
|
2336
|
-
set:
|
|
2337
|
-
timestamp:
|
|
2338
|
-
bool:
|
|
2339
|
-
int:
|
|
2340
|
-
merge:
|
|
2341
|
-
omap:
|
|
2342
|
-
seq:
|
|
2343
|
-
str:
|
|
2344
|
-
},
|
|
2345
|
-
Type:
|
|
2346
|
-
Schema:
|
|
2347
|
-
FAILSAFE_SCHEMA:
|
|
2348
|
-
JSON_SCHEMA:
|
|
2349
|
-
CORE_SCHEMA:
|
|
2350
|
-
DEFAULT_SCHEMA:
|
|
2351
|
-
load:
|
|
2352
|
-
loadAll:
|
|
2353
|
-
dump:
|
|
2354
|
-
YAMLException:
|
|
2355
|
-
types:
|
|
2356
|
-
safeLoad:
|
|
2357
|
-
safeLoadAll:
|
|
2358
|
-
safeDump:
|
|
2330
|
+
var yo = ee, vo = en, bo = an, xo = un, Co = dn, ko = at, Ao = Tn.load, _o = Tn.loadAll, wo = go.dump, So = re, $o = {
|
|
2331
|
+
binary: gn,
|
|
2332
|
+
float: cn,
|
|
2333
|
+
map: rn,
|
|
2334
|
+
null: on,
|
|
2335
|
+
pairs: vn,
|
|
2336
|
+
set: bn,
|
|
2337
|
+
timestamp: mn,
|
|
2338
|
+
bool: ln,
|
|
2339
|
+
int: sn,
|
|
2340
|
+
merge: hn,
|
|
2341
|
+
omap: yn,
|
|
2342
|
+
seq: nn,
|
|
2343
|
+
str: tn
|
|
2344
|
+
}, To = ct("safeLoad", "load"), Io = ct("safeLoadAll", "loadAll"), Eo = ct("safeDump", "dump"), Fo = {
|
|
2345
|
+
Type: yo,
|
|
2346
|
+
Schema: vo,
|
|
2347
|
+
FAILSAFE_SCHEMA: bo,
|
|
2348
|
+
JSON_SCHEMA: xo,
|
|
2349
|
+
CORE_SCHEMA: Co,
|
|
2350
|
+
DEFAULT_SCHEMA: ko,
|
|
2351
|
+
load: Ao,
|
|
2352
|
+
loadAll: _o,
|
|
2353
|
+
dump: wo,
|
|
2354
|
+
YAMLException: So,
|
|
2355
|
+
types: $o,
|
|
2356
|
+
safeLoad: To,
|
|
2357
|
+
safeLoadAll: Io,
|
|
2358
|
+
safeDump: Eo
|
|
2359
2359
|
};
|
|
2360
|
-
const
|
|
2360
|
+
const Oo = { class: "yaml-config config-card-code-block" }, jn = /* @__PURE__ */ J({
|
|
2361
2361
|
__name: "YamlCodeBlock",
|
|
2362
2362
|
props: {
|
|
2363
2363
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2369,11 +2369,11 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2369
2369
|
setup(e) {
|
|
2370
2370
|
const t = e, n = T(() => {
|
|
2371
2371
|
const r = Object.fromEntries(Object.entries(t.entityRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
|
|
2372
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2372
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : Fo.dump(r).trim();
|
|
2373
2373
|
});
|
|
2374
2374
|
return (r, i) => {
|
|
2375
2375
|
const o = U("KCodeBlock");
|
|
2376
|
-
return p(), w("div",
|
|
2376
|
+
return p(), w("div", Oo, [
|
|
2377
2377
|
t.entityRecord ? (p(), M(o, {
|
|
2378
2378
|
key: 0,
|
|
2379
2379
|
id: "yaml-codeblock",
|
|
@@ -2384,7 +2384,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2384
2384
|
]);
|
|
2385
2385
|
};
|
|
2386
2386
|
}
|
|
2387
|
-
}),
|
|
2387
|
+
}), Lo = { class: "terraform-config config-card-code-block" }, ne = " ", Un = /* @__PURE__ */ J({
|
|
2388
2388
|
__name: "TerraformCodeBlock",
|
|
2389
2389
|
props: {
|
|
2390
2390
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2395,7 +2395,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2395
2395
|
entityType: {
|
|
2396
2396
|
type: String,
|
|
2397
2397
|
required: !0,
|
|
2398
|
-
validator: (e) =>
|
|
2398
|
+
validator: (e) => De.includes(e)
|
|
2399
2399
|
},
|
|
2400
2400
|
credentialType: {
|
|
2401
2401
|
type: String,
|
|
@@ -2404,7 +2404,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2404
2404
|
},
|
|
2405
2405
|
setup(e) {
|
|
2406
2406
|
const t = e, n = (l, s) => {
|
|
2407
|
-
const c =
|
|
2407
|
+
const c = ne;
|
|
2408
2408
|
let d = "";
|
|
2409
2409
|
return typeof l == "string" ? d += `${c}${s} = "${l}"
|
|
2410
2410
|
` : d += `${c}${s} = ${String(l ?? "")}
|
|
@@ -2412,7 +2412,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2412
2412
|
}, r = (l, s, c = "") => {
|
|
2413
2413
|
if (typeof l != "object")
|
|
2414
2414
|
return "Invalid object";
|
|
2415
|
-
const d =
|
|
2415
|
+
const d = ne + c;
|
|
2416
2416
|
let u = "";
|
|
2417
2417
|
if (s && (u += `${d}${s} = {
|
|
2418
2418
|
`), l === null)
|
|
@@ -2421,22 +2421,22 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2421
2421
|
let f = "";
|
|
2422
2422
|
for (const [v, y] of Object.entries(m))
|
|
2423
2423
|
Array.isArray(y) ? y.length === 0 ? f = "[]" : (f = `[
|
|
2424
|
-
`, f += i(y, void 0, d), f += `${d}${
|
|
2425
|
-
`, f += r(y, void 0, d), f += `${d}${
|
|
2424
|
+
`, f += i(y, void 0, d), f += `${d}${ne}]`) : y && typeof y == "object" ? (f = `{
|
|
2425
|
+
`, f += r(y, void 0, d), f += `${d}${ne}}`) : f = String(y ?? ""), typeof y == "string" && (f = `"${f}"`), u += `${d}${ne}${v} = ${f}
|
|
2426
2426
|
`;
|
|
2427
2427
|
return s ? u += `${d}}
|
|
2428
2428
|
` : u;
|
|
2429
2429
|
}, i = (l, s, c = "") => {
|
|
2430
2430
|
if (!Array.isArray(l))
|
|
2431
2431
|
return "Invalid array";
|
|
2432
|
-
const d =
|
|
2432
|
+
const d = ne + c;
|
|
2433
2433
|
let u = "";
|
|
2434
2434
|
s && (l.length === 0 ? u += `${d}${s} = [` : u += `${d}${s} = [
|
|
2435
2435
|
`);
|
|
2436
2436
|
for (let m = 0; m < l.length; m++) {
|
|
2437
2437
|
const f = l[m];
|
|
2438
|
-
typeof f == "object" ? (u += `${d}${
|
|
2439
|
-
`, u += r(f, void 0, d), u += `${d}${
|
|
2438
|
+
typeof f == "object" ? (u += `${d}${ne}{
|
|
2439
|
+
`, u += r(f, void 0, d), u += `${d}${ne}}`) : typeof f == "string" ? u += `${d}${ne}"${f}"` : u += `${d}${ne}${String(f ?? "")}`, m < l.length - 1 && (u += ","), u += `
|
|
2440
2440
|
`;
|
|
2441
2441
|
}
|
|
2442
2442
|
return s && (l.length === 0 ? u += `]
|
|
@@ -2461,16 +2461,16 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2461
2461
|
} else
|
|
2462
2462
|
c += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
2463
2463
|
`;
|
|
2464
|
-
return c += o(l), c += `${
|
|
2465
|
-
`, d && (c += `${
|
|
2466
|
-
`, c += `${
|
|
2467
|
-
`, c += `${
|
|
2464
|
+
return c += o(l), c += `${ne}control_plane_id = konnect_gateway_control_plane.my_konnect_cp.id
|
|
2465
|
+
`, d && (c += `${ne}${d} = {
|
|
2466
|
+
`, c += `${ne}${ne}id = konnect_gateway_${d}.my_${d}.id
|
|
2467
|
+
`, c += `${ne}}
|
|
2468
2468
|
`), c += `}
|
|
2469
2469
|
`, c;
|
|
2470
2470
|
});
|
|
2471
2471
|
return (l, s) => {
|
|
2472
2472
|
const c = U("KCodeBlock");
|
|
2473
|
-
return p(), w("div",
|
|
2473
|
+
return p(), w("div", Lo, [
|
|
2474
2474
|
t.entityRecord ? (p(), M(c, {
|
|
2475
2475
|
key: 0,
|
|
2476
2476
|
id: "terraform-codeblock",
|
|
@@ -2481,13 +2481,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2481
2481
|
]);
|
|
2482
2482
|
};
|
|
2483
2483
|
}
|
|
2484
|
-
}),
|
|
2484
|
+
}), Ko = {
|
|
2485
2485
|
key: 0,
|
|
2486
2486
|
class: "config-card-display-form"
|
|
2487
2487
|
}, Ro = ["data-testid"], Bo = {
|
|
2488
2488
|
key: 0,
|
|
2489
2489
|
class: "config-card-prop-section-title"
|
|
2490
|
-
},
|
|
2490
|
+
}, No = /* @__PURE__ */ J({
|
|
2491
2491
|
__name: "ConfigCardDisplay",
|
|
2492
2492
|
props: {
|
|
2493
2493
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2499,7 +2499,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2499
2499
|
entityType: {
|
|
2500
2500
|
type: String,
|
|
2501
2501
|
required: !0,
|
|
2502
|
-
validator: (e) =>
|
|
2502
|
+
validator: (e) => De.includes(e)
|
|
2503
2503
|
},
|
|
2504
2504
|
propertyCollections: {
|
|
2505
2505
|
type: Object,
|
|
@@ -2539,7 +2539,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2539
2539
|
}
|
|
2540
2540
|
},
|
|
2541
2541
|
setup(e) {
|
|
2542
|
-
const t = e, n =
|
|
2542
|
+
const t = e, n = et(), { i18n: { t: r } } = Y.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = T(() => {
|
|
2543
2543
|
if (!t.record)
|
|
2544
2544
|
return t.record;
|
|
2545
2545
|
let a = t.record;
|
|
@@ -2547,18 +2547,18 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2547
2547
|
const l = JSON.parse(JSON.stringify(a));
|
|
2548
2548
|
return delete l.created_at, delete l.updated_at, l;
|
|
2549
2549
|
});
|
|
2550
|
-
return (a, l) => (p(), w(
|
|
2551
|
-
e.format === "structured" ? (p(), w("div",
|
|
2552
|
-
(p(!0), w(
|
|
2550
|
+
return (a, l) => (p(), w(se, null, [
|
|
2551
|
+
e.format === "structured" ? (p(), w("div", Ko, [
|
|
2552
|
+
(p(!0), w(se, null, le(e.propListTypes, (s) => (p(), w("div", {
|
|
2553
2553
|
key: `config-card-details-${s}-props`,
|
|
2554
|
-
class:
|
|
2554
|
+
class: ue(`config-card-details-${s}-props`),
|
|
2555
2555
|
"data-testid": `config-card-details-${s}-props`
|
|
2556
2556
|
}, [
|
|
2557
2557
|
s !== "basic" ? (p(), w("div", Bo, E(s === "advanced" ? A(r)("baseConfigCard.sections.advanced") : A(r)("baseConfigCard.sections.plugin")), 1)) : j("", !0),
|
|
2558
|
-
(p(!0), w(
|
|
2558
|
+
(p(!0), w(se, null, le(e.propertyCollections[s], (c) => (p(), M(zt, {
|
|
2559
2559
|
key: c.key,
|
|
2560
2560
|
item: c
|
|
2561
|
-
},
|
|
2561
|
+
}, ke({
|
|
2562
2562
|
label: k(() => [
|
|
2563
2563
|
P(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2564
2564
|
]),
|
|
@@ -2580,35 +2580,35 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2580
2580
|
]), 1032, ["item"]))), 128))
|
|
2581
2581
|
], 10, Ro))), 128))
|
|
2582
2582
|
])) : j("", !0),
|
|
2583
|
-
e.format === "json" && o.value ? (p(), M(
|
|
2583
|
+
e.format === "json" && o.value ? (p(), M(Qt, {
|
|
2584
2584
|
key: 1,
|
|
2585
2585
|
config: t.config,
|
|
2586
2586
|
"entity-record": o.value,
|
|
2587
2587
|
"fetcher-url": t.fetcherUrl,
|
|
2588
2588
|
"request-method": "get"
|
|
2589
2589
|
}, null, 8, ["config", "entity-record", "fetcher-url"])) : j("", !0),
|
|
2590
|
-
e.format === "yaml" && o.value ? (p(), M(
|
|
2590
|
+
e.format === "yaml" && o.value ? (p(), M(jn, {
|
|
2591
2591
|
key: 2,
|
|
2592
2592
|
"entity-record": o.value
|
|
2593
2593
|
}, null, 8, ["entity-record"])) : j("", !0),
|
|
2594
|
-
e.format === "terraform" && o.value ? (p(), M(
|
|
2594
|
+
e.format === "terraform" && o.value ? (p(), M(Un, {
|
|
2595
2595
|
key: 3,
|
|
2596
2596
|
"entity-record": o.value,
|
|
2597
2597
|
"entity-type": t.entityType
|
|
2598
2598
|
}, null, 8, ["entity-record", "entity-type"])) : j("", !0)
|
|
2599
2599
|
], 64));
|
|
2600
2600
|
}
|
|
2601
|
-
}),
|
|
2601
|
+
}), Mo = /* @__PURE__ */ oe(No, [["__scopeId", "data-v-d67757a9"]]), Do = {
|
|
2602
2602
|
class: "config-card-title",
|
|
2603
2603
|
"data-testid": "config-card-title"
|
|
2604
|
-
},
|
|
2604
|
+
}, jo = { class: "config-card-actions" }, Uo = ["href"], Po = { class: "config-card-details-section" }, qo = /* @__PURE__ */ J({
|
|
2605
2605
|
__name: "EntityBaseConfigCard",
|
|
2606
2606
|
props: {
|
|
2607
2607
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
2608
2608
|
config: {
|
|
2609
2609
|
type: Object,
|
|
2610
2610
|
required: !0,
|
|
2611
|
-
validator: (e) => !(!e || ![
|
|
2611
|
+
validator: (e) => !(!e || ![Q.Konnect, Q.KongManager].includes(e == null ? void 0 : e.app) || e.app === Q.Konnect && !e.controlPlaneId || e.app === Q.KongManager && typeof e.workspace != "string" || !e.entityId)
|
|
2612
2612
|
},
|
|
2613
2613
|
/** Schema to configure display of fields */
|
|
2614
2614
|
configSchema: {
|
|
@@ -2622,7 +2622,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2622
2622
|
entityType: {
|
|
2623
2623
|
type: String,
|
|
2624
2624
|
required: !0,
|
|
2625
|
-
validator: (e) =>
|
|
2625
|
+
validator: (e) => De.includes(e)
|
|
2626
2626
|
},
|
|
2627
2627
|
/** Record key that contains the plugin configuration */
|
|
2628
2628
|
pluginConfigKey: {
|
|
@@ -2722,7 +2722,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2722
2722
|
value: "yaml"
|
|
2723
2723
|
}
|
|
2724
2724
|
];
|
|
2725
|
-
r.config.app ===
|
|
2725
|
+
r.config.app === Q.Konnect && s.splice(2, 0, {
|
|
2726
2726
|
label: i("baseForm.configuration.terraform"),
|
|
2727
2727
|
value: "terraform"
|
|
2728
2728
|
});
|
|
@@ -2733,57 +2733,57 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2733
2733
|
type: H.ID,
|
|
2734
2734
|
label: i("baseConfigCard.commonFields.id_label"),
|
|
2735
2735
|
order: 0,
|
|
2736
|
-
section:
|
|
2736
|
+
section: ae.Basic
|
|
2737
2737
|
},
|
|
2738
2738
|
name: {
|
|
2739
2739
|
order: 1,
|
|
2740
|
-
section:
|
|
2740
|
+
section: ae.Basic
|
|
2741
2741
|
},
|
|
2742
2742
|
enabled: {
|
|
2743
2743
|
type: H.BadgeStatus,
|
|
2744
2744
|
order: 2,
|
|
2745
|
-
section:
|
|
2745
|
+
section: ae.Basic
|
|
2746
2746
|
},
|
|
2747
2747
|
updated_at: {
|
|
2748
2748
|
type: H.Date,
|
|
2749
2749
|
label: i("baseConfigCard.commonFields.updated_at_label"),
|
|
2750
2750
|
order: 3,
|
|
2751
|
-
section:
|
|
2751
|
+
section: ae.Basic
|
|
2752
2752
|
},
|
|
2753
2753
|
created_at: {
|
|
2754
2754
|
type: H.Date,
|
|
2755
2755
|
label: i("baseConfigCard.commonFields.created_at_label"),
|
|
2756
2756
|
order: 4,
|
|
2757
|
-
section:
|
|
2757
|
+
section: ae.Basic
|
|
2758
2758
|
},
|
|
2759
2759
|
tags: {
|
|
2760
2760
|
type: H.BadgeTag,
|
|
2761
2761
|
order: -1,
|
|
2762
2762
|
// the last property displayed
|
|
2763
|
-
section:
|
|
2763
|
+
section: ae.Basic
|
|
2764
2764
|
},
|
|
2765
2765
|
partials: {
|
|
2766
2766
|
type: H.LinkInternal,
|
|
2767
2767
|
label: i("baseConfigCard.commonFields.partial_label"),
|
|
2768
2768
|
order: -1,
|
|
2769
2769
|
// the last property displayed
|
|
2770
|
-
section:
|
|
2770
|
+
section: ae.Basic
|
|
2771
2771
|
}
|
|
2772
2772
|
}, m = L(!1), f = L(!1), v = L(""), y = L({}), C = T(() => {
|
|
2773
|
-
var h, x,
|
|
2773
|
+
var h, x, R;
|
|
2774
2774
|
if (!y.value)
|
|
2775
2775
|
return [];
|
|
2776
2776
|
const g = [], $ = Object.keys(y.value).length;
|
|
2777
|
-
for (const
|
|
2778
|
-
const O = (x = (h = r.configSchema) == null ? void 0 : h[
|
|
2777
|
+
for (const B in y.value) {
|
|
2778
|
+
const O = (x = (h = r.configSchema) == null ? void 0 : h[B]) == null ? void 0 : x.order, W = (R = u[B]) == null ? void 0 : R.order;
|
|
2779
2779
|
let V = $;
|
|
2780
|
-
(W || W === 0) && (V = W === -1 ? $ + 1 : W), O && (V = O === -1 ? $ + 1 : O), g.push([
|
|
2780
|
+
(W || W === 0) && (V = W === -1 ? $ + 1 : W), O && (V = O === -1 ? $ + 1 : O), g.push([B, V]);
|
|
2781
2781
|
}
|
|
2782
|
-
return g.sort(function(
|
|
2783
|
-
return
|
|
2784
|
-
}), g.map((
|
|
2785
|
-
var
|
|
2786
|
-
const O =
|
|
2782
|
+
return g.sort(function(B, O) {
|
|
2783
|
+
return B[1] - O[1];
|
|
2784
|
+
}), g.map((B) => {
|
|
2785
|
+
var Ee, ut;
|
|
2786
|
+
const O = B[0], W = (Ee = y.value) == null ? void 0 : Ee[O], V = ((ut = r.configSchema) == null ? void 0 : ut[O]) || {}, G = u[O];
|
|
2787
2787
|
return {
|
|
2788
2788
|
key: O,
|
|
2789
2789
|
value: W,
|
|
@@ -2791,24 +2791,24 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2791
2791
|
type: V.type ?? ((G == null ? void 0 : G.type) || H.Text),
|
|
2792
2792
|
label: V.label ?? ((G == null ? void 0 : G.label) || a(O)),
|
|
2793
2793
|
tooltip: V.tooltip ?? ((G == null ? void 0 : G.tooltip) || void 0),
|
|
2794
|
-
section: V.section ?? ((G == null ? void 0 : G.section) ||
|
|
2794
|
+
section: V.section ?? ((G == null ? void 0 : G.section) || ae.Advanced)
|
|
2795
2795
|
};
|
|
2796
|
-
}).filter((
|
|
2796
|
+
}).filter((B) => !B.hidden && B.key !== r.pluginConfigKey);
|
|
2797
2797
|
}), I = T(() => {
|
|
2798
|
-
var x,
|
|
2798
|
+
var x, R;
|
|
2799
2799
|
if (!y.value || !r.pluginConfigKey)
|
|
2800
2800
|
return [];
|
|
2801
2801
|
const g = y.value[r.pluginConfigKey] || {}, $ = Object.keys(g).length, h = [];
|
|
2802
|
-
for (const
|
|
2803
|
-
const O = (
|
|
2802
|
+
for (const B in g) {
|
|
2803
|
+
const O = (R = (x = r.pluginConfigSchema) == null ? void 0 : x[B]) == null ? void 0 : R.order, W = g[B];
|
|
2804
2804
|
let V = W != null && W !== "" ? $ - 1 : $;
|
|
2805
|
-
O && (V = O === -1 ? $ + 1 : O), h.push([
|
|
2805
|
+
O && (V = O === -1 ? $ + 1 : O), h.push([B, V]);
|
|
2806
2806
|
}
|
|
2807
|
-
return h.sort(function(
|
|
2808
|
-
return
|
|
2809
|
-
}), h.map((
|
|
2807
|
+
return h.sort(function(B, O) {
|
|
2808
|
+
return B[1] - O[1];
|
|
2809
|
+
}), h.map((B) => {
|
|
2810
2810
|
var G;
|
|
2811
|
-
const O =
|
|
2811
|
+
const O = B[0], W = g[O], V = ((G = r.pluginConfigSchema) == null ? void 0 : G[O]) || {};
|
|
2812
2812
|
return {
|
|
2813
2813
|
key: O,
|
|
2814
2814
|
value: W,
|
|
@@ -2816,27 +2816,27 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2816
2816
|
type: V.type ?? H.Text,
|
|
2817
2817
|
label: V.label ?? a(O),
|
|
2818
2818
|
tooltip: V.tooltip ?? void 0,
|
|
2819
|
-
section:
|
|
2819
|
+
section: ae.Plugin
|
|
2820
2820
|
};
|
|
2821
|
-
}).filter((
|
|
2821
|
+
}).filter((B) => !B.hidden);
|
|
2822
2822
|
}), b = T(() => {
|
|
2823
2823
|
var g, $, h, x;
|
|
2824
2824
|
return {
|
|
2825
|
-
basic: (g = C.value) == null ? void 0 : g.filter((
|
|
2826
|
-
advanced: ($ = C.value) == null ? void 0 : $.filter((
|
|
2827
|
-
plugin: (x = I.value) == null ? void 0 : x.concat((h = C.value) == null ? void 0 : h.filter((
|
|
2825
|
+
basic: (g = C.value) == null ? void 0 : g.filter((R) => R.section === ae.Basic),
|
|
2826
|
+
advanced: ($ = C.value) == null ? void 0 : $.filter((R) => R.section === ae.Advanced),
|
|
2827
|
+
plugin: (x = I.value) == null ? void 0 : x.concat((h = C.value) == null ? void 0 : h.filter((R) => R.section === ae.Plugin))
|
|
2828
2828
|
};
|
|
2829
|
-
}),
|
|
2829
|
+
}), K = T(() => {
|
|
2830
2830
|
const g = [];
|
|
2831
2831
|
return b.value.basic.length && g.push("basic"), b.value.advanced.length && g.push("advanced"), b.value.plugin.length && g.push("plugin"), g;
|
|
2832
2832
|
}), F = T(() => {
|
|
2833
2833
|
var $, h;
|
|
2834
2834
|
let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2835
|
-
return r.config.app ===
|
|
2835
|
+
return r.config.app === Q.Konnect ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === Q.KongManager && (g = g.replace(/\/{workspace}/gi, (h = r.config) != null && h.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
|
|
2836
2836
|
});
|
|
2837
|
-
return
|
|
2837
|
+
return _e(m, (g) => {
|
|
2838
2838
|
n("loading", g);
|
|
2839
|
-
}, { immediate: !0 }),
|
|
2839
|
+
}, { immediate: !0 }), tt(async () => {
|
|
2840
2840
|
f.value = !1, m.value = !0;
|
|
2841
2841
|
try {
|
|
2842
2842
|
const { data: g } = await l.get(F.value);
|
|
@@ -2856,13 +2856,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2856
2856
|
m.value = !1;
|
|
2857
2857
|
}
|
|
2858
2858
|
}), (g, $) => {
|
|
2859
|
-
const h = U("KLabel"), x = U("KSelect"),
|
|
2859
|
+
const h = U("KLabel"), x = U("KSelect"), R = U("KButton"), B = U("KSkeleton"), O = U("KEmptyState"), W = U("KCard");
|
|
2860
2860
|
return p(), M(W, {
|
|
2861
2861
|
class: "kong-ui-entity-base-config-card",
|
|
2862
2862
|
"title-tag": e.titleTag
|
|
2863
|
-
},
|
|
2863
|
+
}, ke({
|
|
2864
2864
|
actions: k(() => [
|
|
2865
|
-
N("div",
|
|
2865
|
+
N("div", jo, [
|
|
2866
2866
|
P(g.$slots, "actions", {}, void 0, !0),
|
|
2867
2867
|
D(h, {
|
|
2868
2868
|
class: "config-format-select-label",
|
|
@@ -2878,7 +2878,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2878
2878
|
items: s,
|
|
2879
2879
|
onChange: d
|
|
2880
2880
|
}),
|
|
2881
|
-
e.configCardDoc ? (p(), M(
|
|
2881
|
+
e.configCardDoc ? (p(), M(R, {
|
|
2882
2882
|
key: 0,
|
|
2883
2883
|
appearance: "tertiary",
|
|
2884
2884
|
class: "book-icon",
|
|
@@ -2890,15 +2890,15 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2890
2890
|
rel: "noopener",
|
|
2891
2891
|
target: "_blank"
|
|
2892
2892
|
}, [
|
|
2893
|
-
D(A(
|
|
2894
|
-
], 8,
|
|
2893
|
+
D(A(Pt), { size: A(zr) }, null, 8, ["size"])
|
|
2894
|
+
], 8, Uo)
|
|
2895
2895
|
]),
|
|
2896
2896
|
_: 1
|
|
2897
2897
|
})) : j("", !0)
|
|
2898
2898
|
])
|
|
2899
2899
|
]),
|
|
2900
2900
|
default: k(() => [
|
|
2901
|
-
m.value ? (p(), M(
|
|
2901
|
+
m.value ? (p(), M(B, {
|
|
2902
2902
|
key: 0,
|
|
2903
2903
|
"data-testid": "config-card-loader",
|
|
2904
2904
|
"table-columns": 2,
|
|
@@ -2913,23 +2913,23 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2913
2913
|
]),
|
|
2914
2914
|
_: 1
|
|
2915
2915
|
})) : j("", !0),
|
|
2916
|
-
N("div",
|
|
2917
|
-
D(
|
|
2916
|
+
N("div", Po, [
|
|
2917
|
+
D(Mo, {
|
|
2918
2918
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
2919
2919
|
config: e.config,
|
|
2920
2920
|
"entity-type": e.entityType,
|
|
2921
2921
|
"fetcher-url": F.value,
|
|
2922
2922
|
format: c.value,
|
|
2923
|
-
"prop-list-types":
|
|
2923
|
+
"prop-list-types": K.value,
|
|
2924
2924
|
"property-collections": b.value,
|
|
2925
2925
|
record: y.value
|
|
2926
|
-
},
|
|
2927
|
-
|
|
2926
|
+
}, ke({ _: 2 }, [
|
|
2927
|
+
le(Object.keys(g.$slots), (V) => ({
|
|
2928
2928
|
name: V,
|
|
2929
|
-
fn: k(({ row: G, rowValue:
|
|
2929
|
+
fn: k(({ row: G, rowValue: Ee }) => [
|
|
2930
2930
|
P(g.$slots, V, {
|
|
2931
2931
|
row: G,
|
|
2932
|
-
rowValue:
|
|
2932
|
+
rowValue: Ee
|
|
2933
2933
|
}, void 0, !0)
|
|
2934
2934
|
])
|
|
2935
2935
|
}))
|
|
@@ -2941,7 +2941,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2941
2941
|
e.hideTitle ? void 0 : {
|
|
2942
2942
|
name: "title",
|
|
2943
2943
|
fn: k(() => [
|
|
2944
|
-
N("span",
|
|
2944
|
+
N("span", Do, [
|
|
2945
2945
|
P(g.$slots, "title", {}, () => [
|
|
2946
2946
|
q(E(A(i)("baseConfigCard.title")), 1)
|
|
2947
2947
|
], !0)
|
|
@@ -2952,17 +2952,17 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2952
2952
|
]), 1032, ["title-tag"]);
|
|
2953
2953
|
};
|
|
2954
2954
|
}
|
|
2955
|
-
}),
|
|
2955
|
+
}), ts = /* @__PURE__ */ oe(qo, [["__scopeId", "data-v-dbd6a30e"]]), Ho = ["novalidate"], Yo = {
|
|
2956
2956
|
class: "form-actions",
|
|
2957
2957
|
"data-testid": "form-actions"
|
|
2958
|
-
},
|
|
2958
|
+
}, Vo = /* @__PURE__ */ J({
|
|
2959
2959
|
__name: "EntityBaseForm",
|
|
2960
2960
|
props: {
|
|
2961
2961
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
2962
2962
|
config: {
|
|
2963
2963
|
type: Object,
|
|
2964
2964
|
required: !0,
|
|
2965
|
-
validator: (e) => !(!e || ![
|
|
2965
|
+
validator: (e) => !(!e || ![Q.Konnect, Q.KongManager].includes(e == null ? void 0 : e.app) || e.app === Q.Konnect && !e.controlPlaneId || e.app === Q.KongManager && typeof e.workspace != "string")
|
|
2966
2966
|
},
|
|
2967
2967
|
/** If a valid edit ID is provided, it will put the form in Edit mode instead of Create */
|
|
2968
2968
|
editId: {
|
|
@@ -2976,7 +2976,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
2976
2976
|
entityType: {
|
|
2977
2977
|
type: String,
|
|
2978
2978
|
required: !0,
|
|
2979
|
-
validator: (e) =>
|
|
2979
|
+
validator: (e) => De.includes(e)
|
|
2980
2980
|
},
|
|
2981
2981
|
/**
|
|
2982
2982
|
* Fetch url for the item to edit. We will handle the replacement of {controlPlaneId}, {workspace}, and {id}.
|
|
@@ -3045,10 +3045,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3045
3045
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3046
3046
|
setup(e, { emit: t }) {
|
|
3047
3047
|
var F;
|
|
3048
|
-
const n = t, r = e, i =
|
|
3048
|
+
const n = t, r = e, i = rr(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig), s = L(!1), c = T(() => !!r.editId), d = L(!1), u = L(""), m = T(() => r.canSubmit === !1 || r.isReadonly), f = L(!1), v = T(() => {
|
|
3049
3049
|
var g, $;
|
|
3050
3050
|
let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3051
|
-
return r.config.app ===
|
|
3051
|
+
return r.config.app === Q.Konnect ? S = S.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === Q.KongManager && (S = S.replace(/\/{workspace}/gi, ($ = r.config) != null && $.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
|
|
3052
3052
|
}), y = () => {
|
|
3053
3053
|
f.value = !f.value;
|
|
3054
3054
|
}, C = () => {
|
|
@@ -3057,7 +3057,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3057
3057
|
n("cancel");
|
|
3058
3058
|
}, b = () => {
|
|
3059
3059
|
m.value || n("submit");
|
|
3060
|
-
},
|
|
3060
|
+
}, K = L([
|
|
3061
3061
|
{
|
|
3062
3062
|
title: o("baseForm.configuration.json"),
|
|
3063
3063
|
hash: "#json"
|
|
@@ -3067,12 +3067,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3067
3067
|
hash: "#yaml"
|
|
3068
3068
|
}
|
|
3069
3069
|
]);
|
|
3070
|
-
return r.config.app ===
|
|
3070
|
+
return r.config.app === Q.Konnect && r.entityType !== nt.Other && K.value.splice(1, 0, {
|
|
3071
3071
|
title: o("baseForm.configuration.terraform"),
|
|
3072
3072
|
hash: "#terraform"
|
|
3073
|
-
}),
|
|
3073
|
+
}), _e(() => s.value, (S) => {
|
|
3074
3074
|
n("loading", S);
|
|
3075
|
-
}, { immediate: !0 }),
|
|
3075
|
+
}, { immediate: !0 }), tt(async () => {
|
|
3076
3076
|
if (r.editId)
|
|
3077
3077
|
try {
|
|
3078
3078
|
d.value = !1, s.value = !0;
|
|
@@ -3085,8 +3085,8 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3085
3085
|
s.value = !1;
|
|
3086
3086
|
}
|
|
3087
3087
|
}), (S, g) => {
|
|
3088
|
-
const $ = U("KSkeleton"), h = U("KEmptyState"), x = U("KAlert"),
|
|
3089
|
-
return p(), M(
|
|
3088
|
+
const $ = U("KSkeleton"), h = U("KEmptyState"), x = U("KAlert"), R = U("KButton"), B = U("KTabs"), O = U("KSlideout");
|
|
3089
|
+
return p(), M(Me(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3090
3090
|
default: k(() => [
|
|
3091
3091
|
s.value ? (p(), M($, {
|
|
3092
3092
|
key: 0,
|
|
@@ -3106,8 +3106,8 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3106
3106
|
key: 2,
|
|
3107
3107
|
"data-testid": "form-content",
|
|
3108
3108
|
novalidate: r.noValidate,
|
|
3109
|
-
onReset:
|
|
3110
|
-
onSubmit:
|
|
3109
|
+
onReset: Oe(I, ["prevent"]),
|
|
3110
|
+
onSubmit: Oe(b, ["prevent"])
|
|
3111
3111
|
}, [
|
|
3112
3112
|
P(S.$slots, "default", {}, void 0, !0),
|
|
3113
3113
|
e.errorMessage ? (p(), M(x, {
|
|
@@ -3116,13 +3116,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3116
3116
|
"data-testid": "form-error",
|
|
3117
3117
|
message: e.errorMessage
|
|
3118
3118
|
}, null, 8, ["message"])) : j("", !0),
|
|
3119
|
-
(p(), M(
|
|
3119
|
+
(p(), M(Ut, {
|
|
3120
3120
|
disabled: !e.actionTeleportTarget,
|
|
3121
3121
|
to: e.actionTeleportTarget
|
|
3122
3122
|
}, [
|
|
3123
|
-
N("div",
|
|
3123
|
+
N("div", Yo, [
|
|
3124
3124
|
P(S.$slots, "form-actions", {}, () => [
|
|
3125
|
-
D(
|
|
3125
|
+
D(R, {
|
|
3126
3126
|
appearance: "tertiary",
|
|
3127
3127
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-view-configuration`,
|
|
3128
3128
|
onClick: g[0] || (g[0] = (W) => y())
|
|
@@ -3132,7 +3132,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3132
3132
|
]),
|
|
3133
3133
|
_: 1
|
|
3134
3134
|
}, 8, ["data-testid"]),
|
|
3135
|
-
D(
|
|
3135
|
+
D(R, {
|
|
3136
3136
|
appearance: "secondary",
|
|
3137
3137
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-cancel`,
|
|
3138
3138
|
disabled: e.isReadonly,
|
|
@@ -3144,7 +3144,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3144
3144
|
]),
|
|
3145
3145
|
_: 1
|
|
3146
3146
|
}, 8, ["data-testid", "disabled"]),
|
|
3147
|
-
D(
|
|
3147
|
+
D(R, {
|
|
3148
3148
|
appearance: "primary",
|
|
3149
3149
|
"data-testid": `${e.entityType}-${c.value ? "edit" : "create"}-form-submit`,
|
|
3150
3150
|
disabled: m.value,
|
|
@@ -3159,7 +3159,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3159
3159
|
], !0)
|
|
3160
3160
|
])
|
|
3161
3161
|
], 8, ["disabled", "to"]))
|
|
3162
|
-
], 40,
|
|
3162
|
+
], 40, Ho)),
|
|
3163
3163
|
D(O, {
|
|
3164
3164
|
"close-on-blur": !1,
|
|
3165
3165
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3171,12 +3171,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3171
3171
|
}, {
|
|
3172
3172
|
default: k(() => [
|
|
3173
3173
|
N("div", null, E(A(o)("baseForm.configuration.message")), 1),
|
|
3174
|
-
D(
|
|
3174
|
+
D(B, {
|
|
3175
3175
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3176
|
-
tabs:
|
|
3176
|
+
tabs: K.value
|
|
3177
3177
|
}, {
|
|
3178
3178
|
json: k(() => [
|
|
3179
|
-
D(
|
|
3179
|
+
D(Qt, {
|
|
3180
3180
|
config: e.config,
|
|
3181
3181
|
"entity-record": r.formFields,
|
|
3182
3182
|
"fetcher-url": v.value,
|
|
@@ -3184,12 +3184,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3184
3184
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3185
3185
|
]),
|
|
3186
3186
|
yaml: k(() => [
|
|
3187
|
-
D(
|
|
3187
|
+
D(jn, {
|
|
3188
3188
|
"entity-record": r.formFields
|
|
3189
3189
|
}, null, 8, ["entity-record"])
|
|
3190
3190
|
]),
|
|
3191
3191
|
terraform: k(() => [
|
|
3192
|
-
D(
|
|
3192
|
+
D(Un, {
|
|
3193
3193
|
"entity-record": r.formFields,
|
|
3194
3194
|
"entity-type": e.entityType
|
|
3195
3195
|
}, null, 8, ["entity-record", "entity-type"])
|
|
@@ -3204,7 +3204,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3204
3204
|
});
|
|
3205
3205
|
};
|
|
3206
3206
|
}
|
|
3207
|
-
}),
|
|
3207
|
+
}), ns = /* @__PURE__ */ oe(Vo, [["__scopeId", "data-v-6a7b6a30"]]), Wo = ["data-truncate"], Jo = /* @__PURE__ */ J({
|
|
3208
3208
|
__name: "EntityBaseTableCell",
|
|
3209
3209
|
props: {
|
|
3210
3210
|
keyName: {
|
|
@@ -3236,14 +3236,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3236
3236
|
const l = () => {
|
|
3237
3237
|
a && (a.disconnect(), a = void 0);
|
|
3238
3238
|
}, s = () => {
|
|
3239
|
-
var I, b,
|
|
3239
|
+
var I, b, K;
|
|
3240
3240
|
let C = ((I = n.value) == null ? void 0 : I.clientWidth) || 0;
|
|
3241
3241
|
if (n.value && "getComputedStyle" in window) {
|
|
3242
3242
|
const F = window.getComputedStyle(n.value);
|
|
3243
3243
|
C -= (parseFloat(F.paddingLeft) || 0) + (parseFloat(F.paddingRight) || 0);
|
|
3244
3244
|
}
|
|
3245
|
-
d.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, u.value = C, m.value = ((
|
|
3246
|
-
}, c = L({}), d = L(0), u = L(0), m = L(""), f = T(() => [r.value, n.value]), v =
|
|
3245
|
+
d.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, u.value = C, m.value = ((K = c.value) == null ? void 0 : K.innerText) || "";
|
|
3246
|
+
}, c = L({}), d = L(0), u = L(0), m = L(""), f = T(() => [r.value, n.value]), v = _e(
|
|
3247
3247
|
f,
|
|
3248
3248
|
(C) => {
|
|
3249
3249
|
if (o.value && (l(), "ResizeObserver" in window && window)) {
|
|
@@ -3258,9 +3258,9 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3258
3258
|
},
|
|
3259
3259
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3260
3260
|
), y = T(() => o.value ? d.value > u.value : !1);
|
|
3261
|
-
return
|
|
3261
|
+
return Vn(() => {
|
|
3262
3262
|
s();
|
|
3263
|
-
}),
|
|
3263
|
+
}), Wn(() => {
|
|
3264
3264
|
v();
|
|
3265
3265
|
}), (C, I) => {
|
|
3266
3266
|
const b = U("KTooltip");
|
|
@@ -3283,17 +3283,17 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3283
3283
|
]),
|
|
3284
3284
|
_: 3
|
|
3285
3285
|
}, 8, ["text"])
|
|
3286
|
-
], 8,
|
|
3286
|
+
], 8, Wo)) : P(C.$slots, "default", { key: 1 }, void 0, !0)
|
|
3287
3287
|
], 512);
|
|
3288
3288
|
};
|
|
3289
3289
|
}
|
|
3290
|
-
}),
|
|
3290
|
+
}), Go = /* @__PURE__ */ oe(Jo, [["__scopeId", "data-v-b252463e"]]), zo = { class: "toolbar-container" }, Qo = {
|
|
3291
3291
|
key: 0,
|
|
3292
3292
|
class: "toolbar-button-container"
|
|
3293
|
-
},
|
|
3293
|
+
}, Zo = {
|
|
3294
3294
|
key: 0,
|
|
3295
3295
|
class: "hidden"
|
|
3296
|
-
},
|
|
3296
|
+
}, Xo = /* @__PURE__ */ J({
|
|
3297
3297
|
__name: "EntityBaseTable",
|
|
3298
3298
|
props: {
|
|
3299
3299
|
// table header configuration
|
|
@@ -3435,13 +3435,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3435
3435
|
};
|
|
3436
3436
|
}), a = T(() => n.cacheIdentifier || n.preferencesStorageKey), l = T(() => {
|
|
3437
3437
|
const h = [];
|
|
3438
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3439
|
-
const
|
|
3438
|
+
return Object.keys(n.tableHeaders).forEach((R) => {
|
|
3439
|
+
const B = n.tableHeaders[R];
|
|
3440
3440
|
h.push({
|
|
3441
|
-
label:
|
|
3442
|
-
key:
|
|
3443
|
-
sortable:
|
|
3444
|
-
hidable:
|
|
3441
|
+
label: B.label ?? R,
|
|
3442
|
+
key: R,
|
|
3443
|
+
sortable: B.sortable ?? !1,
|
|
3444
|
+
hidable: B.hidable ?? !0
|
|
3445
3445
|
});
|
|
3446
3446
|
}), n.enableEntityActions && h.push({
|
|
3447
3447
|
key: "actions",
|
|
@@ -3474,7 +3474,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3474
3474
|
r("click:row", x);
|
|
3475
3475
|
}), C = (h) => {
|
|
3476
3476
|
r("sort", h);
|
|
3477
|
-
}, { hideTableToolbar: I, handleStateChange: b } = Y.useTableState(() => n.query), { setTablePreferences:
|
|
3477
|
+
}, { hideTableToolbar: I, handleStateChange: b } = Y.useTableState(() => n.query), { setTablePreferences: K, getTablePreferences: F } = cr(), S = L(F(a.value, n.defaultTablePreferences)), g = T(() => {
|
|
3478
3478
|
const h = F(a.value);
|
|
3479
3479
|
return {
|
|
3480
3480
|
...n.initialFetcherParams,
|
|
@@ -3483,17 +3483,17 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3483
3483
|
}), $ = (h) => {
|
|
3484
3484
|
S.value = h, l.value.forEach((x) => {
|
|
3485
3485
|
!("hidable" in x) || !S.value.columnVisibility || x.hidable === !1 && (S.value.columnVisibility[x.key] = !0);
|
|
3486
|
-
}), a.value &&
|
|
3486
|
+
}), a.value && K(a.value, h);
|
|
3487
3487
|
};
|
|
3488
3488
|
return (h, x) => {
|
|
3489
|
-
const
|
|
3490
|
-
return p(), M(
|
|
3489
|
+
const R = U("KTableData"), B = U("KCard");
|
|
3490
|
+
return p(), M(B, {
|
|
3491
3491
|
class: "kong-ui-entity-base-table",
|
|
3492
3492
|
title: e.title,
|
|
3493
3493
|
"title-tag": e.titleTag
|
|
3494
3494
|
}, {
|
|
3495
3495
|
default: k(() => [
|
|
3496
|
-
D(
|
|
3496
|
+
D(R, {
|
|
3497
3497
|
ref_key: "tableRefs",
|
|
3498
3498
|
ref: c,
|
|
3499
3499
|
"cache-identifier": a.value,
|
|
@@ -3528,11 +3528,11 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3528
3528
|
onSort: x[0] || (x[0] = (O) => C(O)),
|
|
3529
3529
|
onState: m,
|
|
3530
3530
|
"onUpdate:tablePreferences": $
|
|
3531
|
-
},
|
|
3531
|
+
}, ke({
|
|
3532
3532
|
toolbar: k(() => [
|
|
3533
|
-
N("div",
|
|
3533
|
+
N("div", zo, [
|
|
3534
3534
|
P(h.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3535
|
-
h.$slots["toolbar-button"] ? (p(), w("div",
|
|
3535
|
+
h.$slots["toolbar-button"] ? (p(), w("div", Qo, [
|
|
3536
3536
|
P(h.$slots, "toolbar-button", {}, void 0, !0)
|
|
3537
3537
|
])) : j("", !0)
|
|
3538
3538
|
])
|
|
@@ -3549,10 +3549,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3549
3549
|
]),
|
|
3550
3550
|
key: "0"
|
|
3551
3551
|
} : void 0,
|
|
3552
|
-
|
|
3552
|
+
le(e.tableHeaders, (O, W) => ({
|
|
3553
3553
|
name: W,
|
|
3554
3554
|
fn: k(({ row: V, rowValue: G }) => [
|
|
3555
|
-
D(
|
|
3555
|
+
D(Go, {
|
|
3556
3556
|
"key-name": String(W),
|
|
3557
3557
|
"row-el": d(V),
|
|
3558
3558
|
tooltip: O.tooltip
|
|
@@ -3573,12 +3573,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3573
3573
|
e.query ? void 0 : {
|
|
3574
3574
|
name: "empty-state-action-icon",
|
|
3575
3575
|
fn: k(() => [
|
|
3576
|
-
D(A(
|
|
3576
|
+
D(A(qt))
|
|
3577
3577
|
]),
|
|
3578
3578
|
key: "1"
|
|
3579
3579
|
}
|
|
3580
3580
|
]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
|
|
3581
|
-
h.$slots["outside-actions"] && A(I) ? (p(), w("div",
|
|
3581
|
+
h.$slots["outside-actions"] && A(I) ? (p(), w("div", Zo, [
|
|
3582
3582
|
P(h.$slots, "outside-actions", {}, void 0, !0)
|
|
3583
3583
|
])) : j("", !0)
|
|
3584
3584
|
]),
|
|
@@ -3586,13 +3586,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3586
3586
|
}, 8, ["title", "title-tag"]);
|
|
3587
3587
|
};
|
|
3588
3588
|
}
|
|
3589
|
-
}),
|
|
3589
|
+
}), rs = /* @__PURE__ */ oe(Xo, [["__scopeId", "data-v-d58db70c"]]), el = {
|
|
3590
3590
|
key: 0,
|
|
3591
3591
|
class: "kong-ui-entity-delete-error"
|
|
3592
|
-
},
|
|
3592
|
+
}, tl = {
|
|
3593
3593
|
key: 1,
|
|
3594
3594
|
class: "description"
|
|
3595
|
-
},
|
|
3595
|
+
}, nl = /* @__PURE__ */ J({
|
|
3596
3596
|
__name: "EntityDeleteModal",
|
|
3597
3597
|
props: {
|
|
3598
3598
|
visible: {
|
|
@@ -3650,7 +3650,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3650
3650
|
onProceed: l
|
|
3651
3651
|
}, {
|
|
3652
3652
|
default: k(() => [
|
|
3653
|
-
e.error ? (p(), w("div",
|
|
3653
|
+
e.error ? (p(), w("div", el, [
|
|
3654
3654
|
D(d, { appearance: "danger" }, {
|
|
3655
3655
|
default: k(() => [
|
|
3656
3656
|
q(E(e.error), 1)
|
|
@@ -3662,7 +3662,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3662
3662
|
class: "message",
|
|
3663
3663
|
keypath: r.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3664
3664
|
tag: "p"
|
|
3665
|
-
},
|
|
3665
|
+
}, ke({
|
|
3666
3666
|
entityType: k(() => [
|
|
3667
3667
|
q(E(r.entityType), 1)
|
|
3668
3668
|
]),
|
|
@@ -3676,7 +3676,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3676
3676
|
key: "0"
|
|
3677
3677
|
} : void 0
|
|
3678
3678
|
]), 1032, ["keypath"]),
|
|
3679
|
-
r.description || s.$slots.description ? (p(), w("div",
|
|
3679
|
+
r.description || s.$slots.description ? (p(), w("div", tl, [
|
|
3680
3680
|
P(s.$slots, "description", {}, () => [
|
|
3681
3681
|
N("p", null, E(r.description), 1)
|
|
3682
3682
|
], !0)
|
|
@@ -3686,13 +3686,13 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3686
3686
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3687
3687
|
};
|
|
3688
3688
|
}
|
|
3689
|
-
}),
|
|
3689
|
+
}), is = /* @__PURE__ */ oe(nl, [["__scopeId", "data-v-4361d622"]]), rl = {
|
|
3690
3690
|
fill: "none",
|
|
3691
3691
|
height: "20",
|
|
3692
3692
|
viewBox: "0 0 20 20",
|
|
3693
3693
|
width: "20",
|
|
3694
3694
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3695
|
-
},
|
|
3695
|
+
}, il = {
|
|
3696
3696
|
id: "mask0_180_20349",
|
|
3697
3697
|
height: "20",
|
|
3698
3698
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3700,35 +3700,35 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3700
3700
|
width: "20",
|
|
3701
3701
|
x: "0",
|
|
3702
3702
|
y: "0"
|
|
3703
|
-
},
|
|
3703
|
+
}, al = ["fill"], ol = { mask: "url(#mask0_180_20349)" }, ll = ["fill"], Bt = /* @__PURE__ */ J({
|
|
3704
3704
|
__name: "IconFilter",
|
|
3705
3705
|
props: {
|
|
3706
3706
|
color: {
|
|
3707
3707
|
type: String,
|
|
3708
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3708
|
+
default: `var(--kong-ui-entity-filter-color, ${Hr})`
|
|
3709
3709
|
}
|
|
3710
3710
|
},
|
|
3711
3711
|
setup(e) {
|
|
3712
|
-
return (t, n) => (p(), w("svg",
|
|
3713
|
-
N("mask",
|
|
3712
|
+
return (t, n) => (p(), w("svg", rl, [
|
|
3713
|
+
N("mask", il, [
|
|
3714
3714
|
N("rect", {
|
|
3715
3715
|
fill: e.color,
|
|
3716
3716
|
height: "20",
|
|
3717
3717
|
width: "20"
|
|
3718
|
-
}, null, 8,
|
|
3718
|
+
}, null, 8, al)
|
|
3719
3719
|
]),
|
|
3720
|
-
N("g",
|
|
3720
|
+
N("g", ol, [
|
|
3721
3721
|
N("path", {
|
|
3722
3722
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3723
3723
|
fill: e.color
|
|
3724
|
-
}, null, 8,
|
|
3724
|
+
}, null, 8, ll)
|
|
3725
3725
|
])
|
|
3726
3726
|
]));
|
|
3727
3727
|
}
|
|
3728
|
-
}),
|
|
3728
|
+
}), sl = {
|
|
3729
3729
|
key: 1,
|
|
3730
3730
|
class: "kong-ui-entity-filter"
|
|
3731
|
-
},
|
|
3731
|
+
}, cl = { class: "kong-ui-entity-filter-menu" }, ul = ["data-testid"], dl = ["onClick", "onKeydown"], fl = { class: "menu-item-indicator" }, pl = { class: "menu-item-body" }, ml = ["for"], hl = { class: "menu-item-buttons" }, gl = { class: "filter-clear-button-container" }, yl = /* @__PURE__ */ J({
|
|
3732
3732
|
__name: "EntityFilter",
|
|
3733
3733
|
props: {
|
|
3734
3734
|
// filter config, either exact match or fuzzy match
|
|
@@ -3764,7 +3764,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3764
3764
|
expanded: !1
|
|
3765
3765
|
}));
|
|
3766
3766
|
});
|
|
3767
|
-
|
|
3767
|
+
_e(() => r.modelValue, (F) => {
|
|
3768
3768
|
a.value = {}, new URLSearchParams(F).forEach((S, g) => {
|
|
3769
3769
|
a.value[g] = S;
|
|
3770
3770
|
});
|
|
@@ -3790,10 +3790,10 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3790
3790
|
a.value = {
|
|
3791
3791
|
...a.value,
|
|
3792
3792
|
[F]: ""
|
|
3793
|
-
},
|
|
3793
|
+
}, K();
|
|
3794
3794
|
}, b = () => {
|
|
3795
|
-
a.value = {},
|
|
3796
|
-
},
|
|
3795
|
+
a.value = {}, K(!0);
|
|
3796
|
+
}, K = (F = !1) => {
|
|
3797
3797
|
const S = Object.keys(a.value).reduce((g, $) => (a.value[$] && (g[$] = `${a.value[$]}`), g), {});
|
|
3798
3798
|
F && (o.value = !1), i("update:modelValue", new URLSearchParams(S).toString());
|
|
3799
3799
|
};
|
|
@@ -3812,17 +3812,17 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3812
3812
|
D(Bt)
|
|
3813
3813
|
]),
|
|
3814
3814
|
after: k(() => [
|
|
3815
|
-
|
|
3815
|
+
ge(D(A(er), {
|
|
3816
3816
|
class: "kong-ui-entity-filter-clear",
|
|
3817
3817
|
role: "button",
|
|
3818
3818
|
tabindex: "0",
|
|
3819
3819
|
onClick: f
|
|
3820
3820
|
}, null, 512), [
|
|
3821
|
-
[
|
|
3821
|
+
[ye, e.modelValue !== ""]
|
|
3822
3822
|
])
|
|
3823
3823
|
]),
|
|
3824
3824
|
_: 1
|
|
3825
|
-
}, 8, ["model-value", "placeholder"])) : (p(), w("div",
|
|
3825
|
+
}, 8, ["model-value", "placeholder"])) : (p(), w("div", sl, [
|
|
3826
3826
|
D($, {
|
|
3827
3827
|
appearance: "tertiary",
|
|
3828
3828
|
"data-testid": "filter-button",
|
|
@@ -3834,42 +3834,42 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3834
3834
|
]),
|
|
3835
3835
|
_: 1
|
|
3836
3836
|
}),
|
|
3837
|
-
|
|
3837
|
+
ge(N("div", {
|
|
3838
3838
|
class: "kong-ui-entity-filter-backdrop",
|
|
3839
3839
|
onClick: d
|
|
3840
3840
|
}, null, 512), [
|
|
3841
|
-
[
|
|
3841
|
+
[ye, o.value]
|
|
3842
3842
|
]),
|
|
3843
|
-
|
|
3844
|
-
(p(!0), w(
|
|
3845
|
-
var
|
|
3843
|
+
ge(N("div", cl, [
|
|
3844
|
+
(p(!0), w(se, null, le(c.value, (x) => {
|
|
3845
|
+
var R, B;
|
|
3846
3846
|
return p(), w("div", {
|
|
3847
3847
|
key: x.value,
|
|
3848
3848
|
class: "kong-ui-entity-filter-menu-item",
|
|
3849
3849
|
"data-testid": x.value
|
|
3850
3850
|
}, [
|
|
3851
3851
|
N("span", {
|
|
3852
|
-
class:
|
|
3852
|
+
class: ue(["menu-item-title", { expanded: l.value.has(x.value) }]),
|
|
3853
3853
|
role: "button",
|
|
3854
3854
|
tabindex: "0",
|
|
3855
3855
|
onClick: (O) => u(x.value),
|
|
3856
|
-
onKeydown:
|
|
3856
|
+
onKeydown: Jn((O) => u(x.value), ["enter"])
|
|
3857
3857
|
}, [
|
|
3858
3858
|
q(E(x.label) + " ", 1),
|
|
3859
|
-
|
|
3860
|
-
[
|
|
3859
|
+
ge(N("span", fl, null, 512), [
|
|
3860
|
+
[ye, s.value.includes(x.value)]
|
|
3861
3861
|
]),
|
|
3862
|
-
D(A(
|
|
3863
|
-
class:
|
|
3864
|
-
color: A(
|
|
3862
|
+
D(A(tr), {
|
|
3863
|
+
class: ue(["menu-item-expand-icon", { expanded: l.value.has(x.value) }]),
|
|
3864
|
+
color: A(Vr)
|
|
3865
3865
|
}, null, 8, ["class", "color"])
|
|
3866
|
-
], 42,
|
|
3867
|
-
|
|
3866
|
+
], 42, dl),
|
|
3867
|
+
ge(N("div", pl, [
|
|
3868
3868
|
N("label", {
|
|
3869
3869
|
class: "menu-item-label",
|
|
3870
3870
|
for: v(x.value)
|
|
3871
|
-
}, E(A(n)("filter.fieldLabel")), 9,
|
|
3872
|
-
((
|
|
3871
|
+
}, E(A(n)("filter.fieldLabel")), 9, ml),
|
|
3872
|
+
((B = (R = e.config.schema) == null ? void 0 : R[x.value]) == null ? void 0 : B.type) === "select" ? (p(), M(h, {
|
|
3873
3873
|
key: 0,
|
|
3874
3874
|
id: v(x.value),
|
|
3875
3875
|
modelValue: a.value[x.value],
|
|
@@ -3886,14 +3886,14 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3886
3886
|
type: C(x.value)
|
|
3887
3887
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3888
3888
|
], 512), [
|
|
3889
|
-
[
|
|
3889
|
+
[ye, l.value.has(x.value)]
|
|
3890
3890
|
]),
|
|
3891
|
-
|
|
3891
|
+
ge(N("div", hl, [
|
|
3892
3892
|
D($, {
|
|
3893
3893
|
appearance: "tertiary",
|
|
3894
3894
|
"data-testid": "apply-filter",
|
|
3895
3895
|
size: "small",
|
|
3896
|
-
onClick: S[0] || (S[0] = (O) =>
|
|
3896
|
+
onClick: S[0] || (S[0] = (O) => K(!0))
|
|
3897
3897
|
}, {
|
|
3898
3898
|
default: k(() => [
|
|
3899
3899
|
q(E(A(n)("filter.applyButtonText")), 1)
|
|
@@ -3912,11 +3912,11 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3912
3912
|
_: 2
|
|
3913
3913
|
}, 1032, ["onClick"])
|
|
3914
3914
|
], 512), [
|
|
3915
|
-
[
|
|
3915
|
+
[ye, l.value.has(x.value)]
|
|
3916
3916
|
])
|
|
3917
|
-
], 8,
|
|
3917
|
+
], 8, ul);
|
|
3918
3918
|
}), 128)),
|
|
3919
|
-
N("div",
|
|
3919
|
+
N("div", gl, [
|
|
3920
3920
|
D($, {
|
|
3921
3921
|
appearance: "tertiary",
|
|
3922
3922
|
size: "small",
|
|
@@ -3929,12 +3929,12 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3929
3929
|
})
|
|
3930
3930
|
])
|
|
3931
3931
|
], 512), [
|
|
3932
|
-
[
|
|
3932
|
+
[ye, o.value]
|
|
3933
3933
|
])
|
|
3934
3934
|
]));
|
|
3935
3935
|
};
|
|
3936
3936
|
}
|
|
3937
|
-
}),
|
|
3937
|
+
}), as = /* @__PURE__ */ oe(yl, [["__scopeId", "data-v-10fa27a5"]]), os = /* @__PURE__ */ J({
|
|
3938
3938
|
__name: "EntityToggleModal",
|
|
3939
3939
|
props: {
|
|
3940
3940
|
visible: {
|
|
@@ -3984,7 +3984,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
3984
3984
|
};
|
|
3985
3985
|
return (u, m) => {
|
|
3986
3986
|
const f = U("KPrompt");
|
|
3987
|
-
return p(), M(
|
|
3987
|
+
return p(), M(Ut, { to: "body" }, [
|
|
3988
3988
|
D(f, {
|
|
3989
3989
|
"action-button-disabled": a.value,
|
|
3990
3990
|
"action-button-text": s.value,
|
|
@@ -4013,7 +4013,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
4013
4013
|
]);
|
|
4014
4014
|
};
|
|
4015
4015
|
}
|
|
4016
|
-
}),
|
|
4016
|
+
}), ls = /* @__PURE__ */ J({
|
|
4017
4017
|
__name: "PermissionsWrapper",
|
|
4018
4018
|
props: {
|
|
4019
4019
|
/**
|
|
@@ -4036,7 +4036,7 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
4036
4036
|
},
|
|
4037
4037
|
setup(e) {
|
|
4038
4038
|
const t = e, n = L(void 0), r = T(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4039
|
-
return
|
|
4039
|
+
return _e(() => t.authFunction, async () => {
|
|
4040
4040
|
n.value = await t.authFunction();
|
|
4041
4041
|
}, { immediate: !0 }), (i, o) => r.value ? P(i.$slots, "default", {
|
|
4042
4042
|
key: 0,
|
|
@@ -4044,36 +4044,36 @@ const Fo = { class: "yaml-config config-card-code-block" }, Dn = /* @__PURE__ */
|
|
|
4044
4044
|
}) : j("", !0);
|
|
4045
4045
|
}
|
|
4046
4046
|
});
|
|
4047
|
-
var
|
|
4048
|
-
for (var
|
|
4049
|
-
|
|
4050
|
-
function
|
|
4051
|
-
return (
|
|
4052
|
-
}
|
|
4053
|
-
var
|
|
4054
|
-
function
|
|
4055
|
-
if (!
|
|
4047
|
+
var X = [];
|
|
4048
|
+
for (var Ve = 0; Ve < 256; ++Ve)
|
|
4049
|
+
X.push((Ve + 256).toString(16).slice(1));
|
|
4050
|
+
function vl(e, t = 0) {
|
|
4051
|
+
return (X[e[t + 0]] + X[e[t + 1]] + X[e[t + 2]] + X[e[t + 3]] + "-" + X[e[t + 4]] + X[e[t + 5]] + "-" + X[e[t + 6]] + X[e[t + 7]] + "-" + X[e[t + 8]] + X[e[t + 9]] + "-" + X[e[t + 10]] + X[e[t + 11]] + X[e[t + 12]] + X[e[t + 13]] + X[e[t + 14]] + X[e[t + 15]]).toLowerCase();
|
|
4052
|
+
}
|
|
4053
|
+
var Fe, bl = new Uint8Array(16);
|
|
4054
|
+
function xl() {
|
|
4055
|
+
if (!Fe && (Fe = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Fe))
|
|
4056
4056
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4057
|
-
return
|
|
4057
|
+
return Fe(bl);
|
|
4058
4058
|
}
|
|
4059
|
-
var
|
|
4060
|
-
const
|
|
4061
|
-
randomUUID:
|
|
4059
|
+
var Cl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
|
4060
|
+
const Nt = {
|
|
4061
|
+
randomUUID: Cl
|
|
4062
4062
|
};
|
|
4063
|
-
function
|
|
4064
|
-
if (
|
|
4065
|
-
return
|
|
4063
|
+
function kl(e, t, n) {
|
|
4064
|
+
if (Nt.randomUUID && !t && !e)
|
|
4065
|
+
return Nt.randomUUID();
|
|
4066
4066
|
e = e || {};
|
|
4067
|
-
var r = e.random || (e.rng ||
|
|
4068
|
-
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128,
|
|
4067
|
+
var r = e.random || (e.rng || xl)();
|
|
4068
|
+
return r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, vl(r);
|
|
4069
4069
|
}
|
|
4070
|
-
const
|
|
4070
|
+
const Al = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, wl = {
|
|
4071
4071
|
key: 1,
|
|
4072
4072
|
class: "form-section-description"
|
|
4073
|
-
},
|
|
4073
|
+
}, Sl = {
|
|
4074
4074
|
key: 2,
|
|
4075
4075
|
class: "form-section-footer"
|
|
4076
|
-
},
|
|
4076
|
+
}, $l = { class: "form-section-content" }, Tl = /* @__PURE__ */ J({
|
|
4077
4077
|
__name: "EntityFormSection",
|
|
4078
4078
|
props: {
|
|
4079
4079
|
title: {
|
|
@@ -4102,18 +4102,18 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4102
4102
|
}
|
|
4103
4103
|
},
|
|
4104
4104
|
setup(e) {
|
|
4105
|
-
const t =
|
|
4105
|
+
const t = et(), n = kl();
|
|
4106
4106
|
return (r, i) => (p(), w("div", {
|
|
4107
4107
|
"aria-labelledby": e.title ? A(n) : void 0,
|
|
4108
|
-
class:
|
|
4108
|
+
class: ue(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4109
4109
|
role: "group"
|
|
4110
4110
|
}, [
|
|
4111
|
-
N("div",
|
|
4111
|
+
N("div", _l, [
|
|
4112
4112
|
e.hideInfoHeader ? j("", !0) : (p(), w("div", {
|
|
4113
4113
|
key: 0,
|
|
4114
|
-
class:
|
|
4114
|
+
class: ue(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4115
4115
|
}, [
|
|
4116
|
-
e.title ? (p(), M(
|
|
4116
|
+
e.title ? (p(), M(Me(e.titleTag), {
|
|
4117
4117
|
key: 0,
|
|
4118
4118
|
id: A(n),
|
|
4119
4119
|
class: "form-section-title"
|
|
@@ -4123,28 +4123,28 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4123
4123
|
]),
|
|
4124
4124
|
_: 1
|
|
4125
4125
|
}, 8, ["id"])) : j("", !0),
|
|
4126
|
-
e.description || A(t).description ? (p(), w("div",
|
|
4126
|
+
e.description || A(t).description ? (p(), w("div", wl, [
|
|
4127
4127
|
P(r.$slots, "description", {}, () => [
|
|
4128
4128
|
N("p", null, E(e.description), 1)
|
|
4129
4129
|
], !0)
|
|
4130
4130
|
])) : j("", !0),
|
|
4131
|
-
A(t).footer ? (p(), w("div",
|
|
4131
|
+
A(t).footer ? (p(), w("div", Sl, [
|
|
4132
4132
|
P(r.$slots, "footer", {}, void 0, !0)
|
|
4133
4133
|
])) : j("", !0)
|
|
4134
4134
|
], 2)),
|
|
4135
|
-
N("div",
|
|
4135
|
+
N("div", $l, [
|
|
4136
4136
|
P(r.$slots, "default", {}, void 0, !0)
|
|
4137
4137
|
])
|
|
4138
4138
|
])
|
|
4139
|
-
], 10,
|
|
4139
|
+
], 10, Al));
|
|
4140
4140
|
}
|
|
4141
|
-
}),
|
|
4141
|
+
}), ss = /* @__PURE__ */ oe(Tl, [["__scopeId", "data-v-b1f74200"]]), Il = {
|
|
4142
4142
|
class: "kong-ui-public-entity-link",
|
|
4143
4143
|
"data-testid": "entity-link-parent"
|
|
4144
|
-
},
|
|
4144
|
+
}, El = {
|
|
4145
4145
|
key: 0,
|
|
4146
4146
|
class: "deleted-entity"
|
|
4147
|
-
},
|
|
4147
|
+
}, Fl = { key: 1 }, Ol = ["onClick"], Ll = /* @__PURE__ */ J({
|
|
4148
4148
|
__name: "EntityLink",
|
|
4149
4149
|
props: {
|
|
4150
4150
|
entityLinkData: {
|
|
@@ -4181,8 +4181,8 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4181
4181
|
};
|
|
4182
4182
|
return (u, m) => {
|
|
4183
4183
|
const f = U("KTooltip"), v = U("KExternalLink"), y = U("KClipboardProvider");
|
|
4184
|
-
return p(), w("div",
|
|
4185
|
-
l.value ? (p(), w("div",
|
|
4184
|
+
return p(), w("div", Il, [
|
|
4185
|
+
l.value ? (p(), w("div", El, E(c.value), 1)) : s.value ? s.value ? (p(), M(v, {
|
|
4186
4186
|
key: 2,
|
|
4187
4187
|
class: "entity-link",
|
|
4188
4188
|
"hide-icon": !e.newWindow,
|
|
@@ -4204,7 +4204,7 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4204
4204
|
}, 8, ["text"])
|
|
4205
4205
|
]),
|
|
4206
4206
|
_: 1
|
|
4207
|
-
}, 8, ["hide-icon", "href", "target"])) : j("", !0) : (p(), w("div",
|
|
4207
|
+
}, 8, ["hide-icon", "href", "target"])) : j("", !0) : (p(), w("div", Fl, E(" – "))),
|
|
4208
4208
|
s.value && e.allowCopy ? (p(), M(f, {
|
|
4209
4209
|
key: a.value,
|
|
4210
4210
|
class: "copy-uuid-tooltip",
|
|
@@ -4217,15 +4217,15 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4217
4217
|
default: k(({ copyToClipboard: C }) => [
|
|
4218
4218
|
N("span", {
|
|
4219
4219
|
class: "entity-link-copy-id",
|
|
4220
|
-
onClick:
|
|
4220
|
+
onClick: Oe((I) => d(C), ["stop"])
|
|
4221
4221
|
}, [
|
|
4222
|
-
D(A(
|
|
4222
|
+
D(A(nr), {
|
|
4223
4223
|
class: "copy-icon",
|
|
4224
|
-
color: A(
|
|
4224
|
+
color: A(Wr),
|
|
4225
4225
|
"data-testid": "copy-id",
|
|
4226
|
-
size: A(
|
|
4226
|
+
size: A(Gr)
|
|
4227
4227
|
}, null, 8, ["color", "size"])
|
|
4228
|
-
], 8,
|
|
4228
|
+
], 8, Ol)
|
|
4229
4229
|
]),
|
|
4230
4230
|
_: 1
|
|
4231
4231
|
})
|
|
@@ -4235,40 +4235,40 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4235
4235
|
]);
|
|
4236
4236
|
};
|
|
4237
4237
|
}
|
|
4238
|
-
}),
|
|
4238
|
+
}), cs = /* @__PURE__ */ oe(Ll, [["__scopeId", "data-v-6f25ab21"]]), Kl = { class: "kong-ui-public-entity-empty-state" }, Rl = { class: "entity-empty-state-content" }, Bl = {
|
|
4239
4239
|
key: 0,
|
|
4240
4240
|
class: "empty-state-image"
|
|
4241
|
-
},
|
|
4241
|
+
}, Nl = {
|
|
4242
4242
|
key: 1,
|
|
4243
4243
|
class: "entity-empty-state-title"
|
|
4244
|
-
},
|
|
4244
|
+
}, Ml = {
|
|
4245
4245
|
key: 2,
|
|
4246
4246
|
class: "entity-empty-state-description"
|
|
4247
|
-
},
|
|
4247
|
+
}, Dl = {
|
|
4248
4248
|
key: 3,
|
|
4249
4249
|
class: "entity-empty-state-pricing"
|
|
4250
|
-
},
|
|
4250
|
+
}, jl = {
|
|
4251
4251
|
key: 0,
|
|
4252
4252
|
class: "entity-empty-state-message"
|
|
4253
|
-
},
|
|
4253
|
+
}, Ul = {
|
|
4254
4254
|
key: 1,
|
|
4255
4255
|
class: "entity-empty-state-action"
|
|
4256
|
-
},
|
|
4256
|
+
}, Pl = {
|
|
4257
4257
|
key: 2,
|
|
4258
4258
|
class: "entity-empty-state-card-container"
|
|
4259
|
-
},
|
|
4259
|
+
}, ql = {
|
|
4260
4260
|
key: 0,
|
|
4261
4261
|
class: "feature-icon"
|
|
4262
|
-
},
|
|
4262
|
+
}, Hl = { class: "card-header" }, Yl = ["title"], Vl = {
|
|
4263
4263
|
key: 3,
|
|
4264
4264
|
class: "entity-empty-state-bottom-container"
|
|
4265
|
-
},
|
|
4265
|
+
}, Wl = /* @__PURE__ */ J({
|
|
4266
4266
|
__name: "EntityEmptyState",
|
|
4267
4267
|
props: {
|
|
4268
4268
|
appearance: {
|
|
4269
4269
|
type: String,
|
|
4270
4270
|
default: () => "primary",
|
|
4271
|
-
validator: (e) =>
|
|
4271
|
+
validator: (e) => pt.includes(e)
|
|
4272
4272
|
},
|
|
4273
4273
|
title: {
|
|
4274
4274
|
type: String,
|
|
@@ -4303,31 +4303,31 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4303
4303
|
},
|
|
4304
4304
|
emits: ["click:create", "click:learn-more"],
|
|
4305
4305
|
setup(e) {
|
|
4306
|
-
const t = e, { i18n: { t: n } } = Y.useI18n(), r = L(!1), i = T(() => r.value && !!t.actionButtonText), o = T(() =>
|
|
4307
|
-
return
|
|
4306
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), r = L(!1), i = T(() => r.value && !!t.actionButtonText), o = T(() => pt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4307
|
+
return tt(async () => {
|
|
4308
4308
|
r.value = await t.canCreate();
|
|
4309
4309
|
}), (a, l) => {
|
|
4310
4310
|
const s = U("KCard");
|
|
4311
|
-
return p(), w("div",
|
|
4311
|
+
return p(), w("div", Kl, [
|
|
4312
4312
|
N("div", Rl, [
|
|
4313
4313
|
a.$slots.image ? (p(), w("div", Bl, [
|
|
4314
4314
|
P(a.$slots, "image", {}, void 0, !0)
|
|
4315
4315
|
])) : j("", !0),
|
|
4316
|
-
e.title || a.$slots.title ? (p(), w("div",
|
|
4316
|
+
e.title || a.$slots.title ? (p(), w("div", Nl, [
|
|
4317
4317
|
N("h1", {
|
|
4318
|
-
class:
|
|
4318
|
+
class: ue(o.value)
|
|
4319
4319
|
}, [
|
|
4320
4320
|
P(a.$slots, "title", {}, () => [
|
|
4321
4321
|
q(E(e.title), 1)
|
|
4322
4322
|
], !0)
|
|
4323
4323
|
], 2)
|
|
4324
4324
|
])) : j("", !0),
|
|
4325
|
-
e.description || a.$slots.default ? (p(), w("div",
|
|
4325
|
+
e.description || a.$slots.default ? (p(), w("div", Ml, [
|
|
4326
4326
|
P(a.$slots, "default", {}, () => [
|
|
4327
4327
|
N("p", null, E(e.description), 1)
|
|
4328
4328
|
], !0)
|
|
4329
4329
|
])) : j("", !0),
|
|
4330
|
-
e.pricing || a.$slots.pricing ? (p(), w("div",
|
|
4330
|
+
e.pricing || a.$slots.pricing ? (p(), w("div", Dl, [
|
|
4331
4331
|
N("p", null, [
|
|
4332
4332
|
N("b", null, E(A(n)("emptyState.pricingTitle")), 1),
|
|
4333
4333
|
l[2] || (l[2] = q()),
|
|
@@ -4337,12 +4337,12 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4337
4337
|
])
|
|
4338
4338
|
])) : j("", !0)
|
|
4339
4339
|
]),
|
|
4340
|
-
a.$slots.message ? (p(), w("div",
|
|
4340
|
+
a.$slots.message ? (p(), w("div", jl, [
|
|
4341
4341
|
P(a.$slots, "message", {}, void 0, !0)
|
|
4342
4342
|
])) : j("", !0),
|
|
4343
|
-
i.value || e.learnMore || a.$slots.actions ? (p(), w("div",
|
|
4343
|
+
i.value || e.learnMore || a.$slots.actions ? (p(), w("div", Ul, [
|
|
4344
4344
|
P(a.$slots, "actions", {}, () => [
|
|
4345
|
-
i.value ? (p(), M(A(
|
|
4345
|
+
i.value ? (p(), M(A(ft), {
|
|
4346
4346
|
key: 0,
|
|
4347
4347
|
appearance: "primary",
|
|
4348
4348
|
"data-testid": "entity-create-button",
|
|
@@ -4350,12 +4350,12 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4350
4350
|
onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
|
|
4351
4351
|
}, {
|
|
4352
4352
|
default: k(() => [
|
|
4353
|
-
D(A(
|
|
4353
|
+
D(A(qt)),
|
|
4354
4354
|
q(" " + E(e.actionButtonText), 1)
|
|
4355
4355
|
]),
|
|
4356
4356
|
_: 1
|
|
4357
4357
|
})) : j("", !0),
|
|
4358
|
-
e.learnMore ? (p(), M(A(
|
|
4358
|
+
e.learnMore ? (p(), M(A(ft), {
|
|
4359
4359
|
key: 1,
|
|
4360
4360
|
appearance: "secondary",
|
|
4361
4361
|
"data-testid": "entity-learn-more-button",
|
|
@@ -4363,39 +4363,39 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4363
4363
|
onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
|
|
4364
4364
|
}, {
|
|
4365
4365
|
default: k(() => [
|
|
4366
|
-
D(A(
|
|
4366
|
+
D(A(Pt), { decorative: "" }),
|
|
4367
4367
|
q(" " + E(A(n)("emptyState.learnMore")), 1)
|
|
4368
4368
|
]),
|
|
4369
4369
|
_: 1
|
|
4370
4370
|
})) : j("", !0)
|
|
4371
4371
|
], !0)
|
|
4372
4372
|
])) : j("", !0),
|
|
4373
|
-
e.features.length ? (p(), w("div",
|
|
4374
|
-
(p(!0), w(
|
|
4373
|
+
e.features.length ? (p(), w("div", Pl, [
|
|
4374
|
+
(p(!0), w(se, null, le(e.features, (c, d) => (p(), M(s, {
|
|
4375
4375
|
key: c,
|
|
4376
4376
|
class: "entity-empty-state-card"
|
|
4377
4377
|
}, {
|
|
4378
4378
|
title: k(() => [
|
|
4379
|
-
a.$slots[`feature-${d}-icon`] ? (p(), w("div",
|
|
4379
|
+
a.$slots[`feature-${d}-icon`] ? (p(), w("div", ql, [
|
|
4380
4380
|
P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4381
4381
|
])) : j("", !0),
|
|
4382
|
-
N("div",
|
|
4382
|
+
N("div", Hl, E(c.title), 1)
|
|
4383
4383
|
]),
|
|
4384
4384
|
default: k(() => [
|
|
4385
4385
|
N("div", {
|
|
4386
4386
|
title: c.description
|
|
4387
|
-
}, E(c.description), 9,
|
|
4387
|
+
}, E(c.description), 9, Yl)
|
|
4388
4388
|
]),
|
|
4389
4389
|
_: 2
|
|
4390
4390
|
}, 1024))), 128))
|
|
4391
4391
|
])) : j("", !0),
|
|
4392
|
-
a.$slots.bottom ? (p(), w("div",
|
|
4392
|
+
a.$slots.bottom ? (p(), w("div", Vl, [
|
|
4393
4393
|
P(a.$slots, "bottom", {}, void 0, !0)
|
|
4394
4394
|
])) : j("", !0)
|
|
4395
4395
|
]);
|
|
4396
4396
|
};
|
|
4397
4397
|
}
|
|
4398
|
-
}),
|
|
4398
|
+
}), us = /* @__PURE__ */ oe(Wl, [["__scopeId", "data-v-775534d4"]]), Jl = { key: 1 }, ds = /* @__PURE__ */ J({
|
|
4399
4399
|
__name: "TableTags",
|
|
4400
4400
|
props: {
|
|
4401
4401
|
/** The tags to display in the table */
|
|
@@ -4423,12 +4423,12 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4423
4423
|
});
|
|
4424
4424
|
return (r, i) => {
|
|
4425
4425
|
var o;
|
|
4426
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (p(), M(A(
|
|
4426
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (p(), M(A(Zn), { key: 0 }, {
|
|
4427
4427
|
default: k(() => [
|
|
4428
|
-
(p(!0), w(
|
|
4428
|
+
(p(!0), w(se, null, le(n.value, (a) => (p(), M(A(Xn), {
|
|
4429
4429
|
key: a,
|
|
4430
4430
|
"max-width": e.tagMaxWidth,
|
|
4431
|
-
onClick: i[0] || (i[0] =
|
|
4431
|
+
onClick: i[0] || (i[0] = Oe(() => {
|
|
4432
4432
|
}, ["stop"]))
|
|
4433
4433
|
}, {
|
|
4434
4434
|
default: k(() => [
|
|
@@ -4438,49 +4438,50 @@ const kl = ["aria-labelledby"], Al = { class: "form-section-wrapper" }, _l = {
|
|
|
4438
4438
|
}, 1032, ["max-width"]))), 128))
|
|
4439
4439
|
]),
|
|
4440
4440
|
_: 1
|
|
4441
|
-
})) : (p(), w("span",
|
|
4441
|
+
})) : (p(), w("span", Jl, "-"));
|
|
4442
4442
|
};
|
|
4443
4443
|
}
|
|
4444
|
-
}), { useAxios:
|
|
4444
|
+
}), { useAxios: fs, useDeleteUrlBuilder: ps, useErrors: ms, useExternalLinkCreator: hs, useFetchUrlBuilder: gs, useFetcher: ys, useFetcherCacheKey: vs, useDebouncedFilter: bs, useStringHelpers: xs, useHelpers: Cs, useGatewayFeatureSupported: ks, useTruncationDetector: As, useValidators: _s, useSchemaProvider: ws, useTableState: Ss } = Y;
|
|
4445
4445
|
export {
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4446
|
+
Q as AppType,
|
|
4447
|
+
pt as Appearances,
|
|
4448
|
+
Mo as ConfigCardDisplay,
|
|
4449
|
+
zt as ConfigCardItem,
|
|
4450
|
+
ae as ConfigurationSchemaSection,
|
|
4450
4451
|
H as ConfigurationSchemaType,
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
|
|
4484
|
-
|
|
4485
|
-
|
|
4452
|
+
ts as EntityBaseConfigCard,
|
|
4453
|
+
ns as EntityBaseForm,
|
|
4454
|
+
ar as EntityBaseFormType,
|
|
4455
|
+
rs as EntityBaseTable,
|
|
4456
|
+
is as EntityDeleteModal,
|
|
4457
|
+
us as EntityEmptyState,
|
|
4458
|
+
as as EntityFilter,
|
|
4459
|
+
ss as EntityFormSection,
|
|
4460
|
+
cs as EntityLink,
|
|
4461
|
+
os as EntityToggleModal,
|
|
4462
|
+
ir as EntityTypes,
|
|
4463
|
+
fe as FetcherStatus,
|
|
4464
|
+
Pr as InternalLinkItem,
|
|
4465
|
+
Qt as JsonCodeBlock,
|
|
4466
|
+
ls as PermissionsWrapper,
|
|
4467
|
+
nt as SupportedEntityType,
|
|
4468
|
+
De as SupportedEntityTypesArray,
|
|
4469
|
+
ds as TableTags,
|
|
4470
|
+
Un as TerraformCodeBlock,
|
|
4471
|
+
jn as YamlCodeBlock,
|
|
4472
|
+
fs as useAxios,
|
|
4473
|
+
bs as useDebouncedFilter,
|
|
4474
|
+
ps as useDeleteUrlBuilder,
|
|
4475
|
+
ms as useErrors,
|
|
4476
|
+
hs as useExternalLinkCreator,
|
|
4477
|
+
gs as useFetchUrlBuilder,
|
|
4478
|
+
ys as useFetcher,
|
|
4479
|
+
vs as useFetcherCacheKey,
|
|
4480
|
+
ks as useGatewayFeatureSupported,
|
|
4481
|
+
Cs as useHelpers,
|
|
4482
|
+
ws as useSchemaProvider,
|
|
4483
|
+
xs as useStringHelpers,
|
|
4484
|
+
Ss as useTableState,
|
|
4485
|
+
As as useTruncationDetector,
|
|
4486
|
+
_s as useValidators
|
|
4486
4487
|
};
|