@kong-ui-public/entities-consumer-groups 1.2.1 → 1.2.2-pr.759.d0a1ea1c.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ie, ref as F, computed as
|
|
1
|
+
import { defineComponent as ie, ref as F, computed as $, watch as Oe, renderSlot as X, createCommentVNode as G, unref as h, useSlots as ut, onBeforeMount as Ze, resolveComponent as N, openBlock as f, createBlock as V, createSlots as Se, withCtx as v, createElementVNode as q, createTextVNode as ee, toDisplayString as E, createVNode as j, createElementBlock as A, renderList as ye, Fragment as ve, normalizeClass as Be, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as sr, resolveDynamicComponent as He, normalizeProps as lr, guardReactiveProps as ur, mergeProps as ht, onMounted as cr, onUnmounted as dr, normalizeStyle as pr, inject as fr, pushScopeId as mr, popScopeId as gr, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import { MethodsArray as
|
|
6
|
-
const
|
|
4
|
+
import yr from "axios";
|
|
5
|
+
import { MethodsArray as hr } from "@kong/kongponents";
|
|
6
|
+
const vr = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
9
9
|
name: "Name",
|
|
@@ -95,11 +95,11 @@ const br = {
|
|
|
95
95
|
name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
99
|
-
consumer_groups:
|
|
98
|
+
}, br = {
|
|
99
|
+
consumer_groups: vr
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function Cr() {
|
|
102
|
+
const e = It("en-us", br);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function kr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: Cr
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", Te = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -140,17 +140,17 @@ const ct = {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
};
|
|
143
|
-
var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}),
|
|
143
|
+
var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Fe || {}), re = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(re || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
|
|
144
144
|
function xt(e = {}) {
|
|
145
145
|
return {
|
|
146
|
-
axiosInstance:
|
|
146
|
+
axiosInstance: yr.create({
|
|
147
147
|
withCredentials: !0,
|
|
148
148
|
timeout: 3e4,
|
|
149
149
|
...e
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function kr() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -162,12 +162,12 @@ function _r() {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const ft = "khcp-user-table-preferences",
|
|
165
|
+
const ft = "khcp-user-table-preferences", _r = {
|
|
166
166
|
pageSize: 30,
|
|
167
167
|
sortColumnKey: void 0,
|
|
168
168
|
sortColumnOrder: void 0
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function wr() {
|
|
171
171
|
const e = (t) => {
|
|
172
172
|
if (typeof t == "string")
|
|
173
173
|
try {
|
|
@@ -191,17 +191,17 @@ function Ir() {
|
|
|
191
191
|
},
|
|
192
192
|
getTablePreferences: (t) => {
|
|
193
193
|
const r = n();
|
|
194
|
-
return (r == null ? void 0 : r.get(t)) || void 0 ||
|
|
194
|
+
return (r == null ? void 0 : r.get(t)) || void 0 || _r;
|
|
195
195
|
},
|
|
196
196
|
deleteAllTablePreferences: () => {
|
|
197
197
|
localStorage.removeItem(ft);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const Ir = {
|
|
202
202
|
message: "Are you sure you want to delete this {entityType}?",
|
|
203
203
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
204
|
-
},
|
|
204
|
+
}, xr = {
|
|
205
205
|
actions: {
|
|
206
206
|
save: "Save",
|
|
207
207
|
cancel: "Cancel",
|
|
@@ -210,13 +210,13 @@ const xr = {
|
|
|
210
210
|
errors: {
|
|
211
211
|
edit: "The entity could not be edited at this time."
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Ar = {
|
|
214
214
|
emptyState: {
|
|
215
215
|
noSearchResultsTitle: "No results found",
|
|
216
216
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
217
217
|
noSearchResultsCtaText: "Clear"
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, Sr = {
|
|
220
220
|
title: "Configuration",
|
|
221
221
|
actions: {
|
|
222
222
|
copy: "Copy JSON"
|
|
@@ -251,7 +251,7 @@ const xr = {
|
|
|
251
251
|
entryTitle: "Entry {index}",
|
|
252
252
|
structuredFormat: "Structured"
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, Tr = {
|
|
255
255
|
filterButtonText: "Filter",
|
|
256
256
|
fieldLabel: "Filter by:",
|
|
257
257
|
inputPlaceholder: "Enter a value",
|
|
@@ -259,15 +259,15 @@ const xr = {
|
|
|
259
259
|
applyButtonText: "Apply",
|
|
260
260
|
clearButtonText: "Clear",
|
|
261
261
|
clearAllButtonText: "Clear all filters"
|
|
262
|
-
},
|
|
262
|
+
}, $r = {
|
|
263
263
|
errors: {
|
|
264
264
|
fetch: "Could not fetch available items",
|
|
265
265
|
invalid: "Please select a valid value"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Mr = {
|
|
268
268
|
unexpected: "An unexpected error has occurred",
|
|
269
269
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
270
|
+
}, Or = {
|
|
271
271
|
enable: {
|
|
272
272
|
title: "Enable {entityType}",
|
|
273
273
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -278,32 +278,32 @@ const xr = {
|
|
|
278
278
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
279
279
|
confirmText: "Yes, disable"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
deleteModal:
|
|
283
|
-
baseForm:
|
|
284
|
-
baseTable:
|
|
285
|
-
baseConfigCard:
|
|
286
|
-
filter:
|
|
287
|
-
debouncedFilter:
|
|
288
|
-
errors:
|
|
289
|
-
toggleModal:
|
|
281
|
+
}, Er = {
|
|
282
|
+
deleteModal: Ir,
|
|
283
|
+
baseForm: xr,
|
|
284
|
+
baseTable: Ar,
|
|
285
|
+
baseConfigCard: Sr,
|
|
286
|
+
filter: Tr,
|
|
287
|
+
debouncedFilter: $r,
|
|
288
|
+
errors: Mr,
|
|
289
|
+
toggleModal: Or
|
|
290
290
|
};
|
|
291
291
|
function At() {
|
|
292
|
-
const e = It("en-us",
|
|
292
|
+
const e = It("en-us", Er);
|
|
293
293
|
return {
|
|
294
294
|
i18n: e,
|
|
295
295
|
i18nT: cn(e)
|
|
296
296
|
// Translation component <i18n-t>
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
-
function
|
|
299
|
+
function jr(e, n, t, r = {
|
|
300
300
|
fetchedItemsKey: "data",
|
|
301
301
|
searchKeys: ["id"]
|
|
302
302
|
}) {
|
|
303
303
|
t || (t = "100");
|
|
304
304
|
const { axiosInstance: o } = xt({
|
|
305
305
|
headers: e.requestHeaders
|
|
306
|
-
}), { i18n: { t: a } } = At(), { debounce: i } =
|
|
306
|
+
}), { i18n: { t: a } } = At(), { debounce: i } = kr(), s = i(async (y) => {
|
|
307
307
|
await C(y);
|
|
308
308
|
}, 200), l = F(!1), c = F(""), d = F(""), u = F([]), m = F(void 0), g = h(n);
|
|
309
309
|
let k = `${e.apiBaseUrl}${g}`;
|
|
@@ -319,29 +319,29 @@ function Fr(e, n, t, r = {
|
|
|
319
319
|
l.value = !1;
|
|
320
320
|
}
|
|
321
321
|
}, p = F(""), C = async (y) => {
|
|
322
|
-
var w,
|
|
322
|
+
var w, P;
|
|
323
323
|
if (p.value !== y)
|
|
324
324
|
if (p.value = y || "", m.value === void 0)
|
|
325
325
|
try {
|
|
326
326
|
l.value = !0, c.value = "", d.value = "";
|
|
327
|
-
let
|
|
328
|
-
y && (
|
|
329
|
-
const { data:
|
|
330
|
-
r.fetchedItemsKey in
|
|
331
|
-
} catch (
|
|
332
|
-
((w =
|
|
327
|
+
let Y = k + "";
|
|
328
|
+
y && (Y += `/${y}`);
|
|
329
|
+
const { data: oe } = await o.get(`${Y}?size=${t}`);
|
|
330
|
+
r.fetchedItemsKey in oe ? u.value = oe[r.fetchedItemsKey] : oe != null && oe.id ? u.value = [oe] : u.value = [];
|
|
331
|
+
} catch (Y) {
|
|
332
|
+
((w = Y == null ? void 0 : Y.response) == null ? void 0 : w.status) === 404 ? d.value = a("debouncedFilter.errors.invalid") : (u.value = [], c.value = a("debouncedFilter.errors.fetch"));
|
|
333
333
|
} finally {
|
|
334
334
|
l.value = !1;
|
|
335
335
|
}
|
|
336
336
|
else
|
|
337
|
-
l.value = !0, d.value = "", y ? (u.value = (
|
|
338
|
-
var
|
|
339
|
-
let
|
|
337
|
+
l.value = !0, d.value = "", y ? (u.value = (P = m.value) == null ? void 0 : P.filter((Y) => {
|
|
338
|
+
var oe;
|
|
339
|
+
let H = !1;
|
|
340
340
|
for (const I of r.searchKeys) {
|
|
341
|
-
const D = typeof
|
|
342
|
-
D != null && D.includes(y.toLowerCase()) && (
|
|
341
|
+
const D = typeof Y[I] == "string" ? (oe = Y[I]) == null ? void 0 : oe.toLowerCase() : Y[I];
|
|
342
|
+
D != null && D.includes(y.toLowerCase()) && (H = !0);
|
|
343
343
|
}
|
|
344
|
-
return
|
|
344
|
+
return H;
|
|
345
345
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = m.value, l.value = !1;
|
|
346
346
|
};
|
|
347
347
|
return {
|
|
@@ -354,13 +354,13 @@ function Fr(e, n, t, r = {
|
|
|
354
354
|
debouncedQueryChange: s
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
const t = h(n), r =
|
|
357
|
+
function Fr(e, n) {
|
|
358
|
+
const t = h(n), r = $(
|
|
359
359
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
360
360
|
);
|
|
361
361
|
return r.value.search = "", (o) => `${r.value.href}/${o}`;
|
|
362
362
|
}
|
|
363
|
-
function
|
|
363
|
+
function Kr() {
|
|
364
364
|
const { i18n: { t: e } } = At();
|
|
365
365
|
return {
|
|
366
366
|
getMessageFromError: (n) => {
|
|
@@ -389,9 +389,9 @@ function Br() {
|
|
|
389
389
|
};
|
|
390
390
|
}
|
|
391
391
|
function pn(e, n) {
|
|
392
|
-
const t = F(h(e)), r = F(h(n)), o =
|
|
392
|
+
const t = F(h(e)), r = F(h(n)), o = $(
|
|
393
393
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
394
|
-
), a =
|
|
394
|
+
), a = $(
|
|
395
395
|
() => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
|
|
396
396
|
);
|
|
397
397
|
return (i) => {
|
|
@@ -406,15 +406,15 @@ function pn(e, n) {
|
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
}
|
|
409
|
-
function
|
|
409
|
+
function Br(e, n, t = "data") {
|
|
410
410
|
const r = h(n), { axiosInstance: o } = xt({
|
|
411
411
|
headers: e.requestHeaders
|
|
412
412
|
}), a = pn(e, r), i = F({
|
|
413
|
-
status:
|
|
413
|
+
status: Fe.Idle
|
|
414
414
|
});
|
|
415
415
|
return { fetcher: async (s) => {
|
|
416
416
|
try {
|
|
417
|
-
i.value = { status:
|
|
417
|
+
i.value = { status: Fe.Loading };
|
|
418
418
|
const l = a(s), { data: c } = await o.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
419
419
|
let u;
|
|
420
420
|
c[d] && Array.isArray(c[d]) ? u = c[d] : u = Object.keys(c).length ? [c] : [];
|
|
@@ -428,7 +428,7 @@ function Nr(e, n, t = "data") {
|
|
|
428
428
|
} : null
|
|
429
429
|
};
|
|
430
430
|
return i.value = {
|
|
431
|
-
status:
|
|
431
|
+
status: Fe.Idle,
|
|
432
432
|
response: m
|
|
433
433
|
}, m;
|
|
434
434
|
} catch (l) {
|
|
@@ -437,11 +437,11 @@ function Nr(e, n, t = "data") {
|
|
|
437
437
|
total: 0
|
|
438
438
|
};
|
|
439
439
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
440
|
-
status:
|
|
440
|
+
status: Fe.NoResults,
|
|
441
441
|
response: c,
|
|
442
442
|
error: l
|
|
443
443
|
}, c) : (i.value = {
|
|
444
|
-
status:
|
|
444
|
+
status: Fe.Error,
|
|
445
445
|
response: c,
|
|
446
446
|
error: l
|
|
447
447
|
}, c);
|
|
@@ -453,7 +453,7 @@ function Lr() {
|
|
|
453
453
|
getPropValue: (e, n) => (n == null ? void 0 : n[e]) ?? void 0
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
function
|
|
456
|
+
function Nr() {
|
|
457
457
|
return {
|
|
458
458
|
convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
|
|
459
459
|
};
|
|
@@ -468,24 +468,24 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
468
468
|
}, Pt = (e) => e === "*" || e === "x" || e === "X", Ut = (e) => {
|
|
469
469
|
const n = parseInt(e, 10);
|
|
470
470
|
return isNaN(n) ? e : n;
|
|
471
|
-
},
|
|
471
|
+
}, qr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Pr = (e, n) => {
|
|
472
472
|
if (Pt(e) || Pt(n))
|
|
473
473
|
return 0;
|
|
474
|
-
const [t, r] =
|
|
474
|
+
const [t, r] = qr(Ut(e), Ut(n));
|
|
475
475
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
476
476
|
}, Vt = (e, n) => {
|
|
477
477
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
478
|
-
const r =
|
|
478
|
+
const r = Pr(e[t] || "0", n[t] || "0");
|
|
479
479
|
if (r !== 0)
|
|
480
480
|
return r;
|
|
481
481
|
}
|
|
482
482
|
return 0;
|
|
483
|
-
},
|
|
483
|
+
}, Ur = (e, n) => {
|
|
484
484
|
const t = qt(e), r = qt(n), o = t.pop(), a = r.pop(), i = Vt(t, r);
|
|
485
485
|
return i !== 0 ? i : o && a ? Vt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
486
486
|
}, Dt = (e, n, t) => {
|
|
487
|
-
|
|
488
|
-
const r =
|
|
487
|
+
Vr(t);
|
|
488
|
+
const r = Ur(e, n);
|
|
489
489
|
return mn[t].includes(r);
|
|
490
490
|
}, mn = {
|
|
491
491
|
">": [1],
|
|
@@ -494,18 +494,18 @@ const fn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
494
494
|
"<=": [-1, 0],
|
|
495
495
|
"<": [-1],
|
|
496
496
|
"!=": [-1, 1]
|
|
497
|
-
}, Rt = Object.keys(mn),
|
|
497
|
+
}, Rt = Object.keys(mn), Vr = (e) => {
|
|
498
498
|
if (typeof e != "string")
|
|
499
499
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
500
500
|
if (Rt.indexOf(e) === -1)
|
|
501
501
|
throw new Error(`Invalid operator, expected one of ${Rt.join("|")}`);
|
|
502
|
-
},
|
|
503
|
-
function
|
|
502
|
+
}, Dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && fn.test(e);
|
|
503
|
+
function Rr(e) {
|
|
504
504
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
505
505
|
if (!n)
|
|
506
506
|
return !0;
|
|
507
507
|
const { edition: r, version: o } = n;
|
|
508
|
-
if (!
|
|
508
|
+
if (!Dr(o))
|
|
509
509
|
return console.error("Invalid version"), !1;
|
|
510
510
|
const a = t[r];
|
|
511
511
|
if (!a)
|
|
@@ -513,27 +513,27 @@ function Gr(e) {
|
|
|
513
513
|
const [i, s] = a;
|
|
514
514
|
return !(i && Dt(o, i, "<") || s && Dt(o, s, ">"));
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const ce = {
|
|
517
517
|
useAxios: xt,
|
|
518
|
-
useDebouncedFilter:
|
|
519
|
-
useDeleteUrlBuilder:
|
|
520
|
-
useErrors:
|
|
521
|
-
useFetcher:
|
|
518
|
+
useDebouncedFilter: jr,
|
|
519
|
+
useDeleteUrlBuilder: Fr,
|
|
520
|
+
useErrors: Kr,
|
|
521
|
+
useFetcher: Br,
|
|
522
522
|
useFetchUrlBuilder: pn,
|
|
523
523
|
useHelpers: Lr,
|
|
524
|
-
useStringHelpers:
|
|
524
|
+
useStringHelpers: Nr,
|
|
525
525
|
useI18n: At,
|
|
526
|
-
useGatewayFeatureSupported:
|
|
527
|
-
},
|
|
526
|
+
useGatewayFeatureSupported: Rr
|
|
527
|
+
}, Gr = {
|
|
528
528
|
fail: "Failed to copy id to clipboard",
|
|
529
529
|
success: {
|
|
530
530
|
prefix: "Successfully",
|
|
531
531
|
content: " copied to clipboard"
|
|
532
532
|
}
|
|
533
|
-
},
|
|
534
|
-
message:
|
|
535
|
-
iconTitle:
|
|
536
|
-
},
|
|
533
|
+
}, Hr = "Copy to clipboard", zr = {
|
|
534
|
+
message: Gr,
|
|
535
|
+
iconTitle: Hr
|
|
536
|
+
}, Yr = "kong-ui-copy-uuid-notify", Jr = { class: "kong-ui-copy-uuid" }, Wr = ["onClick"], Gt = 15, Zr = /* @__PURE__ */ ie({
|
|
537
537
|
__name: "CopyUuid",
|
|
538
538
|
props: {
|
|
539
539
|
uuid: {
|
|
@@ -577,19 +577,19 @@ const de = {
|
|
|
577
577
|
},
|
|
578
578
|
emits: ["success", "error"],
|
|
579
579
|
setup(e, { emit: n }) {
|
|
580
|
-
const t = e, { t: r } = It("en-us",
|
|
581
|
-
}), a =
|
|
580
|
+
const t = e, { t: r } = It("en-us", zr), o = t.notify || fr(Yr, () => {
|
|
581
|
+
}), a = $(() => t.idTooltip ? {
|
|
582
582
|
label: t.idTooltip,
|
|
583
583
|
positionFixed: !0,
|
|
584
584
|
placement: "bottomStart"
|
|
585
585
|
} : {
|
|
586
586
|
title: t.uuid
|
|
587
|
-
}), i =
|
|
587
|
+
}), i = $(() => !!(t.tooltip && t.successTooltip)), s = F(t.tooltip), l = $(() => t.tooltip ? {
|
|
588
588
|
label: s.value,
|
|
589
589
|
positionFixed: !0,
|
|
590
590
|
maxWidth: "500px",
|
|
591
591
|
placement: "bottomStart"
|
|
592
|
-
} : {}), c =
|
|
592
|
+
} : {}), c = $(() => t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${t.uuid.substring(0, 5)}` : t.uuid), d = (m) => {
|
|
593
593
|
s.value = m, setTimeout(() => {
|
|
594
594
|
s.value = t.tooltip;
|
|
595
595
|
}, 1800);
|
|
@@ -609,11 +609,11 @@ const de = {
|
|
|
609
609
|
};
|
|
610
610
|
return (m, g) => {
|
|
611
611
|
const k = N("KIcon"), _ = N("KClipboardProvider");
|
|
612
|
-
return f(), A("div",
|
|
613
|
-
e.format !== "hidden" ? (f(),
|
|
612
|
+
return f(), A("div", Jr, [
|
|
613
|
+
e.format !== "hidden" ? (f(), V(He(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
614
614
|
default: v(() => [
|
|
615
|
-
|
|
616
|
-
class:
|
|
615
|
+
q("div", {
|
|
616
|
+
class: Be([
|
|
617
617
|
"uuid-container",
|
|
618
618
|
e.truncated ? "truncated-uuid" : null,
|
|
619
619
|
e.useMono ? "mono" : null
|
|
@@ -622,11 +622,11 @@ const de = {
|
|
|
622
622
|
]),
|
|
623
623
|
_: 1
|
|
624
624
|
}, 16)) : G("", !0),
|
|
625
|
-
(f(),
|
|
625
|
+
(f(), V(He(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
626
626
|
default: v(() => [
|
|
627
627
|
j(_, null, {
|
|
628
628
|
default: v(({ copyToClipboard: p }) => [
|
|
629
|
-
|
|
629
|
+
q("span", {
|
|
630
630
|
"data-testid": "copy-to-clipboard",
|
|
631
631
|
role: "button",
|
|
632
632
|
tabindex: "0",
|
|
@@ -640,7 +640,7 @@ const de = {
|
|
|
640
640
|
size: "16",
|
|
641
641
|
title: h(r)("iconTitle")
|
|
642
642
|
}, null, 8, ["color", "hide-title", "title"])
|
|
643
|
-
], 8,
|
|
643
|
+
], 8, Wr)
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
})
|
|
@@ -650,15 +650,15 @@ const de = {
|
|
|
650
650
|
]);
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
}),
|
|
653
|
+
}), Qr = (e, n) => {
|
|
654
654
|
const t = e.__vccOpts || e;
|
|
655
655
|
for (const [r, o] of n)
|
|
656
656
|
t[r] = o;
|
|
657
657
|
return t;
|
|
658
|
-
}, gn = /* @__PURE__ */
|
|
658
|
+
}, gn = /* @__PURE__ */ Qr(Zr, [["__scopeId", "data-v-bfdaf6f7"]]), Xr = {
|
|
659
659
|
key: 0,
|
|
660
660
|
class: "config-card-fieldset-title"
|
|
661
|
-
},
|
|
661
|
+
}, eo = /* @__PURE__ */ ie({
|
|
662
662
|
__name: "JsonCardItem",
|
|
663
663
|
props: {
|
|
664
664
|
item: {
|
|
@@ -675,21 +675,21 @@ const de = {
|
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
setup(e) {
|
|
678
|
-
const n = e, { i18n: { t } } =
|
|
678
|
+
const n = e, { i18n: { t } } = ce.useI18n(), { convertKeyToTitle: r } = ce.useStringHelpers(), o = $(() => n.item.key ?? "json-array-item"), a = $(() => n.item.value ?? n.item), i = $(() => {
|
|
679
679
|
const l = JSON.parse(JSON.stringify(a.value));
|
|
680
680
|
return n.isArrayItem && delete l.name, l;
|
|
681
|
-
}), s =
|
|
681
|
+
}), s = $(() => {
|
|
682
682
|
var l;
|
|
683
683
|
return n.isArrayItem ? (l = a.value) != null && l.name ? r(a.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
|
|
684
684
|
});
|
|
685
|
-
return (l, c) => (f(),
|
|
686
|
-
class:
|
|
685
|
+
return (l, c) => (f(), V(He(e.isArrayItem ? "fieldset" : "div"), {
|
|
686
|
+
class: Be(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
687
687
|
}, {
|
|
688
688
|
default: v(() => [
|
|
689
|
-
e.isArrayItem ? (f(), A("legend",
|
|
690
|
-
|
|
689
|
+
e.isArrayItem ? (f(), A("legend", Xr, [
|
|
690
|
+
q("b", null, E(s.value), 1)
|
|
691
691
|
])) : G("", !0),
|
|
692
|
-
(f(!0), A(ve, null, ye(Object.keys(i.value), (d, u) => (f(),
|
|
692
|
+
(f(!0), A(ve, null, ye(Object.keys(i.value), (d, u) => (f(), V(St, {
|
|
693
693
|
key: `${o.value}-property-${u}`,
|
|
694
694
|
item: {
|
|
695
695
|
key: d,
|
|
@@ -701,12 +701,12 @@ const de = {
|
|
|
701
701
|
_: 1
|
|
702
702
|
}, 8, ["class"]));
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
704
|
+
}), _e = (e, n) => {
|
|
705
705
|
const t = e.__vccOpts || e;
|
|
706
706
|
for (const [r, o] of n)
|
|
707
707
|
t[r] = o;
|
|
708
708
|
return t;
|
|
709
|
-
}, yn = /* @__PURE__ */
|
|
709
|
+
}, yn = /* @__PURE__ */ _e(eo, [["__scopeId", "data-v-68ca83ec"]]), to = /* @__PURE__ */ ie({
|
|
710
710
|
__name: "InternalLinkItem",
|
|
711
711
|
props: {
|
|
712
712
|
item: {
|
|
@@ -716,7 +716,7 @@ const de = {
|
|
|
716
716
|
},
|
|
717
717
|
emits: ["navigation-click"],
|
|
718
718
|
setup(e) {
|
|
719
|
-
const { i18n: { t: n } } =
|
|
719
|
+
const { i18n: { t: n } } = ce.useI18n();
|
|
720
720
|
return (t, r) => {
|
|
721
721
|
const o = N("KButton");
|
|
722
722
|
return f(), A("div", null, [
|
|
@@ -726,14 +726,14 @@ const de = {
|
|
|
726
726
|
onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
|
|
727
727
|
}, {
|
|
728
728
|
default: v(() => [
|
|
729
|
-
|
|
729
|
+
ee(E(e.item.value || h(n)("baseConfigCard.commonFields.link")), 1)
|
|
730
730
|
]),
|
|
731
731
|
_: 1
|
|
732
732
|
})
|
|
733
733
|
]);
|
|
734
734
|
};
|
|
735
735
|
}
|
|
736
|
-
}),
|
|
736
|
+
}), no = /* @__PURE__ */ _e(to, [["__scopeId", "data-v-7410504d"]]), ro = /* @__PURE__ */ ie({
|
|
737
737
|
__name: "StatusBadge",
|
|
738
738
|
props: {
|
|
739
739
|
status: {
|
|
@@ -742,24 +742,24 @@ const de = {
|
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
744
|
setup(e) {
|
|
745
|
-
const { i18n: { t: n } } =
|
|
745
|
+
const { i18n: { t: n } } = ce.useI18n();
|
|
746
746
|
return (t, r) => {
|
|
747
747
|
const o = N("KBadge");
|
|
748
|
-
return f(),
|
|
748
|
+
return f(), V(o, {
|
|
749
749
|
appearance: e.status ? "success" : "neutral"
|
|
750
750
|
}, {
|
|
751
751
|
default: v(() => [
|
|
752
|
-
|
|
752
|
+
ee(E(e.status ? h(n)("baseConfigCard.statusBadge.enabledLabel") : h(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
753
753
|
]),
|
|
754
754
|
_: 1
|
|
755
755
|
}, 8, ["appearance"]);
|
|
756
756
|
};
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), oo = "#0044f4", ao = "#e0e4ea", io = "#3a3f51", so = "1px", lo = "20px", uo = { class: "config-card-details-row" }, co = ["data-testid"], po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = { key: 1 }, yo = ["data-testid"], ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"], Co = ["title"], ko = {
|
|
759
759
|
name: "ConfigCardItem",
|
|
760
|
-
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge:
|
|
761
|
-
},
|
|
762
|
-
...
|
|
760
|
+
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge: ro, InternalLinkItem: no }
|
|
761
|
+
}, _o = /* @__PURE__ */ ie({
|
|
762
|
+
...ko,
|
|
763
763
|
props: {
|
|
764
764
|
item: {
|
|
765
765
|
type: Object,
|
|
@@ -779,15 +779,15 @@ const de = {
|
|
|
779
779
|
emits: ["navigation-click"],
|
|
780
780
|
setup(e, { emit: n }) {
|
|
781
781
|
const t = e;
|
|
782
|
-
|
|
783
|
-
"2c6ac268": c.value ? "none" : `solid ${h(
|
|
782
|
+
sr((u) => ({
|
|
783
|
+
"2c6ac268": c.value ? "none" : `solid ${h(so)} ${h(ao)}`,
|
|
784
784
|
c7a65802: l.value && i.value ? "block" : "flex",
|
|
785
785
|
"778426fe": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
786
786
|
"777f9b48": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
787
787
|
}));
|
|
788
|
-
const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } =
|
|
788
|
+
const r = ut(), { i18n: { t: o, formatUnixTimeStamp: a } } = ce.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || r["label-tooltip"])), l = $(() => t.item.type === re.Json || t.item.type === re.JsonArray), c = $(() => t.item.type === re.JsonArray), d = $(() => {
|
|
789
789
|
switch (t.item.type) {
|
|
790
|
-
case
|
|
790
|
+
case re.ID:
|
|
791
791
|
return {
|
|
792
792
|
tag: "CopyUuid",
|
|
793
793
|
attrs: {
|
|
@@ -800,7 +800,7 @@ const de = {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
case
|
|
803
|
+
case re.IdArray:
|
|
804
804
|
return {
|
|
805
805
|
tag: "div",
|
|
806
806
|
additionalComponent: "CopyUuid",
|
|
@@ -812,7 +812,7 @@ const de = {
|
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
case
|
|
815
|
+
case re.Redacted:
|
|
816
816
|
return {
|
|
817
817
|
tag: "CopyUuid",
|
|
818
818
|
attrs: {
|
|
@@ -826,7 +826,7 @@ const de = {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
case
|
|
829
|
+
case re.RedactedArray:
|
|
830
830
|
return {
|
|
831
831
|
tag: "div",
|
|
832
832
|
additionalComponent: "CopyUuid",
|
|
@@ -839,7 +839,7 @@ const de = {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
|
-
case
|
|
842
|
+
case re.Date:
|
|
843
843
|
return {
|
|
844
844
|
tag: "div",
|
|
845
845
|
attrs: {
|
|
@@ -847,7 +847,7 @@ const de = {
|
|
|
847
847
|
},
|
|
848
848
|
text: a(t.item.value)
|
|
849
849
|
};
|
|
850
|
-
case
|
|
850
|
+
case re.BadgeStatus:
|
|
851
851
|
return {
|
|
852
852
|
tag: "StatusBadge",
|
|
853
853
|
attrs: {
|
|
@@ -855,17 +855,17 @@ const de = {
|
|
|
855
855
|
status: t.item.value
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
case
|
|
858
|
+
case re.BadgeTag:
|
|
859
859
|
return {
|
|
860
860
|
tag: "div",
|
|
861
861
|
additionalComponent: "KBadge"
|
|
862
862
|
};
|
|
863
|
-
case
|
|
863
|
+
case re.BadgeMethod:
|
|
864
864
|
return {
|
|
865
865
|
tag: "div",
|
|
866
866
|
additionalComponent: "KMethodBadge"
|
|
867
867
|
};
|
|
868
|
-
case
|
|
868
|
+
case re.LinkInternal:
|
|
869
869
|
return {
|
|
870
870
|
tag: "InternalLinkItem",
|
|
871
871
|
attrs: {
|
|
@@ -876,7 +876,7 @@ const de = {
|
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
case
|
|
879
|
+
case re.LinkExternal:
|
|
880
880
|
return {
|
|
881
881
|
tag: "KExternalLink",
|
|
882
882
|
attrs: {
|
|
@@ -885,7 +885,7 @@ const de = {
|
|
|
885
885
|
},
|
|
886
886
|
text: t.item.value
|
|
887
887
|
};
|
|
888
|
-
case
|
|
888
|
+
case re.Json:
|
|
889
889
|
return {
|
|
890
890
|
tag: "JsonCardItem",
|
|
891
891
|
attrs: {
|
|
@@ -893,7 +893,7 @@ const de = {
|
|
|
893
893
|
item: t.item
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
|
-
case
|
|
896
|
+
case re.JsonArray:
|
|
897
897
|
return {
|
|
898
898
|
tag: "div",
|
|
899
899
|
additionalComponent: "JsonCardItem",
|
|
@@ -914,150 +914,150 @@ const de = {
|
|
|
914
914
|
});
|
|
915
915
|
return (u, m) => {
|
|
916
916
|
const g = N("KLabel"), k = N("KBadge"), _ = N("KMethodBadge");
|
|
917
|
-
return f(), A("div",
|
|
918
|
-
|
|
917
|
+
return f(), A("div", uo, [
|
|
918
|
+
q("div", {
|
|
919
919
|
class: "config-card-details-label",
|
|
920
920
|
"data-testid": `${e.item.key}-label`
|
|
921
921
|
}, [
|
|
922
|
-
|
|
922
|
+
X(u.$slots, "label", { item: e.item }, () => [
|
|
923
923
|
j(g, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
924
924
|
default: v(() => [
|
|
925
|
-
|
|
925
|
+
ee(E(e.item.label) + " ", 1)
|
|
926
926
|
]),
|
|
927
927
|
_: 2
|
|
928
928
|
}, [
|
|
929
929
|
s.value ? {
|
|
930
930
|
name: "tooltip",
|
|
931
931
|
fn: v(() => [
|
|
932
|
-
|
|
932
|
+
q("div", {
|
|
933
933
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
934
934
|
}, [
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
X(u.$slots, "label-tooltip", {}, () => [
|
|
936
|
+
ee(E(e.item.tooltip), 1)
|
|
937
937
|
], !0)
|
|
938
|
-
], 8,
|
|
938
|
+
], 8, po)
|
|
939
939
|
]),
|
|
940
940
|
key: "0"
|
|
941
941
|
} : void 0
|
|
942
942
|
]), 1024)
|
|
943
943
|
], !0)
|
|
944
|
-
], 8,
|
|
945
|
-
|
|
944
|
+
], 8, co),
|
|
945
|
+
q("div", {
|
|
946
946
|
class: "config-card-details-value",
|
|
947
947
|
"data-testid": `${e.item.key}-property-value`
|
|
948
948
|
}, [
|
|
949
|
-
|
|
949
|
+
X(u.$slots, e.item.key, {
|
|
950
950
|
rowValue: e.item.value
|
|
951
951
|
}, () => [
|
|
952
|
-
i.value ? (f(), A("div",
|
|
953
|
-
(f(),
|
|
952
|
+
i.value ? (f(), A("div", go, [
|
|
953
|
+
(f(), V(He(d.value.tag), lr(ur(d.value.attrs)), {
|
|
954
954
|
default: v(() => [
|
|
955
955
|
d.value.additionalComponent === "KBadge" ? (f(), A("div", {
|
|
956
956
|
key: 0,
|
|
957
957
|
"data-testid": `${e.item.key}-badge-tags`
|
|
958
958
|
}, [
|
|
959
|
-
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(),
|
|
959
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), V(k, {
|
|
960
960
|
key: `${e.item.key}-badge-tag-${C}`,
|
|
961
961
|
class: "config-badge",
|
|
962
962
|
"data-testid": `${e.item.key}-badge-tag-${C}`,
|
|
963
963
|
"truncation-tooltip": p
|
|
964
964
|
}, {
|
|
965
965
|
default: v(() => [
|
|
966
|
-
|
|
966
|
+
ee(E(p), 1)
|
|
967
967
|
]),
|
|
968
968
|
_: 2
|
|
969
969
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
970
|
-
], 8,
|
|
970
|
+
], 8, yo)) : G("", !0),
|
|
971
971
|
d.value.additionalComponent === "CopyUuid" ? (f(), A("div", {
|
|
972
972
|
key: 1,
|
|
973
973
|
class: "copy-uuid-array",
|
|
974
974
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
975
975
|
}, [
|
|
976
|
-
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(),
|
|
976
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), V(h(gn), ht(d.value.childAttrs, {
|
|
977
977
|
key: `${e.item.key}-copy-uuid-${C}`,
|
|
978
978
|
"data-testid": `${e.item.key}-copy-uuid-${C}`,
|
|
979
979
|
uuid: p
|
|
980
980
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
981
|
-
], 8,
|
|
981
|
+
], 8, ho)) : d.value.additionalComponent === "KMethodBadge" ? (f(), A("div", {
|
|
982
982
|
key: 2,
|
|
983
983
|
class: "method-badge-array",
|
|
984
984
|
"data-testid": `${e.item.key}-badge-methods`
|
|
985
985
|
}, [
|
|
986
|
-
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(),
|
|
986
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), V(_, {
|
|
987
987
|
key: `${e.item.key}-badge-method-${C}`,
|
|
988
988
|
class: "config-badge",
|
|
989
989
|
"data-testid": `${e.item.key}-badge-method-${C}`,
|
|
990
990
|
"is-rounded": "",
|
|
991
991
|
label: p,
|
|
992
|
-
method: h(
|
|
992
|
+
method: h(hr).includes(p.toLowerCase()) ? p.toLowerCase() : "custom"
|
|
993
993
|
}, {
|
|
994
994
|
default: v(() => [
|
|
995
|
-
|
|
995
|
+
ee(E(p), 1)
|
|
996
996
|
]),
|
|
997
997
|
_: 2
|
|
998
998
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
999
|
-
], 8,
|
|
999
|
+
], 8, vo)) : G("", !0),
|
|
1000
1000
|
d.value.additionalComponent === "JsonCardItem" ? (f(), A("div", {
|
|
1001
1001
|
key: 3,
|
|
1002
1002
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1003
1003
|
}, [
|
|
1004
|
-
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(),
|
|
1004
|
+
(f(!0), A(ve, null, ye(e.item.value, (p, C) => (f(), V(yn, {
|
|
1005
1005
|
key: `json-array-item-${C}`,
|
|
1006
1006
|
index: C,
|
|
1007
1007
|
"is-array-item": "",
|
|
1008
1008
|
item: p
|
|
1009
1009
|
}, null, 8, ["index", "item"]))), 128))
|
|
1010
|
-
], 8,
|
|
1010
|
+
], 8, bo)) : (f(), A("span", {
|
|
1011
1011
|
key: 4,
|
|
1012
|
-
class:
|
|
1012
|
+
class: Be(["attrs-data-text", { truncated: e.truncated }]),
|
|
1013
1013
|
title: e.truncated ? e.item.value : void 0
|
|
1014
|
-
}, E(d.value.text), 11,
|
|
1014
|
+
}, E(d.value.text), 11, Co))
|
|
1015
1015
|
]),
|
|
1016
1016
|
_: 1
|
|
1017
1017
|
}, 16))
|
|
1018
1018
|
])) : (f(), A("div", {
|
|
1019
1019
|
key: 0,
|
|
1020
1020
|
"data-testid": `${e.item.key}-no-value`
|
|
1021
|
-
}, " – ", 8,
|
|
1021
|
+
}, " – ", 8, mo))
|
|
1022
1022
|
], !0)
|
|
1023
|
-
], 8,
|
|
1023
|
+
], 8, fo)
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), St = /* @__PURE__ */
|
|
1027
|
+
}), St = /* @__PURE__ */ _e(_o, [["__scopeId", "data-v-a3c5ab01"]]);
|
|
1028
1028
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1029
1029
|
function hn(e) {
|
|
1030
1030
|
return typeof e > "u" || e === null;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1032
|
+
function wo(e) {
|
|
1033
1033
|
return typeof e == "object" && e !== null;
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function Io(e) {
|
|
1036
1036
|
return Array.isArray(e) ? e : hn(e) ? [] : [e];
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function xo(e, n) {
|
|
1039
1039
|
var t, r, o, a;
|
|
1040
1040
|
if (n)
|
|
1041
1041
|
for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
|
|
1042
1042
|
o = a[t], e[o] = n[o];
|
|
1043
1043
|
return e;
|
|
1044
1044
|
}
|
|
1045
|
-
function
|
|
1045
|
+
function Ao(e, n) {
|
|
1046
1046
|
var t = "", r;
|
|
1047
1047
|
for (r = 0; r < n; r += 1)
|
|
1048
1048
|
t += e;
|
|
1049
1049
|
return t;
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1051
|
+
function So(e) {
|
|
1052
1052
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1053
1053
|
}
|
|
1054
|
-
var $o =
|
|
1055
|
-
isNothing:
|
|
1056
|
-
isObject:
|
|
1057
|
-
toArray:
|
|
1058
|
-
repeat:
|
|
1059
|
-
isNegativeZero:
|
|
1060
|
-
extend:
|
|
1054
|
+
var To = hn, $o = wo, Mo = Io, Oo = Ao, Eo = So, jo = xo, se = {
|
|
1055
|
+
isNothing: To,
|
|
1056
|
+
isObject: $o,
|
|
1057
|
+
toArray: Mo,
|
|
1058
|
+
repeat: Oo,
|
|
1059
|
+
isNegativeZero: Eo,
|
|
1060
|
+
extend: jo
|
|
1061
1061
|
};
|
|
1062
1062
|
function vn(e, n) {
|
|
1063
1063
|
var t = "", r = e.reason || "(unknown reason)";
|
|
@@ -1065,15 +1065,15 @@ function vn(e, n) {
|
|
|
1065
1065
|
|
|
1066
1066
|
` + e.mark.snippet), r + " " + t) : r;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function ze(e, n) {
|
|
1069
1069
|
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = vn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1070
1070
|
}
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1071
|
+
ze.prototype = Object.create(Error.prototype);
|
|
1072
|
+
ze.prototype.constructor = ze;
|
|
1073
|
+
ze.prototype.toString = function(e) {
|
|
1074
1074
|
return this.name + ": " + vn(this, e);
|
|
1075
1075
|
};
|
|
1076
|
-
var me =
|
|
1076
|
+
var me = ze;
|
|
1077
1077
|
function mt(e, n, t, r, o) {
|
|
1078
1078
|
var a = "", i = "", s = Math.floor(o / 2) - 1;
|
|
1079
1079
|
return r - n > s && (a = " ... ", n = r - s + a.length), t - r > s && (i = " ...", t = r + s - i.length), {
|
|
@@ -1083,9 +1083,9 @@ function mt(e, n, t, r, o) {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
}
|
|
1085
1085
|
function gt(e, n) {
|
|
1086
|
-
return
|
|
1086
|
+
return se.repeat(" ", n - e.length) + e;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function Fo(e, n) {
|
|
1089
1089
|
if (n = Object.create(n || null), !e.buffer)
|
|
1090
1090
|
return null;
|
|
1091
1091
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1100,10 +1100,10 @@ function Ko(e, n) {
|
|
|
1100
1100
|
o[i - l],
|
|
1101
1101
|
e.position - (r[i] - r[i - l]),
|
|
1102
1102
|
u
|
|
1103
|
-
), s =
|
|
1103
|
+
), s = se.repeat(" ", n.indent) + gt((e.line - l + 1).toString(), d) + " | " + c.str + `
|
|
1104
1104
|
` + s;
|
|
1105
|
-
for (c = mt(e.buffer, r[i], o[i], e.position, u), s +=
|
|
1106
|
-
`, s +=
|
|
1105
|
+
for (c = mt(e.buffer, r[i], o[i], e.position, u), s += se.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1106
|
+
`, s += se.repeat("-", n.indent + d + 3 + c.pos) + `^
|
|
1107
1107
|
`, l = 1; l <= n.linesAfter && !(i + l >= o.length); l++)
|
|
1108
1108
|
c = mt(
|
|
1109
1109
|
e.buffer,
|
|
@@ -1111,11 +1111,11 @@ function Ko(e, n) {
|
|
|
1111
1111
|
o[i + l],
|
|
1112
1112
|
e.position - (r[i] - r[i + l]),
|
|
1113
1113
|
u
|
|
1114
|
-
), s +=
|
|
1114
|
+
), s += se.repeat(" ", n.indent) + gt((e.line + l + 1).toString(), d) + " | " + c.str + `
|
|
1115
1115
|
`;
|
|
1116
1116
|
return s.replace(/\n$/, "");
|
|
1117
1117
|
}
|
|
1118
|
-
var
|
|
1118
|
+
var Ko = Fo, Bo = [
|
|
1119
1119
|
"kind",
|
|
1120
1120
|
"multi",
|
|
1121
1121
|
"resolve",
|
|
@@ -1131,7 +1131,7 @@ var Bo = Ko, No = [
|
|
|
1131
1131
|
"sequence",
|
|
1132
1132
|
"mapping"
|
|
1133
1133
|
];
|
|
1134
|
-
function
|
|
1134
|
+
function No(e) {
|
|
1135
1135
|
var n = {};
|
|
1136
1136
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1137
1137
|
e[t].forEach(function(r) {
|
|
@@ -1139,18 +1139,18 @@ function qo(e) {
|
|
|
1139
1139
|
});
|
|
1140
1140
|
}), n;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function qo(e, n) {
|
|
1143
1143
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1144
|
-
if (
|
|
1144
|
+
if (Bo.indexOf(t) === -1)
|
|
1145
1145
|
throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1146
1146
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1147
1147
|
return !0;
|
|
1148
1148
|
}, this.construct = n.construct || function(t) {
|
|
1149
1149
|
return t;
|
|
1150
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1150
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = No(n.styleAliases || null), Lo.indexOf(this.kind) === -1)
|
|
1151
1151
|
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1152
1152
|
}
|
|
1153
|
-
var
|
|
1153
|
+
var de = qo;
|
|
1154
1154
|
function Ht(e, n) {
|
|
1155
1155
|
var t = [];
|
|
1156
1156
|
return e[n].forEach(function(r) {
|
|
@@ -1160,7 +1160,7 @@ function Ht(e, n) {
|
|
|
1160
1160
|
}), t[o] = r;
|
|
1161
1161
|
}), t;
|
|
1162
1162
|
}
|
|
1163
|
-
function
|
|
1163
|
+
function Po() {
|
|
1164
1164
|
var e = {
|
|
1165
1165
|
scalar: {},
|
|
1166
1166
|
sequence: {},
|
|
@@ -1185,7 +1185,7 @@ function vt(e) {
|
|
|
1185
1185
|
}
|
|
1186
1186
|
vt.prototype.extend = function(e) {
|
|
1187
1187
|
var n = [], t = [];
|
|
1188
|
-
if (e instanceof
|
|
1188
|
+
if (e instanceof de)
|
|
1189
1189
|
t.push(e);
|
|
1190
1190
|
else if (Array.isArray(e))
|
|
1191
1191
|
t = t.concat(e);
|
|
@@ -1194,30 +1194,30 @@ vt.prototype.extend = function(e) {
|
|
|
1194
1194
|
else
|
|
1195
1195
|
throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
|
|
1196
1196
|
n.forEach(function(o) {
|
|
1197
|
-
if (!(o instanceof
|
|
1197
|
+
if (!(o instanceof de))
|
|
1198
1198
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1199
1199
|
if (o.loadKind && o.loadKind !== "scalar")
|
|
1200
1200
|
throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
|
|
1201
1201
|
if (o.multi)
|
|
1202
1202
|
throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
|
|
1203
1203
|
}), t.forEach(function(o) {
|
|
1204
|
-
if (!(o instanceof
|
|
1204
|
+
if (!(o instanceof de))
|
|
1205
1205
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1206
1206
|
});
|
|
1207
1207
|
var r = Object.create(vt.prototype);
|
|
1208
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap =
|
|
1208
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Po(r.compiledImplicit, r.compiledExplicit), r;
|
|
1209
1209
|
};
|
|
1210
|
-
var bn = vt, Cn = new
|
|
1210
|
+
var bn = vt, Cn = new de("tag:yaml.org,2002:str", {
|
|
1211
1211
|
kind: "scalar",
|
|
1212
1212
|
construct: function(e) {
|
|
1213
1213
|
return e !== null ? e : "";
|
|
1214
1214
|
}
|
|
1215
|
-
}), kn = new
|
|
1215
|
+
}), kn = new de("tag:yaml.org,2002:seq", {
|
|
1216
1216
|
kind: "sequence",
|
|
1217
1217
|
construct: function(e) {
|
|
1218
1218
|
return e !== null ? e : [];
|
|
1219
1219
|
}
|
|
1220
|
-
}), _n = new
|
|
1220
|
+
}), _n = new de("tag:yaml.org,2002:map", {
|
|
1221
1221
|
kind: "mapping",
|
|
1222
1222
|
construct: function(e) {
|
|
1223
1223
|
return e !== null ? e : {};
|
|
@@ -1229,23 +1229,23 @@ var bn = vt, Cn = new pe("tag:yaml.org,2002:str", {
|
|
|
1229
1229
|
_n
|
|
1230
1230
|
]
|
|
1231
1231
|
});
|
|
1232
|
-
function
|
|
1232
|
+
function Uo(e) {
|
|
1233
1233
|
if (e === null)
|
|
1234
1234
|
return !0;
|
|
1235
1235
|
var n = e.length;
|
|
1236
1236
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1237
1237
|
}
|
|
1238
|
-
function
|
|
1238
|
+
function Vo() {
|
|
1239
1239
|
return null;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function Do(e) {
|
|
1242
1242
|
return e === null;
|
|
1243
1243
|
}
|
|
1244
|
-
var In = new
|
|
1244
|
+
var In = new de("tag:yaml.org,2002:null", {
|
|
1245
1245
|
kind: "scalar",
|
|
1246
|
-
resolve:
|
|
1247
|
-
construct:
|
|
1248
|
-
predicate:
|
|
1246
|
+
resolve: Uo,
|
|
1247
|
+
construct: Vo,
|
|
1248
|
+
predicate: Do,
|
|
1249
1249
|
represent: {
|
|
1250
1250
|
canonical: function() {
|
|
1251
1251
|
return "~";
|
|
@@ -1265,23 +1265,23 @@ var In = new pe("tag:yaml.org,2002:null", {
|
|
|
1265
1265
|
},
|
|
1266
1266
|
defaultStyle: "lowercase"
|
|
1267
1267
|
});
|
|
1268
|
-
function
|
|
1268
|
+
function Ro(e) {
|
|
1269
1269
|
if (e === null)
|
|
1270
1270
|
return !1;
|
|
1271
1271
|
var n = e.length;
|
|
1272
1272
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1273
1273
|
}
|
|
1274
|
-
function
|
|
1274
|
+
function Go(e) {
|
|
1275
1275
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function Ho(e) {
|
|
1278
1278
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1279
1279
|
}
|
|
1280
|
-
var xn = new
|
|
1280
|
+
var xn = new de("tag:yaml.org,2002:bool", {
|
|
1281
1281
|
kind: "scalar",
|
|
1282
|
-
resolve:
|
|
1283
|
-
construct:
|
|
1284
|
-
predicate:
|
|
1282
|
+
resolve: Ro,
|
|
1283
|
+
construct: Go,
|
|
1284
|
+
predicate: Ho,
|
|
1285
1285
|
represent: {
|
|
1286
1286
|
lowercase: function(e) {
|
|
1287
1287
|
return e ? "true" : "false";
|
|
@@ -1295,16 +1295,16 @@ var xn = new pe("tag:yaml.org,2002:bool", {
|
|
|
1295
1295
|
},
|
|
1296
1296
|
defaultStyle: "lowercase"
|
|
1297
1297
|
});
|
|
1298
|
-
function
|
|
1298
|
+
function zo(e) {
|
|
1299
1299
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Yo(e) {
|
|
1302
1302
|
return 48 <= e && e <= 55;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function Jo(e) {
|
|
1305
1305
|
return 48 <= e && e <= 57;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Wo(e) {
|
|
1308
1308
|
if (e === null)
|
|
1309
1309
|
return !1;
|
|
1310
1310
|
var n = e.length, t = 0, r = !1, o;
|
|
@@ -1325,7 +1325,7 @@ function Zo(e) {
|
|
|
1325
1325
|
if (o === "x") {
|
|
1326
1326
|
for (t++; t < n; t++)
|
|
1327
1327
|
if (o = e[t], o !== "_") {
|
|
1328
|
-
if (!
|
|
1328
|
+
if (!zo(e.charCodeAt(t)))
|
|
1329
1329
|
return !1;
|
|
1330
1330
|
r = !0;
|
|
1331
1331
|
}
|
|
@@ -1334,7 +1334,7 @@ function Zo(e) {
|
|
|
1334
1334
|
if (o === "o") {
|
|
1335
1335
|
for (t++; t < n; t++)
|
|
1336
1336
|
if (o = e[t], o !== "_") {
|
|
1337
|
-
if (!
|
|
1337
|
+
if (!Yo(e.charCodeAt(t)))
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
r = !0;
|
|
1340
1340
|
}
|
|
@@ -1345,13 +1345,13 @@ function Zo(e) {
|
|
|
1345
1345
|
return !1;
|
|
1346
1346
|
for (; t < n; t++)
|
|
1347
1347
|
if (o = e[t], o !== "_") {
|
|
1348
|
-
if (!
|
|
1348
|
+
if (!Jo(e.charCodeAt(t)))
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
r = !0;
|
|
1351
1351
|
}
|
|
1352
1352
|
return !(!r || o === "_");
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Zo(e) {
|
|
1355
1355
|
var n = e, t = 1, r;
|
|
1356
1356
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1357
1357
|
return 0;
|
|
@@ -1365,14 +1365,14 @@ function Qo(e) {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
return t * parseInt(n, 10);
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1369
|
-
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !
|
|
1368
|
+
function Qo(e) {
|
|
1369
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1370
1370
|
}
|
|
1371
|
-
var An = new
|
|
1371
|
+
var An = new de("tag:yaml.org,2002:int", {
|
|
1372
1372
|
kind: "scalar",
|
|
1373
|
-
resolve:
|
|
1374
|
-
construct:
|
|
1375
|
-
predicate:
|
|
1373
|
+
resolve: Wo,
|
|
1374
|
+
construct: Zo,
|
|
1375
|
+
predicate: Qo,
|
|
1376
1376
|
represent: {
|
|
1377
1377
|
binary: function(e) {
|
|
1378
1378
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1395,21 +1395,21 @@ var An = new pe("tag:yaml.org,2002:int", {
|
|
|
1395
1395
|
decimal: [10, "dec"],
|
|
1396
1396
|
hexadecimal: [16, "hex"]
|
|
1397
1397
|
}
|
|
1398
|
-
}),
|
|
1398
|
+
}), Xo = new RegExp(
|
|
1399
1399
|
// 2.5e4, 2.5 and integers
|
|
1400
1400
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1401
1401
|
);
|
|
1402
|
-
function
|
|
1403
|
-
return !(e === null || !
|
|
1402
|
+
function ea(e) {
|
|
1403
|
+
return !(e === null || !Xo.test(e) || // Quick hack to not allow integers end with `_`
|
|
1404
1404
|
// Probably should update regexp & check speed
|
|
1405
1405
|
e[e.length - 1] === "_");
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function ta(e) {
|
|
1408
1408
|
var n, t;
|
|
1409
1409
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1410
1410
|
}
|
|
1411
|
-
var
|
|
1412
|
-
function
|
|
1411
|
+
var na = /^[-+]?[0-9]+e/;
|
|
1412
|
+
function ra(e, n) {
|
|
1413
1413
|
var t;
|
|
1414
1414
|
if (isNaN(e))
|
|
1415
1415
|
switch (n) {
|
|
@@ -1438,19 +1438,19 @@ function oa(e, n) {
|
|
|
1438
1438
|
case "camelcase":
|
|
1439
1439
|
return "-.Inf";
|
|
1440
1440
|
}
|
|
1441
|
-
else if (
|
|
1441
|
+
else if (se.isNegativeZero(e))
|
|
1442
1442
|
return "-0.0";
|
|
1443
|
-
return t = e.toString(10),
|
|
1443
|
+
return t = e.toString(10), na.test(t) ? t.replace("e", ".e") : t;
|
|
1444
1444
|
}
|
|
1445
|
-
function
|
|
1446
|
-
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 ||
|
|
1445
|
+
function oa(e) {
|
|
1446
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1447
1447
|
}
|
|
1448
|
-
var Sn = new
|
|
1448
|
+
var Sn = new de("tag:yaml.org,2002:float", {
|
|
1449
1449
|
kind: "scalar",
|
|
1450
|
-
resolve:
|
|
1451
|
-
construct:
|
|
1452
|
-
predicate:
|
|
1453
|
-
represent:
|
|
1450
|
+
resolve: ea,
|
|
1451
|
+
construct: ta,
|
|
1452
|
+
predicate: oa,
|
|
1453
|
+
represent: ra,
|
|
1454
1454
|
defaultStyle: "lowercase"
|
|
1455
1455
|
}), Tn = wn.extend({
|
|
1456
1456
|
implicit: [
|
|
@@ -1464,10 +1464,10 @@ var Sn = new pe("tag:yaml.org,2002:float", {
|
|
|
1464
1464
|
), On = new RegExp(
|
|
1465
1465
|
"^([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]))?))?$"
|
|
1466
1466
|
);
|
|
1467
|
-
function
|
|
1467
|
+
function aa(e) {
|
|
1468
1468
|
return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function ia(e) {
|
|
1471
1471
|
var n, t, r, o, a, i, s, l = 0, c = null, d, u, m;
|
|
1472
1472
|
if (n = Mn.exec(e), n === null && (n = On.exec(e)), n === null)
|
|
1473
1473
|
throw new Error("Date resolve error");
|
|
@@ -1480,25 +1480,25 @@ function sa(e) {
|
|
|
1480
1480
|
}
|
|
1481
1481
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), m = new Date(Date.UTC(t, r, o, a, i, s, l)), c && m.setTime(m.getTime() - c), m;
|
|
1482
1482
|
}
|
|
1483
|
-
function
|
|
1483
|
+
function sa(e) {
|
|
1484
1484
|
return e.toISOString();
|
|
1485
1485
|
}
|
|
1486
|
-
var En = new
|
|
1486
|
+
var En = new de("tag:yaml.org,2002:timestamp", {
|
|
1487
1487
|
kind: "scalar",
|
|
1488
|
-
resolve:
|
|
1489
|
-
construct:
|
|
1488
|
+
resolve: aa,
|
|
1489
|
+
construct: ia,
|
|
1490
1490
|
instanceOf: Date,
|
|
1491
|
-
represent:
|
|
1491
|
+
represent: sa
|
|
1492
1492
|
});
|
|
1493
|
-
function
|
|
1493
|
+
function la(e) {
|
|
1494
1494
|
return e === "<<" || e === null;
|
|
1495
1495
|
}
|
|
1496
|
-
var jn = new
|
|
1496
|
+
var jn = new de("tag:yaml.org,2002:merge", {
|
|
1497
1497
|
kind: "scalar",
|
|
1498
|
-
resolve:
|
|
1498
|
+
resolve: la
|
|
1499
1499
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1500
1500
|
\r`;
|
|
1501
|
-
function
|
|
1501
|
+
function ua(e) {
|
|
1502
1502
|
if (e === null)
|
|
1503
1503
|
return !1;
|
|
1504
1504
|
var n, t, r = 0, o = e.length, a = Tt;
|
|
@@ -1510,37 +1510,37 @@ function ca(e) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
return r % 8 === 0;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function ca(e) {
|
|
1514
1514
|
var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
|
|
1515
1515
|
for (n = 0; n < o; n++)
|
|
1516
1516
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
|
|
1517
1517
|
return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function da(e) {
|
|
1520
1520
|
var n = "", t = 0, r, o, a = e.length, i = Tt;
|
|
1521
1521
|
for (r = 0; r < a; r++)
|
|
1522
1522
|
r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
|
|
1523
1523
|
return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
1524
1524
|
}
|
|
1525
|
-
function
|
|
1525
|
+
function pa(e) {
|
|
1526
1526
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1527
1527
|
}
|
|
1528
|
-
var Fn = new
|
|
1528
|
+
var Fn = new de("tag:yaml.org,2002:binary", {
|
|
1529
1529
|
kind: "scalar",
|
|
1530
|
-
resolve:
|
|
1531
|
-
construct:
|
|
1532
|
-
predicate:
|
|
1533
|
-
represent:
|
|
1534
|
-
}),
|
|
1535
|
-
function
|
|
1530
|
+
resolve: ua,
|
|
1531
|
+
construct: ca,
|
|
1532
|
+
predicate: pa,
|
|
1533
|
+
represent: da
|
|
1534
|
+
}), fa = Object.prototype.hasOwnProperty, ma = Object.prototype.toString;
|
|
1535
|
+
function ga(e) {
|
|
1536
1536
|
if (e === null)
|
|
1537
1537
|
return !0;
|
|
1538
1538
|
var n = [], t, r, o, a, i, s = e;
|
|
1539
1539
|
for (t = 0, r = s.length; t < r; t += 1) {
|
|
1540
|
-
if (o = s[t], i = !1,
|
|
1540
|
+
if (o = s[t], i = !1, ma.call(o) !== "[object Object]")
|
|
1541
1541
|
return !1;
|
|
1542
1542
|
for (a in o)
|
|
1543
|
-
if (
|
|
1543
|
+
if (fa.call(o, a))
|
|
1544
1544
|
if (!i)
|
|
1545
1545
|
i = !0;
|
|
1546
1546
|
else
|
|
@@ -1554,26 +1554,26 @@ function ya(e) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return !0;
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function ya(e) {
|
|
1558
1558
|
return e !== null ? e : [];
|
|
1559
1559
|
}
|
|
1560
|
-
var Kn = new
|
|
1560
|
+
var Kn = new de("tag:yaml.org,2002:omap", {
|
|
1561
1561
|
kind: "sequence",
|
|
1562
|
-
resolve:
|
|
1563
|
-
construct:
|
|
1564
|
-
}),
|
|
1565
|
-
function
|
|
1562
|
+
resolve: ga,
|
|
1563
|
+
construct: ya
|
|
1564
|
+
}), ha = Object.prototype.toString;
|
|
1565
|
+
function va(e) {
|
|
1566
1566
|
if (e === null)
|
|
1567
1567
|
return !0;
|
|
1568
1568
|
var n, t, r, o, a, i = e;
|
|
1569
1569
|
for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1570
|
-
if (r = i[n],
|
|
1570
|
+
if (r = i[n], ha.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
|
|
1571
1571
|
return !1;
|
|
1572
1572
|
a[n] = [o[0], r[o[0]]];
|
|
1573
1573
|
}
|
|
1574
1574
|
return !0;
|
|
1575
1575
|
}
|
|
1576
|
-
function
|
|
1576
|
+
function ba(e) {
|
|
1577
1577
|
if (e === null)
|
|
1578
1578
|
return [];
|
|
1579
1579
|
var n, t, r, o, a, i = e;
|
|
@@ -1581,27 +1581,27 @@ function Ca(e) {
|
|
|
1581
1581
|
r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
|
|
1582
1582
|
return a;
|
|
1583
1583
|
}
|
|
1584
|
-
var Bn = new
|
|
1584
|
+
var Bn = new de("tag:yaml.org,2002:pairs", {
|
|
1585
1585
|
kind: "sequence",
|
|
1586
|
-
resolve:
|
|
1587
|
-
construct:
|
|
1588
|
-
}),
|
|
1589
|
-
function
|
|
1586
|
+
resolve: va,
|
|
1587
|
+
construct: ba
|
|
1588
|
+
}), Ca = Object.prototype.hasOwnProperty;
|
|
1589
|
+
function ka(e) {
|
|
1590
1590
|
if (e === null)
|
|
1591
1591
|
return !0;
|
|
1592
1592
|
var n, t = e;
|
|
1593
1593
|
for (n in t)
|
|
1594
|
-
if (
|
|
1594
|
+
if (Ca.call(t, n) && t[n] !== null)
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
return !0;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function _a(e) {
|
|
1599
1599
|
return e !== null ? e : {};
|
|
1600
1600
|
}
|
|
1601
|
-
var
|
|
1601
|
+
var Ln = new de("tag:yaml.org,2002:set", {
|
|
1602
1602
|
kind: "mapping",
|
|
1603
|
-
resolve:
|
|
1604
|
-
construct:
|
|
1603
|
+
resolve: ka,
|
|
1604
|
+
construct: _a
|
|
1605
1605
|
}), $t = $n.extend({
|
|
1606
1606
|
implicit: [
|
|
1607
1607
|
En,
|
|
@@ -1611,16 +1611,16 @@ var Nn = new pe("tag:yaml.org,2002:set", {
|
|
|
1611
1611
|
Fn,
|
|
1612
1612
|
Kn,
|
|
1613
1613
|
Bn,
|
|
1614
|
-
|
|
1614
|
+
Ln
|
|
1615
1615
|
]
|
|
1616
|
-
}), Me = Object.prototype.hasOwnProperty, ot = 1,
|
|
1616
|
+
}), Me = Object.prototype.hasOwnProperty, ot = 1, Nn = 2, qn = 3, at = 4, yt = 1, wa = 2, zt = 3, Ia = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, xa = /[\x85\u2028\u2029]/, Aa = /[,\[\]\{\}]/, Pn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1617
1617
|
function Yt(e) {
|
|
1618
1618
|
return Object.prototype.toString.call(e);
|
|
1619
1619
|
}
|
|
1620
1620
|
function we(e) {
|
|
1621
1621
|
return e === 10 || e === 13;
|
|
1622
1622
|
}
|
|
1623
|
-
function
|
|
1623
|
+
function Ke(e) {
|
|
1624
1624
|
return e === 9 || e === 32;
|
|
1625
1625
|
}
|
|
1626
1626
|
function he(e) {
|
|
@@ -1629,30 +1629,30 @@ function he(e) {
|
|
|
1629
1629
|
function Pe(e) {
|
|
1630
1630
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1631
1631
|
}
|
|
1632
|
-
function
|
|
1632
|
+
function Sa(e) {
|
|
1633
1633
|
var n;
|
|
1634
1634
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function Ta(e) {
|
|
1637
1637
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function $a(e) {
|
|
1640
1640
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1641
1641
|
}
|
|
1642
1642
|
function Jt(e) {
|
|
1643
1643
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1644
1644
|
` : 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" : "";
|
|
1645
1645
|
}
|
|
1646
|
-
function
|
|
1646
|
+
function Ma(e) {
|
|
1647
1647
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1648
1648
|
(e - 65536 >> 10) + 55296,
|
|
1649
1649
|
(e - 65536 & 1023) + 56320
|
|
1650
1650
|
);
|
|
1651
1651
|
}
|
|
1652
1652
|
var Vn = new Array(256), Dn = new Array(256);
|
|
1653
|
-
for (var
|
|
1654
|
-
Vn[
|
|
1655
|
-
function
|
|
1653
|
+
for (var Ne = 0; Ne < 256; Ne++)
|
|
1654
|
+
Vn[Ne] = Jt(Ne) ? 1 : 0, Dn[Ne] = Jt(Ne);
|
|
1655
|
+
function Oa(e, n) {
|
|
1656
1656
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.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 = [];
|
|
1657
1657
|
}
|
|
1658
1658
|
function Rn(e, n) {
|
|
@@ -1664,7 +1664,7 @@ function Rn(e, n) {
|
|
|
1664
1664
|
line: e.line,
|
|
1665
1665
|
column: e.position - e.lineStart
|
|
1666
1666
|
};
|
|
1667
|
-
return t.snippet =
|
|
1667
|
+
return t.snippet = Ko(t), new me(n, t);
|
|
1668
1668
|
}
|
|
1669
1669
|
function S(e, n) {
|
|
1670
1670
|
throw Rn(e, n);
|
|
@@ -1695,13 +1695,13 @@ function $e(e, n, t, r) {
|
|
|
1695
1695
|
for (o = 0, a = s.length; o < a; o += 1)
|
|
1696
1696
|
i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || S(e, "expected valid JSON character");
|
|
1697
1697
|
else
|
|
1698
|
-
|
|
1698
|
+
Ia.test(s) && S(e, "the stream contains non-printable characters");
|
|
1699
1699
|
e.result += s;
|
|
1700
1700
|
}
|
|
1701
1701
|
}
|
|
1702
1702
|
function Zt(e, n, t, r) {
|
|
1703
1703
|
var o, a, i, s;
|
|
1704
|
-
for (
|
|
1704
|
+
for (se.isObject(t) || S(e, "cannot merge mappings; the provided source object is unacceptable"), o = Object.keys(t), i = 0, s = o.length; i < s; i += 1)
|
|
1705
1705
|
a = o[i], Me.call(n, a) || (n[a] = t[a], r[a] = !0);
|
|
1706
1706
|
}
|
|
1707
1707
|
function Ue(e, n, t, r, o, a, i, s, l) {
|
|
@@ -1730,7 +1730,7 @@ function Mt(e) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
function ae(e, n, t) {
|
|
1732
1732
|
for (var r = 0, o = e.input.charCodeAt(e.position); o !== 0; ) {
|
|
1733
|
-
for (;
|
|
1733
|
+
for (; Ke(o); )
|
|
1734
1734
|
o === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), o = e.input.charCodeAt(++e.position);
|
|
1735
1735
|
if (n && o === 35)
|
|
1736
1736
|
do
|
|
@@ -1749,10 +1749,10 @@ function dt(e) {
|
|
|
1749
1749
|
return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || he(t)));
|
|
1750
1750
|
}
|
|
1751
1751
|
function Ot(e, n) {
|
|
1752
|
-
n === 1 ? e.result += " " : n > 1 && (e.result +=
|
|
1752
|
+
n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
|
|
1753
1753
|
`, n - 1));
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function Ea(e, n, t) {
|
|
1756
1756
|
var r, o, a, i, s, l, c, d, u = e.kind, m = e.result, g;
|
|
1757
1757
|
if (g = e.input.charCodeAt(e.position), he(g) || Pe(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) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Pe(o)))
|
|
1758
1758
|
return !1;
|
|
@@ -1775,11 +1775,11 @@ function ja(e, n, t) {
|
|
|
1775
1775
|
break;
|
|
1776
1776
|
}
|
|
1777
1777
|
}
|
|
1778
|
-
s && ($e(e, a, i, !1), Ot(e, e.line - l), a = i = e.position, s = !1),
|
|
1778
|
+
s && ($e(e, a, i, !1), Ot(e, e.line - l), a = i = e.position, s = !1), Ke(g) || (i = e.position + 1), g = e.input.charCodeAt(++e.position);
|
|
1779
1779
|
}
|
|
1780
1780
|
return $e(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = m, !1);
|
|
1781
1781
|
}
|
|
1782
|
-
function
|
|
1782
|
+
function ja(e, n) {
|
|
1783
1783
|
var t, r, o;
|
|
1784
1784
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1785
1785
|
return !1;
|
|
@@ -1793,7 +1793,7 @@ function Fa(e, n) {
|
|
|
1793
1793
|
we(t) ? ($e(e, r, o, !0), Ot(e, ae(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? S(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
1794
1794
|
S(e, "unexpected end of the stream within a single quoted scalar");
|
|
1795
1795
|
}
|
|
1796
|
-
function
|
|
1796
|
+
function Fa(e, n) {
|
|
1797
1797
|
var t, r, o, a, i, s;
|
|
1798
1798
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1799
1799
|
return !1;
|
|
@@ -1805,10 +1805,10 @@ function Ka(e, n) {
|
|
|
1805
1805
|
ae(e, !1, n);
|
|
1806
1806
|
else if (s < 256 && Vn[s])
|
|
1807
1807
|
e.result += Dn[s], e.position++;
|
|
1808
|
-
else if ((i =
|
|
1808
|
+
else if ((i = Ta(s)) > 0) {
|
|
1809
1809
|
for (o = i, a = 0; o > 0; o--)
|
|
1810
|
-
s = e.input.charCodeAt(++e.position), (i =
|
|
1811
|
-
e.result +=
|
|
1810
|
+
s = e.input.charCodeAt(++e.position), (i = Sa(s)) >= 0 ? a = (a << 4) + i : S(e, "expected hexadecimal character");
|
|
1811
|
+
e.result += Ma(a), e.position++;
|
|
1812
1812
|
} else
|
|
1813
1813
|
S(e, "unknown escape sequence");
|
|
1814
1814
|
t = r = e.position;
|
|
@@ -1817,7 +1817,7 @@ function Ka(e, n) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
S(e, "unexpected end of the stream within a double quoted scalar");
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1820
|
+
function Ka(e, n) {
|
|
1821
1821
|
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, g, k = /* @__PURE__ */ Object.create(null), _, p, C, y;
|
|
1822
1822
|
if (y = e.input.charCodeAt(e.position), y === 91)
|
|
1823
1823
|
d = 93, g = !1, s = [];
|
|
@@ -1832,7 +1832,7 @@ function Ba(e, n) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
S(e, "unexpected end of the stream within a flow collection");
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Ba(e, n) {
|
|
1836
1836
|
var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
|
|
1837
1837
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1838
1838
|
r = !1;
|
|
@@ -1842,15 +1842,15 @@ function Na(e, n) {
|
|
|
1842
1842
|
return !1;
|
|
1843
1843
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1844
1844
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1845
|
-
yt === o ? o = u === 43 ? zt :
|
|
1846
|
-
else if ((d =
|
|
1845
|
+
yt === o ? o = u === 43 ? zt : wa : S(e, "repeat of a chomping mode identifier");
|
|
1846
|
+
else if ((d = $a(u)) >= 0)
|
|
1847
1847
|
d === 0 ? S(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? S(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
1848
1848
|
else
|
|
1849
1849
|
break;
|
|
1850
|
-
if (
|
|
1850
|
+
if (Ke(u)) {
|
|
1851
1851
|
do
|
|
1852
1852
|
u = e.input.charCodeAt(++e.position);
|
|
1853
|
-
while (
|
|
1853
|
+
while (Ke(u));
|
|
1854
1854
|
if (u === 35)
|
|
1855
1855
|
do
|
|
1856
1856
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -1864,15 +1864,15 @@ function Na(e, n) {
|
|
|
1864
1864
|
continue;
|
|
1865
1865
|
}
|
|
1866
1866
|
if (e.lineIndent < s) {
|
|
1867
|
-
o === zt ? e.result +=
|
|
1867
|
+
o === zt ? e.result += se.repeat(`
|
|
1868
1868
|
`, a ? 1 + l : l) : o === yt && a && (e.result += `
|
|
1869
1869
|
`);
|
|
1870
1870
|
break;
|
|
1871
1871
|
}
|
|
1872
|
-
for (r ?
|
|
1873
|
-
`, a ? 1 + l : l)) : c ? (c = !1, e.result +=
|
|
1874
|
-
`, l + 1)) : l === 0 ? a && (e.result += " ") : e.result +=
|
|
1875
|
-
`, l) : e.result +=
|
|
1872
|
+
for (r ? Ke(u) ? (c = !0, e.result += se.repeat(`
|
|
1873
|
+
`, a ? 1 + l : l)) : c ? (c = !1, e.result += se.repeat(`
|
|
1874
|
+
`, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += se.repeat(`
|
|
1875
|
+
`, l) : e.result += se.repeat(`
|
|
1876
1876
|
`, a ? 1 + l : l), a = !0, i = !0, l = 0, t = e.position; !we(u) && u !== 0; )
|
|
1877
1877
|
u = e.input.charCodeAt(++e.position);
|
|
1878
1878
|
$e(e, t, e.position, !1);
|
|
@@ -1903,10 +1903,10 @@ function La(e, n, t) {
|
|
|
1903
1903
|
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, S(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (y === 63 || y === 58) && he(r))
|
|
1904
1904
|
y === 63 ? (p && (Ue(e, u, m, g, k, null, i, s, l), g = k = _ = null), C = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : S(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, y = r;
|
|
1905
1905
|
else {
|
|
1906
|
-
if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t,
|
|
1906
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Ve(e, t, Nn, !1, !0))
|
|
1907
1907
|
break;
|
|
1908
1908
|
if (e.line === a) {
|
|
1909
|
-
for (y = e.input.charCodeAt(e.position);
|
|
1909
|
+
for (y = e.input.charCodeAt(e.position); Ke(y); )
|
|
1910
1910
|
y = e.input.charCodeAt(++e.position);
|
|
1911
1911
|
if (y === 58)
|
|
1912
1912
|
y = e.input.charCodeAt(++e.position), he(y) || S(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, g, k, null, i, s, l), g = k = _ = null), C = !0, p = !1, o = !1, g = e.tag, k = e.result;
|
|
@@ -1926,7 +1926,7 @@ function La(e, n, t) {
|
|
|
1926
1926
|
}
|
|
1927
1927
|
return p && Ue(e, u, m, g, k, null, i, s, l), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
|
|
1928
1928
|
}
|
|
1929
|
-
function
|
|
1929
|
+
function Na(e) {
|
|
1930
1930
|
var n, t = !1, r = !1, o, a, i;
|
|
1931
1931
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
1932
1932
|
return !1;
|
|
@@ -1938,7 +1938,7 @@ function qa(e) {
|
|
|
1938
1938
|
} else {
|
|
1939
1939
|
for (; i !== 0 && !he(i); )
|
|
1940
1940
|
i === 33 && (r ? S(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), Pn.test(o) || S(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
1941
|
-
a = e.input.slice(n, e.position),
|
|
1941
|
+
a = e.input.slice(n, e.position), Aa.test(a) && S(e, "tag suffix cannot contain flow indicator characters");
|
|
1942
1942
|
}
|
|
1943
1943
|
a && !Un.test(a) && S(e, "tag name cannot contain such characters: " + a);
|
|
1944
1944
|
try {
|
|
@@ -1948,7 +1948,7 @@ function qa(e) {
|
|
|
1948
1948
|
}
|
|
1949
1949
|
return t ? e.tag = a : Me.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : S(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
1950
1950
|
}
|
|
1951
|
-
function
|
|
1951
|
+
function qa(e) {
|
|
1952
1952
|
var n, t;
|
|
1953
1953
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
1954
1954
|
return !1;
|
|
@@ -1956,7 +1956,7 @@ function Pa(e) {
|
|
|
1956
1956
|
t = e.input.charCodeAt(++e.position);
|
|
1957
1957
|
return e.position === n && S(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
1958
1958
|
}
|
|
1959
|
-
function
|
|
1959
|
+
function Pa(e) {
|
|
1960
1960
|
var n, t, r;
|
|
1961
1961
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
1962
1962
|
return !1;
|
|
@@ -1967,9 +1967,9 @@ function Ua(e) {
|
|
|
1967
1967
|
function Ve(e, n, t, r, o) {
|
|
1968
1968
|
var a, i, s, l = 1, c = !1, d = !1, u, m, g, k, _, p;
|
|
1969
1969
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || qn === t, r && ae(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
1970
|
-
for (;
|
|
1970
|
+
for (; Na(e) || qa(e); )
|
|
1971
1971
|
ae(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
1972
|
-
if (s && (s = c || o), (l === 1 || at === t) && (ot === t ||
|
|
1972
|
+
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Nn === t ? _ = n : _ = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || La(e, p, _)) || Ka(e, _) ? d = !0 : (i && Ba(e, _) || ja(e, _) || Fa(e, _) ? d = !0 : Pa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && S(e, "alias node should not have any properties")) : Ea(e, _, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
|
|
1973
1973
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
1974
1974
|
else if (e.tag === "?") {
|
|
1975
1975
|
for (e.result !== null && e.kind !== "scalar" && S(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, m = e.implicitTypes.length; u < m; u += 1)
|
|
@@ -1990,13 +1990,13 @@ function Ve(e, n, t, r, o) {
|
|
|
1990
1990
|
}
|
|
1991
1991
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
1992
1992
|
}
|
|
1993
|
-
function
|
|
1993
|
+
function Ua(e) {
|
|
1994
1994
|
var n = e.position, t, r, o, a = !1, i;
|
|
1995
1995
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (ae(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
1996
1996
|
for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
|
|
1997
1997
|
i = e.input.charCodeAt(++e.position);
|
|
1998
1998
|
for (r = e.input.slice(t, e.position), o = [], r.length < 1 && S(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
1999
|
-
for (;
|
|
1999
|
+
for (; Ke(i); )
|
|
2000
2000
|
i = e.input.charCodeAt(++e.position);
|
|
2001
2001
|
if (i === 35) {
|
|
2002
2002
|
do
|
|
@@ -2012,7 +2012,7 @@ function Va(e) {
|
|
|
2012
2012
|
}
|
|
2013
2013
|
i !== 0 && Mt(e), Me.call(Wt, r) ? Wt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
|
|
2014
2014
|
}
|
|
2015
|
-
if (ae(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, ae(e, !0, -1)) : a && S(e, "directives end mark is expected"), Ve(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks &&
|
|
2015
|
+
if (ae(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, ae(e, !0, -1)) : a && S(e, "directives end mark is expected"), Ve(e, e.lineIndent - 1, at, !1, !0), ae(e, !0, -1), e.checkLineBreaks && xa.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
2016
2016
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ae(e, !0, -1));
|
|
2017
2017
|
return;
|
|
2018
2018
|
}
|
|
@@ -2024,14 +2024,14 @@ function Va(e) {
|
|
|
2024
2024
|
function Gn(e, n) {
|
|
2025
2025
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2026
2026
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2027
|
-
var t = new
|
|
2027
|
+
var t = new Oa(e, n), r = e.indexOf("\0");
|
|
2028
2028
|
for (r !== -1 && (t.position = r, S(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2029
2029
|
t.lineIndent += 1, t.position += 1;
|
|
2030
2030
|
for (; t.position < t.length - 1; )
|
|
2031
|
-
|
|
2031
|
+
Ua(t);
|
|
2032
2032
|
return t.documents;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function Va(e, n, t) {
|
|
2035
2035
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2036
2036
|
var r = Gn(e, t);
|
|
2037
2037
|
if (typeof n != "function")
|
|
@@ -2039,7 +2039,7 @@ function Da(e, n, t) {
|
|
|
2039
2039
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2040
2040
|
n(r[o]);
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Da(e, n) {
|
|
2043
2043
|
var t = Gn(e, n);
|
|
2044
2044
|
if (t.length !== 0) {
|
|
2045
2045
|
if (t.length === 1)
|
|
@@ -2047,10 +2047,10 @@ function Ra(e, n) {
|
|
|
2047
2047
|
throw new me("expected a single document in the stream, but found more");
|
|
2048
2048
|
}
|
|
2049
2049
|
}
|
|
2050
|
-
var
|
|
2051
|
-
loadAll:
|
|
2052
|
-
load:
|
|
2053
|
-
}, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279,
|
|
2050
|
+
var Ra = Va, Ga = Da, Hn = {
|
|
2051
|
+
loadAll: Ra,
|
|
2052
|
+
load: Ga
|
|
2053
|
+
}, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, Ha = 9, Ye = 10, za = 13, Ya = 32, Ja = 33, Wa = 34, bt = 35, Za = 37, Qa = 38, Xa = 39, ei = 42, Jn = 44, ti = 45, st = 58, ni = 61, ri = 62, oi = 63, ai = 64, Wn = 91, Zn = 93, ii = 96, Qn = 123, si = 124, Xn = 125, fe = {};
|
|
2054
2054
|
fe[0] = "\\0";
|
|
2055
2055
|
fe[7] = "\\a";
|
|
2056
2056
|
fe[8] = "\\b";
|
|
@@ -2066,7 +2066,7 @@ fe[133] = "\\N";
|
|
|
2066
2066
|
fe[160] = "\\_";
|
|
2067
2067
|
fe[8232] = "\\L";
|
|
2068
2068
|
fe[8233] = "\\P";
|
|
2069
|
-
var
|
|
2069
|
+
var li = [
|
|
2070
2070
|
"y",
|
|
2071
2071
|
"Y",
|
|
2072
2072
|
"yes",
|
|
@@ -2083,8 +2083,8 @@ var ui = [
|
|
|
2083
2083
|
"off",
|
|
2084
2084
|
"Off",
|
|
2085
2085
|
"OFF"
|
|
2086
|
-
],
|
|
2087
|
-
function
|
|
2086
|
+
], ui = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2087
|
+
function ci(e, n) {
|
|
2088
2088
|
var t, r, o, a, i, s, l;
|
|
2089
2089
|
if (n === null)
|
|
2090
2090
|
return {};
|
|
@@ -2092,7 +2092,7 @@ function di(e, n) {
|
|
|
2092
2092
|
i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Yn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
|
|
2093
2093
|
return t;
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function di(e) {
|
|
2096
2096
|
var n, t, r;
|
|
2097
2097
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2098
2098
|
t = "x", r = 2;
|
|
@@ -2102,14 +2102,14 @@ function pi(e) {
|
|
|
2102
2102
|
t = "U", r = 8;
|
|
2103
2103
|
else
|
|
2104
2104
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2105
|
-
return "\\" + t +
|
|
2105
|
+
return "\\" + t + se.repeat("0", r - n.length) + n;
|
|
2106
2106
|
}
|
|
2107
|
-
var
|
|
2108
|
-
function
|
|
2109
|
-
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel =
|
|
2107
|
+
var pi = 1, Je = 2;
|
|
2108
|
+
function fi(e) {
|
|
2109
|
+
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = ci(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 === '"' ? Je : pi, 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;
|
|
2110
2110
|
}
|
|
2111
2111
|
function Xt(e, n) {
|
|
2112
|
-
for (var t =
|
|
2112
|
+
for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
|
|
2113
2113
|
o = e.indexOf(`
|
|
2114
2114
|
`, r), o === -1 ? (i = e.slice(r), r = s) : (i = e.slice(r, o + 1), r = o + 1), i.length && i !== `
|
|
2115
2115
|
` && (a += t), a += i;
|
|
@@ -2117,9 +2117,9 @@ function Xt(e, n) {
|
|
|
2117
2117
|
}
|
|
2118
2118
|
function Ct(e, n) {
|
|
2119
2119
|
return `
|
|
2120
|
-
` +
|
|
2120
|
+
` + se.repeat(" ", e.indent * n);
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function mi(e, n) {
|
|
2123
2123
|
var t, r, o;
|
|
2124
2124
|
for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
|
|
2125
2125
|
if (o = e.implicitTypes[t], o.resolve(n))
|
|
@@ -2127,13 +2127,13 @@ function gi(e, n) {
|
|
|
2127
2127
|
return !1;
|
|
2128
2128
|
}
|
|
2129
2129
|
function lt(e) {
|
|
2130
|
-
return e ===
|
|
2130
|
+
return e === Ya || e === Ha;
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function We(e) {
|
|
2133
2133
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
|
|
2134
2134
|
}
|
|
2135
2135
|
function en(e) {
|
|
2136
|
-
return
|
|
2136
|
+
return We(e) && e !== Et && e !== za && e !== Ye;
|
|
2137
2137
|
}
|
|
2138
2138
|
function tn(e, n, t) {
|
|
2139
2139
|
var r = en(e), o = r && !lt(e);
|
|
@@ -2145,13 +2145,13 @@ function tn(e, n, t) {
|
|
|
2145
2145
|
) : r && e !== Jn && e !== Wn && e !== Zn && e !== Qn && e !== Xn) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
|
|
2146
2146
|
);
|
|
2147
2147
|
}
|
|
2148
|
-
function
|
|
2149
|
-
return
|
|
2148
|
+
function gi(e) {
|
|
2149
|
+
return We(e) && e !== Et && !lt(e) && e !== ti && e !== oi && e !== st && e !== Jn && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== bt && e !== Qa && e !== ei && e !== Ja && e !== si && e !== ni && e !== ri && e !== Xa && e !== Wa && e !== Za && e !== ai && e !== ii;
|
|
2150
2150
|
}
|
|
2151
|
-
function
|
|
2151
|
+
function yi(e) {
|
|
2152
2152
|
return !lt(e) && e !== st;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function Ge(e, n) {
|
|
2155
2155
|
var t = e.charCodeAt(n), r;
|
|
2156
2156
|
return t >= 55296 && t <= 56319 && n + 1 < e.length && (r = e.charCodeAt(n + 1), r >= 56320 && r <= 57343) ? (t - 55296) * 1024 + r - 56320 + 65536 : t;
|
|
2157
2157
|
}
|
|
@@ -2160,38 +2160,38 @@ function er(e) {
|
|
|
2160
2160
|
return n.test(e);
|
|
2161
2161
|
}
|
|
2162
2162
|
var tr = 1, kt = 2, nr = 3, rr = 4, qe = 5;
|
|
2163
|
-
function
|
|
2164
|
-
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1, k = -1, _ =
|
|
2163
|
+
function hi(e, n, t, r, o, a, i, s) {
|
|
2164
|
+
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1, k = -1, _ = gi(Ge(e, 0)) && yi(Ge(e, e.length - 1));
|
|
2165
2165
|
if (n || i)
|
|
2166
2166
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2167
|
-
if (c =
|
|
2167
|
+
if (c = Ge(e, l), !We(c))
|
|
2168
2168
|
return qe;
|
|
2169
2169
|
_ = _ && tn(c, d, s), d = c;
|
|
2170
2170
|
}
|
|
2171
2171
|
else {
|
|
2172
2172
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2173
|
-
if (c =
|
|
2173
|
+
if (c = Ge(e, l), c === Ye)
|
|
2174
2174
|
u = !0, g && (m = m || // Foldable line = too long, and not more-indented.
|
|
2175
2175
|
l - k - 1 > r && e[k + 1] !== " ", k = l);
|
|
2176
|
-
else if (!
|
|
2176
|
+
else if (!We(c))
|
|
2177
2177
|
return qe;
|
|
2178
2178
|
_ = _ && tn(c, d, s), d = c;
|
|
2179
2179
|
}
|
|
2180
2180
|
m = m || g && l - k - 1 > r && e[k + 1] !== " ";
|
|
2181
2181
|
}
|
|
2182
|
-
return !u && !m ? _ && !i && !o(e) ? tr : a ===
|
|
2182
|
+
return !u && !m ? _ && !i && !o(e) ? tr : a === Je ? qe : kt : t > 9 && er(e) ? qe : i ? a === Je ? qe : kt : m ? rr : nr;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function vi(e, n, t, r, o) {
|
|
2185
2185
|
e.dump = function() {
|
|
2186
2186
|
if (n.length === 0)
|
|
2187
|
-
return e.quotingType ===
|
|
2188
|
-
if (!e.noCompatMode && (
|
|
2189
|
-
return e.quotingType ===
|
|
2187
|
+
return e.quotingType === Je ? '""' : "''";
|
|
2188
|
+
if (!e.noCompatMode && (li.indexOf(n) !== -1 || ui.test(n)))
|
|
2189
|
+
return e.quotingType === Je ? '"' + n + '"' : "'" + n + "'";
|
|
2190
2190
|
var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2191
2191
|
function l(c) {
|
|
2192
|
-
return
|
|
2192
|
+
return mi(e, c);
|
|
2193
2193
|
}
|
|
2194
|
-
switch (
|
|
2194
|
+
switch (hi(
|
|
2195
2195
|
n,
|
|
2196
2196
|
s,
|
|
2197
2197
|
e.indent,
|
|
@@ -2208,9 +2208,9 @@ function bi(e, n, t, r, o) {
|
|
|
2208
2208
|
case nr:
|
|
2209
2209
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2210
2210
|
case rr:
|
|
2211
|
-
return ">" + nn(n, e.indent) + rn(Xt(
|
|
2211
|
+
return ">" + nn(n, e.indent) + rn(Xt(bi(n, i), a));
|
|
2212
2212
|
case qe:
|
|
2213
|
-
return '"' +
|
|
2213
|
+
return '"' + Ci(n) + '"';
|
|
2214
2214
|
default:
|
|
2215
2215
|
throw new me("impossible error: invalid scalar style");
|
|
2216
2216
|
}
|
|
@@ -2228,7 +2228,7 @@ function rn(e) {
|
|
|
2228
2228
|
return e[e.length - 1] === `
|
|
2229
2229
|
` ? e.slice(0, -1) : e;
|
|
2230
2230
|
}
|
|
2231
|
-
function
|
|
2231
|
+
function bi(e, n) {
|
|
2232
2232
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2233
2233
|
var c = e.indexOf(`
|
|
2234
2234
|
`);
|
|
@@ -2251,12 +2251,12 @@ function on(e, n) {
|
|
|
2251
2251
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2252
2252
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2253
2253
|
}
|
|
2254
|
-
function
|
|
2254
|
+
function Ci(e) {
|
|
2255
2255
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2256
|
-
t =
|
|
2256
|
+
t = Ge(e, o), r = fe[t], !r && We(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || di(t);
|
|
2257
2257
|
return n;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function ki(e, n, t) {
|
|
2260
2260
|
var r = "", o = e.tag, a, i, s;
|
|
2261
2261
|
for (a = 0, i = t.length; a < i; a += 1)
|
|
2262
2262
|
s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Ae(e, n, s, !1, !1) || typeof s > "u" && Ae(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -2265,16 +2265,16 @@ function _i(e, n, t) {
|
|
|
2265
2265
|
function an(e, n, t, r) {
|
|
2266
2266
|
var o = "", a = e.tag, i, s, l;
|
|
2267
2267
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2268
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump &&
|
|
2268
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && Ye === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2269
2269
|
e.tag = a, e.dump = o || "[]";
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function _i(e, n, t) {
|
|
2272
2272
|
var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
|
|
2273
2273
|
for (i = 0, s = a.length; i < s; i += 1)
|
|
2274
2274
|
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Ae(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ae(e, n, c, !1, !1) && (d += e.dump, r += d));
|
|
2275
2275
|
e.tag = o, e.dump = "{" + r + "}";
|
|
2276
2276
|
}
|
|
2277
|
-
function
|
|
2277
|
+
function wi(e, n, t, r) {
|
|
2278
2278
|
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, m;
|
|
2279
2279
|
if (e.sortKeys === !0)
|
|
2280
2280
|
i.sort();
|
|
@@ -2283,7 +2283,7 @@ function Ii(e, n, t, r) {
|
|
|
2283
2283
|
else if (e.sortKeys)
|
|
2284
2284
|
throw new me("sortKeys must be a boolean or a function");
|
|
2285
2285
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2286
|
-
m = "", (!r || o !== "") && (m += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump &&
|
|
2286
|
+
m = "", (!r || o !== "") && (m += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Ye === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Ct(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && Ye === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
|
|
2287
2287
|
e.tag = a, e.dump = o || "{}";
|
|
2288
2288
|
}
|
|
2289
2289
|
function sn(e, n, t) {
|
|
@@ -2312,11 +2312,11 @@ function Ae(e, n, t, r, o, a, i) {
|
|
|
2312
2312
|
e.dump = "*ref_" + u;
|
|
2313
2313
|
else {
|
|
2314
2314
|
if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2315
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2315
|
+
r && Object.keys(e.dump).length !== 0 ? (wi(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2316
2316
|
else if (s === "[object Array]")
|
|
2317
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2317
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (ki(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2318
2318
|
else if (s === "[object String]")
|
|
2319
|
-
e.tag !== "?" &&
|
|
2319
|
+
e.tag !== "?" && vi(e, e.dump, n, a, l);
|
|
2320
2320
|
else {
|
|
2321
2321
|
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2322
2322
|
return !1;
|
|
@@ -2328,7 +2328,7 @@ function Ae(e, n, t, r, o, a, i) {
|
|
|
2328
2328
|
}
|
|
2329
2329
|
return !0;
|
|
2330
2330
|
}
|
|
2331
|
-
function
|
|
2331
|
+
function Ii(e, n) {
|
|
2332
2332
|
var t = [], r = [], o, a;
|
|
2333
2333
|
for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
|
|
2334
2334
|
n.duplicates.push(t[r[o]]);
|
|
@@ -2346,29 +2346,29 @@ function _t(e, n, t) {
|
|
|
2346
2346
|
for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
|
|
2347
2347
|
_t(e[r[o]], n, t);
|
|
2348
2348
|
}
|
|
2349
|
-
function
|
|
2349
|
+
function xi(e, n) {
|
|
2350
2350
|
n = n || {};
|
|
2351
|
-
var t = new
|
|
2352
|
-
t.noRefs ||
|
|
2351
|
+
var t = new fi(n);
|
|
2352
|
+
t.noRefs || Ii(e, t);
|
|
2353
2353
|
var r = e;
|
|
2354
2354
|
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Ae(t, 0, r, !0, !0) ? t.dump + `
|
|
2355
2355
|
` : "";
|
|
2356
2356
|
}
|
|
2357
|
-
var
|
|
2358
|
-
dump:
|
|
2357
|
+
var Ai = xi, Si = {
|
|
2358
|
+
dump: Ai
|
|
2359
2359
|
};
|
|
2360
2360
|
function jt(e, n) {
|
|
2361
2361
|
return function() {
|
|
2362
2362
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2363
2363
|
};
|
|
2364
2364
|
}
|
|
2365
|
-
var
|
|
2365
|
+
var Ti = de, $i = bn, Mi = wn, Oi = Tn, Ei = $n, ji = $t, Fi = Hn.load, Ki = Hn.loadAll, Bi = Si.dump, Li = me, Ni = {
|
|
2366
2366
|
binary: Fn,
|
|
2367
2367
|
float: Sn,
|
|
2368
2368
|
map: _n,
|
|
2369
2369
|
null: In,
|
|
2370
2370
|
pairs: Bn,
|
|
2371
|
-
set:
|
|
2371
|
+
set: Ln,
|
|
2372
2372
|
timestamp: En,
|
|
2373
2373
|
bool: xn,
|
|
2374
2374
|
int: An,
|
|
@@ -2376,35 +2376,35 @@ var $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.
|
|
|
2376
2376
|
omap: Kn,
|
|
2377
2377
|
seq: kn,
|
|
2378
2378
|
str: Cn
|
|
2379
|
-
},
|
|
2380
|
-
Type:
|
|
2381
|
-
Schema:
|
|
2382
|
-
FAILSAFE_SCHEMA:
|
|
2383
|
-
JSON_SCHEMA:
|
|
2384
|
-
CORE_SCHEMA:
|
|
2385
|
-
DEFAULT_SCHEMA:
|
|
2386
|
-
load:
|
|
2387
|
-
loadAll:
|
|
2388
|
-
dump:
|
|
2379
|
+
}, qi = jt("safeLoad", "load"), Pi = jt("safeLoadAll", "loadAll"), Ui = jt("safeDump", "dump"), Vi = {
|
|
2380
|
+
Type: Ti,
|
|
2381
|
+
Schema: $i,
|
|
2382
|
+
FAILSAFE_SCHEMA: Mi,
|
|
2383
|
+
JSON_SCHEMA: Oi,
|
|
2384
|
+
CORE_SCHEMA: Ei,
|
|
2385
|
+
DEFAULT_SCHEMA: ji,
|
|
2386
|
+
load: Fi,
|
|
2387
|
+
loadAll: Ki,
|
|
2388
|
+
dump: Bi,
|
|
2389
2389
|
YAMLException: Li,
|
|
2390
|
-
types:
|
|
2391
|
-
safeLoad:
|
|
2392
|
-
safeLoadAll:
|
|
2393
|
-
safeDump:
|
|
2390
|
+
types: Ni,
|
|
2391
|
+
safeLoad: qi,
|
|
2392
|
+
safeLoadAll: Pi,
|
|
2393
|
+
safeDump: Ui
|
|
2394
2394
|
};
|
|
2395
|
-
const
|
|
2395
|
+
const Di = {
|
|
2396
2396
|
key: 0,
|
|
2397
2397
|
class: "config-card-display-form"
|
|
2398
|
-
},
|
|
2398
|
+
}, Ri = ["data-testid"], Gi = {
|
|
2399
2399
|
key: 0,
|
|
2400
2400
|
class: "config-card-prop-section-title"
|
|
2401
|
-
},
|
|
2401
|
+
}, Hi = {
|
|
2402
2402
|
key: 1,
|
|
2403
2403
|
class: "config-card-display-json"
|
|
2404
|
-
},
|
|
2404
|
+
}, zi = {
|
|
2405
2405
|
key: 2,
|
|
2406
2406
|
class: "config-card-display-yaml"
|
|
2407
|
-
},
|
|
2407
|
+
}, Yi = /* @__PURE__ */ ie({
|
|
2408
2408
|
__name: "ConfigCardDisplay",
|
|
2409
2409
|
props: {
|
|
2410
2410
|
propertyCollections: {
|
|
@@ -2430,28 +2430,28 @@ const Ri = {
|
|
|
2430
2430
|
}
|
|
2431
2431
|
},
|
|
2432
2432
|
setup(e) {
|
|
2433
|
-
const n = e, t = ut(), { i18n: { t: r } } =
|
|
2433
|
+
const n = e, t = ut(), { i18n: { t: r } } = ce.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = F(""), i = F("");
|
|
2434
2434
|
return Oe(() => n.format, (s) => {
|
|
2435
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2435
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
|
|
2436
2436
|
}, { immediate: !0 }), (s, l) => {
|
|
2437
2437
|
const c = N("KCodeBlock");
|
|
2438
2438
|
return f(), A(ve, null, [
|
|
2439
|
-
e.format === "structured" ? (f(), A("div",
|
|
2439
|
+
e.format === "structured" ? (f(), A("div", Di, [
|
|
2440
2440
|
(f(!0), A(ve, null, ye(e.propListTypes, (d) => (f(), A("div", {
|
|
2441
2441
|
key: `config-card-details-${d}-props`,
|
|
2442
|
-
class:
|
|
2442
|
+
class: Be(`config-card-details-${d}-props`),
|
|
2443
2443
|
"data-testid": `config-card-details-${d}-props`
|
|
2444
2444
|
}, [
|
|
2445
|
-
d !== "basic" ? (f(), A("div",
|
|
2446
|
-
(f(!0), A(ve, null, ye(e.propertyCollections[d], (u) => (f(),
|
|
2445
|
+
d !== "basic" ? (f(), A("div", Gi, E(d === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2446
|
+
(f(!0), A(ve, null, ye(e.propertyCollections[d], (u) => (f(), V(St, {
|
|
2447
2447
|
key: u.key,
|
|
2448
2448
|
item: u
|
|
2449
2449
|
}, Se({
|
|
2450
2450
|
label: v(() => [
|
|
2451
|
-
|
|
2451
|
+
X(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2452
2452
|
]),
|
|
2453
2453
|
[u.key]: v(({ rowValue: m }) => [
|
|
2454
|
-
|
|
2454
|
+
X(s.$slots, u.key, {
|
|
2455
2455
|
row: u,
|
|
2456
2456
|
rowValue: m
|
|
2457
2457
|
}, void 0, !0)
|
|
@@ -2461,14 +2461,14 @@ const Ri = {
|
|
|
2461
2461
|
o(u) ? {
|
|
2462
2462
|
name: "label-tooltip",
|
|
2463
2463
|
fn: v(() => [
|
|
2464
|
-
|
|
2464
|
+
X(s.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
|
|
2465
2465
|
]),
|
|
2466
2466
|
key: "0"
|
|
2467
2467
|
} : void 0
|
|
2468
2468
|
]), 1032, ["item"]))), 128))
|
|
2469
|
-
], 10,
|
|
2469
|
+
], 10, Ri))), 128))
|
|
2470
2470
|
])) : G("", !0),
|
|
2471
|
-
e.format === "json" ? (f(), A("div",
|
|
2471
|
+
e.format === "json" ? (f(), A("div", Hi, [
|
|
2472
2472
|
j(c, {
|
|
2473
2473
|
id: "config-card-codeblock",
|
|
2474
2474
|
code: a.value,
|
|
@@ -2476,7 +2476,7 @@ const Ri = {
|
|
|
2476
2476
|
theme: "dark"
|
|
2477
2477
|
}, null, 8, ["code"])
|
|
2478
2478
|
])) : G("", !0),
|
|
2479
|
-
e.format === "yaml" ? (f(), A("div",
|
|
2479
|
+
e.format === "yaml" ? (f(), A("div", zi, [
|
|
2480
2480
|
j(c, {
|
|
2481
2481
|
id: "config-card-codeblock",
|
|
2482
2482
|
code: i.value,
|
|
@@ -2488,18 +2488,18 @@ const Ri = {
|
|
|
2488
2488
|
], 64);
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
|
-
}),
|
|
2491
|
+
}), Ji = /* @__PURE__ */ _e(Yi, [["__scopeId", "data-v-a58d7adb"]]), ln = "24px", Wi = (e, n) => {
|
|
2492
2492
|
const t = e.__vccOpts || e;
|
|
2493
2493
|
for (const [r, o] of n)
|
|
2494
2494
|
t[r] = o;
|
|
2495
2495
|
return t;
|
|
2496
|
-
},
|
|
2496
|
+
}, Zi = (e) => (mr("data-v-817dfcab"), e = e(), gr(), e), Qi = ["aria-hidden"], Xi = {
|
|
2497
2497
|
key: 0,
|
|
2498
2498
|
"data-testid": "kui-icon-svg-title"
|
|
2499
|
-
},
|
|
2499
|
+
}, es = /* @__PURE__ */ Zi(() => /* @__PURE__ */ q("path", {
|
|
2500
2500
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2501
2501
|
fill: "currentColor"
|
|
2502
|
-
}, null, -1)),
|
|
2502
|
+
}, null, -1)), ts = /* @__PURE__ */ ie({
|
|
2503
2503
|
__name: "BookIcon",
|
|
2504
2504
|
props: {
|
|
2505
2505
|
/** The accessibility text provided to screen readers */
|
|
@@ -2551,7 +2551,7 @@ const Ri = {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
},
|
|
2553
2553
|
setup(e) {
|
|
2554
|
-
const n = e, t =
|
|
2554
|
+
const n = e, t = $(() => {
|
|
2555
2555
|
if (typeof n.size == "number" && n.size > 0)
|
|
2556
2556
|
return `${n.size}px`;
|
|
2557
2557
|
if (typeof n.size == "string") {
|
|
@@ -2560,7 +2560,7 @@ const Ri = {
|
|
|
2560
2560
|
return `${a}px`;
|
|
2561
2561
|
}
|
|
2562
2562
|
return ln;
|
|
2563
|
-
}), r =
|
|
2563
|
+
}), r = $(() => ({
|
|
2564
2564
|
boxSizing: "border-box",
|
|
2565
2565
|
color: n.color,
|
|
2566
2566
|
display: n.display,
|
|
@@ -2568,11 +2568,11 @@ const Ri = {
|
|
|
2568
2568
|
lineHeight: "0",
|
|
2569
2569
|
width: t.value
|
|
2570
2570
|
}));
|
|
2571
|
-
return (o, a) => (f(),
|
|
2571
|
+
return (o, a) => (f(), V(He(e.as), {
|
|
2572
2572
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2573
2573
|
class: "kui-icon book-icon",
|
|
2574
2574
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2575
|
-
style:
|
|
2575
|
+
style: pr(r.value)
|
|
2576
2576
|
}, {
|
|
2577
2577
|
default: v(() => [
|
|
2578
2578
|
(f(), A("svg", {
|
|
@@ -2585,23 +2585,23 @@ const Ri = {
|
|
|
2585
2585
|
width: "100%",
|
|
2586
2586
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2587
2587
|
}, [
|
|
2588
|
-
e.title ? (f(), A("title",
|
|
2589
|
-
|
|
2590
|
-
], 8,
|
|
2588
|
+
e.title ? (f(), A("title", Xi, E(e.title), 1)) : G("", !0),
|
|
2589
|
+
es
|
|
2590
|
+
], 8, Qi))
|
|
2591
2591
|
]),
|
|
2592
2592
|
_: 1
|
|
2593
2593
|
}, 8, ["aria-hidden", "style"]));
|
|
2594
2594
|
}
|
|
2595
|
-
}),
|
|
2595
|
+
}), ns = /* @__PURE__ */ Wi(ts, [["__scopeId", "data-v-817dfcab"]]), rs = { "data-testid": "config-card-title" }, os = { class: "config-card-actions" }, as = ["href"], is = {
|
|
2596
2596
|
key: 2,
|
|
2597
2597
|
class: "config-card-details-section"
|
|
2598
|
-
},
|
|
2598
|
+
}, ss = {
|
|
2599
2599
|
key: 3,
|
|
2600
2600
|
class: "config-card-details-section"
|
|
2601
|
-
},
|
|
2601
|
+
}, ls = ["data-testid"], us = {
|
|
2602
2602
|
key: 0,
|
|
2603
2603
|
class: "config-card-prop-section-title"
|
|
2604
|
-
},
|
|
2604
|
+
}, cs = /* @__PURE__ */ ie({
|
|
2605
2605
|
__name: "EntityBaseConfigCard",
|
|
2606
2606
|
props: {
|
|
2607
2607
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2676,7 +2676,7 @@ const Ri = {
|
|
|
2676
2676
|
emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
|
|
2677
2677
|
setup(e, { emit: n }) {
|
|
2678
2678
|
var t;
|
|
2679
|
-
const r = e, o = ut(), { i18n: { t: a } } =
|
|
2679
|
+
const r = e, o = ut(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { convertKeyToTitle: s } = ce.useStringHelpers(), { axiosInstance: l } = ce.useAxios({
|
|
2680
2680
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
2681
2681
|
}), c = [
|
|
2682
2682
|
{
|
|
@@ -2696,7 +2696,7 @@ const Ri = {
|
|
|
2696
2696
|
d.value = I == null ? void 0 : I.value;
|
|
2697
2697
|
}, m = {
|
|
2698
2698
|
id: {
|
|
2699
|
-
type:
|
|
2699
|
+
type: re.ID,
|
|
2700
2700
|
label: a("baseConfigCard.commonFields.id_label"),
|
|
2701
2701
|
order: 0,
|
|
2702
2702
|
section: be.Basic
|
|
@@ -2706,101 +2706,101 @@ const Ri = {
|
|
|
2706
2706
|
section: be.Basic
|
|
2707
2707
|
},
|
|
2708
2708
|
enabled: {
|
|
2709
|
-
type:
|
|
2709
|
+
type: re.BadgeStatus,
|
|
2710
2710
|
order: 2,
|
|
2711
2711
|
section: be.Basic
|
|
2712
2712
|
},
|
|
2713
2713
|
updated_at: {
|
|
2714
|
-
type:
|
|
2714
|
+
type: re.Date,
|
|
2715
2715
|
label: a("baseConfigCard.commonFields.updated_at_label"),
|
|
2716
2716
|
order: 3,
|
|
2717
2717
|
section: be.Basic
|
|
2718
2718
|
},
|
|
2719
2719
|
created_at: {
|
|
2720
|
-
type:
|
|
2720
|
+
type: re.Date,
|
|
2721
2721
|
label: a("baseConfigCard.commonFields.created_at_label"),
|
|
2722
2722
|
order: 4,
|
|
2723
2723
|
section: be.Basic
|
|
2724
2724
|
},
|
|
2725
2725
|
tags: {
|
|
2726
|
-
type:
|
|
2726
|
+
type: re.BadgeTag,
|
|
2727
2727
|
order: -1,
|
|
2728
2728
|
// the last property displayed
|
|
2729
2729
|
section: be.Basic
|
|
2730
2730
|
}
|
|
2731
|
-
}, g = F(!1), k = F(!1), _ = F(""), p = F(), C =
|
|
2732
|
-
var I, D,
|
|
2731
|
+
}, g = F(!1), k = F(!1), _ = F(""), p = F(), C = $(() => {
|
|
2732
|
+
var I, D, K;
|
|
2733
2733
|
if (!p.value)
|
|
2734
2734
|
return [];
|
|
2735
|
-
const x = [],
|
|
2736
|
-
for (const
|
|
2737
|
-
const
|
|
2738
|
-
let
|
|
2739
|
-
(
|
|
2735
|
+
const x = [], M = Object.keys(p.value).length;
|
|
2736
|
+
for (const O in p.value) {
|
|
2737
|
+
const B = (D = (I = r.configSchema) == null ? void 0 : I[O]) == null ? void 0 : D.order, W = (K = m[O]) == null ? void 0 : K.order;
|
|
2738
|
+
let te = M;
|
|
2739
|
+
(W || W === 0) && (te = W === -1 ? M + 1 : W), B && (te = B === -1 ? M + 1 : B), x.push([O, te]);
|
|
2740
2740
|
}
|
|
2741
|
-
return x.sort(function(
|
|
2742
|
-
return
|
|
2743
|
-
}), x.map((
|
|
2744
|
-
var
|
|
2745
|
-
const
|
|
2741
|
+
return x.sort(function(O, B) {
|
|
2742
|
+
return O[1] - B[1];
|
|
2743
|
+
}), x.map((O) => {
|
|
2744
|
+
var B, W;
|
|
2745
|
+
const te = O[0], ne = (B = p.value) == null ? void 0 : B[te], Z = ((W = r.configSchema) == null ? void 0 : W[te]) || {}, le = m[te];
|
|
2746
2746
|
return {
|
|
2747
|
-
key:
|
|
2748
|
-
value:
|
|
2749
|
-
hidden:
|
|
2750
|
-
type:
|
|
2751
|
-
label:
|
|
2752
|
-
tooltip:
|
|
2753
|
-
section:
|
|
2747
|
+
key: te,
|
|
2748
|
+
value: ne,
|
|
2749
|
+
hidden: Z.hidden || !1,
|
|
2750
|
+
type: Z.type ?? ((le == null ? void 0 : le.type) || re.Text),
|
|
2751
|
+
label: Z.label ?? ((le == null ? void 0 : le.label) || s(te)),
|
|
2752
|
+
tooltip: Z.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
|
|
2753
|
+
section: Z.section ?? ((le == null ? void 0 : le.section) || be.Advanced)
|
|
2754
2754
|
};
|
|
2755
|
-
}).filter((
|
|
2756
|
-
}), y =
|
|
2755
|
+
}).filter((O) => !O.hidden && O.key !== r.pluginConfigKey);
|
|
2756
|
+
}), y = $(() => {
|
|
2757
2757
|
var I, D;
|
|
2758
2758
|
if (!p.value || !r.pluginConfigKey)
|
|
2759
2759
|
return [];
|
|
2760
|
-
const
|
|
2761
|
-
for (const
|
|
2762
|
-
const
|
|
2763
|
-
let
|
|
2764
|
-
|
|
2760
|
+
const K = p.value[r.pluginConfigKey] || {}, x = Object.keys(K).length, M = [];
|
|
2761
|
+
for (const O in K) {
|
|
2762
|
+
const B = (D = (I = r.pluginConfigSchema) == null ? void 0 : I[O]) == null ? void 0 : D.order, W = K[O];
|
|
2763
|
+
let te = W != null && W !== "" ? x - 1 : x;
|
|
2764
|
+
B && (te = B === -1 ? x + 1 : B), M.push([O, te]);
|
|
2765
2765
|
}
|
|
2766
|
-
return
|
|
2767
|
-
return
|
|
2768
|
-
}),
|
|
2769
|
-
var
|
|
2770
|
-
const
|
|
2766
|
+
return M.sort(function(O, B) {
|
|
2767
|
+
return O[1] - B[1];
|
|
2768
|
+
}), M.map((O) => {
|
|
2769
|
+
var B;
|
|
2770
|
+
const W = O[0], te = K[W], ne = ((B = r.pluginConfigSchema) == null ? void 0 : B[W]) || {};
|
|
2771
2771
|
return {
|
|
2772
|
-
key:
|
|
2773
|
-
value:
|
|
2774
|
-
hidden:
|
|
2775
|
-
type:
|
|
2776
|
-
label:
|
|
2777
|
-
tooltip:
|
|
2772
|
+
key: W,
|
|
2773
|
+
value: te,
|
|
2774
|
+
hidden: ne.hidden || !1,
|
|
2775
|
+
type: ne.type ?? re.Text,
|
|
2776
|
+
label: ne.label ?? s(W),
|
|
2777
|
+
tooltip: ne.tooltip ?? void 0,
|
|
2778
2778
|
section: be.Plugin
|
|
2779
2779
|
};
|
|
2780
|
-
}).filter((
|
|
2781
|
-
}), w =
|
|
2782
|
-
var I, D,
|
|
2780
|
+
}).filter((O) => !O.hidden);
|
|
2781
|
+
}), w = $(() => {
|
|
2782
|
+
var I, D, K, x;
|
|
2783
2783
|
return {
|
|
2784
|
-
basic: (I = C.value) == null ? void 0 : I.filter((
|
|
2785
|
-
advanced: (D = C.value) == null ? void 0 : D.filter((
|
|
2786
|
-
plugin: (x = y.value) == null ? void 0 : x.concat((
|
|
2784
|
+
basic: (I = C.value) == null ? void 0 : I.filter((M) => M.section === be.Basic),
|
|
2785
|
+
advanced: (D = C.value) == null ? void 0 : D.filter((M) => M.section === be.Advanced),
|
|
2786
|
+
plugin: (x = y.value) == null ? void 0 : x.concat((K = C.value) == null ? void 0 : K.filter((M) => M.section === be.Plugin))
|
|
2787
2787
|
};
|
|
2788
|
-
}),
|
|
2788
|
+
}), P = $(() => {
|
|
2789
2789
|
const I = [];
|
|
2790
2790
|
return w.value.basic.length && I.push("basic"), w.value.advanced.length && I.push("advanced"), w.value.plugin.length && I.push("plugin"), I;
|
|
2791
|
-
}),
|
|
2791
|
+
}), Y = (I) => !!(I.tooltip || o[`${I.key}-label-tooltip`]), oe = $(() => {
|
|
2792
2792
|
var I, D;
|
|
2793
|
-
let
|
|
2794
|
-
return r.config.app === "konnect" ?
|
|
2795
|
-
}),
|
|
2793
|
+
let K = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2794
|
+
return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (D = r.config) != null && D.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{id}/gi, r.config.entityId), K;
|
|
2795
|
+
}), H = (I) => {
|
|
2796
2796
|
p.value && I(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2797
2797
|
};
|
|
2798
2798
|
return Oe(g, (I) => {
|
|
2799
2799
|
n("loading", I);
|
|
2800
|
-
}, { immediate: !0 }),
|
|
2800
|
+
}, { immediate: !0 }), Ze(async () => {
|
|
2801
2801
|
k.value = !1, g.value = !0;
|
|
2802
2802
|
try {
|
|
2803
|
-
const { data: I } = await l.get(
|
|
2803
|
+
const { data: I } = await l.get(oe.value);
|
|
2804
2804
|
if (r.dataKey)
|
|
2805
2805
|
if (typeof I[r.dataKey] < "u")
|
|
2806
2806
|
p.value = { ...I[r.dataKey] };
|
|
@@ -2818,55 +2818,55 @@ const Ri = {
|
|
|
2818
2818
|
g.value = !1;
|
|
2819
2819
|
}
|
|
2820
2820
|
}), (I, D) => {
|
|
2821
|
-
const
|
|
2822
|
-
return f(),
|
|
2821
|
+
const K = N("KLabel"), x = N("KSelect"), M = N("KButton"), O = N("KClipboardProvider"), B = N("KSkeleton"), W = N("KEmptyState"), te = N("KCard");
|
|
2822
|
+
return f(), V(te, { class: "kong-ui-entity-base-config-card" }, Se({
|
|
2823
2823
|
actions: v(() => [
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
e.config.jsonYamlEnabled ? (f(),
|
|
2824
|
+
q("div", os, [
|
|
2825
|
+
X(I.$slots, "actions", {}, void 0, !0),
|
|
2826
|
+
e.config.jsonYamlEnabled ? (f(), V(K, {
|
|
2827
2827
|
key: 0,
|
|
2828
2828
|
class: "config-format-select-label",
|
|
2829
2829
|
"data-testid": "config-format-select-label"
|
|
2830
2830
|
}, {
|
|
2831
2831
|
default: v(() => [
|
|
2832
|
-
|
|
2832
|
+
ee(E(e.label), 1)
|
|
2833
2833
|
]),
|
|
2834
2834
|
_: 1
|
|
2835
2835
|
})) : G("", !0),
|
|
2836
|
-
e.config.jsonYamlEnabled ? (f(),
|
|
2836
|
+
e.config.jsonYamlEnabled ? (f(), V(x, {
|
|
2837
2837
|
key: 1,
|
|
2838
2838
|
appearance: "select",
|
|
2839
2839
|
"data-testid": "select-config-format",
|
|
2840
2840
|
items: c,
|
|
2841
2841
|
onChange: u
|
|
2842
2842
|
})) : G("", !0),
|
|
2843
|
-
r.config.jsonYamlEnabled && e.configCardDoc ? (f(),
|
|
2843
|
+
r.config.jsonYamlEnabled && e.configCardDoc ? (f(), V(M, {
|
|
2844
2844
|
key: 2,
|
|
2845
2845
|
appearance: "btn-link",
|
|
2846
2846
|
class: "book-icon",
|
|
2847
2847
|
"data-testid": "book-icon"
|
|
2848
2848
|
}, {
|
|
2849
2849
|
default: v(() => [
|
|
2850
|
-
|
|
2850
|
+
q("a", {
|
|
2851
2851
|
href: e.configCardDoc,
|
|
2852
2852
|
rel: "noopener",
|
|
2853
2853
|
target: "_blank"
|
|
2854
2854
|
}, [
|
|
2855
|
-
j(h(
|
|
2856
|
-
], 8,
|
|
2855
|
+
j(h(ns), { size: h(lo) }, null, 8, ["size"])
|
|
2856
|
+
], 8, as)
|
|
2857
2857
|
]),
|
|
2858
2858
|
_: 1
|
|
2859
2859
|
})) : G("", !0),
|
|
2860
|
-
e.config.jsonYamlEnabled ? G("", !0) : (f(),
|
|
2861
|
-
default: v(({ copyToClipboard:
|
|
2862
|
-
!g.value && !k.value ? (f(),
|
|
2860
|
+
e.config.jsonYamlEnabled ? G("", !0) : (f(), V(O, { key: 3 }, {
|
|
2861
|
+
default: v(({ copyToClipboard: ne }) => [
|
|
2862
|
+
!g.value && !k.value ? (f(), V(M, {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
appearance: "btn-link",
|
|
2865
2865
|
"data-testid": "json-copy-button",
|
|
2866
|
-
onClick: (
|
|
2866
|
+
onClick: (Z) => H(ne)
|
|
2867
2867
|
}, {
|
|
2868
2868
|
default: v(() => [
|
|
2869
|
-
|
|
2869
|
+
ee(E(h(a)("baseConfigCard.actions.copy")), 1)
|
|
2870
2870
|
]),
|
|
2871
2871
|
_: 2
|
|
2872
2872
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -2876,69 +2876,69 @@ const Ri = {
|
|
|
2876
2876
|
])
|
|
2877
2877
|
]),
|
|
2878
2878
|
body: v(() => [
|
|
2879
|
-
g.value ? (f(),
|
|
2879
|
+
g.value ? (f(), V(B, {
|
|
2880
2880
|
key: 0,
|
|
2881
2881
|
"data-testid": "config-card-loader",
|
|
2882
2882
|
"table-columns": 2,
|
|
2883
2883
|
type: "table"
|
|
2884
|
-
})) : k.value ? (f(),
|
|
2884
|
+
})) : k.value ? (f(), V(W, {
|
|
2885
2885
|
key: 1,
|
|
2886
2886
|
"data-testid": "config-card-fetch-error",
|
|
2887
2887
|
"is-error": ""
|
|
2888
2888
|
}, {
|
|
2889
2889
|
message: v(() => [
|
|
2890
|
-
|
|
2890
|
+
q("h3", null, E(_.value), 1)
|
|
2891
2891
|
]),
|
|
2892
2892
|
_: 1
|
|
2893
2893
|
})) : G("", !0),
|
|
2894
|
-
e.config.jsonYamlEnabled ? (f(), A("div",
|
|
2895
|
-
j(
|
|
2894
|
+
e.config.jsonYamlEnabled ? (f(), A("div", is, [
|
|
2895
|
+
j(Ji, {
|
|
2896
2896
|
format: d.value,
|
|
2897
|
-
"prop-list-types":
|
|
2897
|
+
"prop-list-types": P.value,
|
|
2898
2898
|
"property-collections": w.value,
|
|
2899
2899
|
record: p.value
|
|
2900
2900
|
}, Se({ _: 2 }, [
|
|
2901
|
-
ye(Object.keys(I.$slots), (
|
|
2902
|
-
name:
|
|
2903
|
-
fn: v(({ row:
|
|
2904
|
-
|
|
2905
|
-
row:
|
|
2906
|
-
rowValue:
|
|
2901
|
+
ye(Object.keys(I.$slots), (ne) => ({
|
|
2902
|
+
name: ne,
|
|
2903
|
+
fn: v(({ row: Z, rowValue: le }) => [
|
|
2904
|
+
X(I.$slots, ne, {
|
|
2905
|
+
row: Z,
|
|
2906
|
+
rowValue: le
|
|
2907
2907
|
}, void 0, !0)
|
|
2908
2908
|
])
|
|
2909
2909
|
}))
|
|
2910
2910
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2911
|
-
])) : (f(), A("div",
|
|
2912
|
-
(f(!0), A(ve, null, ye(
|
|
2913
|
-
key: `config-card-details-${
|
|
2914
|
-
class:
|
|
2915
|
-
"data-testid": `config-card-details-${
|
|
2911
|
+
])) : (f(), A("div", ss, [
|
|
2912
|
+
(f(!0), A(ve, null, ye(P.value, (ne) => (f(), A("div", {
|
|
2913
|
+
key: `config-card-details-${ne}-props`,
|
|
2914
|
+
class: Be(`config-card-details-${ne}-props`),
|
|
2915
|
+
"data-testid": `config-card-details-${ne}-props`
|
|
2916
2916
|
}, [
|
|
2917
|
-
|
|
2918
|
-
(f(!0), A(ve, null, ye(w.value[
|
|
2919
|
-
key:
|
|
2920
|
-
item:
|
|
2917
|
+
ne !== "basic" ? (f(), A("div", us, E(ne === "advanced" ? h(a)("baseConfigCard.sections.advanced") : h(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2918
|
+
(f(!0), A(ve, null, ye(w.value[ne], (Z) => (f(), V(St, {
|
|
2919
|
+
key: Z.key,
|
|
2920
|
+
item: Z
|
|
2921
2921
|
}, Se({
|
|
2922
2922
|
label: v(() => [
|
|
2923
|
-
|
|
2923
|
+
X(I.$slots, `${Z.key}-label`, { row: Z }, void 0, !0)
|
|
2924
2924
|
]),
|
|
2925
|
-
[
|
|
2926
|
-
|
|
2927
|
-
row:
|
|
2928
|
-
rowValue:
|
|
2925
|
+
[Z.key]: v(({ rowValue: le }) => [
|
|
2926
|
+
X(I.$slots, Z.key, {
|
|
2927
|
+
row: Z,
|
|
2928
|
+
rowValue: le
|
|
2929
2929
|
}, void 0, !0)
|
|
2930
2930
|
]),
|
|
2931
2931
|
_: 2
|
|
2932
2932
|
}, [
|
|
2933
|
-
|
|
2933
|
+
Y(Z) ? {
|
|
2934
2934
|
name: "label-tooltip",
|
|
2935
2935
|
fn: v(() => [
|
|
2936
|
-
|
|
2936
|
+
X(I.$slots, `${Z.key}-label-tooltip`, { row: Z }, void 0, !0)
|
|
2937
2937
|
]),
|
|
2938
2938
|
key: "0"
|
|
2939
2939
|
} : void 0
|
|
2940
2940
|
]), 1032, ["item"]))), 128))
|
|
2941
|
-
], 10,
|
|
2941
|
+
], 10, ls))), 128))
|
|
2942
2942
|
]))
|
|
2943
2943
|
]),
|
|
2944
2944
|
_: 2
|
|
@@ -2946,9 +2946,9 @@ const Ri = {
|
|
|
2946
2946
|
e.hideTitle ? void 0 : {
|
|
2947
2947
|
name: "title",
|
|
2948
2948
|
fn: v(() => [
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2949
|
+
q("div", rs, [
|
|
2950
|
+
X(I.$slots, "title", {}, () => [
|
|
2951
|
+
ee(E(h(a)("baseConfigCard.title")), 1)
|
|
2952
2952
|
], !0)
|
|
2953
2953
|
])
|
|
2954
2954
|
]),
|
|
@@ -2957,10 +2957,10 @@ const Ri = {
|
|
|
2957
2957
|
]), 1024);
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
2960
|
-
}),
|
|
2960
|
+
}), ds = /* @__PURE__ */ _e(cs, [["__scopeId", "data-v-64349aa2"]]), ps = ["onReset", "onSubmit"], fs = {
|
|
2961
2961
|
class: "form-actions",
|
|
2962
2962
|
"data-testid": "form-actions"
|
|
2963
|
-
},
|
|
2963
|
+
}, ms = /* @__PURE__ */ ie({
|
|
2964
2964
|
__name: "EntityBaseForm",
|
|
2965
2965
|
props: {
|
|
2966
2966
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3010,9 +3010,9 @@ const Ri = {
|
|
|
3010
3010
|
emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
|
|
3011
3011
|
setup(e, { emit: n }) {
|
|
3012
3012
|
var t;
|
|
3013
|
-
const r = e, o = wt(), { i18n: { t: a } } =
|
|
3013
|
+
const r = e, o = wt(), { i18n: { t: a } } = ce.useI18n(), { getMessageFromError: i } = ce.useErrors(), { axiosInstance: s } = ce.useAxios({
|
|
3014
3014
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
3015
|
-
}), l = F(!1), c = F(!1), d = F(""), u =
|
|
3015
|
+
}), l = F(!1), c = F(!1), d = F(""), u = $(() => r.canSubmit === !1 || r.isReadonly), m = $(() => {
|
|
3016
3016
|
var p, C;
|
|
3017
3017
|
if (!r.editId)
|
|
3018
3018
|
return "";
|
|
@@ -3027,7 +3027,7 @@ const Ri = {
|
|
|
3027
3027
|
};
|
|
3028
3028
|
return Oe(() => l.value, (p) => {
|
|
3029
3029
|
n("loading", p);
|
|
3030
|
-
}, { immediate: !0 }),
|
|
3030
|
+
}, { immediate: !0 }), Ze(async () => {
|
|
3031
3031
|
if (r.editId)
|
|
3032
3032
|
try {
|
|
3033
3033
|
c.value = !1, l.value = !0;
|
|
@@ -3040,13 +3040,13 @@ const Ri = {
|
|
|
3040
3040
|
l.value = !1;
|
|
3041
3041
|
}
|
|
3042
3042
|
}), (p, C) => {
|
|
3043
|
-
const y = N("KSkeleton"), w = N("KEmptyState"),
|
|
3044
|
-
return f(),
|
|
3043
|
+
const y = N("KSkeleton"), w = N("KEmptyState"), P = N("KAlert"), Y = N("KButton"), oe = N("KCard");
|
|
3044
|
+
return f(), V(oe, { class: "kong-ui-entity-base-form" }, {
|
|
3045
3045
|
body: v(() => [
|
|
3046
|
-
l.value ? (f(),
|
|
3046
|
+
l.value ? (f(), V(y, {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
type: "form"
|
|
3049
|
-
})) : c.value ? (f(),
|
|
3049
|
+
})) : c.value ? (f(), V(w, {
|
|
3050
3050
|
key: 1,
|
|
3051
3051
|
"cta-text": h(a)("baseForm.actions.back"),
|
|
3052
3052
|
"data-testid": "form-fetch-error",
|
|
@@ -3054,7 +3054,7 @@ const Ri = {
|
|
|
3054
3054
|
"is-error": !0
|
|
3055
3055
|
}, {
|
|
3056
3056
|
message: v(() => [
|
|
3057
|
-
|
|
3057
|
+
q("h3", null, E(d.value), 1)
|
|
3058
3058
|
]),
|
|
3059
3059
|
_: 1
|
|
3060
3060
|
}, 8, ["cta-text"])) : (f(), A("form", {
|
|
@@ -3063,46 +3063,46 @@ const Ri = {
|
|
|
3063
3063
|
onReset: rt(k, ["prevent"]),
|
|
3064
3064
|
onSubmit: rt(_, ["prevent"])
|
|
3065
3065
|
}, [
|
|
3066
|
-
|
|
3067
|
-
e.errorMessage ? (f(),
|
|
3066
|
+
X(p.$slots, "default", {}, void 0, !0),
|
|
3067
|
+
e.errorMessage ? (f(), V(P, {
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
"alert-message": e.errorMessage,
|
|
3070
3070
|
appearance: "danger",
|
|
3071
3071
|
"data-testid": "form-error"
|
|
3072
3072
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
j(
|
|
3073
|
+
q("div", fs, [
|
|
3074
|
+
X(p.$slots, "form-actions", {}, () => [
|
|
3075
|
+
j(Y, {
|
|
3076
3076
|
appearance: "outline",
|
|
3077
3077
|
"data-testid": "form-cancel",
|
|
3078
3078
|
disabled: e.isReadonly,
|
|
3079
3079
|
type: "reset"
|
|
3080
3080
|
}, {
|
|
3081
3081
|
default: v(() => [
|
|
3082
|
-
|
|
3082
|
+
ee(E(h(a)("baseForm.actions.cancel")), 1)
|
|
3083
3083
|
]),
|
|
3084
3084
|
_: 1
|
|
3085
3085
|
}, 8, ["disabled"]),
|
|
3086
|
-
j(
|
|
3086
|
+
j(Y, {
|
|
3087
3087
|
appearance: "primary",
|
|
3088
3088
|
"data-testid": "form-submit",
|
|
3089
3089
|
disabled: u.value,
|
|
3090
3090
|
type: "submit"
|
|
3091
3091
|
}, {
|
|
3092
3092
|
default: v(() => [
|
|
3093
|
-
|
|
3093
|
+
ee(E(h(a)("baseForm.actions.save")), 1)
|
|
3094
3094
|
]),
|
|
3095
3095
|
_: 1
|
|
3096
3096
|
}, 8, ["disabled"])
|
|
3097
3097
|
], !0)
|
|
3098
3098
|
])
|
|
3099
|
-
], 40,
|
|
3099
|
+
], 40, ps))
|
|
3100
3100
|
]),
|
|
3101
3101
|
_: 3
|
|
3102
3102
|
});
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
|
-
}),
|
|
3105
|
+
}), gs = /* @__PURE__ */ _e(ms, [["__scopeId", "data-v-2286e5f2"]]), ys = { key: 0 }, hs = /* @__PURE__ */ ie({
|
|
3106
3106
|
__name: "EntityBaseTableCell",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
keyName: {
|
|
@@ -3115,13 +3115,13 @@ const Ri = {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
},
|
|
3117
3117
|
setup(e) {
|
|
3118
|
-
const n = e, t =
|
|
3118
|
+
const n = e, t = $(() => {
|
|
3119
3119
|
var _;
|
|
3120
3120
|
return ((_ = n.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3121
|
-
}), r =
|
|
3121
|
+
}), r = $(() => {
|
|
3122
3122
|
var _;
|
|
3123
3123
|
return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
|
|
3124
|
-
}), o =
|
|
3124
|
+
}), o = $(() => {
|
|
3125
3125
|
var _, p;
|
|
3126
3126
|
const C = (_ = n.rowEl) == null ? void 0 : _.querySelectorAll("td");
|
|
3127
3127
|
return C ? ((p = C[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
@@ -3132,7 +3132,7 @@ const Ri = {
|
|
|
3132
3132
|
}, s = () => {
|
|
3133
3133
|
var _, p, C;
|
|
3134
3134
|
c.value = ((_ = r.value) == null ? void 0 : _.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((C = l.value) == null ? void 0 : C.innerText) || "";
|
|
3135
|
-
}, l = F({}), c = F(0), d = F(0), u = F(""), m =
|
|
3135
|
+
}, l = F({}), c = F(0), d = F(0), u = F(""), m = $(() => [r.value, t.value]), g = Oe(
|
|
3136
3136
|
m,
|
|
3137
3137
|
(_) => {
|
|
3138
3138
|
if (o.value && (i(), "ResizeObserver" in window && window)) {
|
|
@@ -3146,10 +3146,10 @@ const Ri = {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
},
|
|
3148
3148
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3149
|
-
), k =
|
|
3150
|
-
return
|
|
3149
|
+
), k = $(() => o.value ? c.value > d.value : !1);
|
|
3150
|
+
return cr(() => {
|
|
3151
3151
|
s();
|
|
3152
|
-
}),
|
|
3152
|
+
}), dr(() => {
|
|
3153
3153
|
g();
|
|
3154
3154
|
}), (_, p) => {
|
|
3155
3155
|
const C = N("KTooltip");
|
|
@@ -3158,7 +3158,7 @@ const Ri = {
|
|
|
3158
3158
|
ref: l,
|
|
3159
3159
|
class: "content-wrapper"
|
|
3160
3160
|
}, [
|
|
3161
|
-
o.value ? (f(), A("span",
|
|
3161
|
+
o.value ? (f(), A("span", ys, [
|
|
3162
3162
|
j(C, {
|
|
3163
3163
|
disabled: !k.value,
|
|
3164
3164
|
label: u.value,
|
|
@@ -3166,18 +3166,18 @@ const Ri = {
|
|
|
3166
3166
|
placement: "bottomStart"
|
|
3167
3167
|
}, {
|
|
3168
3168
|
default: v(() => [
|
|
3169
|
-
|
|
3169
|
+
X(_.$slots, "default", {}, void 0, !0)
|
|
3170
3170
|
]),
|
|
3171
3171
|
_: 3
|
|
3172
3172
|
}, 8, ["disabled", "label"])
|
|
3173
|
-
])) :
|
|
3173
|
+
])) : X(_.$slots, "default", { key: 1 }, void 0, !0)
|
|
3174
3174
|
], 512);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}),
|
|
3177
|
+
}), vs = /* @__PURE__ */ _e(hs, [["__scopeId", "data-v-f8a220e9"]]), bs = { class: "toolbar-container" }, Cs = {
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
class: "toolbar-button-container"
|
|
3180
|
-
},
|
|
3180
|
+
}, ks = ["data-testid"], _s = /* @__PURE__ */ ie({
|
|
3181
3181
|
__name: "EntityBaseTable",
|
|
3182
3182
|
props: {
|
|
3183
3183
|
// table header configuration
|
|
@@ -3281,14 +3281,14 @@ const Ri = {
|
|
|
3281
3281
|
},
|
|
3282
3282
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3283
3283
|
setup(e, { emit: n }) {
|
|
3284
|
-
const t = e, { i18n: { t: r } } =
|
|
3284
|
+
const t = e, { i18n: { t: r } } = ce.useI18n(), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), a = (w) => w.hasData || !!t.query, i = $(() => {
|
|
3285
3285
|
const w = [];
|
|
3286
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3287
|
-
const
|
|
3286
|
+
return Object.keys(t.tableHeaders).forEach((P) => {
|
|
3287
|
+
const Y = t.tableHeaders[P];
|
|
3288
3288
|
w.push({
|
|
3289
|
-
label:
|
|
3290
|
-
key:
|
|
3291
|
-
sortable:
|
|
3289
|
+
label: Y.label ?? P,
|
|
3290
|
+
key: P,
|
|
3291
|
+
sortable: Y.sortable ?? !1
|
|
3292
3292
|
});
|
|
3293
3293
|
}), t.enableEntityActions && w.push({
|
|
3294
3294
|
key: "actions",
|
|
@@ -3299,27 +3299,27 @@ const Ri = {
|
|
|
3299
3299
|
"data-testid": w.name,
|
|
3300
3300
|
...t.rowAttributes(w)
|
|
3301
3301
|
}), l = F({}), c = (w) => {
|
|
3302
|
-
var
|
|
3303
|
-
return (
|
|
3302
|
+
var P;
|
|
3303
|
+
return (P = l.value) == null ? void 0 : P.$el.querySelector(`[data-rowid="${w.id}"]`);
|
|
3304
3304
|
}, d = (w) => {
|
|
3305
|
-
const
|
|
3305
|
+
const P = {
|
|
3306
3306
|
"data-testid": w.headerKey,
|
|
3307
3307
|
...t.cellAttributes(w)
|
|
3308
3308
|
};
|
|
3309
|
-
return w.colIndex === 0 && (
|
|
3309
|
+
return w.colIndex === 0 && (P.style = {
|
|
3310
3310
|
maxWidth: "250px",
|
|
3311
3311
|
overflowX: "hidden",
|
|
3312
3312
|
textOverflow: "ellipsis"
|
|
3313
|
-
}),
|
|
3313
|
+
}), P;
|
|
3314
3314
|
}, u = () => {
|
|
3315
3315
|
n("empty-state-cta-clicked"), m();
|
|
3316
3316
|
}, m = () => {
|
|
3317
3317
|
n("clear-search-input");
|
|
3318
|
-
}, g = (w,
|
|
3319
|
-
n("click:row",
|
|
3318
|
+
}, g = (w, P) => {
|
|
3319
|
+
n("click:row", P);
|
|
3320
3320
|
}, k = (w) => {
|
|
3321
3321
|
n("sort", w);
|
|
3322
|
-
}, { setTablePreferences: _, getTablePreferences: p } =
|
|
3322
|
+
}, { setTablePreferences: _, getTablePreferences: p } = wr(), C = $(() => {
|
|
3323
3323
|
const w = p(t.preferencesStorageKey);
|
|
3324
3324
|
return {
|
|
3325
3325
|
...t.initialFetcherParams,
|
|
@@ -3328,9 +3328,9 @@ const Ri = {
|
|
|
3328
3328
|
}), y = (w) => {
|
|
3329
3329
|
t.preferencesStorageKey && _(t.preferencesStorageKey, w);
|
|
3330
3330
|
};
|
|
3331
|
-
return (w,
|
|
3332
|
-
const
|
|
3333
|
-
return f(),
|
|
3331
|
+
return (w, P) => {
|
|
3332
|
+
const Y = N("KIcon"), oe = N("KButton"), H = N("KDropdownMenu"), I = N("KTable"), D = N("KCard");
|
|
3333
|
+
return f(), V(D, {
|
|
3334
3334
|
class: "kong-ui-entity-base-table",
|
|
3335
3335
|
title: e.title
|
|
3336
3336
|
}, {
|
|
@@ -3363,44 +3363,44 @@ const Ri = {
|
|
|
3363
3363
|
"search-input": e.query,
|
|
3364
3364
|
onKtableEmptyStateCtaClicked: u,
|
|
3365
3365
|
"onRow:click": g,
|
|
3366
|
-
onSort:
|
|
3366
|
+
onSort: P[0] || (P[0] = (K) => k(K)),
|
|
3367
3367
|
"onUpdate:tablePreferences": y
|
|
3368
3368
|
}, Se({
|
|
3369
|
-
toolbar: v(({ state:
|
|
3370
|
-
et(
|
|
3371
|
-
|
|
3372
|
-
w.$slots["toolbar-button"] ? (f(), A("div",
|
|
3373
|
-
|
|
3369
|
+
toolbar: v(({ state: K }) => [
|
|
3370
|
+
et(q("div", bs, [
|
|
3371
|
+
X(w.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3372
|
+
w.$slots["toolbar-button"] ? (f(), A("div", Cs, [
|
|
3373
|
+
X(w.$slots, "toolbar-button", {}, void 0, !0)
|
|
3374
3374
|
])) : G("", !0)
|
|
3375
3375
|
], 512), [
|
|
3376
|
-
[tt, a(
|
|
3376
|
+
[tt, a(K)]
|
|
3377
3377
|
])
|
|
3378
3378
|
]),
|
|
3379
|
-
actions: v(({ row:
|
|
3380
|
-
|
|
3379
|
+
actions: v(({ row: K, rowKey: x, rowValue: M }) => [
|
|
3380
|
+
q("div", {
|
|
3381
3381
|
class: "actions-container",
|
|
3382
|
-
"data-testid":
|
|
3382
|
+
"data-testid": K.name
|
|
3383
3383
|
}, [
|
|
3384
|
-
j(
|
|
3384
|
+
j(H, {
|
|
3385
3385
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3386
3386
|
width: e.dropdownMenuWidth
|
|
3387
3387
|
}, {
|
|
3388
3388
|
items: v(() => [
|
|
3389
|
-
|
|
3390
|
-
row:
|
|
3389
|
+
X(w.$slots, "actions", {
|
|
3390
|
+
row: K,
|
|
3391
3391
|
rowKey: x,
|
|
3392
|
-
rowValue:
|
|
3392
|
+
rowValue: M
|
|
3393
3393
|
}, void 0, !0)
|
|
3394
3394
|
]),
|
|
3395
3395
|
default: v(() => [
|
|
3396
|
-
j(
|
|
3396
|
+
j(oe, {
|
|
3397
3397
|
class: "actions-trigger",
|
|
3398
3398
|
"data-testid": "overflow-actions-button",
|
|
3399
3399
|
size: "small"
|
|
3400
3400
|
}, {
|
|
3401
3401
|
icon: v(() => [
|
|
3402
|
-
j(
|
|
3403
|
-
color: h(
|
|
3402
|
+
j(Y, {
|
|
3403
|
+
color: h(io),
|
|
3404
3404
|
icon: "more",
|
|
3405
3405
|
size: "16"
|
|
3406
3406
|
}, null, 8, ["color"])
|
|
@@ -3410,24 +3410,24 @@ const Ri = {
|
|
|
3410
3410
|
]),
|
|
3411
3411
|
_: 2
|
|
3412
3412
|
}, 1032, ["width"])
|
|
3413
|
-
], 8,
|
|
3413
|
+
], 8, ks)
|
|
3414
3414
|
]),
|
|
3415
3415
|
_: 2
|
|
3416
3416
|
}, [
|
|
3417
|
-
ye(e.tableHeaders, (
|
|
3417
|
+
ye(e.tableHeaders, (K, x) => ({
|
|
3418
3418
|
name: x,
|
|
3419
|
-
fn: v(({ row:
|
|
3420
|
-
j(
|
|
3419
|
+
fn: v(({ row: M, rowKey: O, rowValue: B }) => [
|
|
3420
|
+
j(vs, {
|
|
3421
3421
|
"key-name": String(x),
|
|
3422
|
-
"row-el": c(
|
|
3422
|
+
"row-el": c(M)
|
|
3423
3423
|
}, {
|
|
3424
3424
|
default: v(() => [
|
|
3425
|
-
|
|
3426
|
-
row:
|
|
3427
|
-
rowKey:
|
|
3428
|
-
rowValue:
|
|
3425
|
+
X(w.$slots, x, {
|
|
3426
|
+
row: M,
|
|
3427
|
+
rowKey: O,
|
|
3428
|
+
rowValue: B
|
|
3429
3429
|
}, () => [
|
|
3430
|
-
|
|
3430
|
+
ee(E(B), 1)
|
|
3431
3431
|
], !0)
|
|
3432
3432
|
]),
|
|
3433
3433
|
_: 2
|
|
@@ -3440,13 +3440,13 @@ const Ri = {
|
|
|
3440
3440
|
}, 8, ["title"]);
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
}),
|
|
3443
|
+
}), ws = /* @__PURE__ */ _e(_s, [["__scopeId", "data-v-a598b1d9"]]), Is = {
|
|
3444
3444
|
key: 0,
|
|
3445
3445
|
class: "kong-ui-entity-delete-error"
|
|
3446
|
-
},
|
|
3446
|
+
}, xs = {
|
|
3447
3447
|
key: 1,
|
|
3448
3448
|
class: "description"
|
|
3449
|
-
},
|
|
3449
|
+
}, As = /* @__PURE__ */ ie({
|
|
3450
3450
|
__name: "EntityDeleteModal",
|
|
3451
3451
|
props: {
|
|
3452
3452
|
visible: {
|
|
@@ -3485,14 +3485,14 @@ const Ri = {
|
|
|
3485
3485
|
},
|
|
3486
3486
|
emits: ["cancel", "proceed"],
|
|
3487
3487
|
setup(e, { emit: n }) {
|
|
3488
|
-
const t = e, { i18nT: r } =
|
|
3488
|
+
const t = e, { i18nT: r } = ce.useI18n(), o = $(() => t.needConfirm ? t.entityName : ""), a = () => {
|
|
3489
3489
|
n("cancel");
|
|
3490
3490
|
}, i = () => {
|
|
3491
3491
|
n("proceed");
|
|
3492
3492
|
};
|
|
3493
3493
|
return (s, l) => {
|
|
3494
3494
|
const c = N("KAlert"), d = N("KPrompt");
|
|
3495
|
-
return f(),
|
|
3495
|
+
return f(), V(d, {
|
|
3496
3496
|
"action-button-text": "Yes, delete",
|
|
3497
3497
|
"action-pending": e.actionPending,
|
|
3498
3498
|
class: "kong-ui-entity-delete-modal",
|
|
@@ -3504,10 +3504,10 @@ const Ri = {
|
|
|
3504
3504
|
onProceed: i
|
|
3505
3505
|
}, {
|
|
3506
3506
|
"body-content": v(() => [
|
|
3507
|
-
e.error ? (f(), A("div",
|
|
3507
|
+
e.error ? (f(), A("div", Is, [
|
|
3508
3508
|
j(c, { appearance: "danger" }, {
|
|
3509
3509
|
alertMessage: v(() => [
|
|
3510
|
-
|
|
3510
|
+
ee(E(e.error), 1)
|
|
3511
3511
|
]),
|
|
3512
3512
|
_: 1
|
|
3513
3513
|
})
|
|
@@ -3518,21 +3518,21 @@ const Ri = {
|
|
|
3518
3518
|
tag: "p"
|
|
3519
3519
|
}, Se({
|
|
3520
3520
|
entityType: v(() => [
|
|
3521
|
-
|
|
3521
|
+
ee(E(t.entityType), 1)
|
|
3522
3522
|
]),
|
|
3523
3523
|
_: 2
|
|
3524
3524
|
}, [
|
|
3525
3525
|
t.entityName ? {
|
|
3526
3526
|
name: "entityName",
|
|
3527
3527
|
fn: v(() => [
|
|
3528
|
-
|
|
3528
|
+
q("strong", null, E(t.entityName), 1)
|
|
3529
3529
|
]),
|
|
3530
3530
|
key: "0"
|
|
3531
3531
|
} : void 0
|
|
3532
3532
|
]), 1032, ["keypath"]),
|
|
3533
|
-
t.description || s.$slots.description ? (f(), A("div",
|
|
3534
|
-
|
|
3535
|
-
|
|
3533
|
+
t.description || s.$slots.description ? (f(), A("div", xs, [
|
|
3534
|
+
X(s.$slots, "description", {}, () => [
|
|
3535
|
+
q("p", null, E(t.description), 1)
|
|
3536
3536
|
], !0)
|
|
3537
3537
|
])) : G("", !0)
|
|
3538
3538
|
]),
|
|
@@ -3540,13 +3540,13 @@ const Ri = {
|
|
|
3540
3540
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
}),
|
|
3543
|
+
}), Ss = /* @__PURE__ */ _e(As, [["__scopeId", "data-v-1c9a2a07"]]), Ts = {
|
|
3544
3544
|
fill: "none",
|
|
3545
3545
|
height: "20",
|
|
3546
3546
|
viewBox: "0 0 20 20",
|
|
3547
3547
|
width: "20",
|
|
3548
3548
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3549
|
-
},
|
|
3549
|
+
}, $s = {
|
|
3550
3550
|
id: "mask0_180_20349",
|
|
3551
3551
|
height: "20",
|
|
3552
3552
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3554,35 +3554,35 @@ const Ri = {
|
|
|
3554
3554
|
width: "20",
|
|
3555
3555
|
x: "0",
|
|
3556
3556
|
y: "0"
|
|
3557
|
-
},
|
|
3557
|
+
}, Ms = ["fill"], Os = { mask: "url(#mask0_180_20349)" }, Es = ["fill"], js = /* @__PURE__ */ ie({
|
|
3558
3558
|
__name: "IconFilter",
|
|
3559
3559
|
props: {
|
|
3560
3560
|
color: {
|
|
3561
3561
|
type: String,
|
|
3562
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3562
|
+
default: `var(--kong-ui-entity-filter-color, ${oo})`
|
|
3563
3563
|
}
|
|
3564
3564
|
},
|
|
3565
3565
|
setup(e) {
|
|
3566
|
-
return (n, t) => (f(), A("svg",
|
|
3567
|
-
|
|
3568
|
-
|
|
3566
|
+
return (n, t) => (f(), A("svg", Ts, [
|
|
3567
|
+
q("mask", $s, [
|
|
3568
|
+
q("rect", {
|
|
3569
3569
|
fill: e.color,
|
|
3570
3570
|
height: "20",
|
|
3571
3571
|
width: "20"
|
|
3572
|
-
}, null, 8,
|
|
3572
|
+
}, null, 8, Ms)
|
|
3573
3573
|
]),
|
|
3574
|
-
|
|
3575
|
-
|
|
3574
|
+
q("g", Os, [
|
|
3575
|
+
q("path", {
|
|
3576
3576
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3577
3577
|
fill: e.color
|
|
3578
|
-
}, null, 8,
|
|
3578
|
+
}, null, 8, Es)
|
|
3579
3579
|
])
|
|
3580
3580
|
]));
|
|
3581
3581
|
}
|
|
3582
|
-
}),
|
|
3582
|
+
}), Fs = {
|
|
3583
3583
|
key: 1,
|
|
3584
3584
|
class: "kong-ui-entity-filter"
|
|
3585
|
-
},
|
|
3585
|
+
}, Ks = { class: "menu-item-title" }, Bs = { class: "menu-item-indicator" }, Ls = { class: "menu-item-body" }, Ns = ["for"], qs = { class: "menu-item-buttons" }, Ps = /* @__PURE__ */ ie({
|
|
3586
3586
|
__name: "EntityFilter",
|
|
3587
3587
|
props: {
|
|
3588
3588
|
// filter config, either exact match or fuzzy match
|
|
@@ -3602,12 +3602,12 @@ const Ri = {
|
|
|
3602
3602
|
},
|
|
3603
3603
|
emits: ["update:modelValue"],
|
|
3604
3604
|
setup(e, { emit: n }) {
|
|
3605
|
-
const t = e, { i18n: { t: r } } =
|
|
3605
|
+
const t = e, { i18n: { t: r } } = ce.useI18n(), o = F(!1), a = F({}), i = $(() => {
|
|
3606
3606
|
const p = [];
|
|
3607
3607
|
return new URLSearchParams(t.modelValue).forEach((C, y) => {
|
|
3608
3608
|
C !== "" && p.push(y);
|
|
3609
3609
|
}), p;
|
|
3610
|
-
}), s =
|
|
3610
|
+
}), s = $(() => {
|
|
3611
3611
|
const p = t.config.fields;
|
|
3612
3612
|
return Object.keys(p).filter((C) => p[C].searchable).map((C) => ({
|
|
3613
3613
|
label: p[C].label || C,
|
|
@@ -3644,8 +3644,8 @@ const Ri = {
|
|
|
3644
3644
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(C).toString());
|
|
3645
3645
|
};
|
|
3646
3646
|
return (p, C) => {
|
|
3647
|
-
const y = N("KInput"), w = N("KButton"),
|
|
3648
|
-
return e.config.isExactMatch ? (f(),
|
|
3647
|
+
const y = N("KInput"), w = N("KButton"), P = N("KSelect"), Y = N("KMenuItem"), oe = N("KMenu");
|
|
3648
|
+
return e.config.isExactMatch ? (f(), V(y, {
|
|
3649
3649
|
key: 0,
|
|
3650
3650
|
autocomplete: "off",
|
|
3651
3651
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3655,10 +3655,10 @@ const Ri = {
|
|
|
3655
3655
|
"onUpdate:modelValue": c
|
|
3656
3656
|
}, {
|
|
3657
3657
|
icon: v(() => [
|
|
3658
|
-
j(
|
|
3658
|
+
j(js)
|
|
3659
3659
|
]),
|
|
3660
3660
|
_: 1
|
|
3661
|
-
}, 8, ["model-value", "placeholder"])) : (f(), A("div",
|
|
3661
|
+
}, 8, ["model-value", "placeholder"])) : (f(), A("div", Fs, [
|
|
3662
3662
|
j(w, {
|
|
3663
3663
|
appearance: "btn-link",
|
|
3664
3664
|
"data-testid": "filter-button",
|
|
@@ -3666,60 +3666,60 @@ const Ri = {
|
|
|
3666
3666
|
onClick: l
|
|
3667
3667
|
}, {
|
|
3668
3668
|
default: v(() => [
|
|
3669
|
-
|
|
3669
|
+
ee(E(h(r)("filter.filterButtonText")) + " " + E(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3670
3670
|
]),
|
|
3671
3671
|
_: 1
|
|
3672
3672
|
}),
|
|
3673
|
-
et(
|
|
3673
|
+
et(q("div", {
|
|
3674
3674
|
class: "kong-ui-entity-filter-backdrop",
|
|
3675
3675
|
onClick: l
|
|
3676
3676
|
}, null, 512), [
|
|
3677
3677
|
[tt, o.value]
|
|
3678
3678
|
]),
|
|
3679
|
-
et(j(
|
|
3679
|
+
et(j(oe, { class: "kong-ui-entity-filter-menu" }, {
|
|
3680
3680
|
body: v(() => [
|
|
3681
|
-
(f(!0), A(ve, null, ye(s.value, (
|
|
3682
|
-
key:
|
|
3683
|
-
"data-testid":
|
|
3681
|
+
(f(!0), A(ve, null, ye(s.value, (H, I) => (f(), V(Y, {
|
|
3682
|
+
key: H.value,
|
|
3683
|
+
"data-testid": H.value,
|
|
3684
3684
|
expandable: "",
|
|
3685
3685
|
"last-menu-item": I === s.value.length - 1
|
|
3686
3686
|
}, {
|
|
3687
3687
|
itemTitle: v(() => [
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
et(
|
|
3691
|
-
[tt, i.value.includes(
|
|
3688
|
+
q("span", Ks, [
|
|
3689
|
+
ee(E(H.label) + " ", 1),
|
|
3690
|
+
et(q("span", Bs, null, 512), [
|
|
3691
|
+
[tt, i.value.includes(H.value)]
|
|
3692
3692
|
])
|
|
3693
3693
|
])
|
|
3694
3694
|
]),
|
|
3695
3695
|
itemBody: v(() => {
|
|
3696
|
-
var D,
|
|
3696
|
+
var D, K;
|
|
3697
3697
|
return [
|
|
3698
|
-
|
|
3699
|
-
|
|
3698
|
+
q("div", Ls, [
|
|
3699
|
+
q("label", {
|
|
3700
3700
|
class: "menu-item-label",
|
|
3701
|
-
for: d(
|
|
3702
|
-
}, E(h(r)("filter.fieldLabel")), 9,
|
|
3703
|
-
((
|
|
3701
|
+
for: d(H.value)
|
|
3702
|
+
}, E(h(r)("filter.fieldLabel")), 9, Ns),
|
|
3703
|
+
((K = (D = e.config.schema) == null ? void 0 : D[H.value]) == null ? void 0 : K.type) === "select" ? (f(), V(P, {
|
|
3704
3704
|
key: 0,
|
|
3705
|
-
id: d(
|
|
3706
|
-
modelValue: a.value[
|
|
3707
|
-
"onUpdate:modelValue": (x) => a.value[
|
|
3705
|
+
id: d(H.value),
|
|
3706
|
+
modelValue: a.value[H.value],
|
|
3707
|
+
"onUpdate:modelValue": (x) => a.value[H.value] = x,
|
|
3708
3708
|
appearance: "select",
|
|
3709
|
-
items: u(
|
|
3709
|
+
items: u(H.value),
|
|
3710
3710
|
placeholder: h(r)("filter.selectPlaceholder")
|
|
3711
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(),
|
|
3711
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), V(y, {
|
|
3712
3712
|
key: 1,
|
|
3713
|
-
id: d(
|
|
3714
|
-
modelValue: a.value[
|
|
3715
|
-
"onUpdate:modelValue": (x) => a.value[
|
|
3713
|
+
id: d(H.value),
|
|
3714
|
+
modelValue: a.value[H.value],
|
|
3715
|
+
"onUpdate:modelValue": (x) => a.value[H.value] = x,
|
|
3716
3716
|
autocomplete: "off",
|
|
3717
3717
|
placeholder: h(r)("filter.inputPlaceholder"),
|
|
3718
3718
|
size: "small",
|
|
3719
|
-
type: m(
|
|
3719
|
+
type: m(H.value)
|
|
3720
3720
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3721
3721
|
]),
|
|
3722
|
-
|
|
3722
|
+
q("div", qs, [
|
|
3723
3723
|
j(w, {
|
|
3724
3724
|
appearance: "btn-link",
|
|
3725
3725
|
"data-testid": "apply-filter",
|
|
@@ -3727,7 +3727,7 @@ const Ri = {
|
|
|
3727
3727
|
onClick: C[0] || (C[0] = (x) => _(!0))
|
|
3728
3728
|
}, {
|
|
3729
3729
|
default: v(() => [
|
|
3730
|
-
|
|
3730
|
+
ee(E(h(r)("filter.applyButtonText")), 1)
|
|
3731
3731
|
]),
|
|
3732
3732
|
_: 1
|
|
3733
3733
|
}),
|
|
@@ -3735,10 +3735,10 @@ const Ri = {
|
|
|
3735
3735
|
appearance: "btn-link",
|
|
3736
3736
|
"data-testid": "clear-filter",
|
|
3737
3737
|
size: "small",
|
|
3738
|
-
onClick: (x) => g(
|
|
3738
|
+
onClick: (x) => g(H.value)
|
|
3739
3739
|
}, {
|
|
3740
3740
|
default: v(() => [
|
|
3741
|
-
|
|
3741
|
+
ee(E(h(r)("filter.clearButtonText")), 1)
|
|
3742
3742
|
]),
|
|
3743
3743
|
_: 2
|
|
3744
3744
|
}, 1032, ["onClick"])
|
|
@@ -3751,7 +3751,7 @@ const Ri = {
|
|
|
3751
3751
|
actionButton: v(() => [
|
|
3752
3752
|
j(w, { onClick: k }, {
|
|
3753
3753
|
default: v(() => [
|
|
3754
|
-
|
|
3754
|
+
ee(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3755
3755
|
]),
|
|
3756
3756
|
_: 1
|
|
3757
3757
|
})
|
|
@@ -3763,7 +3763,7 @@ const Ri = {
|
|
|
3763
3763
|
]));
|
|
3764
3764
|
};
|
|
3765
3765
|
}
|
|
3766
|
-
}),
|
|
3766
|
+
}), Us = /* @__PURE__ */ _e(Ps, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
|
|
3767
3767
|
__name: "PermissionsWrapper",
|
|
3768
3768
|
props: {
|
|
3769
3769
|
/**
|
|
@@ -3785,24 +3785,24 @@ const Ri = {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
},
|
|
3787
3787
|
setup(e) {
|
|
3788
|
-
const n = e, t = F(void 0), r =
|
|
3788
|
+
const n = e, t = F(void 0), r = $(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
|
|
3789
3789
|
return Oe(() => n.authFunction, async () => {
|
|
3790
3790
|
t.value = await n.authFunction();
|
|
3791
|
-
}, { immediate: !0 }), (o, a) => r.value ?
|
|
3791
|
+
}, { immediate: !0 }), (o, a) => r.value ? X(o.$slots, "default", {
|
|
3792
3792
|
key: 0,
|
|
3793
3793
|
isAllowed: t.value
|
|
3794
3794
|
}) : G("", !0);
|
|
3795
3795
|
}
|
|
3796
|
-
}),
|
|
3796
|
+
}), Vs = { class: "form-section-wrapper" }, Ds = {
|
|
3797
3797
|
key: 0,
|
|
3798
3798
|
class: "form-section-title"
|
|
3799
|
-
},
|
|
3799
|
+
}, Rs = {
|
|
3800
3800
|
key: 1,
|
|
3801
3801
|
class: "form-section-description"
|
|
3802
|
-
},
|
|
3802
|
+
}, Gs = {
|
|
3803
3803
|
key: 2,
|
|
3804
3804
|
class: "form-section-footer"
|
|
3805
|
-
},
|
|
3805
|
+
}, Hs = { class: "form-section-content" }, zs = /* @__PURE__ */ ie({
|
|
3806
3806
|
__name: "EntityFormSection",
|
|
3807
3807
|
props: {
|
|
3808
3808
|
title: {
|
|
@@ -3829,34 +3829,34 @@ const Ri = {
|
|
|
3829
3829
|
setup(e) {
|
|
3830
3830
|
const n = ut();
|
|
3831
3831
|
return (t, r) => (f(), A("fieldset", {
|
|
3832
|
-
class:
|
|
3832
|
+
class: Be(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3833
3833
|
}, [
|
|
3834
|
-
|
|
3834
|
+
q("div", Vs, [
|
|
3835
3835
|
e.hideInfoHeader ? G("", !0) : (f(), A("div", {
|
|
3836
3836
|
key: 0,
|
|
3837
|
-
class:
|
|
3837
|
+
class: Be(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3838
3838
|
}, [
|
|
3839
|
-
e.title ? (f(), A("h4",
|
|
3840
|
-
e.description || h(n).description ? (f(), A("div",
|
|
3841
|
-
|
|
3842
|
-
|
|
3839
|
+
e.title ? (f(), A("h4", Ds, E(e.title), 1)) : G("", !0),
|
|
3840
|
+
e.description || h(n).description ? (f(), A("div", Rs, [
|
|
3841
|
+
X(t.$slots, "description", {}, () => [
|
|
3842
|
+
q("p", null, E(e.description), 1)
|
|
3843
3843
|
], !0)
|
|
3844
3844
|
])) : G("", !0),
|
|
3845
|
-
h(n).footer ? (f(), A("div",
|
|
3846
|
-
|
|
3845
|
+
h(n).footer ? (f(), A("div", Gs, [
|
|
3846
|
+
X(t.$slots, "footer", {}, void 0, !0)
|
|
3847
3847
|
])) : G("", !0)
|
|
3848
3848
|
], 2)),
|
|
3849
|
-
|
|
3850
|
-
|
|
3849
|
+
q("div", Hs, [
|
|
3850
|
+
X(t.$slots, "default", {}, void 0, !0)
|
|
3851
3851
|
])
|
|
3852
3852
|
])
|
|
3853
3853
|
], 2));
|
|
3854
3854
|
}
|
|
3855
|
-
}), un = /* @__PURE__ */
|
|
3856
|
-
const
|
|
3855
|
+
}), un = /* @__PURE__ */ _e(zs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Ys, useErrors: Js, useFetchUrlBuilder: yl, useFetcher: Ws, useDebouncedFilter: or, useStringHelpers: hl, useHelpers: vl, useGatewayFeatureSupported: bl } = ce;
|
|
3856
|
+
const Zs = { class: "add-to-group-form-container" }, Qs = { class: "add-to-group-cta-text" }, Xs = {
|
|
3857
3857
|
key: 0,
|
|
3858
3858
|
class: "kong-ui-entity-add-to-groups-error"
|
|
3859
|
-
},
|
|
3859
|
+
}, el = { key: 0 }, tl = /* @__PURE__ */ ie({
|
|
3860
3860
|
__name: "AddToGroupModal",
|
|
3861
3861
|
props: {
|
|
3862
3862
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3873,9 +3873,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3873
3873
|
},
|
|
3874
3874
|
emits: ["cancel", "add:success", "add:partial-success", "error"],
|
|
3875
3875
|
setup(e, { emit: n }) {
|
|
3876
|
-
var
|
|
3876
|
+
var K;
|
|
3877
3877
|
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Ft({
|
|
3878
|
-
headers: (
|
|
3878
|
+
headers: (K = t.config) == null ? void 0 : K.requestHeaders
|
|
3879
3879
|
}), a = F([]), {
|
|
3880
3880
|
debouncedQueryChange: i,
|
|
3881
3881
|
loading: s,
|
|
@@ -3891,77 +3891,77 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3891
3891
|
fetchedItemsKey: "data",
|
|
3892
3892
|
searchKeys: ["name", "id"]
|
|
3893
3893
|
}
|
|
3894
|
-
), m =
|
|
3894
|
+
), m = $(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0), k = $(() => l.value === void 0), _ = $(() => u.value.map((x) => ({
|
|
3895
3895
|
label: x.name,
|
|
3896
3896
|
value: x.id,
|
|
3897
3897
|
selected: a.value.includes(x.id),
|
|
3898
3898
|
data: x
|
|
3899
3899
|
// we need this to determine whether or not to show the description text
|
|
3900
3900
|
}))), p = (x) => {
|
|
3901
|
-
var
|
|
3902
|
-
const
|
|
3903
|
-
return
|
|
3901
|
+
var O;
|
|
3902
|
+
const M = k.value ? u.value.find((B) => B.id === x) : (O = l.value) == null ? void 0 : O.find((B) => B.id === x);
|
|
3903
|
+
return M ? M.name : x;
|
|
3904
3904
|
}, C = () => {
|
|
3905
|
-
|
|
3906
|
-
}, y = F([]), w = F(!1),
|
|
3905
|
+
P.value = "", y.value = [], I.value = [], n("cancel");
|
|
3906
|
+
}, y = F([]), w = F(!1), P = F(""), Y = async () => {
|
|
3907
3907
|
if (!a.value.length) {
|
|
3908
|
-
|
|
3908
|
+
P.value = "", I.value = [], n("cancel");
|
|
3909
3909
|
return;
|
|
3910
3910
|
}
|
|
3911
|
-
w.value = !0,
|
|
3911
|
+
w.value = !0, P.value = "", y.value = [], I.value = [];
|
|
3912
3912
|
try {
|
|
3913
|
-
const x = a.value.map((
|
|
3914
|
-
let
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
}),
|
|
3913
|
+
const x = a.value.map((B) => H(B)), M = await Promise.allSettled(x);
|
|
3914
|
+
let O = !0;
|
|
3915
|
+
M.forEach((B) => {
|
|
3916
|
+
B.status !== "fulfilled" && (O = !1);
|
|
3917
|
+
}), O ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], D(M));
|
|
3918
3918
|
} catch {
|
|
3919
|
-
|
|
3919
|
+
P.value = r("consumer_groups.errors.add"), n("error", P.value);
|
|
3920
3920
|
} finally {
|
|
3921
3921
|
w.value = !1;
|
|
3922
3922
|
}
|
|
3923
|
-
},
|
|
3924
|
-
var
|
|
3923
|
+
}, oe = $(() => {
|
|
3924
|
+
var M, O, B, W;
|
|
3925
3925
|
let x = `${t.config.apiBaseUrl}${Te.list[t.config.app].forConsumer}`;
|
|
3926
|
-
return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((
|
|
3927
|
-
}),
|
|
3928
|
-
const
|
|
3926
|
+
return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((M = t.config) == null ? void 0 : M.controlPlaneId) || "").replace(/{consumerId}/gi, ((O = t.config) == null ? void 0 : O.consumerId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (B = t.config) != null && B.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((W = t.config) == null ? void 0 : W.consumerId) || "")), x;
|
|
3927
|
+
}), H = async (x) => {
|
|
3928
|
+
const M = {
|
|
3929
3929
|
group: x
|
|
3930
3930
|
};
|
|
3931
3931
|
try {
|
|
3932
|
-
const
|
|
3933
|
-
return y.value.push(x),
|
|
3934
|
-
} catch (
|
|
3935
|
-
let
|
|
3936
|
-
return
|
|
3932
|
+
const O = await o.post(oe.value, M);
|
|
3933
|
+
return y.value.push(x), O;
|
|
3934
|
+
} catch (O) {
|
|
3935
|
+
let B = `${p(x)} - ${O.message}`;
|
|
3936
|
+
return O.response.status === 409 && (B = `${p(x)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(B));
|
|
3937
3937
|
}
|
|
3938
3938
|
}, I = F([]), D = (x) => {
|
|
3939
|
-
I.value = x.map((
|
|
3940
|
-
var
|
|
3941
|
-
return (
|
|
3939
|
+
I.value = x.map((M) => {
|
|
3940
|
+
var O;
|
|
3941
|
+
return (O = M.reason) == null ? void 0 : O.message;
|
|
3942
3942
|
}).filter(Boolean);
|
|
3943
3943
|
};
|
|
3944
3944
|
return Oe(_, () => {
|
|
3945
3945
|
g.value++;
|
|
3946
|
-
}, { immediate: !0, deep: !0 }),
|
|
3946
|
+
}, { immediate: !0, deep: !0 }), Ze(async () => {
|
|
3947
3947
|
await d();
|
|
3948
|
-
}), (x,
|
|
3949
|
-
const
|
|
3950
|
-
return f(),
|
|
3948
|
+
}), (x, M) => {
|
|
3949
|
+
const O = N("KMultiselect"), B = N("KAlert"), W = N("KPrompt");
|
|
3950
|
+
return f(), V(W, {
|
|
3951
3951
|
"action-pending": w.value,
|
|
3952
3952
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
3953
3953
|
"data-testid": "add-to-group-modal",
|
|
3954
3954
|
"is-visible": e.visible,
|
|
3955
3955
|
title: h(r)("consumer_groups.consumers.add.title"),
|
|
3956
3956
|
onCanceled: C,
|
|
3957
|
-
onProceed:
|
|
3957
|
+
onProceed: Y
|
|
3958
3958
|
}, {
|
|
3959
3959
|
"body-content": v(() => [
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
j(
|
|
3960
|
+
q("div", Zs, [
|
|
3961
|
+
q("p", Qs, E(h(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
3962
|
+
j(O, {
|
|
3963
3963
|
modelValue: a.value,
|
|
3964
|
-
"onUpdate:modelValue":
|
|
3964
|
+
"onUpdate:modelValue": M[0] || (M[0] = (te) => a.value = te),
|
|
3965
3965
|
autosuggest: "",
|
|
3966
3966
|
"data-testid": "add-to-groups-multiselect",
|
|
3967
3967
|
"dropdown-footer-text": k.value ? h(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
@@ -3974,14 +3974,14 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3974
3974
|
width: "100%",
|
|
3975
3975
|
onQueryChange: h(i)
|
|
3976
3976
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
3977
|
-
|
|
3978
|
-
j(
|
|
3977
|
+
P.value || m.value || I.value.length ? (f(), A("div", Xs, [
|
|
3978
|
+
j(B, { appearance: "danger" }, {
|
|
3979
3979
|
alertMessage: v(() => [
|
|
3980
|
-
|
|
3981
|
-
I.value.length ? (f(), A("ul",
|
|
3982
|
-
(f(!0), A(ve, null, ye(I.value, (
|
|
3980
|
+
q("p", null, E(h(r)("consumer_groups.errors.add")), 1),
|
|
3981
|
+
I.value.length ? (f(), A("ul", el, [
|
|
3982
|
+
(f(!0), A(ve, null, ye(I.value, (te, ne) => (f(), A("li", { key: ne }, E(te), 1))), 128))
|
|
3983
3983
|
])) : G("", !0),
|
|
3984
|
-
|
|
3984
|
+
q("div", null, E(P.value || m.value), 1)
|
|
3985
3985
|
]),
|
|
3986
3986
|
_: 1
|
|
3987
3987
|
})
|
|
@@ -3998,7 +3998,7 @@ const Kt = (e, n) => {
|
|
|
3998
3998
|
for (const [r, o] of n)
|
|
3999
3999
|
t[r] = o;
|
|
4000
4000
|
return t;
|
|
4001
|
-
},
|
|
4001
|
+
}, nl = /* @__PURE__ */ Kt(tl, [["__scopeId", "data-v-4d30f3c5"]]), rl = { class: "kong-ui-entities-consumer-groups-list" }, ol = { key: 1 }, al = /* @__PURE__ */ ie({
|
|
4002
4002
|
__name: "ConsumerGroupList",
|
|
4003
4003
|
props: {
|
|
4004
4004
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4042,124 +4042,124 @@ const Kt = (e, n) => {
|
|
|
4042
4042
|
var Bt;
|
|
4043
4043
|
const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Ft({
|
|
4044
4044
|
headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
|
|
4045
|
-
}), s = F(1), l =
|
|
4045
|
+
}), s = F(1), l = $(() => !!t.config.consumerId), c = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4046
4046
|
name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4047
4047
|
};
|
|
4048
4048
|
t.config.app === "kongManager" && (d.consumers_count = { label: o("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), d.tags = { label: o("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4049
|
-
const u = d, m = (
|
|
4050
|
-
"data-testid":
|
|
4051
|
-
}), g =
|
|
4052
|
-
var
|
|
4053
|
-
let
|
|
4054
|
-
return t.config.app === "konnect" ?
|
|
4055
|
-
}), k = F(""), _ =
|
|
4056
|
-
const
|
|
4057
|
-
return
|
|
4058
|
-
isExactMatch:
|
|
4049
|
+
const u = d, m = (T) => ({
|
|
4050
|
+
"data-testid": T.username ?? T.custom_id ?? T.id
|
|
4051
|
+
}), g = $(() => {
|
|
4052
|
+
var z, ue, ke, je;
|
|
4053
|
+
let T = `${t.config.apiBaseUrl}${Te.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4054
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((je = t.config) == null ? void 0 : je.consumerId) || "")), T;
|
|
4055
|
+
}), k = F(""), _ = $(() => {
|
|
4056
|
+
const T = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4057
|
+
return T ? {
|
|
4058
|
+
isExactMatch: T,
|
|
4059
4059
|
fields: {
|
|
4060
4060
|
username: d.name,
|
|
4061
4061
|
id: { label: o("consumer_groups.list.table_headers.id") }
|
|
4062
4062
|
},
|
|
4063
4063
|
placeholder: o("consumer_groups.search.placeholder")
|
|
4064
4064
|
} : {
|
|
4065
|
-
isExactMatch:
|
|
4065
|
+
isExactMatch: T,
|
|
4066
4066
|
fields: {
|
|
4067
4067
|
name: d.name
|
|
4068
4068
|
},
|
|
4069
4069
|
schema: t.config.filterSchema
|
|
4070
4070
|
};
|
|
4071
|
-
}),
|
|
4071
|
+
}), { fetcher: p, fetcherState: C } = Ws(t.config, g.value), y = () => {
|
|
4072
4072
|
k.value = "";
|
|
4073
|
-
},
|
|
4073
|
+
}, w = () => {
|
|
4074
4074
|
s.value++;
|
|
4075
|
-
},
|
|
4076
|
-
const ue =
|
|
4077
|
-
if (!
|
|
4075
|
+
}, P = F(""), Y = (T, z) => {
|
|
4076
|
+
const ue = T.id;
|
|
4077
|
+
if (!z(ue)) {
|
|
4078
4078
|
n("copy:error", {
|
|
4079
|
-
entity:
|
|
4079
|
+
entity: T,
|
|
4080
4080
|
field: "id",
|
|
4081
4081
|
message: o("consumer_groups.errors.copy")
|
|
4082
4082
|
});
|
|
4083
4083
|
return;
|
|
4084
4084
|
}
|
|
4085
4085
|
n("copy:success", {
|
|
4086
|
-
entity:
|
|
4086
|
+
entity: T,
|
|
4087
4087
|
field: "id",
|
|
4088
4088
|
message: o("consumer_groups.copy.success", { val: ue })
|
|
4089
4089
|
});
|
|
4090
|
-
},
|
|
4091
|
-
const ue = JSON.stringify(
|
|
4092
|
-
if (!
|
|
4090
|
+
}, oe = (T, z) => {
|
|
4091
|
+
const ue = JSON.stringify(T);
|
|
4092
|
+
if (!z(ue)) {
|
|
4093
4093
|
n("copy:error", {
|
|
4094
|
-
entity:
|
|
4094
|
+
entity: T,
|
|
4095
4095
|
message: o("consumer_groups.errors.copy")
|
|
4096
4096
|
});
|
|
4097
4097
|
return;
|
|
4098
4098
|
}
|
|
4099
4099
|
n("copy:success", {
|
|
4100
|
-
entity:
|
|
4100
|
+
entity: T,
|
|
4101
4101
|
message: o("consumer_groups.copy.success_brief")
|
|
4102
4102
|
});
|
|
4103
|
-
},
|
|
4103
|
+
}, H = async (T) => {
|
|
4104
4104
|
var ue;
|
|
4105
|
-
await ((ue = t.canRetrieve) == null ? void 0 : ue.call(t,
|
|
4106
|
-
},
|
|
4105
|
+
await ((ue = t.canRetrieve) == null ? void 0 : ue.call(t, T)) && a.push(t.config.getViewRoute(T.id));
|
|
4106
|
+
}, I = (T) => ({
|
|
4107
4107
|
label: o("consumer_groups.actions.view"),
|
|
4108
|
-
to: t.config.getViewRoute(
|
|
4109
|
-
}),
|
|
4108
|
+
to: t.config.getViewRoute(T)
|
|
4109
|
+
}), D = (T) => ({
|
|
4110
4110
|
label: o("consumer_groups.actions.edit"),
|
|
4111
|
-
to: t.config.getEditRoute(
|
|
4112
|
-
}),
|
|
4113
|
-
|
|
4114
|
-
},
|
|
4115
|
-
|
|
4116
|
-
},
|
|
4117
|
-
var
|
|
4118
|
-
if ((
|
|
4111
|
+
to: t.config.getEditRoute(T)
|
|
4112
|
+
}), K = F(void 0), x = F(!1), M = F(!1), O = F(""), B = Ys(t.config, g.value), W = (T) => {
|
|
4113
|
+
K.value = T, x.value = !0;
|
|
4114
|
+
}, te = () => {
|
|
4115
|
+
x.value = !1;
|
|
4116
|
+
}, ne = async () => {
|
|
4117
|
+
var T, z, ue;
|
|
4118
|
+
if ((T = K.value) != null && T.id) {
|
|
4119
4119
|
M.value = !0;
|
|
4120
4120
|
try {
|
|
4121
|
-
await i.delete(
|
|
4122
|
-
} catch (
|
|
4123
|
-
|
|
4121
|
+
await i.delete(B(K.value.id)), M.value = !1, x.value = !1, s.value++, n("delete:success", K.value);
|
|
4122
|
+
} catch (ke) {
|
|
4123
|
+
O.value = ((ue = (z = ke.response) == null ? void 0 : z.data) == null ? void 0 : ue.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
|
|
4124
4124
|
} finally {
|
|
4125
4125
|
M.value = !1;
|
|
4126
4126
|
}
|
|
4127
4127
|
}
|
|
4128
|
-
},
|
|
4129
|
-
|
|
4130
|
-
},
|
|
4131
|
-
|
|
4132
|
-
},
|
|
4133
|
-
|
|
4134
|
-
},
|
|
4135
|
-
l.value &&
|
|
4136
|
-
},
|
|
4137
|
-
|
|
4138
|
-
},
|
|
4139
|
-
|
|
4140
|
-
},
|
|
4141
|
-
var
|
|
4142
|
-
let
|
|
4143
|
-
return t.config.app === "konnect" ?
|
|
4144
|
-
}),
|
|
4145
|
-
if (
|
|
4146
|
-
|
|
4128
|
+
}, Z = F(!1), le = () => {
|
|
4129
|
+
Z.value = !0;
|
|
4130
|
+
}, De = () => {
|
|
4131
|
+
Z.value = !1;
|
|
4132
|
+
}, b = (T, z) => {
|
|
4133
|
+
z || De(), s.value++, n("add:success", T);
|
|
4134
|
+
}, L = () => {
|
|
4135
|
+
l.value && le();
|
|
4136
|
+
}, J = F(void 0), U = F(!1), R = F(""), ge = (T) => {
|
|
4137
|
+
J.value = T, U.value = !0;
|
|
4138
|
+
}, Ce = () => {
|
|
4139
|
+
U.value = !1, J.value = void 0;
|
|
4140
|
+
}, pe = $(() => {
|
|
4141
|
+
var z, ue, ke, je;
|
|
4142
|
+
let T = `${t.config.apiBaseUrl}${Te.list[t.config.app].oneForConsumer}`;
|
|
4143
|
+
return t.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (ke = t.config) != null && ke.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((je = t.config) == null ? void 0 : je.consumerId) || "")), T;
|
|
4144
|
+
}), Ee = F(!1), Qe = async () => {
|
|
4145
|
+
if (J.value) {
|
|
4146
|
+
Ee.value = !0;
|
|
4147
4147
|
try {
|
|
4148
|
-
const
|
|
4149
|
-
await i.delete(
|
|
4150
|
-
} catch (
|
|
4151
|
-
|
|
4148
|
+
const T = pe.value.replace(/{consumerGroupId}/gi, J.value.id);
|
|
4149
|
+
await i.delete(T), n("remove:success", J.value), Ce(), s.value++;
|
|
4150
|
+
} catch (T) {
|
|
4151
|
+
R.value = T.message || o("consumer_groups.errors.delete"), n("error", T);
|
|
4152
4152
|
} finally {
|
|
4153
|
-
|
|
4153
|
+
Ee.value = !1;
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
4157
|
-
Oe(
|
|
4158
|
-
if (
|
|
4159
|
-
|
|
4157
|
+
Oe(C, (T) => {
|
|
4158
|
+
if (T.status === Fe.Error) {
|
|
4159
|
+
P.value = o("consumer_groups.errors.general"), n("error", T.error);
|
|
4160
4160
|
return;
|
|
4161
4161
|
}
|
|
4162
|
-
|
|
4162
|
+
P.value = "";
|
|
4163
4163
|
});
|
|
4164
4164
|
const pt = F({
|
|
4165
4165
|
ctaPath: l.value ? void 0 : t.config.createRoute,
|
|
@@ -4167,36 +4167,35 @@ const Kt = (e, n) => {
|
|
|
4167
4167
|
message: o("consumer_groups.list.empty_state.description"),
|
|
4168
4168
|
title: o("consumer_groups.title")
|
|
4169
4169
|
});
|
|
4170
|
-
return
|
|
4170
|
+
return Ze(async () => {
|
|
4171
4171
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4172
|
-
}), (
|
|
4173
|
-
const ue = N("KButton"),
|
|
4174
|
-
return f(), A("div",
|
|
4175
|
-
j(h(
|
|
4172
|
+
}), (T, z) => {
|
|
4173
|
+
const ue = N("KButton"), ke = N("KBadge"), je = N("KTruncate"), Re = N("KDropdownItem"), Lt = N("KClipboardProvider"), ar = N("KPrompt");
|
|
4174
|
+
return f(), A("div", rl, [
|
|
4175
|
+
j(h(ws), {
|
|
4176
4176
|
"cache-identifier": e.cacheIdentifier,
|
|
4177
|
-
"disable-pagination": l.value,
|
|
4178
4177
|
"disable-pagination-page-jump": "",
|
|
4179
4178
|
"disable-sorting": c.value,
|
|
4180
4179
|
"empty-state-options": pt.value,
|
|
4181
4180
|
"enable-entity-actions": "",
|
|
4182
|
-
"error-message":
|
|
4183
|
-
fetcher: h(
|
|
4181
|
+
"error-message": P.value,
|
|
4182
|
+
fetcher: h(p),
|
|
4184
4183
|
"fetcher-cache-key": s.value,
|
|
4185
4184
|
"pagination-type": "offset",
|
|
4186
4185
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4187
4186
|
query: k.value,
|
|
4188
4187
|
"row-attributes": m,
|
|
4189
4188
|
"table-headers": h(u),
|
|
4190
|
-
onClearSearchInput:
|
|
4191
|
-
"onClick:row":
|
|
4192
|
-
onEmptyStateCtaClicked:
|
|
4193
|
-
onSort:
|
|
4189
|
+
onClearSearchInput: y,
|
|
4190
|
+
"onClick:row": z[3] || (z[3] = (Q) => H(Q)),
|
|
4191
|
+
onEmptyStateCtaClicked: L,
|
|
4192
|
+
onSort: w
|
|
4194
4193
|
}, {
|
|
4195
4194
|
"toolbar-filter": v(() => [
|
|
4196
|
-
l.value ? G("", !0) : (f(),
|
|
4195
|
+
l.value ? G("", !0) : (f(), V(h(Us), {
|
|
4197
4196
|
key: 0,
|
|
4198
4197
|
modelValue: k.value,
|
|
4199
|
-
"onUpdate:modelValue":
|
|
4198
|
+
"onUpdate:modelValue": z[0] || (z[0] = (Q) => k.value = Q),
|
|
4200
4199
|
config: _.value
|
|
4201
4200
|
}, null, 8, ["modelValue", "config"]))
|
|
4202
4201
|
]),
|
|
@@ -4210,10 +4209,10 @@ const Kt = (e, n) => {
|
|
|
4210
4209
|
"data-testid": "toolbar-add-consumer-group",
|
|
4211
4210
|
icon: "plus",
|
|
4212
4211
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4213
|
-
onClick:
|
|
4212
|
+
onClick: z[1] || (z[1] = () => e.config.consumerId ? le() : void 0)
|
|
4214
4213
|
}, {
|
|
4215
4214
|
default: v(() => [
|
|
4216
|
-
|
|
4215
|
+
ee(E(e.config.consumerId ? h(o)("consumer_groups.actions.add_to_group") : h(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4217
4216
|
]),
|
|
4218
4217
|
_: 1
|
|
4219
4218
|
}, 8, ["to"])
|
|
@@ -4221,52 +4220,52 @@ const Kt = (e, n) => {
|
|
|
4221
4220
|
_: 1
|
|
4222
4221
|
}, 8, ["auth-function"])
|
|
4223
4222
|
]),
|
|
4224
|
-
name: v(({ rowValue:
|
|
4225
|
-
|
|
4223
|
+
name: v(({ rowValue: Q }) => [
|
|
4224
|
+
q("b", null, E(Q ?? "-"), 1)
|
|
4226
4225
|
]),
|
|
4227
|
-
consumers_count: v(({ rowValue:
|
|
4228
|
-
|
|
4226
|
+
consumers_count: v(({ rowValue: Q }) => [
|
|
4227
|
+
ee(E(Q ?? "-"), 1)
|
|
4229
4228
|
]),
|
|
4230
|
-
tags: v(({ rowValue:
|
|
4231
|
-
(
|
|
4229
|
+
tags: v(({ rowValue: Q }) => [
|
|
4230
|
+
(Q == null ? void 0 : Q.length) > 0 ? (f(), V(je, { key: 0 }, {
|
|
4232
4231
|
default: v(() => [
|
|
4233
|
-
(f(!0), A(ve, null, ye(
|
|
4234
|
-
key:
|
|
4235
|
-
onClick:
|
|
4232
|
+
(f(!0), A(ve, null, ye(Q, (Le) => (f(), V(ke, {
|
|
4233
|
+
key: Le,
|
|
4234
|
+
onClick: z[2] || (z[2] = rt(() => {
|
|
4236
4235
|
}, ["stop"]))
|
|
4237
4236
|
}, {
|
|
4238
4237
|
default: v(() => [
|
|
4239
|
-
|
|
4238
|
+
ee(E(Le), 1)
|
|
4240
4239
|
]),
|
|
4241
4240
|
_: 2
|
|
4242
4241
|
}, 1024))), 128))
|
|
4243
4242
|
]),
|
|
4244
4243
|
_: 2
|
|
4245
|
-
}, 1024)) : (f(), A("span",
|
|
4244
|
+
}, 1024)) : (f(), A("span", ol, "-"))
|
|
4246
4245
|
]),
|
|
4247
|
-
actions: v(({ row:
|
|
4248
|
-
j(
|
|
4249
|
-
default: v(({ copyToClipboard:
|
|
4250
|
-
j(
|
|
4246
|
+
actions: v(({ row: Q }) => [
|
|
4247
|
+
j(Lt, null, {
|
|
4248
|
+
default: v(({ copyToClipboard: Le }) => [
|
|
4249
|
+
j(Re, {
|
|
4251
4250
|
"data-testid": "action-entity-copy-id",
|
|
4252
|
-
onClick: (
|
|
4251
|
+
onClick: (ir) => Y(Q, Le)
|
|
4253
4252
|
}, {
|
|
4254
4253
|
default: v(() => [
|
|
4255
|
-
|
|
4254
|
+
ee(E(h(o)("consumer_groups.actions.copy_id")), 1)
|
|
4256
4255
|
]),
|
|
4257
4256
|
_: 2
|
|
4258
4257
|
}, 1032, ["onClick"])
|
|
4259
4258
|
]),
|
|
4260
4259
|
_: 2
|
|
4261
4260
|
}, 1024),
|
|
4262
|
-
j(
|
|
4263
|
-
default: v(({ copyToClipboard:
|
|
4264
|
-
j(
|
|
4261
|
+
j(Lt, null, {
|
|
4262
|
+
default: v(({ copyToClipboard: Le }) => [
|
|
4263
|
+
j(Re, {
|
|
4265
4264
|
"data-testid": "action-entity-copy-json",
|
|
4266
|
-
onClick: (
|
|
4265
|
+
onClick: (ir) => oe(Q, Le)
|
|
4267
4266
|
}, {
|
|
4268
4267
|
default: v(() => [
|
|
4269
|
-
|
|
4268
|
+
ee(E(h(o)("consumer_groups.actions.copy_json")), 1)
|
|
4270
4269
|
]),
|
|
4271
4270
|
_: 2
|
|
4272
4271
|
}, 1032, ["onClick"])
|
|
@@ -4274,40 +4273,40 @@ const Kt = (e, n) => {
|
|
|
4274
4273
|
_: 2
|
|
4275
4274
|
}, 1024),
|
|
4276
4275
|
j(h(Xe), {
|
|
4277
|
-
"auth-function": () => e.canRetrieve(
|
|
4276
|
+
"auth-function": () => e.canRetrieve(Q)
|
|
4278
4277
|
}, {
|
|
4279
4278
|
default: v(() => [
|
|
4280
|
-
j(
|
|
4279
|
+
j(Re, {
|
|
4281
4280
|
"data-testid": "action-entity-view",
|
|
4282
4281
|
"has-divider": "",
|
|
4283
|
-
item:
|
|
4282
|
+
item: I(Q.id)
|
|
4284
4283
|
}, null, 8, ["item"])
|
|
4285
4284
|
]),
|
|
4286
4285
|
_: 2
|
|
4287
4286
|
}, 1032, ["auth-function"]),
|
|
4288
4287
|
j(h(Xe), {
|
|
4289
|
-
"auth-function": () => e.canEdit(
|
|
4288
|
+
"auth-function": () => e.canEdit(Q)
|
|
4290
4289
|
}, {
|
|
4291
4290
|
default: v(() => [
|
|
4292
|
-
j(
|
|
4291
|
+
j(Re, {
|
|
4293
4292
|
"data-testid": "action-entity-edit",
|
|
4294
|
-
item:
|
|
4293
|
+
item: D(Q.id)
|
|
4295
4294
|
}, null, 8, ["item"])
|
|
4296
4295
|
]),
|
|
4297
4296
|
_: 2
|
|
4298
4297
|
}, 1032, ["auth-function"]),
|
|
4299
4298
|
j(h(Xe), {
|
|
4300
|
-
"auth-function": () => e.canDelete(
|
|
4299
|
+
"auth-function": () => e.canDelete(Q)
|
|
4301
4300
|
}, {
|
|
4302
4301
|
default: v(() => [
|
|
4303
|
-
j(
|
|
4302
|
+
j(Re, {
|
|
4304
4303
|
"data-testid": "action-entity-delete",
|
|
4305
4304
|
"has-divider": "",
|
|
4306
4305
|
"is-dangerous": "",
|
|
4307
|
-
onClick: () => e.config.consumerId ?
|
|
4306
|
+
onClick: () => e.config.consumerId ? ge(Q) : W(Q)
|
|
4308
4307
|
}, {
|
|
4309
4308
|
default: v(() => [
|
|
4310
|
-
|
|
4309
|
+
ee(E(e.config.consumerId ? h(o)("consumer_groups.actions.exit") : h(o)("consumer_groups.actions.delete")), 1)
|
|
4311
4310
|
]),
|
|
4312
4311
|
_: 2
|
|
4313
4312
|
}, 1032, ["onClick"])
|
|
@@ -4316,36 +4315,36 @@ const Kt = (e, n) => {
|
|
|
4316
4315
|
}, 1032, ["auth-function"])
|
|
4317
4316
|
]),
|
|
4318
4317
|
_: 1
|
|
4319
|
-
}, 8, ["cache-identifier", "disable-
|
|
4320
|
-
j(h(
|
|
4318
|
+
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4319
|
+
j(h(Ss), {
|
|
4321
4320
|
"action-pending": M.value,
|
|
4322
4321
|
"data-testid": "delete-consumer-group-modal",
|
|
4323
4322
|
description: h(o)("consumer_groups.delete.description"),
|
|
4324
|
-
"entity-name":
|
|
4323
|
+
"entity-name": K.value && (K.value.name || K.value.id),
|
|
4325
4324
|
"entity-type": h(dn).ConsumerGroup,
|
|
4326
|
-
error:
|
|
4325
|
+
error: O.value,
|
|
4327
4326
|
title: h(o)("consumer_groups.delete.title"),
|
|
4328
|
-
visible:
|
|
4329
|
-
onCancel:
|
|
4330
|
-
onProceed:
|
|
4327
|
+
visible: x.value,
|
|
4328
|
+
onCancel: te,
|
|
4329
|
+
onProceed: ne
|
|
4331
4330
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4332
|
-
e.config.consumerId ? (f(),
|
|
4331
|
+
e.config.consumerId ? (f(), V(nl, {
|
|
4333
4332
|
key: 0,
|
|
4334
4333
|
config: e.config,
|
|
4335
4334
|
"data-testid": "add-to-group-modal",
|
|
4336
|
-
visible:
|
|
4337
|
-
"onAdd:partialSuccess":
|
|
4338
|
-
"onAdd:success":
|
|
4339
|
-
onCancel:
|
|
4335
|
+
visible: Z.value,
|
|
4336
|
+
"onAdd:partialSuccess": z[4] || (z[4] = (Q) => b(Q, !0)),
|
|
4337
|
+
"onAdd:success": z[5] || (z[5] = (Q) => b(Q)),
|
|
4338
|
+
onCancel: De
|
|
4340
4339
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4341
|
-
e.config.consumerId &&
|
|
4340
|
+
e.config.consumerId && J.value ? (f(), V(ar, {
|
|
4342
4341
|
key: 1,
|
|
4343
4342
|
"data-testid": "exit-group-modal",
|
|
4344
|
-
"is-visible":
|
|
4343
|
+
"is-visible": U.value,
|
|
4345
4344
|
title: h(o)("consumer_groups.consumers.exit.title"),
|
|
4346
4345
|
type: "danger",
|
|
4347
|
-
onCanceled:
|
|
4348
|
-
onProceed:
|
|
4346
|
+
onCanceled: Ce,
|
|
4347
|
+
onProceed: Qe
|
|
4349
4348
|
}, {
|
|
4350
4349
|
"body-content": v(() => [
|
|
4351
4350
|
j(h(r), {
|
|
@@ -4354,19 +4353,19 @@ const Kt = (e, n) => {
|
|
|
4354
4353
|
tag: "p"
|
|
4355
4354
|
}, Se({
|
|
4356
4355
|
consumerGroup: v(() => [
|
|
4357
|
-
|
|
4356
|
+
q("strong", null, E(J.value.name || J.value.id), 1)
|
|
4358
4357
|
]),
|
|
4359
4358
|
_: 2
|
|
4360
4359
|
}, [
|
|
4361
4360
|
e.config.consumerUsername ? {
|
|
4362
4361
|
name: "consumer",
|
|
4363
4362
|
fn: v(() => [
|
|
4364
|
-
|
|
4363
|
+
q("strong", null, E(e.config.consumerUsername), 1)
|
|
4365
4364
|
]),
|
|
4366
4365
|
key: "0"
|
|
4367
4366
|
} : void 0
|
|
4368
4367
|
]), 1032, ["keypath"]),
|
|
4369
|
-
|
|
4368
|
+
q("p", null, E(h(o)("consumer_groups.consumers.exit.description")), 1)
|
|
4370
4369
|
]),
|
|
4371
4370
|
_: 1
|
|
4372
4371
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4374,10 +4373,10 @@ const Kt = (e, n) => {
|
|
|
4374
4373
|
};
|
|
4375
4374
|
}
|
|
4376
4375
|
});
|
|
4377
|
-
const
|
|
4376
|
+
const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { class: "kong-ui-entities-consumer-group-form" }, sl = { class: "select-item-label" }, ll = {
|
|
4378
4377
|
key: 0,
|
|
4379
4378
|
class: "select-item-desc"
|
|
4380
|
-
},
|
|
4379
|
+
}, ul = /* @__PURE__ */ ie({
|
|
4381
4380
|
__name: "ConsumerGroupForm",
|
|
4382
4381
|
props: {
|
|
4383
4382
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4395,8 +4394,8 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4395
4394
|
},
|
|
4396
4395
|
emits: ["update", "error", "loading"],
|
|
4397
4396
|
setup(e, { emit: n }) {
|
|
4398
|
-
var
|
|
4399
|
-
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a =
|
|
4397
|
+
var Z, le, De;
|
|
4398
|
+
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Nt({
|
|
4400
4399
|
fields: {
|
|
4401
4400
|
name: "",
|
|
4402
4401
|
tags: "",
|
|
@@ -4404,7 +4403,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4404
4403
|
},
|
|
4405
4404
|
errorMessage: "",
|
|
4406
4405
|
readonly: !1
|
|
4407
|
-
}), i =
|
|
4406
|
+
}), i = Nt({
|
|
4408
4407
|
name: "",
|
|
4409
4408
|
tags: "",
|
|
4410
4409
|
consumers: []
|
|
@@ -4414,128 +4413,128 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4414
4413
|
error: c,
|
|
4415
4414
|
loadItems: d,
|
|
4416
4415
|
results: u
|
|
4417
|
-
} = or(t.config, (
|
|
4416
|
+
} = or(t.config, (le = Te.form[(Z = t.config) == null ? void 0 : Z.app]) == null ? void 0 : le.consumersList, "", {
|
|
4418
4417
|
fetchedItemsKey: "data",
|
|
4419
4418
|
searchKeys: ["username", "custom_id"]
|
|
4420
4419
|
}), { axiosInstance: m } = Ft({
|
|
4421
4420
|
headers: (De = t.config) == null ? void 0 : De.requestHeaders
|
|
4422
|
-
}), { getMessageFromError: g } =
|
|
4421
|
+
}), { getMessageFromError: g } = Js(), k = $(() => u.value.map((b) => ({
|
|
4423
4422
|
label: b.username || b.custom_id,
|
|
4424
4423
|
value: b.id,
|
|
4425
4424
|
selected: a.fields.consumers.includes(b.id),
|
|
4426
4425
|
data: b
|
|
4427
4426
|
// we need this to determine whether or not to show the description text
|
|
4428
|
-
}))), _ =
|
|
4429
|
-
var b,
|
|
4430
|
-
return (
|
|
4431
|
-
}), p =
|
|
4432
|
-
var R, ge,
|
|
4433
|
-
let
|
|
4434
|
-
return ((
|
|
4435
|
-
},
|
|
4427
|
+
}))), _ = $(() => {
|
|
4428
|
+
var b, L;
|
|
4429
|
+
return (L = Te.form[(b = t.config) == null ? void 0 : b.app]) == null ? void 0 : L.edit;
|
|
4430
|
+
}), p = $(() => t.consumerGroupId ? nt.Edit : nt.Create), C = $(() => !!a.fields.name && !I.value), y = $(() => JSON.stringify(a.fields) !== JSON.stringify(i)), w = (b, L = "", J = "") => {
|
|
4431
|
+
var R, ge, Ce, pe, Ee, Qe;
|
|
4432
|
+
let U = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Te.form[(ge = t.config) == null ? void 0 : ge.app][b]}`;
|
|
4433
|
+
return ((Ce = t.config) == null ? void 0 : Ce.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((pe = t.config) == null ? void 0 : pe.controlPlaneId) || "") : ((Ee = t.config) == null ? void 0 : Ee.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (Qe = t.config) != null && Qe.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (b === "addConsumer" || b === "removeConsumer") && (U = U.replace(/{consumerId}/gi, J)), U;
|
|
4434
|
+
}, P = () => {
|
|
4436
4435
|
var b;
|
|
4437
4436
|
o.push(((b = t.config) == null ? void 0 : b.cancelRoute) || { name: "consumer-group-list" });
|
|
4438
|
-
},
|
|
4437
|
+
}, Y = (b) => {
|
|
4439
4438
|
n("error", b);
|
|
4440
|
-
},
|
|
4439
|
+
}, oe = (b) => {
|
|
4441
4440
|
n("loading", b);
|
|
4442
|
-
},
|
|
4443
|
-
var
|
|
4444
|
-
a.fields.name = ((
|
|
4445
|
-
const
|
|
4446
|
-
if (a.fields.tags = (
|
|
4447
|
-
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((
|
|
4441
|
+
}, H = async (b) => {
|
|
4442
|
+
var J, U, R, ge, Ce;
|
|
4443
|
+
a.fields.name = ((J = b == null ? void 0 : b.item) == null ? void 0 : J.name) || ((U = b == null ? void 0 : b.consumer_group) == null ? void 0 : U.name) || (b == null ? void 0 : b.name) || "";
|
|
4444
|
+
const L = ((R = b == null ? void 0 : b.item) == null ? void 0 : R.tags) || (b == null ? void 0 : b.consumer_group.tags) || (b == null ? void 0 : b.tags) || [];
|
|
4445
|
+
if (a.fields.tags = (L == null ? void 0 : L.join(", ")) || "", "consumers" in b)
|
|
4446
|
+
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((pe) => pe.id)) || [];
|
|
4448
4447
|
else
|
|
4449
4448
|
try {
|
|
4450
|
-
const { data:
|
|
4451
|
-
a.fields.consumers = "consumers" in
|
|
4452
|
-
} catch (
|
|
4453
|
-
|
|
4449
|
+
const { data: pe } = await m.get(w("getConsumers"));
|
|
4450
|
+
a.fields.consumers = "consumers" in pe ? (Ce = pe == null ? void 0 : pe.consumers) == null ? void 0 : Ce.map((Ee) => Ee.id) : [];
|
|
4451
|
+
} catch (pe) {
|
|
4452
|
+
M(pe);
|
|
4454
4453
|
}
|
|
4455
4454
|
Object.assign(i, a.fields);
|
|
4456
|
-
}, I =
|
|
4457
|
-
var b,
|
|
4455
|
+
}, I = $(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), D = () => {
|
|
4456
|
+
var b, L;
|
|
4458
4457
|
return {
|
|
4459
4458
|
name: a.fields.name,
|
|
4460
|
-
tags: (
|
|
4459
|
+
tags: (L = (b = a.fields.tags.split(",")) == null ? void 0 : b.map((J) => String(J || "").trim())) == null ? void 0 : L.filter((J) => J !== "")
|
|
4461
4460
|
};
|
|
4462
|
-
},
|
|
4461
|
+
}, K = async (b, L = "") => await m.post(w("addConsumer", L, b), { consumer: b }), x = async (b, L = "") => await m.delete(w("removeConsumer", L, b)), M = (b) => {
|
|
4463
4462
|
a.errorMessage = g(b), n("error", b);
|
|
4464
|
-
},
|
|
4463
|
+
}, O = (b = t.consumerGroupId) => {
|
|
4465
4464
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: b });
|
|
4466
|
-
},
|
|
4467
|
-
const
|
|
4468
|
-
|
|
4469
|
-
code:
|
|
4470
|
-
message:
|
|
4471
|
-
}) :
|
|
4472
|
-
},
|
|
4465
|
+
}, B = (b, L, J = t.consumerGroupId) => {
|
|
4466
|
+
const U = b == null ? void 0 : b.find((R) => R.status !== "fulfilled");
|
|
4467
|
+
U ? M({
|
|
4468
|
+
code: U.status,
|
|
4469
|
+
message: L
|
|
4470
|
+
}) : O(J);
|
|
4471
|
+
}, W = async () => {
|
|
4473
4472
|
let b = "";
|
|
4474
4473
|
try {
|
|
4475
|
-
const { data:
|
|
4476
|
-
b = "item" in
|
|
4477
|
-
} catch (
|
|
4478
|
-
|
|
4474
|
+
const { data: L } = await m.post(w("create"), D());
|
|
4475
|
+
b = "item" in L ? L.item.id : L.id;
|
|
4476
|
+
} catch (L) {
|
|
4477
|
+
M(L);
|
|
4479
4478
|
}
|
|
4480
4479
|
if (a.fields.consumers.length > 0 && b)
|
|
4481
4480
|
try {
|
|
4482
|
-
const
|
|
4483
|
-
|
|
4484
|
-
} catch (
|
|
4485
|
-
|
|
4481
|
+
const L = a.fields.consumers.map((U) => K(U, b)), J = await Promise.allSettled(L);
|
|
4482
|
+
B(J, r("consumer_groups.errors.add_consumer"), b);
|
|
4483
|
+
} catch (L) {
|
|
4484
|
+
M(L);
|
|
4486
4485
|
}
|
|
4487
4486
|
else
|
|
4488
|
-
a.fields.consumers.length === 0 && b &&
|
|
4489
|
-
},
|
|
4490
|
-
var
|
|
4487
|
+
a.fields.consumers.length === 0 && b && O(b);
|
|
4488
|
+
}, te = async () => {
|
|
4489
|
+
var J;
|
|
4491
4490
|
try {
|
|
4492
|
-
((
|
|
4493
|
-
} catch (
|
|
4494
|
-
|
|
4491
|
+
((J = t.config) == null ? void 0 : J.app) === "konnect" ? await m.put(w("edit"), D()) : await m.patch(w("edit"), D());
|
|
4492
|
+
} catch (U) {
|
|
4493
|
+
M(U);
|
|
4495
4494
|
}
|
|
4496
|
-
const b = a.fields.consumers.filter((
|
|
4497
|
-
if (
|
|
4498
|
-
|
|
4495
|
+
const b = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
|
|
4496
|
+
if (L.length === 0 && b.length === 0)
|
|
4497
|
+
O();
|
|
4499
4498
|
else {
|
|
4500
|
-
if (
|
|
4499
|
+
if (L.length > 0)
|
|
4501
4500
|
try {
|
|
4502
|
-
const
|
|
4503
|
-
|
|
4504
|
-
} catch (
|
|
4505
|
-
|
|
4501
|
+
const U = L.map((ge) => x(ge)), R = await Promise.allSettled(U);
|
|
4502
|
+
B(R, r("consumer_groups.errors.remove_consumer"));
|
|
4503
|
+
} catch (U) {
|
|
4504
|
+
M(U);
|
|
4506
4505
|
}
|
|
4507
4506
|
if (b.length > 0)
|
|
4508
4507
|
try {
|
|
4509
|
-
const
|
|
4510
|
-
|
|
4511
|
-
} catch (
|
|
4512
|
-
|
|
4508
|
+
const U = b.map((ge) => K(ge)), R = await Promise.allSettled(U);
|
|
4509
|
+
B(R, r("consumer_groups.errors.add_consumer"));
|
|
4510
|
+
} catch (U) {
|
|
4511
|
+
M(U);
|
|
4513
4512
|
}
|
|
4514
4513
|
}
|
|
4515
|
-
},
|
|
4514
|
+
}, ne = async () => {
|
|
4516
4515
|
try {
|
|
4517
|
-
a.readonly = !0, p.value === nt.Create ? await
|
|
4516
|
+
a.readonly = !0, p.value === nt.Create ? await W() : await te();
|
|
4518
4517
|
} finally {
|
|
4519
4518
|
a.readonly = !1;
|
|
4520
4519
|
}
|
|
4521
4520
|
};
|
|
4522
|
-
return
|
|
4521
|
+
return Ze(async () => {
|
|
4523
4522
|
await d();
|
|
4524
|
-
}), (b,
|
|
4525
|
-
const
|
|
4526
|
-
return f(), A("div",
|
|
4527
|
-
j(h(
|
|
4523
|
+
}), (b, L) => {
|
|
4524
|
+
const J = N("KInput"), U = N("KMultiselect");
|
|
4525
|
+
return f(), A("div", il, [
|
|
4526
|
+
j(h(gs), {
|
|
4528
4527
|
"can-submit": C.value && y.value,
|
|
4529
4528
|
config: e.config,
|
|
4530
4529
|
"edit-id": e.consumerGroupId,
|
|
4531
4530
|
"error-message": a.errorMessage || h(c) || I.value,
|
|
4532
4531
|
"fetch-url": _.value,
|
|
4533
4532
|
"is-readonly": a.readonly,
|
|
4534
|
-
onCancel:
|
|
4535
|
-
"onFetch:error":
|
|
4536
|
-
"onFetch:success":
|
|
4537
|
-
onLoading:
|
|
4538
|
-
onSubmit:
|
|
4533
|
+
onCancel: P,
|
|
4534
|
+
"onFetch:error": L[3] || (L[3] = (R) => Y(R)),
|
|
4535
|
+
"onFetch:success": H,
|
|
4536
|
+
onLoading: L[4] || (L[4] = (R) => oe(R)),
|
|
4537
|
+
onSubmit: ne
|
|
4539
4538
|
}, {
|
|
4540
4539
|
default: v(() => [
|
|
4541
4540
|
j(h(un), {
|
|
@@ -4543,9 +4542,9 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4543
4542
|
title: h(r)("consumer_groups.form.general_info.title")
|
|
4544
4543
|
}, {
|
|
4545
4544
|
default: v(() => [
|
|
4546
|
-
j(
|
|
4545
|
+
j(J, {
|
|
4547
4546
|
modelValue: a.fields.name,
|
|
4548
|
-
"onUpdate:modelValue":
|
|
4547
|
+
"onUpdate:modelValue": L[0] || (L[0] = (R) => a.fields.name = R),
|
|
4549
4548
|
modelModifiers: { trim: !0 },
|
|
4550
4549
|
autocomplete: "off",
|
|
4551
4550
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4554,9 +4553,9 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4554
4553
|
required: "",
|
|
4555
4554
|
type: "text"
|
|
4556
4555
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4557
|
-
j(
|
|
4556
|
+
j(J, {
|
|
4558
4557
|
modelValue: a.fields.tags,
|
|
4559
|
-
"onUpdate:modelValue":
|
|
4558
|
+
"onUpdate:modelValue": L[1] || (L[1] = (R) => a.fields.tags = R),
|
|
4560
4559
|
modelModifiers: { trim: !0 },
|
|
4561
4560
|
autocomplete: "off",
|
|
4562
4561
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -4578,9 +4577,9 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4578
4577
|
title: h(r)("consumer_groups.form.consumers.title")
|
|
4579
4578
|
}, {
|
|
4580
4579
|
default: v(() => [
|
|
4581
|
-
j(
|
|
4580
|
+
j(U, {
|
|
4582
4581
|
modelValue: a.fields.consumers,
|
|
4583
|
-
"onUpdate:modelValue":
|
|
4582
|
+
"onUpdate:modelValue": L[2] || (L[2] = (R) => a.fields.consumers = R),
|
|
4584
4583
|
appearance: "select",
|
|
4585
4584
|
autosuggest: "",
|
|
4586
4585
|
"expand-selected": "",
|
|
@@ -4592,10 +4591,10 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4592
4591
|
onQueryChange: h(s)
|
|
4593
4592
|
}, {
|
|
4594
4593
|
"item-template": v(({ item: R }) => {
|
|
4595
|
-
var ge,
|
|
4594
|
+
var ge, Ce, pe;
|
|
4596
4595
|
return [
|
|
4597
|
-
|
|
4598
|
-
(ge = R == null ? void 0 : R.data) != null && ge.username && ((
|
|
4596
|
+
q("div", sl, E(R.label), 1),
|
|
4597
|
+
(ge = R == null ? void 0 : R.data) != null && ge.username && ((Ce = R == null ? void 0 : R.data) != null && Ce.custom_id) ? (f(), A("div", ll, E((pe = R == null ? void 0 : R.data) == null ? void 0 : pe.custom_id), 1)) : G("", !0)
|
|
4599
4598
|
];
|
|
4600
4599
|
}),
|
|
4601
4600
|
_: 1
|
|
@@ -4610,7 +4609,7 @@ const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4610
4609
|
};
|
|
4611
4610
|
}
|
|
4612
4611
|
});
|
|
4613
|
-
const
|
|
4612
|
+
const kl = /* @__PURE__ */ Kt(ul, [["__scopeId", "data-v-2da12897"]]), cl = { class: "kong-ui-consumer-group-entity-config-card" }, _l = /* @__PURE__ */ ie({
|
|
4614
4613
|
__name: "ConsumerGroupConfigCard",
|
|
4615
4614
|
props: {
|
|
4616
4615
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4637,7 +4636,7 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4637
4636
|
},
|
|
4638
4637
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4639
4638
|
setup(e) {
|
|
4640
|
-
const n = e, { i18n: { t } } = ct.useI18n(), r =
|
|
4639
|
+
const n = e, { i18n: { t } } = ct.useI18n(), r = $(() => Te.form[n.config.app].edit), o = F({
|
|
4641
4640
|
id: {},
|
|
4642
4641
|
name: {},
|
|
4643
4642
|
created_at: {},
|
|
@@ -4646,8 +4645,8 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4646
4645
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4647
4646
|
}
|
|
4648
4647
|
});
|
|
4649
|
-
return (a, i) => (f(), A("div",
|
|
4650
|
-
j(h(
|
|
4648
|
+
return (a, i) => (f(), A("div", cl, [
|
|
4649
|
+
j(h(ds), {
|
|
4651
4650
|
config: e.config,
|
|
4652
4651
|
"config-card-doc": e.configCardDoc,
|
|
4653
4652
|
"config-schema": o.value,
|
|
@@ -4663,7 +4662,7 @@ const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { cl
|
|
|
4663
4662
|
}
|
|
4664
4663
|
});
|
|
4665
4664
|
export {
|
|
4666
|
-
|
|
4667
|
-
|
|
4668
|
-
|
|
4665
|
+
_l as ConsumerGroupConfigCard,
|
|
4666
|
+
kl as ConsumerGroupForm,
|
|
4667
|
+
Cl as ConsumerGroupList
|
|
4669
4668
|
};
|