@kong-ui-public/entities-shared 3.33.2-pr.2665.c4241e722.0 → 3.33.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-shared.es.js +1137 -1240
- package/dist/entities-shared.umd.js +39 -41
- package/dist/style.css +1 -1
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts +1 -1
- package/dist/types/components/entity-base-config-card/ConfigCardDisplay.vue.d.ts.map +1 -1
- package/dist/types/components/entity-base-form/EntityBaseForm.vue.d.ts.map +1 -1
- package/dist/types/index.d.ts +1 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/types/app-config.d.ts +0 -4
- package/dist/types/types/app-config.d.ts.map +1 -1
- package/dist/types/types/entity-base-config-card.d.ts +0 -2
- package/dist/types/types/entity-base-config-card.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/types/components/common/DeckCodeBlock.vue.d.ts +0 -12
- package/dist/types/components/common/DeckCodeBlock.vue.d.ts.map +0 -1
|
@@ -1,36 +1,21 @@
|
|
|
1
|
-
import { inject as
|
|
1
|
+
import { inject as Dt, ref as K, computed as F, unref as $, toValue as he, watch as be, toRef as Yn, provide as Pt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as S, createCommentVNode as N, createElementVNode as R, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as M, createTextVNode as q, useCssVars as Ut, useId as Wn, useSlots as De, renderSlot as D, createSlots as Se, normalizeProps as Jn, guardReactiveProps as Gn, mergeProps as qt, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ht, onUnmounted as zn, withDirectives as xe, vShow as Ce, withKeys as Qn, warn as Zn } from "vue";
|
|
2
2
|
import pt from "axios";
|
|
3
|
-
import { createI18n as
|
|
4
|
-
import { BadgeMethodAppearances as
|
|
5
|
-
import { BookIcon as Vt, AddIcon as Yt, CloseIcon as
|
|
6
|
-
import { useRouter as
|
|
7
|
-
var
|
|
8
|
-
const
|
|
9
|
-
"ca_certificate",
|
|
10
|
-
"certificate",
|
|
11
|
-
"consumer",
|
|
12
|
-
"consumer_group",
|
|
13
|
-
"service",
|
|
14
|
-
"key",
|
|
15
|
-
"set",
|
|
16
|
-
"plugin",
|
|
17
|
-
"route",
|
|
18
|
-
"upstream",
|
|
19
|
-
"target",
|
|
20
|
-
"vault",
|
|
21
|
-
"partial"
|
|
22
|
-
/* Partial */
|
|
23
|
-
], pi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
|
|
3
|
+
import { createI18n as Xn, i18nTComponent as ei } from "@kong-ui-public/i18n";
|
|
4
|
+
import { BadgeMethodAppearances as ti, KButton as mt, KTruncate as ni, KBadge as ii } from "@kong/kongponents";
|
|
5
|
+
import { BookIcon as Vt, AddIcon as Yt, CloseIcon as ri, ChevronDownIcon as ai, CopyIcon as oi } from "@kong/icons";
|
|
6
|
+
import { useRouter as li } from "vue-router";
|
|
7
|
+
var si = /* @__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))(si || {}), ci = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ci || {}), me = /* @__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))(me || {}), 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.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.ProducePolicy = "produce_policy", e.ConsumePolicy = "consume_policy", e.ClusterPolicy = "cluster_policy", e.ListenerPolicy = "listener_policy", e.SchemaRegistry = "schema_registry", e.StaticKey = "static_key", e.Other = "other", e))(it || {});
|
|
8
|
+
const Pe = Object.values(it), ui = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"];
|
|
24
9
|
var V = /* @__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))(V || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
|
|
25
|
-
const
|
|
10
|
+
const ht = [
|
|
26
11
|
"primary",
|
|
27
12
|
"secondary"
|
|
28
13
|
];
|
|
29
|
-
function
|
|
14
|
+
function di() {
|
|
30
15
|
return {
|
|
31
16
|
getAxiosInstance: (e = {}) => {
|
|
32
17
|
try {
|
|
33
|
-
const t =
|
|
18
|
+
const t = Dt("get-axios-instance", void 0);
|
|
34
19
|
return typeof t == "function" ? t(e) : pt.create({
|
|
35
20
|
withCredentials: !0,
|
|
36
21
|
timeout: 3e4,
|
|
@@ -50,7 +35,7 @@ function mi() {
|
|
|
50
35
|
}
|
|
51
36
|
};
|
|
52
37
|
}
|
|
53
|
-
function
|
|
38
|
+
function fi() {
|
|
54
39
|
return {
|
|
55
40
|
debounce: (e, t) => {
|
|
56
41
|
let n;
|
|
@@ -62,13 +47,13 @@ function yi() {
|
|
|
62
47
|
}
|
|
63
48
|
};
|
|
64
49
|
}
|
|
65
|
-
const
|
|
50
|
+
const He = "khcp-user-table-preferences", pi = {
|
|
66
51
|
pageSize: 30,
|
|
67
52
|
sortColumnKey: void 0,
|
|
68
53
|
sortColumnOrder: void 0,
|
|
69
54
|
columnVisibility: {}
|
|
70
55
|
};
|
|
71
|
-
function
|
|
56
|
+
function mi() {
|
|
72
57
|
const e = (n) => {
|
|
73
58
|
if (typeof n == "string")
|
|
74
59
|
try {
|
|
@@ -78,44 +63,44 @@ function hi() {
|
|
|
78
63
|
return;
|
|
79
64
|
}
|
|
80
65
|
}, t = () => {
|
|
81
|
-
const n = e(localStorage.getItem(
|
|
66
|
+
const n = e(localStorage.getItem(He));
|
|
82
67
|
return !n || !Object.keys(n).length ? /* @__PURE__ */ new Map() : new Map(Object.entries(n));
|
|
83
68
|
};
|
|
84
69
|
return {
|
|
85
70
|
setTablePreferences: (n, i) => {
|
|
86
71
|
try {
|
|
87
72
|
const r = t();
|
|
88
|
-
r.set(n, i), localStorage.setItem(
|
|
73
|
+
r.set(n, i), localStorage.setItem(He, JSON.stringify(Object.fromEntries(r.entries())));
|
|
89
74
|
} catch (r) {
|
|
90
75
|
console.error("useTablePreferences(setTablePreferences)", r);
|
|
91
76
|
}
|
|
92
77
|
},
|
|
93
78
|
getTablePreferences: (n, i) => {
|
|
94
79
|
const r = t();
|
|
95
|
-
return (r == null ? void 0 : r.get(n)) || void 0 || i ||
|
|
80
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || i || pi;
|
|
96
81
|
},
|
|
97
82
|
deleteAllTablePreferences: () => {
|
|
98
|
-
localStorage.removeItem(
|
|
83
|
+
localStorage.removeItem(He);
|
|
99
84
|
}
|
|
100
85
|
};
|
|
101
86
|
}
|
|
102
87
|
function rt(e = {}) {
|
|
103
|
-
const { getAxiosInstance: t } =
|
|
88
|
+
const { getAxiosInstance: t } = di();
|
|
104
89
|
return {
|
|
105
90
|
axiosInstance: t(e)
|
|
106
91
|
};
|
|
107
92
|
}
|
|
108
|
-
const
|
|
93
|
+
const hi = {
|
|
109
94
|
actions: {
|
|
110
95
|
copyId: "Copy ID",
|
|
111
96
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
112
97
|
copyToClipboard: "Copied successfully!",
|
|
113
98
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
114
99
|
}
|
|
115
|
-
},
|
|
100
|
+
}, gi = {
|
|
116
101
|
message: "Are you sure you want to delete this {entityType}?",
|
|
117
102
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
118
|
-
},
|
|
103
|
+
}, yi = {
|
|
119
104
|
actions: {
|
|
120
105
|
viewConfiguration: "View Configuration",
|
|
121
106
|
save: "Save",
|
|
@@ -127,19 +112,18 @@ const vi = {
|
|
|
127
112
|
message: "Export configurations for core Kong Gateway objects, like services, routes, and plugins, to either YAML or JSON. This allows for straightforward importing into APIOps tools like decK with YAML, or Insomnia and cURL with JSON.",
|
|
128
113
|
yaml: "YAML",
|
|
129
114
|
json: "JSON",
|
|
130
|
-
terraform: "Terraform"
|
|
131
|
-
deck: "decK"
|
|
115
|
+
terraform: "Terraform"
|
|
132
116
|
},
|
|
133
117
|
errors: {
|
|
134
118
|
edit: "The entity could not be edited at this time."
|
|
135
119
|
}
|
|
136
|
-
},
|
|
120
|
+
}, vi = {
|
|
137
121
|
emptyState: {
|
|
138
122
|
noSearchResultsTitle: "No results found",
|
|
139
123
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
140
124
|
noSearchResultsCtaText: "Clear"
|
|
141
125
|
}
|
|
142
|
-
},
|
|
126
|
+
}, bi = {
|
|
143
127
|
title: "Configuration",
|
|
144
128
|
actions: {
|
|
145
129
|
copy: "Copy JSON"
|
|
@@ -176,10 +160,10 @@ const vi = {
|
|
|
176
160
|
entryTitle: "Entry {index}",
|
|
177
161
|
structuredFormat: "Structured"
|
|
178
162
|
}
|
|
179
|
-
},
|
|
163
|
+
}, xi = {
|
|
180
164
|
learnMore: "Learn more",
|
|
181
165
|
pricingTitle: "Pricing: "
|
|
182
|
-
},
|
|
166
|
+
}, Ci = {
|
|
183
167
|
filterButtonText: "Filter",
|
|
184
168
|
fieldLabel: "Filter by:",
|
|
185
169
|
inputPlaceholder: "Enter a value",
|
|
@@ -187,17 +171,17 @@ const vi = {
|
|
|
187
171
|
applyButtonText: "Apply",
|
|
188
172
|
clearButtonText: "Clear",
|
|
189
173
|
clearAllButtonText: "Clear all filters"
|
|
190
|
-
},
|
|
174
|
+
}, ki = {
|
|
191
175
|
errors: {
|
|
192
176
|
fetch: "Could not fetch available items",
|
|
193
177
|
invalid: "Please select a valid value"
|
|
194
178
|
}
|
|
195
|
-
},
|
|
179
|
+
}, Ai = {
|
|
196
180
|
unexpected: "An unexpected error has occurred",
|
|
197
181
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
198
|
-
},
|
|
182
|
+
}, _i = {
|
|
199
183
|
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
200
|
-
},
|
|
184
|
+
}, wi = {
|
|
201
185
|
enable: {
|
|
202
186
|
title: "Enable {entityType}",
|
|
203
187
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -208,24 +192,24 @@ const vi = {
|
|
|
208
192
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
209
193
|
confirmText: "Yes, disable"
|
|
210
194
|
}
|
|
211
|
-
},
|
|
212
|
-
global:
|
|
213
|
-
deleteModal:
|
|
214
|
-
baseForm:
|
|
215
|
-
baseTable:
|
|
216
|
-
baseConfigCard:
|
|
217
|
-
emptyState:
|
|
218
|
-
filter:
|
|
219
|
-
debouncedFilter:
|
|
220
|
-
errors:
|
|
221
|
-
validationErrors:
|
|
222
|
-
toggleModal:
|
|
195
|
+
}, Si = {
|
|
196
|
+
global: hi,
|
|
197
|
+
deleteModal: gi,
|
|
198
|
+
baseForm: yi,
|
|
199
|
+
baseTable: vi,
|
|
200
|
+
baseConfigCard: bi,
|
|
201
|
+
emptyState: xi,
|
|
202
|
+
filter: Ci,
|
|
203
|
+
debouncedFilter: ki,
|
|
204
|
+
errors: Ai,
|
|
205
|
+
validationErrors: _i,
|
|
206
|
+
toggleModal: wi
|
|
223
207
|
};
|
|
224
|
-
function
|
|
225
|
-
const e =
|
|
208
|
+
function Ue() {
|
|
209
|
+
const e = Xn("en-us", Si);
|
|
226
210
|
return {
|
|
227
211
|
i18n: e,
|
|
228
|
-
i18nT:
|
|
212
|
+
i18nT: ei(e)
|
|
229
213
|
// Translation component <i18n-t>
|
|
230
214
|
};
|
|
231
215
|
}
|
|
@@ -271,69 +255,69 @@ function Wt() {
|
|
|
271
255
|
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
|
|
272
256
|
};
|
|
273
257
|
}
|
|
274
|
-
function
|
|
258
|
+
function $i(e, t, n, i = {
|
|
275
259
|
fetchedItemsKey: "data",
|
|
276
260
|
searchKeys: ["id"]
|
|
277
261
|
}) {
|
|
278
262
|
n || (n = "1000");
|
|
279
|
-
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } =
|
|
280
|
-
await C(
|
|
281
|
-
}, 200), l =
|
|
282
|
-
const
|
|
283
|
-
return e.app === "konnect" ?
|
|
284
|
-
}), { isValidUuid: x } = Wt(),
|
|
263
|
+
const { axiosInstance: r } = rt(e.axiosRequestConfig), { i18n: { t: o } } = Ue(), { debounce: a } = fi(), s = a(async (T) => {
|
|
264
|
+
await C(T);
|
|
265
|
+
}, 200), l = K(!1), c = K(""), d = K(""), u = K([]), p = K([]), g = K(void 0), h = F(() => {
|
|
266
|
+
const T = `${e.apiBaseUrl}${$(t)}`;
|
|
267
|
+
return e.app === "konnect" ? T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : T;
|
|
268
|
+
}), { isValidUuid: x } = Wt(), y = async () => {
|
|
285
269
|
try {
|
|
286
270
|
l.value = !0;
|
|
287
|
-
const { data:
|
|
288
|
-
|
|
271
|
+
const { data: T } = await r.get(`${h.value}?size=${n}`);
|
|
272
|
+
T != null && T.next || (g.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : []), p.value = i.fetchedItemsKey in T ? T[i.fetchedItemsKey] : [], u.value = p.value;
|
|
289
273
|
} catch {
|
|
290
274
|
u.value = [], c.value = o("debouncedFilter.errors.fetch");
|
|
291
275
|
} finally {
|
|
292
276
|
l.value = !1;
|
|
293
277
|
}
|
|
294
|
-
},
|
|
295
|
-
var
|
|
296
|
-
if (
|
|
297
|
-
if (
|
|
278
|
+
}, k = K(""), C = async (T) => {
|
|
279
|
+
var W, X, _;
|
|
280
|
+
if (k.value !== T) {
|
|
281
|
+
if (k.value = T ?? "", !T) {
|
|
298
282
|
u.value = p.value;
|
|
299
283
|
return;
|
|
300
284
|
}
|
|
301
285
|
if (g.value === void 0)
|
|
302
286
|
try {
|
|
303
287
|
if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
304
|
-
const
|
|
288
|
+
const A = `${h.value}/${T}`, { data: O } = await r.get(`${A}?size=${n}`);
|
|
305
289
|
i.fetchedItemsKey in O ? u.value = O[i.fetchedItemsKey] : O != null && O[i.exactMatchKey ?? "id"] ? u.value = [O] : u.value = [];
|
|
306
290
|
} else {
|
|
307
|
-
const
|
|
308
|
-
x(
|
|
309
|
-
const { data: v } = await r.get(`${
|
|
291
|
+
const A = [];
|
|
292
|
+
x(T) && i.searchKeys.includes("id") ? A.push((async () => {
|
|
293
|
+
const { data: v } = await r.get(`${h.value}/${T}`);
|
|
310
294
|
return [v[i.fetchedItemsKey] ?? v];
|
|
311
|
-
})()) :
|
|
295
|
+
})()) : A.push(
|
|
312
296
|
...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
|
|
313
|
-
const { data: b } = await r.get(`${
|
|
297
|
+
const { data: b } = await r.get(`${h.value}?${v}=${T}`);
|
|
314
298
|
return b[i.fetchedItemsKey];
|
|
315
299
|
})
|
|
316
300
|
);
|
|
317
|
-
const O = await Promise.all(
|
|
318
|
-
u.value = [], (
|
|
301
|
+
const O = await Promise.all(A), f = /* @__PURE__ */ new Set();
|
|
302
|
+
u.value = [], (W = O == null ? void 0 : O.forEach) == null || W.call(O, (v) => {
|
|
319
303
|
var b;
|
|
320
304
|
(b = v == null ? void 0 : v.forEach) == null || b.call(v, (H) => {
|
|
321
305
|
f.has(H.id) || (f.add(H.id), u.value.push(H));
|
|
322
306
|
});
|
|
323
307
|
});
|
|
324
308
|
}
|
|
325
|
-
} catch (
|
|
326
|
-
((X =
|
|
309
|
+
} catch (A) {
|
|
310
|
+
((X = A == null ? void 0 : A.response) == null ? void 0 : X.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
|
|
327
311
|
} finally {
|
|
328
312
|
l.value = !1;
|
|
329
313
|
}
|
|
330
314
|
else
|
|
331
|
-
l.value = !0, d.value = "", u.value = (
|
|
315
|
+
l.value = !0, d.value = "", u.value = (_ = g.value) == null ? void 0 : _.filter((A) => {
|
|
332
316
|
var f;
|
|
333
317
|
let O = !1;
|
|
334
318
|
for (const v of i.searchKeys) {
|
|
335
|
-
const b = typeof
|
|
336
|
-
b != null && b.includes(
|
|
319
|
+
const b = typeof A[v] == "string" ? (f = A[v]) == null ? void 0 : f.toLowerCase() : A[v];
|
|
320
|
+
b != null && b.includes(T.toLowerCase()) && (O = !0);
|
|
337
321
|
}
|
|
338
322
|
return O;
|
|
339
323
|
}), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), l.value = !1;
|
|
@@ -345,18 +329,18 @@ function Ii(e, t, n, i = {
|
|
|
345
329
|
validationError: d,
|
|
346
330
|
results: u,
|
|
347
331
|
allRecords: g,
|
|
348
|
-
loadItems:
|
|
332
|
+
loadItems: y,
|
|
349
333
|
debouncedQueryChange: s
|
|
350
334
|
};
|
|
351
335
|
}
|
|
352
|
-
function
|
|
353
|
-
const n =
|
|
336
|
+
function Ti(e, t) {
|
|
337
|
+
const n = $(t), i = F(
|
|
354
338
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
355
339
|
);
|
|
356
340
|
return i.value.search = "", (r) => `${i.value.href}/${r}`;
|
|
357
341
|
}
|
|
358
|
-
function
|
|
359
|
-
const { i18n: { t: e } } =
|
|
342
|
+
function Ii() {
|
|
343
|
+
const { i18n: { t: e } } = Ue();
|
|
360
344
|
return {
|
|
361
345
|
getErrorFieldsFromError: (i) => {
|
|
362
346
|
var a, s, l;
|
|
@@ -427,7 +411,7 @@ function Oi() {
|
|
|
427
411
|
}
|
|
428
412
|
};
|
|
429
413
|
}
|
|
430
|
-
function
|
|
414
|
+
function Ei(e) {
|
|
431
415
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
432
416
|
try {
|
|
433
417
|
const i = e.join("/"), r = `${n}${i}`, o = e.some((s) => s.trim() === "");
|
|
@@ -439,71 +423,71 @@ function Li(e) {
|
|
|
439
423
|
}
|
|
440
424
|
}
|
|
441
425
|
function Jt(e, t) {
|
|
442
|
-
const n =
|
|
443
|
-
const r =
|
|
426
|
+
const n = F(() => {
|
|
427
|
+
const r = he(e);
|
|
444
428
|
return r.app === "konnect" || !!r.isExactMatch;
|
|
445
|
-
}), i =
|
|
446
|
-
const r =
|
|
429
|
+
}), i = F(() => {
|
|
430
|
+
const r = he(t);
|
|
447
431
|
return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
|
|
448
432
|
});
|
|
449
433
|
return (r) => {
|
|
450
434
|
const { page: o, pageSize: a, offset: s, sortColumnKey: l, sortColumnOrder: c, query: d } = r;
|
|
451
435
|
try {
|
|
452
436
|
let u = new URL(i.value.href);
|
|
453
|
-
return n.value && d ? (u.search = "", u =
|
|
437
|
+
return n.value && d ? (u.search = "", u = he(e).isExactMatch ? new URL(`${u.href}/${d}`) : new URL(`${u.href}?filter[name][contains]=${d}`)) : (n.value || new URLSearchParams(d).forEach((p, g) => {
|
|
454
438
|
u.searchParams.append(g, p);
|
|
455
439
|
}), l && u.searchParams.append("sort_by", l), c === "desc" && u.searchParams.append("sort_desc", "1"), u.searchParams.append("size", String(a))), s && o !== 1 && u.searchParams.append("offset", String(s)), u.href;
|
|
456
440
|
} catch (u) {
|
|
457
|
-
return console.error("RouteList(fetcher)", u),
|
|
441
|
+
return console.error("RouteList(fetcher)", u), he(t);
|
|
458
442
|
}
|
|
459
443
|
};
|
|
460
444
|
}
|
|
461
445
|
const gt = /* @__PURE__ */ new Map();
|
|
462
|
-
function
|
|
463
|
-
const i =
|
|
446
|
+
function Fi(e, t, n) {
|
|
447
|
+
const i = K(!0), r = he(e), { axiosInstance: o } = rt(r.axiosRequestConfig), a = Jt(e, t), s = K({
|
|
464
448
|
status: me.Idle
|
|
465
449
|
}), l = async (u) => {
|
|
466
450
|
var g;
|
|
467
|
-
const p =
|
|
451
|
+
const p = he(n) || "data";
|
|
468
452
|
try {
|
|
469
453
|
s.value = i.value ? { status: me.InitialLoad } : { status: me.Loading }, i.value = !1;
|
|
470
|
-
let
|
|
471
|
-
|
|
472
|
-
const x = await o.get(
|
|
454
|
+
let h = a(u);
|
|
455
|
+
h.includes("filter[name]") && (h = `${h}&page[size]=${u.pageSize}&page[number]=${u.page}`);
|
|
456
|
+
const x = await o.get(h);
|
|
473
457
|
if (x.status >= 400)
|
|
474
458
|
throw x;
|
|
475
|
-
const
|
|
459
|
+
const y = x.data, k = p && p.replace(/[^\w-_]/gi, "");
|
|
476
460
|
let C;
|
|
477
|
-
|
|
478
|
-
const
|
|
461
|
+
y[k] ? C = Array.isArray(y[k]) ? y[k] : [y[k]] : Array.isArray(y) ? C = y : C = Object.keys(y).length ? [y] : [];
|
|
462
|
+
const T = {
|
|
479
463
|
data: C,
|
|
480
464
|
total: C.length,
|
|
481
|
-
...
|
|
465
|
+
...y.offset ? {
|
|
482
466
|
pagination: {
|
|
483
|
-
offset:
|
|
467
|
+
offset: y.offset
|
|
484
468
|
}
|
|
485
469
|
} : null
|
|
486
470
|
};
|
|
487
|
-
return
|
|
471
|
+
return T.data.length === 0 && !u.query ? s.value = {
|
|
488
472
|
status: me.NoRecords,
|
|
489
|
-
response:
|
|
473
|
+
response: T
|
|
490
474
|
} : s.value = {
|
|
491
475
|
status: me.Idle,
|
|
492
|
-
response:
|
|
493
|
-
},
|
|
494
|
-
} catch (
|
|
476
|
+
response: T
|
|
477
|
+
}, T;
|
|
478
|
+
} catch (h) {
|
|
495
479
|
const x = {
|
|
496
480
|
data: [],
|
|
497
481
|
total: 0
|
|
498
482
|
};
|
|
499
|
-
return u.query && (((g =
|
|
483
|
+
return u.query && (((g = h.response) == null ? void 0 : g.status) === 404 || h.status === 404) ? (s.value = {
|
|
500
484
|
status: me.NoResults,
|
|
501
485
|
response: x,
|
|
502
|
-
error:
|
|
486
|
+
error: h.response ? h : { response: h }
|
|
503
487
|
}, x) : (s.value = {
|
|
504
488
|
status: me.Error,
|
|
505
489
|
response: x,
|
|
506
|
-
error:
|
|
490
|
+
error: h.response ? h : { response: h }
|
|
507
491
|
}, x);
|
|
508
492
|
}
|
|
509
493
|
}, c = r.cacheIdentifier, d = Gt(c);
|
|
@@ -512,18 +496,18 @@ function Bi(e, t, n) {
|
|
|
512
496
|
function Gt(e) {
|
|
513
497
|
if (e) {
|
|
514
498
|
let t = gt.get(e);
|
|
515
|
-
return t || (t =
|
|
499
|
+
return t || (t = K(1), gt.set(e, t)), t;
|
|
516
500
|
}
|
|
517
|
-
return
|
|
501
|
+
return K(1);
|
|
518
502
|
}
|
|
519
|
-
function
|
|
503
|
+
function Oi() {
|
|
520
504
|
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;
|
|
521
505
|
return {
|
|
522
506
|
capitalize: (i) => i ? i.replace(t, (r) => r.toUpperCase()) : "",
|
|
523
507
|
convertKeyToTitle: e
|
|
524
508
|
};
|
|
525
509
|
}
|
|
526
|
-
const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,
|
|
510
|
+
const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, yt = (e) => {
|
|
527
511
|
if (typeof e != "string")
|
|
528
512
|
throw new TypeError("Invalid argument expected string");
|
|
529
513
|
const t = e.match(zt);
|
|
@@ -533,24 +517,24 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
533
517
|
}, vt = (e) => e === "*" || e === "x" || e === "X", bt = (e) => {
|
|
534
518
|
const t = parseInt(e, 10);
|
|
535
519
|
return isNaN(t) ? e : t;
|
|
536
|
-
},
|
|
520
|
+
}, Li = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Bi = (e, t) => {
|
|
537
521
|
if (vt(e) || vt(t))
|
|
538
522
|
return 0;
|
|
539
|
-
const [n, i] =
|
|
523
|
+
const [n, i] = Li(bt(e), bt(t));
|
|
540
524
|
return n > i ? 1 : n < i ? -1 : 0;
|
|
541
525
|
}, xt = (e, t) => {
|
|
542
526
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
543
|
-
const i =
|
|
527
|
+
const i = Bi(e[n] || "0", t[n] || "0");
|
|
544
528
|
if (i !== 0)
|
|
545
529
|
return i;
|
|
546
530
|
}
|
|
547
531
|
return 0;
|
|
548
|
-
},
|
|
549
|
-
const n =
|
|
532
|
+
}, Ri = (e, t) => {
|
|
533
|
+
const n = yt(e), i = yt(t), r = n.pop(), o = i.pop(), a = xt(n, i);
|
|
550
534
|
return a !== 0 ? a : r && o ? xt(r.split("."), o.split(".")) : r || o ? r ? -1 : 1 : 0;
|
|
551
535
|
}, Ct = (e, t, n) => {
|
|
552
|
-
|
|
553
|
-
const i =
|
|
536
|
+
Ki(n);
|
|
537
|
+
const i = Ri(e, t);
|
|
554
538
|
return Qt[n].includes(i);
|
|
555
539
|
}, Qt = {
|
|
556
540
|
">": [1],
|
|
@@ -559,18 +543,18 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
559
543
|
"<=": [-1, 0],
|
|
560
544
|
"<": [-1],
|
|
561
545
|
"!=": [-1, 1]
|
|
562
|
-
}, kt = Object.keys(Qt),
|
|
546
|
+
}, kt = Object.keys(Qt), Ki = (e) => {
|
|
563
547
|
if (typeof e != "string")
|
|
564
548
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
565
549
|
if (kt.indexOf(e) === -1)
|
|
566
550
|
throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
|
|
567
|
-
},
|
|
568
|
-
function
|
|
551
|
+
}, Ni = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
|
|
552
|
+
function Mi(e) {
|
|
569
553
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
570
554
|
if (!t)
|
|
571
555
|
return !0;
|
|
572
556
|
const { edition: i, version: r } = t;
|
|
573
|
-
if (!
|
|
557
|
+
if (!Ni(r))
|
|
574
558
|
return console.error("Invalid version"), !1;
|
|
575
559
|
const o = n[i];
|
|
576
560
|
if (!o)
|
|
@@ -578,64 +562,64 @@ function Di(e) {
|
|
|
578
562
|
const [a, s] = o;
|
|
579
563
|
return !(a && Ct(r, a, "<") || s && Ct(r, s, ">"));
|
|
580
564
|
}
|
|
581
|
-
function
|
|
582
|
-
const t =
|
|
565
|
+
function ji(e) {
|
|
566
|
+
const t = K(0), n = K(0), i = K(!1);
|
|
583
567
|
return be(e, (o) => {
|
|
584
568
|
o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
|
|
585
569
|
}), {
|
|
586
|
-
isTruncated:
|
|
570
|
+
isTruncated: F(() => t.value < n.value)
|
|
587
571
|
};
|
|
588
572
|
}
|
|
589
|
-
function
|
|
590
|
-
const { i18n: { t: e } } =
|
|
573
|
+
function Di() {
|
|
574
|
+
const { i18n: { t: e } } = Ue();
|
|
591
575
|
return {
|
|
592
576
|
utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
|
|
593
577
|
};
|
|
594
578
|
}
|
|
595
|
-
const
|
|
596
|
-
|
|
597
|
-
},
|
|
579
|
+
const Ge = Symbol("schema"), Pi = (e) => {
|
|
580
|
+
Pt(Ge, e);
|
|
581
|
+
}, Ui = (e) => {
|
|
598
582
|
var r, o;
|
|
599
|
-
const t =
|
|
600
|
-
return
|
|
583
|
+
const t = Dt(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 = Yn(n == null ? void 0 : n[e]);
|
|
584
|
+
return Pt(Ge, i), i;
|
|
601
585
|
};
|
|
602
|
-
function
|
|
586
|
+
function qi(e) {
|
|
603
587
|
let t = "";
|
|
604
|
-
const n =
|
|
588
|
+
const n = K(!1), i = K(null), r = F(() => {
|
|
605
589
|
let a;
|
|
606
|
-
return n.value ? a = !0 : i.value ? a = i.value.hasData || e &&
|
|
590
|
+
return n.value ? a = !0 : i.value ? a = i.value.hasData || e && he(e) : a = !1, !a;
|
|
607
591
|
});
|
|
608
592
|
return {
|
|
609
593
|
tableState: i,
|
|
610
594
|
hasRecords: n,
|
|
611
595
|
hideTableToolbar: r,
|
|
612
596
|
handleStateChange: (a) => {
|
|
613
|
-
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t =
|
|
597
|
+
a.hasData ? n.value = !0 : a.state === "success" && !a.hasData && (!e || !t) && (n.value = !1), e && (t = he(e)), i.value = { ...a };
|
|
614
598
|
}
|
|
615
599
|
};
|
|
616
600
|
}
|
|
617
|
-
const
|
|
601
|
+
const Y = {
|
|
618
602
|
useAxios: rt,
|
|
619
|
-
useDebouncedFilter:
|
|
620
|
-
useDeleteUrlBuilder:
|
|
621
|
-
useErrors:
|
|
622
|
-
useExternalLinkCreator:
|
|
623
|
-
useFetcher:
|
|
603
|
+
useDebouncedFilter: $i,
|
|
604
|
+
useDeleteUrlBuilder: Ti,
|
|
605
|
+
useErrors: Ii,
|
|
606
|
+
useExternalLinkCreator: Ei,
|
|
607
|
+
useFetcher: Fi,
|
|
624
608
|
useFetcherCacheKey: Gt,
|
|
625
609
|
useFetchUrlBuilder: Jt,
|
|
626
610
|
useHelpers: Wt,
|
|
627
|
-
useStringHelpers:
|
|
628
|
-
useI18n:
|
|
629
|
-
useGatewayFeatureSupported:
|
|
630
|
-
useTruncationDetector:
|
|
631
|
-
useValidators:
|
|
632
|
-
useSchemaProvider:
|
|
633
|
-
useSubSchema:
|
|
634
|
-
useTableState:
|
|
635
|
-
},
|
|
611
|
+
useStringHelpers: Oi,
|
|
612
|
+
useI18n: Ue,
|
|
613
|
+
useGatewayFeatureSupported: Mi,
|
|
614
|
+
useTruncationDetector: ji,
|
|
615
|
+
useValidators: Di,
|
|
616
|
+
useSchemaProvider: Pi,
|
|
617
|
+
useSubSchema: Ui,
|
|
618
|
+
useTableState: qi
|
|
619
|
+
}, Hi = {
|
|
636
620
|
key: 0,
|
|
637
621
|
class: "config-card-fieldset-title"
|
|
638
|
-
},
|
|
622
|
+
}, Vi = /* @__PURE__ */ z({
|
|
639
623
|
__name: "JsonCardItem",
|
|
640
624
|
props: {
|
|
641
625
|
item: {
|
|
@@ -652,25 +636,25 @@ const W = {
|
|
|
652
636
|
}
|
|
653
637
|
},
|
|
654
638
|
setup(e) {
|
|
655
|
-
const t = e, { i18n: { t: n } } =
|
|
639
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: i } = Y.useStringHelpers(), r = F(() => t.item.key ?? "json-array-item"), o = F(() => t.item.value ?? t.item), a = F(() => {
|
|
656
640
|
const l = JSON.parse(JSON.stringify(o.value));
|
|
657
641
|
return t.isArrayItem && delete l.name, l;
|
|
658
|
-
}), s =
|
|
642
|
+
}), s = F(() => {
|
|
659
643
|
var l;
|
|
660
644
|
return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
661
645
|
});
|
|
662
|
-
return (l, c) => (m(), j(
|
|
646
|
+
return (l, c) => (m(), j(je(e.isArrayItem ? "fieldset" : "div"), {
|
|
663
647
|
class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
664
648
|
}, {
|
|
665
|
-
default:
|
|
666
|
-
e.isArrayItem ? (m(), S("legend",
|
|
667
|
-
|
|
668
|
-
])) :
|
|
649
|
+
default: w(() => [
|
|
650
|
+
e.isArrayItem ? (m(), S("legend", Hi, [
|
|
651
|
+
R("b", null, L(s.value), 1)
|
|
652
|
+
])) : N("", !0),
|
|
669
653
|
(m(!0), S(ue, null, ce(Object.keys(a.value), (d, u) => (m(), j(Xt, {
|
|
670
654
|
key: `${r.value}-property-${u}`,
|
|
671
655
|
item: {
|
|
672
656
|
key: d,
|
|
673
|
-
label:
|
|
657
|
+
label: $(i)(d),
|
|
674
658
|
value: a.value[d]
|
|
675
659
|
}
|
|
676
660
|
}, null, 8, ["item"]))), 128))
|
|
@@ -683,7 +667,7 @@ const W = {
|
|
|
683
667
|
for (const [i, r] of t)
|
|
684
668
|
n[i] = r;
|
|
685
669
|
return n;
|
|
686
|
-
}, Zt = /* @__PURE__ */ se(
|
|
670
|
+
}, Zt = /* @__PURE__ */ se(Vi, [["__scopeId", "data-v-dc1e39a1"]]), Yi = /* @__PURE__ */ z({
|
|
687
671
|
__name: "InternalLinkItem",
|
|
688
672
|
props: {
|
|
689
673
|
item: {
|
|
@@ -693,24 +677,24 @@ const W = {
|
|
|
693
677
|
},
|
|
694
678
|
emits: ["navigation-click"],
|
|
695
679
|
setup(e) {
|
|
696
|
-
const { i18n: { t } } =
|
|
680
|
+
const { i18n: { t } } = Y.useI18n();
|
|
697
681
|
return (n, i) => {
|
|
698
|
-
const r =
|
|
682
|
+
const r = P("KButton");
|
|
699
683
|
return m(), S("div", null, [
|
|
700
|
-
|
|
684
|
+
M(r, {
|
|
701
685
|
appearance: "tertiary",
|
|
702
686
|
class: "navigation-button",
|
|
703
687
|
onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
|
|
704
688
|
}, {
|
|
705
|
-
default:
|
|
706
|
-
|
|
689
|
+
default: w(() => [
|
|
690
|
+
q(L(e.item.value || $(t)("baseConfigCard.commonFields.link")), 1)
|
|
707
691
|
]),
|
|
708
692
|
_: 1
|
|
709
693
|
})
|
|
710
694
|
]);
|
|
711
695
|
};
|
|
712
696
|
}
|
|
713
|
-
}),
|
|
697
|
+
}), Wi = /* @__PURE__ */ se(Yi, [["__scopeId", "data-v-2feb8c2e"]]), Ji = /* @__PURE__ */ z({
|
|
714
698
|
__name: "StatusBadge",
|
|
715
699
|
props: {
|
|
716
700
|
status: {
|
|
@@ -719,24 +703,24 @@ const W = {
|
|
|
719
703
|
}
|
|
720
704
|
},
|
|
721
705
|
setup(e) {
|
|
722
|
-
const { i18n: { t } } =
|
|
706
|
+
const { i18n: { t } } = Y.useI18n();
|
|
723
707
|
return (n, i) => {
|
|
724
|
-
const r =
|
|
708
|
+
const r = P("KBadge");
|
|
725
709
|
return m(), j(r, {
|
|
726
710
|
appearance: e.status ? "success" : "neutral"
|
|
727
711
|
}, {
|
|
728
|
-
default:
|
|
729
|
-
|
|
712
|
+
default: w(() => [
|
|
713
|
+
q(L(e.status ? $(t)("baseConfigCard.statusBadge.enabledLabel") : $(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
730
714
|
]),
|
|
731
715
|
_: 1
|
|
732
716
|
}, 8, ["appearance"]);
|
|
733
717
|
};
|
|
734
718
|
}
|
|
735
|
-
}),
|
|
719
|
+
}), Gi = "#0044f4", zi = "#e0e4ea", Qi = "#afb7c5", Zi = "#0044f4", Xi = "1px", er = "16px", tr = "20px", nr = { class: "config-card-details-row" }, ir = ["data-testid"], rr = ["data-testid"], ar = ["data-testid"], or = ["data-testid"], lr = { key: 1 }, sr = ["data-testid"], cr = ["data-testid"], ur = ["data-testid"], dr = ["data-testid"], fr = {
|
|
736
720
|
name: "ConfigCardItem",
|
|
737
|
-
components: { JsonCardItem: Zt, StatusBadge:
|
|
738
|
-
},
|
|
739
|
-
...
|
|
721
|
+
components: { JsonCardItem: Zt, StatusBadge: Ji, InternalLinkItem: Wi }
|
|
722
|
+
}, pr = /* @__PURE__ */ z({
|
|
723
|
+
...fr,
|
|
740
724
|
props: {
|
|
741
725
|
item: {
|
|
742
726
|
type: Object,
|
|
@@ -755,17 +739,17 @@ const W = {
|
|
|
755
739
|
},
|
|
756
740
|
emits: ["navigation-click"],
|
|
757
741
|
setup(e, { emit: t }) {
|
|
758
|
-
Ut((
|
|
759
|
-
v70f369b3: p.value ? "none" : `solid ${
|
|
742
|
+
Ut((W) => ({
|
|
743
|
+
v70f369b3: p.value ? "none" : `solid ${$(Xi)} ${$(zi)}`,
|
|
760
744
|
v67c2fae6: u.value && c.value ? "block" : "flex",
|
|
761
745
|
v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
|
|
762
746
|
v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
|
|
763
747
|
}));
|
|
764
|
-
const n = e, i = t, r =
|
|
765
|
-
var
|
|
766
|
-
return n.item.type ? n.item.type : (
|
|
767
|
-
}), x =
|
|
768
|
-
switch (
|
|
748
|
+
const n = e, i = t, r = Wn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = Y.useI18n(), c = F(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = F(() => !!(n.item.tooltip || o["label-tooltip"])), u = F(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = F(() => n.item.type === V.JsonArray), g = Y.useSubSchema(n.item.key), h = F(() => {
|
|
749
|
+
var W;
|
|
750
|
+
return n.item.type ? n.item.type : (W = g == null ? void 0 : g.value) != null && W.encrypted ? V.Redacted : void 0;
|
|
751
|
+
}), x = F(() => {
|
|
752
|
+
switch (h.value) {
|
|
769
753
|
case V.ID:
|
|
770
754
|
return {
|
|
771
755
|
tag: "KCopy",
|
|
@@ -845,8 +829,8 @@ const W = {
|
|
|
845
829
|
attrs: {
|
|
846
830
|
"data-testid": `${n.item.key}-internal-link`,
|
|
847
831
|
item: n.item,
|
|
848
|
-
onNavigationClick: (
|
|
849
|
-
i("navigation-click",
|
|
832
|
+
onNavigationClick: (W) => {
|
|
833
|
+
i("navigation-click", W);
|
|
850
834
|
}
|
|
851
835
|
}
|
|
852
836
|
};
|
|
@@ -895,24 +879,24 @@ const W = {
|
|
|
895
879
|
text: n.item.value
|
|
896
880
|
};
|
|
897
881
|
}
|
|
898
|
-
}),
|
|
899
|
-
return (
|
|
900
|
-
const
|
|
901
|
-
return m(), S("div",
|
|
902
|
-
|
|
882
|
+
}), y = K(), k = K(), { isTruncated: C } = Y.useTruncationDetector(y), { isTruncated: T } = Y.useTruncationDetector(k);
|
|
883
|
+
return (W, X) => {
|
|
884
|
+
const _ = P("KTooltip"), A = P("KLabel"), O = P("KBadge"), f = P("KCopy");
|
|
885
|
+
return m(), S("div", nr, [
|
|
886
|
+
R("div", {
|
|
903
887
|
class: "config-card-details-label",
|
|
904
888
|
"data-testid": `${e.item.key}-label`
|
|
905
889
|
}, [
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
default:
|
|
909
|
-
|
|
910
|
-
text:
|
|
890
|
+
D(W.$slots, "label", { item: e.item }, () => [
|
|
891
|
+
M(A, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
892
|
+
default: w(() => [
|
|
893
|
+
M(_, {
|
|
894
|
+
text: $(C) ? e.item.label : ""
|
|
911
895
|
}, {
|
|
912
|
-
default:
|
|
913
|
-
|
|
896
|
+
default: w(() => [
|
|
897
|
+
R("span", {
|
|
914
898
|
ref_key: "labelContent",
|
|
915
|
-
ref:
|
|
899
|
+
ref: y,
|
|
916
900
|
class: "label-content"
|
|
917
901
|
}, L(e.item.label), 513)
|
|
918
902
|
]),
|
|
@@ -923,30 +907,30 @@ const W = {
|
|
|
923
907
|
}, [
|
|
924
908
|
d.value ? {
|
|
925
909
|
name: "tooltip",
|
|
926
|
-
fn:
|
|
927
|
-
|
|
910
|
+
fn: w(() => [
|
|
911
|
+
R("div", {
|
|
928
912
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
929
913
|
}, [
|
|
930
|
-
|
|
931
|
-
|
|
914
|
+
D(W.$slots, "label-tooltip", {}, () => [
|
|
915
|
+
q(L(e.item.tooltip), 1)
|
|
932
916
|
], !0)
|
|
933
|
-
], 8,
|
|
917
|
+
], 8, rr)
|
|
934
918
|
]),
|
|
935
919
|
key: "0"
|
|
936
920
|
} : void 0
|
|
937
921
|
]), 1024)
|
|
938
922
|
], !0)
|
|
939
|
-
], 8,
|
|
940
|
-
|
|
923
|
+
], 8, ir),
|
|
924
|
+
R("div", {
|
|
941
925
|
class: "config-card-details-value",
|
|
942
926
|
"data-testid": `${e.item.key}-property-value`
|
|
943
927
|
}, [
|
|
944
|
-
|
|
928
|
+
D(W.$slots, e.item.key, {
|
|
945
929
|
rowValue: e.item.value
|
|
946
930
|
}, () => [
|
|
947
|
-
c.value ? (m(), S("div",
|
|
948
|
-
(m(), j(
|
|
949
|
-
default:
|
|
931
|
+
c.value ? (m(), S("div", lr, [
|
|
932
|
+
(m(), j(je(x.value.tag), Jn(Gn(x.value.attrs)), {
|
|
933
|
+
default: w(() => [
|
|
950
934
|
x.value.additionalComponent === "KBadge" ? (m(), S("div", {
|
|
951
935
|
key: 0,
|
|
952
936
|
"data-testid": `${e.item.key}-badge-tags`
|
|
@@ -958,12 +942,12 @@ const W = {
|
|
|
958
942
|
tooltip: v,
|
|
959
943
|
"truncation-tooltip": ""
|
|
960
944
|
}, {
|
|
961
|
-
default:
|
|
962
|
-
|
|
945
|
+
default: w(() => [
|
|
946
|
+
q(L(v), 1)
|
|
963
947
|
]),
|
|
964
948
|
_: 2
|
|
965
949
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
966
|
-
], 8,
|
|
950
|
+
], 8, sr)) : x.value.additionalComponent === "KCopy" ? (m(), S("div", {
|
|
967
951
|
key: 1,
|
|
968
952
|
class: "copy-uuid-array",
|
|
969
953
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
@@ -973,23 +957,23 @@ const W = {
|
|
|
973
957
|
"data-testid": `${e.item.key}-copy-uuid-${b}`,
|
|
974
958
|
text: v
|
|
975
959
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
976
|
-
], 8,
|
|
960
|
+
], 8, cr)) : x.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
|
|
977
961
|
key: 2,
|
|
978
962
|
class: "method-badge-array",
|
|
979
963
|
"data-testid": `${e.item.key}-badge-methods`
|
|
980
964
|
}, [
|
|
981
965
|
(m(!0), S(ue, null, ce(e.item.value, (v, b) => (m(), j(O, {
|
|
982
966
|
key: `${e.item.key}-badge-method-${b}`,
|
|
983
|
-
appearance: Object.values(
|
|
967
|
+
appearance: Object.values($(ti)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
984
968
|
class: "config-badge",
|
|
985
969
|
"data-testid": `${e.item.key}-badge-method-${b}`
|
|
986
970
|
}, {
|
|
987
|
-
default:
|
|
988
|
-
|
|
971
|
+
default: w(() => [
|
|
972
|
+
q(L(v), 1)
|
|
989
973
|
]),
|
|
990
974
|
_: 2
|
|
991
975
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
992
|
-
], 8,
|
|
976
|
+
], 8, ur)) : x.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
|
|
993
977
|
key: 3,
|
|
994
978
|
"data-testid": `${n.item.key}-json-array-content`
|
|
995
979
|
}, [
|
|
@@ -999,14 +983,14 @@ const W = {
|
|
|
999
983
|
"is-array-item": "",
|
|
1000
984
|
item: v
|
|
1001
985
|
}, null, 8, ["index", "item"]))), 128))
|
|
1002
|
-
], 8,
|
|
986
|
+
], 8, dr)) : (m(), j(_, {
|
|
1003
987
|
key: 4,
|
|
1004
|
-
text: T
|
|
988
|
+
text: $(T) ? e.item.value : ""
|
|
1005
989
|
}, {
|
|
1006
|
-
default:
|
|
1007
|
-
|
|
990
|
+
default: w(() => [
|
|
991
|
+
R("span", {
|
|
1008
992
|
ref_key: "textContent",
|
|
1009
|
-
ref:
|
|
993
|
+
ref: k,
|
|
1010
994
|
class: fe(["attrs-data-text", { truncated: e.truncated }])
|
|
1011
995
|
}, L(x.value.text), 3)
|
|
1012
996
|
]),
|
|
@@ -1018,13 +1002,13 @@ const W = {
|
|
|
1018
1002
|
])) : (m(), S("div", {
|
|
1019
1003
|
key: 0,
|
|
1020
1004
|
"data-testid": `${e.item.key}-no-value`
|
|
1021
|
-
}, " – ", 8,
|
|
1005
|
+
}, " – ", 8, or))
|
|
1022
1006
|
], !0)
|
|
1023
|
-
], 8,
|
|
1007
|
+
], 8, ar)
|
|
1024
1008
|
]);
|
|
1025
1009
|
};
|
|
1026
1010
|
}
|
|
1027
|
-
}), Xt = /* @__PURE__ */ se(
|
|
1011
|
+
}), Xt = /* @__PURE__ */ se(pr, [["__scopeId", "data-v-66d61bea"]]), mr = { class: "json-config config-card-code-block" }, hr = {
|
|
1028
1012
|
key: 0,
|
|
1029
1013
|
class: "json-endpoint"
|
|
1030
1014
|
}, en = /* @__PURE__ */ z({
|
|
@@ -1058,7 +1042,7 @@ const W = {
|
|
|
1058
1042
|
Ut((r) => ({
|
|
1059
1043
|
eca0976a: `${i.value}ch`
|
|
1060
1044
|
}));
|
|
1061
|
-
const t = e, n =
|
|
1045
|
+
const t = e, n = F(() => t.entityRecord), i = F(() => {
|
|
1062
1046
|
var a;
|
|
1063
1047
|
if (!t.fetcherUrl)
|
|
1064
1048
|
return 0;
|
|
@@ -1066,25 +1050,25 @@ const W = {
|
|
|
1066
1050
|
return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
|
|
1067
1051
|
});
|
|
1068
1052
|
return (r, o) => {
|
|
1069
|
-
const a =
|
|
1070
|
-
return m(), S("div",
|
|
1071
|
-
t.fetcherUrl ? (m(), S("div",
|
|
1072
|
-
|
|
1053
|
+
const a = P("KBadge"), s = P("KCodeBlock");
|
|
1054
|
+
return m(), S("div", mr, [
|
|
1055
|
+
t.fetcherUrl ? (m(), S("div", hr, [
|
|
1056
|
+
M(a, {
|
|
1073
1057
|
appearance: t.requestMethod
|
|
1074
1058
|
}, {
|
|
1075
|
-
default:
|
|
1076
|
-
|
|
1059
|
+
default: w(() => [
|
|
1060
|
+
q(L(t.requestMethod), 1)
|
|
1077
1061
|
]),
|
|
1078
1062
|
_: 1
|
|
1079
1063
|
}, 8, ["appearance"]),
|
|
1080
|
-
|
|
1064
|
+
M(s, {
|
|
1081
1065
|
id: "json-endpoint-codeblock",
|
|
1082
1066
|
code: t.fetcherUrl,
|
|
1083
1067
|
language: "json",
|
|
1084
1068
|
"single-line": "",
|
|
1085
1069
|
theme: "dark"
|
|
1086
1070
|
}, null, 8, ["code"])
|
|
1087
|
-
])) :
|
|
1071
|
+
])) : N("", !0),
|
|
1088
1072
|
t.entityRecord ? (m(), j(s, {
|
|
1089
1073
|
key: 1,
|
|
1090
1074
|
id: "json-codeblock",
|
|
@@ -1092,7 +1076,7 @@ const W = {
|
|
|
1092
1076
|
code: JSON.stringify(n.value, null, 2),
|
|
1093
1077
|
language: "json",
|
|
1094
1078
|
theme: "dark"
|
|
1095
|
-
}, null, 8, ["class", "code"])) :
|
|
1079
|
+
}, null, 8, ["class", "code"])) : N("", !0)
|
|
1096
1080
|
]);
|
|
1097
1081
|
};
|
|
1098
1082
|
}
|
|
@@ -1101,35 +1085,35 @@ const W = {
|
|
|
1101
1085
|
function tn(e) {
|
|
1102
1086
|
return typeof e > "u" || e === null;
|
|
1103
1087
|
}
|
|
1104
|
-
function
|
|
1088
|
+
function gr(e) {
|
|
1105
1089
|
return typeof e == "object" && e !== null;
|
|
1106
1090
|
}
|
|
1107
|
-
function
|
|
1091
|
+
function yr(e) {
|
|
1108
1092
|
return Array.isArray(e) ? e : tn(e) ? [] : [e];
|
|
1109
1093
|
}
|
|
1110
|
-
function
|
|
1094
|
+
function vr(e, t) {
|
|
1111
1095
|
var n, i, r, o;
|
|
1112
1096
|
if (t)
|
|
1113
1097
|
for (o = Object.keys(t), n = 0, i = o.length; n < i; n += 1)
|
|
1114
1098
|
r = o[n], e[r] = t[r];
|
|
1115
1099
|
return e;
|
|
1116
1100
|
}
|
|
1117
|
-
function
|
|
1101
|
+
function br(e, t) {
|
|
1118
1102
|
var n = "", i;
|
|
1119
1103
|
for (i = 0; i < t; i += 1)
|
|
1120
1104
|
n += e;
|
|
1121
1105
|
return n;
|
|
1122
1106
|
}
|
|
1123
|
-
function
|
|
1107
|
+
function xr(e) {
|
|
1124
1108
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1125
1109
|
}
|
|
1126
|
-
var
|
|
1127
|
-
isNothing:
|
|
1128
|
-
isObject:
|
|
1129
|
-
toArray:
|
|
1130
|
-
repeat:
|
|
1131
|
-
isNegativeZero:
|
|
1132
|
-
extend:
|
|
1110
|
+
var Cr = tn, kr = gr, Ar = yr, _r = br, wr = xr, Sr = vr, ee = {
|
|
1111
|
+
isNothing: Cr,
|
|
1112
|
+
isObject: kr,
|
|
1113
|
+
toArray: Ar,
|
|
1114
|
+
repeat: _r,
|
|
1115
|
+
isNegativeZero: wr,
|
|
1116
|
+
extend: Sr
|
|
1133
1117
|
};
|
|
1134
1118
|
function nn(e, t) {
|
|
1135
1119
|
var n = "", i = e.reason || "(unknown reason)";
|
|
@@ -1146,7 +1130,7 @@ Ie.prototype.toString = function(t) {
|
|
|
1146
1130
|
return this.name + ": " + nn(this, t);
|
|
1147
1131
|
};
|
|
1148
1132
|
var oe = Ie;
|
|
1149
|
-
function
|
|
1133
|
+
function Ve(e, t, n, i, r) {
|
|
1150
1134
|
var o = "", a = "", s = Math.floor(r / 2) - 1;
|
|
1151
1135
|
return i - t > s && (o = " ... ", t = i - s + o.length), n - i > s && (a = " ...", n = i + s - a.length), {
|
|
1152
1136
|
str: o + e.slice(t, n).replace(/\t/g, "→") + a,
|
|
@@ -1154,10 +1138,10 @@ function Ye(e, t, n, i, r) {
|
|
|
1154
1138
|
// relative position
|
|
1155
1139
|
};
|
|
1156
1140
|
}
|
|
1157
|
-
function
|
|
1141
|
+
function Ye(e, t) {
|
|
1158
1142
|
return ee.repeat(" ", t - e.length) + e;
|
|
1159
1143
|
}
|
|
1160
|
-
function
|
|
1144
|
+
function $r(e, t) {
|
|
1161
1145
|
if (t = Object.create(t || null), !e.buffer) return null;
|
|
1162
1146
|
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);
|
|
1163
1147
|
for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
|
|
@@ -1165,28 +1149,28 @@ function Ir(e, t) {
|
|
|
1165
1149
|
a < 0 && (a = i.length - 1);
|
|
1166
1150
|
var s = "", l, c, d = Math.min(e.line + t.linesAfter, r.length).toString().length, u = t.maxLength - (t.indent + d + 3);
|
|
1167
1151
|
for (l = 1; l <= t.linesBefore && !(a - l < 0); l++)
|
|
1168
|
-
c =
|
|
1152
|
+
c = Ve(
|
|
1169
1153
|
e.buffer,
|
|
1170
1154
|
i[a - l],
|
|
1171
1155
|
r[a - l],
|
|
1172
1156
|
e.position - (i[a] - i[a - l]),
|
|
1173
1157
|
u
|
|
1174
|
-
), s = ee.repeat(" ", t.indent) +
|
|
1158
|
+
), s = ee.repeat(" ", t.indent) + Ye((e.line - l + 1).toString(), d) + " | " + c.str + `
|
|
1175
1159
|
` + s;
|
|
1176
|
-
for (c =
|
|
1160
|
+
for (c = Ve(e.buffer, i[a], r[a], e.position, u), s += ee.repeat(" ", t.indent) + Ye((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1177
1161
|
`, s += ee.repeat("-", t.indent + d + 3 + c.pos) + `^
|
|
1178
1162
|
`, l = 1; l <= t.linesAfter && !(a + l >= r.length); l++)
|
|
1179
|
-
c =
|
|
1163
|
+
c = Ve(
|
|
1180
1164
|
e.buffer,
|
|
1181
1165
|
i[a + l],
|
|
1182
1166
|
r[a + l],
|
|
1183
1167
|
e.position - (i[a] - i[a + l]),
|
|
1184
1168
|
u
|
|
1185
|
-
), s += ee.repeat(" ", t.indent) +
|
|
1169
|
+
), s += ee.repeat(" ", t.indent) + Ye((e.line + l + 1).toString(), d) + " | " + c.str + `
|
|
1186
1170
|
`;
|
|
1187
1171
|
return s.replace(/\n$/, "");
|
|
1188
1172
|
}
|
|
1189
|
-
var
|
|
1173
|
+
var Tr = $r, Ir = [
|
|
1190
1174
|
"kind",
|
|
1191
1175
|
"multi",
|
|
1192
1176
|
"resolve",
|
|
@@ -1197,12 +1181,12 @@ var Fr = Ir, Or = [
|
|
|
1197
1181
|
"representName",
|
|
1198
1182
|
"defaultStyle",
|
|
1199
1183
|
"styleAliases"
|
|
1200
|
-
],
|
|
1184
|
+
], Er = [
|
|
1201
1185
|
"scalar",
|
|
1202
1186
|
"sequence",
|
|
1203
1187
|
"mapping"
|
|
1204
1188
|
];
|
|
1205
|
-
function
|
|
1189
|
+
function Fr(e) {
|
|
1206
1190
|
var t = {};
|
|
1207
1191
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1208
1192
|
e[n].forEach(function(i) {
|
|
@@ -1210,18 +1194,18 @@ function Br(e) {
|
|
|
1210
1194
|
});
|
|
1211
1195
|
}), t;
|
|
1212
1196
|
}
|
|
1213
|
-
function
|
|
1197
|
+
function Or(e, t) {
|
|
1214
1198
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1215
|
-
if (
|
|
1199
|
+
if (Ir.indexOf(n) === -1)
|
|
1216
1200
|
throw new oe('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1217
1201
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1218
1202
|
return !0;
|
|
1219
1203
|
}, this.construct = t.construct || function(n) {
|
|
1220
1204
|
return n;
|
|
1221
|
-
}, 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 =
|
|
1205
|
+
}, 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 = Fr(t.styleAliases || null), Er.indexOf(this.kind) === -1)
|
|
1222
1206
|
throw new oe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1223
1207
|
}
|
|
1224
|
-
var ne =
|
|
1208
|
+
var ne = Or;
|
|
1225
1209
|
function At(e, t) {
|
|
1226
1210
|
var n = [];
|
|
1227
1211
|
return e[t].forEach(function(i) {
|
|
@@ -1231,7 +1215,7 @@ function At(e, t) {
|
|
|
1231
1215
|
}), n[r] = i;
|
|
1232
1216
|
}), n;
|
|
1233
1217
|
}
|
|
1234
|
-
function
|
|
1218
|
+
function Lr() {
|
|
1235
1219
|
var e = {
|
|
1236
1220
|
scalar: {},
|
|
1237
1221
|
sequence: {},
|
|
@@ -1251,10 +1235,10 @@ function Kr() {
|
|
|
1251
1235
|
arguments[t].forEach(i);
|
|
1252
1236
|
return e;
|
|
1253
1237
|
}
|
|
1254
|
-
function
|
|
1238
|
+
function ze(e) {
|
|
1255
1239
|
return this.extend(e);
|
|
1256
1240
|
}
|
|
1257
|
-
|
|
1241
|
+
ze.prototype.extend = function(t) {
|
|
1258
1242
|
var n = [], i = [];
|
|
1259
1243
|
if (t instanceof ne)
|
|
1260
1244
|
i.push(t);
|
|
@@ -1275,10 +1259,10 @@ Qe.prototype.extend = function(t) {
|
|
|
1275
1259
|
if (!(o instanceof ne))
|
|
1276
1260
|
throw new oe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1277
1261
|
});
|
|
1278
|
-
var r = Object.create(
|
|
1279
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap =
|
|
1262
|
+
var r = Object.create(ze.prototype);
|
|
1263
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(i), r.compiledImplicit = At(r, "implicit"), r.compiledExplicit = At(r, "explicit"), r.compiledTypeMap = Lr(r.compiledImplicit, r.compiledExplicit), r;
|
|
1280
1264
|
};
|
|
1281
|
-
var rn =
|
|
1265
|
+
var rn = ze, an = new ne("tag:yaml.org,2002:str", {
|
|
1282
1266
|
kind: "scalar",
|
|
1283
1267
|
construct: function(e) {
|
|
1284
1268
|
return e !== null ? e : "";
|
|
@@ -1300,22 +1284,22 @@ var rn = Qe, an = new ne("tag:yaml.org,2002:str", {
|
|
|
1300
1284
|
ln
|
|
1301
1285
|
]
|
|
1302
1286
|
});
|
|
1303
|
-
function
|
|
1287
|
+
function Br(e) {
|
|
1304
1288
|
if (e === null) return !0;
|
|
1305
1289
|
var t = e.length;
|
|
1306
1290
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1307
1291
|
}
|
|
1308
|
-
function
|
|
1292
|
+
function Rr() {
|
|
1309
1293
|
return null;
|
|
1310
1294
|
}
|
|
1311
|
-
function
|
|
1295
|
+
function Kr(e) {
|
|
1312
1296
|
return e === null;
|
|
1313
1297
|
}
|
|
1314
1298
|
var cn = new ne("tag:yaml.org,2002:null", {
|
|
1315
1299
|
kind: "scalar",
|
|
1316
|
-
resolve:
|
|
1317
|
-
construct:
|
|
1318
|
-
predicate:
|
|
1300
|
+
resolve: Br,
|
|
1301
|
+
construct: Rr,
|
|
1302
|
+
predicate: Kr,
|
|
1319
1303
|
represent: {
|
|
1320
1304
|
canonical: function() {
|
|
1321
1305
|
return "~";
|
|
@@ -1335,22 +1319,22 @@ var cn = new ne("tag:yaml.org,2002:null", {
|
|
|
1335
1319
|
},
|
|
1336
1320
|
defaultStyle: "lowercase"
|
|
1337
1321
|
});
|
|
1338
|
-
function
|
|
1322
|
+
function Nr(e) {
|
|
1339
1323
|
if (e === null) return !1;
|
|
1340
1324
|
var t = e.length;
|
|
1341
1325
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1342
1326
|
}
|
|
1343
|
-
function
|
|
1327
|
+
function Mr(e) {
|
|
1344
1328
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1345
1329
|
}
|
|
1346
|
-
function
|
|
1330
|
+
function jr(e) {
|
|
1347
1331
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1348
1332
|
}
|
|
1349
1333
|
var un = new ne("tag:yaml.org,2002:bool", {
|
|
1350
1334
|
kind: "scalar",
|
|
1351
|
-
resolve:
|
|
1352
|
-
construct:
|
|
1353
|
-
predicate:
|
|
1335
|
+
resolve: Nr,
|
|
1336
|
+
construct: Mr,
|
|
1337
|
+
predicate: jr,
|
|
1354
1338
|
represent: {
|
|
1355
1339
|
lowercase: function(e) {
|
|
1356
1340
|
return e ? "true" : "false";
|
|
@@ -1364,16 +1348,16 @@ var un = new ne("tag:yaml.org,2002:bool", {
|
|
|
1364
1348
|
},
|
|
1365
1349
|
defaultStyle: "lowercase"
|
|
1366
1350
|
});
|
|
1367
|
-
function
|
|
1351
|
+
function Dr(e) {
|
|
1368
1352
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1369
1353
|
}
|
|
1370
|
-
function
|
|
1354
|
+
function Pr(e) {
|
|
1371
1355
|
return 48 <= e && e <= 55;
|
|
1372
1356
|
}
|
|
1373
|
-
function
|
|
1357
|
+
function Ur(e) {
|
|
1374
1358
|
return 48 <= e && e <= 57;
|
|
1375
1359
|
}
|
|
1376
|
-
function
|
|
1360
|
+
function qr(e) {
|
|
1377
1361
|
if (e === null) return !1;
|
|
1378
1362
|
var t = e.length, n = 0, i = !1, r;
|
|
1379
1363
|
if (!t) return !1;
|
|
@@ -1390,7 +1374,7 @@ function Yr(e) {
|
|
|
1390
1374
|
if (r === "x") {
|
|
1391
1375
|
for (n++; n < t; n++)
|
|
1392
1376
|
if (r = e[n], r !== "_") {
|
|
1393
|
-
if (!
|
|
1377
|
+
if (!Dr(e.charCodeAt(n))) return !1;
|
|
1394
1378
|
i = !0;
|
|
1395
1379
|
}
|
|
1396
1380
|
return i && r !== "_";
|
|
@@ -1398,7 +1382,7 @@ function Yr(e) {
|
|
|
1398
1382
|
if (r === "o") {
|
|
1399
1383
|
for (n++; n < t; n++)
|
|
1400
1384
|
if (r = e[n], r !== "_") {
|
|
1401
|
-
if (!
|
|
1385
|
+
if (!Pr(e.charCodeAt(n))) return !1;
|
|
1402
1386
|
i = !0;
|
|
1403
1387
|
}
|
|
1404
1388
|
return i && r !== "_";
|
|
@@ -1407,13 +1391,13 @@ function Yr(e) {
|
|
|
1407
1391
|
if (r === "_") return !1;
|
|
1408
1392
|
for (; n < t; n++)
|
|
1409
1393
|
if (r = e[n], r !== "_") {
|
|
1410
|
-
if (!
|
|
1394
|
+
if (!Ur(e.charCodeAt(n)))
|
|
1411
1395
|
return !1;
|
|
1412
1396
|
i = !0;
|
|
1413
1397
|
}
|
|
1414
1398
|
return !(!i || r === "_");
|
|
1415
1399
|
}
|
|
1416
|
-
function
|
|
1400
|
+
function Hr(e) {
|
|
1417
1401
|
var t = e, n = 1, i;
|
|
1418
1402
|
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;
|
|
1419
1403
|
if (i === "0") {
|
|
@@ -1423,14 +1407,14 @@ function Wr(e) {
|
|
|
1423
1407
|
}
|
|
1424
1408
|
return n * parseInt(t, 10);
|
|
1425
1409
|
}
|
|
1426
|
-
function
|
|
1410
|
+
function Vr(e) {
|
|
1427
1411
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
|
|
1428
1412
|
}
|
|
1429
1413
|
var dn = new ne("tag:yaml.org,2002:int", {
|
|
1430
1414
|
kind: "scalar",
|
|
1431
|
-
resolve:
|
|
1432
|
-
construct:
|
|
1433
|
-
predicate:
|
|
1415
|
+
resolve: qr,
|
|
1416
|
+
construct: Hr,
|
|
1417
|
+
predicate: Vr,
|
|
1434
1418
|
represent: {
|
|
1435
1419
|
binary: function(e) {
|
|
1436
1420
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1453,21 +1437,21 @@ var dn = new ne("tag:yaml.org,2002:int", {
|
|
|
1453
1437
|
decimal: [10, "dec"],
|
|
1454
1438
|
hexadecimal: [16, "hex"]
|
|
1455
1439
|
}
|
|
1456
|
-
}),
|
|
1440
|
+
}), Yr = new RegExp(
|
|
1457
1441
|
// 2.5e4, 2.5 and integers
|
|
1458
1442
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1459
1443
|
);
|
|
1460
|
-
function
|
|
1461
|
-
return !(e === null || !
|
|
1444
|
+
function Wr(e) {
|
|
1445
|
+
return !(e === null || !Yr.test(e) || // Quick hack to not allow integers end with `_`
|
|
1462
1446
|
// Probably should update regexp & check speed
|
|
1463
1447
|
e[e.length - 1] === "_");
|
|
1464
1448
|
}
|
|
1465
|
-
function
|
|
1449
|
+
function Jr(e) {
|
|
1466
1450
|
var t, n;
|
|
1467
1451
|
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);
|
|
1468
1452
|
}
|
|
1469
|
-
var
|
|
1470
|
-
function
|
|
1453
|
+
var Gr = /^[-+]?[0-9]+e/;
|
|
1454
|
+
function zr(e, t) {
|
|
1471
1455
|
var n;
|
|
1472
1456
|
if (isNaN(e))
|
|
1473
1457
|
switch (t) {
|
|
@@ -1498,17 +1482,17 @@ function Xr(e, t) {
|
|
|
1498
1482
|
}
|
|
1499
1483
|
else if (ee.isNegativeZero(e))
|
|
1500
1484
|
return "-0.0";
|
|
1501
|
-
return n = e.toString(10),
|
|
1485
|
+
return n = e.toString(10), Gr.test(n) ? n.replace("e", ".e") : n;
|
|
1502
1486
|
}
|
|
1503
|
-
function
|
|
1487
|
+
function Qr(e) {
|
|
1504
1488
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
|
|
1505
1489
|
}
|
|
1506
1490
|
var fn = new ne("tag:yaml.org,2002:float", {
|
|
1507
1491
|
kind: "scalar",
|
|
1508
|
-
resolve:
|
|
1509
|
-
construct:
|
|
1510
|
-
predicate:
|
|
1511
|
-
represent:
|
|
1492
|
+
resolve: Wr,
|
|
1493
|
+
construct: Jr,
|
|
1494
|
+
predicate: Qr,
|
|
1495
|
+
represent: zr,
|
|
1512
1496
|
defaultStyle: "lowercase"
|
|
1513
1497
|
}), pn = sn.extend({
|
|
1514
1498
|
implicit: [
|
|
@@ -1517,17 +1501,17 @@ var fn = new ne("tag:yaml.org,2002:float", {
|
|
|
1517
1501
|
dn,
|
|
1518
1502
|
fn
|
|
1519
1503
|
]
|
|
1520
|
-
}), mn = pn,
|
|
1504
|
+
}), mn = pn, hn = new RegExp(
|
|
1521
1505
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1522
1506
|
), gn = new RegExp(
|
|
1523
1507
|
"^([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]))?))?$"
|
|
1524
1508
|
);
|
|
1525
|
-
function
|
|
1526
|
-
return e === null ? !1 :
|
|
1509
|
+
function Zr(e) {
|
|
1510
|
+
return e === null ? !1 : hn.exec(e) !== null || gn.exec(e) !== null;
|
|
1527
1511
|
}
|
|
1528
|
-
function
|
|
1512
|
+
function Xr(e) {
|
|
1529
1513
|
var t, n, i, r, o, a, s, l = 0, c = null, d, u, p;
|
|
1530
|
-
if (t =
|
|
1514
|
+
if (t = hn.exec(e), t === null && (t = gn.exec(e)), t === null) throw new Error("Date resolve error");
|
|
1531
1515
|
if (n = +t[1], i = +t[2] - 1, r = +t[3], !t[4])
|
|
1532
1516
|
return new Date(Date.UTC(n, i, r));
|
|
1533
1517
|
if (o = +t[4], a = +t[5], s = +t[6], t[7]) {
|
|
@@ -1537,25 +1521,25 @@ function na(e) {
|
|
|
1537
1521
|
}
|
|
1538
1522
|
return t[9] && (d = +t[10], u = +(t[11] || 0), c = (d * 60 + u) * 6e4, t[9] === "-" && (c = -c)), p = new Date(Date.UTC(n, i, r, o, a, s, l)), c && p.setTime(p.getTime() - c), p;
|
|
1539
1523
|
}
|
|
1540
|
-
function
|
|
1524
|
+
function ea(e) {
|
|
1541
1525
|
return e.toISOString();
|
|
1542
1526
|
}
|
|
1543
|
-
var
|
|
1527
|
+
var yn = new ne("tag:yaml.org,2002:timestamp", {
|
|
1544
1528
|
kind: "scalar",
|
|
1545
|
-
resolve:
|
|
1546
|
-
construct:
|
|
1529
|
+
resolve: Zr,
|
|
1530
|
+
construct: Xr,
|
|
1547
1531
|
instanceOf: Date,
|
|
1548
|
-
represent:
|
|
1532
|
+
represent: ea
|
|
1549
1533
|
});
|
|
1550
|
-
function
|
|
1534
|
+
function ta(e) {
|
|
1551
1535
|
return e === "<<" || e === null;
|
|
1552
1536
|
}
|
|
1553
1537
|
var vn = new ne("tag:yaml.org,2002:merge", {
|
|
1554
1538
|
kind: "scalar",
|
|
1555
|
-
resolve:
|
|
1539
|
+
resolve: ta
|
|
1556
1540
|
}), at = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1557
1541
|
\r`;
|
|
1558
|
-
function
|
|
1542
|
+
function na(e) {
|
|
1559
1543
|
if (e === null) return !1;
|
|
1560
1544
|
var t, n, i = 0, r = e.length, o = at;
|
|
1561
1545
|
for (n = 0; n < r; n++)
|
|
@@ -1565,35 +1549,35 @@ function aa(e) {
|
|
|
1565
1549
|
}
|
|
1566
1550
|
return i % 8 === 0;
|
|
1567
1551
|
}
|
|
1568
|
-
function
|
|
1552
|
+
function ia(e) {
|
|
1569
1553
|
var t, n, i = e.replace(/[\r\n=]/g, ""), r = i.length, o = at, a = 0, s = [];
|
|
1570
1554
|
for (t = 0; t < r; t++)
|
|
1571
1555
|
t % 4 === 0 && t && (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)), a = a << 6 | o.indexOf(i.charAt(t));
|
|
1572
1556
|
return n = r % 4 * 6, n === 0 ? (s.push(a >> 16 & 255), s.push(a >> 8 & 255), s.push(a & 255)) : n === 18 ? (s.push(a >> 10 & 255), s.push(a >> 2 & 255)) : n === 12 && s.push(a >> 4 & 255), new Uint8Array(s);
|
|
1573
1557
|
}
|
|
1574
|
-
function
|
|
1558
|
+
function ra(e) {
|
|
1575
1559
|
var t = "", n = 0, i, r, o = e.length, a = at;
|
|
1576
1560
|
for (i = 0; i < o; i++)
|
|
1577
1561
|
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];
|
|
1578
1562
|
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;
|
|
1579
1563
|
}
|
|
1580
|
-
function
|
|
1564
|
+
function aa(e) {
|
|
1581
1565
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1582
1566
|
}
|
|
1583
1567
|
var bn = new ne("tag:yaml.org,2002:binary", {
|
|
1584
1568
|
kind: "scalar",
|
|
1585
|
-
resolve:
|
|
1586
|
-
construct:
|
|
1587
|
-
predicate:
|
|
1588
|
-
represent:
|
|
1589
|
-
}),
|
|
1590
|
-
function
|
|
1569
|
+
resolve: na,
|
|
1570
|
+
construct: ia,
|
|
1571
|
+
predicate: aa,
|
|
1572
|
+
represent: ra
|
|
1573
|
+
}), oa = Object.prototype.hasOwnProperty, la = Object.prototype.toString;
|
|
1574
|
+
function sa(e) {
|
|
1591
1575
|
if (e === null) return !0;
|
|
1592
1576
|
var t = [], n, i, r, o, a, s = e;
|
|
1593
1577
|
for (n = 0, i = s.length; n < i; n += 1) {
|
|
1594
|
-
if (r = s[n], a = !1,
|
|
1578
|
+
if (r = s[n], a = !1, la.call(r) !== "[object Object]") return !1;
|
|
1595
1579
|
for (o in r)
|
|
1596
|
-
if (
|
|
1580
|
+
if (oa.call(r, o))
|
|
1597
1581
|
if (!a) a = !0;
|
|
1598
1582
|
else return !1;
|
|
1599
1583
|
if (!a) return !1;
|
|
@@ -1602,24 +1586,24 @@ function da(e) {
|
|
|
1602
1586
|
}
|
|
1603
1587
|
return !0;
|
|
1604
1588
|
}
|
|
1605
|
-
function
|
|
1589
|
+
function ca(e) {
|
|
1606
1590
|
return e !== null ? e : [];
|
|
1607
1591
|
}
|
|
1608
1592
|
var xn = new ne("tag:yaml.org,2002:omap", {
|
|
1609
1593
|
kind: "sequence",
|
|
1610
|
-
resolve:
|
|
1611
|
-
construct:
|
|
1612
|
-
}),
|
|
1613
|
-
function
|
|
1594
|
+
resolve: sa,
|
|
1595
|
+
construct: ca
|
|
1596
|
+
}), ua = Object.prototype.toString;
|
|
1597
|
+
function da(e) {
|
|
1614
1598
|
if (e === null) return !0;
|
|
1615
1599
|
var t, n, i, r, o, a = e;
|
|
1616
1600
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1) {
|
|
1617
|
-
if (i = a[t],
|
|
1601
|
+
if (i = a[t], ua.call(i) !== "[object Object]" || (r = Object.keys(i), r.length !== 1)) return !1;
|
|
1618
1602
|
o[t] = [r[0], i[r[0]]];
|
|
1619
1603
|
}
|
|
1620
1604
|
return !0;
|
|
1621
1605
|
}
|
|
1622
|
-
function
|
|
1606
|
+
function fa(e) {
|
|
1623
1607
|
if (e === null) return [];
|
|
1624
1608
|
var t, n, i, r, o, a = e;
|
|
1625
1609
|
for (o = new Array(a.length), t = 0, n = a.length; t < n; t += 1)
|
|
@@ -1628,27 +1612,27 @@ function ya(e) {
|
|
|
1628
1612
|
}
|
|
1629
1613
|
var Cn = new ne("tag:yaml.org,2002:pairs", {
|
|
1630
1614
|
kind: "sequence",
|
|
1631
|
-
resolve:
|
|
1632
|
-
construct:
|
|
1633
|
-
}),
|
|
1634
|
-
function
|
|
1615
|
+
resolve: da,
|
|
1616
|
+
construct: fa
|
|
1617
|
+
}), pa = Object.prototype.hasOwnProperty;
|
|
1618
|
+
function ma(e) {
|
|
1635
1619
|
if (e === null) return !0;
|
|
1636
1620
|
var t, n = e;
|
|
1637
1621
|
for (t in n)
|
|
1638
|
-
if (
|
|
1622
|
+
if (pa.call(n, t) && n[t] !== null)
|
|
1639
1623
|
return !1;
|
|
1640
1624
|
return !0;
|
|
1641
1625
|
}
|
|
1642
|
-
function
|
|
1626
|
+
function ha(e) {
|
|
1643
1627
|
return e !== null ? e : {};
|
|
1644
1628
|
}
|
|
1645
1629
|
var kn = new ne("tag:yaml.org,2002:set", {
|
|
1646
1630
|
kind: "mapping",
|
|
1647
|
-
resolve:
|
|
1648
|
-
construct:
|
|
1631
|
+
resolve: ma,
|
|
1632
|
+
construct: ha
|
|
1649
1633
|
}), ot = mn.extend({
|
|
1650
1634
|
implicit: [
|
|
1651
|
-
|
|
1635
|
+
yn,
|
|
1652
1636
|
vn
|
|
1653
1637
|
],
|
|
1654
1638
|
explicit: [
|
|
@@ -1657,7 +1641,7 @@ var kn = new ne("tag:yaml.org,2002:set", {
|
|
|
1657
1641
|
Cn,
|
|
1658
1642
|
kn
|
|
1659
1643
|
]
|
|
1660
|
-
}),
|
|
1644
|
+
}), ye = Object.prototype.hasOwnProperty, Be = 1, An = 2, _n = 3, Re = 4, We = 1, ga = 2, _t = 3, ya = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, va = /[\x85\u2028\u2029]/, ba = /[,\[\]\{\}]/, wn = /^(?:!|!!|![a-z\-]+!)$/i, Sn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1661
1645
|
function wt(e) {
|
|
1662
1646
|
return Object.prototype.toString.call(e);
|
|
1663
1647
|
}
|
|
@@ -1673,21 +1657,21 @@ function le(e) {
|
|
|
1673
1657
|
function _e(e) {
|
|
1674
1658
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1675
1659
|
}
|
|
1676
|
-
function
|
|
1660
|
+
function xa(e) {
|
|
1677
1661
|
var t;
|
|
1678
1662
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1679
1663
|
}
|
|
1680
|
-
function
|
|
1664
|
+
function Ca(e) {
|
|
1681
1665
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1682
1666
|
}
|
|
1683
|
-
function
|
|
1667
|
+
function ka(e) {
|
|
1684
1668
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1685
1669
|
}
|
|
1686
1670
|
function St(e) {
|
|
1687
1671
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1688
1672
|
` : 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" : "";
|
|
1689
1673
|
}
|
|
1690
|
-
function
|
|
1674
|
+
function Aa(e) {
|
|
1691
1675
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1692
1676
|
(e - 65536 >> 10) + 55296,
|
|
1693
1677
|
(e - 65536 & 1023) + 56320
|
|
@@ -1701,13 +1685,13 @@ function $n(e, t, n) {
|
|
|
1701
1685
|
value: n
|
|
1702
1686
|
}) : e[t] = n;
|
|
1703
1687
|
}
|
|
1704
|
-
var Tn = new Array(256),
|
|
1688
|
+
var Tn = new Array(256), In = new Array(256);
|
|
1705
1689
|
for (var ke = 0; ke < 256; ke++)
|
|
1706
|
-
Tn[ke] = St(ke) ? 1 : 0,
|
|
1707
|
-
function
|
|
1690
|
+
Tn[ke] = St(ke) ? 1 : 0, In[ke] = St(ke);
|
|
1691
|
+
function _a(e, t) {
|
|
1708
1692
|
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 = [];
|
|
1709
1693
|
}
|
|
1710
|
-
function
|
|
1694
|
+
function En(e, t) {
|
|
1711
1695
|
var n = {
|
|
1712
1696
|
name: e.filename,
|
|
1713
1697
|
buffer: e.input.slice(0, -1),
|
|
@@ -1716,26 +1700,26 @@ function In(e, t) {
|
|
|
1716
1700
|
line: e.line,
|
|
1717
1701
|
column: e.position - e.lineStart
|
|
1718
1702
|
};
|
|
1719
|
-
return n.snippet =
|
|
1703
|
+
return n.snippet = Tr(n), new oe(t, n);
|
|
1720
1704
|
}
|
|
1721
|
-
function
|
|
1722
|
-
throw
|
|
1705
|
+
function E(e, t) {
|
|
1706
|
+
throw En(e, t);
|
|
1723
1707
|
}
|
|
1724
|
-
function
|
|
1725
|
-
e.onWarning && e.onWarning.call(null,
|
|
1708
|
+
function Ke(e, t) {
|
|
1709
|
+
e.onWarning && e.onWarning.call(null, En(e, t));
|
|
1726
1710
|
}
|
|
1727
1711
|
var $t = {
|
|
1728
1712
|
YAML: function(t, n, i) {
|
|
1729
1713
|
var r, o, a;
|
|
1730
|
-
t.version !== null &&
|
|
1714
|
+
t.version !== null && E(t, "duplication of %YAML directive"), i.length !== 1 && E(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && E(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && E(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");
|
|
1731
1715
|
},
|
|
1732
1716
|
TAG: function(t, n, i) {
|
|
1733
1717
|
var r, o;
|
|
1734
|
-
i.length !== 2 &&
|
|
1718
|
+
i.length !== 2 && E(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], wn.test(r) || E(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && E(t, 'there is a previously declared suffix for "' + r + '" tag handle'), Sn.test(o) || E(t, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1735
1719
|
try {
|
|
1736
1720
|
o = decodeURIComponent(o);
|
|
1737
1721
|
} catch {
|
|
1738
|
-
|
|
1722
|
+
E(t, "tag prefix is malformed: " + o);
|
|
1739
1723
|
}
|
|
1740
1724
|
t.tagMap[r] = o;
|
|
1741
1725
|
}
|
|
@@ -1745,21 +1729,21 @@ function ge(e, t, n, i) {
|
|
|
1745
1729
|
if (t < n) {
|
|
1746
1730
|
if (s = e.input.slice(t, n), i)
|
|
1747
1731
|
for (r = 0, o = s.length; r < o; r += 1)
|
|
1748
|
-
a = s.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 ||
|
|
1749
|
-
else
|
|
1732
|
+
a = s.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || E(e, "expected valid JSON character");
|
|
1733
|
+
else ya.test(s) && E(e, "the stream contains non-printable characters");
|
|
1750
1734
|
e.result += s;
|
|
1751
1735
|
}
|
|
1752
1736
|
}
|
|
1753
1737
|
function Tt(e, t, n, i) {
|
|
1754
1738
|
var r, o, a, s;
|
|
1755
|
-
for (ee.isObject(n) ||
|
|
1756
|
-
o = r[a],
|
|
1739
|
+
for (ee.isObject(n) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, s = r.length; a < s; a += 1)
|
|
1740
|
+
o = r[a], ye.call(t, o) || ($n(t, o, n[o]), i[o] = !0);
|
|
1757
1741
|
}
|
|
1758
1742
|
function we(e, t, n, i, r, o, a, s, l) {
|
|
1759
1743
|
var c, d;
|
|
1760
1744
|
if (Array.isArray(r))
|
|
1761
1745
|
for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
|
|
1762
|
-
Array.isArray(r[c]) &&
|
|
1746
|
+
Array.isArray(r[c]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && wt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
|
|
1763
1747
|
if (typeof r == "object" && wt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
|
|
1764
1748
|
if (Array.isArray(o))
|
|
1765
1749
|
for (c = 0, d = o.length; c < d; c += 1)
|
|
@@ -1767,12 +1751,12 @@ function we(e, t, n, i, r, o, a, s, l) {
|
|
|
1767
1751
|
else
|
|
1768
1752
|
Tt(e, t, o, n);
|
|
1769
1753
|
else
|
|
1770
|
-
!e.json && !
|
|
1754
|
+
!e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), $n(t, r, o), delete n[r];
|
|
1771
1755
|
return t;
|
|
1772
1756
|
}
|
|
1773
1757
|
function lt(e) {
|
|
1774
1758
|
var t;
|
|
1775
|
-
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1759
|
+
t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1776
1760
|
}
|
|
1777
1761
|
function Z(e, t, n) {
|
|
1778
1762
|
for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
@@ -1788,9 +1772,9 @@ function Z(e, t, n) {
|
|
|
1788
1772
|
else
|
|
1789
1773
|
break;
|
|
1790
1774
|
}
|
|
1791
|
-
return n !== -1 && i !== 0 && e.lineIndent < n &&
|
|
1775
|
+
return n !== -1 && i !== 0 && e.lineIndent < n && Ke(e, "deficient indentation"), i;
|
|
1792
1776
|
}
|
|
1793
|
-
function
|
|
1777
|
+
function qe(e) {
|
|
1794
1778
|
var t = e.position, n;
|
|
1795
1779
|
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 || le(n)));
|
|
1796
1780
|
}
|
|
@@ -1798,7 +1782,7 @@ function st(e, t) {
|
|
|
1798
1782
|
t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
|
|
1799
1783
|
`, t - 1));
|
|
1800
1784
|
}
|
|
1801
|
-
function
|
|
1785
|
+
function wa(e, t, n) {
|
|
1802
1786
|
var i, r, o, a, s, l, c, d, u = e.kind, p = e.result, g;
|
|
1803
1787
|
if (g = e.input.charCodeAt(e.position), le(g) || _e(g) || g === 35 || g === 38 || g === 42 || g === 33 || g === 124 || g === 62 || g === 39 || g === 34 || g === 37 || g === 64 || g === 96 || (g === 63 || g === 45) && (r = e.input.charCodeAt(e.position + 1), le(r) || n && _e(r)))
|
|
1804
1788
|
return !1;
|
|
@@ -1810,7 +1794,7 @@ function Ta(e, t, n) {
|
|
|
1810
1794
|
if (i = e.input.charCodeAt(e.position - 1), le(i))
|
|
1811
1795
|
break;
|
|
1812
1796
|
} else {
|
|
1813
|
-
if (e.position === e.lineStart &&
|
|
1797
|
+
if (e.position === e.lineStart && qe(e) || n && _e(g))
|
|
1814
1798
|
break;
|
|
1815
1799
|
if (de(g))
|
|
1816
1800
|
if (l = e.line, c = e.lineStart, d = e.lineIndent, Z(e, !1, -1), e.lineIndent >= t) {
|
|
@@ -1825,7 +1809,7 @@ function Ta(e, t, n) {
|
|
|
1825
1809
|
}
|
|
1826
1810
|
return ge(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
|
|
1827
1811
|
}
|
|
1828
|
-
function
|
|
1812
|
+
function Sa(e, t) {
|
|
1829
1813
|
var n, i, r;
|
|
1830
1814
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1831
1815
|
return !1;
|
|
@@ -1835,10 +1819,10 @@ function Ea(e, t) {
|
|
|
1835
1819
|
i = e.position, e.position++, r = e.position;
|
|
1836
1820
|
else
|
|
1837
1821
|
return !0;
|
|
1838
|
-
else de(n) ? (ge(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart &&
|
|
1839
|
-
|
|
1822
|
+
else de(n) ? (ge(e, i, r, !0), st(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && qe(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1823
|
+
E(e, "unexpected end of the stream within a single quoted scalar");
|
|
1840
1824
|
}
|
|
1841
|
-
function
|
|
1825
|
+
function $a(e, t) {
|
|
1842
1826
|
var n, i, r, o, a, s;
|
|
1843
1827
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1844
1828
|
return !1;
|
|
@@ -1849,20 +1833,20 @@ function Ia(e, t) {
|
|
|
1849
1833
|
if (ge(e, n, e.position, !0), s = e.input.charCodeAt(++e.position), de(s))
|
|
1850
1834
|
Z(e, !1, t);
|
|
1851
1835
|
else if (s < 256 && Tn[s])
|
|
1852
|
-
e.result +=
|
|
1853
|
-
else if ((a =
|
|
1836
|
+
e.result += In[s], e.position++;
|
|
1837
|
+
else if ((a = Ca(s)) > 0) {
|
|
1854
1838
|
for (r = a, o = 0; r > 0; r--)
|
|
1855
|
-
s = e.input.charCodeAt(++e.position), (a =
|
|
1856
|
-
e.result +=
|
|
1839
|
+
s = e.input.charCodeAt(++e.position), (a = xa(s)) >= 0 ? o = (o << 4) + a : E(e, "expected hexadecimal character");
|
|
1840
|
+
e.result += Aa(o), e.position++;
|
|
1857
1841
|
} else
|
|
1858
|
-
|
|
1842
|
+
E(e, "unknown escape sequence");
|
|
1859
1843
|
n = i = e.position;
|
|
1860
|
-
} else de(s) ? (ge(e, n, i, !0), st(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart &&
|
|
1844
|
+
} else de(s) ? (ge(e, n, i, !0), st(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && qe(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
|
|
1861
1845
|
}
|
|
1862
|
-
|
|
1846
|
+
E(e, "unexpected end of the stream within a double quoted scalar");
|
|
1863
1847
|
}
|
|
1864
|
-
function
|
|
1865
|
-
var n = !0, i, r, o, a = e.tag, s, l = e.anchor, c, d, u, p, g,
|
|
1848
|
+
function Ta(e, t) {
|
|
1849
|
+
var n = !0, i, r, o, a = e.tag, s, l = e.anchor, c, d, u, p, g, h = /* @__PURE__ */ Object.create(null), x, y, k, C;
|
|
1866
1850
|
if (C = e.input.charCodeAt(e.position), C === 91)
|
|
1867
1851
|
d = 93, g = !1, s = [];
|
|
1868
1852
|
else if (C === 123)
|
|
@@ -1872,12 +1856,12 @@ function Fa(e, t) {
|
|
|
1872
1856
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), C = e.input.charCodeAt(++e.position); C !== 0; ) {
|
|
1873
1857
|
if (Z(e, !0, t), C = e.input.charCodeAt(e.position), C === d)
|
|
1874
1858
|
return e.position++, e.tag = a, e.anchor = l, e.kind = g ? "mapping" : "sequence", e.result = s, !0;
|
|
1875
|
-
n ? C === 44 &&
|
|
1859
|
+
n ? C === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), y = x = k = null, u = p = !1, C === 63 && (c = e.input.charCodeAt(e.position + 1), le(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, $e(e, t, Be, !1, !0), y = e.tag, x = e.result, Z(e, !0, t), C = e.input.charCodeAt(e.position), (p || e.line === i) && C === 58 && (u = !0, C = e.input.charCodeAt(++e.position), Z(e, !0, t), $e(e, t, Be, !1, !0), k = e.result), g ? we(e, s, h, y, x, k, i, r, o) : u ? s.push(we(e, null, h, y, x, k, i, r, o)) : s.push(x), Z(e, !0, t), C = e.input.charCodeAt(e.position), C === 44 ? (n = !0, C = e.input.charCodeAt(++e.position)) : n = !1;
|
|
1876
1860
|
}
|
|
1877
|
-
|
|
1861
|
+
E(e, "unexpected end of the stream within a flow collection");
|
|
1878
1862
|
}
|
|
1879
|
-
function
|
|
1880
|
-
var n, i, r =
|
|
1863
|
+
function Ia(e, t) {
|
|
1864
|
+
var n, i, r = We, o = !1, a = !1, s = t, l = 0, c = !1, d, u;
|
|
1881
1865
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1882
1866
|
i = !1;
|
|
1883
1867
|
else if (u === 62)
|
|
@@ -1886,9 +1870,9 @@ function Oa(e, t) {
|
|
|
1886
1870
|
return !1;
|
|
1887
1871
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1888
1872
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1889
|
-
|
|
1890
|
-
else if ((d =
|
|
1891
|
-
d === 0 ?
|
|
1873
|
+
We === r ? r = u === 43 ? _t : ga : E(e, "repeat of a chomping mode identifier");
|
|
1874
|
+
else if ((d = ka(u)) >= 0)
|
|
1875
|
+
d === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? E(e, "repeat of an indentation width identifier") : (s = t + d - 1, a = !0);
|
|
1892
1876
|
else
|
|
1893
1877
|
break;
|
|
1894
1878
|
if (ve(u)) {
|
|
@@ -1909,7 +1893,7 @@ function Oa(e, t) {
|
|
|
1909
1893
|
}
|
|
1910
1894
|
if (e.lineIndent < s) {
|
|
1911
1895
|
r === _t ? e.result += ee.repeat(`
|
|
1912
|
-
`, o ? 1 + l : l) : r ===
|
|
1896
|
+
`, o ? 1 + l : l) : r === We && o && (e.result += `
|
|
1913
1897
|
`);
|
|
1914
1898
|
break;
|
|
1915
1899
|
}
|
|
@@ -1923,27 +1907,27 @@ function Oa(e, t) {
|
|
|
1923
1907
|
}
|
|
1924
1908
|
return !0;
|
|
1925
1909
|
}
|
|
1926
|
-
function
|
|
1910
|
+
function It(e, t) {
|
|
1927
1911
|
var n, i = e.tag, r = e.anchor, o = [], a, s = !1, l;
|
|
1928
1912
|
if (e.firstTabInLine !== -1) return !1;
|
|
1929
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
1913
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(l !== 45 || (a = e.input.charCodeAt(e.position + 1), !le(a)))); ) {
|
|
1930
1914
|
if (s = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
|
|
1931
1915
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
1932
1916
|
continue;
|
|
1933
1917
|
}
|
|
1934
1918
|
if (n = e.line, $e(e, t, _n, !1, !0), o.push(e.result), Z(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && l !== 0)
|
|
1935
|
-
|
|
1919
|
+
E(e, "bad indentation of a sequence entry");
|
|
1936
1920
|
else if (e.lineIndent < t)
|
|
1937
1921
|
break;
|
|
1938
1922
|
}
|
|
1939
1923
|
return s ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
1940
1924
|
}
|
|
1941
|
-
function
|
|
1942
|
-
var i, r, o, a, s, l, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), g = null,
|
|
1925
|
+
function Ea(e, t, n) {
|
|
1926
|
+
var i, r, o, a, s, l, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), g = null, h = null, x = null, y = !1, k = !1, C;
|
|
1943
1927
|
if (e.firstTabInLine !== -1) return !1;
|
|
1944
1928
|
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), C = e.input.charCodeAt(e.position); C !== 0; ) {
|
|
1945
|
-
if (!
|
|
1946
|
-
C === 63 ? (
|
|
1929
|
+
if (!y && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (C === 63 || C === 58) && le(i))
|
|
1930
|
+
C === 63 ? (y && (we(e, u, p, g, h, null, a, s, l), g = h = x = null), k = !0, y = !0, r = !0) : y ? (y = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, C = i;
|
|
1947
1931
|
else {
|
|
1948
1932
|
if (a = e.line, s = e.lineStart, l = e.position, !$e(e, n, An, !1, !0))
|
|
1949
1933
|
break;
|
|
@@ -1951,90 +1935,90 @@ function La(e, t, n) {
|
|
|
1951
1935
|
for (C = e.input.charCodeAt(e.position); ve(C); )
|
|
1952
1936
|
C = e.input.charCodeAt(++e.position);
|
|
1953
1937
|
if (C === 58)
|
|
1954
|
-
C = e.input.charCodeAt(++e.position), le(C) ||
|
|
1955
|
-
else if (
|
|
1956
|
-
|
|
1938
|
+
C = e.input.charCodeAt(++e.position), le(C) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (we(e, u, p, g, h, null, a, s, l), g = h = x = null), k = !0, y = !1, r = !1, g = e.tag, h = e.result;
|
|
1939
|
+
else if (k)
|
|
1940
|
+
E(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1957
1941
|
else
|
|
1958
1942
|
return e.tag = c, e.anchor = d, !0;
|
|
1959
|
-
} else if (
|
|
1960
|
-
|
|
1943
|
+
} else if (k)
|
|
1944
|
+
E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
1961
1945
|
else
|
|
1962
1946
|
return e.tag = c, e.anchor = d, !0;
|
|
1963
1947
|
}
|
|
1964
|
-
if ((e.line === o || e.lineIndent > t) && (
|
|
1965
|
-
|
|
1948
|
+
if ((e.line === o || e.lineIndent > t) && (y && (a = e.line, s = e.lineStart, l = e.position), $e(e, t, Re, !0, r) && (y ? h = e.result : x = e.result), y || (we(e, u, p, g, h, x, a, s, l), g = h = x = null), Z(e, !0, -1), C = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && C !== 0)
|
|
1949
|
+
E(e, "bad indentation of a mapping entry");
|
|
1966
1950
|
else if (e.lineIndent < t)
|
|
1967
1951
|
break;
|
|
1968
1952
|
}
|
|
1969
|
-
return
|
|
1953
|
+
return y && we(e, u, p, g, h, null, a, s, l), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
|
|
1970
1954
|
}
|
|
1971
|
-
function
|
|
1955
|
+
function Fa(e) {
|
|
1972
1956
|
var t, n = !1, i = !1, r, o, a;
|
|
1973
1957
|
if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
|
|
1974
|
-
if (e.tag !== null &&
|
|
1958
|
+
if (e.tag !== null && E(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) {
|
|
1975
1959
|
do
|
|
1976
1960
|
a = e.input.charCodeAt(++e.position);
|
|
1977
1961
|
while (a !== 0 && a !== 62);
|
|
1978
|
-
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) :
|
|
1962
|
+
e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
|
|
1979
1963
|
} else {
|
|
1980
1964
|
for (; a !== 0 && !le(a); )
|
|
1981
|
-
a === 33 && (i ?
|
|
1982
|
-
o = e.input.slice(t, e.position),
|
|
1965
|
+
a === 33 && (i ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), wn.test(r) || E(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
|
|
1966
|
+
o = e.input.slice(t, e.position), ba.test(o) && E(e, "tag suffix cannot contain flow indicator characters");
|
|
1983
1967
|
}
|
|
1984
|
-
o && !Sn.test(o) &&
|
|
1968
|
+
o && !Sn.test(o) && E(e, "tag name cannot contain such characters: " + o);
|
|
1985
1969
|
try {
|
|
1986
1970
|
o = decodeURIComponent(o);
|
|
1987
1971
|
} catch {
|
|
1988
|
-
|
|
1972
|
+
E(e, "tag name is malformed: " + o);
|
|
1989
1973
|
}
|
|
1990
|
-
return n ? e.tag = o :
|
|
1974
|
+
return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : E(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
1991
1975
|
}
|
|
1992
|
-
function
|
|
1976
|
+
function Oa(e) {
|
|
1993
1977
|
var t, n;
|
|
1994
1978
|
if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
|
|
1995
|
-
for (e.anchor !== null &&
|
|
1979
|
+
for (e.anchor !== null && E(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !le(n) && !_e(n); )
|
|
1996
1980
|
n = e.input.charCodeAt(++e.position);
|
|
1997
|
-
return e.position === t &&
|
|
1981
|
+
return e.position === t && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
1998
1982
|
}
|
|
1999
|
-
function
|
|
1983
|
+
function La(e) {
|
|
2000
1984
|
var t, n, i;
|
|
2001
1985
|
if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
|
|
2002
1986
|
for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !le(i) && !_e(i); )
|
|
2003
1987
|
i = e.input.charCodeAt(++e.position);
|
|
2004
|
-
return e.position === t &&
|
|
1988
|
+
return e.position === t && E(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || E(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
|
|
2005
1989
|
}
|
|
2006
1990
|
function $e(e, t, n, i, r) {
|
|
2007
|
-
var o, a, s, l = 1, c = !1, d = !1, u, p, g,
|
|
2008
|
-
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s =
|
|
2009
|
-
for (;
|
|
1991
|
+
var o, a, s, l = 1, c = !1, d = !1, u, p, g, h, x, y;
|
|
1992
|
+
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = s = Re === n || _n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
1993
|
+
for (; Fa(e) || Oa(e); )
|
|
2010
1994
|
Z(e, !0, -1) ? (c = !0, s = o, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
2011
|
-
if (s && (s = c || r), (l === 1 ||
|
|
1995
|
+
if (s && (s = c || r), (l === 1 || Re === n) && (Be === n || An === n ? x = t : x = t + 1, y = e.position - e.lineStart, l === 1 ? s && (It(e, y) || Ea(e, y, x)) || Ta(e, x) ? d = !0 : (a && Ia(e, x) || Sa(e, x) || $a(e, x) ? d = !0 : La(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : wa(e, x, Be === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && It(e, y))), e.tag === null)
|
|
2012
1996
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2013
1997
|
else if (e.tag === "?") {
|
|
2014
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2015
|
-
if (
|
|
2016
|
-
e.result =
|
|
1998
|
+
for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
|
|
1999
|
+
if (h = e.implicitTypes[u], h.resolve(e.result)) {
|
|
2000
|
+
e.result = h.construct(e.result), e.tag = h.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2017
2001
|
break;
|
|
2018
2002
|
}
|
|
2019
2003
|
} else if (e.tag !== "!") {
|
|
2020
|
-
if (
|
|
2021
|
-
|
|
2004
|
+
if (ye.call(e.typeMap[e.kind || "fallback"], e.tag))
|
|
2005
|
+
h = e.typeMap[e.kind || "fallback"][e.tag];
|
|
2022
2006
|
else
|
|
2023
|
-
for (
|
|
2007
|
+
for (h = null, g = e.typeMap.multi[e.kind || "fallback"], u = 0, p = g.length; u < p; u += 1)
|
|
2024
2008
|
if (e.tag.slice(0, g[u].tag.length) === g[u].tag) {
|
|
2025
|
-
|
|
2009
|
+
h = g[u];
|
|
2026
2010
|
break;
|
|
2027
2011
|
}
|
|
2028
|
-
|
|
2012
|
+
h || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && h.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + h.kind + '", not "' + e.kind + '"'), h.resolve(e.result, e.tag) ? (e.result = h.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2029
2013
|
}
|
|
2030
2014
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2031
2015
|
}
|
|
2032
|
-
function
|
|
2016
|
+
function Ba(e) {
|
|
2033
2017
|
var t = e.position, n, i, r, o = !1, a;
|
|
2034
2018
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
|
|
2035
2019
|
for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !le(a); )
|
|
2036
2020
|
a = e.input.charCodeAt(++e.position);
|
|
2037
|
-
for (i = e.input.slice(n, e.position), r = [], i.length < 1 &&
|
|
2021
|
+
for (i = e.input.slice(n, e.position), r = [], i.length < 1 && E(e, "directive name must not be less than one character in length"); a !== 0; ) {
|
|
2038
2022
|
for (; ve(a); )
|
|
2039
2023
|
a = e.input.charCodeAt(++e.position);
|
|
2040
2024
|
if (a === 35) {
|
|
@@ -2048,28 +2032,28 @@ function Na(e) {
|
|
|
2048
2032
|
a = e.input.charCodeAt(++e.position);
|
|
2049
2033
|
r.push(e.input.slice(n, e.position));
|
|
2050
2034
|
}
|
|
2051
|
-
a !== 0 && lt(e),
|
|
2035
|
+
a !== 0 && lt(e), ye.call($t, i) ? $t[i](e, i, r) : Ke(e, 'unknown document directive "' + i + '"');
|
|
2052
2036
|
}
|
|
2053
|
-
if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : o &&
|
|
2037
|
+
if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : o && E(e, "directives end mark is expected"), $e(e, e.lineIndent - 1, Re, !1, !0), Z(e, !0, -1), e.checkLineBreaks && va.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)) {
|
|
2054
2038
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
|
|
2055
2039
|
return;
|
|
2056
2040
|
}
|
|
2057
2041
|
if (e.position < e.length - 1)
|
|
2058
|
-
|
|
2042
|
+
E(e, "end of the stream or a document separator is expected");
|
|
2059
2043
|
else
|
|
2060
2044
|
return;
|
|
2061
2045
|
}
|
|
2062
2046
|
function Fn(e, t) {
|
|
2063
2047
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2064
2048
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2065
|
-
var n = new
|
|
2066
|
-
for (i !== -1 && (n.position = i,
|
|
2049
|
+
var n = new _a(e, t), i = e.indexOf("\0");
|
|
2050
|
+
for (i !== -1 && (n.position = i, E(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2067
2051
|
n.lineIndent += 1, n.position += 1;
|
|
2068
2052
|
for (; n.position < n.length - 1; )
|
|
2069
|
-
|
|
2053
|
+
Ba(n);
|
|
2070
2054
|
return n.documents;
|
|
2071
2055
|
}
|
|
2072
|
-
function
|
|
2056
|
+
function Ra(e, t, n) {
|
|
2073
2057
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2074
2058
|
var i = Fn(e, n);
|
|
2075
2059
|
if (typeof t != "function")
|
|
@@ -2077,7 +2061,7 @@ function Ma(e, t, n) {
|
|
|
2077
2061
|
for (var r = 0, o = i.length; r < o; r += 1)
|
|
2078
2062
|
t(i[r]);
|
|
2079
2063
|
}
|
|
2080
|
-
function
|
|
2064
|
+
function Ka(e, t) {
|
|
2081
2065
|
var n = Fn(e, t);
|
|
2082
2066
|
if (n.length !== 0) {
|
|
2083
2067
|
if (n.length === 1)
|
|
@@ -2085,10 +2069,10 @@ function ja(e, t) {
|
|
|
2085
2069
|
throw new oe("expected a single document in the stream, but found more");
|
|
2086
2070
|
}
|
|
2087
2071
|
}
|
|
2088
|
-
var
|
|
2089
|
-
loadAll:
|
|
2090
|
-
load:
|
|
2091
|
-
}, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279,
|
|
2072
|
+
var Na = Ra, Ma = Ka, On = {
|
|
2073
|
+
loadAll: Na,
|
|
2074
|
+
load: Ma
|
|
2075
|
+
}, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, ja = 9, Ee = 10, Da = 13, Pa = 32, Ua = 33, qa = 34, Qe = 35, Ha = 37, Va = 38, Ya = 39, Wa = 42, Rn = 44, Ja = 45, Ne = 58, Ga = 61, za = 62, Qa = 63, Za = 64, Kn = 91, Nn = 93, Xa = 96, Mn = 123, eo = 124, jn = 125, re = {};
|
|
2092
2076
|
re[0] = "\\0";
|
|
2093
2077
|
re[7] = "\\a";
|
|
2094
2078
|
re[8] = "\\b";
|
|
@@ -2104,7 +2088,7 @@ re[133] = "\\N";
|
|
|
2104
2088
|
re[160] = "\\_";
|
|
2105
2089
|
re[8232] = "\\L";
|
|
2106
2090
|
re[8233] = "\\P";
|
|
2107
|
-
var
|
|
2091
|
+
var to = [
|
|
2108
2092
|
"y",
|
|
2109
2093
|
"Y",
|
|
2110
2094
|
"yes",
|
|
@@ -2121,15 +2105,15 @@ var ro = [
|
|
|
2121
2105
|
"off",
|
|
2122
2106
|
"Off",
|
|
2123
2107
|
"OFF"
|
|
2124
|
-
],
|
|
2125
|
-
function
|
|
2108
|
+
], no = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2109
|
+
function io(e, t) {
|
|
2126
2110
|
var n, i, r, o, a, s, l;
|
|
2127
2111
|
if (t === null) return {};
|
|
2128
2112
|
for (n = {}, i = Object.keys(t), r = 0, o = i.length; r < o; r += 1)
|
|
2129
2113
|
a = i[r], s = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), l = e.compiledTypeMap.fallback[a], l && Bn.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[a] = s;
|
|
2130
2114
|
return n;
|
|
2131
2115
|
}
|
|
2132
|
-
function
|
|
2116
|
+
function ro(e) {
|
|
2133
2117
|
var t, n, i;
|
|
2134
2118
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2135
2119
|
n = "x", i = 2;
|
|
@@ -2141,94 +2125,94 @@ function lo(e) {
|
|
|
2141
2125
|
throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2142
2126
|
return "\\" + n + ee.repeat("0", i - t.length) + t;
|
|
2143
2127
|
}
|
|
2144
|
-
var
|
|
2145
|
-
function
|
|
2146
|
-
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 = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2128
|
+
var ao = 1, Fe = 2;
|
|
2129
|
+
function oo(e) {
|
|
2130
|
+
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 = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = io(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Fe : ao, 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;
|
|
2147
2131
|
}
|
|
2148
|
-
function
|
|
2132
|
+
function Et(e, t) {
|
|
2149
2133
|
for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, s = e.length; i < s; )
|
|
2150
2134
|
r = e.indexOf(`
|
|
2151
2135
|
`, i), r === -1 ? (a = e.slice(i), i = s) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
|
|
2152
2136
|
` && (o += n), o += a;
|
|
2153
2137
|
return o;
|
|
2154
2138
|
}
|
|
2155
|
-
function
|
|
2139
|
+
function Ze(e, t) {
|
|
2156
2140
|
return `
|
|
2157
2141
|
` + ee.repeat(" ", e.indent * t);
|
|
2158
2142
|
}
|
|
2159
|
-
function
|
|
2143
|
+
function lo(e, t) {
|
|
2160
2144
|
var n, i, r;
|
|
2161
2145
|
for (n = 0, i = e.implicitTypes.length; n < i; n += 1)
|
|
2162
2146
|
if (r = e.implicitTypes[n], r.resolve(t))
|
|
2163
2147
|
return !0;
|
|
2164
2148
|
return !1;
|
|
2165
2149
|
}
|
|
2166
|
-
function
|
|
2167
|
-
return e ===
|
|
2150
|
+
function Me(e) {
|
|
2151
|
+
return e === Pa || e === ja;
|
|
2168
2152
|
}
|
|
2169
|
-
function
|
|
2153
|
+
function Oe(e) {
|
|
2170
2154
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== ct || 65536 <= e && e <= 1114111;
|
|
2171
2155
|
}
|
|
2172
2156
|
function Ft(e) {
|
|
2173
|
-
return
|
|
2157
|
+
return Oe(e) && e !== ct && e !== Da && e !== Ee;
|
|
2174
2158
|
}
|
|
2175
2159
|
function Ot(e, t, n) {
|
|
2176
|
-
var i = Ft(e), r = i && !
|
|
2160
|
+
var i = Ft(e), r = i && !Me(e);
|
|
2177
2161
|
return (
|
|
2178
2162
|
// ns-plain-safe
|
|
2179
2163
|
(n ? (
|
|
2180
2164
|
// c = flow-in
|
|
2181
2165
|
i
|
|
2182
|
-
) : i && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn) && e !==
|
|
2166
|
+
) : i && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn) && e !== Qe && !(t === Ne && !r) || Ft(t) && !Me(t) && e === Qe || t === Ne && r
|
|
2183
2167
|
);
|
|
2184
2168
|
}
|
|
2185
|
-
function
|
|
2186
|
-
return
|
|
2169
|
+
function so(e) {
|
|
2170
|
+
return Oe(e) && e !== ct && !Me(e) && e !== Ja && e !== Qa && e !== Ne && e !== Rn && e !== Kn && e !== Nn && e !== Mn && e !== jn && e !== Qe && e !== Va && e !== Wa && e !== Ua && e !== eo && e !== Ga && e !== za && e !== Ya && e !== qa && e !== Ha && e !== Za && e !== Xa;
|
|
2187
2171
|
}
|
|
2188
|
-
function
|
|
2189
|
-
return !
|
|
2172
|
+
function co(e) {
|
|
2173
|
+
return !Me(e) && e !== Ne;
|
|
2190
2174
|
}
|
|
2191
2175
|
function Te(e, t) {
|
|
2192
2176
|
var n = e.charCodeAt(t), i;
|
|
2193
2177
|
return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
|
|
2194
2178
|
}
|
|
2195
|
-
function
|
|
2179
|
+
function Dn(e) {
|
|
2196
2180
|
var t = /^\n* /;
|
|
2197
2181
|
return t.test(e);
|
|
2198
2182
|
}
|
|
2199
|
-
var
|
|
2200
|
-
function
|
|
2201
|
-
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1,
|
|
2183
|
+
var Pn = 1, Xe = 2, Un = 3, qn = 4, Ae = 5;
|
|
2184
|
+
function uo(e, t, n, i, r, o, a, s) {
|
|
2185
|
+
var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, h = -1, x = so(Te(e, 0)) && co(Te(e, e.length - 1));
|
|
2202
2186
|
if (t || a)
|
|
2203
2187
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2204
|
-
if (c = Te(e, l), !
|
|
2188
|
+
if (c = Te(e, l), !Oe(c))
|
|
2205
2189
|
return Ae;
|
|
2206
2190
|
x = x && Ot(c, d, s), d = c;
|
|
2207
2191
|
}
|
|
2208
2192
|
else {
|
|
2209
2193
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2210
|
-
if (c = Te(e, l), c ===
|
|
2194
|
+
if (c = Te(e, l), c === Ee)
|
|
2211
2195
|
u = !0, g && (p = p || // Foldable line = too long, and not more-indented.
|
|
2212
|
-
l -
|
|
2213
|
-
else if (!
|
|
2196
|
+
l - h - 1 > i && e[h + 1] !== " ", h = l);
|
|
2197
|
+
else if (!Oe(c))
|
|
2214
2198
|
return Ae;
|
|
2215
2199
|
x = x && Ot(c, d, s), d = c;
|
|
2216
2200
|
}
|
|
2217
|
-
p = p || g && l -
|
|
2201
|
+
p = p || g && l - h - 1 > i && e[h + 1] !== " ";
|
|
2218
2202
|
}
|
|
2219
|
-
return !u && !p ? x && !a && !r(e) ?
|
|
2203
|
+
return !u && !p ? x && !a && !r(e) ? Pn : o === Fe ? Ae : Xe : n > 9 && Dn(e) ? Ae : a ? o === Fe ? Ae : Xe : p ? qn : Un;
|
|
2220
2204
|
}
|
|
2221
|
-
function
|
|
2205
|
+
function fo(e, t, n, i, r) {
|
|
2222
2206
|
e.dump = function() {
|
|
2223
2207
|
if (t.length === 0)
|
|
2224
|
-
return e.quotingType ===
|
|
2225
|
-
if (!e.noCompatMode && (
|
|
2226
|
-
return e.quotingType ===
|
|
2208
|
+
return e.quotingType === Fe ? '""' : "''";
|
|
2209
|
+
if (!e.noCompatMode && (to.indexOf(t) !== -1 || no.test(t)))
|
|
2210
|
+
return e.quotingType === Fe ? '"' + t + '"' : "'" + t + "'";
|
|
2227
2211
|
var o = e.indent * Math.max(1, n), a = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = i || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2228
2212
|
function l(c) {
|
|
2229
|
-
return
|
|
2213
|
+
return lo(e, c);
|
|
2230
2214
|
}
|
|
2231
|
-
switch (
|
|
2215
|
+
switch (uo(
|
|
2232
2216
|
t,
|
|
2233
2217
|
s,
|
|
2234
2218
|
e.indent,
|
|
@@ -2238,23 +2222,23 @@ function yo(e, t, n, i, r) {
|
|
|
2238
2222
|
e.forceQuotes && !i,
|
|
2239
2223
|
r
|
|
2240
2224
|
)) {
|
|
2241
|
-
case
|
|
2225
|
+
case Pn:
|
|
2242
2226
|
return t;
|
|
2243
|
-
case
|
|
2227
|
+
case Xe:
|
|
2244
2228
|
return "'" + t.replace(/'/g, "''") + "'";
|
|
2245
2229
|
case Un:
|
|
2246
|
-
return "|" + Lt(t, e.indent) + Bt(
|
|
2230
|
+
return "|" + Lt(t, e.indent) + Bt(Et(t, o));
|
|
2247
2231
|
case qn:
|
|
2248
|
-
return ">" + Lt(t, e.indent) + Bt(
|
|
2232
|
+
return ">" + Lt(t, e.indent) + Bt(Et(po(t, a), o));
|
|
2249
2233
|
case Ae:
|
|
2250
|
-
return '"' +
|
|
2234
|
+
return '"' + mo(t) + '"';
|
|
2251
2235
|
default:
|
|
2252
2236
|
throw new oe("impossible error: invalid scalar style");
|
|
2253
2237
|
}
|
|
2254
2238
|
}();
|
|
2255
2239
|
}
|
|
2256
2240
|
function Lt(e, t) {
|
|
2257
|
-
var n =
|
|
2241
|
+
var n = Dn(e) ? String(t) : "", i = e[e.length - 1] === `
|
|
2258
2242
|
`, r = i && (e[e.length - 2] === `
|
|
2259
2243
|
` || e === `
|
|
2260
2244
|
`), o = r ? "+" : i ? "" : "-";
|
|
@@ -2265,7 +2249,7 @@ function Bt(e) {
|
|
|
2265
2249
|
return e[e.length - 1] === `
|
|
2266
2250
|
` ? e.slice(0, -1) : e;
|
|
2267
2251
|
}
|
|
2268
|
-
function
|
|
2252
|
+
function po(e, t) {
|
|
2269
2253
|
for (var n = /(\n+)([^\n]*)/g, i = function() {
|
|
2270
2254
|
var c = e.indexOf(`
|
|
2271
2255
|
`);
|
|
@@ -2287,12 +2271,12 @@ function Rt(e, t) {
|
|
|
2287
2271
|
`, e.length - r > t && a > r ? l += e.slice(r, a) + `
|
|
2288
2272
|
` + e.slice(a + 1) : l += e.slice(r), l.slice(1);
|
|
2289
2273
|
}
|
|
2290
|
-
function
|
|
2274
|
+
function mo(e) {
|
|
2291
2275
|
for (var t = "", n = 0, i, r = 0; r < e.length; n >= 65536 ? r += 2 : r++)
|
|
2292
|
-
n = Te(e, r), i = re[n], !i &&
|
|
2276
|
+
n = Te(e, r), i = re[n], !i && Oe(n) ? (t += e[r], n >= 65536 && (t += e[r + 1])) : t += i || ro(n);
|
|
2293
2277
|
return t;
|
|
2294
2278
|
}
|
|
2295
|
-
function
|
|
2279
|
+
function ho(e, t, n) {
|
|
2296
2280
|
var i = "", r = e.tag, o, a, s;
|
|
2297
2281
|
for (o = 0, a = n.length; o < a; o += 1)
|
|
2298
2282
|
s = n[o], e.replacer && (s = e.replacer.call(n, String(o), s)), (pe(e, t, s, !1, !1) || typeof s > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
|
|
@@ -2301,16 +2285,16 @@ function vo(e, t, n) {
|
|
|
2301
2285
|
function Kt(e, t, n, i) {
|
|
2302
2286
|
var r = "", o = e.tag, a, s, l;
|
|
2303
2287
|
for (a = 0, s = n.length; a < s; a += 1)
|
|
2304
|
-
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (pe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r +=
|
|
2288
|
+
l = n[a], e.replacer && (l = e.replacer.call(n, String(a), l)), (pe(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += Ze(e, t)), e.dump && Ee === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
|
|
2305
2289
|
e.tag = o, e.dump = r || "[]";
|
|
2306
2290
|
}
|
|
2307
|
-
function
|
|
2291
|
+
function go(e, t, n) {
|
|
2308
2292
|
var i = "", r = e.tag, o = Object.keys(n), a, s, l, c, d;
|
|
2309
2293
|
for (a = 0, s = o.length; a < s; a += 1)
|
|
2310
2294
|
d = "", i !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[a], c = n[l], e.replacer && (c = e.replacer.call(n, l, c)), pe(e, t, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), pe(e, t, c, !1, !1) && (d += e.dump, i += d));
|
|
2311
2295
|
e.tag = r, e.dump = "{" + i + "}";
|
|
2312
2296
|
}
|
|
2313
|
-
function
|
|
2297
|
+
function yo(e, t, n, i) {
|
|
2314
2298
|
var r = "", o = e.tag, a = Object.keys(n), s, l, c, d, u, p;
|
|
2315
2299
|
if (e.sortKeys === !0)
|
|
2316
2300
|
a.sort();
|
|
@@ -2319,7 +2303,7 @@ function xo(e, t, n, i) {
|
|
|
2319
2303
|
else if (e.sortKeys)
|
|
2320
2304
|
throw new oe("sortKeys must be a boolean or a function");
|
|
2321
2305
|
for (s = 0, l = a.length; s < l; s += 1)
|
|
2322
|
-
p = "", (!i || r !== "") && (p +=
|
|
2306
|
+
p = "", (!i || r !== "") && (p += Ze(e, t)), c = a[s], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ee === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += Ze(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Ee === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
|
|
2323
2307
|
e.tag = o, e.dump = r || "{}";
|
|
2324
2308
|
}
|
|
2325
2309
|
function Nt(e, t, n) {
|
|
@@ -2348,11 +2332,11 @@ function pe(e, t, n, i, r, o, a) {
|
|
|
2348
2332
|
e.dump = "*ref_" + u;
|
|
2349
2333
|
else {
|
|
2350
2334
|
if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2351
|
-
i && Object.keys(e.dump).length !== 0 ? (
|
|
2335
|
+
i && Object.keys(e.dump).length !== 0 ? (yo(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (go(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2352
2336
|
else if (s === "[object Array]")
|
|
2353
|
-
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2337
|
+
i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Kt(e, t - 1, e.dump, r) : Kt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (ho(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2354
2338
|
else if (s === "[object String]")
|
|
2355
|
-
e.tag !== "?" &&
|
|
2339
|
+
e.tag !== "?" && fo(e, e.dump, t, o, l);
|
|
2356
2340
|
else {
|
|
2357
2341
|
if (s === "[object Undefined]")
|
|
2358
2342
|
return !1;
|
|
@@ -2365,71 +2349,71 @@ function pe(e, t, n, i, r, o, a) {
|
|
|
2365
2349
|
}
|
|
2366
2350
|
return !0;
|
|
2367
2351
|
}
|
|
2368
|
-
function
|
|
2352
|
+
function vo(e, t) {
|
|
2369
2353
|
var n = [], i = [], r, o;
|
|
2370
|
-
for (
|
|
2354
|
+
for (et(e, n, i), r = 0, o = i.length; r < o; r += 1)
|
|
2371
2355
|
t.duplicates.push(n[i[r]]);
|
|
2372
2356
|
t.usedDuplicates = new Array(o);
|
|
2373
2357
|
}
|
|
2374
|
-
function
|
|
2358
|
+
function et(e, t, n) {
|
|
2375
2359
|
var i, r, o;
|
|
2376
2360
|
if (e !== null && typeof e == "object")
|
|
2377
2361
|
if (r = t.indexOf(e), r !== -1)
|
|
2378
2362
|
n.indexOf(r) === -1 && n.push(r);
|
|
2379
2363
|
else if (t.push(e), Array.isArray(e))
|
|
2380
2364
|
for (r = 0, o = e.length; r < o; r += 1)
|
|
2381
|
-
|
|
2365
|
+
et(e[r], t, n);
|
|
2382
2366
|
else
|
|
2383
2367
|
for (i = Object.keys(e), r = 0, o = i.length; r < o; r += 1)
|
|
2384
|
-
|
|
2368
|
+
et(e[i[r]], t, n);
|
|
2385
2369
|
}
|
|
2386
|
-
function
|
|
2370
|
+
function bo(e, t) {
|
|
2387
2371
|
t = t || {};
|
|
2388
|
-
var n = new
|
|
2389
|
-
n.noRefs ||
|
|
2372
|
+
var n = new oo(t);
|
|
2373
|
+
n.noRefs || vo(e, n);
|
|
2390
2374
|
var i = e;
|
|
2391
2375
|
return n.replacer && (i = n.replacer.call({ "": i }, "", i)), pe(n, 0, i, !0, !0) ? n.dump + `
|
|
2392
2376
|
` : "";
|
|
2393
2377
|
}
|
|
2394
|
-
var
|
|
2395
|
-
dump:
|
|
2378
|
+
var xo = bo, Co = {
|
|
2379
|
+
dump: xo
|
|
2396
2380
|
};
|
|
2397
2381
|
function ut(e, t) {
|
|
2398
2382
|
return function() {
|
|
2399
2383
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2400
2384
|
};
|
|
2401
2385
|
}
|
|
2402
|
-
var
|
|
2386
|
+
var ko = ne, Ao = rn, _o = sn, wo = pn, So = mn, $o = ot, To = On.load, Io = On.loadAll, Eo = Co.dump, Fo = oe, Oo = {
|
|
2403
2387
|
binary: bn,
|
|
2404
2388
|
float: fn,
|
|
2405
2389
|
map: ln,
|
|
2406
2390
|
null: cn,
|
|
2407
2391
|
pairs: Cn,
|
|
2408
2392
|
set: kn,
|
|
2409
|
-
timestamp:
|
|
2393
|
+
timestamp: yn,
|
|
2410
2394
|
bool: un,
|
|
2411
2395
|
int: dn,
|
|
2412
2396
|
merge: vn,
|
|
2413
2397
|
omap: xn,
|
|
2414
2398
|
seq: on,
|
|
2415
2399
|
str: an
|
|
2416
|
-
},
|
|
2417
|
-
Type:
|
|
2418
|
-
Schema:
|
|
2419
|
-
FAILSAFE_SCHEMA:
|
|
2420
|
-
JSON_SCHEMA:
|
|
2421
|
-
CORE_SCHEMA:
|
|
2422
|
-
DEFAULT_SCHEMA:
|
|
2423
|
-
load:
|
|
2424
|
-
loadAll:
|
|
2425
|
-
dump:
|
|
2426
|
-
YAMLException:
|
|
2427
|
-
types:
|
|
2428
|
-
safeLoad:
|
|
2429
|
-
safeLoadAll:
|
|
2430
|
-
safeDump:
|
|
2400
|
+
}, Lo = ut("safeLoad", "load"), Bo = ut("safeLoadAll", "loadAll"), Ro = ut("safeDump", "dump"), Ko = {
|
|
2401
|
+
Type: ko,
|
|
2402
|
+
Schema: Ao,
|
|
2403
|
+
FAILSAFE_SCHEMA: _o,
|
|
2404
|
+
JSON_SCHEMA: wo,
|
|
2405
|
+
CORE_SCHEMA: So,
|
|
2406
|
+
DEFAULT_SCHEMA: $o,
|
|
2407
|
+
load: To,
|
|
2408
|
+
loadAll: Io,
|
|
2409
|
+
dump: Eo,
|
|
2410
|
+
YAMLException: Fo,
|
|
2411
|
+
types: Oo,
|
|
2412
|
+
safeLoad: Lo,
|
|
2413
|
+
safeLoadAll: Bo,
|
|
2414
|
+
safeDump: Ro
|
|
2431
2415
|
};
|
|
2432
|
-
const
|
|
2416
|
+
const No = { class: "yaml-config config-card-code-block" }, Hn = /* @__PURE__ */ z({
|
|
2433
2417
|
__name: "YamlCodeBlock",
|
|
2434
2418
|
props: {
|
|
2435
2419
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2439,24 +2423,24 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2439
2423
|
}
|
|
2440
2424
|
},
|
|
2441
2425
|
setup(e) {
|
|
2442
|
-
const t = e, n =
|
|
2426
|
+
const t = e, n = F(() => {
|
|
2443
2427
|
const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
|
|
2444
|
-
return Object.keys(i).length === 0 && i.constructor === Object ? "" :
|
|
2428
|
+
return Object.keys(i).length === 0 && i.constructor === Object ? "" : Ko.dump(i).trim();
|
|
2445
2429
|
});
|
|
2446
2430
|
return (i, r) => {
|
|
2447
|
-
const o =
|
|
2448
|
-
return m(), S("div",
|
|
2431
|
+
const o = P("KCodeBlock");
|
|
2432
|
+
return m(), S("div", No, [
|
|
2449
2433
|
t.entityRecord ? (m(), j(o, {
|
|
2450
2434
|
key: 0,
|
|
2451
2435
|
id: "yaml-codeblock",
|
|
2452
2436
|
code: n.value,
|
|
2453
2437
|
language: "yaml",
|
|
2454
2438
|
theme: "dark"
|
|
2455
|
-
}, null, 8, ["code"])) :
|
|
2439
|
+
}, null, 8, ["code"])) : N("", !0)
|
|
2456
2440
|
]);
|
|
2457
2441
|
};
|
|
2458
2442
|
}
|
|
2459
|
-
}),
|
|
2443
|
+
}), Mo = { class: "terraform-config config-card-code-block" }, ie = " ", Vn = /* @__PURE__ */ z({
|
|
2460
2444
|
__name: "TerraformCodeBlock",
|
|
2461
2445
|
props: {
|
|
2462
2446
|
/** A record to indicate the entity's configuration, used to populate the Terraform code block */
|
|
@@ -2467,7 +2451,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2467
2451
|
entityType: {
|
|
2468
2452
|
type: String,
|
|
2469
2453
|
required: !0,
|
|
2470
|
-
validator: (e) =>
|
|
2454
|
+
validator: (e) => Pe.includes(e)
|
|
2471
2455
|
},
|
|
2472
2456
|
credentialType: {
|
|
2473
2457
|
type: String,
|
|
@@ -2480,7 +2464,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2480
2464
|
}
|
|
2481
2465
|
},
|
|
2482
2466
|
setup(e) {
|
|
2483
|
-
const t = e, n =
|
|
2467
|
+
const t = e, n = F(() => ui.includes(t.entityType)), i = (l, c) => {
|
|
2484
2468
|
const d = ie;
|
|
2485
2469
|
let u = "";
|
|
2486
2470
|
return typeof l == "string" ? u += `${d}${c} = "${l}"
|
|
@@ -2495,11 +2479,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2495
2479
|
`), l === null)
|
|
2496
2480
|
return c ? p += `${u}}` : p = "{}", p;
|
|
2497
2481
|
const g = Object.fromEntries(Object.entries(l).filter(([, x]) => x !== null));
|
|
2498
|
-
let
|
|
2499
|
-
for (const [x,
|
|
2500
|
-
Array.isArray(
|
|
2501
|
-
`,
|
|
2502
|
-
`,
|
|
2482
|
+
let h = "";
|
|
2483
|
+
for (const [x, y] of Object.entries(g))
|
|
2484
|
+
Array.isArray(y) ? y.length === 0 ? h = "[]" : (h = `[
|
|
2485
|
+
`, h += o(y, void 0, u), h += `${u}${ie}]`) : y && typeof y == "object" ? (h = `{
|
|
2486
|
+
`, h += r(y, void 0, u), h += `${u}${ie}}`) : h = String(y ?? ""), typeof y == "string" && (h = `"${h}"`), p += `${u}${ie}${x} = ${h}
|
|
2503
2487
|
`;
|
|
2504
2488
|
return c ? p += `${u}}
|
|
2505
2489
|
` : p;
|
|
@@ -2511,9 +2495,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2511
2495
|
c && (l.length === 0 ? p += `${u}${c} = [` : p += `${u}${c} = [
|
|
2512
2496
|
`);
|
|
2513
2497
|
for (let g = 0; g < l.length; g++) {
|
|
2514
|
-
const
|
|
2515
|
-
typeof
|
|
2516
|
-
`, p += r(
|
|
2498
|
+
const h = l[g];
|
|
2499
|
+
typeof h == "object" ? (p += `${u}${ie}{
|
|
2500
|
+
`, p += r(h, void 0, u), p += `${u}${ie}}`) : typeof h == "string" ? p += `${u}${ie}"${h}"` : p += `${u}${ie}${String(h ?? "")}`, g < l.length - 1 && (p += ","), p += `
|
|
2517
2501
|
`;
|
|
2518
2502
|
}
|
|
2519
2503
|
return c && (l.length === 0 ? p += `]
|
|
@@ -2524,21 +2508,21 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2524
2508
|
for (const [d, u] of Object.entries(l))
|
|
2525
2509
|
Array.isArray(u) ? c += o(u, d) : typeof u == "object" ? c += r(u, d) : c += i(u, d);
|
|
2526
2510
|
return c;
|
|
2527
|
-
}, s =
|
|
2528
|
-
var p, g,
|
|
2529
|
-
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([,
|
|
2511
|
+
}, s = F(() => {
|
|
2512
|
+
var p, g, h, x, y, k, C;
|
|
2513
|
+
const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, T]) => T != null)), c = t.entityRecord.config ? Object.fromEntries(Object.entries((p = t.entityRecord) == null ? void 0 : p.config).filter(([, T]) => T != null)) : void 0;
|
|
2530
2514
|
if (c && (l.config = c), Object.keys(l).length === 0)
|
|
2531
2515
|
return "";
|
|
2532
2516
|
delete l.id;
|
|
2533
2517
|
let d = "", u = "";
|
|
2534
|
-
if ((g = l.service) != null && g.id ? (u = "service", delete l.service) : (
|
|
2535
|
-
const
|
|
2536
|
-
d += `resource "konnect_event_gateway_${
|
|
2518
|
+
if ((g = l.service) != null && g.id ? (u = "service", delete l.service) : (h = l.route) != null && h.id ? (u = "route", delete l.route) : (x = l.consumer) != null && x.id ? (u = "consumer", delete l.consumer) : (y = l.consumer_group) != null && y.id ? (u = "consumer_group", delete l.consumer_group) : (k = l.certificate) != null && k.id ? (u = "certificate", delete l.certificate) : (C = l.set) != null && C.id && (u = "set", delete l.set), n.value) {
|
|
2519
|
+
const T = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
|
|
2520
|
+
d += `resource "konnect_event_gateway_${T}" "my_eventgateway${T.replaceAll("_", "")}" {
|
|
2537
2521
|
`, d += `${ie}provider = konnect-beta
|
|
2538
2522
|
`;
|
|
2539
2523
|
} else if (t.entityType === "plugin") {
|
|
2540
|
-
const
|
|
2541
|
-
delete l.name, d += `resource "konnect_gateway_plugin_${
|
|
2524
|
+
const T = t.credentialType.replace(/-/g, "_") || (l.name + "").replace(/-/g, "_");
|
|
2525
|
+
delete l.name, d += `resource "konnect_gateway_plugin_${T}" "my_${T}" {
|
|
2542
2526
|
`;
|
|
2543
2527
|
} else
|
|
2544
2528
|
d += `resource "konnect_gateway_${t.entityType}" "my_${t.entityType}" {
|
|
@@ -2551,92 +2535,25 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2551
2535
|
`, d;
|
|
2552
2536
|
});
|
|
2553
2537
|
return (l, c) => {
|
|
2554
|
-
const d =
|
|
2555
|
-
return m(), S("div",
|
|
2538
|
+
const d = P("KCodeBlock");
|
|
2539
|
+
return m(), S("div", Mo, [
|
|
2556
2540
|
t.entityRecord ? (m(), j(d, {
|
|
2557
2541
|
key: 0,
|
|
2558
2542
|
id: "terraform-codeblock",
|
|
2559
2543
|
code: s.value,
|
|
2560
2544
|
language: "terraform",
|
|
2561
2545
|
theme: "dark"
|
|
2562
|
-
}, null, 8, ["code"])) :
|
|
2546
|
+
}, null, 8, ["code"])) : N("", !0)
|
|
2563
2547
|
]);
|
|
2564
2548
|
};
|
|
2565
2549
|
}
|
|
2566
|
-
}),
|
|
2567
|
-
__name: "DeckCodeBlock",
|
|
2568
|
-
props: {
|
|
2569
|
-
entityRecord: {},
|
|
2570
|
-
entityType: {},
|
|
2571
|
-
geoServerUrl: {},
|
|
2572
|
-
controlPlaneName: {}
|
|
2573
|
-
},
|
|
2574
|
-
setup(e) {
|
|
2575
|
-
const t = e, n = $(() => {
|
|
2576
|
-
const o = {
|
|
2577
|
-
_format_version: "3.0"
|
|
2578
|
-
};
|
|
2579
|
-
return t.controlPlaneName && (o._konnect = {
|
|
2580
|
-
control_plane_name: t.controlPlaneName
|
|
2581
|
-
}), o;
|
|
2582
|
-
}), i = $(() => {
|
|
2583
|
-
var s, l, c, d, u;
|
|
2584
|
-
const o = Object.fromEntries(Object.entries(t.entityRecord).filter(([, p]) => p !== null && p !== "" && (Array.isArray(p) ? p.length !== 0 : !0)));
|
|
2585
|
-
t.entityType === Ee.Plugin ? ((s = o.service) != null && s.id && (o.service = o.service.id), (l = o.route) != null && l.id && (o.route = o.route.id), (c = o.consumer) != null && c.id && (o.consumer = o.consumer.id), (d = o.consumer_group) != null && d.id && (o.consumer_group = o.consumer_group.id)) : t.entityType === Ee.Key && (u = o.key_set) != null && u.id && (o.key_set = o.key_set.id);
|
|
2586
|
-
const a = {
|
|
2587
|
-
...n.value,
|
|
2588
|
-
[t.entityType + "s"]: [o]
|
|
2589
|
-
};
|
|
2590
|
-
return Hn.dump(a);
|
|
2591
|
-
}), r = $(() => {
|
|
2592
|
-
let o = "deck gatway apply -";
|
|
2593
|
-
return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo
|
|
2594
|
-
'${i.value}
|
|
2595
|
-
' | ${o}`;
|
|
2596
|
-
});
|
|
2597
|
-
return (o, a) => {
|
|
2598
|
-
const s = D("KBadge"), l = D("KCodeBlock");
|
|
2599
|
-
return m(), S("div", Do, [
|
|
2600
|
-
B("p", null, [
|
|
2601
|
-
a[1] || (a[1] = U(" The ", -1)),
|
|
2602
|
-
K(s, null, {
|
|
2603
|
-
default: k(() => [...a[0] || (a[0] = [
|
|
2604
|
-
U("DECK_KONNECT_TOKEN", -1)
|
|
2605
|
-
])]),
|
|
2606
|
-
_: 1
|
|
2607
|
-
}),
|
|
2608
|
-
a[2] || (a[2] = U(" environment variable must be added first. See ", -1)),
|
|
2609
|
-
a[3] || (a[3] = B("a", {
|
|
2610
|
-
href: "https://developer.konghq.com/deck/get-started/",
|
|
2611
|
-
target: "_blank"
|
|
2612
|
-
}, "the documentation", -1)),
|
|
2613
|
-
a[4] || (a[4] = U(" for details. ", -1))
|
|
2614
|
-
]),
|
|
2615
|
-
K(l, {
|
|
2616
|
-
id: "deck-env-codeblock",
|
|
2617
|
-
code: "export DECK_KONNECT_TOKEN=<your_konnect_PAT>",
|
|
2618
|
-
language: "shell",
|
|
2619
|
-
"single-line": "",
|
|
2620
|
-
style: { "margin-bottom": "28px" },
|
|
2621
|
-
theme: "dark"
|
|
2622
|
-
}),
|
|
2623
|
-
t.entityRecord ? (m(), j(l, {
|
|
2624
|
-
key: 0,
|
|
2625
|
-
id: "deck-codeblock",
|
|
2626
|
-
code: r.value,
|
|
2627
|
-
language: "shell",
|
|
2628
|
-
theme: "dark"
|
|
2629
|
-
}, null, 8, ["code"])) : M("", !0)
|
|
2630
|
-
]);
|
|
2631
|
-
};
|
|
2632
|
-
}
|
|
2633
|
-
}), Uo = {
|
|
2550
|
+
}), jo = {
|
|
2634
2551
|
key: 0,
|
|
2635
2552
|
class: "config-card-display-form"
|
|
2636
|
-
},
|
|
2553
|
+
}, Do = ["data-testid"], Po = {
|
|
2637
2554
|
key: 0,
|
|
2638
2555
|
class: "config-card-prop-section-title"
|
|
2639
|
-
},
|
|
2556
|
+
}, Uo = /* @__PURE__ */ z({
|
|
2640
2557
|
__name: "ConfigCardDisplay",
|
|
2641
2558
|
props: {
|
|
2642
2559
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2648,7 +2565,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2648
2565
|
entityType: {
|
|
2649
2566
|
type: String,
|
|
2650
2567
|
required: !0,
|
|
2651
|
-
validator: (e) =>
|
|
2568
|
+
validator: (e) => Pe.includes(e)
|
|
2652
2569
|
},
|
|
2653
2570
|
subEntityType: {
|
|
2654
2571
|
// only for event gateway entities
|
|
@@ -2693,32 +2610,32 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2693
2610
|
}
|
|
2694
2611
|
},
|
|
2695
2612
|
setup(e) {
|
|
2696
|
-
const t = e, n = De(), { i18n: { t: i } } =
|
|
2613
|
+
const t = e, n = De(), { i18n: { t: i } } = Y.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = F(() => {
|
|
2697
2614
|
if (!t.record)
|
|
2698
2615
|
return t.record;
|
|
2699
2616
|
let s = t.record;
|
|
2700
2617
|
t.codeBlockRecordFormatter && (s = t.codeBlockRecordFormatter(s, t.format));
|
|
2701
2618
|
const l = JSON.parse(JSON.stringify(s));
|
|
2702
2619
|
return delete l.created_at, delete l.updated_at, l;
|
|
2703
|
-
}), a =
|
|
2620
|
+
}), a = F(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
|
|
2704
2621
|
return (s, l) => (m(), S(ue, null, [
|
|
2705
|
-
e.format === "structured" ? (m(), S("div",
|
|
2622
|
+
e.format === "structured" ? (m(), S("div", jo, [
|
|
2706
2623
|
(m(!0), S(ue, null, ce(e.propListTypes, (c) => (m(), S("div", {
|
|
2707
2624
|
key: `config-card-details-${c}-props`,
|
|
2708
2625
|
class: fe(`config-card-details-${c}-props`),
|
|
2709
2626
|
"data-testid": `config-card-details-${c}-props`
|
|
2710
2627
|
}, [
|
|
2711
|
-
c !== "basic" ? (m(), S("div",
|
|
2712
|
-
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) =>
|
|
2628
|
+
c !== "basic" ? (m(), S("div", Po, L(c === "advanced" ? $(i)("baseConfigCard.sections.advanced") : c === "plugin" ? $(i)("baseConfigCard.sections.plugin") : $(i)("baseConfigCard.sections.policy")), 1)) : N("", !0),
|
|
2629
|
+
(m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => D(s.$slots, `config-card-item-${d.key}`, {
|
|
2713
2630
|
key: d.key,
|
|
2714
2631
|
item: d
|
|
2715
2632
|
}, () => [
|
|
2716
|
-
|
|
2717
|
-
label:
|
|
2718
|
-
|
|
2633
|
+
M(Xt, { item: d }, Se({
|
|
2634
|
+
label: w(() => [
|
|
2635
|
+
D(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
|
|
2719
2636
|
]),
|
|
2720
|
-
[d.key]:
|
|
2721
|
-
|
|
2637
|
+
[d.key]: w(({ rowValue: u }) => [
|
|
2638
|
+
D(s.$slots, d.key, {
|
|
2722
2639
|
row: d,
|
|
2723
2640
|
rowValue: u
|
|
2724
2641
|
}, void 0, !0)
|
|
@@ -2727,45 +2644,38 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2727
2644
|
}, [
|
|
2728
2645
|
r(d) ? {
|
|
2729
2646
|
name: "label-tooltip",
|
|
2730
|
-
fn:
|
|
2731
|
-
|
|
2647
|
+
fn: w(() => [
|
|
2648
|
+
D(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
|
|
2732
2649
|
]),
|
|
2733
2650
|
key: "0"
|
|
2734
2651
|
} : void 0
|
|
2735
2652
|
]), 1032, ["item"])
|
|
2736
2653
|
], !0)), 128))
|
|
2737
|
-
], 10,
|
|
2738
|
-
])) :
|
|
2654
|
+
], 10, Do))), 128))
|
|
2655
|
+
])) : N("", !0),
|
|
2739
2656
|
e.format === "json" && o.value ? (m(), j(en, {
|
|
2740
2657
|
key: 1,
|
|
2741
2658
|
config: t.config,
|
|
2742
2659
|
"entity-record": o.value,
|
|
2743
2660
|
"fetcher-url": a.value,
|
|
2744
2661
|
"request-method": "get"
|
|
2745
|
-
}, null, 8, ["config", "entity-record", "fetcher-url"])) :
|
|
2746
|
-
e.format === "yaml" && o.value ? (m(), j(
|
|
2662
|
+
}, null, 8, ["config", "entity-record", "fetcher-url"])) : N("", !0),
|
|
2663
|
+
e.format === "yaml" && o.value ? (m(), j(Hn, {
|
|
2747
2664
|
key: 2,
|
|
2748
2665
|
"entity-record": o.value
|
|
2749
|
-
}, null, 8, ["entity-record"])) :
|
|
2750
|
-
e.format === "terraform" && o.value ? (m(), j(
|
|
2666
|
+
}, null, 8, ["entity-record"])) : N("", !0),
|
|
2667
|
+
e.format === "terraform" && o.value ? (m(), j(Vn, {
|
|
2751
2668
|
key: 3,
|
|
2752
2669
|
"entity-record": o.value,
|
|
2753
2670
|
"entity-type": t.entityType,
|
|
2754
2671
|
"sub-entity-type": t.subEntityType
|
|
2755
|
-
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) :
|
|
2756
|
-
e.format === "deck" && o.value ? (m(), j(Wn, {
|
|
2757
|
-
key: 4,
|
|
2758
|
-
"control-plane-name": t.config.app === "konnect" ? t.config.controlPlaneName : void 0,
|
|
2759
|
-
"entity-record": o.value,
|
|
2760
|
-
"entity-type": t.entityType,
|
|
2761
|
-
"geo-server-url": t.config.app === "konnect" ? t.config.geoServerUrl : void 0
|
|
2762
|
-
}, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])) : M("", !0)
|
|
2672
|
+
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : N("", !0)
|
|
2763
2673
|
], 64));
|
|
2764
2674
|
}
|
|
2765
|
-
}),
|
|
2675
|
+
}), qo = /* @__PURE__ */ se(Uo, [["__scopeId", "data-v-a7689049"]]), Ho = {
|
|
2766
2676
|
class: "config-card-title",
|
|
2767
2677
|
"data-testid": "config-card-title"
|
|
2768
|
-
},
|
|
2678
|
+
}, Vo = { class: "config-card-actions" }, Yo = ["href"], Wo = { class: "config-card-details-section" }, Jo = /* @__PURE__ */ z({
|
|
2769
2679
|
__name: "EntityBaseConfigCard",
|
|
2770
2680
|
props: {
|
|
2771
2681
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2786,7 +2696,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2786
2696
|
entityType: {
|
|
2787
2697
|
type: String,
|
|
2788
2698
|
required: !0,
|
|
2789
|
-
validator: (e) =>
|
|
2699
|
+
validator: (e) => Pe.includes(e)
|
|
2790
2700
|
},
|
|
2791
2701
|
/**
|
|
2792
2702
|
* Sub Entity type, required to generate terraform code for event gateway entities
|
|
@@ -2888,9 +2798,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2888
2798
|
emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
|
|
2889
2799
|
setup(e, { emit: t }) {
|
|
2890
2800
|
var O;
|
|
2891
|
-
const n = t, i = e, { i18n: { t: r } } =
|
|
2892
|
-
|
|
2893
|
-
const { axiosInstance: s } =
|
|
2801
|
+
const n = t, i = e, { i18n: { t: r } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
|
|
2802
|
+
Y.useSubSchema(i.pluginConfigKey);
|
|
2803
|
+
const { axiosInstance: s } = Y.useAxios((O = i.config) == null ? void 0 : O.axiosRequestConfig), l = [
|
|
2894
2804
|
{
|
|
2895
2805
|
label: r("baseConfigCard.general.structuredFormat"),
|
|
2896
2806
|
value: "structured",
|
|
@@ -2909,14 +2819,14 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2909
2819
|
label: r("baseForm.configuration.terraform"),
|
|
2910
2820
|
value: "terraform"
|
|
2911
2821
|
});
|
|
2912
|
-
const c = l[0].value, d =
|
|
2822
|
+
const c = l[0].value, d = K(c), u = (f) => {
|
|
2913
2823
|
d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
|
|
2914
2824
|
}, p = (f, v) => {
|
|
2915
2825
|
localStorage.setItem(f, v);
|
|
2916
2826
|
};
|
|
2917
2827
|
be(d, (f) => {
|
|
2918
2828
|
i.config.formatPreferenceKey && p(i.config.formatPreferenceKey, f);
|
|
2919
|
-
}),
|
|
2829
|
+
}), tt(() => {
|
|
2920
2830
|
if (i.config.formatPreferenceKey) {
|
|
2921
2831
|
const f = localStorage.getItem(i.config.formatPreferenceKey);
|
|
2922
2832
|
f && l.some((v) => v.value === f) ? d.value = f : d.value = c, p(i.config.formatPreferenceKey, d.value);
|
|
@@ -2963,140 +2873,140 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
2963
2873
|
// the last property displayed
|
|
2964
2874
|
section: ae.Basic
|
|
2965
2875
|
}
|
|
2966
|
-
},
|
|
2876
|
+
}, h = K(!1), x = K(!1), y = K(""), k = K({}), C = F(() => {
|
|
2967
2877
|
var b, H, J;
|
|
2968
|
-
if (!
|
|
2878
|
+
if (!k.value)
|
|
2969
2879
|
return [];
|
|
2970
|
-
const f = [], v = Object.keys(
|
|
2971
|
-
for (const I in
|
|
2880
|
+
const f = [], v = Object.keys(k.value).length;
|
|
2881
|
+
for (const I in k.value) {
|
|
2972
2882
|
if (I === "__ui_data") continue;
|
|
2973
|
-
const
|
|
2974
|
-
let
|
|
2975
|
-
(G || G === 0) && (
|
|
2883
|
+
const B = (H = (b = i.configSchema) == null ? void 0 : b[I]) == null ? void 0 : H.order, G = (J = g[I]) == null ? void 0 : J.order;
|
|
2884
|
+
let U = v;
|
|
2885
|
+
(G || G === 0) && (U = G === -1 ? v + 1 : G), B && (U = B === -1 ? v + 1 : B), f.push([I, U]);
|
|
2976
2886
|
}
|
|
2977
|
-
return f.sort(function(I,
|
|
2978
|
-
return I[1] -
|
|
2887
|
+
return f.sort(function(I, B) {
|
|
2888
|
+
return I[1] - B[1];
|
|
2979
2889
|
}), f.map((I) => {
|
|
2980
2890
|
var dt, ft;
|
|
2981
|
-
const
|
|
2891
|
+
const B = I[0], G = (dt = k.value) == null ? void 0 : dt[B], U = ((ft = i.configSchema) == null ? void 0 : ft[B]) || {}, Q = g[B];
|
|
2982
2892
|
return {
|
|
2983
|
-
key:
|
|
2893
|
+
key: B,
|
|
2984
2894
|
value: G,
|
|
2985
|
-
hidden:
|
|
2986
|
-
type:
|
|
2987
|
-
label:
|
|
2988
|
-
tooltip:
|
|
2989
|
-
section:
|
|
2895
|
+
hidden: U.hidden || !1,
|
|
2896
|
+
type: U.type ?? ((Q == null ? void 0 : Q.type) || V.Text),
|
|
2897
|
+
label: U.label ?? ((Q == null ? void 0 : Q.label) || a(B)),
|
|
2898
|
+
tooltip: U.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
|
|
2899
|
+
section: U.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
|
|
2990
2900
|
};
|
|
2991
2901
|
}).filter((I) => !I.hidden && I.key !== i.pluginConfigKey);
|
|
2992
|
-
}),
|
|
2902
|
+
}), T = F(() => {
|
|
2993
2903
|
var H, J;
|
|
2994
|
-
if (!
|
|
2904
|
+
if (!k.value || !i.pluginConfigKey)
|
|
2995
2905
|
return [];
|
|
2996
|
-
const f =
|
|
2906
|
+
const f = k.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
|
|
2997
2907
|
for (const I in f) {
|
|
2998
|
-
const
|
|
2999
|
-
let
|
|
3000
|
-
|
|
2908
|
+
const B = (J = (H = i.pluginConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
|
|
2909
|
+
let U = G != null && G !== "" ? v - 1 : v;
|
|
2910
|
+
B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
|
|
3001
2911
|
}
|
|
3002
|
-
return b.sort(function(I,
|
|
3003
|
-
return I[1] -
|
|
2912
|
+
return b.sort(function(I, B) {
|
|
2913
|
+
return I[1] - B[1];
|
|
3004
2914
|
}), b.map((I) => {
|
|
3005
2915
|
var Q;
|
|
3006
|
-
const
|
|
2916
|
+
const B = I[0], G = f[B], U = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[B]) || {};
|
|
3007
2917
|
return {
|
|
3008
|
-
key:
|
|
2918
|
+
key: B,
|
|
3009
2919
|
value: G,
|
|
3010
|
-
hidden:
|
|
3011
|
-
type:
|
|
3012
|
-
label:
|
|
3013
|
-
tooltip:
|
|
2920
|
+
hidden: U.hidden || !1,
|
|
2921
|
+
type: U.type ?? V.Text,
|
|
2922
|
+
label: U.label ?? a(B),
|
|
2923
|
+
tooltip: U.tooltip ?? void 0,
|
|
3014
2924
|
section: ae.Plugin
|
|
3015
2925
|
};
|
|
3016
2926
|
}).filter((I) => !I.hidden);
|
|
3017
|
-
}),
|
|
2927
|
+
}), W = F(() => {
|
|
3018
2928
|
var H, J;
|
|
3019
|
-
if (!
|
|
2929
|
+
if (!k.value || !i.policyConfigKey)
|
|
3020
2930
|
return [];
|
|
3021
|
-
const f =
|
|
2931
|
+
const f = k.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
|
|
3022
2932
|
for (const I in f) {
|
|
3023
|
-
const
|
|
3024
|
-
let
|
|
3025
|
-
|
|
2933
|
+
const B = (J = (H = i.policyConfigSchema) == null ? void 0 : H[I]) == null ? void 0 : J.order, G = f[I];
|
|
2934
|
+
let U = G != null && G !== "" ? v - 1 : v;
|
|
2935
|
+
B && (U = B === -1 ? v + 1 : B), b.push([I, U]);
|
|
3026
2936
|
}
|
|
3027
|
-
return b.sort(function(I,
|
|
3028
|
-
return I[1] -
|
|
2937
|
+
return b.sort(function(I, B) {
|
|
2938
|
+
return I[1] - B[1];
|
|
3029
2939
|
}), b.map((I) => {
|
|
3030
2940
|
var Q;
|
|
3031
|
-
const
|
|
2941
|
+
const B = I[0], G = f[B], U = ((Q = i.policyConfigSchema) == null ? void 0 : Q[B]) || {};
|
|
3032
2942
|
return {
|
|
3033
|
-
key:
|
|
2943
|
+
key: B,
|
|
3034
2944
|
value: G,
|
|
3035
|
-
hidden:
|
|
3036
|
-
type:
|
|
3037
|
-
label:
|
|
3038
|
-
tooltip:
|
|
2945
|
+
hidden: U.hidden || !1,
|
|
2946
|
+
type: U.type ?? V.Text,
|
|
2947
|
+
label: U.label ?? a(B),
|
|
2948
|
+
tooltip: U.tooltip ?? void 0,
|
|
3039
2949
|
section: ae.Policy
|
|
3040
2950
|
};
|
|
3041
2951
|
}).filter((I) => !I.hidden);
|
|
3042
|
-
}), X =
|
|
2952
|
+
}), X = F(() => {
|
|
3043
2953
|
var f, v, b, H, J, I;
|
|
3044
2954
|
return {
|
|
3045
|
-
basic: (f = C.value) == null ? void 0 : f.filter((
|
|
3046
|
-
advanced: (v = C.value) == null ? void 0 : v.filter((
|
|
3047
|
-
plugin: (H =
|
|
3048
|
-
policy: (I =
|
|
2955
|
+
basic: (f = C.value) == null ? void 0 : f.filter((B) => B.section === ae.Basic),
|
|
2956
|
+
advanced: (v = C.value) == null ? void 0 : v.filter((B) => B.section === ae.Advanced),
|
|
2957
|
+
plugin: (H = T.value) == null ? void 0 : H.concat((b = C.value) == null ? void 0 : b.filter((B) => B.section === ae.Plugin)),
|
|
2958
|
+
policy: (I = W.value) == null ? void 0 : I.concat((J = C.value) == null ? void 0 : J.filter((B) => B.section === ae.Policy))
|
|
3049
2959
|
};
|
|
3050
|
-
}),
|
|
2960
|
+
}), _ = F(() => {
|
|
3051
2961
|
const f = [];
|
|
3052
2962
|
return X.value.basic.length && f.push("basic"), X.value.advanced.length && f.push("advanced"), X.value.plugin.length && f.push("plugin"), X.value.policy.length && f.push("policy"), f;
|
|
3053
|
-
}),
|
|
2963
|
+
}), A = F(() => {
|
|
3054
2964
|
var v, b;
|
|
3055
2965
|
let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
|
|
3056
2966
|
return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (b = i.config) != null && b.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
|
|
3057
2967
|
});
|
|
3058
|
-
return be(
|
|
2968
|
+
return be(h, (f) => {
|
|
3059
2969
|
n("loading", f);
|
|
3060
|
-
}, { immediate: !0 }),
|
|
3061
|
-
x.value = !1,
|
|
2970
|
+
}, { immediate: !0 }), nt(async () => {
|
|
2971
|
+
x.value = !1, h.value = !0;
|
|
3062
2972
|
try {
|
|
3063
|
-
const { data: f } = await s.get(
|
|
2973
|
+
const { data: f } = await s.get(A.value);
|
|
3064
2974
|
if (i.dataKey)
|
|
3065
2975
|
if (typeof f[i.dataKey] < "u")
|
|
3066
|
-
|
|
2976
|
+
k.value = { ...f[i.dataKey] };
|
|
3067
2977
|
else
|
|
3068
2978
|
throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
|
|
3069
|
-
else i.recordResolver ?
|
|
2979
|
+
else i.recordResolver ? k.value = { ...i.recordResolver(f) } : k.value = { ...f };
|
|
3070
2980
|
Object.keys(i.configSchema).filter((b) => i.configSchema[b].forceShow).forEach((b) => {
|
|
3071
|
-
|
|
2981
|
+
k.value && typeof k.value[b] > "u" && (k.value[b] = null);
|
|
3072
2982
|
}), n("fetch:success", f);
|
|
3073
2983
|
} catch (f) {
|
|
3074
2984
|
const v = o(f);
|
|
3075
|
-
|
|
2985
|
+
y.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, x.value = !0, n("fetch:error", f);
|
|
3076
2986
|
} finally {
|
|
3077
|
-
|
|
2987
|
+
h.value = !1;
|
|
3078
2988
|
}
|
|
3079
2989
|
}), (f, v) => {
|
|
3080
|
-
const b =
|
|
2990
|
+
const b = P("KLabel"), H = P("KSelect"), J = P("KButton"), I = P("KSkeleton"), B = P("KEmptyState"), G = P("KCard");
|
|
3081
2991
|
return m(), j(G, {
|
|
3082
2992
|
class: "kong-ui-entity-base-config-card",
|
|
3083
2993
|
"title-tag": e.titleTag
|
|
3084
2994
|
}, Se({
|
|
3085
|
-
actions:
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
2995
|
+
actions: w(() => [
|
|
2996
|
+
R("div", Vo, [
|
|
2997
|
+
D(f.$slots, "actions", {}, void 0, !0),
|
|
2998
|
+
M(b, {
|
|
3089
2999
|
class: "config-format-select-label",
|
|
3090
3000
|
"data-testid": "config-format-select-label"
|
|
3091
3001
|
}, {
|
|
3092
|
-
default:
|
|
3093
|
-
|
|
3002
|
+
default: w(() => [
|
|
3003
|
+
q(L(e.label), 1)
|
|
3094
3004
|
]),
|
|
3095
3005
|
_: 1
|
|
3096
3006
|
}),
|
|
3097
|
-
|
|
3007
|
+
M(H, {
|
|
3098
3008
|
modelValue: d.value,
|
|
3099
|
-
"onUpdate:modelValue": v[0] || (v[0] = (
|
|
3009
|
+
"onUpdate:modelValue": v[0] || (v[0] = (U) => d.value = U),
|
|
3100
3010
|
"data-testid": "select-config-format",
|
|
3101
3011
|
items: l,
|
|
3102
3012
|
onChange: u
|
|
@@ -3107,51 +3017,51 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3107
3017
|
class: "book-icon",
|
|
3108
3018
|
"data-testid": "book-icon"
|
|
3109
3019
|
}, {
|
|
3110
|
-
default:
|
|
3111
|
-
|
|
3020
|
+
default: w(() => [
|
|
3021
|
+
R("a", {
|
|
3112
3022
|
href: e.configCardDoc,
|
|
3113
3023
|
rel: "noopener",
|
|
3114
3024
|
target: "_blank"
|
|
3115
3025
|
}, [
|
|
3116
|
-
|
|
3117
|
-
], 8,
|
|
3026
|
+
M($(Vt), { size: $(tr) }, null, 8, ["size"])
|
|
3027
|
+
], 8, Yo)
|
|
3118
3028
|
]),
|
|
3119
3029
|
_: 1
|
|
3120
|
-
})) :
|
|
3030
|
+
})) : N("", !0)
|
|
3121
3031
|
])
|
|
3122
3032
|
]),
|
|
3123
|
-
default:
|
|
3124
|
-
|
|
3033
|
+
default: w(() => [
|
|
3034
|
+
h.value ? (m(), j(I, {
|
|
3125
3035
|
key: 0,
|
|
3126
3036
|
"data-testid": "config-card-loader",
|
|
3127
3037
|
"table-columns": 2,
|
|
3128
3038
|
type: "table"
|
|
3129
|
-
})) : x.value ? (m(), j(
|
|
3039
|
+
})) : x.value ? (m(), j(B, {
|
|
3130
3040
|
key: 1,
|
|
3131
3041
|
"data-testid": "config-card-fetch-error",
|
|
3132
3042
|
"icon-variant": "error"
|
|
3133
3043
|
}, {
|
|
3134
|
-
default:
|
|
3135
|
-
|
|
3044
|
+
default: w(() => [
|
|
3045
|
+
R("h3", null, L(y.value), 1)
|
|
3136
3046
|
]),
|
|
3137
3047
|
_: 1
|
|
3138
|
-
})) :
|
|
3139
|
-
|
|
3140
|
-
|
|
3048
|
+
})) : N("", !0),
|
|
3049
|
+
R("div", Wo, [
|
|
3050
|
+
M(qo, {
|
|
3141
3051
|
"code-block-record-formatter": e.codeBlockRecordFormatter,
|
|
3142
3052
|
config: e.config,
|
|
3143
3053
|
"entity-type": e.entityType,
|
|
3144
|
-
"fetcher-url":
|
|
3054
|
+
"fetcher-url": A.value,
|
|
3145
3055
|
format: d.value,
|
|
3146
|
-
"prop-list-types":
|
|
3056
|
+
"prop-list-types": _.value,
|
|
3147
3057
|
"property-collections": X.value,
|
|
3148
|
-
record:
|
|
3058
|
+
record: k.value,
|
|
3149
3059
|
"sub-entity-type": e.subEntityType
|
|
3150
3060
|
}, Se({ _: 2 }, [
|
|
3151
|
-
ce(Object.keys(f.$slots), (
|
|
3152
|
-
name:
|
|
3153
|
-
fn:
|
|
3154
|
-
|
|
3061
|
+
ce(Object.keys(f.$slots), (U) => ({
|
|
3062
|
+
name: U,
|
|
3063
|
+
fn: w((Q) => [
|
|
3064
|
+
D(f.$slots, U, qt({ record: k.value }, Q), void 0, !0)
|
|
3155
3065
|
])
|
|
3156
3066
|
}))
|
|
3157
3067
|
]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
|
|
@@ -3161,10 +3071,10 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3161
3071
|
}, [
|
|
3162
3072
|
e.hideTitle ? void 0 : {
|
|
3163
3073
|
name: "title",
|
|
3164
|
-
fn:
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3074
|
+
fn: w(() => [
|
|
3075
|
+
R("span", Ho, [
|
|
3076
|
+
D(f.$slots, "title", {}, () => [
|
|
3077
|
+
q(L($(r)("baseConfigCard.title")), 1)
|
|
3168
3078
|
], !0)
|
|
3169
3079
|
])
|
|
3170
3080
|
]),
|
|
@@ -3173,7 +3083,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3173
3083
|
]), 1032, ["title-tag"]);
|
|
3174
3084
|
};
|
|
3175
3085
|
}
|
|
3176
|
-
}),
|
|
3086
|
+
}), ms = /* @__PURE__ */ se(Jo, [["__scopeId", "data-v-f2b42324"]]), Go = ["novalidate"], zo = /* @__PURE__ */ z({
|
|
3177
3087
|
__name: "EntityBaseForm",
|
|
3178
3088
|
props: {
|
|
3179
3089
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3194,7 +3104,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3194
3104
|
entityType: {
|
|
3195
3105
|
type: String,
|
|
3196
3106
|
required: !0,
|
|
3197
|
-
validator: (e) =>
|
|
3107
|
+
validator: (e) => Pe.includes(e)
|
|
3198
3108
|
},
|
|
3199
3109
|
/**
|
|
3200
3110
|
* Sub entity type, required for event gateway entities to generate terraform code
|
|
@@ -3297,19 +3207,19 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3297
3207
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
|
|
3298
3208
|
setup(e, { expose: t, emit: n }) {
|
|
3299
3209
|
var X;
|
|
3300
|
-
const i = n, r = e, o =
|
|
3301
|
-
var
|
|
3302
|
-
let
|
|
3303
|
-
return r.config.app === "konnect" ?
|
|
3304
|
-
}),
|
|
3305
|
-
|
|
3306
|
-
},
|
|
3210
|
+
const i = n, r = e, o = li(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: s } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = K(!1), d = F(() => !!r.editId), u = K(!1), p = K(""), g = F(() => r.canSubmit === !1 || r.isReadonly), h = K(!1), x = F(() => {
|
|
3211
|
+
var A, O;
|
|
3212
|
+
let _ = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3213
|
+
return r.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((A = r.config) == null ? void 0 : A.controlPlaneId) || "") : r.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (_ = _.replace(/{id}/gi, r.editId), _) : (_ = _.replace(/\/{id}/gi, ""), _);
|
|
3214
|
+
}), y = () => {
|
|
3215
|
+
h.value = !h.value;
|
|
3216
|
+
}, k = () => {
|
|
3307
3217
|
r.config.cancelRoute ? o.push(r.config.cancelRoute) : C();
|
|
3308
3218
|
}, C = () => {
|
|
3309
3219
|
i("cancel");
|
|
3310
|
-
},
|
|
3220
|
+
}, T = () => {
|
|
3311
3221
|
g.value || i("submit");
|
|
3312
|
-
},
|
|
3222
|
+
}, W = K([
|
|
3313
3223
|
{
|
|
3314
3224
|
title: a("baseForm.configuration.json"),
|
|
3315
3225
|
hash: "#json"
|
|
@@ -3319,154 +3229,143 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3319
3229
|
hash: "#yaml"
|
|
3320
3230
|
}
|
|
3321
3231
|
]);
|
|
3322
|
-
return r.config.app === "konnect" && r.entityType !==
|
|
3232
|
+
return r.config.app === "konnect" && r.entityType !== it.Other && W.value.splice(1, 0, {
|
|
3323
3233
|
title: a("baseForm.configuration.terraform"),
|
|
3324
3234
|
hash: "#terraform"
|
|
3325
|
-
}),
|
|
3326
|
-
|
|
3327
|
-
|
|
3328
|
-
}), be(() => c.value, (w) => {
|
|
3329
|
-
i("loading", w);
|
|
3330
|
-
}, { immediate: !0 }), it(async () => {
|
|
3235
|
+
}), be(() => c.value, (_) => {
|
|
3236
|
+
i("loading", _);
|
|
3237
|
+
}, { immediate: !0 }), nt(async () => {
|
|
3331
3238
|
if (r.editId)
|
|
3332
3239
|
try {
|
|
3333
3240
|
u.value = !1, c.value = !0;
|
|
3334
|
-
const { data:
|
|
3335
|
-
i("fetch:success",
|
|
3336
|
-
} catch (
|
|
3337
|
-
const
|
|
3338
|
-
p.value =
|
|
3241
|
+
const { data: _ } = await l.get(x.value);
|
|
3242
|
+
i("fetch:success", _);
|
|
3243
|
+
} catch (_) {
|
|
3244
|
+
const A = s(_);
|
|
3245
|
+
p.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, u.value = !0, i("fetch:error", _);
|
|
3339
3246
|
} finally {
|
|
3340
3247
|
c.value = !1;
|
|
3341
3248
|
}
|
|
3342
3249
|
}), t({
|
|
3343
|
-
viewConfig:
|
|
3250
|
+
viewConfig: y,
|
|
3344
3251
|
formCancel: C,
|
|
3345
|
-
formSubmit:
|
|
3346
|
-
}), (
|
|
3347
|
-
const O =
|
|
3348
|
-
return m(), j(
|
|
3349
|
-
default:
|
|
3252
|
+
formSubmit: T
|
|
3253
|
+
}), (_, A) => {
|
|
3254
|
+
const O = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), H = P("KTabs"), J = P("KSlideout");
|
|
3255
|
+
return m(), j(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
|
|
3256
|
+
default: w(() => [
|
|
3350
3257
|
c.value ? (m(), j(O, {
|
|
3351
3258
|
key: 0,
|
|
3352
3259
|
type: "form"
|
|
3353
3260
|
})) : u.value ? (m(), j(f, {
|
|
3354
3261
|
key: 1,
|
|
3355
|
-
"action-button-text":
|
|
3262
|
+
"action-button-text": $(a)("baseForm.actions.back"),
|
|
3356
3263
|
"data-testid": "form-fetch-error",
|
|
3357
3264
|
"icon-variant": "error",
|
|
3358
|
-
onClickAction:
|
|
3265
|
+
onClickAction: k
|
|
3359
3266
|
}, {
|
|
3360
|
-
default:
|
|
3361
|
-
|
|
3267
|
+
default: w(() => [
|
|
3268
|
+
R("h3", null, L(p.value), 1)
|
|
3362
3269
|
]),
|
|
3363
3270
|
_: 1
|
|
3364
3271
|
}, 8, ["action-button-text"])) : (m(), S("form", {
|
|
3365
3272
|
key: 2,
|
|
3366
3273
|
"data-testid": "form-content",
|
|
3367
3274
|
novalidate: r.noValidate,
|
|
3368
|
-
onReset:
|
|
3369
|
-
onSubmit:
|
|
3275
|
+
onReset: Le(C, ["prevent"]),
|
|
3276
|
+
onSubmit: Le(T, ["prevent"])
|
|
3370
3277
|
}, [
|
|
3371
|
-
|
|
3278
|
+
D(_.$slots, "default", {}, void 0, !0),
|
|
3372
3279
|
e.errorMessage ? (m(), j(v, {
|
|
3373
3280
|
key: 0,
|
|
3374
3281
|
appearance: "danger",
|
|
3375
3282
|
"data-testid": "form-error",
|
|
3376
3283
|
message: e.errorMessage
|
|
3377
|
-
}, null, 8, ["message"])) :
|
|
3378
|
-
e.hideActions ?
|
|
3284
|
+
}, null, 8, ["message"])) : N("", !0),
|
|
3285
|
+
e.hideActions ? N("", !0) : (m(), j(Ht, {
|
|
3379
3286
|
key: 1,
|
|
3380
3287
|
disabled: !e.actionTeleportTarget,
|
|
3381
3288
|
to: e.actionTeleportTarget
|
|
3382
3289
|
}, [
|
|
3383
|
-
|
|
3290
|
+
R("div", {
|
|
3384
3291
|
class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
|
|
3385
3292
|
"data-testid": "form-actions"
|
|
3386
3293
|
}, [
|
|
3387
|
-
|
|
3388
|
-
|
|
3294
|
+
D(_.$slots, "form-actions", {}, () => [
|
|
3295
|
+
M(b, {
|
|
3389
3296
|
appearance: "tertiary",
|
|
3390
3297
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
|
|
3391
|
-
onClick:
|
|
3298
|
+
onClick: A[0] || (A[0] = (I) => y())
|
|
3392
3299
|
}, {
|
|
3393
|
-
default:
|
|
3394
|
-
|
|
3300
|
+
default: w(() => [
|
|
3301
|
+
q(L($(a)("baseForm.actions.viewConfiguration")), 1)
|
|
3395
3302
|
]),
|
|
3396
3303
|
_: 1
|
|
3397
3304
|
}, 8, ["data-testid"]),
|
|
3398
|
-
|
|
3305
|
+
M(b, {
|
|
3399
3306
|
appearance: "secondary",
|
|
3400
3307
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
|
|
3401
3308
|
disabled: e.isReadonly,
|
|
3402
3309
|
type: "reset",
|
|
3403
|
-
onClick:
|
|
3310
|
+
onClick: A[1] || (A[1] = (I) => !!e.actionTeleportTarget && C())
|
|
3404
3311
|
}, {
|
|
3405
|
-
default:
|
|
3406
|
-
|
|
3312
|
+
default: w(() => [
|
|
3313
|
+
q(L(e.cancelButtonText ?? $(a)("baseForm.actions.cancel")), 1)
|
|
3407
3314
|
]),
|
|
3408
3315
|
_: 1
|
|
3409
3316
|
}, 8, ["data-testid", "disabled"]),
|
|
3410
|
-
|
|
3317
|
+
M(b, {
|
|
3411
3318
|
appearance: "primary",
|
|
3412
3319
|
"data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
|
|
3413
3320
|
disabled: g.value,
|
|
3414
3321
|
type: "submit",
|
|
3415
|
-
onClick:
|
|
3322
|
+
onClick: A[2] || (A[2] = (I) => !!e.actionTeleportTarget && T())
|
|
3416
3323
|
}, {
|
|
3417
|
-
default:
|
|
3418
|
-
|
|
3324
|
+
default: w(() => [
|
|
3325
|
+
q(L(e.saveButtonText ?? $(a)("baseForm.actions.save")), 1)
|
|
3419
3326
|
]),
|
|
3420
3327
|
_: 1
|
|
3421
3328
|
}, 8, ["data-testid", "disabled"])
|
|
3422
3329
|
], !0)
|
|
3423
3330
|
], 2)
|
|
3424
3331
|
], 8, ["disabled", "to"]))
|
|
3425
|
-
], 40,
|
|
3426
|
-
|
|
3332
|
+
], 40, Go)),
|
|
3333
|
+
M(J, {
|
|
3427
3334
|
"close-on-blur": !1,
|
|
3428
3335
|
"data-testid": "form-view-configuration-slideout",
|
|
3429
3336
|
"has-overlay": !1,
|
|
3430
3337
|
"offset-top": e.slidoutTopOffset,
|
|
3431
|
-
title:
|
|
3432
|
-
visible:
|
|
3433
|
-
onClose:
|
|
3338
|
+
title: $(a)("baseForm.configuration.title"),
|
|
3339
|
+
visible: h.value,
|
|
3340
|
+
onClose: A[4] || (A[4] = (I) => y())
|
|
3434
3341
|
}, {
|
|
3435
|
-
default:
|
|
3436
|
-
|
|
3437
|
-
|
|
3342
|
+
default: w(() => [
|
|
3343
|
+
R("div", null, L($(a)("baseForm.configuration.message")), 1),
|
|
3344
|
+
M(H, {
|
|
3438
3345
|
"data-testid": "form-view-configuration-slideout-tabs",
|
|
3439
|
-
tabs:
|
|
3440
|
-
onChange:
|
|
3346
|
+
tabs: W.value,
|
|
3347
|
+
onChange: A[3] || (A[3] = (I) => i("codeBlockTabChange", I.replace("#", "")))
|
|
3441
3348
|
}, {
|
|
3442
|
-
json:
|
|
3443
|
-
|
|
3349
|
+
json: w(() => [
|
|
3350
|
+
M(en, {
|
|
3444
3351
|
config: e.config,
|
|
3445
3352
|
"entity-record": r.formFields,
|
|
3446
3353
|
"fetcher-url": x.value,
|
|
3447
3354
|
"request-method": r.editId ? "put" : "post"
|
|
3448
3355
|
}, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
|
|
3449
3356
|
]),
|
|
3450
|
-
yaml:
|
|
3451
|
-
|
|
3357
|
+
yaml: w(() => [
|
|
3358
|
+
M(Hn, {
|
|
3452
3359
|
"entity-record": r.formFields
|
|
3453
3360
|
}, null, 8, ["entity-record"])
|
|
3454
3361
|
]),
|
|
3455
|
-
terraform:
|
|
3456
|
-
|
|
3362
|
+
terraform: w(() => [
|
|
3363
|
+
M(Vn, {
|
|
3457
3364
|
"entity-record": r.formFields,
|
|
3458
3365
|
"entity-type": e.entityType,
|
|
3459
3366
|
"sub-entity-type": e.subEntityType
|
|
3460
3367
|
}, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
|
|
3461
3368
|
]),
|
|
3462
|
-
deck: k(() => [
|
|
3463
|
-
K(Wn, {
|
|
3464
|
-
"control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
|
|
3465
|
-
"entity-record": r.formFields,
|
|
3466
|
-
"entity-type": e.entityType,
|
|
3467
|
-
"geo-server-url": e.config.app === "konnect" ? e.config.geoServerUrl : void 0
|
|
3468
|
-
}, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])
|
|
3469
|
-
]),
|
|
3470
3369
|
_: 1
|
|
3471
3370
|
}, 8, ["tabs"])
|
|
3472
3371
|
]),
|
|
@@ -3477,7 +3376,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3477
3376
|
});
|
|
3478
3377
|
};
|
|
3479
3378
|
}
|
|
3480
|
-
}),
|
|
3379
|
+
}), hs = /* @__PURE__ */ se(zo, [["__scopeId", "data-v-10f3d6b0"]]), Qo = ["data-truncate"], Zo = /* @__PURE__ */ z({
|
|
3481
3380
|
__name: "EntityBaseTableCell",
|
|
3482
3381
|
props: {
|
|
3483
3382
|
keyName: {
|
|
@@ -3494,49 +3393,49 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3494
3393
|
}
|
|
3495
3394
|
},
|
|
3496
3395
|
setup(e) {
|
|
3497
|
-
const t = e, n =
|
|
3498
|
-
var
|
|
3499
|
-
return ((
|
|
3500
|
-
}), i =
|
|
3501
|
-
var
|
|
3502
|
-
return ((
|
|
3503
|
-
}), r =
|
|
3504
|
-
var
|
|
3505
|
-
const
|
|
3506
|
-
return
|
|
3507
|
-
}), o =
|
|
3396
|
+
const t = e, n = F(() => {
|
|
3397
|
+
var y;
|
|
3398
|
+
return ((y = t.rowEl) == null ? void 0 : y.querySelector(`[data-testid="${t.keyName}"]`)) || null;
|
|
3399
|
+
}), i = F(() => {
|
|
3400
|
+
var y;
|
|
3401
|
+
return ((y = n.value) == null ? void 0 : y.querySelector('[data-truncate="true"]')) || null;
|
|
3402
|
+
}), r = F(() => {
|
|
3403
|
+
var k, C;
|
|
3404
|
+
const y = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3405
|
+
return y ? ((C = y[0]) == null ? void 0 : C.getAttribute("data-testid")) === t.keyName : !0;
|
|
3406
|
+
}), o = F(() => r.value || t.tooltip);
|
|
3508
3407
|
let a;
|
|
3509
3408
|
const s = () => {
|
|
3510
3409
|
a && (a.disconnect(), a = void 0);
|
|
3511
3410
|
}, l = () => {
|
|
3512
|
-
var
|
|
3513
|
-
let
|
|
3411
|
+
var k, C, T;
|
|
3412
|
+
let y = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
|
|
3514
3413
|
if (n.value && "getComputedStyle" in window) {
|
|
3515
|
-
const
|
|
3516
|
-
|
|
3414
|
+
const W = window.getComputedStyle(n.value);
|
|
3415
|
+
y -= (parseFloat(W.paddingLeft) || 0) + (parseFloat(W.paddingRight) || 0);
|
|
3517
3416
|
}
|
|
3518
|
-
d.value = ((C = i.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, u.value =
|
|
3519
|
-
}, c =
|
|
3417
|
+
d.value = ((C = i.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, u.value = y, p.value = ((T = c.value) == null ? void 0 : T.innerText) || "";
|
|
3418
|
+
}, c = K({}), d = K(0), u = K(0), p = K(""), g = F(() => [i.value, n.value]), h = be(
|
|
3520
3419
|
g,
|
|
3521
|
-
(
|
|
3420
|
+
(y) => {
|
|
3522
3421
|
if (o.value && (s(), "ResizeObserver" in window && window)) {
|
|
3523
|
-
a = new ResizeObserver((
|
|
3422
|
+
a = new ResizeObserver((k) => {
|
|
3524
3423
|
window.requestAnimationFrame(() => {
|
|
3525
|
-
!Array.isArray(
|
|
3424
|
+
!Array.isArray(k) || !k.length || l();
|
|
3526
3425
|
});
|
|
3527
3426
|
});
|
|
3528
|
-
for (const
|
|
3529
|
-
|
|
3427
|
+
for (const k of y)
|
|
3428
|
+
k && a.observe(k);
|
|
3530
3429
|
}
|
|
3531
3430
|
},
|
|
3532
3431
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3533
|
-
), x =
|
|
3534
|
-
return
|
|
3432
|
+
), x = F(() => o.value ? d.value > u.value : !1);
|
|
3433
|
+
return tt(() => {
|
|
3535
3434
|
l();
|
|
3536
|
-
}),
|
|
3537
|
-
|
|
3538
|
-
}), (
|
|
3539
|
-
const C =
|
|
3435
|
+
}), zn(() => {
|
|
3436
|
+
h();
|
|
3437
|
+
}), (y, k) => {
|
|
3438
|
+
const C = P("KTooltip");
|
|
3540
3439
|
return m(), S("span", {
|
|
3541
3440
|
ref_key: "contentRef",
|
|
3542
3441
|
ref: c,
|
|
@@ -3546,27 +3445,27 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3546
3445
|
key: 0,
|
|
3547
3446
|
"data-truncate": o.value || void 0
|
|
3548
3447
|
}, [
|
|
3549
|
-
|
|
3448
|
+
M(C, {
|
|
3550
3449
|
"max-width": "300",
|
|
3551
3450
|
placement: "bottom-start",
|
|
3552
3451
|
text: x.value ? p.value : ""
|
|
3553
3452
|
}, {
|
|
3554
|
-
default:
|
|
3555
|
-
|
|
3453
|
+
default: w(() => [
|
|
3454
|
+
D(y.$slots, "default", {}, void 0, !0)
|
|
3556
3455
|
]),
|
|
3557
3456
|
_: 3
|
|
3558
3457
|
}, 8, ["text"])
|
|
3559
|
-
], 8,
|
|
3458
|
+
], 8, Qo)) : D(y.$slots, "default", { key: 1 }, void 0, !0)
|
|
3560
3459
|
], 512);
|
|
3561
3460
|
};
|
|
3562
3461
|
}
|
|
3563
|
-
}),
|
|
3462
|
+
}), Xo = /* @__PURE__ */ se(Zo, [["__scopeId", "data-v-a3a65cac"]]), el = { class: "toolbar-container" }, tl = {
|
|
3564
3463
|
key: 0,
|
|
3565
3464
|
class: "toolbar-button-container"
|
|
3566
|
-
},
|
|
3465
|
+
}, nl = {
|
|
3567
3466
|
key: 0,
|
|
3568
3467
|
class: "hidden"
|
|
3569
|
-
},
|
|
3468
|
+
}, il = /* @__PURE__ */ z({
|
|
3570
3469
|
__name: "EntityBaseTable",
|
|
3571
3470
|
props: {
|
|
3572
3471
|
// table header configuration
|
|
@@ -3711,7 +3610,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3711
3610
|
},
|
|
3712
3611
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
|
|
3713
3612
|
setup(e, { emit: t }) {
|
|
3714
|
-
const n = e, i = t, { i18n: { t: r } } =
|
|
3613
|
+
const n = e, i = t, { i18n: { t: r } } = Y.useI18n(), o = F(() => {
|
|
3715
3614
|
var f, v;
|
|
3716
3615
|
return typeof n.errorMessage == "string" ? {
|
|
3717
3616
|
hasError: !!n.errorMessage,
|
|
@@ -3722,7 +3621,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3722
3621
|
title: (f = n.errorMessage) == null ? void 0 : f.title,
|
|
3723
3622
|
message: (v = n.errorMessage) == null ? void 0 : v.message
|
|
3724
3623
|
};
|
|
3725
|
-
}), a =
|
|
3624
|
+
}), a = F(() => n.cacheIdentifier || n.preferencesStorageKey), s = F(() => {
|
|
3726
3625
|
const f = [];
|
|
3727
3626
|
return Object.keys(n.tableHeaders).forEach((b) => {
|
|
3728
3627
|
const H = n.tableHeaders[b];
|
|
@@ -3740,7 +3639,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3740
3639
|
"data-rowid": f.id,
|
|
3741
3640
|
"data-testid": f.name,
|
|
3742
3641
|
...n.rowAttributes(f)
|
|
3743
|
-
}), c =
|
|
3642
|
+
}), c = K({}), d = (f) => {
|
|
3744
3643
|
var v;
|
|
3745
3644
|
return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
|
|
3746
3645
|
}, u = (f) => {
|
|
@@ -3756,47 +3655,47 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3756
3655
|
}, p = (f) => {
|
|
3757
3656
|
C(f), i("state", f);
|
|
3758
3657
|
}, g = () => {
|
|
3759
|
-
i("empty-state-cta-clicked"),
|
|
3760
|
-
},
|
|
3658
|
+
i("empty-state-cta-clicked"), h();
|
|
3659
|
+
}, h = () => {
|
|
3761
3660
|
i("clear-search-input");
|
|
3762
|
-
}, x =
|
|
3661
|
+
}, x = F(() => n.disableRowClick ? void 0 : (f, v) => {
|
|
3763
3662
|
i("click:row", v);
|
|
3764
|
-
}),
|
|
3663
|
+
}), y = (f) => {
|
|
3765
3664
|
i("sort", f);
|
|
3766
|
-
}, { hideTableToolbar:
|
|
3767
|
-
const f =
|
|
3665
|
+
}, { hideTableToolbar: k, handleStateChange: C } = Y.useTableState(() => n.query), { setTablePreferences: T, getTablePreferences: W } = mi(), X = K(W(a.value, n.defaultTablePreferences)), _ = F(() => {
|
|
3666
|
+
const f = W(a.value);
|
|
3768
3667
|
return {
|
|
3769
3668
|
...n.initialFetcherParams,
|
|
3770
3669
|
...f
|
|
3771
3670
|
};
|
|
3772
|
-
}),
|
|
3671
|
+
}), A = (f) => {
|
|
3773
3672
|
X.value = f, s.value.forEach((v) => {
|
|
3774
3673
|
!("hidable" in v) || !X.value.columnVisibility || v.hidable === !1 && (X.value.columnVisibility[v.key] = !0);
|
|
3775
|
-
}), a.value &&
|
|
3776
|
-
}, O =
|
|
3674
|
+
}), a.value && T(a.value, f);
|
|
3675
|
+
}, O = F(() => ({
|
|
3777
3676
|
disablePageJump: n.disablePaginationPageJump,
|
|
3778
3677
|
offset: n.paginationType === "offset",
|
|
3779
3678
|
...n.paginationAttributes
|
|
3780
3679
|
}));
|
|
3781
3680
|
return (f, v) => {
|
|
3782
|
-
const b =
|
|
3681
|
+
const b = P("KTableData"), H = P("KCard");
|
|
3783
3682
|
return m(), j(H, {
|
|
3784
3683
|
class: "kong-ui-entity-base-table",
|
|
3785
3684
|
title: e.title,
|
|
3786
3685
|
"title-tag": e.titleTag
|
|
3787
3686
|
}, {
|
|
3788
|
-
default:
|
|
3789
|
-
|
|
3687
|
+
default: w(() => [
|
|
3688
|
+
M(b, {
|
|
3790
3689
|
ref_key: "tableRefs",
|
|
3791
3690
|
ref: c,
|
|
3792
3691
|
"cache-identifier": a.value,
|
|
3793
3692
|
"cell-attrs": u,
|
|
3794
3693
|
"client-sort": e.enableClientSort,
|
|
3795
|
-
"empty-state-action-message": e.query ?
|
|
3694
|
+
"empty-state-action-message": e.query ? $(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
|
|
3796
3695
|
"empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
|
|
3797
3696
|
"empty-state-icon-variant": e.query ? "search" : "kong",
|
|
3798
|
-
"empty-state-message": e.query ?
|
|
3799
|
-
"empty-state-title": e.query ?
|
|
3697
|
+
"empty-state-message": e.query ? $(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
|
|
3698
|
+
"empty-state-title": e.query ? $(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
|
|
3800
3699
|
error: o.value.hasError,
|
|
3801
3700
|
"error-state-message": o.value.message,
|
|
3802
3701
|
"error-state-title": o.value.title,
|
|
@@ -3805,8 +3704,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3805
3704
|
headers: s.value,
|
|
3806
3705
|
"hide-pagination": e.hidePagination,
|
|
3807
3706
|
"hide-pagination-when-optional": e.hidePaginationWhenOptional,
|
|
3808
|
-
"hide-toolbar": e.hideToolbar ??
|
|
3809
|
-
"initial-fetcher-params":
|
|
3707
|
+
"hide-toolbar": e.hideToolbar ?? $(k),
|
|
3708
|
+
"initial-fetcher-params": _.value,
|
|
3810
3709
|
loading: e.isLoading,
|
|
3811
3710
|
"pagination-attributes": O.value,
|
|
3812
3711
|
"resize-columns": "",
|
|
@@ -3818,45 +3717,45 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3818
3717
|
"table-preferences": X.value,
|
|
3819
3718
|
onEmptyStateActionClick: g,
|
|
3820
3719
|
"onRow:click": x.value,
|
|
3821
|
-
onSort: v[0] || (v[0] = (J) =>
|
|
3720
|
+
onSort: v[0] || (v[0] = (J) => y(J)),
|
|
3822
3721
|
onState: p,
|
|
3823
|
-
"onUpdate:tablePreferences":
|
|
3722
|
+
"onUpdate:tablePreferences": A
|
|
3824
3723
|
}, Se({
|
|
3825
|
-
toolbar:
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
f.$slots["toolbar-button"] ? (m(), S("div",
|
|
3829
|
-
|
|
3830
|
-
])) :
|
|
3724
|
+
toolbar: w(() => [
|
|
3725
|
+
R("div", el, [
|
|
3726
|
+
D(f.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3727
|
+
f.$slots["toolbar-button"] ? (m(), S("div", tl, [
|
|
3728
|
+
D(f.$slots, "toolbar-button", {}, void 0, !0)
|
|
3729
|
+
])) : N("", !0)
|
|
3831
3730
|
])
|
|
3832
3731
|
]),
|
|
3833
|
-
"action-items":
|
|
3834
|
-
|
|
3732
|
+
"action-items": w(({ row: J }) => [
|
|
3733
|
+
D(f.$slots, "actions", { row: J }, void 0, !0)
|
|
3835
3734
|
]),
|
|
3836
3735
|
_: 2
|
|
3837
3736
|
}, [
|
|
3838
3737
|
f.$slots["empty-state"] ? {
|
|
3839
3738
|
name: "empty-state",
|
|
3840
|
-
fn:
|
|
3841
|
-
|
|
3739
|
+
fn: w(() => [
|
|
3740
|
+
D(f.$slots, "empty-state", {}, void 0, !0)
|
|
3842
3741
|
]),
|
|
3843
3742
|
key: "0"
|
|
3844
3743
|
} : void 0,
|
|
3845
3744
|
ce(e.tableHeaders, (J, I) => ({
|
|
3846
3745
|
name: I,
|
|
3847
|
-
fn:
|
|
3848
|
-
|
|
3746
|
+
fn: w(({ row: B, rowValue: G }) => [
|
|
3747
|
+
M(Xo, {
|
|
3849
3748
|
"key-name": String(I),
|
|
3850
|
-
"row-el": d(
|
|
3749
|
+
"row-el": d(B),
|
|
3851
3750
|
tooltip: J.tooltip
|
|
3852
3751
|
}, {
|
|
3853
|
-
default:
|
|
3854
|
-
|
|
3855
|
-
row:
|
|
3752
|
+
default: w(() => [
|
|
3753
|
+
D(f.$slots, I, {
|
|
3754
|
+
row: B,
|
|
3856
3755
|
rowKey: e.rowKey,
|
|
3857
3756
|
rowValue: G
|
|
3858
3757
|
}, () => [
|
|
3859
|
-
|
|
3758
|
+
q(L(G), 1)
|
|
3860
3759
|
], !0)
|
|
3861
3760
|
]),
|
|
3862
3761
|
_: 2
|
|
@@ -3865,27 +3764,27 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3865
3764
|
})),
|
|
3866
3765
|
e.query ? void 0 : {
|
|
3867
3766
|
name: "empty-state-action-icon",
|
|
3868
|
-
fn:
|
|
3869
|
-
|
|
3767
|
+
fn: w(() => [
|
|
3768
|
+
M($(Yt))
|
|
3870
3769
|
]),
|
|
3871
3770
|
key: "1"
|
|
3872
3771
|
}
|
|
3873
3772
|
]), 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"]),
|
|
3874
|
-
f.$slots["outside-actions"] &&
|
|
3875
|
-
|
|
3876
|
-
])) :
|
|
3773
|
+
f.$slots["outside-actions"] && $(k) ? (m(), S("div", nl, [
|
|
3774
|
+
D(f.$slots, "outside-actions", {}, void 0, !0)
|
|
3775
|
+
])) : N("", !0)
|
|
3877
3776
|
]),
|
|
3878
3777
|
_: 3
|
|
3879
3778
|
}, 8, ["title", "title-tag"]);
|
|
3880
3779
|
};
|
|
3881
3780
|
}
|
|
3882
|
-
}),
|
|
3781
|
+
}), gs = /* @__PURE__ */ se(il, [["__scopeId", "data-v-44153100"]]), rl = {
|
|
3883
3782
|
key: 0,
|
|
3884
3783
|
class: "kong-ui-entity-delete-error"
|
|
3885
|
-
},
|
|
3784
|
+
}, al = {
|
|
3886
3785
|
key: 1,
|
|
3887
3786
|
class: "description"
|
|
3888
|
-
},
|
|
3787
|
+
}, ol = /* @__PURE__ */ z({
|
|
3889
3788
|
__name: "EntityDeleteModal",
|
|
3890
3789
|
props: {
|
|
3891
3790
|
visible: {
|
|
@@ -3924,13 +3823,13 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3924
3823
|
},
|
|
3925
3824
|
emits: ["cancel", "proceed"],
|
|
3926
3825
|
setup(e, { emit: t }) {
|
|
3927
|
-
const { i18nT: n } =
|
|
3826
|
+
const { i18nT: n } = Y.useI18n(), i = e, r = t, o = F(() => i.needConfirm ? i.entityName : ""), a = () => {
|
|
3928
3827
|
r("cancel");
|
|
3929
3828
|
}, s = () => {
|
|
3930
3829
|
r("proceed");
|
|
3931
3830
|
};
|
|
3932
3831
|
return (l, c) => {
|
|
3933
|
-
const d =
|
|
3832
|
+
const d = P("KAlert"), u = P("KPrompt");
|
|
3934
3833
|
return m(), j(u, {
|
|
3935
3834
|
"action-button-appearance": "danger",
|
|
3936
3835
|
"action-button-disabled": e.actionPending,
|
|
@@ -3942,50 +3841,50 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3942
3841
|
onCancel: a,
|
|
3943
3842
|
onProceed: s
|
|
3944
3843
|
}, {
|
|
3945
|
-
default:
|
|
3946
|
-
e.error ? (m(), S("div",
|
|
3947
|
-
|
|
3948
|
-
default:
|
|
3949
|
-
|
|
3844
|
+
default: w(() => [
|
|
3845
|
+
e.error ? (m(), S("div", rl, [
|
|
3846
|
+
M(d, { appearance: "danger" }, {
|
|
3847
|
+
default: w(() => [
|
|
3848
|
+
q(L(e.error), 1)
|
|
3950
3849
|
]),
|
|
3951
3850
|
_: 1
|
|
3952
3851
|
})
|
|
3953
|
-
])) :
|
|
3954
|
-
|
|
3852
|
+
])) : N("", !0),
|
|
3853
|
+
M($(n), {
|
|
3955
3854
|
class: "message",
|
|
3956
3855
|
keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3957
3856
|
tag: "p"
|
|
3958
3857
|
}, Se({
|
|
3959
|
-
entityType:
|
|
3960
|
-
|
|
3858
|
+
entityType: w(() => [
|
|
3859
|
+
q(L(i.entityType), 1)
|
|
3961
3860
|
]),
|
|
3962
3861
|
_: 2
|
|
3963
3862
|
}, [
|
|
3964
3863
|
i.entityName ? {
|
|
3965
3864
|
name: "entityName",
|
|
3966
|
-
fn:
|
|
3967
|
-
|
|
3865
|
+
fn: w(() => [
|
|
3866
|
+
R("strong", null, L(i.entityName), 1)
|
|
3968
3867
|
]),
|
|
3969
3868
|
key: "0"
|
|
3970
3869
|
} : void 0
|
|
3971
3870
|
]), 1032, ["keypath"]),
|
|
3972
|
-
i.description || l.$slots.description ? (m(), S("div",
|
|
3973
|
-
|
|
3974
|
-
|
|
3871
|
+
i.description || l.$slots.description ? (m(), S("div", al, [
|
|
3872
|
+
D(l.$slots, "description", {}, () => [
|
|
3873
|
+
R("p", null, L(i.description), 1)
|
|
3975
3874
|
], !0)
|
|
3976
|
-
])) :
|
|
3875
|
+
])) : N("", !0)
|
|
3977
3876
|
]),
|
|
3978
3877
|
_: 3
|
|
3979
3878
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
3980
3879
|
};
|
|
3981
3880
|
}
|
|
3982
|
-
}),
|
|
3881
|
+
}), ys = /* @__PURE__ */ se(ol, [["__scopeId", "data-v-4361d622"]]), ll = {
|
|
3983
3882
|
fill: "none",
|
|
3984
3883
|
height: "20",
|
|
3985
3884
|
viewBox: "0 0 20 20",
|
|
3986
3885
|
width: "20",
|
|
3987
3886
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3988
|
-
},
|
|
3887
|
+
}, sl = {
|
|
3989
3888
|
id: "mask0_180_20349",
|
|
3990
3889
|
height: "20",
|
|
3991
3890
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3993,35 +3892,35 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
3993
3892
|
width: "20",
|
|
3994
3893
|
x: "0",
|
|
3995
3894
|
y: "0"
|
|
3996
|
-
},
|
|
3895
|
+
}, cl = ["fill"], ul = { mask: "url(#mask0_180_20349)" }, dl = ["fill"], Mt = /* @__PURE__ */ z({
|
|
3997
3896
|
__name: "IconFilter",
|
|
3998
3897
|
props: {
|
|
3999
3898
|
color: {
|
|
4000
3899
|
type: String,
|
|
4001
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3900
|
+
default: `var(--kong-ui-entity-filter-color, ${Gi})`
|
|
4002
3901
|
}
|
|
4003
3902
|
},
|
|
4004
3903
|
setup(e) {
|
|
4005
|
-
return (t, n) => (m(), S("svg",
|
|
4006
|
-
|
|
4007
|
-
|
|
3904
|
+
return (t, n) => (m(), S("svg", ll, [
|
|
3905
|
+
R("mask", sl, [
|
|
3906
|
+
R("rect", {
|
|
4008
3907
|
fill: e.color,
|
|
4009
3908
|
height: "20",
|
|
4010
3909
|
width: "20"
|
|
4011
|
-
}, null, 8,
|
|
3910
|
+
}, null, 8, cl)
|
|
4012
3911
|
]),
|
|
4013
|
-
|
|
4014
|
-
|
|
3912
|
+
R("g", ul, [
|
|
3913
|
+
R("path", {
|
|
4015
3914
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4016
3915
|
fill: e.color
|
|
4017
|
-
}, null, 8,
|
|
3916
|
+
}, null, 8, dl)
|
|
4018
3917
|
])
|
|
4019
3918
|
]));
|
|
4020
3919
|
}
|
|
4021
|
-
}),
|
|
3920
|
+
}), fl = {
|
|
4022
3921
|
key: 1,
|
|
4023
3922
|
class: "kong-ui-entity-filter"
|
|
4024
|
-
},
|
|
3923
|
+
}, pl = { class: "kong-ui-entity-filter-menu" }, ml = ["data-testid"], hl = ["onClick", "onKeydown"], gl = { class: "menu-item-indicator" }, yl = { class: "menu-item-body" }, vl = ["for"], bl = { class: "menu-item-buttons" }, xl = { class: "filter-clear-button-container" }, Cl = /* @__PURE__ */ z({
|
|
4025
3924
|
__name: "EntityFilter",
|
|
4026
3925
|
props: {
|
|
4027
3926
|
// filter config, either exact match or fuzzy match
|
|
@@ -4041,61 +3940,61 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4041
3940
|
},
|
|
4042
3941
|
emits: ["update:modelValue"],
|
|
4043
3942
|
setup(e, { emit: t }) {
|
|
4044
|
-
const { i18n: { t: n } } =
|
|
4045
|
-
const
|
|
4046
|
-
return new URLSearchParams(i.modelValue).forEach((
|
|
4047
|
-
|
|
4048
|
-
}),
|
|
4049
|
-
}), c =
|
|
4050
|
-
const
|
|
4051
|
-
return Object.keys(
|
|
3943
|
+
const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = K(!1), a = K({}), s = K(/* @__PURE__ */ new Set()), l = F(() => {
|
|
3944
|
+
const _ = [];
|
|
3945
|
+
return new URLSearchParams(i.modelValue).forEach((A, O) => {
|
|
3946
|
+
A !== "" && _.push(O);
|
|
3947
|
+
}), _;
|
|
3948
|
+
}), c = F(() => {
|
|
3949
|
+
const _ = i.config.fields;
|
|
3950
|
+
return Object.keys(_).filter((A) => {
|
|
4052
3951
|
var O;
|
|
4053
|
-
return (O =
|
|
4054
|
-
}).map((
|
|
4055
|
-
label:
|
|
4056
|
-
value:
|
|
3952
|
+
return (O = _ == null ? void 0 : _[A]) == null ? void 0 : O.searchable;
|
|
3953
|
+
}).map((A) => ({
|
|
3954
|
+
label: _[A].label || A,
|
|
3955
|
+
value: A,
|
|
4057
3956
|
expanded: !1
|
|
4058
3957
|
}));
|
|
4059
3958
|
});
|
|
4060
|
-
be(() => i.modelValue, (
|
|
4061
|
-
a.value = {}, new URLSearchParams(
|
|
4062
|
-
a.value[O] =
|
|
3959
|
+
be(() => i.modelValue, (_) => {
|
|
3960
|
+
a.value = {}, new URLSearchParams(_).forEach((A, O) => {
|
|
3961
|
+
a.value[O] = A;
|
|
4063
3962
|
});
|
|
4064
3963
|
});
|
|
4065
3964
|
const d = () => {
|
|
4066
3965
|
o.value = !o.value;
|
|
4067
|
-
}, u = (
|
|
4068
|
-
s.value.has(
|
|
4069
|
-
}, p = (
|
|
4070
|
-
r("update:modelValue",
|
|
3966
|
+
}, u = (_) => {
|
|
3967
|
+
s.value.has(_) ? s.value.delete(_) : s.value.add(_);
|
|
3968
|
+
}, p = (_) => {
|
|
3969
|
+
r("update:modelValue", _);
|
|
4071
3970
|
}, g = () => {
|
|
4072
3971
|
p("");
|
|
4073
|
-
},
|
|
4074
|
-
var
|
|
4075
|
-
return (((O = (
|
|
4076
|
-
},
|
|
4077
|
-
var
|
|
4078
|
-
return ((O = (
|
|
4079
|
-
},
|
|
3972
|
+
}, h = (_) => `filter-${_}`, x = (_) => {
|
|
3973
|
+
var A, O;
|
|
3974
|
+
return (((O = (A = i.config.schema) == null ? void 0 : A[_]) == null ? void 0 : O.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
|
|
3975
|
+
}, y = (_) => {
|
|
3976
|
+
var A, O;
|
|
3977
|
+
return ((O = (A = i.config.schema) == null ? void 0 : A[_]) == null ? void 0 : O.type) ?? "text";
|
|
3978
|
+
}, k = (_) => {
|
|
4080
3979
|
a.value = {
|
|
4081
3980
|
...a.value,
|
|
4082
|
-
[
|
|
4083
|
-
},
|
|
3981
|
+
[_]: ""
|
|
3982
|
+
}, T();
|
|
4084
3983
|
}, C = () => {
|
|
4085
|
-
a.value = {},
|
|
4086
|
-
},
|
|
4087
|
-
const
|
|
4088
|
-
|
|
4089
|
-
},
|
|
4090
|
-
var
|
|
4091
|
-
return !!((O = (
|
|
4092
|
-
}, X = (
|
|
3984
|
+
a.value = {}, T(!0);
|
|
3985
|
+
}, T = (_ = !1) => {
|
|
3986
|
+
const A = Object.keys(a.value).reduce((O, f) => (a.value[f] && (O[f] = `${a.value[f]}`), O), {});
|
|
3987
|
+
_ && (o.value = !1), r("update:modelValue", new URLSearchParams(A).toString());
|
|
3988
|
+
}, W = (_) => {
|
|
3989
|
+
var A, O;
|
|
3990
|
+
return !!((O = (A = i.config.schema) == null ? void 0 : A[_]) != null && O.filterFunction);
|
|
3991
|
+
}, X = (_, A) => {
|
|
4093
3992
|
var f;
|
|
4094
|
-
const O = (f = i.config.schema) == null ? void 0 : f[
|
|
4095
|
-
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(
|
|
3993
|
+
const O = (f = i.config.schema) == null ? void 0 : f[_];
|
|
3994
|
+
return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(A);
|
|
4096
3995
|
};
|
|
4097
|
-
return (
|
|
4098
|
-
const O =
|
|
3996
|
+
return (_, A) => {
|
|
3997
|
+
const O = P("KInput"), f = P("KButton"), v = P("KSelect");
|
|
4099
3998
|
return e.config.isExactMatch ? (m(), j(O, {
|
|
4100
3999
|
key: 0,
|
|
4101
4000
|
autocomplete: "off",
|
|
@@ -4105,11 +4004,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4105
4004
|
placeholder: e.config.placeholder,
|
|
4106
4005
|
"onUpdate:modelValue": p
|
|
4107
4006
|
}, {
|
|
4108
|
-
before:
|
|
4109
|
-
|
|
4007
|
+
before: w(() => [
|
|
4008
|
+
M(Mt)
|
|
4110
4009
|
]),
|
|
4111
|
-
after:
|
|
4112
|
-
xe(
|
|
4010
|
+
after: w(() => [
|
|
4011
|
+
xe(M($(ri), {
|
|
4113
4012
|
class: "kong-ui-entity-filter-clear",
|
|
4114
4013
|
role: "button",
|
|
4115
4014
|
tabindex: "0",
|
|
@@ -4119,25 +4018,25 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4119
4018
|
])
|
|
4120
4019
|
]),
|
|
4121
4020
|
_: 1
|
|
4122
|
-
}, 8, ["model-value", "placeholder"])) : (m(), S("div",
|
|
4123
|
-
|
|
4021
|
+
}, 8, ["model-value", "placeholder"])) : (m(), S("div", fl, [
|
|
4022
|
+
M(f, {
|
|
4124
4023
|
appearance: "tertiary",
|
|
4125
4024
|
"data-testid": "filter-button",
|
|
4126
4025
|
onClick: d
|
|
4127
4026
|
}, {
|
|
4128
|
-
default:
|
|
4129
|
-
|
|
4130
|
-
|
|
4027
|
+
default: w(() => [
|
|
4028
|
+
M(Mt),
|
|
4029
|
+
q(" " + L($(n)("filter.filterButtonText")) + " " + L(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
|
|
4131
4030
|
]),
|
|
4132
4031
|
_: 1
|
|
4133
4032
|
}),
|
|
4134
|
-
xe(
|
|
4033
|
+
xe(R("div", {
|
|
4135
4034
|
class: "kong-ui-entity-filter-backdrop",
|
|
4136
4035
|
onClick: d
|
|
4137
4036
|
}, null, 512), [
|
|
4138
4037
|
[Ce, o.value]
|
|
4139
4038
|
]),
|
|
4140
|
-
xe(
|
|
4039
|
+
xe(R("div", pl, [
|
|
4141
4040
|
(m(!0), S(ue, null, ce(c.value, (b) => {
|
|
4142
4041
|
var H, J;
|
|
4143
4042
|
return m(), S("div", {
|
|
@@ -4145,84 +4044,84 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4145
4044
|
class: "kong-ui-entity-filter-menu-item",
|
|
4146
4045
|
"data-testid": b.value
|
|
4147
4046
|
}, [
|
|
4148
|
-
|
|
4047
|
+
R("span", {
|
|
4149
4048
|
class: fe(["menu-item-title", { expanded: s.value.has(b.value) }]),
|
|
4150
4049
|
role: "button",
|
|
4151
4050
|
tabindex: "0",
|
|
4152
4051
|
onClick: (I) => u(b.value),
|
|
4153
|
-
onKeydown:
|
|
4052
|
+
onKeydown: Qn((I) => u(b.value), ["enter"])
|
|
4154
4053
|
}, [
|
|
4155
|
-
|
|
4156
|
-
xe(
|
|
4054
|
+
q(L(b.label) + " ", 1),
|
|
4055
|
+
xe(R("span", gl, null, 512), [
|
|
4157
4056
|
[Ce, l.value.includes(b.value)]
|
|
4158
4057
|
]),
|
|
4159
|
-
|
|
4058
|
+
M($(ai), {
|
|
4160
4059
|
class: fe(["menu-item-expand-icon", { expanded: s.value.has(b.value) }]),
|
|
4161
|
-
color:
|
|
4060
|
+
color: $(Qi)
|
|
4162
4061
|
}, null, 8, ["class", "color"])
|
|
4163
|
-
], 42,
|
|
4164
|
-
xe(
|
|
4165
|
-
|
|
4062
|
+
], 42, hl),
|
|
4063
|
+
xe(R("div", yl, [
|
|
4064
|
+
R("label", {
|
|
4166
4065
|
class: "menu-item-label",
|
|
4167
|
-
for:
|
|
4168
|
-
}, L(
|
|
4066
|
+
for: h(b.value)
|
|
4067
|
+
}, L($(n)("filter.fieldLabel")), 9, vl),
|
|
4169
4068
|
((J = (H = e.config.schema) == null ? void 0 : H[b.value]) == null ? void 0 : J.type) === "select" ? (m(), j(v, {
|
|
4170
4069
|
key: 0,
|
|
4171
|
-
id:
|
|
4070
|
+
id: h(b.value),
|
|
4172
4071
|
modelValue: a.value[b.value],
|
|
4173
4072
|
"onUpdate:modelValue": (I) => a.value[b.value] = I,
|
|
4174
|
-
"enable-filtering":
|
|
4073
|
+
"enable-filtering": W(b.value),
|
|
4175
4074
|
"filter-function": (I) => X(b.value, I),
|
|
4176
4075
|
items: x(b.value),
|
|
4177
|
-
placeholder:
|
|
4076
|
+
placeholder: $(n)("filter.selectPlaceholder")
|
|
4178
4077
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (m(), j(O, {
|
|
4179
4078
|
key: 1,
|
|
4180
|
-
id:
|
|
4079
|
+
id: h(b.value),
|
|
4181
4080
|
modelValue: a.value[b.value],
|
|
4182
4081
|
"onUpdate:modelValue": (I) => a.value[b.value] = I,
|
|
4183
4082
|
autocomplete: "off",
|
|
4184
|
-
placeholder:
|
|
4185
|
-
type:
|
|
4083
|
+
placeholder: $(n)("filter.inputPlaceholder"),
|
|
4084
|
+
type: y(b.value)
|
|
4186
4085
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
4187
4086
|
], 512), [
|
|
4188
4087
|
[Ce, s.value.has(b.value)]
|
|
4189
4088
|
]),
|
|
4190
|
-
xe(
|
|
4191
|
-
|
|
4089
|
+
xe(R("div", bl, [
|
|
4090
|
+
M(f, {
|
|
4192
4091
|
appearance: "tertiary",
|
|
4193
4092
|
"data-testid": "apply-filter",
|
|
4194
4093
|
size: "small",
|
|
4195
|
-
onClick:
|
|
4094
|
+
onClick: A[0] || (A[0] = (I) => T(!0))
|
|
4196
4095
|
}, {
|
|
4197
|
-
default:
|
|
4198
|
-
|
|
4096
|
+
default: w(() => [
|
|
4097
|
+
q(L($(n)("filter.applyButtonText")), 1)
|
|
4199
4098
|
]),
|
|
4200
4099
|
_: 1
|
|
4201
4100
|
}),
|
|
4202
|
-
|
|
4101
|
+
M(f, {
|
|
4203
4102
|
appearance: "tertiary",
|
|
4204
4103
|
"data-testid": "clear-filter",
|
|
4205
4104
|
size: "small",
|
|
4206
|
-
onClick: (I) =>
|
|
4105
|
+
onClick: (I) => k(b.value)
|
|
4207
4106
|
}, {
|
|
4208
|
-
default:
|
|
4209
|
-
|
|
4107
|
+
default: w(() => [
|
|
4108
|
+
q(L($(n)("filter.clearButtonText")), 1)
|
|
4210
4109
|
]),
|
|
4211
4110
|
_: 1
|
|
4212
4111
|
}, 8, ["onClick"])
|
|
4213
4112
|
], 512), [
|
|
4214
4113
|
[Ce, s.value.has(b.value)]
|
|
4215
4114
|
])
|
|
4216
|
-
], 8,
|
|
4115
|
+
], 8, ml);
|
|
4217
4116
|
}), 128)),
|
|
4218
|
-
|
|
4219
|
-
|
|
4117
|
+
R("div", xl, [
|
|
4118
|
+
M(f, {
|
|
4220
4119
|
appearance: "tertiary",
|
|
4221
4120
|
size: "small",
|
|
4222
4121
|
onClick: C
|
|
4223
4122
|
}, {
|
|
4224
|
-
default:
|
|
4225
|
-
|
|
4123
|
+
default: w(() => [
|
|
4124
|
+
q(L($(n)("filter.clearAllButtonText")), 1)
|
|
4226
4125
|
]),
|
|
4227
4126
|
_: 1
|
|
4228
4127
|
})
|
|
@@ -4233,7 +4132,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4233
4132
|
]));
|
|
4234
4133
|
};
|
|
4235
4134
|
}
|
|
4236
|
-
}),
|
|
4135
|
+
}), vs = /* @__PURE__ */ se(Cl, [["__scopeId", "data-v-084f7978"]]), bs = /* @__PURE__ */ z({
|
|
4237
4136
|
__name: "EntityToggleModal",
|
|
4238
4137
|
props: {
|
|
4239
4138
|
visible: {
|
|
@@ -4265,9 +4164,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4265
4164
|
},
|
|
4266
4165
|
emits: ["cancel", "proceed"],
|
|
4267
4166
|
setup(e, { emit: t }) {
|
|
4268
|
-
const { i18n: { t: n }, i18nT: i } =
|
|
4167
|
+
const { i18n: { t: n }, i18nT: i } = Y.useI18n(), r = e, o = t, a = K(!1), s = F(
|
|
4269
4168
|
() => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
|
|
4270
|
-
), l =
|
|
4169
|
+
), l = F(
|
|
4271
4170
|
() => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
|
|
4272
4171
|
), c = () => o("cancel"), d = async () => {
|
|
4273
4172
|
if (r.onConfirm) {
|
|
@@ -4282,9 +4181,9 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4282
4181
|
}
|
|
4283
4182
|
};
|
|
4284
4183
|
return (u, p) => {
|
|
4285
|
-
const g =
|
|
4184
|
+
const g = P("KPrompt");
|
|
4286
4185
|
return m(), j(Ht, { to: "body" }, [
|
|
4287
|
-
|
|
4186
|
+
M(g, {
|
|
4288
4187
|
"action-button-disabled": a.value,
|
|
4289
4188
|
"action-button-text": l.value,
|
|
4290
4189
|
"data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
|
|
@@ -4293,16 +4192,16 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4293
4192
|
onCancel: c,
|
|
4294
4193
|
onProceed: d
|
|
4295
4194
|
}, {
|
|
4296
|
-
default:
|
|
4297
|
-
|
|
4195
|
+
default: w(() => [
|
|
4196
|
+
M($(i), {
|
|
4298
4197
|
keypath: `toggleModal.${r.action}.message`,
|
|
4299
4198
|
scope: "global"
|
|
4300
4199
|
}, {
|
|
4301
|
-
entityType:
|
|
4302
|
-
|
|
4200
|
+
entityType: w(() => [
|
|
4201
|
+
q(L(e.entityType), 1)
|
|
4303
4202
|
]),
|
|
4304
|
-
entityName:
|
|
4305
|
-
|
|
4203
|
+
entityName: w(() => [
|
|
4204
|
+
R("strong", null, L(e.entityName), 1)
|
|
4306
4205
|
]),
|
|
4307
4206
|
_: 1
|
|
4308
4207
|
}, 8, ["keypath"])
|
|
@@ -4312,7 +4211,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4312
4211
|
]);
|
|
4313
4212
|
};
|
|
4314
4213
|
}
|
|
4315
|
-
}),
|
|
4214
|
+
}), xs = /* @__PURE__ */ z({
|
|
4316
4215
|
__name: "PermissionsWrapper",
|
|
4317
4216
|
props: {
|
|
4318
4217
|
/**
|
|
@@ -4334,48 +4233,48 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
|
|
|
4334
4233
|
}
|
|
4335
4234
|
},
|
|
4336
4235
|
setup(e) {
|
|
4337
|
-
const t = e, n =
|
|
4236
|
+
const t = e, n = K(void 0), i = F(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4338
4237
|
return be(() => t.authFunction, async () => {
|
|
4339
4238
|
n.value = await t.authFunction();
|
|
4340
|
-
}, { immediate: !0 }), (r, o) => i.value ?
|
|
4239
|
+
}, { immediate: !0 }), (r, o) => i.value ? D(r.$slots, "default", {
|
|
4341
4240
|
key: 0,
|
|
4342
4241
|
isAllowed: n.value
|
|
4343
|
-
}) :
|
|
4242
|
+
}) : N("", !0);
|
|
4344
4243
|
}
|
|
4345
4244
|
}), te = [];
|
|
4346
4245
|
for (let e = 0; e < 256; ++e)
|
|
4347
4246
|
te.push((e + 256).toString(16).slice(1));
|
|
4348
|
-
function
|
|
4247
|
+
function kl(e, t = 0) {
|
|
4349
4248
|
return (te[e[t + 0]] + te[e[t + 1]] + te[e[t + 2]] + te[e[t + 3]] + "-" + te[e[t + 4]] + te[e[t + 5]] + "-" + te[e[t + 6]] + te[e[t + 7]] + "-" + te[e[t + 8]] + te[e[t + 9]] + "-" + te[e[t + 10]] + te[e[t + 11]] + te[e[t + 12]] + te[e[t + 13]] + te[e[t + 14]] + te[e[t + 15]]).toLowerCase();
|
|
4350
4249
|
}
|
|
4351
|
-
let
|
|
4352
|
-
const
|
|
4353
|
-
function
|
|
4354
|
-
if (!
|
|
4250
|
+
let Je;
|
|
4251
|
+
const Al = new Uint8Array(16);
|
|
4252
|
+
function _l() {
|
|
4253
|
+
if (!Je) {
|
|
4355
4254
|
if (typeof crypto > "u" || !crypto.getRandomValues)
|
|
4356
4255
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4357
|
-
|
|
4256
|
+
Je = crypto.getRandomValues.bind(crypto);
|
|
4358
4257
|
}
|
|
4359
|
-
return
|
|
4258
|
+
return Je(Al);
|
|
4360
4259
|
}
|
|
4361
|
-
const
|
|
4362
|
-
function
|
|
4260
|
+
const wl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), jt = { randomUUID: wl };
|
|
4261
|
+
function Sl(e, t, n) {
|
|
4363
4262
|
var r;
|
|
4364
4263
|
if (jt.randomUUID && !e)
|
|
4365
4264
|
return jt.randomUUID();
|
|
4366
4265
|
e = e || {};
|
|
4367
|
-
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ??
|
|
4266
|
+
const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? _l();
|
|
4368
4267
|
if (i.length < 16)
|
|
4369
4268
|
throw new Error("Random bytes length must be >= 16");
|
|
4370
|
-
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128,
|
|
4269
|
+
return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, kl(i);
|
|
4371
4270
|
}
|
|
4372
|
-
const
|
|
4271
|
+
const $l = ["aria-labelledby"], Tl = { class: "form-section-wrapper" }, Il = {
|
|
4373
4272
|
key: 1,
|
|
4374
4273
|
class: "form-section-description"
|
|
4375
|
-
},
|
|
4274
|
+
}, El = {
|
|
4376
4275
|
key: 2,
|
|
4377
4276
|
class: "form-section-footer"
|
|
4378
|
-
},
|
|
4277
|
+
}, Fl = { class: "form-section-content" }, Ol = /* @__PURE__ */ z({
|
|
4379
4278
|
__name: "EntityFormSection",
|
|
4380
4279
|
props: {
|
|
4381
4280
|
title: {
|
|
@@ -4404,52 +4303,52 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4404
4303
|
}
|
|
4405
4304
|
},
|
|
4406
4305
|
setup(e) {
|
|
4407
|
-
const t = De(), n =
|
|
4306
|
+
const t = De(), n = Sl();
|
|
4408
4307
|
return (i, r) => (m(), S("div", {
|
|
4409
|
-
"aria-labelledby": e.title ?
|
|
4308
|
+
"aria-labelledby": e.title ? $(n) : void 0,
|
|
4410
4309
|
class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4411
4310
|
role: "group"
|
|
4412
4311
|
}, [
|
|
4413
|
-
|
|
4414
|
-
e.hideInfoHeader ?
|
|
4312
|
+
R("div", Tl, [
|
|
4313
|
+
e.hideInfoHeader ? N("", !0) : (m(), S("div", {
|
|
4415
4314
|
key: 0,
|
|
4416
4315
|
class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4417
4316
|
}, [
|
|
4418
|
-
e.title ? (m(), j(
|
|
4317
|
+
e.title ? (m(), j(je(e.titleTag), {
|
|
4419
4318
|
key: 0,
|
|
4420
|
-
id:
|
|
4319
|
+
id: $(n),
|
|
4421
4320
|
class: "form-section-title"
|
|
4422
4321
|
}, {
|
|
4423
|
-
default:
|
|
4424
|
-
|
|
4322
|
+
default: w(() => [
|
|
4323
|
+
q(L(e.title), 1)
|
|
4425
4324
|
]),
|
|
4426
4325
|
_: 1
|
|
4427
|
-
}, 8, ["id"])) :
|
|
4428
|
-
e.description ||
|
|
4429
|
-
|
|
4430
|
-
|
|
4326
|
+
}, 8, ["id"])) : N("", !0),
|
|
4327
|
+
e.description || $(t).description ? (m(), S("div", Il, [
|
|
4328
|
+
D(i.$slots, "description", {}, () => [
|
|
4329
|
+
R("p", null, L(e.description), 1)
|
|
4431
4330
|
], !0)
|
|
4432
|
-
])) :
|
|
4433
|
-
|
|
4434
|
-
|
|
4435
|
-
])) :
|
|
4331
|
+
])) : N("", !0),
|
|
4332
|
+
$(t).footer ? (m(), S("div", El, [
|
|
4333
|
+
D(i.$slots, "footer", {}, void 0, !0)
|
|
4334
|
+
])) : N("", !0)
|
|
4436
4335
|
], 2)),
|
|
4437
|
-
|
|
4438
|
-
|
|
4336
|
+
R("div", Fl, [
|
|
4337
|
+
D(i.$slots, "default", {}, void 0, !0)
|
|
4439
4338
|
])
|
|
4440
4339
|
])
|
|
4441
|
-
], 10,
|
|
4340
|
+
], 10, $l));
|
|
4442
4341
|
}
|
|
4443
|
-
}),
|
|
4342
|
+
}), Cs = /* @__PURE__ */ se(Ol, [["__scopeId", "data-v-b1f74200"]]), Ll = { class: "ff-form-section" }, Bl = { class: "header" }, Rl = {
|
|
4444
4343
|
key: 0,
|
|
4445
4344
|
class: "step"
|
|
4446
|
-
},
|
|
4345
|
+
}, Kl = { class: "header-content" }, Nl = { class: "header-title" }, Ml = {
|
|
4447
4346
|
key: 0,
|
|
4448
4347
|
class: "header-description"
|
|
4449
|
-
},
|
|
4348
|
+
}, jl = {
|
|
4450
4349
|
key: 1,
|
|
4451
4350
|
class: "header-extra"
|
|
4452
|
-
},
|
|
4351
|
+
}, Dl = { class: "content" }, Pl = /* @__PURE__ */ z({
|
|
4453
4352
|
__name: "EntityFormBlock",
|
|
4454
4353
|
props: {
|
|
4455
4354
|
step: {},
|
|
@@ -4458,37 +4357,37 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4458
4357
|
},
|
|
4459
4358
|
setup(e) {
|
|
4460
4359
|
const t = De();
|
|
4461
|
-
return (n, i) => (m(), S("div",
|
|
4462
|
-
|
|
4463
|
-
e.step != null ? (m(), S("div",
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4360
|
+
return (n, i) => (m(), S("div", Ll, [
|
|
4361
|
+
R("header", Bl, [
|
|
4362
|
+
e.step != null ? (m(), S("div", Rl, L(e.step), 1)) : N("", !0),
|
|
4363
|
+
R("div", Kl, [
|
|
4364
|
+
R("h2", Nl, [
|
|
4365
|
+
D(n.$slots, "title", {}, () => [
|
|
4366
|
+
q(L(e.title), 1)
|
|
4468
4367
|
], !0)
|
|
4469
4368
|
]),
|
|
4470
|
-
e.description || t.description ? (m(), S("div",
|
|
4471
|
-
|
|
4472
|
-
|
|
4369
|
+
e.description || t.description ? (m(), S("div", Ml, [
|
|
4370
|
+
D(n.$slots, "description", {}, () => [
|
|
4371
|
+
q(L(e.description), 1)
|
|
4473
4372
|
], !0)
|
|
4474
|
-
])) :
|
|
4373
|
+
])) : N("", !0)
|
|
4475
4374
|
]),
|
|
4476
|
-
t.extra ? (m(), S("div",
|
|
4477
|
-
|
|
4478
|
-
])) :
|
|
4375
|
+
t.extra ? (m(), S("div", jl, [
|
|
4376
|
+
D(n.$slots, "extra", {}, void 0, !0)
|
|
4377
|
+
])) : N("", !0)
|
|
4479
4378
|
]),
|
|
4480
|
-
|
|
4481
|
-
|
|
4379
|
+
R("div", Dl, [
|
|
4380
|
+
D(n.$slots, "default", {}, void 0, !0)
|
|
4482
4381
|
])
|
|
4483
4382
|
]));
|
|
4484
4383
|
}
|
|
4485
|
-
}),
|
|
4384
|
+
}), ks = /* @__PURE__ */ se(Pl, [["__scopeId", "data-v-cb6d2e95"]]), Ul = {
|
|
4486
4385
|
class: "kong-ui-public-entity-link",
|
|
4487
4386
|
"data-testid": "entity-link-parent"
|
|
4488
|
-
},
|
|
4387
|
+
}, ql = {
|
|
4489
4388
|
key: 0,
|
|
4490
4389
|
class: "deleted-entity"
|
|
4491
|
-
},
|
|
4390
|
+
}, Hl = { key: 1 }, Vl = ["onClick"], Yl = /* @__PURE__ */ z({
|
|
4492
4391
|
__name: "EntityLink",
|
|
4493
4392
|
props: {
|
|
4494
4393
|
entityLinkData: {
|
|
@@ -4512,10 +4411,10 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4512
4411
|
}
|
|
4513
4412
|
},
|
|
4514
4413
|
setup(e) {
|
|
4515
|
-
const t = e, n =
|
|
4414
|
+
const t = e, n = K(), { isTruncated: i } = Y.useTruncationDetector(n), { i18n: { t: r } } = Y.useI18n(), o = r("global.actions.copyId"), a = K(o), s = F(() => t.entityLinkData.deleted ?? !1), l = F(() => {
|
|
4516
4415
|
var u;
|
|
4517
4416
|
return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
|
|
4518
|
-
}), c =
|
|
4417
|
+
}), c = F(() => {
|
|
4519
4418
|
var u;
|
|
4520
4419
|
return `${(u = l.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
|
|
4521
4420
|
}), d = async (u) => {
|
|
@@ -4524,21 +4423,21 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4524
4423
|
}, 1800));
|
|
4525
4424
|
};
|
|
4526
4425
|
return (u, p) => {
|
|
4527
|
-
const g =
|
|
4528
|
-
return m(), S("div",
|
|
4529
|
-
s.value ? (m(), S("div",
|
|
4426
|
+
const g = P("KTooltip"), h = P("KExternalLink"), x = P("KClipboardProvider");
|
|
4427
|
+
return m(), S("div", Ul, [
|
|
4428
|
+
s.value ? (m(), S("div", ql, L(c.value), 1)) : l.value ? l.value ? (m(), j(h, {
|
|
4530
4429
|
key: 2,
|
|
4531
4430
|
class: "entity-link",
|
|
4532
4431
|
"hide-icon": !e.newWindow,
|
|
4533
4432
|
href: e.externalLink,
|
|
4534
4433
|
target: e.newWindow ? "_blank" : "_self"
|
|
4535
4434
|
}, {
|
|
4536
|
-
default:
|
|
4537
|
-
|
|
4538
|
-
text:
|
|
4435
|
+
default: w(() => [
|
|
4436
|
+
M(g, {
|
|
4437
|
+
text: $(i) && e.entityLinkData.label || ""
|
|
4539
4438
|
}, {
|
|
4540
|
-
default:
|
|
4541
|
-
|
|
4439
|
+
default: w(() => [
|
|
4440
|
+
R("span", {
|
|
4542
4441
|
ref_key: "textContent",
|
|
4543
4442
|
ref: n,
|
|
4544
4443
|
class: "entity-link-label"
|
|
@@ -4548,7 +4447,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4548
4447
|
}, 8, ["text"])
|
|
4549
4448
|
]),
|
|
4550
4449
|
_: 1
|
|
4551
|
-
}, 8, ["hide-icon", "href", "target"])) :
|
|
4450
|
+
}, 8, ["hide-icon", "href", "target"])) : N("", !0) : (m(), S("div", Hl, L(" – "))),
|
|
4552
4451
|
l.value && e.allowCopy ? (m(), j(g, {
|
|
4553
4452
|
key: a.value,
|
|
4554
4453
|
class: "copy-uuid-tooltip",
|
|
@@ -4556,63 +4455,63 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4556
4455
|
placement: "bottom-end",
|
|
4557
4456
|
text: a.value
|
|
4558
4457
|
}, {
|
|
4559
|
-
default:
|
|
4560
|
-
|
|
4561
|
-
default:
|
|
4562
|
-
|
|
4458
|
+
default: w(() => [
|
|
4459
|
+
M(x, null, {
|
|
4460
|
+
default: w(({ copyToClipboard: y }) => [
|
|
4461
|
+
R("span", {
|
|
4563
4462
|
class: "entity-link-copy-id",
|
|
4564
|
-
onClick:
|
|
4463
|
+
onClick: Le((k) => d(y), ["stop"])
|
|
4565
4464
|
}, [
|
|
4566
|
-
|
|
4465
|
+
M($(oi), {
|
|
4567
4466
|
class: "copy-icon",
|
|
4568
|
-
color:
|
|
4467
|
+
color: $(Zi),
|
|
4569
4468
|
"data-testid": "copy-id",
|
|
4570
|
-
size:
|
|
4469
|
+
size: $(er)
|
|
4571
4470
|
}, null, 8, ["color", "size"])
|
|
4572
|
-
], 8,
|
|
4471
|
+
], 8, Vl)
|
|
4573
4472
|
]),
|
|
4574
4473
|
_: 1
|
|
4575
4474
|
})
|
|
4576
4475
|
]),
|
|
4577
4476
|
_: 1
|
|
4578
|
-
}, 8, ["text"])) :
|
|
4477
|
+
}, 8, ["text"])) : N("", !0)
|
|
4579
4478
|
]);
|
|
4580
4479
|
};
|
|
4581
4480
|
}
|
|
4582
|
-
}),
|
|
4481
|
+
}), As = /* @__PURE__ */ se(Yl, [["__scopeId", "data-v-96efdfa5"]]), Wl = { class: "kong-ui-public-entity-empty-state" }, Jl = { class: "entity-empty-state-content" }, Gl = {
|
|
4583
4482
|
key: 0,
|
|
4584
4483
|
class: "empty-state-image"
|
|
4585
|
-
},
|
|
4484
|
+
}, zl = {
|
|
4586
4485
|
key: 1,
|
|
4587
4486
|
class: "entity-empty-state-title"
|
|
4588
|
-
},
|
|
4487
|
+
}, Ql = {
|
|
4589
4488
|
key: 2,
|
|
4590
4489
|
class: "entity-empty-state-description"
|
|
4591
|
-
},
|
|
4490
|
+
}, Zl = {
|
|
4592
4491
|
key: 3,
|
|
4593
4492
|
class: "entity-empty-state-pricing"
|
|
4594
|
-
},
|
|
4493
|
+
}, Xl = {
|
|
4595
4494
|
key: 0,
|
|
4596
4495
|
class: "entity-empty-state-message"
|
|
4597
|
-
},
|
|
4496
|
+
}, es = {
|
|
4598
4497
|
key: 1,
|
|
4599
4498
|
class: "entity-empty-state-action"
|
|
4600
|
-
},
|
|
4499
|
+
}, ts = {
|
|
4601
4500
|
key: 2,
|
|
4602
4501
|
class: "entity-empty-state-card-container"
|
|
4603
|
-
},
|
|
4502
|
+
}, ns = {
|
|
4604
4503
|
key: 0,
|
|
4605
4504
|
class: "feature-icon"
|
|
4606
|
-
},
|
|
4505
|
+
}, is = { class: "card-header" }, rs = ["title"], as = {
|
|
4607
4506
|
key: 3,
|
|
4608
4507
|
class: "entity-empty-state-bottom-container"
|
|
4609
|
-
},
|
|
4508
|
+
}, os = /* @__PURE__ */ z({
|
|
4610
4509
|
__name: "EntityEmptyState",
|
|
4611
4510
|
props: {
|
|
4612
4511
|
appearance: {
|
|
4613
4512
|
type: String,
|
|
4614
4513
|
default: () => "primary",
|
|
4615
|
-
validator: (e) =>
|
|
4514
|
+
validator: (e) => ht.includes(e)
|
|
4616
4515
|
},
|
|
4617
4516
|
title: {
|
|
4618
4517
|
type: String,
|
|
@@ -4647,100 +4546,100 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
|
|
|
4647
4546
|
},
|
|
4648
4547
|
emits: ["click:create", "click:learn-more"],
|
|
4649
4548
|
setup(e) {
|
|
4650
|
-
const t = e, { i18n: { t: n } } =
|
|
4651
|
-
return
|
|
4549
|
+
const t = e, { i18n: { t: n } } = Y.useI18n(), i = K(!1), r = F(() => i.value && !!t.actionButtonText), o = F(() => ht.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
|
|
4550
|
+
return nt(async () => {
|
|
4652
4551
|
i.value = await t.canCreate();
|
|
4653
|
-
}),
|
|
4552
|
+
}), tt(() => Zn(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
|
|
4654
4553
|
Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
|
|
4655
|
-
const l =
|
|
4656
|
-
return m(), S("div",
|
|
4657
|
-
|
|
4658
|
-
a.$slots.image ? (m(), S("div",
|
|
4659
|
-
|
|
4660
|
-
])) :
|
|
4661
|
-
e.title || a.$slots.title ? (m(), S("div",
|
|
4662
|
-
|
|
4554
|
+
const l = P("KCard");
|
|
4555
|
+
return m(), S("div", Wl, [
|
|
4556
|
+
R("div", Jl, [
|
|
4557
|
+
a.$slots.image ? (m(), S("div", Gl, [
|
|
4558
|
+
D(a.$slots, "image", {}, void 0, !0)
|
|
4559
|
+
])) : N("", !0),
|
|
4560
|
+
e.title || a.$slots.title ? (m(), S("div", zl, [
|
|
4561
|
+
R("h1", {
|
|
4663
4562
|
class: fe(o.value)
|
|
4664
4563
|
}, [
|
|
4665
|
-
|
|
4666
|
-
|
|
4564
|
+
D(a.$slots, "title", {}, () => [
|
|
4565
|
+
q(L(e.title), 1)
|
|
4667
4566
|
], !0)
|
|
4668
4567
|
], 2)
|
|
4669
|
-
])) :
|
|
4670
|
-
e.description || a.$slots.default ? (m(), S("div",
|
|
4671
|
-
|
|
4672
|
-
|
|
4568
|
+
])) : N("", !0),
|
|
4569
|
+
e.description || a.$slots.default ? (m(), S("div", Ql, [
|
|
4570
|
+
D(a.$slots, "default", {}, () => [
|
|
4571
|
+
R("p", null, L(e.description), 1)
|
|
4673
4572
|
], !0)
|
|
4674
|
-
])) :
|
|
4675
|
-
e.pricing || a.$slots.pricing ? (m(), S("div",
|
|
4676
|
-
|
|
4677
|
-
|
|
4678
|
-
s[2] || (s[2] =
|
|
4679
|
-
|
|
4680
|
-
|
|
4573
|
+
])) : N("", !0),
|
|
4574
|
+
e.pricing || a.$slots.pricing ? (m(), S("div", Zl, [
|
|
4575
|
+
R("p", null, [
|
|
4576
|
+
R("b", null, L($(n)("emptyState.pricingTitle")), 1),
|
|
4577
|
+
s[2] || (s[2] = q()),
|
|
4578
|
+
D(a.$slots, "pricing", {}, () => [
|
|
4579
|
+
q(L(e.pricing), 1)
|
|
4681
4580
|
], !0)
|
|
4682
4581
|
])
|
|
4683
|
-
])) :
|
|
4582
|
+
])) : N("", !0)
|
|
4684
4583
|
]),
|
|
4685
|
-
a.$slots.message ? (m(), S("div",
|
|
4686
|
-
|
|
4687
|
-
])) :
|
|
4688
|
-
r.value || e.learnMore || a.$slots.actions ? (m(), S("div",
|
|
4689
|
-
|
|
4690
|
-
r.value ? (m(), j(
|
|
4584
|
+
a.$slots.message ? (m(), S("div", Xl, [
|
|
4585
|
+
D(a.$slots, "message", {}, void 0, !0)
|
|
4586
|
+
])) : N("", !0),
|
|
4587
|
+
r.value || e.learnMore || a.$slots.actions ? (m(), S("div", es, [
|
|
4588
|
+
D(a.$slots, "actions", {}, () => [
|
|
4589
|
+
r.value ? (m(), j($(mt), {
|
|
4691
4590
|
key: 0,
|
|
4692
4591
|
appearance: "primary",
|
|
4693
4592
|
"data-testid": "entity-create-button",
|
|
4694
4593
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4695
4594
|
onClick: s[0] || (s[0] = (c) => a.$emit("click:create"))
|
|
4696
4595
|
}, {
|
|
4697
|
-
default:
|
|
4698
|
-
|
|
4699
|
-
|
|
4596
|
+
default: w(() => [
|
|
4597
|
+
M($(Yt)),
|
|
4598
|
+
q(" " + L(e.actionButtonText), 1)
|
|
4700
4599
|
]),
|
|
4701
4600
|
_: 1
|
|
4702
|
-
}, 8, ["size"])) :
|
|
4703
|
-
e.learnMore ? (m(), j(
|
|
4601
|
+
}, 8, ["size"])) : N("", !0),
|
|
4602
|
+
e.learnMore ? (m(), j($(mt), {
|
|
4704
4603
|
key: 1,
|
|
4705
4604
|
appearance: "secondary",
|
|
4706
4605
|
"data-testid": "entity-learn-more-button",
|
|
4707
4606
|
size: e.appearance === "secondary" ? "medium" : "large",
|
|
4708
4607
|
onClick: s[1] || (s[1] = (c) => a.$emit("click:learn-more"))
|
|
4709
4608
|
}, {
|
|
4710
|
-
default:
|
|
4711
|
-
|
|
4712
|
-
|
|
4609
|
+
default: w(() => [
|
|
4610
|
+
M($(Vt), { decorative: "" }),
|
|
4611
|
+
q(" " + L($(n)("emptyState.learnMore")), 1)
|
|
4713
4612
|
]),
|
|
4714
4613
|
_: 1
|
|
4715
|
-
}, 8, ["size"])) :
|
|
4614
|
+
}, 8, ["size"])) : N("", !0)
|
|
4716
4615
|
], !0)
|
|
4717
|
-
])) :
|
|
4718
|
-
e.features.length ? (m(), S("div",
|
|
4616
|
+
])) : N("", !0),
|
|
4617
|
+
e.features.length ? (m(), S("div", ts, [
|
|
4719
4618
|
(m(!0), S(ue, null, ce(e.features, (c, d) => (m(), j(l, {
|
|
4720
4619
|
key: c,
|
|
4721
4620
|
class: "entity-empty-state-card"
|
|
4722
4621
|
}, {
|
|
4723
|
-
title:
|
|
4724
|
-
a.$slots[`feature-${d}-icon`] ? (m(), S("div",
|
|
4725
|
-
|
|
4726
|
-
])) :
|
|
4727
|
-
|
|
4622
|
+
title: w(() => [
|
|
4623
|
+
a.$slots[`feature-${d}-icon`] ? (m(), S("div", ns, [
|
|
4624
|
+
D(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
|
|
4625
|
+
])) : N("", !0),
|
|
4626
|
+
R("div", is, L(c.title), 1)
|
|
4728
4627
|
]),
|
|
4729
|
-
default:
|
|
4730
|
-
|
|
4628
|
+
default: w(() => [
|
|
4629
|
+
R("div", {
|
|
4731
4630
|
title: c.description
|
|
4732
|
-
}, L(c.description), 9,
|
|
4631
|
+
}, L(c.description), 9, rs)
|
|
4733
4632
|
]),
|
|
4734
4633
|
_: 2
|
|
4735
4634
|
}, 1024))), 128))
|
|
4736
|
-
])) :
|
|
4737
|
-
a.$slots.bottom ? (m(), S("div",
|
|
4738
|
-
|
|
4739
|
-
])) :
|
|
4635
|
+
])) : N("", !0),
|
|
4636
|
+
a.$slots.bottom ? (m(), S("div", as, [
|
|
4637
|
+
D(a.$slots, "bottom", {}, void 0, !0)
|
|
4638
|
+
])) : N("", !0)
|
|
4740
4639
|
]);
|
|
4741
4640
|
};
|
|
4742
4641
|
}
|
|
4743
|
-
}),
|
|
4642
|
+
}), _s = /* @__PURE__ */ se(os, [["__scopeId", "data-v-645aae54"]]), ls = { key: 1 }, ws = /* @__PURE__ */ z({
|
|
4744
4643
|
__name: "TableTags",
|
|
4745
4644
|
props: {
|
|
4746
4645
|
/** The tags to display in the table */
|
|
@@ -4754,7 +4653,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4754
4653
|
}
|
|
4755
4654
|
},
|
|
4756
4655
|
setup(e) {
|
|
4757
|
-
const t = e, n =
|
|
4656
|
+
const t = e, n = F(() => {
|
|
4758
4657
|
if (Array.isArray(t.tags))
|
|
4759
4658
|
return t.tags;
|
|
4760
4659
|
if (typeof t.tags == "string")
|
|
@@ -4768,68 +4667,66 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
|
|
|
4768
4667
|
});
|
|
4769
4668
|
return (i, r) => {
|
|
4770
4669
|
var o;
|
|
4771
|
-
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j(
|
|
4772
|
-
default:
|
|
4773
|
-
(m(!0), S(ue, null, ce(n.value, (a) => (m(), j(
|
|
4670
|
+
return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), j($(ni), { key: 0 }, {
|
|
4671
|
+
default: w(() => [
|
|
4672
|
+
(m(!0), S(ue, null, ce(n.value, (a) => (m(), j($(ii), {
|
|
4774
4673
|
key: a,
|
|
4775
4674
|
"max-width": e.tagMaxWidth,
|
|
4776
|
-
onClick: r[0] || (r[0] =
|
|
4675
|
+
onClick: r[0] || (r[0] = Le(() => {
|
|
4777
4676
|
}, ["stop"]))
|
|
4778
4677
|
}, {
|
|
4779
|
-
default:
|
|
4780
|
-
|
|
4678
|
+
default: w(() => [
|
|
4679
|
+
q(L(a), 1)
|
|
4781
4680
|
]),
|
|
4782
4681
|
_: 2
|
|
4783
4682
|
}, 1032, ["max-width"]))), 128))
|
|
4784
4683
|
]),
|
|
4785
4684
|
_: 1
|
|
4786
|
-
})) : (m(), S("span",
|
|
4685
|
+
})) : (m(), S("span", ls, "-"));
|
|
4787
4686
|
};
|
|
4788
4687
|
}
|
|
4789
|
-
}), { useAxios:
|
|
4688
|
+
}), { useAxios: Ss, useDeleteUrlBuilder: $s, useErrors: Ts, useExternalLinkCreator: Is, useFetchUrlBuilder: Es, useFetcher: Fs, useFetcherCacheKey: Os, useDebouncedFilter: Ls, useStringHelpers: Bs, useHelpers: Rs, useGatewayFeatureSupported: Ks, useTruncationDetector: Ns, useValidators: Ms, useSchemaProvider: js, useTableState: Ds } = Y;
|
|
4790
4689
|
export {
|
|
4791
|
-
|
|
4792
|
-
|
|
4690
|
+
ht as Appearances,
|
|
4691
|
+
qo as ConfigCardDisplay,
|
|
4793
4692
|
Xt as ConfigCardItem,
|
|
4794
4693
|
ae as ConfigurationSchemaSection,
|
|
4795
4694
|
V as ConfigurationSchemaType,
|
|
4796
|
-
|
|
4797
|
-
hs as
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
|
|
4802
|
-
|
|
4803
|
-
|
|
4804
|
-
|
|
4805
|
-
|
|
4806
|
-
|
|
4807
|
-
|
|
4808
|
-
ui as
|
|
4809
|
-
pi as EventGatewayTypesArray,
|
|
4695
|
+
ms as EntityBaseConfigCard,
|
|
4696
|
+
hs as EntityBaseForm,
|
|
4697
|
+
ci as EntityBaseFormType,
|
|
4698
|
+
gs as EntityBaseTable,
|
|
4699
|
+
ys as EntityDeleteModal,
|
|
4700
|
+
_s as EntityEmptyState,
|
|
4701
|
+
vs as EntityFilter,
|
|
4702
|
+
ks as EntityFormBlock,
|
|
4703
|
+
Cs as EntityFormSection,
|
|
4704
|
+
As as EntityLink,
|
|
4705
|
+
bs as EntityToggleModal,
|
|
4706
|
+
si as EntityTypes,
|
|
4707
|
+
ui as EventGatewayTypesArray,
|
|
4810
4708
|
me as FetcherStatus,
|
|
4811
|
-
|
|
4709
|
+
Wi as InternalLinkItem,
|
|
4812
4710
|
en as JsonCodeBlock,
|
|
4813
|
-
|
|
4814
|
-
|
|
4815
|
-
|
|
4816
|
-
|
|
4817
|
-
|
|
4818
|
-
|
|
4819
|
-
|
|
4820
|
-
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
|
|
4827
|
-
|
|
4828
|
-
|
|
4829
|
-
|
|
4830
|
-
|
|
4831
|
-
|
|
4832
|
-
|
|
4833
|
-
|
|
4834
|
-
Ds as useValidators
|
|
4711
|
+
xs as PermissionsWrapper,
|
|
4712
|
+
it as SupportedEntityType,
|
|
4713
|
+
Pe as SupportedEntityTypesArray,
|
|
4714
|
+
ws as TableTags,
|
|
4715
|
+
Vn as TerraformCodeBlock,
|
|
4716
|
+
Hn as YamlCodeBlock,
|
|
4717
|
+
Ss as useAxios,
|
|
4718
|
+
Ls as useDebouncedFilter,
|
|
4719
|
+
$s as useDeleteUrlBuilder,
|
|
4720
|
+
Ts as useErrors,
|
|
4721
|
+
Is as useExternalLinkCreator,
|
|
4722
|
+
Es as useFetchUrlBuilder,
|
|
4723
|
+
Fs as useFetcher,
|
|
4724
|
+
Os as useFetcherCacheKey,
|
|
4725
|
+
Ks as useGatewayFeatureSupported,
|
|
4726
|
+
Rs as useHelpers,
|
|
4727
|
+
js as useSchemaProvider,
|
|
4728
|
+
Bs as useStringHelpers,
|
|
4729
|
+
Ds as useTableState,
|
|
4730
|
+
Ns as useTruncationDetector,
|
|
4731
|
+
Ms as useValidators
|
|
4835
4732
|
};
|