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