@kong-ui-public/entities-consumer-groups 1.2.2-pr.759.d0a1ea1c.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ie, ref as F, computed as
|
|
1
|
+
import { defineComponent as ie, ref as F, computed as T, watch as Oe, renderSlot as Z, createCommentVNode as G, unref as h, useSlots as ut, onBeforeMount as Qe, resolveComponent as N, openBlock as f, createBlock as U, createSlots as Se, withCtx as v, createElementVNode as P, createTextVNode as Q, toDisplayString as E, createVNode as j, createElementBlock as A, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as lr, resolveDynamicComponent as ze, normalizeProps as ur, guardReactiveProps as cr, mergeProps as ht, onMounted as dr, onUnmounted as pr, normalizeStyle as fr, inject as mr, pushScopeId as gr, popScopeId as yr, reactive as Lt } 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 hr from "axios";
|
|
5
|
+
import { MethodsArray as vr } from "@kong/kongponents";
|
|
6
|
+
const br = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
9
9
|
name: "Name",
|
|
@@ -95,11 +95,11 @@ const vr = {
|
|
|
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
|
+
}, Cr = {
|
|
99
|
+
consumer_groups: br
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function kr() {
|
|
102
|
+
const e = It("en-us", Cr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function Cr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: kr
|
|
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 || {}), je = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(je || {}), ne = /* @__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))(ne || {}), 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: hr.create({
|
|
147
147
|
withCredentials: !0,
|
|
148
148
|
timeout: 3e4,
|
|
149
149
|
...e
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function _r() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -162,12 +162,12 @@ function kr() {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const ft = "khcp-user-table-preferences",
|
|
165
|
+
const ft = "khcp-user-table-preferences", wr = {
|
|
166
166
|
pageSize: 30,
|
|
167
167
|
sortColumnKey: void 0,
|
|
168
168
|
sortColumnOrder: void 0
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function Ir() {
|
|
171
171
|
const e = (t) => {
|
|
172
172
|
if (typeof t == "string")
|
|
173
173
|
try {
|
|
@@ -191,17 +191,17 @@ function wr() {
|
|
|
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 || wr;
|
|
195
195
|
},
|
|
196
196
|
deleteAllTablePreferences: () => {
|
|
197
197
|
localStorage.removeItem(ft);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const xr = {
|
|
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
|
+
}, Ar = {
|
|
205
205
|
actions: {
|
|
206
206
|
save: "Save",
|
|
207
207
|
cancel: "Cancel",
|
|
@@ -210,13 +210,13 @@ const Ir = {
|
|
|
210
210
|
errors: {
|
|
211
211
|
edit: "The entity could not be edited at this time."
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Sr = {
|
|
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
|
+
}, Tr = {
|
|
220
220
|
title: "Configuration",
|
|
221
221
|
actions: {
|
|
222
222
|
copy: "Copy JSON"
|
|
@@ -251,7 +251,7 @@ const Ir = {
|
|
|
251
251
|
entryTitle: "Entry {index}",
|
|
252
252
|
structuredFormat: "Structured"
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, $r = {
|
|
255
255
|
filterButtonText: "Filter",
|
|
256
256
|
fieldLabel: "Filter by:",
|
|
257
257
|
inputPlaceholder: "Enter a value",
|
|
@@ -259,15 +259,15 @@ const Ir = {
|
|
|
259
259
|
applyButtonText: "Apply",
|
|
260
260
|
clearButtonText: "Clear",
|
|
261
261
|
clearAllButtonText: "Clear all filters"
|
|
262
|
-
},
|
|
262
|
+
}, Mr = {
|
|
263
263
|
errors: {
|
|
264
264
|
fetch: "Could not fetch available items",
|
|
265
265
|
invalid: "Please select a valid value"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Or = {
|
|
268
268
|
unexpected: "An unexpected error has occurred",
|
|
269
269
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
270
|
+
}, Er = {
|
|
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 Ir = {
|
|
|
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
|
+
}, jr = {
|
|
282
|
+
deleteModal: xr,
|
|
283
|
+
baseForm: Ar,
|
|
284
|
+
baseTable: Sr,
|
|
285
|
+
baseConfigCard: Tr,
|
|
286
|
+
filter: $r,
|
|
287
|
+
debouncedFilter: Mr,
|
|
288
|
+
errors: Or,
|
|
289
|
+
toggleModal: Er
|
|
290
290
|
};
|
|
291
291
|
function At() {
|
|
292
|
-
const e = It("en-us",
|
|
292
|
+
const e = It("en-us", jr);
|
|
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 Fr(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 } = _r(), 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 jr(e, n, t, r = {
|
|
|
319
319
|
l.value = !1;
|
|
320
320
|
}
|
|
321
321
|
}, p = F(""), C = async (y) => {
|
|
322
|
-
var w,
|
|
322
|
+
var w, V;
|
|
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 H = k + "";
|
|
328
|
+
y && (H += `/${y}`);
|
|
329
|
+
const { data: re } = await o.get(`${H}?size=${t}`);
|
|
330
|
+
r.fetchedItemsKey in re ? u.value = re[r.fetchedItemsKey] : re != null && re.id ? u.value = [re] : u.value = [];
|
|
331
|
+
} catch (H) {
|
|
332
|
+
((w = H == null ? void 0 : H.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 = (V = m.value) == null ? void 0 : V.filter((H) => {
|
|
338
|
+
var re;
|
|
339
|
+
let z = !1;
|
|
340
340
|
for (const I of r.searchKeys) {
|
|
341
|
-
const D = typeof
|
|
342
|
-
D != null && D.includes(y.toLowerCase()) && (
|
|
341
|
+
const D = typeof H[I] == "string" ? (re = H[I]) == null ? void 0 : re.toLowerCase() : H[I];
|
|
342
|
+
D != null && D.includes(y.toLowerCase()) && (z = !0);
|
|
343
343
|
}
|
|
344
|
-
return
|
|
344
|
+
return z;
|
|
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 jr(e, n, t, r = {
|
|
|
354
354
|
debouncedQueryChange: s
|
|
355
355
|
};
|
|
356
356
|
}
|
|
357
|
-
function
|
|
358
|
-
const t = h(n), r =
|
|
357
|
+
function Kr(e, n) {
|
|
358
|
+
const t = h(n), r = T(
|
|
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 Br() {
|
|
364
364
|
const { i18n: { t: e } } = At();
|
|
365
365
|
return {
|
|
366
366
|
getMessageFromError: (n) => {
|
|
@@ -389,9 +389,9 @@ function Kr() {
|
|
|
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 = T(
|
|
393
393
|
() => !!(t.value.app === "konnect" || t.value.isExactMatch)
|
|
394
|
-
), a =
|
|
394
|
+
), a = T(
|
|
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 Nr(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: je.Idle
|
|
414
414
|
});
|
|
415
415
|
return { fetcher: async (s) => {
|
|
416
416
|
try {
|
|
417
|
-
i.value = { status:
|
|
417
|
+
i.value = { status: je.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 Br(e, n, t = "data") {
|
|
|
428
428
|
} : null
|
|
429
429
|
};
|
|
430
430
|
return i.value = {
|
|
431
|
-
status:
|
|
431
|
+
status: je.Idle,
|
|
432
432
|
response: m
|
|
433
433
|
}, m;
|
|
434
434
|
} catch (l) {
|
|
@@ -437,11 +437,11 @@ function Br(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: je.NoResults,
|
|
441
441
|
response: c,
|
|
442
442
|
error: l
|
|
443
443
|
}, c) : (i.value = {
|
|
444
|
-
status:
|
|
444
|
+
status: je.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 qr() {
|
|
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
|
+
}, Pr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Ur = (e, n) => {
|
|
472
472
|
if (Pt(e) || Pt(n))
|
|
473
473
|
return 0;
|
|
474
|
-
const [t, r] =
|
|
474
|
+
const [t, r] = Pr(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 = Ur(e[t] || "0", n[t] || "0");
|
|
479
479
|
if (r !== 0)
|
|
480
480
|
return r;
|
|
481
481
|
}
|
|
482
482
|
return 0;
|
|
483
|
-
},
|
|
483
|
+
}, Vr = (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
|
+
Dr(t);
|
|
488
|
+
const r = Vr(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), Dr = (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
|
+
}, Rr = (e) => typeof e == "string" && /^[v\d]/.test(e) && fn.test(e);
|
|
503
|
+
function Gr(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 (!Rr(o))
|
|
509
509
|
return console.error("Invalid version"), !1;
|
|
510
510
|
const a = t[r];
|
|
511
511
|
if (!a)
|
|
@@ -513,27 +513,27 @@ function Rr(e) {
|
|
|
513
513
|
const [i, s] = a;
|
|
514
514
|
return !(i && Dt(o, i, "<") || s && Dt(o, s, ">"));
|
|
515
515
|
}
|
|
516
|
-
const
|
|
516
|
+
const de = {
|
|
517
517
|
useAxios: xt,
|
|
518
|
-
useDebouncedFilter:
|
|
519
|
-
useDeleteUrlBuilder:
|
|
520
|
-
useErrors:
|
|
521
|
-
useFetcher:
|
|
518
|
+
useDebouncedFilter: Fr,
|
|
519
|
+
useDeleteUrlBuilder: Kr,
|
|
520
|
+
useErrors: Br,
|
|
521
|
+
useFetcher: Nr,
|
|
522
522
|
useFetchUrlBuilder: pn,
|
|
523
523
|
useHelpers: Lr,
|
|
524
|
-
useStringHelpers:
|
|
524
|
+
useStringHelpers: qr,
|
|
525
525
|
useI18n: At,
|
|
526
|
-
useGatewayFeatureSupported:
|
|
527
|
-
},
|
|
526
|
+
useGatewayFeatureSupported: Gr
|
|
527
|
+
}, Hr = {
|
|
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
|
+
}, zr = "Copy to clipboard", Yr = {
|
|
534
|
+
message: Hr,
|
|
535
|
+
iconTitle: zr
|
|
536
|
+
}, Jr = "kong-ui-copy-uuid-notify", Wr = { class: "kong-ui-copy-uuid" }, Zr = ["onClick"], Gt = 15, Qr = /* @__PURE__ */ ie({
|
|
537
537
|
__name: "CopyUuid",
|
|
538
538
|
props: {
|
|
539
539
|
uuid: {
|
|
@@ -577,19 +577,19 @@ const ce = {
|
|
|
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", Yr), o = t.notify || mr(Jr, () => {
|
|
581
|
+
}), a = T(() => 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(() => !!(t.tooltip && t.successTooltip)), s = F(t.tooltip), l = T(() => t.tooltip ? {
|
|
588
588
|
label: s.value,
|
|
589
589
|
positionFixed: !0,
|
|
590
590
|
maxWidth: "500px",
|
|
591
591
|
placement: "bottomStart"
|
|
592
|
-
} : {}), c =
|
|
592
|
+
} : {}), c = T(() => 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 ce = {
|
|
|
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", Wr, [
|
|
613
|
+
e.format !== "hidden" ? (f(), U(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
614
614
|
default: v(() => [
|
|
615
|
-
|
|
616
|
-
class:
|
|
615
|
+
P("div", {
|
|
616
|
+
class: Ke([
|
|
617
617
|
"uuid-container",
|
|
618
618
|
e.truncated ? "truncated-uuid" : null,
|
|
619
619
|
e.useMono ? "mono" : null
|
|
@@ -622,11 +622,11 @@ const ce = {
|
|
|
622
622
|
]),
|
|
623
623
|
_: 1
|
|
624
624
|
}, 16)) : G("", !0),
|
|
625
|
-
(f(),
|
|
625
|
+
(f(), U(ze(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
|
+
P("span", {
|
|
630
630
|
"data-testid": "copy-to-clipboard",
|
|
631
631
|
role: "button",
|
|
632
632
|
tabindex: "0",
|
|
@@ -640,7 +640,7 @@ const ce = {
|
|
|
640
640
|
size: "16",
|
|
641
641
|
title: h(r)("iconTitle")
|
|
642
642
|
}, null, 8, ["color", "hide-title", "title"])
|
|
643
|
-
], 8,
|
|
643
|
+
], 8, Zr)
|
|
644
644
|
]),
|
|
645
645
|
_: 1
|
|
646
646
|
})
|
|
@@ -650,15 +650,15 @@ const ce = {
|
|
|
650
650
|
]);
|
|
651
651
|
};
|
|
652
652
|
}
|
|
653
|
-
}),
|
|
653
|
+
}), Xr = (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__ */ Qr
|
|
658
|
+
}, gn = /* @__PURE__ */ Xr(Qr, [["__scopeId", "data-v-bfdaf6f7"]]), eo = {
|
|
659
659
|
key: 0,
|
|
660
660
|
class: "config-card-fieldset-title"
|
|
661
|
-
},
|
|
661
|
+
}, to = /* @__PURE__ */ ie({
|
|
662
662
|
__name: "JsonCardItem",
|
|
663
663
|
props: {
|
|
664
664
|
item: {
|
|
@@ -675,21 +675,21 @@ const ce = {
|
|
|
675
675
|
}
|
|
676
676
|
},
|
|
677
677
|
setup(e) {
|
|
678
|
-
const n = e, { i18n: { t } } =
|
|
678
|
+
const n = e, { i18n: { t } } = de.useI18n(), { convertKeyToTitle: r } = de.useStringHelpers(), o = T(() => n.item.key ?? "json-array-item"), a = T(() => n.item.value ?? n.item), i = T(() => {
|
|
679
679
|
const l = JSON.parse(JSON.stringify(a.value));
|
|
680
680
|
return n.isArrayItem && delete l.name, l;
|
|
681
|
-
}), s =
|
|
681
|
+
}), s = T(() => {
|
|
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(), U(ze(e.isArrayItem ? "fieldset" : "div"), {
|
|
686
|
+
class: Ke(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", eo, [
|
|
690
|
+
P("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(), U(St, {
|
|
693
693
|
key: `${o.value}-property-${u}`,
|
|
694
694
|
item: {
|
|
695
695
|
key: d,
|
|
@@ -701,12 +701,12 @@ const ce = {
|
|
|
701
701
|
_: 1
|
|
702
702
|
}, 8, ["class"]));
|
|
703
703
|
}
|
|
704
|
-
}),
|
|
704
|
+
}), ke = (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__ */ ke(to, [["__scopeId", "data-v-68ca83ec"]]), no = /* @__PURE__ */ ie({
|
|
710
710
|
__name: "InternalLinkItem",
|
|
711
711
|
props: {
|
|
712
712
|
item: {
|
|
@@ -716,7 +716,7 @@ const ce = {
|
|
|
716
716
|
},
|
|
717
717
|
emits: ["navigation-click"],
|
|
718
718
|
setup(e) {
|
|
719
|
-
const { i18n: { t: n } } =
|
|
719
|
+
const { i18n: { t: n } } = de.useI18n();
|
|
720
720
|
return (t, r) => {
|
|
721
721
|
const o = N("KButton");
|
|
722
722
|
return f(), A("div", null, [
|
|
@@ -726,14 +726,14 @@ const ce = {
|
|
|
726
726
|
onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
|
|
727
727
|
}, {
|
|
728
728
|
default: v(() => [
|
|
729
|
-
|
|
729
|
+
Q(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
|
+
}), ro = /* @__PURE__ */ ke(no, [["__scopeId", "data-v-7410504d"]]), oo = /* @__PURE__ */ ie({
|
|
737
737
|
__name: "StatusBadge",
|
|
738
738
|
props: {
|
|
739
739
|
status: {
|
|
@@ -742,24 +742,24 @@ const ce = {
|
|
|
742
742
|
}
|
|
743
743
|
},
|
|
744
744
|
setup(e) {
|
|
745
|
-
const { i18n: { t: n } } =
|
|
745
|
+
const { i18n: { t: n } } = de.useI18n();
|
|
746
746
|
return (t, r) => {
|
|
747
747
|
const o = N("KBadge");
|
|
748
|
-
return f(),
|
|
748
|
+
return f(), U(o, {
|
|
749
749
|
appearance: e.status ? "success" : "neutral"
|
|
750
750
|
}, {
|
|
751
751
|
default: v(() => [
|
|
752
|
-
|
|
752
|
+
Q(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
|
+
}), ao = "#0044f4", io = "#e0e4ea", so = "#3a3f51", lo = "1px", uo = "20px", co = { class: "config-card-details-row" }, po = ["data-testid"], fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = { key: 1 }, ho = ["data-testid"], vo = ["data-testid"], bo = ["data-testid"], Co = ["data-testid"], ko = ["title"], _o = {
|
|
759
759
|
name: "ConfigCardItem",
|
|
760
|
-
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge:
|
|
761
|
-
},
|
|
762
|
-
...
|
|
760
|
+
components: { CopyUuid: gn, JsonCardItem: yn, StatusBadge: oo, InternalLinkItem: ro }
|
|
761
|
+
}, wo = /* @__PURE__ */ ie({
|
|
762
|
+
..._o,
|
|
763
763
|
props: {
|
|
764
764
|
item: {
|
|
765
765
|
type: Object,
|
|
@@ -779,15 +779,15 @@ const ce = {
|
|
|
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
|
+
lr((u) => ({
|
|
783
|
+
"2c6ac268": c.value ? "none" : `solid ${h(lo)} ${h(io)}`,
|
|
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 } } = de.useI18n(), i = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = T(() => !!(t.item.tooltip || r["label-tooltip"])), l = T(() => t.item.type === ne.Json || t.item.type === ne.JsonArray), c = T(() => t.item.type === ne.JsonArray), d = T(() => {
|
|
789
789
|
switch (t.item.type) {
|
|
790
|
-
case
|
|
790
|
+
case ne.ID:
|
|
791
791
|
return {
|
|
792
792
|
tag: "CopyUuid",
|
|
793
793
|
attrs: {
|
|
@@ -800,7 +800,7 @@ const ce = {
|
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
802
|
};
|
|
803
|
-
case
|
|
803
|
+
case ne.IdArray:
|
|
804
804
|
return {
|
|
805
805
|
tag: "div",
|
|
806
806
|
additionalComponent: "CopyUuid",
|
|
@@ -812,7 +812,7 @@ const ce = {
|
|
|
812
812
|
}
|
|
813
813
|
}
|
|
814
814
|
};
|
|
815
|
-
case
|
|
815
|
+
case ne.Redacted:
|
|
816
816
|
return {
|
|
817
817
|
tag: "CopyUuid",
|
|
818
818
|
attrs: {
|
|
@@ -826,7 +826,7 @@ const ce = {
|
|
|
826
826
|
}
|
|
827
827
|
}
|
|
828
828
|
};
|
|
829
|
-
case
|
|
829
|
+
case ne.RedactedArray:
|
|
830
830
|
return {
|
|
831
831
|
tag: "div",
|
|
832
832
|
additionalComponent: "CopyUuid",
|
|
@@ -839,7 +839,7 @@ const ce = {
|
|
|
839
839
|
}
|
|
840
840
|
}
|
|
841
841
|
};
|
|
842
|
-
case
|
|
842
|
+
case ne.Date:
|
|
843
843
|
return {
|
|
844
844
|
tag: "div",
|
|
845
845
|
attrs: {
|
|
@@ -847,7 +847,7 @@ const ce = {
|
|
|
847
847
|
},
|
|
848
848
|
text: a(t.item.value)
|
|
849
849
|
};
|
|
850
|
-
case
|
|
850
|
+
case ne.BadgeStatus:
|
|
851
851
|
return {
|
|
852
852
|
tag: "StatusBadge",
|
|
853
853
|
attrs: {
|
|
@@ -855,17 +855,17 @@ const ce = {
|
|
|
855
855
|
status: t.item.value
|
|
856
856
|
}
|
|
857
857
|
};
|
|
858
|
-
case
|
|
858
|
+
case ne.BadgeTag:
|
|
859
859
|
return {
|
|
860
860
|
tag: "div",
|
|
861
861
|
additionalComponent: "KBadge"
|
|
862
862
|
};
|
|
863
|
-
case
|
|
863
|
+
case ne.BadgeMethod:
|
|
864
864
|
return {
|
|
865
865
|
tag: "div",
|
|
866
866
|
additionalComponent: "KMethodBadge"
|
|
867
867
|
};
|
|
868
|
-
case
|
|
868
|
+
case ne.LinkInternal:
|
|
869
869
|
return {
|
|
870
870
|
tag: "InternalLinkItem",
|
|
871
871
|
attrs: {
|
|
@@ -876,7 +876,7 @@ const ce = {
|
|
|
876
876
|
}
|
|
877
877
|
}
|
|
878
878
|
};
|
|
879
|
-
case
|
|
879
|
+
case ne.LinkExternal:
|
|
880
880
|
return {
|
|
881
881
|
tag: "KExternalLink",
|
|
882
882
|
attrs: {
|
|
@@ -885,7 +885,7 @@ const ce = {
|
|
|
885
885
|
},
|
|
886
886
|
text: t.item.value
|
|
887
887
|
};
|
|
888
|
-
case
|
|
888
|
+
case ne.Json:
|
|
889
889
|
return {
|
|
890
890
|
tag: "JsonCardItem",
|
|
891
891
|
attrs: {
|
|
@@ -893,7 +893,7 @@ const ce = {
|
|
|
893
893
|
item: t.item
|
|
894
894
|
}
|
|
895
895
|
};
|
|
896
|
-
case
|
|
896
|
+
case ne.JsonArray:
|
|
897
897
|
return {
|
|
898
898
|
tag: "div",
|
|
899
899
|
additionalComponent: "JsonCardItem",
|
|
@@ -914,150 +914,150 @@ const ce = {
|
|
|
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", co, [
|
|
918
|
+
P("div", {
|
|
919
919
|
class: "config-card-details-label",
|
|
920
920
|
"data-testid": `${e.item.key}-label`
|
|
921
921
|
}, [
|
|
922
|
-
|
|
922
|
+
Z(u.$slots, "label", { item: e.item }, () => [
|
|
923
923
|
j(g, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
|
|
924
924
|
default: v(() => [
|
|
925
|
-
|
|
925
|
+
Q(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
|
+
P("div", {
|
|
933
933
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
934
934
|
}, [
|
|
935
|
-
|
|
936
|
-
|
|
935
|
+
Z(u.$slots, "label-tooltip", {}, () => [
|
|
936
|
+
Q(E(e.item.tooltip), 1)
|
|
937
937
|
], !0)
|
|
938
|
-
], 8,
|
|
938
|
+
], 8, fo)
|
|
939
939
|
]),
|
|
940
940
|
key: "0"
|
|
941
941
|
} : void 0
|
|
942
942
|
]), 1024)
|
|
943
943
|
], !0)
|
|
944
|
-
], 8,
|
|
945
|
-
|
|
944
|
+
], 8, po),
|
|
945
|
+
P("div", {
|
|
946
946
|
class: "config-card-details-value",
|
|
947
947
|
"data-testid": `${e.item.key}-property-value`
|
|
948
948
|
}, [
|
|
949
|
-
|
|
949
|
+
Z(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", yo, [
|
|
953
|
+
(f(), U(ze(d.value.tag), ur(cr(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(), U(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
|
+
Q(E(p), 1)
|
|
967
967
|
]),
|
|
968
968
|
_: 2
|
|
969
969
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
970
|
-
], 8,
|
|
970
|
+
], 8, ho)) : 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(), U(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, vo)) : 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(), U(_, {
|
|
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(vr).includes(p.toLowerCase()) ? p.toLowerCase() : "custom"
|
|
993
993
|
}, {
|
|
994
994
|
default: v(() => [
|
|
995
|
-
|
|
995
|
+
Q(E(p), 1)
|
|
996
996
|
]),
|
|
997
997
|
_: 2
|
|
998
998
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
999
|
-
], 8,
|
|
999
|
+
], 8, bo)) : 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(), U(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, Co)) : (f(), A("span", {
|
|
1011
1011
|
key: 4,
|
|
1012
|
-
class:
|
|
1012
|
+
class: Ke(["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, ko))
|
|
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, go))
|
|
1022
1022
|
], !0)
|
|
1023
|
-
], 8,
|
|
1023
|
+
], 8, mo)
|
|
1024
1024
|
]);
|
|
1025
1025
|
};
|
|
1026
1026
|
}
|
|
1027
|
-
}), St = /* @__PURE__ */
|
|
1027
|
+
}), St = /* @__PURE__ */ ke(wo, [["__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 Io(e) {
|
|
1033
1033
|
return typeof e == "object" && e !== null;
|
|
1034
1034
|
}
|
|
1035
|
-
function
|
|
1035
|
+
function xo(e) {
|
|
1036
1036
|
return Array.isArray(e) ? e : hn(e) ? [] : [e];
|
|
1037
1037
|
}
|
|
1038
|
-
function
|
|
1038
|
+
function Ao(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 So(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 To(e) {
|
|
1052
1052
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1053
1053
|
}
|
|
1054
|
-
var
|
|
1055
|
-
isNothing:
|
|
1056
|
-
isObject:
|
|
1057
|
-
toArray:
|
|
1058
|
-
repeat:
|
|
1059
|
-
isNegativeZero:
|
|
1060
|
-
extend:
|
|
1054
|
+
var $o = hn, Mo = Io, Oo = xo, Eo = So, jo = To, Fo = Ao, le = {
|
|
1055
|
+
isNothing: $o,
|
|
1056
|
+
isObject: Mo,
|
|
1057
|
+
toArray: Oo,
|
|
1058
|
+
repeat: Eo,
|
|
1059
|
+
isNegativeZero: jo,
|
|
1060
|
+
extend: Fo
|
|
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 Ye(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
|
+
Ye.prototype = Object.create(Error.prototype);
|
|
1072
|
+
Ye.prototype.constructor = Ye;
|
|
1073
|
+
Ye.prototype.toString = function(e) {
|
|
1074
1074
|
return this.name + ": " + vn(this, e);
|
|
1075
1075
|
};
|
|
1076
|
-
var me =
|
|
1076
|
+
var me = Ye;
|
|
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 le.repeat(" ", n - e.length) + e;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1088
|
+
function Ko(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 Fo(e, n) {
|
|
|
1100
1100
|
o[i - l],
|
|
1101
1101
|
e.position - (r[i] - r[i - l]),
|
|
1102
1102
|
u
|
|
1103
|
-
), s =
|
|
1103
|
+
), s = le.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 += le.repeat(" ", n.indent) + gt((e.line + 1).toString(), d) + " | " + c.str + `
|
|
1106
|
+
`, s += le.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 Fo(e, n) {
|
|
|
1111
1111
|
o[i + l],
|
|
1112
1112
|
e.position - (r[i] - r[i + l]),
|
|
1113
1113
|
u
|
|
1114
|
-
), s +=
|
|
1114
|
+
), s += le.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 Bo = Ko, No = [
|
|
1119
1119
|
"kind",
|
|
1120
1120
|
"multi",
|
|
1121
1121
|
"resolve",
|
|
@@ -1131,7 +1131,7 @@ var Ko = Fo, Bo = [
|
|
|
1131
1131
|
"sequence",
|
|
1132
1132
|
"mapping"
|
|
1133
1133
|
];
|
|
1134
|
-
function
|
|
1134
|
+
function qo(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 No(e) {
|
|
|
1139
1139
|
});
|
|
1140
1140
|
}), n;
|
|
1141
1141
|
}
|
|
1142
|
-
function
|
|
1142
|
+
function Po(e, n) {
|
|
1143
1143
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1144
|
-
if (
|
|
1144
|
+
if (No.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 = qo(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 pe = Po;
|
|
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 Uo() {
|
|
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 pe)
|
|
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 pe))
|
|
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 pe))
|
|
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 = Uo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1209
1209
|
};
|
|
1210
|
-
var bn = vt, Cn = new
|
|
1210
|
+
var bn = vt, Cn = new pe("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 pe("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 pe("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 de("tag:yaml.org,2002:str", {
|
|
|
1229
1229
|
_n
|
|
1230
1230
|
]
|
|
1231
1231
|
});
|
|
1232
|
-
function
|
|
1232
|
+
function Vo(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 Do() {
|
|
1239
1239
|
return null;
|
|
1240
1240
|
}
|
|
1241
|
-
function
|
|
1241
|
+
function Ro(e) {
|
|
1242
1242
|
return e === null;
|
|
1243
1243
|
}
|
|
1244
|
-
var In = new
|
|
1244
|
+
var In = new pe("tag:yaml.org,2002:null", {
|
|
1245
1245
|
kind: "scalar",
|
|
1246
|
-
resolve:
|
|
1247
|
-
construct:
|
|
1248
|
-
predicate:
|
|
1246
|
+
resolve: Vo,
|
|
1247
|
+
construct: Do,
|
|
1248
|
+
predicate: Ro,
|
|
1249
1249
|
represent: {
|
|
1250
1250
|
canonical: function() {
|
|
1251
1251
|
return "~";
|
|
@@ -1265,23 +1265,23 @@ var In = new de("tag:yaml.org,2002:null", {
|
|
|
1265
1265
|
},
|
|
1266
1266
|
defaultStyle: "lowercase"
|
|
1267
1267
|
});
|
|
1268
|
-
function
|
|
1268
|
+
function Go(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 Ho(e) {
|
|
1275
1275
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1276
1276
|
}
|
|
1277
|
-
function
|
|
1277
|
+
function zo(e) {
|
|
1278
1278
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1279
1279
|
}
|
|
1280
|
-
var xn = new
|
|
1280
|
+
var xn = new pe("tag:yaml.org,2002:bool", {
|
|
1281
1281
|
kind: "scalar",
|
|
1282
|
-
resolve:
|
|
1283
|
-
construct:
|
|
1284
|
-
predicate:
|
|
1282
|
+
resolve: Go,
|
|
1283
|
+
construct: Ho,
|
|
1284
|
+
predicate: zo,
|
|
1285
1285
|
represent: {
|
|
1286
1286
|
lowercase: function(e) {
|
|
1287
1287
|
return e ? "true" : "false";
|
|
@@ -1295,16 +1295,16 @@ var xn = new de("tag:yaml.org,2002:bool", {
|
|
|
1295
1295
|
},
|
|
1296
1296
|
defaultStyle: "lowercase"
|
|
1297
1297
|
});
|
|
1298
|
-
function
|
|
1298
|
+
function Yo(e) {
|
|
1299
1299
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1300
1300
|
}
|
|
1301
|
-
function
|
|
1301
|
+
function Jo(e) {
|
|
1302
1302
|
return 48 <= e && e <= 55;
|
|
1303
1303
|
}
|
|
1304
|
-
function
|
|
1304
|
+
function Wo(e) {
|
|
1305
1305
|
return 48 <= e && e <= 57;
|
|
1306
1306
|
}
|
|
1307
|
-
function
|
|
1307
|
+
function Zo(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 Wo(e) {
|
|
|
1325
1325
|
if (o === "x") {
|
|
1326
1326
|
for (t++; t < n; t++)
|
|
1327
1327
|
if (o = e[t], o !== "_") {
|
|
1328
|
-
if (!
|
|
1328
|
+
if (!Yo(e.charCodeAt(t)))
|
|
1329
1329
|
return !1;
|
|
1330
1330
|
r = !0;
|
|
1331
1331
|
}
|
|
@@ -1334,7 +1334,7 @@ function Wo(e) {
|
|
|
1334
1334
|
if (o === "o") {
|
|
1335
1335
|
for (t++; t < n; t++)
|
|
1336
1336
|
if (o = e[t], o !== "_") {
|
|
1337
|
-
if (!
|
|
1337
|
+
if (!Jo(e.charCodeAt(t)))
|
|
1338
1338
|
return !1;
|
|
1339
1339
|
r = !0;
|
|
1340
1340
|
}
|
|
@@ -1345,13 +1345,13 @@ function Wo(e) {
|
|
|
1345
1345
|
return !1;
|
|
1346
1346
|
for (; t < n; t++)
|
|
1347
1347
|
if (o = e[t], o !== "_") {
|
|
1348
|
-
if (!
|
|
1348
|
+
if (!Wo(e.charCodeAt(t)))
|
|
1349
1349
|
return !1;
|
|
1350
1350
|
r = !0;
|
|
1351
1351
|
}
|
|
1352
1352
|
return !(!r || o === "_");
|
|
1353
1353
|
}
|
|
1354
|
-
function
|
|
1354
|
+
function Qo(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 Zo(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 Xo(e) {
|
|
1369
|
+
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !le.isNegativeZero(e);
|
|
1370
1370
|
}
|
|
1371
|
-
var An = new
|
|
1371
|
+
var An = new pe("tag:yaml.org,2002:int", {
|
|
1372
1372
|
kind: "scalar",
|
|
1373
|
-
resolve:
|
|
1374
|
-
construct:
|
|
1375
|
-
predicate:
|
|
1373
|
+
resolve: Zo,
|
|
1374
|
+
construct: Qo,
|
|
1375
|
+
predicate: Xo,
|
|
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 de("tag:yaml.org,2002:int", {
|
|
|
1395
1395
|
decimal: [10, "dec"],
|
|
1396
1396
|
hexadecimal: [16, "hex"]
|
|
1397
1397
|
}
|
|
1398
|
-
}),
|
|
1398
|
+
}), ea = 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 ta(e) {
|
|
1403
|
+
return !(e === null || !ea.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 na(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 ra = /^[-+]?[0-9]+e/;
|
|
1412
|
+
function oa(e, n) {
|
|
1413
1413
|
var t;
|
|
1414
1414
|
if (isNaN(e))
|
|
1415
1415
|
switch (n) {
|
|
@@ -1438,19 +1438,19 @@ function ra(e, n) {
|
|
|
1438
1438
|
case "camelcase":
|
|
1439
1439
|
return "-.Inf";
|
|
1440
1440
|
}
|
|
1441
|
-
else if (
|
|
1441
|
+
else if (le.isNegativeZero(e))
|
|
1442
1442
|
return "-0.0";
|
|
1443
|
-
return t = e.toString(10),
|
|
1443
|
+
return t = e.toString(10), ra.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 aa(e) {
|
|
1446
|
+
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || le.isNegativeZero(e));
|
|
1447
1447
|
}
|
|
1448
|
-
var Sn = new
|
|
1448
|
+
var Sn = new pe("tag:yaml.org,2002:float", {
|
|
1449
1449
|
kind: "scalar",
|
|
1450
|
-
resolve:
|
|
1451
|
-
construct:
|
|
1452
|
-
predicate:
|
|
1453
|
-
represent:
|
|
1450
|
+
resolve: ta,
|
|
1451
|
+
construct: na,
|
|
1452
|
+
predicate: aa,
|
|
1453
|
+
represent: oa,
|
|
1454
1454
|
defaultStyle: "lowercase"
|
|
1455
1455
|
}), Tn = wn.extend({
|
|
1456
1456
|
implicit: [
|
|
@@ -1464,10 +1464,10 @@ var Sn = new de("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 ia(e) {
|
|
1468
1468
|
return e === null ? !1 : Mn.exec(e) !== null || On.exec(e) !== null;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function sa(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 ia(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 la(e) {
|
|
1484
1484
|
return e.toISOString();
|
|
1485
1485
|
}
|
|
1486
|
-
var En = new
|
|
1486
|
+
var En = new pe("tag:yaml.org,2002:timestamp", {
|
|
1487
1487
|
kind: "scalar",
|
|
1488
|
-
resolve:
|
|
1489
|
-
construct:
|
|
1488
|
+
resolve: ia,
|
|
1489
|
+
construct: sa,
|
|
1490
1490
|
instanceOf: Date,
|
|
1491
|
-
represent:
|
|
1491
|
+
represent: la
|
|
1492
1492
|
});
|
|
1493
|
-
function
|
|
1493
|
+
function ua(e) {
|
|
1494
1494
|
return e === "<<" || e === null;
|
|
1495
1495
|
}
|
|
1496
|
-
var jn = new
|
|
1496
|
+
var jn = new pe("tag:yaml.org,2002:merge", {
|
|
1497
1497
|
kind: "scalar",
|
|
1498
|
-
resolve:
|
|
1498
|
+
resolve: ua
|
|
1499
1499
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1500
1500
|
\r`;
|
|
1501
|
-
function
|
|
1501
|
+
function ca(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 ua(e) {
|
|
|
1510
1510
|
}
|
|
1511
1511
|
return r % 8 === 0;
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function da(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 pa(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 fa(e) {
|
|
1526
1526
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1527
1527
|
}
|
|
1528
|
-
var Fn = new
|
|
1528
|
+
var Fn = new pe("tag:yaml.org,2002:binary", {
|
|
1529
1529
|
kind: "scalar",
|
|
1530
|
-
resolve:
|
|
1531
|
-
construct:
|
|
1532
|
-
predicate:
|
|
1533
|
-
represent:
|
|
1534
|
-
}),
|
|
1535
|
-
function
|
|
1530
|
+
resolve: ca,
|
|
1531
|
+
construct: da,
|
|
1532
|
+
predicate: fa,
|
|
1533
|
+
represent: pa
|
|
1534
|
+
}), ma = Object.prototype.hasOwnProperty, ga = Object.prototype.toString;
|
|
1535
|
+
function ya(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, ga.call(o) !== "[object Object]")
|
|
1541
1541
|
return !1;
|
|
1542
1542
|
for (a in o)
|
|
1543
|
-
if (
|
|
1543
|
+
if (ma.call(o, a))
|
|
1544
1544
|
if (!i)
|
|
1545
1545
|
i = !0;
|
|
1546
1546
|
else
|
|
@@ -1554,26 +1554,26 @@ function ga(e) {
|
|
|
1554
1554
|
}
|
|
1555
1555
|
return !0;
|
|
1556
1556
|
}
|
|
1557
|
-
function
|
|
1557
|
+
function ha(e) {
|
|
1558
1558
|
return e !== null ? e : [];
|
|
1559
1559
|
}
|
|
1560
|
-
var Kn = new
|
|
1560
|
+
var Kn = new pe("tag:yaml.org,2002:omap", {
|
|
1561
1561
|
kind: "sequence",
|
|
1562
|
-
resolve:
|
|
1563
|
-
construct:
|
|
1564
|
-
}),
|
|
1565
|
-
function
|
|
1562
|
+
resolve: ya,
|
|
1563
|
+
construct: ha
|
|
1564
|
+
}), va = Object.prototype.toString;
|
|
1565
|
+
function ba(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], va.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 Ca(e) {
|
|
1577
1577
|
if (e === null)
|
|
1578
1578
|
return [];
|
|
1579
1579
|
var n, t, r, o, a, i = e;
|
|
@@ -1581,27 +1581,27 @@ function ba(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 pe("tag:yaml.org,2002:pairs", {
|
|
1585
1585
|
kind: "sequence",
|
|
1586
|
-
resolve:
|
|
1587
|
-
construct:
|
|
1588
|
-
}),
|
|
1589
|
-
function
|
|
1586
|
+
resolve: ba,
|
|
1587
|
+
construct: Ca
|
|
1588
|
+
}), ka = Object.prototype.hasOwnProperty;
|
|
1589
|
+
function _a(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 (ka.call(t, n) && t[n] !== null)
|
|
1595
1595
|
return !1;
|
|
1596
1596
|
return !0;
|
|
1597
1597
|
}
|
|
1598
|
-
function
|
|
1598
|
+
function wa(e) {
|
|
1599
1599
|
return e !== null ? e : {};
|
|
1600
1600
|
}
|
|
1601
|
-
var
|
|
1601
|
+
var Nn = new pe("tag:yaml.org,2002:set", {
|
|
1602
1602
|
kind: "mapping",
|
|
1603
|
-
resolve:
|
|
1604
|
-
construct:
|
|
1603
|
+
resolve: _a,
|
|
1604
|
+
construct: wa
|
|
1605
1605
|
}), $t = $n.extend({
|
|
1606
1606
|
implicit: [
|
|
1607
1607
|
En,
|
|
@@ -1611,16 +1611,16 @@ var Ln = new de("tag:yaml.org,2002:set", {
|
|
|
1611
1611
|
Fn,
|
|
1612
1612
|
Kn,
|
|
1613
1613
|
Bn,
|
|
1614
|
-
|
|
1614
|
+
Nn
|
|
1615
1615
|
]
|
|
1616
|
-
}), Me = Object.prototype.hasOwnProperty, ot = 1,
|
|
1616
|
+
}), Me = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, qn = 3, at = 4, yt = 1, Ia = 2, zt = 3, xa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Aa = /[\x85\u2028\u2029]/, Sa = /[,\[\]\{\}]/, 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 Fe(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 Ta(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 $a(e) {
|
|
1637
1637
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1638
1638
|
}
|
|
1639
|
-
function
|
|
1639
|
+
function Ma(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 Oa(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 Le = 0; Le < 256; Le++)
|
|
1654
|
+
Vn[Le] = Jt(Le) ? 1 : 0, Dn[Le] = Jt(Le);
|
|
1655
|
+
function Ea(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 = Bo(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
|
+
xa.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 (le.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 (; Fe(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 += le.repeat(`
|
|
1753
1753
|
`, n - 1));
|
|
1754
1754
|
}
|
|
1755
|
-
function
|
|
1755
|
+
function ja(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 Ea(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), Fe(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 Fa(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 ja(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 Ka(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 Fa(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 = $a(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 = Ta(s)) >= 0 ? a = (a << 4) + i : S(e, "expected hexadecimal character");
|
|
1811
|
+
e.result += Oa(a), e.position++;
|
|
1812
1812
|
} else
|
|
1813
1813
|
S(e, "unknown escape sequence");
|
|
1814
1814
|
t = r = e.position;
|
|
@@ -1817,7 +1817,7 @@ function Fa(e, n) {
|
|
|
1817
1817
|
}
|
|
1818
1818
|
S(e, "unexpected end of the stream within a double quoted scalar");
|
|
1819
1819
|
}
|
|
1820
|
-
function
|
|
1820
|
+
function Ba(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 Ka(e, n) {
|
|
|
1832
1832
|
}
|
|
1833
1833
|
S(e, "unexpected end of the stream within a flow collection");
|
|
1834
1834
|
}
|
|
1835
|
-
function
|
|
1835
|
+
function Na(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 Ba(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 : Ia : S(e, "repeat of a chomping mode identifier");
|
|
1846
|
+
else if ((d = Ma(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 (Fe(u)) {
|
|
1851
1851
|
do
|
|
1852
1852
|
u = e.input.charCodeAt(++e.position);
|
|
1853
|
-
while (
|
|
1853
|
+
while (Fe(u));
|
|
1854
1854
|
if (u === 35)
|
|
1855
1855
|
do
|
|
1856
1856
|
u = e.input.charCodeAt(++e.position);
|
|
@@ -1864,15 +1864,15 @@ function Ba(e, n) {
|
|
|
1864
1864
|
continue;
|
|
1865
1865
|
}
|
|
1866
1866
|
if (e.lineIndent < s) {
|
|
1867
|
-
o === zt ? e.result +=
|
|
1867
|
+
o === zt ? e.result += le.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 ? Fe(u) ? (c = !0, e.result += le.repeat(`
|
|
1873
|
+
`, a ? 1 + l : l)) : c ? (c = !1, e.result += le.repeat(`
|
|
1874
|
+
`, l + 1)) : l === 0 ? a && (e.result += " ") : e.result += le.repeat(`
|
|
1875
|
+
`, l) : e.result += le.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, Ln, !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); Fe(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 qa(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 Na(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), Sa.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 Na(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 Pa(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 qa(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 Ua(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 Pa(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 (; qa(e) || Pa(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 || Ln === t ? _ = n : _ = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || La(e, p, _)) || Ba(e, _) ? d = !0 : (i && Na(e, _) || Fa(e, _) || Ka(e, _) ? d = !0 : Ua(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && S(e, "alias node should not have any properties")) : ja(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 Va(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 (; Fe(i); )
|
|
2000
2000
|
i = e.input.charCodeAt(++e.position);
|
|
2001
2001
|
if (i === 35) {
|
|
2002
2002
|
do
|
|
@@ -2012,7 +2012,7 @@ function Ua(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 && Aa.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 Ua(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 Ea(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
|
+
Va(t);
|
|
2032
2032
|
return t.documents;
|
|
2033
2033
|
}
|
|
2034
|
-
function
|
|
2034
|
+
function Da(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 Va(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 Ra(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 Da(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 Ga = Da, Ha = Ra, Hn = {
|
|
2051
|
+
loadAll: Ga,
|
|
2052
|
+
load: Ha
|
|
2053
|
+
}, zn = Object.prototype.toString, Yn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, Je = 10, Ya = 13, Ja = 32, Wa = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Jn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Wn = 91, Zn = 93, si = 96, Qn = 123, li = 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 ui = [
|
|
2070
2070
|
"y",
|
|
2071
2071
|
"Y",
|
|
2072
2072
|
"yes",
|
|
@@ -2083,8 +2083,8 @@ var li = [
|
|
|
2083
2083
|
"off",
|
|
2084
2084
|
"Off",
|
|
2085
2085
|
"OFF"
|
|
2086
|
-
],
|
|
2087
|
-
function
|
|
2086
|
+
], ci = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2087
|
+
function di(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 ci(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 pi(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 di(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 + le.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 fi = 1, We = 2;
|
|
2108
|
+
function mi(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 = le.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = di(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 === '"' ? We : fi, 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 = le.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
|
+
` + le.repeat(" ", e.indent * n);
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2122
|
+
function gi(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 mi(e, n) {
|
|
|
2127
2127
|
return !1;
|
|
2128
2128
|
}
|
|
2129
2129
|
function lt(e) {
|
|
2130
|
-
return e ===
|
|
2130
|
+
return e === Ja || e === za;
|
|
2131
2131
|
}
|
|
2132
|
-
function
|
|
2132
|
+
function Ze(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 Ze(e) && e !== Et && e !== Ya && e !== Je;
|
|
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 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
|
-
}
|
|
2151
2148
|
function yi(e) {
|
|
2149
|
+
return Ze(e) && e !== Et && !lt(e) && e !== ni && e !== ai && e !== st && e !== Jn && e !== Wn && e !== Zn && e !== Qn && e !== Xn && e !== bt && e !== Xa && e !== ti && e !== Wa && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
|
|
2150
|
+
}
|
|
2151
|
+
function hi(e) {
|
|
2152
2152
|
return !lt(e) && e !== st;
|
|
2153
2153
|
}
|
|
2154
|
-
function
|
|
2154
|
+
function He(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 vi(e, n, t, r, o, a, i, s) {
|
|
2164
|
+
var l, c = 0, d = null, u = !1, m = !1, g = r !== -1, k = -1, _ = yi(He(e, 0)) && hi(He(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 = He(e, l), !Ze(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 = He(e, l), c === Je)
|
|
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 (!Ze(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 === We ? qe : kt : t > 9 && er(e) ? qe : i ? a === We ? qe : kt : m ? rr : nr;
|
|
2183
2183
|
}
|
|
2184
|
-
function
|
|
2184
|
+
function bi(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 === We ? '""' : "''";
|
|
2188
|
+
if (!e.noCompatMode && (ui.indexOf(n) !== -1 || ci.test(n)))
|
|
2189
|
+
return e.quotingType === We ? '"' + 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 gi(e, c);
|
|
2193
2193
|
}
|
|
2194
|
-
switch (
|
|
2194
|
+
switch (vi(
|
|
2195
2195
|
n,
|
|
2196
2196
|
s,
|
|
2197
2197
|
e.indent,
|
|
@@ -2208,9 +2208,9 @@ function vi(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(Ci(n, i), a));
|
|
2212
2212
|
case qe:
|
|
2213
|
-
return '"' +
|
|
2213
|
+
return '"' + ki(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 Ci(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 ki(e) {
|
|
2255
2255
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2256
|
-
t =
|
|
2256
|
+
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
|
|
2257
2257
|
return n;
|
|
2258
2258
|
}
|
|
2259
|
-
function
|
|
2259
|
+
function _i(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 ki(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 && Je === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2269
2269
|
e.tag = a, e.dump = o || "[]";
|
|
2270
2270
|
}
|
|
2271
|
-
function
|
|
2271
|
+
function wi(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 Ii(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 wi(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 && Je === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += Ct(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && Je === 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 ? (Ii(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (wi(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)) : (_i(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2318
2318
|
else if (s === "[object String]")
|
|
2319
|
-
e.tag !== "?" &&
|
|
2319
|
+
e.tag !== "?" && bi(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 xi(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 Ai(e, n) {
|
|
2350
2350
|
n = n || {};
|
|
2351
|
-
var t = new
|
|
2352
|
-
t.noRefs ||
|
|
2351
|
+
var t = new mi(n);
|
|
2352
|
+
t.noRefs || xi(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 Si = Ai, Ti = {
|
|
2358
|
+
dump: Si
|
|
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 $i = pe, Mi = bn, Oi = wn, Ei = Tn, ji = $n, Fi = $t, Ki = Hn.load, Bi = Hn.loadAll, Ni = Ti.dump, Li = me, qi = {
|
|
2366
2366
|
binary: Fn,
|
|
2367
2367
|
float: Sn,
|
|
2368
2368
|
map: _n,
|
|
2369
2369
|
null: In,
|
|
2370
2370
|
pairs: Bn,
|
|
2371
|
-
set:
|
|
2371
|
+
set: Nn,
|
|
2372
2372
|
timestamp: En,
|
|
2373
2373
|
bool: xn,
|
|
2374
2374
|
int: An,
|
|
@@ -2376,35 +2376,35 @@ var Ti = de, $i = bn, Mi = wn, Oi = Tn, Ei = $n, ji = $t, Fi = Hn.load, Ki = 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
|
+
}, Pi = jt("safeLoad", "load"), Ui = jt("safeLoadAll", "loadAll"), Vi = jt("safeDump", "dump"), Di = {
|
|
2380
|
+
Type: $i,
|
|
2381
|
+
Schema: Mi,
|
|
2382
|
+
FAILSAFE_SCHEMA: Oi,
|
|
2383
|
+
JSON_SCHEMA: Ei,
|
|
2384
|
+
CORE_SCHEMA: ji,
|
|
2385
|
+
DEFAULT_SCHEMA: Fi,
|
|
2386
|
+
load: Ki,
|
|
2387
|
+
loadAll: Bi,
|
|
2388
|
+
dump: Ni,
|
|
2389
2389
|
YAMLException: Li,
|
|
2390
|
-
types:
|
|
2391
|
-
safeLoad:
|
|
2392
|
-
safeLoadAll:
|
|
2393
|
-
safeDump:
|
|
2390
|
+
types: qi,
|
|
2391
|
+
safeLoad: Pi,
|
|
2392
|
+
safeLoadAll: Ui,
|
|
2393
|
+
safeDump: Vi
|
|
2394
2394
|
};
|
|
2395
|
-
const
|
|
2395
|
+
const Ri = {
|
|
2396
2396
|
key: 0,
|
|
2397
2397
|
class: "config-card-display-form"
|
|
2398
|
-
},
|
|
2398
|
+
}, Gi = ["data-testid"], Hi = {
|
|
2399
2399
|
key: 0,
|
|
2400
2400
|
class: "config-card-prop-section-title"
|
|
2401
|
-
},
|
|
2401
|
+
}, zi = {
|
|
2402
2402
|
key: 1,
|
|
2403
2403
|
class: "config-card-display-json"
|
|
2404
|
-
},
|
|
2404
|
+
}, Yi = {
|
|
2405
2405
|
key: 2,
|
|
2406
2406
|
class: "config-card-display-yaml"
|
|
2407
|
-
},
|
|
2407
|
+
}, Ji = /* @__PURE__ */ ie({
|
|
2408
2408
|
__name: "ConfigCardDisplay",
|
|
2409
2409
|
props: {
|
|
2410
2410
|
propertyCollections: {
|
|
@@ -2430,28 +2430,28 @@ const Di = {
|
|
|
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 } } = de.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 = Di.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", Ri, [
|
|
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: Ke(`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", Hi, 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(), U(St, {
|
|
2447
2447
|
key: u.key,
|
|
2448
2448
|
item: u
|
|
2449
2449
|
}, Se({
|
|
2450
2450
|
label: v(() => [
|
|
2451
|
-
|
|
2451
|
+
Z(s.$slots, `${u.key}-label`, { row: u }, void 0, !0)
|
|
2452
2452
|
]),
|
|
2453
2453
|
[u.key]: v(({ rowValue: m }) => [
|
|
2454
|
-
|
|
2454
|
+
Z(s.$slots, u.key, {
|
|
2455
2455
|
row: u,
|
|
2456
2456
|
rowValue: m
|
|
2457
2457
|
}, void 0, !0)
|
|
@@ -2461,14 +2461,14 @@ const Di = {
|
|
|
2461
2461
|
o(u) ? {
|
|
2462
2462
|
name: "label-tooltip",
|
|
2463
2463
|
fn: v(() => [
|
|
2464
|
-
|
|
2464
|
+
Z(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, Gi))), 128))
|
|
2470
2470
|
])) : G("", !0),
|
|
2471
|
-
e.format === "json" ? (f(), A("div",
|
|
2471
|
+
e.format === "json" ? (f(), A("div", zi, [
|
|
2472
2472
|
j(c, {
|
|
2473
2473
|
id: "config-card-codeblock",
|
|
2474
2474
|
code: a.value,
|
|
@@ -2476,7 +2476,7 @@ const Di = {
|
|
|
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", Yi, [
|
|
2480
2480
|
j(c, {
|
|
2481
2481
|
id: "config-card-codeblock",
|
|
2482
2482
|
code: i.value,
|
|
@@ -2488,18 +2488,18 @@ const Di = {
|
|
|
2488
2488
|
], 64);
|
|
2489
2489
|
};
|
|
2490
2490
|
}
|
|
2491
|
-
}),
|
|
2491
|
+
}), Wi = /* @__PURE__ */ ke(Ji, [["__scopeId", "data-v-a58d7adb"]]), ln = "24px", Zi = (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
|
+
}, Qi = (e) => (gr("data-v-817dfcab"), e = e(), yr(), e), Xi = ["aria-hidden"], es = {
|
|
2497
2497
|
key: 0,
|
|
2498
2498
|
"data-testid": "kui-icon-svg-title"
|
|
2499
|
-
},
|
|
2499
|
+
}, ts = /* @__PURE__ */ Qi(() => /* @__PURE__ */ P("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)), ns = /* @__PURE__ */ ie({
|
|
2503
2503
|
__name: "BookIcon",
|
|
2504
2504
|
props: {
|
|
2505
2505
|
/** The accessibility text provided to screen readers */
|
|
@@ -2551,7 +2551,7 @@ const Di = {
|
|
|
2551
2551
|
}
|
|
2552
2552
|
},
|
|
2553
2553
|
setup(e) {
|
|
2554
|
-
const n = e, t =
|
|
2554
|
+
const n = e, t = 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 Di = {
|
|
|
2560
2560
|
return `${a}px`;
|
|
2561
2561
|
}
|
|
2562
2562
|
return ln;
|
|
2563
|
-
}), r =
|
|
2563
|
+
}), r = T(() => ({
|
|
2564
2564
|
boxSizing: "border-box",
|
|
2565
2565
|
color: n.color,
|
|
2566
2566
|
display: n.display,
|
|
@@ -2568,11 +2568,11 @@ const Di = {
|
|
|
2568
2568
|
lineHeight: "0",
|
|
2569
2569
|
width: t.value
|
|
2570
2570
|
}));
|
|
2571
|
-
return (o, a) => (f(),
|
|
2571
|
+
return (o, a) => (f(), U(ze(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: fr(r.value)
|
|
2576
2576
|
}, {
|
|
2577
2577
|
default: v(() => [
|
|
2578
2578
|
(f(), A("svg", {
|
|
@@ -2585,23 +2585,23 @@ const Di = {
|
|
|
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", es, E(e.title), 1)) : G("", !0),
|
|
2589
|
+
ts
|
|
2590
|
+
], 8, Xi))
|
|
2591
2591
|
]),
|
|
2592
2592
|
_: 1
|
|
2593
2593
|
}, 8, ["aria-hidden", "style"]));
|
|
2594
2594
|
}
|
|
2595
|
-
}),
|
|
2595
|
+
}), rs = /* @__PURE__ */ Zi(ns, [["__scopeId", "data-v-817dfcab"]]), os = { "data-testid": "config-card-title" }, as = { class: "config-card-actions" }, is = ["href"], ss = {
|
|
2596
2596
|
key: 2,
|
|
2597
2597
|
class: "config-card-details-section"
|
|
2598
|
-
},
|
|
2598
|
+
}, ls = {
|
|
2599
2599
|
key: 3,
|
|
2600
2600
|
class: "config-card-details-section"
|
|
2601
|
-
},
|
|
2601
|
+
}, us = ["data-testid"], cs = {
|
|
2602
2602
|
key: 0,
|
|
2603
2603
|
class: "config-card-prop-section-title"
|
|
2604
|
-
},
|
|
2604
|
+
}, ds = /* @__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 Di = {
|
|
|
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 } } = de.useI18n(), { getMessageFromError: i } = de.useErrors(), { convertKeyToTitle: s } = de.useStringHelpers(), { axiosInstance: l } = de.useAxios({
|
|
2680
2680
|
headers: (t = r.config) == null ? void 0 : t.requestHeaders
|
|
2681
2681
|
}), c = [
|
|
2682
2682
|
{
|
|
@@ -2696,7 +2696,7 @@ const Di = {
|
|
|
2696
2696
|
d.value = I == null ? void 0 : I.value;
|
|
2697
2697
|
}, m = {
|
|
2698
2698
|
id: {
|
|
2699
|
-
type:
|
|
2699
|
+
type: ne.ID,
|
|
2700
2700
|
label: a("baseConfigCard.commonFields.id_label"),
|
|
2701
2701
|
order: 0,
|
|
2702
2702
|
section: be.Basic
|
|
@@ -2706,101 +2706,101 @@ const Di = {
|
|
|
2706
2706
|
section: be.Basic
|
|
2707
2707
|
},
|
|
2708
2708
|
enabled: {
|
|
2709
|
-
type:
|
|
2709
|
+
type: ne.BadgeStatus,
|
|
2710
2710
|
order: 2,
|
|
2711
2711
|
section: be.Basic
|
|
2712
2712
|
},
|
|
2713
2713
|
updated_at: {
|
|
2714
|
-
type:
|
|
2714
|
+
type: ne.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: ne.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: ne.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 = T(() => {
|
|
2732
|
+
var I, D, q;
|
|
2733
2733
|
if (!p.value)
|
|
2734
2734
|
return [];
|
|
2735
|
-
const x = [],
|
|
2736
|
-
for (const
|
|
2737
|
-
const
|
|
2738
|
-
let
|
|
2739
|
-
(
|
|
2735
|
+
const x = [], O = Object.keys(p.value).length;
|
|
2736
|
+
for (const M in p.value) {
|
|
2737
|
+
const K = (D = (I = r.configSchema) == null ? void 0 : I[M]) == null ? void 0 : D.order, J = (q = m[M]) == null ? void 0 : q.order;
|
|
2738
|
+
let X = O;
|
|
2739
|
+
(J || J === 0) && (X = J === -1 ? O + 1 : J), K && (X = K === -1 ? O + 1 : K), x.push([M, X]);
|
|
2740
2740
|
}
|
|
2741
|
-
return x.sort(function(
|
|
2742
|
-
return
|
|
2743
|
-
}), x.map((
|
|
2744
|
-
var
|
|
2745
|
-
const
|
|
2741
|
+
return x.sort(function(M, K) {
|
|
2742
|
+
return M[1] - K[1];
|
|
2743
|
+
}), x.map((M) => {
|
|
2744
|
+
var K, J;
|
|
2745
|
+
const X = M[0], ee = (K = p.value) == null ? void 0 : K[X], te = ((J = r.configSchema) == null ? void 0 : J[X]) || {}, se = m[X];
|
|
2746
2746
|
return {
|
|
2747
|
-
key:
|
|
2748
|
-
value:
|
|
2749
|
-
hidden:
|
|
2750
|
-
type:
|
|
2751
|
-
label:
|
|
2752
|
-
tooltip:
|
|
2753
|
-
section:
|
|
2747
|
+
key: X,
|
|
2748
|
+
value: ee,
|
|
2749
|
+
hidden: te.hidden || !1,
|
|
2750
|
+
type: te.type ?? ((se == null ? void 0 : se.type) || ne.Text),
|
|
2751
|
+
label: te.label ?? ((se == null ? void 0 : se.label) || s(X)),
|
|
2752
|
+
tooltip: te.tooltip ?? ((se == null ? void 0 : se.tooltip) || void 0),
|
|
2753
|
+
section: te.section ?? ((se == null ? void 0 : se.section) || be.Advanced)
|
|
2754
2754
|
};
|
|
2755
|
-
}).filter((
|
|
2756
|
-
}), y =
|
|
2755
|
+
}).filter((M) => !M.hidden && M.key !== r.pluginConfigKey);
|
|
2756
|
+
}), y = T(() => {
|
|
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 q = p.value[r.pluginConfigKey] || {}, x = Object.keys(q).length, O = [];
|
|
2761
|
+
for (const M in q) {
|
|
2762
|
+
const K = (D = (I = r.pluginConfigSchema) == null ? void 0 : I[M]) == null ? void 0 : D.order, J = q[M];
|
|
2763
|
+
let X = J != null && J !== "" ? x - 1 : x;
|
|
2764
|
+
K && (X = K === -1 ? x + 1 : K), O.push([M, X]);
|
|
2765
2765
|
}
|
|
2766
|
-
return
|
|
2767
|
-
return
|
|
2768
|
-
}),
|
|
2769
|
-
var
|
|
2770
|
-
const
|
|
2766
|
+
return O.sort(function(M, K) {
|
|
2767
|
+
return M[1] - K[1];
|
|
2768
|
+
}), O.map((M) => {
|
|
2769
|
+
var K;
|
|
2770
|
+
const J = M[0], X = q[J], ee = ((K = r.pluginConfigSchema) == null ? void 0 : K[J]) || {};
|
|
2771
2771
|
return {
|
|
2772
|
-
key:
|
|
2773
|
-
value:
|
|
2774
|
-
hidden:
|
|
2775
|
-
type:
|
|
2776
|
-
label:
|
|
2777
|
-
tooltip:
|
|
2772
|
+
key: J,
|
|
2773
|
+
value: X,
|
|
2774
|
+
hidden: ee.hidden || !1,
|
|
2775
|
+
type: ee.type ?? ne.Text,
|
|
2776
|
+
label: ee.label ?? s(J),
|
|
2777
|
+
tooltip: ee.tooltip ?? void 0,
|
|
2778
2778
|
section: be.Plugin
|
|
2779
2779
|
};
|
|
2780
|
-
}).filter((
|
|
2781
|
-
}), w =
|
|
2782
|
-
var I, D,
|
|
2780
|
+
}).filter((M) => !M.hidden);
|
|
2781
|
+
}), w = T(() => {
|
|
2782
|
+
var I, D, q, 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((O) => O.section === be.Basic),
|
|
2785
|
+
advanced: (D = C.value) == null ? void 0 : D.filter((O) => O.section === be.Advanced),
|
|
2786
|
+
plugin: (x = y.value) == null ? void 0 : x.concat((q = C.value) == null ? void 0 : q.filter((O) => O.section === be.Plugin))
|
|
2787
2787
|
};
|
|
2788
|
-
}),
|
|
2788
|
+
}), V = T(() => {
|
|
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
|
+
}), H = (I) => !!(I.tooltip || o[`${I.key}-label-tooltip`]), re = T(() => {
|
|
2792
2792
|
var I, D;
|
|
2793
|
-
let
|
|
2794
|
-
return r.config.app === "konnect" ?
|
|
2795
|
-
}),
|
|
2793
|
+
let q = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2794
|
+
return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (D = r.config) != null && D.workspace ? `/${r.config.workspace}` : "")), q = q.replace(/{id}/gi, r.config.entityId), q;
|
|
2795
|
+
}), z = (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 }), Qe(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(re.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 Di = {
|
|
|
2818
2818
|
g.value = !1;
|
|
2819
2819
|
}
|
|
2820
2820
|
}), (I, D) => {
|
|
2821
|
-
const
|
|
2822
|
-
return f(),
|
|
2821
|
+
const q = N("KLabel"), x = N("KSelect"), O = N("KButton"), M = N("KClipboardProvider"), K = N("KSkeleton"), J = N("KEmptyState"), X = N("KCard");
|
|
2822
|
+
return f(), U(X, { class: "kong-ui-entity-base-config-card" }, Se({
|
|
2823
2823
|
actions: v(() => [
|
|
2824
|
-
|
|
2825
|
-
|
|
2826
|
-
e.config.jsonYamlEnabled ? (f(),
|
|
2824
|
+
P("div", as, [
|
|
2825
|
+
Z(I.$slots, "actions", {}, void 0, !0),
|
|
2826
|
+
e.config.jsonYamlEnabled ? (f(), U(q, {
|
|
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
|
+
Q(E(e.label), 1)
|
|
2833
2833
|
]),
|
|
2834
2834
|
_: 1
|
|
2835
2835
|
})) : G("", !0),
|
|
2836
|
-
e.config.jsonYamlEnabled ? (f(),
|
|
2836
|
+
e.config.jsonYamlEnabled ? (f(), U(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(), U(O, {
|
|
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
|
+
P("a", {
|
|
2851
2851
|
href: e.configCardDoc,
|
|
2852
2852
|
rel: "noopener",
|
|
2853
2853
|
target: "_blank"
|
|
2854
2854
|
}, [
|
|
2855
|
-
j(h(
|
|
2856
|
-
], 8,
|
|
2855
|
+
j(h(rs), { size: h(uo) }, null, 8, ["size"])
|
|
2856
|
+
], 8, is)
|
|
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(), U(M, { key: 3 }, {
|
|
2861
|
+
default: v(({ copyToClipboard: ee }) => [
|
|
2862
|
+
!g.value && !k.value ? (f(), U(O, {
|
|
2863
2863
|
key: 0,
|
|
2864
2864
|
appearance: "btn-link",
|
|
2865
2865
|
"data-testid": "json-copy-button",
|
|
2866
|
-
onClick: (
|
|
2866
|
+
onClick: (te) => z(ee)
|
|
2867
2867
|
}, {
|
|
2868
2868
|
default: v(() => [
|
|
2869
|
-
|
|
2869
|
+
Q(E(h(a)("baseConfigCard.actions.copy")), 1)
|
|
2870
2870
|
]),
|
|
2871
2871
|
_: 2
|
|
2872
2872
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -2876,69 +2876,69 @@ const Di = {
|
|
|
2876
2876
|
])
|
|
2877
2877
|
]),
|
|
2878
2878
|
body: v(() => [
|
|
2879
|
-
g.value ? (f(),
|
|
2879
|
+
g.value ? (f(), U(K, {
|
|
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(), U(J, {
|
|
2885
2885
|
key: 1,
|
|
2886
2886
|
"data-testid": "config-card-fetch-error",
|
|
2887
2887
|
"is-error": ""
|
|
2888
2888
|
}, {
|
|
2889
2889
|
message: v(() => [
|
|
2890
|
-
|
|
2890
|
+
P("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", ss, [
|
|
2895
|
+
j(Wi, {
|
|
2896
2896
|
format: d.value,
|
|
2897
|
-
"prop-list-types":
|
|
2897
|
+
"prop-list-types": V.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), (ee) => ({
|
|
2902
|
+
name: ee,
|
|
2903
|
+
fn: v(({ row: te, rowValue: se }) => [
|
|
2904
|
+
Z(I.$slots, ee, {
|
|
2905
|
+
row: te,
|
|
2906
|
+
rowValue: se
|
|
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", ls, [
|
|
2912
|
+
(f(!0), A(ve, null, ye(V.value, (ee) => (f(), A("div", {
|
|
2913
|
+
key: `config-card-details-${ee}-props`,
|
|
2914
|
+
class: Ke(`config-card-details-${ee}-props`),
|
|
2915
|
+
"data-testid": `config-card-details-${ee}-props`
|
|
2916
2916
|
}, [
|
|
2917
|
-
|
|
2918
|
-
(f(!0), A(ve, null, ye(w.value[
|
|
2919
|
-
key:
|
|
2920
|
-
item:
|
|
2917
|
+
ee !== "basic" ? (f(), A("div", cs, E(ee === "advanced" ? h(a)("baseConfigCard.sections.advanced") : h(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2918
|
+
(f(!0), A(ve, null, ye(w.value[ee], (te) => (f(), U(St, {
|
|
2919
|
+
key: te.key,
|
|
2920
|
+
item: te
|
|
2921
2921
|
}, Se({
|
|
2922
2922
|
label: v(() => [
|
|
2923
|
-
|
|
2923
|
+
Z(I.$slots, `${te.key}-label`, { row: te }, void 0, !0)
|
|
2924
2924
|
]),
|
|
2925
|
-
[
|
|
2926
|
-
|
|
2927
|
-
row:
|
|
2928
|
-
rowValue:
|
|
2925
|
+
[te.key]: v(({ rowValue: se }) => [
|
|
2926
|
+
Z(I.$slots, te.key, {
|
|
2927
|
+
row: te,
|
|
2928
|
+
rowValue: se
|
|
2929
2929
|
}, void 0, !0)
|
|
2930
2930
|
]),
|
|
2931
2931
|
_: 2
|
|
2932
2932
|
}, [
|
|
2933
|
-
|
|
2933
|
+
H(te) ? {
|
|
2934
2934
|
name: "label-tooltip",
|
|
2935
2935
|
fn: v(() => [
|
|
2936
|
-
|
|
2936
|
+
Z(I.$slots, `${te.key}-label-tooltip`, { row: te }, void 0, !0)
|
|
2937
2937
|
]),
|
|
2938
2938
|
key: "0"
|
|
2939
2939
|
} : void 0
|
|
2940
2940
|
]), 1032, ["item"]))), 128))
|
|
2941
|
-
], 10,
|
|
2941
|
+
], 10, us))), 128))
|
|
2942
2942
|
]))
|
|
2943
2943
|
]),
|
|
2944
2944
|
_: 2
|
|
@@ -2946,9 +2946,9 @@ const Di = {
|
|
|
2946
2946
|
e.hideTitle ? void 0 : {
|
|
2947
2947
|
name: "title",
|
|
2948
2948
|
fn: v(() => [
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2949
|
+
P("div", os, [
|
|
2950
|
+
Z(I.$slots, "title", {}, () => [
|
|
2951
|
+
Q(E(h(a)("baseConfigCard.title")), 1)
|
|
2952
2952
|
], !0)
|
|
2953
2953
|
])
|
|
2954
2954
|
]),
|
|
@@ -2957,10 +2957,10 @@ const Di = {
|
|
|
2957
2957
|
]), 1024);
|
|
2958
2958
|
};
|
|
2959
2959
|
}
|
|
2960
|
-
}),
|
|
2960
|
+
}), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
|
|
2961
2961
|
class: "form-actions",
|
|
2962
2962
|
"data-testid": "form-actions"
|
|
2963
|
-
},
|
|
2963
|
+
}, gs = /* @__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 Di = {
|
|
|
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 } } = de.useI18n(), { getMessageFromError: i } = de.useErrors(), { axiosInstance: s } = de.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 = T(() => r.canSubmit === !1 || r.isReadonly), m = T(() => {
|
|
3016
3016
|
var p, C;
|
|
3017
3017
|
if (!r.editId)
|
|
3018
3018
|
return "";
|
|
@@ -3027,7 +3027,7 @@ const Di = {
|
|
|
3027
3027
|
};
|
|
3028
3028
|
return Oe(() => l.value, (p) => {
|
|
3029
3029
|
n("loading", p);
|
|
3030
|
-
}, { immediate: !0 }),
|
|
3030
|
+
}, { immediate: !0 }), Qe(async () => {
|
|
3031
3031
|
if (r.editId)
|
|
3032
3032
|
try {
|
|
3033
3033
|
c.value = !1, l.value = !0;
|
|
@@ -3040,13 +3040,13 @@ const Di = {
|
|
|
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"), V = N("KAlert"), H = N("KButton"), re = N("KCard");
|
|
3044
|
+
return f(), U(re, { class: "kong-ui-entity-base-form" }, {
|
|
3045
3045
|
body: v(() => [
|
|
3046
|
-
l.value ? (f(),
|
|
3046
|
+
l.value ? (f(), U(y, {
|
|
3047
3047
|
key: 0,
|
|
3048
3048
|
type: "form"
|
|
3049
|
-
})) : c.value ? (f(),
|
|
3049
|
+
})) : c.value ? (f(), U(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 Di = {
|
|
|
3054
3054
|
"is-error": !0
|
|
3055
3055
|
}, {
|
|
3056
3056
|
message: v(() => [
|
|
3057
|
-
|
|
3057
|
+
P("h3", null, E(d.value), 1)
|
|
3058
3058
|
]),
|
|
3059
3059
|
_: 1
|
|
3060
3060
|
}, 8, ["cta-text"])) : (f(), A("form", {
|
|
@@ -3063,46 +3063,46 @@ const Di = {
|
|
|
3063
3063
|
onReset: rt(k, ["prevent"]),
|
|
3064
3064
|
onSubmit: rt(_, ["prevent"])
|
|
3065
3065
|
}, [
|
|
3066
|
-
|
|
3067
|
-
e.errorMessage ? (f(), V
|
|
3066
|
+
Z(p.$slots, "default", {}, void 0, !0),
|
|
3067
|
+
e.errorMessage ? (f(), U(V, {
|
|
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
|
+
P("div", ms, [
|
|
3074
|
+
Z(p.$slots, "form-actions", {}, () => [
|
|
3075
|
+
j(H, {
|
|
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
|
+
Q(E(h(a)("baseForm.actions.cancel")), 1)
|
|
3083
3083
|
]),
|
|
3084
3084
|
_: 1
|
|
3085
3085
|
}, 8, ["disabled"]),
|
|
3086
|
-
j(
|
|
3086
|
+
j(H, {
|
|
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
|
+
Q(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, fs))
|
|
3100
3100
|
]),
|
|
3101
3101
|
_: 3
|
|
3102
3102
|
});
|
|
3103
3103
|
};
|
|
3104
3104
|
}
|
|
3105
|
-
}),
|
|
3105
|
+
}), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-44a90aae"]]), hs = { key: 0 }, vs = /* @__PURE__ */ ie({
|
|
3106
3106
|
__name: "EntityBaseTableCell",
|
|
3107
3107
|
props: {
|
|
3108
3108
|
keyName: {
|
|
@@ -3115,13 +3115,13 @@ const Di = {
|
|
|
3115
3115
|
}
|
|
3116
3116
|
},
|
|
3117
3117
|
setup(e) {
|
|
3118
|
-
const n = e, t =
|
|
3118
|
+
const n = e, t = T(() => {
|
|
3119
3119
|
var _;
|
|
3120
3120
|
return ((_ = n.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3121
|
-
}), r =
|
|
3121
|
+
}), r = T(() => {
|
|
3122
3122
|
var _;
|
|
3123
3123
|
return ((_ = t.value) == null ? void 0 : _.querySelector('[role="button"]')) || null;
|
|
3124
|
-
}), o =
|
|
3124
|
+
}), o = T(() => {
|
|
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 Di = {
|
|
|
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 = T(() => [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 Di = {
|
|
|
3146
3146
|
}
|
|
3147
3147
|
},
|
|
3148
3148
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3149
|
-
), k =
|
|
3150
|
-
return
|
|
3149
|
+
), k = T(() => o.value ? c.value > d.value : !1);
|
|
3150
|
+
return dr(() => {
|
|
3151
3151
|
s();
|
|
3152
|
-
}),
|
|
3152
|
+
}), pr(() => {
|
|
3153
3153
|
g();
|
|
3154
3154
|
}), (_, p) => {
|
|
3155
3155
|
const C = N("KTooltip");
|
|
@@ -3158,7 +3158,7 @@ const Di = {
|
|
|
3158
3158
|
ref: l,
|
|
3159
3159
|
class: "content-wrapper"
|
|
3160
3160
|
}, [
|
|
3161
|
-
o.value ? (f(), A("span",
|
|
3161
|
+
o.value ? (f(), A("span", hs, [
|
|
3162
3162
|
j(C, {
|
|
3163
3163
|
disabled: !k.value,
|
|
3164
3164
|
label: u.value,
|
|
@@ -3166,18 +3166,18 @@ const Di = {
|
|
|
3166
3166
|
placement: "bottomStart"
|
|
3167
3167
|
}, {
|
|
3168
3168
|
default: v(() => [
|
|
3169
|
-
|
|
3169
|
+
Z(_.$slots, "default", {}, void 0, !0)
|
|
3170
3170
|
]),
|
|
3171
3171
|
_: 3
|
|
3172
3172
|
}, 8, ["disabled", "label"])
|
|
3173
|
-
])) :
|
|
3173
|
+
])) : Z(_.$slots, "default", { key: 1 }, void 0, !0)
|
|
3174
3174
|
], 512);
|
|
3175
3175
|
};
|
|
3176
3176
|
}
|
|
3177
|
-
}),
|
|
3177
|
+
}), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-f8a220e9"]]), Cs = { class: "toolbar-container" }, ks = {
|
|
3178
3178
|
key: 0,
|
|
3179
3179
|
class: "toolbar-button-container"
|
|
3180
|
-
},
|
|
3180
|
+
}, _s = ["data-testid"], ws = /* @__PURE__ */ ie({
|
|
3181
3181
|
__name: "EntityBaseTable",
|
|
3182
3182
|
props: {
|
|
3183
3183
|
// table header configuration
|
|
@@ -3281,14 +3281,14 @@ const Di = {
|
|
|
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 } } = de.useI18n(), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), a = (w) => w.hasData || !!t.query, i = T(() => {
|
|
3285
3285
|
const w = [];
|
|
3286
|
-
return Object.keys(t.tableHeaders).forEach((
|
|
3287
|
-
const
|
|
3286
|
+
return Object.keys(t.tableHeaders).forEach((V) => {
|
|
3287
|
+
const H = t.tableHeaders[V];
|
|
3288
3288
|
w.push({
|
|
3289
|
-
label:
|
|
3290
|
-
key:
|
|
3291
|
-
sortable:
|
|
3289
|
+
label: H.label ?? V,
|
|
3290
|
+
key: V,
|
|
3291
|
+
sortable: H.sortable ?? !1
|
|
3292
3292
|
});
|
|
3293
3293
|
}), t.enableEntityActions && w.push({
|
|
3294
3294
|
key: "actions",
|
|
@@ -3299,27 +3299,27 @@ const Di = {
|
|
|
3299
3299
|
"data-testid": w.name,
|
|
3300
3300
|
...t.rowAttributes(w)
|
|
3301
3301
|
}), l = F({}), c = (w) => {
|
|
3302
|
-
var
|
|
3303
|
-
return (
|
|
3302
|
+
var V;
|
|
3303
|
+
return (V = l.value) == null ? void 0 : V.$el.querySelector(`[data-rowid="${w.id}"]`);
|
|
3304
3304
|
}, d = (w) => {
|
|
3305
|
-
const
|
|
3305
|
+
const V = {
|
|
3306
3306
|
"data-testid": w.headerKey,
|
|
3307
3307
|
...t.cellAttributes(w)
|
|
3308
3308
|
};
|
|
3309
|
-
return w.colIndex === 0 && (
|
|
3309
|
+
return w.colIndex === 0 && (V.style = {
|
|
3310
3310
|
maxWidth: "250px",
|
|
3311
3311
|
overflowX: "hidden",
|
|
3312
3312
|
textOverflow: "ellipsis"
|
|
3313
|
-
}),
|
|
3313
|
+
}), V;
|
|
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, V) => {
|
|
3319
|
+
n("click:row", V);
|
|
3320
3320
|
}, k = (w) => {
|
|
3321
3321
|
n("sort", w);
|
|
3322
|
-
}, { setTablePreferences: _, getTablePreferences: p } =
|
|
3322
|
+
}, { setTablePreferences: _, getTablePreferences: p } = Ir(), C = T(() => {
|
|
3323
3323
|
const w = p(t.preferencesStorageKey);
|
|
3324
3324
|
return {
|
|
3325
3325
|
...t.initialFetcherParams,
|
|
@@ -3328,9 +3328,9 @@ const Di = {
|
|
|
3328
3328
|
}), y = (w) => {
|
|
3329
3329
|
t.preferencesStorageKey && _(t.preferencesStorageKey, w);
|
|
3330
3330
|
};
|
|
3331
|
-
return (w,
|
|
3332
|
-
const
|
|
3333
|
-
return f(),
|
|
3331
|
+
return (w, V) => {
|
|
3332
|
+
const H = N("KIcon"), re = N("KButton"), z = N("KDropdownMenu"), I = N("KTable"), D = N("KCard");
|
|
3333
|
+
return f(), U(D, {
|
|
3334
3334
|
class: "kong-ui-entity-base-table",
|
|
3335
3335
|
title: e.title
|
|
3336
3336
|
}, {
|
|
@@ -3363,44 +3363,44 @@ const Di = {
|
|
|
3363
3363
|
"search-input": e.query,
|
|
3364
3364
|
onKtableEmptyStateCtaClicked: u,
|
|
3365
3365
|
"onRow:click": g,
|
|
3366
|
-
onSort:
|
|
3366
|
+
onSort: V[0] || (V[0] = (q) => k(q)),
|
|
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: q }) => [
|
|
3370
|
+
et(P("div", Cs, [
|
|
3371
|
+
Z(w.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3372
|
+
w.$slots["toolbar-button"] ? (f(), A("div", ks, [
|
|
3373
|
+
Z(w.$slots, "toolbar-button", {}, void 0, !0)
|
|
3374
3374
|
])) : G("", !0)
|
|
3375
3375
|
], 512), [
|
|
3376
|
-
[tt, a(
|
|
3376
|
+
[tt, a(q)]
|
|
3377
3377
|
])
|
|
3378
3378
|
]),
|
|
3379
|
-
actions: v(({ row:
|
|
3380
|
-
|
|
3379
|
+
actions: v(({ row: q, rowKey: x, rowValue: O }) => [
|
|
3380
|
+
P("div", {
|
|
3381
3381
|
class: "actions-container",
|
|
3382
|
-
"data-testid":
|
|
3382
|
+
"data-testid": q.name
|
|
3383
3383
|
}, [
|
|
3384
|
-
j(
|
|
3384
|
+
j(z, {
|
|
3385
3385
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3386
3386
|
width: e.dropdownMenuWidth
|
|
3387
3387
|
}, {
|
|
3388
3388
|
items: v(() => [
|
|
3389
|
-
|
|
3390
|
-
row:
|
|
3389
|
+
Z(w.$slots, "actions", {
|
|
3390
|
+
row: q,
|
|
3391
3391
|
rowKey: x,
|
|
3392
|
-
rowValue:
|
|
3392
|
+
rowValue: O
|
|
3393
3393
|
}, void 0, !0)
|
|
3394
3394
|
]),
|
|
3395
3395
|
default: v(() => [
|
|
3396
|
-
j(
|
|
3396
|
+
j(re, {
|
|
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(H, {
|
|
3403
|
+
color: h(so),
|
|
3404
3404
|
icon: "more",
|
|
3405
3405
|
size: "16"
|
|
3406
3406
|
}, null, 8, ["color"])
|
|
@@ -3410,24 +3410,24 @@ const Di = {
|
|
|
3410
3410
|
]),
|
|
3411
3411
|
_: 2
|
|
3412
3412
|
}, 1032, ["width"])
|
|
3413
|
-
], 8,
|
|
3413
|
+
], 8, _s)
|
|
3414
3414
|
]),
|
|
3415
3415
|
_: 2
|
|
3416
3416
|
}, [
|
|
3417
|
-
ye(e.tableHeaders, (
|
|
3417
|
+
ye(e.tableHeaders, (q, x) => ({
|
|
3418
3418
|
name: x,
|
|
3419
|
-
fn: v(({ row:
|
|
3420
|
-
j(
|
|
3419
|
+
fn: v(({ row: O, rowKey: M, rowValue: K }) => [
|
|
3420
|
+
j(bs, {
|
|
3421
3421
|
"key-name": String(x),
|
|
3422
|
-
"row-el": c(
|
|
3422
|
+
"row-el": c(O)
|
|
3423
3423
|
}, {
|
|
3424
3424
|
default: v(() => [
|
|
3425
|
-
|
|
3426
|
-
row:
|
|
3427
|
-
rowKey:
|
|
3428
|
-
rowValue:
|
|
3425
|
+
Z(w.$slots, x, {
|
|
3426
|
+
row: O,
|
|
3427
|
+
rowKey: M,
|
|
3428
|
+
rowValue: K
|
|
3429
3429
|
}, () => [
|
|
3430
|
-
|
|
3430
|
+
Q(E(K), 1)
|
|
3431
3431
|
], !0)
|
|
3432
3432
|
]),
|
|
3433
3433
|
_: 2
|
|
@@ -3440,13 +3440,13 @@ const Di = {
|
|
|
3440
3440
|
}, 8, ["title"]);
|
|
3441
3441
|
};
|
|
3442
3442
|
}
|
|
3443
|
-
}),
|
|
3443
|
+
}), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-2622d034"]]), xs = {
|
|
3444
3444
|
key: 0,
|
|
3445
3445
|
class: "kong-ui-entity-delete-error"
|
|
3446
|
-
},
|
|
3446
|
+
}, As = {
|
|
3447
3447
|
key: 1,
|
|
3448
3448
|
class: "description"
|
|
3449
|
-
},
|
|
3449
|
+
}, Ss = /* @__PURE__ */ ie({
|
|
3450
3450
|
__name: "EntityDeleteModal",
|
|
3451
3451
|
props: {
|
|
3452
3452
|
visible: {
|
|
@@ -3485,14 +3485,14 @@ const Di = {
|
|
|
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 } = de.useI18n(), o = T(() => 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(), U(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 Di = {
|
|
|
3504
3504
|
onProceed: i
|
|
3505
3505
|
}, {
|
|
3506
3506
|
"body-content": v(() => [
|
|
3507
|
-
e.error ? (f(), A("div",
|
|
3507
|
+
e.error ? (f(), A("div", xs, [
|
|
3508
3508
|
j(c, { appearance: "danger" }, {
|
|
3509
3509
|
alertMessage: v(() => [
|
|
3510
|
-
|
|
3510
|
+
Q(E(e.error), 1)
|
|
3511
3511
|
]),
|
|
3512
3512
|
_: 1
|
|
3513
3513
|
})
|
|
@@ -3518,21 +3518,21 @@ const Di = {
|
|
|
3518
3518
|
tag: "p"
|
|
3519
3519
|
}, Se({
|
|
3520
3520
|
entityType: v(() => [
|
|
3521
|
-
|
|
3521
|
+
Q(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
|
+
P("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", As, [
|
|
3534
|
+
Z(s.$slots, "description", {}, () => [
|
|
3535
|
+
P("p", null, E(t.description), 1)
|
|
3536
3536
|
], !0)
|
|
3537
3537
|
])) : G("", !0)
|
|
3538
3538
|
]),
|
|
@@ -3540,13 +3540,13 @@ const Di = {
|
|
|
3540
3540
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3541
3541
|
};
|
|
3542
3542
|
}
|
|
3543
|
-
}),
|
|
3543
|
+
}), Ts = /* @__PURE__ */ ke(Ss, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
|
|
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
|
+
}, Ms = {
|
|
3550
3550
|
id: "mask0_180_20349",
|
|
3551
3551
|
height: "20",
|
|
3552
3552
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3554,35 +3554,35 @@ const Di = {
|
|
|
3554
3554
|
width: "20",
|
|
3555
3555
|
x: "0",
|
|
3556
3556
|
y: "0"
|
|
3557
|
-
},
|
|
3557
|
+
}, Os = ["fill"], Es = { mask: "url(#mask0_180_20349)" }, js = ["fill"], Fs = /* @__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, ${ao})`
|
|
3563
3563
|
}
|
|
3564
3564
|
},
|
|
3565
3565
|
setup(e) {
|
|
3566
|
-
return (n, t) => (f(), A("svg",
|
|
3567
|
-
|
|
3568
|
-
|
|
3566
|
+
return (n, t) => (f(), A("svg", $s, [
|
|
3567
|
+
P("mask", Ms, [
|
|
3568
|
+
P("rect", {
|
|
3569
3569
|
fill: e.color,
|
|
3570
3570
|
height: "20",
|
|
3571
3571
|
width: "20"
|
|
3572
|
-
}, null, 8,
|
|
3572
|
+
}, null, 8, Os)
|
|
3573
3573
|
]),
|
|
3574
|
-
|
|
3575
|
-
|
|
3574
|
+
P("g", Es, [
|
|
3575
|
+
P("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, js)
|
|
3579
3579
|
])
|
|
3580
3580
|
]));
|
|
3581
3581
|
}
|
|
3582
|
-
}),
|
|
3582
|
+
}), Ks = {
|
|
3583
3583
|
key: 1,
|
|
3584
3584
|
class: "kong-ui-entity-filter"
|
|
3585
|
-
},
|
|
3585
|
+
}, Bs = { class: "menu-item-title" }, Ns = { class: "menu-item-indicator" }, Ls = { class: "menu-item-body" }, qs = ["for"], Ps = { class: "menu-item-buttons" }, Us = /* @__PURE__ */ ie({
|
|
3586
3586
|
__name: "EntityFilter",
|
|
3587
3587
|
props: {
|
|
3588
3588
|
// filter config, either exact match or fuzzy match
|
|
@@ -3602,12 +3602,12 @@ const Di = {
|
|
|
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 } } = de.useI18n(), o = F(!1), a = F({}), i = T(() => {
|
|
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 = T(() => {
|
|
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 Di = {
|
|
|
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"), V = N("KSelect"), H = N("KMenuItem"), re = N("KMenu");
|
|
3648
|
+
return e.config.isExactMatch ? (f(), U(y, {
|
|
3649
3649
|
key: 0,
|
|
3650
3650
|
autocomplete: "off",
|
|
3651
3651
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3655,10 +3655,10 @@ const Di = {
|
|
|
3655
3655
|
"onUpdate:modelValue": c
|
|
3656
3656
|
}, {
|
|
3657
3657
|
icon: v(() => [
|
|
3658
|
-
j(
|
|
3658
|
+
j(Fs)
|
|
3659
3659
|
]),
|
|
3660
3660
|
_: 1
|
|
3661
|
-
}, 8, ["model-value", "placeholder"])) : (f(), A("div",
|
|
3661
|
+
}, 8, ["model-value", "placeholder"])) : (f(), A("div", Ks, [
|
|
3662
3662
|
j(w, {
|
|
3663
3663
|
appearance: "btn-link",
|
|
3664
3664
|
"data-testid": "filter-button",
|
|
@@ -3666,60 +3666,60 @@ const Di = {
|
|
|
3666
3666
|
onClick: l
|
|
3667
3667
|
}, {
|
|
3668
3668
|
default: v(() => [
|
|
3669
|
-
|
|
3669
|
+
Q(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(P("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(re, { 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, (z, I) => (f(), U(H, {
|
|
3682
|
+
key: z.value,
|
|
3683
|
+
"data-testid": z.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
|
+
P("span", Bs, [
|
|
3689
|
+
Q(E(z.label) + " ", 1),
|
|
3690
|
+
et(P("span", Ns, null, 512), [
|
|
3691
|
+
[tt, i.value.includes(z.value)]
|
|
3692
3692
|
])
|
|
3693
3693
|
])
|
|
3694
3694
|
]),
|
|
3695
3695
|
itemBody: v(() => {
|
|
3696
|
-
var D,
|
|
3696
|
+
var D, q;
|
|
3697
3697
|
return [
|
|
3698
|
-
|
|
3699
|
-
|
|
3698
|
+
P("div", Ls, [
|
|
3699
|
+
P("label", {
|
|
3700
3700
|
class: "menu-item-label",
|
|
3701
|
-
for: d(
|
|
3702
|
-
}, E(h(r)("filter.fieldLabel")), 9,
|
|
3703
|
-
((
|
|
3701
|
+
for: d(z.value)
|
|
3702
|
+
}, E(h(r)("filter.fieldLabel")), 9, qs),
|
|
3703
|
+
((q = (D = e.config.schema) == null ? void 0 : D[z.value]) == null ? void 0 : q.type) === "select" ? (f(), U(V, {
|
|
3704
3704
|
key: 0,
|
|
3705
|
-
id: d(
|
|
3706
|
-
modelValue: a.value[
|
|
3707
|
-
"onUpdate:modelValue": (x) => a.value[
|
|
3705
|
+
id: d(z.value),
|
|
3706
|
+
modelValue: a.value[z.value],
|
|
3707
|
+
"onUpdate:modelValue": (x) => a.value[z.value] = x,
|
|
3708
3708
|
appearance: "select",
|
|
3709
|
-
items: u(
|
|
3709
|
+
items: u(z.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(), U(y, {
|
|
3712
3712
|
key: 1,
|
|
3713
|
-
id: d(
|
|
3714
|
-
modelValue: a.value[
|
|
3715
|
-
"onUpdate:modelValue": (x) => a.value[
|
|
3713
|
+
id: d(z.value),
|
|
3714
|
+
modelValue: a.value[z.value],
|
|
3715
|
+
"onUpdate:modelValue": (x) => a.value[z.value] = x,
|
|
3716
3716
|
autocomplete: "off",
|
|
3717
3717
|
placeholder: h(r)("filter.inputPlaceholder"),
|
|
3718
3718
|
size: "small",
|
|
3719
|
-
type: m(
|
|
3719
|
+
type: m(z.value)
|
|
3720
3720
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3721
3721
|
]),
|
|
3722
|
-
|
|
3722
|
+
P("div", Ps, [
|
|
3723
3723
|
j(w, {
|
|
3724
3724
|
appearance: "btn-link",
|
|
3725
3725
|
"data-testid": "apply-filter",
|
|
@@ -3727,7 +3727,7 @@ const Di = {
|
|
|
3727
3727
|
onClick: C[0] || (C[0] = (x) => _(!0))
|
|
3728
3728
|
}, {
|
|
3729
3729
|
default: v(() => [
|
|
3730
|
-
|
|
3730
|
+
Q(E(h(r)("filter.applyButtonText")), 1)
|
|
3731
3731
|
]),
|
|
3732
3732
|
_: 1
|
|
3733
3733
|
}),
|
|
@@ -3735,10 +3735,10 @@ const Di = {
|
|
|
3735
3735
|
appearance: "btn-link",
|
|
3736
3736
|
"data-testid": "clear-filter",
|
|
3737
3737
|
size: "small",
|
|
3738
|
-
onClick: (x) => g(
|
|
3738
|
+
onClick: (x) => g(z.value)
|
|
3739
3739
|
}, {
|
|
3740
3740
|
default: v(() => [
|
|
3741
|
-
|
|
3741
|
+
Q(E(h(r)("filter.clearButtonText")), 1)
|
|
3742
3742
|
]),
|
|
3743
3743
|
_: 2
|
|
3744
3744
|
}, 1032, ["onClick"])
|
|
@@ -3751,7 +3751,7 @@ const Di = {
|
|
|
3751
3751
|
actionButton: v(() => [
|
|
3752
3752
|
j(w, { onClick: k }, {
|
|
3753
3753
|
default: v(() => [
|
|
3754
|
-
|
|
3754
|
+
Q(E(h(r)("filter.clearAllButtonText")), 1)
|
|
3755
3755
|
]),
|
|
3756
3756
|
_: 1
|
|
3757
3757
|
})
|
|
@@ -3763,7 +3763,7 @@ const Di = {
|
|
|
3763
3763
|
]));
|
|
3764
3764
|
};
|
|
3765
3765
|
}
|
|
3766
|
-
}),
|
|
3766
|
+
}), Vs = /* @__PURE__ */ ke(Us, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ie({
|
|
3767
3767
|
__name: "PermissionsWrapper",
|
|
3768
3768
|
props: {
|
|
3769
3769
|
/**
|
|
@@ -3785,24 +3785,24 @@ const Di = {
|
|
|
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(() => 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 ? Z(o.$slots, "default", {
|
|
3792
3792
|
key: 0,
|
|
3793
3793
|
isAllowed: t.value
|
|
3794
3794
|
}) : G("", !0);
|
|
3795
3795
|
}
|
|
3796
|
-
}),
|
|
3796
|
+
}), Ds = { class: "form-section-wrapper" }, Rs = {
|
|
3797
3797
|
key: 0,
|
|
3798
3798
|
class: "form-section-title"
|
|
3799
|
-
},
|
|
3799
|
+
}, Gs = {
|
|
3800
3800
|
key: 1,
|
|
3801
3801
|
class: "form-section-description"
|
|
3802
|
-
},
|
|
3802
|
+
}, Hs = {
|
|
3803
3803
|
key: 2,
|
|
3804
3804
|
class: "form-section-footer"
|
|
3805
|
-
},
|
|
3805
|
+
}, zs = { class: "form-section-content" }, Ys = /* @__PURE__ */ ie({
|
|
3806
3806
|
__name: "EntityFormSection",
|
|
3807
3807
|
props: {
|
|
3808
3808
|
title: {
|
|
@@ -3829,34 +3829,34 @@ const Di = {
|
|
|
3829
3829
|
setup(e) {
|
|
3830
3830
|
const n = ut();
|
|
3831
3831
|
return (t, r) => (f(), A("fieldset", {
|
|
3832
|
-
class:
|
|
3832
|
+
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3833
3833
|
}, [
|
|
3834
|
-
|
|
3834
|
+
P("div", Ds, [
|
|
3835
3835
|
e.hideInfoHeader ? G("", !0) : (f(), A("div", {
|
|
3836
3836
|
key: 0,
|
|
3837
|
-
class:
|
|
3837
|
+
class: Ke(["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", Rs, E(e.title), 1)) : G("", !0),
|
|
3840
|
+
e.description || h(n).description ? (f(), A("div", Gs, [
|
|
3841
|
+
Z(t.$slots, "description", {}, () => [
|
|
3842
|
+
P("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", Hs, [
|
|
3846
|
+
Z(t.$slots, "footer", {}, void 0, !0)
|
|
3847
3847
|
])) : G("", !0)
|
|
3848
3848
|
], 2)),
|
|
3849
|
-
|
|
3850
|
-
|
|
3849
|
+
P("div", zs, [
|
|
3850
|
+
Z(t.$slots, "default", {}, void 0, !0)
|
|
3851
3851
|
])
|
|
3852
3852
|
])
|
|
3853
3853
|
], 2));
|
|
3854
3854
|
}
|
|
3855
|
-
}), un = /* @__PURE__ */
|
|
3856
|
-
const
|
|
3855
|
+
}), un = /* @__PURE__ */ ke(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Js, useErrors: Ws, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: or, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl } = de;
|
|
3856
|
+
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3857
3857
|
key: 0,
|
|
3858
3858
|
class: "kong-ui-entity-add-to-groups-error"
|
|
3859
|
-
},
|
|
3859
|
+
}, tl = { key: 0 }, nl = /* @__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 Zs = { class: "add-to-group-form-container" }, Qs = { 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 q;
|
|
3877
3877
|
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Ft({
|
|
3878
|
-
headers: (
|
|
3878
|
+
headers: (q = t.config) == null ? void 0 : q.requestHeaders
|
|
3879
3879
|
}), a = F([]), {
|
|
3880
3880
|
debouncedQueryChange: i,
|
|
3881
3881
|
loading: s,
|
|
@@ -3891,77 +3891,77 @@ const Zs = { class: "add-to-group-form-container" }, Qs = { class: "add-to-group
|
|
|
3891
3891
|
fetchedItemsKey: "data",
|
|
3892
3892
|
searchKeys: ["name", "id"]
|
|
3893
3893
|
}
|
|
3894
|
-
), m =
|
|
3894
|
+
), m = T(() => c.value ? r("consumer_groups.errors.general") : ""), g = F(0), k = T(() => l.value === void 0), _ = T(() => 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 M;
|
|
3902
|
+
const O = k.value ? u.value.find((K) => K.id === x) : (M = l.value) == null ? void 0 : M.find((K) => K.id === x);
|
|
3903
|
+
return O ? O.name : x;
|
|
3904
3904
|
}, C = () => {
|
|
3905
|
-
|
|
3906
|
-
}, y = F([]), w = F(!1),
|
|
3905
|
+
V.value = "", y.value = [], I.value = [], n("cancel");
|
|
3906
|
+
}, y = F([]), w = F(!1), V = F(""), H = async () => {
|
|
3907
3907
|
if (!a.value.length) {
|
|
3908
|
-
|
|
3908
|
+
V.value = "", I.value = [], n("cancel");
|
|
3909
3909
|
return;
|
|
3910
3910
|
}
|
|
3911
|
-
w.value = !0,
|
|
3911
|
+
w.value = !0, V.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((K) => z(K)), O = await Promise.allSettled(x);
|
|
3914
|
+
let M = !0;
|
|
3915
|
+
O.forEach((K) => {
|
|
3916
|
+
K.status !== "fulfilled" && (M = !1);
|
|
3917
|
+
}), M ? (y.value = [], I.value = [], n("add:success", a.value), a.value = []) : (y.value.length && n("add:partial-success", y.value), a.value = [], D(O));
|
|
3918
3918
|
} catch {
|
|
3919
|
-
|
|
3919
|
+
V.value = r("consumer_groups.errors.add"), n("error", V.value);
|
|
3920
3920
|
} finally {
|
|
3921
3921
|
w.value = !1;
|
|
3922
3922
|
}
|
|
3923
|
-
},
|
|
3924
|
-
var
|
|
3923
|
+
}, re = T(() => {
|
|
3924
|
+
var O, M, K, J;
|
|
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, ((O = t.config) == null ? void 0 : O.controlPlaneId) || "").replace(/{consumerId}/gi, ((M = t.config) == null ? void 0 : M.consumerId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (K = t.config) != null && K.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), x;
|
|
3927
|
+
}), z = async (x) => {
|
|
3928
|
+
const O = {
|
|
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 M = await o.post(re.value, O);
|
|
3933
|
+
return y.value.push(x), M;
|
|
3934
|
+
} catch (M) {
|
|
3935
|
+
let K = `${p(x)} - ${M.message}`;
|
|
3936
|
+
return M.response.status === 409 && (K = `${p(x)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(K));
|
|
3937
3937
|
}
|
|
3938
3938
|
}, I = F([]), D = (x) => {
|
|
3939
|
-
I.value = x.map((
|
|
3940
|
-
var
|
|
3941
|
-
return (
|
|
3939
|
+
I.value = x.map((O) => {
|
|
3940
|
+
var M;
|
|
3941
|
+
return (M = O.reason) == null ? void 0 : M.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 }), Qe(async () => {
|
|
3947
3947
|
await d();
|
|
3948
|
-
}), (x,
|
|
3949
|
-
const
|
|
3950
|
-
return f(),
|
|
3948
|
+
}), (x, O) => {
|
|
3949
|
+
const M = N("KMultiselect"), K = N("KAlert"), J = N("KPrompt");
|
|
3950
|
+
return f(), U(J, {
|
|
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: H
|
|
3958
3958
|
}, {
|
|
3959
3959
|
"body-content": v(() => [
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
j(
|
|
3960
|
+
P("div", Qs, [
|
|
3961
|
+
P("p", Xs, E(h(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
3962
|
+
j(M, {
|
|
3963
3963
|
modelValue: a.value,
|
|
3964
|
-
"onUpdate:modelValue":
|
|
3964
|
+
"onUpdate:modelValue": O[0] || (O[0] = (X) => a.value = X),
|
|
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 Zs = { class: "add-to-group-form-container" }, Qs = { 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
|
+
V.value || m.value || I.value.length ? (f(), A("div", el, [
|
|
3978
|
+
j(K, { appearance: "danger" }, {
|
|
3979
3979
|
alertMessage: v(() => [
|
|
3980
|
-
|
|
3981
|
-
I.value.length ? (f(), A("ul",
|
|
3982
|
-
(f(!0), A(ve, null, ye(I.value, (
|
|
3980
|
+
P("p", null, E(h(r)("consumer_groups.errors.add")), 1),
|
|
3981
|
+
I.value.length ? (f(), A("ul", tl, [
|
|
3982
|
+
(f(!0), A(ve, null, ye(I.value, (X, ee) => (f(), A("li", { key: ee }, E(X), 1))), 128))
|
|
3983
3983
|
])) : G("", !0),
|
|
3984
|
-
|
|
3984
|
+
P("div", null, E(V.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
|
+
}, rl = /* @__PURE__ */ Kt(nl, [["__scopeId", "data-v-4d30f3c5"]]), ol = { class: "kong-ui-entities-consumer-groups-list" }, al = { key: 1 }, il = /* @__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(() => !!t.config.consumerId), c = T(() => 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 = ($) => ({
|
|
4050
|
+
"data-testid": $.username ?? $.custom_id ?? $.id
|
|
4051
|
+
}), g = T(() => {
|
|
4052
|
+
var Y, ue, Ce, Ee;
|
|
4053
|
+
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4054
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4055
|
+
}), k = F(""), _ = T(() => {
|
|
4056
|
+
const $ = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4057
|
+
return $ ? {
|
|
4058
|
+
isExactMatch: $,
|
|
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: $,
|
|
4066
4066
|
fields: {
|
|
4067
4067
|
name: d.name
|
|
4068
4068
|
},
|
|
4069
4069
|
schema: t.config.filterSchema
|
|
4070
4070
|
};
|
|
4071
|
-
}), { fetcher:
|
|
4071
|
+
}), p = T(() => l.value ? "consumer_groups" : void 0), { fetcher: C, fetcherState: y } = Zs(t.config, g.value, p.value), w = () => {
|
|
4072
4072
|
k.value = "";
|
|
4073
|
-
},
|
|
4073
|
+
}, V = () => {
|
|
4074
4074
|
s.value++;
|
|
4075
|
-
},
|
|
4076
|
-
const ue =
|
|
4077
|
-
if (!
|
|
4075
|
+
}, H = F(""), re = ($, Y) => {
|
|
4076
|
+
const ue = $.id;
|
|
4077
|
+
if (!Y(ue)) {
|
|
4078
4078
|
n("copy:error", {
|
|
4079
|
-
entity:
|
|
4079
|
+
entity: $,
|
|
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: $,
|
|
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
|
+
}, z = ($, Y) => {
|
|
4091
|
+
const ue = JSON.stringify($);
|
|
4092
|
+
if (!Y(ue)) {
|
|
4093
4093
|
n("copy:error", {
|
|
4094
|
-
entity:
|
|
4094
|
+
entity: $,
|
|
4095
4095
|
message: o("consumer_groups.errors.copy")
|
|
4096
4096
|
});
|
|
4097
4097
|
return;
|
|
4098
4098
|
}
|
|
4099
4099
|
n("copy:success", {
|
|
4100
|
-
entity:
|
|
4100
|
+
entity: $,
|
|
4101
4101
|
message: o("consumer_groups.copy.success_brief")
|
|
4102
4102
|
});
|
|
4103
|
-
},
|
|
4103
|
+
}, I = async ($) => {
|
|
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, $)) && a.push(t.config.getViewRoute($.id));
|
|
4106
|
+
}, D = ($) => ({
|
|
4107
4107
|
label: o("consumer_groups.actions.view"),
|
|
4108
|
-
to: t.config.getViewRoute(
|
|
4109
|
-
}),
|
|
4108
|
+
to: t.config.getViewRoute($)
|
|
4109
|
+
}), q = ($) => ({
|
|
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($)
|
|
4112
|
+
}), x = F(void 0), O = F(!1), M = F(!1), K = F(""), J = Js(t.config, g.value), X = ($) => {
|
|
4113
|
+
x.value = $, O.value = !0;
|
|
4114
|
+
}, ee = () => {
|
|
4115
|
+
O.value = !1;
|
|
4116
|
+
}, te = async () => {
|
|
4117
|
+
var $, Y, ue;
|
|
4118
|
+
if (($ = x.value) != null && $.id) {
|
|
4119
4119
|
M.value = !0;
|
|
4120
4120
|
try {
|
|
4121
|
-
await i.delete(
|
|
4122
|
-
} catch (
|
|
4123
|
-
|
|
4121
|
+
await i.delete(J(x.value.id)), M.value = !1, O.value = !1, s.value++, n("delete:success", x.value);
|
|
4122
|
+
} catch (Ce) {
|
|
4123
|
+
K.value = ((ue = (Y = Ce.response) == null ? void 0 : Y.data) == null ? void 0 : ue.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
|
|
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
|
+
}, se = F(!1), De = () => {
|
|
4129
|
+
se.value = !0;
|
|
4130
|
+
}, b = () => {
|
|
4131
|
+
se.value = !1;
|
|
4132
|
+
}, B = ($, Y) => {
|
|
4133
|
+
Y || b(), s.value++, n("add:success", $);
|
|
4134
|
+
}, oe = () => {
|
|
4135
|
+
l.value && De();
|
|
4136
|
+
}, L = F(void 0), R = F(!1), ge = F(""), _e = ($) => {
|
|
4137
|
+
L.value = $, R.value = !0;
|
|
4138
|
+
}, ce = () => {
|
|
4139
|
+
R.value = !1, L.value = void 0;
|
|
4140
|
+
}, Be = T(() => {
|
|
4141
|
+
var Y, ue, Ce, Ee;
|
|
4142
|
+
let $ = `${t.config.apiBaseUrl}${Te.list[t.config.app].oneForConsumer}`;
|
|
4143
|
+
return t.config.app === "konnect" ? $ = $.replace(/{controlPlaneId}/gi, ((Y = t.config) == null ? void 0 : Y.controlPlaneId) || "").replace(/{consumerId}/gi, ((ue = t.config) == null ? void 0 : ue.consumerId) || "") : t.config.app === "kongManager" && ($ = $.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), $;
|
|
4144
|
+
}), Re = F(!1), ar = async () => {
|
|
4145
|
+
if (L.value) {
|
|
4146
|
+
Re.value = !0;
|
|
4147
4147
|
try {
|
|
4148
|
-
const
|
|
4149
|
-
await i.delete(
|
|
4150
|
-
} catch (
|
|
4151
|
-
|
|
4148
|
+
const $ = Be.value.replace(/{consumerGroupId}/gi, L.value.id);
|
|
4149
|
+
await i.delete($), n("remove:success", L.value), ce(), s.value++;
|
|
4150
|
+
} catch ($) {
|
|
4151
|
+
ge.value = $.message || o("consumer_groups.errors.delete"), n("error", $);
|
|
4152
4152
|
} finally {
|
|
4153
|
-
|
|
4153
|
+
Re.value = !1;
|
|
4154
4154
|
}
|
|
4155
4155
|
}
|
|
4156
4156
|
};
|
|
4157
|
-
Oe(
|
|
4158
|
-
if (
|
|
4159
|
-
|
|
4157
|
+
Oe(y, ($) => {
|
|
4158
|
+
if ($.status === je.Error) {
|
|
4159
|
+
H.value = o("consumer_groups.errors.general"), n("error", $.error);
|
|
4160
4160
|
return;
|
|
4161
4161
|
}
|
|
4162
|
-
|
|
4162
|
+
H.value = "";
|
|
4163
4163
|
});
|
|
4164
4164
|
const pt = F({
|
|
4165
4165
|
ctaPath: l.value ? void 0 : t.config.createRoute,
|
|
@@ -4167,35 +4167,36 @@ 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 Qe(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
|
+
}), ($, Y) => {
|
|
4173
|
+
const ue = N("KButton"), Ce = N("KBadge"), Ee = N("KTruncate"), Ge = N("KDropdownItem"), Nt = N("KClipboardProvider"), ir = N("KPrompt");
|
|
4174
|
+
return f(), A("div", ol, [
|
|
4175
|
+
j(h(Is), {
|
|
4176
4176
|
"cache-identifier": e.cacheIdentifier,
|
|
4177
|
+
"disable-pagination": l.value,
|
|
4177
4178
|
"disable-pagination-page-jump": "",
|
|
4178
4179
|
"disable-sorting": c.value,
|
|
4179
4180
|
"empty-state-options": pt.value,
|
|
4180
4181
|
"enable-entity-actions": "",
|
|
4181
|
-
"error-message":
|
|
4182
|
-
fetcher: h(
|
|
4182
|
+
"error-message": H.value,
|
|
4183
|
+
fetcher: h(C),
|
|
4183
4184
|
"fetcher-cache-key": s.value,
|
|
4184
4185
|
"pagination-type": "offset",
|
|
4185
4186
|
"preferences-storage-key": "kong-ui-entities-consumer-groups-list",
|
|
4186
4187
|
query: k.value,
|
|
4187
4188
|
"row-attributes": m,
|
|
4188
4189
|
"table-headers": h(u),
|
|
4189
|
-
onClearSearchInput:
|
|
4190
|
-
"onClick:row":
|
|
4191
|
-
onEmptyStateCtaClicked:
|
|
4192
|
-
onSort:
|
|
4190
|
+
onClearSearchInput: w,
|
|
4191
|
+
"onClick:row": Y[3] || (Y[3] = (W) => I(W)),
|
|
4192
|
+
onEmptyStateCtaClicked: oe,
|
|
4193
|
+
onSort: V
|
|
4193
4194
|
}, {
|
|
4194
4195
|
"toolbar-filter": v(() => [
|
|
4195
|
-
l.value ? G("", !0) : (f(),
|
|
4196
|
+
l.value ? G("", !0) : (f(), U(h(Vs), {
|
|
4196
4197
|
key: 0,
|
|
4197
4198
|
modelValue: k.value,
|
|
4198
|
-
"onUpdate:modelValue":
|
|
4199
|
+
"onUpdate:modelValue": Y[0] || (Y[0] = (W) => k.value = W),
|
|
4199
4200
|
config: _.value
|
|
4200
4201
|
}, null, 8, ["modelValue", "config"]))
|
|
4201
4202
|
]),
|
|
@@ -4209,10 +4210,10 @@ const Kt = (e, n) => {
|
|
|
4209
4210
|
"data-testid": "toolbar-add-consumer-group",
|
|
4210
4211
|
icon: "plus",
|
|
4211
4212
|
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4212
|
-
onClick:
|
|
4213
|
+
onClick: Y[1] || (Y[1] = () => e.config.consumerId ? De() : void 0)
|
|
4213
4214
|
}, {
|
|
4214
4215
|
default: v(() => [
|
|
4215
|
-
|
|
4216
|
+
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.add_to_group") : h(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4216
4217
|
]),
|
|
4217
4218
|
_: 1
|
|
4218
4219
|
}, 8, ["to"])
|
|
@@ -4220,52 +4221,52 @@ const Kt = (e, n) => {
|
|
|
4220
4221
|
_: 1
|
|
4221
4222
|
}, 8, ["auth-function"])
|
|
4222
4223
|
]),
|
|
4223
|
-
name: v(({ rowValue:
|
|
4224
|
-
|
|
4224
|
+
name: v(({ rowValue: W }) => [
|
|
4225
|
+
P("b", null, E(W ?? "-"), 1)
|
|
4225
4226
|
]),
|
|
4226
|
-
consumers_count: v(({ rowValue:
|
|
4227
|
-
|
|
4227
|
+
consumers_count: v(({ rowValue: W }) => [
|
|
4228
|
+
Q(E(W ?? "-"), 1)
|
|
4228
4229
|
]),
|
|
4229
|
-
tags: v(({ rowValue:
|
|
4230
|
-
(
|
|
4230
|
+
tags: v(({ rowValue: W }) => [
|
|
4231
|
+
(W == null ? void 0 : W.length) > 0 ? (f(), U(Ee, { key: 0 }, {
|
|
4231
4232
|
default: v(() => [
|
|
4232
|
-
(f(!0), A(ve, null, ye(
|
|
4233
|
-
key:
|
|
4234
|
-
onClick:
|
|
4233
|
+
(f(!0), A(ve, null, ye(W, (Ne) => (f(), U(Ce, {
|
|
4234
|
+
key: Ne,
|
|
4235
|
+
onClick: Y[2] || (Y[2] = rt(() => {
|
|
4235
4236
|
}, ["stop"]))
|
|
4236
4237
|
}, {
|
|
4237
4238
|
default: v(() => [
|
|
4238
|
-
|
|
4239
|
+
Q(E(Ne), 1)
|
|
4239
4240
|
]),
|
|
4240
4241
|
_: 2
|
|
4241
4242
|
}, 1024))), 128))
|
|
4242
4243
|
]),
|
|
4243
4244
|
_: 2
|
|
4244
|
-
}, 1024)) : (f(), A("span",
|
|
4245
|
+
}, 1024)) : (f(), A("span", al, "-"))
|
|
4245
4246
|
]),
|
|
4246
|
-
actions: v(({ row:
|
|
4247
|
-
j(
|
|
4248
|
-
default: v(({ copyToClipboard:
|
|
4249
|
-
j(
|
|
4247
|
+
actions: v(({ row: W }) => [
|
|
4248
|
+
j(Nt, null, {
|
|
4249
|
+
default: v(({ copyToClipboard: Ne }) => [
|
|
4250
|
+
j(Ge, {
|
|
4250
4251
|
"data-testid": "action-entity-copy-id",
|
|
4251
|
-
onClick: (
|
|
4252
|
+
onClick: (sr) => re(W, Ne)
|
|
4252
4253
|
}, {
|
|
4253
4254
|
default: v(() => [
|
|
4254
|
-
|
|
4255
|
+
Q(E(h(o)("consumer_groups.actions.copy_id")), 1)
|
|
4255
4256
|
]),
|
|
4256
4257
|
_: 2
|
|
4257
4258
|
}, 1032, ["onClick"])
|
|
4258
4259
|
]),
|
|
4259
4260
|
_: 2
|
|
4260
4261
|
}, 1024),
|
|
4261
|
-
j(
|
|
4262
|
-
default: v(({ copyToClipboard:
|
|
4263
|
-
j(
|
|
4262
|
+
j(Nt, null, {
|
|
4263
|
+
default: v(({ copyToClipboard: Ne }) => [
|
|
4264
|
+
j(Ge, {
|
|
4264
4265
|
"data-testid": "action-entity-copy-json",
|
|
4265
|
-
onClick: (
|
|
4266
|
+
onClick: (sr) => z(W, Ne)
|
|
4266
4267
|
}, {
|
|
4267
4268
|
default: v(() => [
|
|
4268
|
-
|
|
4269
|
+
Q(E(h(o)("consumer_groups.actions.copy_json")), 1)
|
|
4269
4270
|
]),
|
|
4270
4271
|
_: 2
|
|
4271
4272
|
}, 1032, ["onClick"])
|
|
@@ -4273,40 +4274,40 @@ const Kt = (e, n) => {
|
|
|
4273
4274
|
_: 2
|
|
4274
4275
|
}, 1024),
|
|
4275
4276
|
j(h(Xe), {
|
|
4276
|
-
"auth-function": () => e.canRetrieve(
|
|
4277
|
+
"auth-function": () => e.canRetrieve(W)
|
|
4277
4278
|
}, {
|
|
4278
4279
|
default: v(() => [
|
|
4279
|
-
j(
|
|
4280
|
+
j(Ge, {
|
|
4280
4281
|
"data-testid": "action-entity-view",
|
|
4281
4282
|
"has-divider": "",
|
|
4282
|
-
item:
|
|
4283
|
+
item: D(W.id)
|
|
4283
4284
|
}, null, 8, ["item"])
|
|
4284
4285
|
]),
|
|
4285
4286
|
_: 2
|
|
4286
4287
|
}, 1032, ["auth-function"]),
|
|
4287
4288
|
j(h(Xe), {
|
|
4288
|
-
"auth-function": () => e.canEdit(
|
|
4289
|
+
"auth-function": () => e.canEdit(W)
|
|
4289
4290
|
}, {
|
|
4290
4291
|
default: v(() => [
|
|
4291
|
-
j(
|
|
4292
|
+
j(Ge, {
|
|
4292
4293
|
"data-testid": "action-entity-edit",
|
|
4293
|
-
item:
|
|
4294
|
+
item: q(W.id)
|
|
4294
4295
|
}, null, 8, ["item"])
|
|
4295
4296
|
]),
|
|
4296
4297
|
_: 2
|
|
4297
4298
|
}, 1032, ["auth-function"]),
|
|
4298
4299
|
j(h(Xe), {
|
|
4299
|
-
"auth-function": () => e.canDelete(
|
|
4300
|
+
"auth-function": () => e.canDelete(W)
|
|
4300
4301
|
}, {
|
|
4301
4302
|
default: v(() => [
|
|
4302
|
-
j(
|
|
4303
|
+
j(Ge, {
|
|
4303
4304
|
"data-testid": "action-entity-delete",
|
|
4304
4305
|
"has-divider": "",
|
|
4305
4306
|
"is-dangerous": "",
|
|
4306
|
-
onClick: () => e.config.consumerId ?
|
|
4307
|
+
onClick: () => e.config.consumerId ? _e(W) : X(W)
|
|
4307
4308
|
}, {
|
|
4308
4309
|
default: v(() => [
|
|
4309
|
-
|
|
4310
|
+
Q(E(e.config.consumerId ? h(o)("consumer_groups.actions.exit") : h(o)("consumer_groups.actions.delete")), 1)
|
|
4310
4311
|
]),
|
|
4311
4312
|
_: 2
|
|
4312
4313
|
}, 1032, ["onClick"])
|
|
@@ -4315,36 +4316,36 @@ const Kt = (e, n) => {
|
|
|
4315
4316
|
}, 1032, ["auth-function"])
|
|
4316
4317
|
]),
|
|
4317
4318
|
_: 1
|
|
4318
|
-
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4319
|
-
j(h(
|
|
4319
|
+
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4320
|
+
j(h(Ts), {
|
|
4320
4321
|
"action-pending": M.value,
|
|
4321
4322
|
"data-testid": "delete-consumer-group-modal",
|
|
4322
4323
|
description: h(o)("consumer_groups.delete.description"),
|
|
4323
|
-
"entity-name":
|
|
4324
|
+
"entity-name": x.value && (x.value.name || x.value.id),
|
|
4324
4325
|
"entity-type": h(dn).ConsumerGroup,
|
|
4325
|
-
error:
|
|
4326
|
+
error: K.value,
|
|
4326
4327
|
title: h(o)("consumer_groups.delete.title"),
|
|
4327
|
-
visible:
|
|
4328
|
-
onCancel:
|
|
4329
|
-
onProceed:
|
|
4328
|
+
visible: O.value,
|
|
4329
|
+
onCancel: ee,
|
|
4330
|
+
onProceed: te
|
|
4330
4331
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4331
|
-
e.config.consumerId ? (f(),
|
|
4332
|
+
e.config.consumerId ? (f(), U(rl, {
|
|
4332
4333
|
key: 0,
|
|
4333
4334
|
config: e.config,
|
|
4334
4335
|
"data-testid": "add-to-group-modal",
|
|
4335
|
-
visible:
|
|
4336
|
-
"onAdd:partialSuccess":
|
|
4337
|
-
"onAdd:success":
|
|
4338
|
-
onCancel:
|
|
4336
|
+
visible: se.value,
|
|
4337
|
+
"onAdd:partialSuccess": Y[4] || (Y[4] = (W) => B(W, !0)),
|
|
4338
|
+
"onAdd:success": Y[5] || (Y[5] = (W) => B(W)),
|
|
4339
|
+
onCancel: b
|
|
4339
4340
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4340
|
-
e.config.consumerId &&
|
|
4341
|
+
e.config.consumerId && L.value ? (f(), U(ir, {
|
|
4341
4342
|
key: 1,
|
|
4342
4343
|
"data-testid": "exit-group-modal",
|
|
4343
|
-
"is-visible":
|
|
4344
|
+
"is-visible": R.value,
|
|
4344
4345
|
title: h(o)("consumer_groups.consumers.exit.title"),
|
|
4345
4346
|
type: "danger",
|
|
4346
|
-
onCanceled:
|
|
4347
|
-
onProceed:
|
|
4347
|
+
onCanceled: ce,
|
|
4348
|
+
onProceed: ar
|
|
4348
4349
|
}, {
|
|
4349
4350
|
"body-content": v(() => [
|
|
4350
4351
|
j(h(r), {
|
|
@@ -4353,19 +4354,19 @@ const Kt = (e, n) => {
|
|
|
4353
4354
|
tag: "p"
|
|
4354
4355
|
}, Se({
|
|
4355
4356
|
consumerGroup: v(() => [
|
|
4356
|
-
|
|
4357
|
+
P("strong", null, E(L.value.name || L.value.id), 1)
|
|
4357
4358
|
]),
|
|
4358
4359
|
_: 2
|
|
4359
4360
|
}, [
|
|
4360
4361
|
e.config.consumerUsername ? {
|
|
4361
4362
|
name: "consumer",
|
|
4362
4363
|
fn: v(() => [
|
|
4363
|
-
|
|
4364
|
+
P("strong", null, E(e.config.consumerUsername), 1)
|
|
4364
4365
|
]),
|
|
4365
4366
|
key: "0"
|
|
4366
4367
|
} : void 0
|
|
4367
4368
|
]), 1032, ["keypath"]),
|
|
4368
|
-
|
|
4369
|
+
P("p", null, E(h(o)("consumer_groups.consumers.exit.description")), 1)
|
|
4369
4370
|
]),
|
|
4370
4371
|
_: 1
|
|
4371
4372
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4373,10 +4374,10 @@ const Kt = (e, n) => {
|
|
|
4373
4374
|
};
|
|
4374
4375
|
}
|
|
4375
4376
|
});
|
|
4376
|
-
const
|
|
4377
|
+
const kl = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
|
|
4377
4378
|
key: 0,
|
|
4378
4379
|
class: "select-item-desc"
|
|
4379
|
-
},
|
|
4380
|
+
}, cl = /* @__PURE__ */ ie({
|
|
4380
4381
|
__name: "ConsumerGroupForm",
|
|
4381
4382
|
props: {
|
|
4382
4383
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4394,8 +4395,8 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4394
4395
|
},
|
|
4395
4396
|
emits: ["update", "error", "loading"],
|
|
4396
4397
|
setup(e, { emit: n }) {
|
|
4397
|
-
var
|
|
4398
|
-
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a =
|
|
4398
|
+
var te, se, De;
|
|
4399
|
+
const t = e, { i18n: { t: r } } = ct.useI18n(), o = wt(), a = Lt({
|
|
4399
4400
|
fields: {
|
|
4400
4401
|
name: "",
|
|
4401
4402
|
tags: "",
|
|
@@ -4403,7 +4404,7 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4403
4404
|
},
|
|
4404
4405
|
errorMessage: "",
|
|
4405
4406
|
readonly: !1
|
|
4406
|
-
}), i =
|
|
4407
|
+
}), i = Lt({
|
|
4407
4408
|
name: "",
|
|
4408
4409
|
tags: "",
|
|
4409
4410
|
consumers: []
|
|
@@ -4413,128 +4414,128 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4413
4414
|
error: c,
|
|
4414
4415
|
loadItems: d,
|
|
4415
4416
|
results: u
|
|
4416
|
-
} = or(t.config, (
|
|
4417
|
+
} = or(t.config, (se = Te.form[(te = t.config) == null ? void 0 : te.app]) == null ? void 0 : se.consumersList, "", {
|
|
4417
4418
|
fetchedItemsKey: "data",
|
|
4418
4419
|
searchKeys: ["username", "custom_id"]
|
|
4419
4420
|
}), { axiosInstance: m } = Ft({
|
|
4420
4421
|
headers: (De = t.config) == null ? void 0 : De.requestHeaders
|
|
4421
|
-
}), { getMessageFromError: g } =
|
|
4422
|
+
}), { getMessageFromError: g } = Ws(), k = T(() => u.value.map((b) => ({
|
|
4422
4423
|
label: b.username || b.custom_id,
|
|
4423
4424
|
value: b.id,
|
|
4424
4425
|
selected: a.fields.consumers.includes(b.id),
|
|
4425
4426
|
data: b
|
|
4426
4427
|
// we need this to determine whether or not to show the description text
|
|
4427
|
-
}))), _ =
|
|
4428
|
-
var b,
|
|
4429
|
-
return (
|
|
4430
|
-
}), p =
|
|
4431
|
-
var R, ge,
|
|
4432
|
-
let
|
|
4433
|
-
return ((
|
|
4434
|
-
},
|
|
4428
|
+
}))), _ = T(() => {
|
|
4429
|
+
var b, B;
|
|
4430
|
+
return (B = Te.form[(b = t.config) == null ? void 0 : b.app]) == null ? void 0 : B.edit;
|
|
4431
|
+
}), p = T(() => t.consumerGroupId ? nt.Edit : nt.Create), C = T(() => !!a.fields.name && !I.value), y = T(() => JSON.stringify(a.fields) !== JSON.stringify(i)), w = (b, B = "", oe = "") => {
|
|
4432
|
+
var R, ge, _e, ce, Be, Re;
|
|
4433
|
+
let L = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Te.form[(ge = t.config) == null ? void 0 : ge.app][b]}`;
|
|
4434
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? L = L.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (L = L.replace(/\/{workspace}/gi, (Re = t.config) != null && Re.workspace ? `/${t.config.workspace}` : "")), L = L.replace(/{id}/gi, B || t.consumerGroupId), (b === "addConsumer" || b === "removeConsumer") && (L = L.replace(/{consumerId}/gi, oe)), L;
|
|
4435
|
+
}, V = () => {
|
|
4435
4436
|
var b;
|
|
4436
4437
|
o.push(((b = t.config) == null ? void 0 : b.cancelRoute) || { name: "consumer-group-list" });
|
|
4437
|
-
},
|
|
4438
|
+
}, H = (b) => {
|
|
4438
4439
|
n("error", b);
|
|
4439
|
-
},
|
|
4440
|
+
}, re = (b) => {
|
|
4440
4441
|
n("loading", b);
|
|
4441
|
-
},
|
|
4442
|
-
var
|
|
4443
|
-
a.fields.name = ((
|
|
4444
|
-
const
|
|
4445
|
-
if (a.fields.tags = (
|
|
4446
|
-
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((
|
|
4442
|
+
}, z = async (b) => {
|
|
4443
|
+
var oe, L, R, ge, _e;
|
|
4444
|
+
a.fields.name = ((oe = b == null ? void 0 : b.item) == null ? void 0 : oe.name) || ((L = b == null ? void 0 : b.consumer_group) == null ? void 0 : L.name) || (b == null ? void 0 : b.name) || "";
|
|
4445
|
+
const B = ((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) || [];
|
|
4446
|
+
if (a.fields.tags = (B == null ? void 0 : B.join(", ")) || "", "consumers" in b)
|
|
4447
|
+
a.fields.consumers = ((ge = b == null ? void 0 : b.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4447
4448
|
else
|
|
4448
4449
|
try {
|
|
4449
|
-
const { data:
|
|
4450
|
-
a.fields.consumers = "consumers" in
|
|
4451
|
-
} catch (
|
|
4452
|
-
|
|
4450
|
+
const { data: ce } = await m.get(w("getConsumers"));
|
|
4451
|
+
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Be) => Be.id) : [];
|
|
4452
|
+
} catch (ce) {
|
|
4453
|
+
O(ce);
|
|
4453
4454
|
}
|
|
4454
4455
|
Object.assign(i, a.fields);
|
|
4455
|
-
}, I =
|
|
4456
|
-
var b,
|
|
4456
|
+
}, I = T(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), D = () => {
|
|
4457
|
+
var b, B;
|
|
4457
4458
|
return {
|
|
4458
4459
|
name: a.fields.name,
|
|
4459
|
-
tags: (
|
|
4460
|
+
tags: (B = (b = a.fields.tags.split(",")) == null ? void 0 : b.map((oe) => String(oe || "").trim())) == null ? void 0 : B.filter((oe) => oe !== "")
|
|
4460
4461
|
};
|
|
4461
|
-
},
|
|
4462
|
+
}, q = async (b, B = "") => await m.post(w("addConsumer", B, b), { consumer: b }), x = async (b, B = "") => await m.delete(w("removeConsumer", B, b)), O = (b) => {
|
|
4462
4463
|
a.errorMessage = g(b), n("error", b);
|
|
4463
|
-
},
|
|
4464
|
+
}, M = (b = t.consumerGroupId) => {
|
|
4464
4465
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: b });
|
|
4465
|
-
},
|
|
4466
|
-
const
|
|
4467
|
-
|
|
4468
|
-
code:
|
|
4469
|
-
message:
|
|
4470
|
-
}) :
|
|
4471
|
-
},
|
|
4466
|
+
}, K = (b, B, oe = t.consumerGroupId) => {
|
|
4467
|
+
const L = b == null ? void 0 : b.find((R) => R.status !== "fulfilled");
|
|
4468
|
+
L ? O({
|
|
4469
|
+
code: L.status,
|
|
4470
|
+
message: B
|
|
4471
|
+
}) : M(oe);
|
|
4472
|
+
}, J = async () => {
|
|
4472
4473
|
let b = "";
|
|
4473
4474
|
try {
|
|
4474
|
-
const { data:
|
|
4475
|
-
b = "item" in
|
|
4476
|
-
} catch (
|
|
4477
|
-
|
|
4475
|
+
const { data: B } = await m.post(w("create"), D());
|
|
4476
|
+
b = "item" in B ? B.item.id : B.id;
|
|
4477
|
+
} catch (B) {
|
|
4478
|
+
O(B);
|
|
4478
4479
|
}
|
|
4479
4480
|
if (a.fields.consumers.length > 0 && b)
|
|
4480
4481
|
try {
|
|
4481
|
-
const
|
|
4482
|
-
|
|
4483
|
-
} catch (
|
|
4484
|
-
|
|
4482
|
+
const B = a.fields.consumers.map((L) => q(L, b)), oe = await Promise.allSettled(B);
|
|
4483
|
+
K(oe, r("consumer_groups.errors.add_consumer"), b);
|
|
4484
|
+
} catch (B) {
|
|
4485
|
+
O(B);
|
|
4485
4486
|
}
|
|
4486
4487
|
else
|
|
4487
|
-
a.fields.consumers.length === 0 && b &&
|
|
4488
|
-
},
|
|
4489
|
-
var
|
|
4488
|
+
a.fields.consumers.length === 0 && b && M(b);
|
|
4489
|
+
}, X = async () => {
|
|
4490
|
+
var oe;
|
|
4490
4491
|
try {
|
|
4491
|
-
((
|
|
4492
|
-
} catch (
|
|
4493
|
-
|
|
4492
|
+
((oe = t.config) == null ? void 0 : oe.app) === "konnect" ? await m.put(w("edit"), D()) : await m.patch(w("edit"), D());
|
|
4493
|
+
} catch (L) {
|
|
4494
|
+
O(L);
|
|
4494
4495
|
}
|
|
4495
|
-
const b = a.fields.consumers.filter((
|
|
4496
|
-
if (
|
|
4497
|
-
|
|
4496
|
+
const b = a.fields.consumers.filter((L) => !i.consumers.includes(L)), B = i.consumers.filter((L) => !a.fields.consumers.includes(L));
|
|
4497
|
+
if (B.length === 0 && b.length === 0)
|
|
4498
|
+
M();
|
|
4498
4499
|
else {
|
|
4499
|
-
if (
|
|
4500
|
+
if (B.length > 0)
|
|
4500
4501
|
try {
|
|
4501
|
-
const
|
|
4502
|
-
|
|
4503
|
-
} catch (
|
|
4504
|
-
|
|
4502
|
+
const L = B.map((ge) => x(ge)), R = await Promise.allSettled(L);
|
|
4503
|
+
K(R, r("consumer_groups.errors.remove_consumer"));
|
|
4504
|
+
} catch (L) {
|
|
4505
|
+
O(L);
|
|
4505
4506
|
}
|
|
4506
4507
|
if (b.length > 0)
|
|
4507
4508
|
try {
|
|
4508
|
-
const
|
|
4509
|
-
|
|
4510
|
-
} catch (
|
|
4511
|
-
|
|
4509
|
+
const L = b.map((ge) => q(ge)), R = await Promise.allSettled(L);
|
|
4510
|
+
K(R, r("consumer_groups.errors.add_consumer"));
|
|
4511
|
+
} catch (L) {
|
|
4512
|
+
O(L);
|
|
4512
4513
|
}
|
|
4513
4514
|
}
|
|
4514
|
-
},
|
|
4515
|
+
}, ee = async () => {
|
|
4515
4516
|
try {
|
|
4516
|
-
a.readonly = !0, p.value === nt.Create ? await
|
|
4517
|
+
a.readonly = !0, p.value === nt.Create ? await J() : await X();
|
|
4517
4518
|
} finally {
|
|
4518
4519
|
a.readonly = !1;
|
|
4519
4520
|
}
|
|
4520
4521
|
};
|
|
4521
|
-
return
|
|
4522
|
+
return Qe(async () => {
|
|
4522
4523
|
await d();
|
|
4523
|
-
}), (b,
|
|
4524
|
-
const
|
|
4525
|
-
return f(), A("div",
|
|
4526
|
-
j(h(
|
|
4524
|
+
}), (b, B) => {
|
|
4525
|
+
const oe = N("KInput"), L = N("KMultiselect");
|
|
4526
|
+
return f(), A("div", sl, [
|
|
4527
|
+
j(h(ys), {
|
|
4527
4528
|
"can-submit": C.value && y.value,
|
|
4528
4529
|
config: e.config,
|
|
4529
4530
|
"edit-id": e.consumerGroupId,
|
|
4530
4531
|
"error-message": a.errorMessage || h(c) || I.value,
|
|
4531
4532
|
"fetch-url": _.value,
|
|
4532
4533
|
"is-readonly": a.readonly,
|
|
4533
|
-
onCancel:
|
|
4534
|
-
"onFetch:error":
|
|
4535
|
-
"onFetch:success":
|
|
4536
|
-
onLoading:
|
|
4537
|
-
onSubmit:
|
|
4534
|
+
onCancel: V,
|
|
4535
|
+
"onFetch:error": B[3] || (B[3] = (R) => H(R)),
|
|
4536
|
+
"onFetch:success": z,
|
|
4537
|
+
onLoading: B[4] || (B[4] = (R) => re(R)),
|
|
4538
|
+
onSubmit: ee
|
|
4538
4539
|
}, {
|
|
4539
4540
|
default: v(() => [
|
|
4540
4541
|
j(h(un), {
|
|
@@ -4542,9 +4543,9 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4542
4543
|
title: h(r)("consumer_groups.form.general_info.title")
|
|
4543
4544
|
}, {
|
|
4544
4545
|
default: v(() => [
|
|
4545
|
-
j(
|
|
4546
|
+
j(oe, {
|
|
4546
4547
|
modelValue: a.fields.name,
|
|
4547
|
-
"onUpdate:modelValue":
|
|
4548
|
+
"onUpdate:modelValue": B[0] || (B[0] = (R) => a.fields.name = R),
|
|
4548
4549
|
modelModifiers: { trim: !0 },
|
|
4549
4550
|
autocomplete: "off",
|
|
4550
4551
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4553,9 +4554,9 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4553
4554
|
required: "",
|
|
4554
4555
|
type: "text"
|
|
4555
4556
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4556
|
-
j(
|
|
4557
|
+
j(oe, {
|
|
4557
4558
|
modelValue: a.fields.tags,
|
|
4558
|
-
"onUpdate:modelValue":
|
|
4559
|
+
"onUpdate:modelValue": B[1] || (B[1] = (R) => a.fields.tags = R),
|
|
4559
4560
|
modelModifiers: { trim: !0 },
|
|
4560
4561
|
autocomplete: "off",
|
|
4561
4562
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -4577,9 +4578,9 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4577
4578
|
title: h(r)("consumer_groups.form.consumers.title")
|
|
4578
4579
|
}, {
|
|
4579
4580
|
default: v(() => [
|
|
4580
|
-
j(
|
|
4581
|
+
j(L, {
|
|
4581
4582
|
modelValue: a.fields.consumers,
|
|
4582
|
-
"onUpdate:modelValue":
|
|
4583
|
+
"onUpdate:modelValue": B[2] || (B[2] = (R) => a.fields.consumers = R),
|
|
4583
4584
|
appearance: "select",
|
|
4584
4585
|
autosuggest: "",
|
|
4585
4586
|
"expand-selected": "",
|
|
@@ -4591,10 +4592,10 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4591
4592
|
onQueryChange: h(s)
|
|
4592
4593
|
}, {
|
|
4593
4594
|
"item-template": v(({ item: R }) => {
|
|
4594
|
-
var ge,
|
|
4595
|
+
var ge, _e, ce;
|
|
4595
4596
|
return [
|
|
4596
|
-
|
|
4597
|
-
(ge = R == null ? void 0 : R.data) != null && ge.username && ((
|
|
4597
|
+
P("div", ll, E(R.label), 1),
|
|
4598
|
+
(ge = R == null ? void 0 : R.data) != null && ge.username && ((_e = R == null ? void 0 : R.data) != null && _e.custom_id) ? (f(), A("div", ul, E((ce = R == null ? void 0 : R.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4598
4599
|
];
|
|
4599
4600
|
}),
|
|
4600
4601
|
_: 1
|
|
@@ -4609,7 +4610,7 @@ const Cl = /* @__PURE__ */ Kt(al, [["__scopeId", "data-v-7d1d5647"]]), il = { cl
|
|
|
4609
4610
|
};
|
|
4610
4611
|
}
|
|
4611
4612
|
});
|
|
4612
|
-
const
|
|
4613
|
+
const _l = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-2da12897"]]), dl = { class: "kong-ui-consumer-group-entity-config-card" }, wl = /* @__PURE__ */ ie({
|
|
4613
4614
|
__name: "ConsumerGroupConfigCard",
|
|
4614
4615
|
props: {
|
|
4615
4616
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4636,7 +4637,7 @@ const kl = /* @__PURE__ */ Kt(ul, [["__scopeId", "data-v-2da12897"]]), cl = { cl
|
|
|
4636
4637
|
},
|
|
4637
4638
|
emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
|
|
4638
4639
|
setup(e) {
|
|
4639
|
-
const n = e, { i18n: { t } } = ct.useI18n(), r =
|
|
4640
|
+
const n = e, { i18n: { t } } = ct.useI18n(), r = T(() => Te.form[n.config.app].edit), o = F({
|
|
4640
4641
|
id: {},
|
|
4641
4642
|
name: {},
|
|
4642
4643
|
created_at: {},
|
|
@@ -4645,8 +4646,8 @@ const kl = /* @__PURE__ */ Kt(ul, [["__scopeId", "data-v-2da12897"]]), cl = { cl
|
|
|
4645
4646
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4646
4647
|
}
|
|
4647
4648
|
});
|
|
4648
|
-
return (a, i) => (f(), A("div",
|
|
4649
|
-
j(h(
|
|
4649
|
+
return (a, i) => (f(), A("div", dl, [
|
|
4650
|
+
j(h(ps), {
|
|
4650
4651
|
config: e.config,
|
|
4651
4652
|
"config-card-doc": e.configCardDoc,
|
|
4652
4653
|
"config-schema": o.value,
|
|
@@ -4662,7 +4663,7 @@ const kl = /* @__PURE__ */ Kt(ul, [["__scopeId", "data-v-2da12897"]]), cl = { cl
|
|
|
4662
4663
|
}
|
|
4663
4664
|
});
|
|
4664
4665
|
export {
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
|
|
4666
|
+
wl as ConsumerGroupConfigCard,
|
|
4667
|
+
_l as ConsumerGroupForm,
|
|
4668
|
+
kl as ConsumerGroupList
|
|
4668
4669
|
};
|