@kong-ui-public/entities-consumer-groups 1.3.2-pr.913.9be25d8d.0 → 1.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-consumer-groups.es.js +638 -648
- package/dist/entities-consumer-groups.umd.js +10 -10
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as m, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et,
|
|
1
|
+
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as U, openBlock as m, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as F, createVNode as K, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as ze, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } 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
|
|
4
|
+
import vr from "axios";
|
|
5
|
+
import { MethodsArray as br } from "@kong/kongponents";
|
|
6
6
|
const Cr = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
@@ -95,11 +95,11 @@ const Cr = {
|
|
|
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
|
-
},
|
|
98
|
+
}, kr = {
|
|
99
99
|
consumer_groups: Cr
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function _r() {
|
|
102
|
+
const e = It("en-us", kr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function wr() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: _r
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -143,14 +143,14 @@ const ct = {
|
|
|
143
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 || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__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))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
|
-
axiosInstance:
|
|
146
|
+
axiosInstance: vr.create({
|
|
147
147
|
withCredentials: !0,
|
|
148
148
|
timeout: 3e4,
|
|
149
149
|
...e
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function wr() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -162,12 +162,12 @@ function Ir() {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const ft = "khcp-user-table-preferences",
|
|
165
|
+
const ft = "khcp-user-table-preferences", Ir = {
|
|
166
166
|
pageSize: 30,
|
|
167
167
|
sortColumnKey: void 0,
|
|
168
168
|
sortColumnOrder: void 0
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function Ar() {
|
|
171
171
|
const e = (t) => {
|
|
172
172
|
if (typeof t == "string")
|
|
173
173
|
try {
|
|
@@ -191,17 +191,17 @@ function Sr() {
|
|
|
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 || Ir;
|
|
195
195
|
},
|
|
196
196
|
deleteAllTablePreferences: () => {
|
|
197
197
|
localStorage.removeItem(ft);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const Sr = {
|
|
202
202
|
message: "Are you sure you want to delete this {entityType}?",
|
|
203
203
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
204
|
-
},
|
|
204
|
+
}, xr = {
|
|
205
205
|
actions: {
|
|
206
206
|
save: "Save",
|
|
207
207
|
cancel: "Cancel",
|
|
@@ -210,13 +210,13 @@ const xr = {
|
|
|
210
210
|
errors: {
|
|
211
211
|
edit: "The entity could not be edited at this time."
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Tr = {
|
|
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
|
+
}, $r = {
|
|
220
220
|
title: "Configuration",
|
|
221
221
|
actions: {
|
|
222
222
|
copy: "Copy JSON"
|
|
@@ -251,7 +251,7 @@ const xr = {
|
|
|
251
251
|
entryTitle: "Entry {index}",
|
|
252
252
|
structuredFormat: "Structured"
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, Mr = {
|
|
255
255
|
filterButtonText: "Filter",
|
|
256
256
|
fieldLabel: "Filter by:",
|
|
257
257
|
inputPlaceholder: "Enter a value",
|
|
@@ -259,15 +259,15 @@ const xr = {
|
|
|
259
259
|
applyButtonText: "Apply",
|
|
260
260
|
clearButtonText: "Clear",
|
|
261
261
|
clearAllButtonText: "Clear all filters"
|
|
262
|
-
},
|
|
262
|
+
}, jr = {
|
|
263
263
|
errors: {
|
|
264
264
|
fetch: "Could not fetch available items",
|
|
265
265
|
invalid: "Please select a valid value"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Er = {
|
|
268
268
|
unexpected: "An unexpected error has occurred",
|
|
269
269
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
270
|
+
}, Or = {
|
|
271
271
|
enable: {
|
|
272
272
|
title: "Enable {entityType}",
|
|
273
273
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -278,18 +278,18 @@ const xr = {
|
|
|
278
278
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
279
279
|
confirmText: "Yes, disable"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
deleteModal:
|
|
283
|
-
baseForm:
|
|
284
|
-
baseTable:
|
|
285
|
-
baseConfigCard:
|
|
286
|
-
filter:
|
|
287
|
-
debouncedFilter:
|
|
288
|
-
errors:
|
|
289
|
-
toggleModal:
|
|
281
|
+
}, Fr = {
|
|
282
|
+
deleteModal: Sr,
|
|
283
|
+
baseForm: xr,
|
|
284
|
+
baseTable: Tr,
|
|
285
|
+
baseConfigCard: $r,
|
|
286
|
+
filter: Mr,
|
|
287
|
+
debouncedFilter: jr,
|
|
288
|
+
errors: Er,
|
|
289
|
+
toggleModal: Or
|
|
290
290
|
};
|
|
291
291
|
function St() {
|
|
292
|
-
const e = It("en-us",
|
|
292
|
+
const e = It("en-us", Fr);
|
|
293
293
|
return {
|
|
294
294
|
i18n: e,
|
|
295
295
|
i18nT: cn(e)
|
|
@@ -313,54 +313,54 @@ function pn() {
|
|
|
313
313
|
isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Kr(e, n, t, r = {
|
|
317
317
|
fetchedItemsKey: "data",
|
|
318
318
|
searchKeys: ["id"]
|
|
319
319
|
}) {
|
|
320
320
|
t || (t = "100");
|
|
321
321
|
const { axiosInstance: o } = At({
|
|
322
322
|
headers: e.requestHeaders
|
|
323
|
-
}), { i18n: { t: a } } = St(), { debounce: i } =
|
|
324
|
-
await
|
|
323
|
+
}), { i18n: { t: a } } = St(), { debounce: i } = wr(), s = i(async (I) => {
|
|
324
|
+
await C(I);
|
|
325
325
|
}, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), A = y(n);
|
|
326
|
-
let
|
|
327
|
-
e.app === "konnect" ?
|
|
326
|
+
let v = `${e.apiBaseUrl}${A}`;
|
|
327
|
+
e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
328
328
|
const { isValidUuid: p } = pn(), S = async () => {
|
|
329
329
|
try {
|
|
330
330
|
l.value = !0;
|
|
331
|
-
const { data: I } = await o.get(`${
|
|
331
|
+
const { data: I } = await o.get(`${v}?size=${t}`);
|
|
332
332
|
I != null && I.next || (f.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : []), g.value = r.fetchedItemsKey in I ? I[r.fetchedItemsKey] : [], u.value = g.value;
|
|
333
333
|
} catch {
|
|
334
334
|
u.value = [], c.value = a("debouncedFilter.errors.fetch");
|
|
335
335
|
} finally {
|
|
336
336
|
l.value = !1;
|
|
337
337
|
}
|
|
338
|
-
},
|
|
338
|
+
}, b = O(""), C = async (I) => {
|
|
339
339
|
var ne, pe, H;
|
|
340
|
-
if (
|
|
341
|
-
if (
|
|
340
|
+
if (b.value !== I)
|
|
341
|
+
if (b.value = I || "", f.value === void 0)
|
|
342
342
|
try {
|
|
343
343
|
if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
344
|
-
let w =
|
|
344
|
+
let w = v + "";
|
|
345
345
|
I && (w += `/${I}`);
|
|
346
|
-
const { data:
|
|
347
|
-
r.fetchedItemsKey in
|
|
346
|
+
const { data: N } = await o.get(`${w}?size=${t}`);
|
|
347
|
+
r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
|
|
348
348
|
} else if (I) {
|
|
349
349
|
const w = [];
|
|
350
350
|
p(I) && r.searchKeys.includes("id") ? w.push((async () => {
|
|
351
|
-
const { data:
|
|
352
|
-
return [
|
|
351
|
+
const { data: k } = await o.get(`${v}/${I}`);
|
|
352
|
+
return [k[r.fetchedItemsKey] ?? k];
|
|
353
353
|
})()) : w.push(
|
|
354
|
-
...r.searchKeys.filter((
|
|
355
|
-
const { data: x } = await o.get(`${
|
|
354
|
+
...r.searchKeys.filter((k) => k !== "id").map(async (k) => {
|
|
355
|
+
const { data: x } = await o.get(`${v}?${k}=${I}`);
|
|
356
356
|
return x[r.fetchedItemsKey];
|
|
357
357
|
})
|
|
358
358
|
);
|
|
359
|
-
const
|
|
360
|
-
u.value = [], (ne =
|
|
359
|
+
const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
|
|
360
|
+
u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (k) => {
|
|
361
361
|
var x;
|
|
362
|
-
(x =
|
|
363
|
-
|
|
362
|
+
(x = k == null ? void 0 : k.forEach) == null || x.call(k, (T) => {
|
|
363
|
+
B.has(T.id) || (B.add(T.id), u.value.push(T));
|
|
364
364
|
});
|
|
365
365
|
});
|
|
366
366
|
} else
|
|
@@ -372,13 +372,13 @@ function Br(e, n, t, r = {
|
|
|
372
372
|
}
|
|
373
373
|
else
|
|
374
374
|
l.value = !0, d.value = "", I ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
|
|
375
|
-
var
|
|
376
|
-
let
|
|
377
|
-
for (const
|
|
378
|
-
const x = typeof w[
|
|
379
|
-
x != null && x.includes(I.toLowerCase()) && (
|
|
375
|
+
var N;
|
|
376
|
+
let B = !1;
|
|
377
|
+
for (const k of r.searchKeys) {
|
|
378
|
+
const x = typeof w[k] == "string" ? (N = w[k]) == null ? void 0 : N.toLowerCase() : w[k];
|
|
379
|
+
x != null && x.includes(I.toLowerCase()) && (B = !0);
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return B;
|
|
382
382
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
|
|
383
383
|
};
|
|
384
384
|
return {
|
|
@@ -397,7 +397,7 @@ function Nr(e, n) {
|
|
|
397
397
|
);
|
|
398
398
|
return r.value.search = "", (o) => `${r.value.href}/${o}`;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Br() {
|
|
401
401
|
const { i18n: { t: e } } = St();
|
|
402
402
|
return {
|
|
403
403
|
getMessageFromError: (n) => {
|
|
@@ -435,15 +435,15 @@ function fn(e, n) {
|
|
|
435
435
|
const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: g } = i;
|
|
436
436
|
try {
|
|
437
437
|
let f = new URL(a.value.href);
|
|
438
|
-
return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((A,
|
|
439
|
-
f.searchParams.append(
|
|
438
|
+
return o.value && g ? (f.search = "", f = new URL(`${f.href}/${g}/`)) : (o.value || new URLSearchParams(g).forEach((A, v) => {
|
|
439
|
+
f.searchParams.append(v, A);
|
|
440
440
|
}), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
|
|
441
441
|
} catch (f) {
|
|
442
442
|
return console.error("RouteList(fetcher)", f), r.value;
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Pr(e, n, t = "data") {
|
|
447
447
|
const r = y(n), { axiosInstance: o } = At({
|
|
448
448
|
headers: e.requestHeaders
|
|
449
449
|
}), a = fn(e, r), i = O({
|
|
@@ -485,7 +485,7 @@ function Lr(e, n, t = "data") {
|
|
|
485
485
|
}
|
|
486
486
|
}, fetcherState: i };
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function Lr() {
|
|
489
489
|
return {
|
|
490
490
|
convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
|
|
491
491
|
};
|
|
@@ -500,24 +500,24 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
500
500
|
}, Ut = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
|
|
501
501
|
const n = parseInt(e, 10);
|
|
502
502
|
return isNaN(n) ? e : n;
|
|
503
|
-
},
|
|
503
|
+
}, Ur = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], qr = (e, n) => {
|
|
504
504
|
if (Ut(e) || Ut(n))
|
|
505
505
|
return 0;
|
|
506
|
-
const [t, r] =
|
|
506
|
+
const [t, r] = Ur(qt(e), qt(n));
|
|
507
507
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
508
508
|
}, Rt = (e, n) => {
|
|
509
509
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
510
|
-
const r =
|
|
510
|
+
const r = qr(e[t] || "0", n[t] || "0");
|
|
511
511
|
if (r !== 0)
|
|
512
512
|
return r;
|
|
513
513
|
}
|
|
514
514
|
return 0;
|
|
515
|
-
},
|
|
515
|
+
}, Rr = (e, n) => {
|
|
516
516
|
const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
|
|
517
517
|
return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
518
518
|
}, Vt = (e, n, t) => {
|
|
519
|
-
|
|
520
|
-
const r =
|
|
519
|
+
Vr(t);
|
|
520
|
+
const r = Rr(e, n);
|
|
521
521
|
return gn[t].includes(r);
|
|
522
522
|
}, gn = {
|
|
523
523
|
">": [1],
|
|
@@ -526,18 +526,18 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
526
526
|
"<=": [-1, 0],
|
|
527
527
|
"<": [-1],
|
|
528
528
|
"!=": [-1, 1]
|
|
529
|
-
}, Dt = Object.keys(gn),
|
|
529
|
+
}, Dt = Object.keys(gn), Vr = (e) => {
|
|
530
530
|
if (typeof e != "string")
|
|
531
531
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
532
532
|
if (Dt.indexOf(e) === -1)
|
|
533
533
|
throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
|
|
534
|
-
},
|
|
535
|
-
function
|
|
534
|
+
}, Dr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
|
|
535
|
+
function Gr(e) {
|
|
536
536
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
537
537
|
if (!n)
|
|
538
538
|
return !0;
|
|
539
539
|
const { edition: r, version: o } = n;
|
|
540
|
-
if (!
|
|
540
|
+
if (!Dr(o))
|
|
541
541
|
return console.error("Invalid version"), !1;
|
|
542
542
|
const a = t[r];
|
|
543
543
|
if (!a)
|
|
@@ -545,7 +545,7 @@ function Hr(e) {
|
|
|
545
545
|
const [i, s] = a;
|
|
546
546
|
return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Hr(e) {
|
|
549
549
|
const n = O(0), t = O(0), r = O(!1);
|
|
550
550
|
return xe(e, (o) => {
|
|
551
551
|
o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
|
|
@@ -555,26 +555,26 @@ function zr(e) {
|
|
|
555
555
|
}
|
|
556
556
|
const ue = {
|
|
557
557
|
useAxios: At,
|
|
558
|
-
useDebouncedFilter:
|
|
558
|
+
useDebouncedFilter: Kr,
|
|
559
559
|
useDeleteUrlBuilder: Nr,
|
|
560
|
-
useErrors:
|
|
561
|
-
useFetcher:
|
|
560
|
+
useErrors: Br,
|
|
561
|
+
useFetcher: Pr,
|
|
562
562
|
useFetchUrlBuilder: fn,
|
|
563
563
|
useHelpers: pn,
|
|
564
|
-
useStringHelpers:
|
|
564
|
+
useStringHelpers: Lr,
|
|
565
565
|
useI18n: St,
|
|
566
|
-
useGatewayFeatureSupported:
|
|
567
|
-
useTruncationDetector:
|
|
568
|
-
},
|
|
566
|
+
useGatewayFeatureSupported: Gr,
|
|
567
|
+
useTruncationDetector: Hr
|
|
568
|
+
}, zr = {
|
|
569
569
|
fail: "Failed to copy id to clipboard",
|
|
570
570
|
success: {
|
|
571
571
|
prefix: "Successfully",
|
|
572
572
|
content: " copied to clipboard"
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
message:
|
|
576
|
-
iconTitle:
|
|
577
|
-
},
|
|
574
|
+
}, Jr = "Copy to clipboard", Wr = {
|
|
575
|
+
message: zr,
|
|
576
|
+
iconTitle: Jr
|
|
577
|
+
}, Yr = "kong-ui-copy-uuid-notify", Zr = { class: "kong-ui-copy-uuid" }, Qr = ["onClick"], Gt = 15, Xr = /* @__PURE__ */ ae({
|
|
578
578
|
__name: "CopyUuid",
|
|
579
579
|
props: {
|
|
580
580
|
uuid: {
|
|
@@ -618,7 +618,7 @@ const ue = {
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["success", "error"],
|
|
620
620
|
setup(e, { emit: n }) {
|
|
621
|
-
const t = e, { t: r } = It("en-us",
|
|
621
|
+
const t = e, { t: r } = It("en-us", Wr), o = t.notify || gr(Yr, () => {
|
|
622
622
|
}), a = M(() => t.idTooltip ? {
|
|
623
623
|
label: t.idTooltip,
|
|
624
624
|
positionFixed: !0,
|
|
@@ -649,8 +649,8 @@ const ue = {
|
|
|
649
649
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
650
650
|
};
|
|
651
651
|
return (g, f) => {
|
|
652
|
-
const A = U("KIcon"),
|
|
653
|
-
return m(), j("div",
|
|
652
|
+
const A = U("KIcon"), v = U("KClipboardProvider");
|
|
653
|
+
return m(), j("div", Zr, [
|
|
654
654
|
e.format !== "hidden" ? (m(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
655
655
|
default: h(() => [
|
|
656
656
|
R("div", {
|
|
@@ -665,7 +665,7 @@ const ue = {
|
|
|
665
665
|
}, 16)) : G("", !0),
|
|
666
666
|
(m(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
667
667
|
default: h(() => [
|
|
668
|
-
K(
|
|
668
|
+
K(v, null, {
|
|
669
669
|
default: h(({ copyToClipboard: p }) => [
|
|
670
670
|
R("span", {
|
|
671
671
|
"data-testid": "copy-to-clipboard",
|
|
@@ -681,7 +681,7 @@ const ue = {
|
|
|
681
681
|
size: "16",
|
|
682
682
|
title: y(r)("iconTitle")
|
|
683
683
|
}, null, 8, ["color", "hide-title", "title"])
|
|
684
|
-
], 8,
|
|
684
|
+
], 8, Qr)
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
687
687
|
})
|
|
@@ -691,15 +691,15 @@ const ue = {
|
|
|
691
691
|
]);
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
}),
|
|
694
|
+
}), eo = (e, n) => {
|
|
695
695
|
const t = e.__vccOpts || e;
|
|
696
696
|
for (const [r, o] of n)
|
|
697
697
|
t[r] = o;
|
|
698
698
|
return t;
|
|
699
|
-
}, yn = /* @__PURE__ */
|
|
699
|
+
}, yn = /* @__PURE__ */ eo(Xr, [["__scopeId", "data-v-bfdaf6f7"]]), to = {
|
|
700
700
|
key: 0,
|
|
701
701
|
class: "config-card-fieldset-title"
|
|
702
|
-
},
|
|
702
|
+
}, no = /* @__PURE__ */ ae({
|
|
703
703
|
__name: "JsonCardItem",
|
|
704
704
|
props: {
|
|
705
705
|
item: {
|
|
@@ -727,7 +727,7 @@ const ue = {
|
|
|
727
727
|
class: Ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
728
728
|
}, {
|
|
729
729
|
default: h(() => [
|
|
730
|
-
e.isArrayItem ? (m(), j("legend",
|
|
730
|
+
e.isArrayItem ? (m(), j("legend", to, [
|
|
731
731
|
R("b", null, F(s.value), 1)
|
|
732
732
|
])) : G("", !0),
|
|
733
733
|
(m(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (m(), V(xt, {
|
|
@@ -742,12 +742,12 @@ const ue = {
|
|
|
742
742
|
_: 1
|
|
743
743
|
}, 8, ["class"]));
|
|
744
744
|
}
|
|
745
|
-
}),
|
|
745
|
+
}), ke = (e, n) => {
|
|
746
746
|
const t = e.__vccOpts || e;
|
|
747
747
|
for (const [r, o] of n)
|
|
748
748
|
t[r] = o;
|
|
749
749
|
return t;
|
|
750
|
-
}, hn = /* @__PURE__ */
|
|
750
|
+
}, hn = /* @__PURE__ */ ke(no, [["__scopeId", "data-v-68ca83ec"]]), ro = /* @__PURE__ */ ae({
|
|
751
751
|
__name: "InternalLinkItem",
|
|
752
752
|
props: {
|
|
753
753
|
item: {
|
|
@@ -774,7 +774,7 @@ const ue = {
|
|
|
774
774
|
]);
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
}),
|
|
777
|
+
}), oo = /* @__PURE__ */ ke(ro, [["__scopeId", "data-v-7410504d"]]), ao = /* @__PURE__ */ ae({
|
|
778
778
|
__name: "StatusBadge",
|
|
779
779
|
props: {
|
|
780
780
|
status: {
|
|
@@ -796,11 +796,11 @@ const ue = {
|
|
|
796
796
|
}, 8, ["appearance"]);
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), io = "#0044f4", so = "#e0e4ea", lo = "#3a3f51", uo = "1px", co = "20px", po = { class: "config-card-details-row" }, fo = ["data-testid"], mo = ["data-testid"], go = ["data-testid"], yo = ["data-testid"], ho = { key: 1 }, vo = ["data-testid"], bo = ["data-testid"], Co = ["data-testid"], ko = ["data-testid"], _o = {
|
|
800
800
|
name: "ConfigCardItem",
|
|
801
|
-
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge:
|
|
802
|
-
},
|
|
803
|
-
...
|
|
801
|
+
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: ao, InternalLinkItem: oo }
|
|
802
|
+
}, wo = /* @__PURE__ */ ae({
|
|
803
|
+
..._o,
|
|
804
804
|
props: {
|
|
805
805
|
item: {
|
|
806
806
|
type: Object,
|
|
@@ -820,8 +820,8 @@ const ue = {
|
|
|
820
820
|
emits: ["navigation-click"],
|
|
821
821
|
setup(e, { emit: n }) {
|
|
822
822
|
const t = e;
|
|
823
|
-
|
|
824
|
-
"1df60db4": c.value ? "none" : `solid ${y(
|
|
823
|
+
ur((f) => ({
|
|
824
|
+
"1df60db4": c.value ? "none" : `solid ${y(uo)} ${y(so)}`,
|
|
825
825
|
"21d1d34e": l.value && i.value ? "block" : "flex",
|
|
826
826
|
"4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
827
827
|
"4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -954,14 +954,14 @@ const ue = {
|
|
|
954
954
|
}
|
|
955
955
|
}), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
|
|
956
956
|
return (f, A) => {
|
|
957
|
-
const
|
|
958
|
-
return m(), j("div",
|
|
957
|
+
const v = U("KLabel"), p = U("KBadge"), S = U("KMethodBadge"), b = U("KTooltip");
|
|
958
|
+
return m(), j("div", po, [
|
|
959
959
|
R("div", {
|
|
960
960
|
class: "config-card-details-label",
|
|
961
961
|
"data-testid": `${e.item.key}-label`
|
|
962
962
|
}, [
|
|
963
963
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
964
|
-
K(
|
|
964
|
+
K(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
|
|
965
965
|
default: h(() => [
|
|
966
966
|
Z(F(e.item.label) + " ", 1)
|
|
967
967
|
]),
|
|
@@ -976,13 +976,13 @@ const ue = {
|
|
|
976
976
|
Y(f.$slots, "label-tooltip", {}, () => [
|
|
977
977
|
Z(F(e.item.tooltip), 1)
|
|
978
978
|
], !0)
|
|
979
|
-
], 8,
|
|
979
|
+
], 8, mo)
|
|
980
980
|
]),
|
|
981
981
|
key: "0"
|
|
982
982
|
} : void 0
|
|
983
983
|
]), 1024)
|
|
984
984
|
], !0)
|
|
985
|
-
], 8,
|
|
985
|
+
], 8, fo),
|
|
986
986
|
R("div", {
|
|
987
987
|
class: "config-card-details-value",
|
|
988
988
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -990,50 +990,50 @@ const ue = {
|
|
|
990
990
|
Y(f.$slots, e.item.key, {
|
|
991
991
|
rowValue: e.item.value
|
|
992
992
|
}, () => [
|
|
993
|
-
i.value ? (m(), j("div",
|
|
994
|
-
(m(), V(ze(d.value.tag), dr(
|
|
993
|
+
i.value ? (m(), j("div", ho, [
|
|
994
|
+
(m(), V(ze(d.value.tag), cr(dr(d.value.attrs)), {
|
|
995
995
|
default: h(() => [
|
|
996
996
|
d.value.additionalComponent === "KBadge" ? (m(), j("div", {
|
|
997
997
|
key: 0,
|
|
998
998
|
"data-testid": `${e.item.key}-badge-tags`
|
|
999
999
|
}, [
|
|
1000
|
-
(m(!0), j(ve, null, ye(e.item.value, (
|
|
1000
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(p, {
|
|
1001
1001
|
key: `${e.item.key}-badge-tag-${I}`,
|
|
1002
1002
|
class: "config-badge",
|
|
1003
1003
|
"data-testid": `${e.item.key}-badge-tag-${I}`,
|
|
1004
|
-
"truncation-tooltip":
|
|
1004
|
+
"truncation-tooltip": C
|
|
1005
1005
|
}, {
|
|
1006
1006
|
default: h(() => [
|
|
1007
|
-
Z(F(
|
|
1007
|
+
Z(F(C), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 2
|
|
1010
1010
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1011
|
-
], 8,
|
|
1011
|
+
], 8, vo)) : G("", !0),
|
|
1012
1012
|
d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
class: "copy-uuid-array",
|
|
1015
1015
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1016
1016
|
}, [
|
|
1017
|
-
(m(!0), j(ve, null, ye(e.item.value, (
|
|
1017
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(y(yn), ht(d.value.childAttrs, {
|
|
1018
1018
|
key: `${e.item.key}-copy-uuid-${I}`,
|
|
1019
1019
|
"data-testid": `${e.item.key}-copy-uuid-${I}`,
|
|
1020
|
-
uuid:
|
|
1020
|
+
uuid: C
|
|
1021
1021
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1022
|
-
], 8,
|
|
1022
|
+
], 8, bo)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
|
|
1023
1023
|
key: 2,
|
|
1024
1024
|
class: "method-badge-array",
|
|
1025
1025
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1026
1026
|
}, [
|
|
1027
|
-
(m(!0), j(ve, null, ye(e.item.value, (
|
|
1027
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(S, {
|
|
1028
1028
|
key: `${e.item.key}-badge-method-${I}`,
|
|
1029
1029
|
class: "config-badge",
|
|
1030
1030
|
"data-testid": `${e.item.key}-badge-method-${I}`,
|
|
1031
1031
|
"is-rounded": "",
|
|
1032
|
-
label:
|
|
1033
|
-
method: y(
|
|
1032
|
+
label: C,
|
|
1033
|
+
method: y(br).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
|
|
1034
1034
|
}, {
|
|
1035
1035
|
default: h(() => [
|
|
1036
|
-
Z(F(
|
|
1036
|
+
Z(F(C), 1)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 2
|
|
1039
1039
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
@@ -1042,13 +1042,13 @@ const ue = {
|
|
|
1042
1042
|
key: 3,
|
|
1043
1043
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1044
1044
|
}, [
|
|
1045
|
-
(m(!0), j(ve, null, ye(e.item.value, (
|
|
1045
|
+
(m(!0), j(ve, null, ye(e.item.value, (C, I) => (m(), V(hn, {
|
|
1046
1046
|
key: `json-array-item-${I}`,
|
|
1047
1047
|
index: I,
|
|
1048
1048
|
"is-array-item": "",
|
|
1049
|
-
item:
|
|
1049
|
+
item: C
|
|
1050
1050
|
}, null, 8, ["index", "item"]))), 128))
|
|
1051
|
-
], 8,
|
|
1051
|
+
], 8, ko)) : (m(), V(b, {
|
|
1052
1052
|
key: 4,
|
|
1053
1053
|
label: y(g) ? e.item.value : ""
|
|
1054
1054
|
}, {
|
|
@@ -1067,46 +1067,46 @@ const ue = {
|
|
|
1067
1067
|
])) : (m(), j("div", {
|
|
1068
1068
|
key: 0,
|
|
1069
1069
|
"data-testid": `${e.item.key}-no-value`
|
|
1070
|
-
}, " – ", 8,
|
|
1070
|
+
}, " – ", 8, yo))
|
|
1071
1071
|
], !0)
|
|
1072
|
-
], 8,
|
|
1072
|
+
], 8, go)
|
|
1073
1073
|
]);
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
}), xt = /* @__PURE__ */
|
|
1076
|
+
}), xt = /* @__PURE__ */ ke(wo, [["__scopeId", "data-v-307ab96d"]]);
|
|
1077
1077
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1078
1078
|
function vn(e) {
|
|
1079
1079
|
return typeof e > "u" || e === null;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function Io(e) {
|
|
1082
1082
|
return typeof e == "object" && e !== null;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function Ao(e) {
|
|
1085
1085
|
return Array.isArray(e) ? e : vn(e) ? [] : [e];
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function So(e, n) {
|
|
1088
1088
|
var t, r, o, a;
|
|
1089
1089
|
if (n)
|
|
1090
1090
|
for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
|
|
1091
1091
|
o = a[t], e[o] = n[o];
|
|
1092
1092
|
return e;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function xo(e, n) {
|
|
1095
1095
|
var t = "", r;
|
|
1096
1096
|
for (r = 0; r < n; r += 1)
|
|
1097
1097
|
t += e;
|
|
1098
1098
|
return t;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function To(e) {
|
|
1101
1101
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
isNothing:
|
|
1105
|
-
isObject:
|
|
1106
|
-
toArray:
|
|
1107
|
-
repeat:
|
|
1108
|
-
isNegativeZero:
|
|
1109
|
-
extend:
|
|
1103
|
+
var $o = vn, Mo = Io, jo = Ao, Eo = xo, Oo = To, Fo = So, se = {
|
|
1104
|
+
isNothing: $o,
|
|
1105
|
+
isObject: Mo,
|
|
1106
|
+
toArray: jo,
|
|
1107
|
+
repeat: Eo,
|
|
1108
|
+
isNegativeZero: Oo,
|
|
1109
|
+
extend: Fo
|
|
1110
1110
|
};
|
|
1111
1111
|
function bn(e, n) {
|
|
1112
1112
|
var t = "", r = e.reason || "(unknown reason)";
|
|
@@ -1134,7 +1134,7 @@ function mt(e, n, t, r, o) {
|
|
|
1134
1134
|
function gt(e, n) {
|
|
1135
1135
|
return se.repeat(" ", n - e.length) + e;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function Ko(e, n) {
|
|
1138
1138
|
if (n = Object.create(n || null), !e.buffer)
|
|
1139
1139
|
return null;
|
|
1140
1140
|
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);
|
|
@@ -1164,7 +1164,7 @@ function Bo(e, n) {
|
|
|
1164
1164
|
`;
|
|
1165
1165
|
return s.replace(/\n$/, "");
|
|
1166
1166
|
}
|
|
1167
|
-
var No =
|
|
1167
|
+
var No = Ko, Bo = [
|
|
1168
1168
|
"kind",
|
|
1169
1169
|
"multi",
|
|
1170
1170
|
"resolve",
|
|
@@ -1175,12 +1175,12 @@ var No = Bo, Po = [
|
|
|
1175
1175
|
"representName",
|
|
1176
1176
|
"defaultStyle",
|
|
1177
1177
|
"styleAliases"
|
|
1178
|
-
],
|
|
1178
|
+
], Po = [
|
|
1179
1179
|
"scalar",
|
|
1180
1180
|
"sequence",
|
|
1181
1181
|
"mapping"
|
|
1182
1182
|
];
|
|
1183
|
-
function
|
|
1183
|
+
function Lo(e) {
|
|
1184
1184
|
var n = {};
|
|
1185
1185
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1186
1186
|
e[t].forEach(function(r) {
|
|
@@ -1188,18 +1188,18 @@ function Uo(e) {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
}), n;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Uo(e, n) {
|
|
1192
1192
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1193
|
-
if (
|
|
1193
|
+
if (Bo.indexOf(t) === -1)
|
|
1194
1194
|
throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1195
1195
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1196
1196
|
return !0;
|
|
1197
1197
|
}, this.construct = n.construct || function(t) {
|
|
1198
1198
|
return t;
|
|
1199
|
-
}, 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 =
|
|
1199
|
+
}, 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 = Lo(n.styleAliases || null), Po.indexOf(this.kind) === -1)
|
|
1200
1200
|
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1201
1201
|
}
|
|
1202
|
-
var de =
|
|
1202
|
+
var de = Uo;
|
|
1203
1203
|
function Ht(e, n) {
|
|
1204
1204
|
var t = [];
|
|
1205
1205
|
return e[n].forEach(function(r) {
|
|
@@ -1209,7 +1209,7 @@ function Ht(e, n) {
|
|
|
1209
1209
|
}), t[o] = r;
|
|
1210
1210
|
}), t;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function qo() {
|
|
1213
1213
|
var e = {
|
|
1214
1214
|
scalar: {},
|
|
1215
1215
|
sequence: {},
|
|
@@ -1254,9 +1254,9 @@ vt.prototype.extend = function(e) {
|
|
|
1254
1254
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1255
1255
|
});
|
|
1256
1256
|
var r = Object.create(vt.prototype);
|
|
1257
|
-
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 =
|
|
1257
|
+
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 = qo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1258
1258
|
};
|
|
1259
|
-
var
|
|
1259
|
+
var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
|
|
1260
1260
|
kind: "scalar",
|
|
1261
1261
|
construct: function(e) {
|
|
1262
1262
|
return e !== null ? e : "";
|
|
@@ -1271,30 +1271,30 @@ var kn = vt, Cn = new de("tag:yaml.org,2002:str", {
|
|
|
1271
1271
|
construct: function(e) {
|
|
1272
1272
|
return e !== null ? e : {};
|
|
1273
1273
|
}
|
|
1274
|
-
}), In = new
|
|
1274
|
+
}), In = new Cn({
|
|
1275
1275
|
explicit: [
|
|
1276
|
-
|
|
1276
|
+
kn,
|
|
1277
1277
|
_n,
|
|
1278
1278
|
wn
|
|
1279
1279
|
]
|
|
1280
1280
|
});
|
|
1281
|
-
function
|
|
1281
|
+
function Ro(e) {
|
|
1282
1282
|
if (e === null)
|
|
1283
1283
|
return !0;
|
|
1284
1284
|
var n = e.length;
|
|
1285
1285
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Vo() {
|
|
1288
1288
|
return null;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Do(e) {
|
|
1291
1291
|
return e === null;
|
|
1292
1292
|
}
|
|
1293
1293
|
var An = new de("tag:yaml.org,2002:null", {
|
|
1294
1294
|
kind: "scalar",
|
|
1295
|
-
resolve:
|
|
1296
|
-
construct:
|
|
1297
|
-
predicate:
|
|
1295
|
+
resolve: Ro,
|
|
1296
|
+
construct: Vo,
|
|
1297
|
+
predicate: Do,
|
|
1298
1298
|
represent: {
|
|
1299
1299
|
canonical: function() {
|
|
1300
1300
|
return "~";
|
|
@@ -1314,23 +1314,23 @@ var An = new de("tag:yaml.org,2002:null", {
|
|
|
1314
1314
|
},
|
|
1315
1315
|
defaultStyle: "lowercase"
|
|
1316
1316
|
});
|
|
1317
|
-
function
|
|
1317
|
+
function Go(e) {
|
|
1318
1318
|
if (e === null)
|
|
1319
1319
|
return !1;
|
|
1320
1320
|
var n = e.length;
|
|
1321
1321
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Ho(e) {
|
|
1324
1324
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function zo(e) {
|
|
1327
1327
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1328
1328
|
}
|
|
1329
1329
|
var Sn = new de("tag:yaml.org,2002:bool", {
|
|
1330
1330
|
kind: "scalar",
|
|
1331
|
-
resolve:
|
|
1332
|
-
construct:
|
|
1333
|
-
predicate:
|
|
1331
|
+
resolve: Go,
|
|
1332
|
+
construct: Ho,
|
|
1333
|
+
predicate: zo,
|
|
1334
1334
|
represent: {
|
|
1335
1335
|
lowercase: function(e) {
|
|
1336
1336
|
return e ? "true" : "false";
|
|
@@ -1344,16 +1344,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
|
|
|
1344
1344
|
},
|
|
1345
1345
|
defaultStyle: "lowercase"
|
|
1346
1346
|
});
|
|
1347
|
-
function
|
|
1347
|
+
function Jo(e) {
|
|
1348
1348
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Wo(e) {
|
|
1351
1351
|
return 48 <= e && e <= 55;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Yo(e) {
|
|
1354
1354
|
return 48 <= e && e <= 57;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Zo(e) {
|
|
1357
1357
|
if (e === null)
|
|
1358
1358
|
return !1;
|
|
1359
1359
|
var n = e.length, t = 0, r = !1, o;
|
|
@@ -1374,7 +1374,7 @@ function Qo(e) {
|
|
|
1374
1374
|
if (o === "x") {
|
|
1375
1375
|
for (t++; t < n; t++)
|
|
1376
1376
|
if (o = e[t], o !== "_") {
|
|
1377
|
-
if (!
|
|
1377
|
+
if (!Jo(e.charCodeAt(t)))
|
|
1378
1378
|
return !1;
|
|
1379
1379
|
r = !0;
|
|
1380
1380
|
}
|
|
@@ -1383,7 +1383,7 @@ function Qo(e) {
|
|
|
1383
1383
|
if (o === "o") {
|
|
1384
1384
|
for (t++; t < n; t++)
|
|
1385
1385
|
if (o = e[t], o !== "_") {
|
|
1386
|
-
if (!
|
|
1386
|
+
if (!Wo(e.charCodeAt(t)))
|
|
1387
1387
|
return !1;
|
|
1388
1388
|
r = !0;
|
|
1389
1389
|
}
|
|
@@ -1394,13 +1394,13 @@ function Qo(e) {
|
|
|
1394
1394
|
return !1;
|
|
1395
1395
|
for (; t < n; t++)
|
|
1396
1396
|
if (o = e[t], o !== "_") {
|
|
1397
|
-
if (!
|
|
1397
|
+
if (!Yo(e.charCodeAt(t)))
|
|
1398
1398
|
return !1;
|
|
1399
1399
|
r = !0;
|
|
1400
1400
|
}
|
|
1401
1401
|
return !(!r || o === "_");
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function Qo(e) {
|
|
1404
1404
|
var n = e, t = 1, r;
|
|
1405
1405
|
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")
|
|
1406
1406
|
return 0;
|
|
@@ -1414,14 +1414,14 @@ function Xo(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return t * parseInt(n, 10);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function Xo(e) {
|
|
1418
1418
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1419
1419
|
}
|
|
1420
1420
|
var xn = new de("tag:yaml.org,2002:int", {
|
|
1421
1421
|
kind: "scalar",
|
|
1422
|
-
resolve:
|
|
1423
|
-
construct:
|
|
1424
|
-
predicate:
|
|
1422
|
+
resolve: Zo,
|
|
1423
|
+
construct: Qo,
|
|
1424
|
+
predicate: Xo,
|
|
1425
1425
|
represent: {
|
|
1426
1426
|
binary: function(e) {
|
|
1427
1427
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1444,21 +1444,21 @@ var xn = new de("tag:yaml.org,2002:int", {
|
|
|
1444
1444
|
decimal: [10, "dec"],
|
|
1445
1445
|
hexadecimal: [16, "hex"]
|
|
1446
1446
|
}
|
|
1447
|
-
}),
|
|
1447
|
+
}), ea = new RegExp(
|
|
1448
1448
|
// 2.5e4, 2.5 and integers
|
|
1449
1449
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1450
1450
|
);
|
|
1451
|
-
function
|
|
1452
|
-
return !(e === null || !
|
|
1451
|
+
function ta(e) {
|
|
1452
|
+
return !(e === null || !ea.test(e) || // Quick hack to not allow integers end with `_`
|
|
1453
1453
|
// Probably should update regexp & check speed
|
|
1454
1454
|
e[e.length - 1] === "_");
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function na(e) {
|
|
1457
1457
|
var n, t;
|
|
1458
1458
|
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);
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1461
|
-
function
|
|
1460
|
+
var ra = /^[-+]?[0-9]+e/;
|
|
1461
|
+
function oa(e, n) {
|
|
1462
1462
|
var t;
|
|
1463
1463
|
if (isNaN(e))
|
|
1464
1464
|
switch (n) {
|
|
@@ -1489,17 +1489,17 @@ function aa(e, n) {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
else if (se.isNegativeZero(e))
|
|
1491
1491
|
return "-0.0";
|
|
1492
|
-
return t = e.toString(10),
|
|
1492
|
+
return t = e.toString(10), ra.test(t) ? t.replace("e", ".e") : t;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function aa(e) {
|
|
1495
1495
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1496
1496
|
}
|
|
1497
1497
|
var Tn = new de("tag:yaml.org,2002:float", {
|
|
1498
1498
|
kind: "scalar",
|
|
1499
|
-
resolve:
|
|
1500
|
-
construct:
|
|
1501
|
-
predicate:
|
|
1502
|
-
represent:
|
|
1499
|
+
resolve: ta,
|
|
1500
|
+
construct: na,
|
|
1501
|
+
predicate: aa,
|
|
1502
|
+
represent: oa,
|
|
1503
1503
|
defaultStyle: "lowercase"
|
|
1504
1504
|
}), $n = In.extend({
|
|
1505
1505
|
implicit: [
|
|
@@ -1513,10 +1513,10 @@ var Tn = new de("tag:yaml.org,2002:float", {
|
|
|
1513
1513
|
), En = new RegExp(
|
|
1514
1514
|
"^([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]))?))?$"
|
|
1515
1515
|
);
|
|
1516
|
-
function
|
|
1516
|
+
function ia(e) {
|
|
1517
1517
|
return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function sa(e) {
|
|
1520
1520
|
var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
|
|
1521
1521
|
if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
|
|
1522
1522
|
throw new Error("Date resolve error");
|
|
@@ -1529,25 +1529,25 @@ function la(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function la(e) {
|
|
1533
1533
|
return e.toISOString();
|
|
1534
1534
|
}
|
|
1535
1535
|
var On = new de("tag:yaml.org,2002:timestamp", {
|
|
1536
1536
|
kind: "scalar",
|
|
1537
|
-
resolve:
|
|
1538
|
-
construct:
|
|
1537
|
+
resolve: ia,
|
|
1538
|
+
construct: sa,
|
|
1539
1539
|
instanceOf: Date,
|
|
1540
|
-
represent:
|
|
1540
|
+
represent: la
|
|
1541
1541
|
});
|
|
1542
|
-
function
|
|
1542
|
+
function ua(e) {
|
|
1543
1543
|
return e === "<<" || e === null;
|
|
1544
1544
|
}
|
|
1545
1545
|
var Fn = new de("tag:yaml.org,2002:merge", {
|
|
1546
1546
|
kind: "scalar",
|
|
1547
|
-
resolve:
|
|
1547
|
+
resolve: ua
|
|
1548
1548
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1549
1549
|
\r`;
|
|
1550
|
-
function
|
|
1550
|
+
function ca(e) {
|
|
1551
1551
|
if (e === null)
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
var n, t, r = 0, o = e.length, a = Tt;
|
|
@@ -1559,37 +1559,37 @@ function da(e) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
return r % 8 === 0;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function da(e) {
|
|
1563
1563
|
var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
|
|
1564
1564
|
for (n = 0; n < o; n++)
|
|
1565
1565
|
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));
|
|
1566
1566
|
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);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function pa(e) {
|
|
1569
1569
|
var n = "", t = 0, r, o, a = e.length, i = Tt;
|
|
1570
1570
|
for (r = 0; r < a; r++)
|
|
1571
1571
|
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];
|
|
1572
1572
|
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;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function fa(e) {
|
|
1575
1575
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1576
1576
|
}
|
|
1577
1577
|
var Kn = new de("tag:yaml.org,2002:binary", {
|
|
1578
1578
|
kind: "scalar",
|
|
1579
|
-
resolve:
|
|
1580
|
-
construct:
|
|
1581
|
-
predicate:
|
|
1582
|
-
represent:
|
|
1583
|
-
}),
|
|
1584
|
-
function
|
|
1579
|
+
resolve: ca,
|
|
1580
|
+
construct: da,
|
|
1581
|
+
predicate: fa,
|
|
1582
|
+
represent: pa
|
|
1583
|
+
}), ma = Object.prototype.hasOwnProperty, ga = Object.prototype.toString;
|
|
1584
|
+
function ya(e) {
|
|
1585
1585
|
if (e === null)
|
|
1586
1586
|
return !0;
|
|
1587
1587
|
var n = [], t, r, o, a, i, s = e;
|
|
1588
1588
|
for (t = 0, r = s.length; t < r; t += 1) {
|
|
1589
|
-
if (o = s[t], i = !1,
|
|
1589
|
+
if (o = s[t], i = !1, ga.call(o) !== "[object Object]")
|
|
1590
1590
|
return !1;
|
|
1591
1591
|
for (a in o)
|
|
1592
|
-
if (
|
|
1592
|
+
if (ma.call(o, a))
|
|
1593
1593
|
if (!i)
|
|
1594
1594
|
i = !0;
|
|
1595
1595
|
else
|
|
@@ -1603,20 +1603,20 @@ function ha(e) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
return !0;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function ha(e) {
|
|
1607
1607
|
return e !== null ? e : [];
|
|
1608
1608
|
}
|
|
1609
|
-
var
|
|
1609
|
+
var Nn = new de("tag:yaml.org,2002:omap", {
|
|
1610
1610
|
kind: "sequence",
|
|
1611
|
-
resolve:
|
|
1612
|
-
construct:
|
|
1613
|
-
}),
|
|
1614
|
-
function
|
|
1611
|
+
resolve: ya,
|
|
1612
|
+
construct: ha
|
|
1613
|
+
}), va = Object.prototype.toString;
|
|
1614
|
+
function ba(e) {
|
|
1615
1615
|
if (e === null)
|
|
1616
1616
|
return !0;
|
|
1617
1617
|
var n, t, r, o, a, i = e;
|
|
1618
1618
|
for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1619
|
-
if (r = i[n],
|
|
1619
|
+
if (r = i[n], va.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
|
|
1620
1620
|
return !1;
|
|
1621
1621
|
a[n] = [o[0], r[o[0]]];
|
|
1622
1622
|
}
|
|
@@ -1630,27 +1630,27 @@ function Ca(e) {
|
|
|
1630
1630
|
r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
|
|
1631
1631
|
return a;
|
|
1632
1632
|
}
|
|
1633
|
-
var
|
|
1633
|
+
var Bn = new de("tag:yaml.org,2002:pairs", {
|
|
1634
1634
|
kind: "sequence",
|
|
1635
|
-
resolve:
|
|
1635
|
+
resolve: ba,
|
|
1636
1636
|
construct: Ca
|
|
1637
|
-
}),
|
|
1638
|
-
function
|
|
1637
|
+
}), ka = Object.prototype.hasOwnProperty;
|
|
1638
|
+
function _a(e) {
|
|
1639
1639
|
if (e === null)
|
|
1640
1640
|
return !0;
|
|
1641
1641
|
var n, t = e;
|
|
1642
1642
|
for (n in t)
|
|
1643
|
-
if (
|
|
1643
|
+
if (ka.call(t, n) && t[n] !== null)
|
|
1644
1644
|
return !1;
|
|
1645
1645
|
return !0;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function wa(e) {
|
|
1648
1648
|
return e !== null ? e : {};
|
|
1649
1649
|
}
|
|
1650
1650
|
var Pn = new de("tag:yaml.org,2002:set", {
|
|
1651
1651
|
kind: "mapping",
|
|
1652
|
-
resolve:
|
|
1653
|
-
construct:
|
|
1652
|
+
resolve: _a,
|
|
1653
|
+
construct: wa
|
|
1654
1654
|
}), $t = Mn.extend({
|
|
1655
1655
|
implicit: [
|
|
1656
1656
|
On,
|
|
@@ -1658,11 +1658,11 @@ var Pn = new de("tag:yaml.org,2002:set", {
|
|
|
1658
1658
|
],
|
|
1659
1659
|
explicit: [
|
|
1660
1660
|
Kn,
|
|
1661
|
-
Bn,
|
|
1662
1661
|
Nn,
|
|
1662
|
+
Bn,
|
|
1663
1663
|
Pn
|
|
1664
1664
|
]
|
|
1665
|
-
}), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1,
|
|
1665
|
+
}), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1, Ia = 2, zt = 3, Aa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Sa = /[\x85\u2028\u2029]/, xa = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1666
1666
|
function Jt(e) {
|
|
1667
1667
|
return Object.prototype.toString.call(e);
|
|
1668
1668
|
}
|
|
@@ -1678,21 +1678,21 @@ function he(e) {
|
|
|
1678
1678
|
function Ue(e) {
|
|
1679
1679
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function Ta(e) {
|
|
1682
1682
|
var n;
|
|
1683
1683
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function $a(e) {
|
|
1686
1686
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Ma(e) {
|
|
1689
1689
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1690
1690
|
}
|
|
1691
1691
|
function Wt(e) {
|
|
1692
1692
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1693
1693
|
` : 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" : "";
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function ja(e) {
|
|
1696
1696
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1697
1697
|
(e - 65536 >> 10) + 55296,
|
|
1698
1698
|
(e - 65536 & 1023) + 56320
|
|
@@ -1701,7 +1701,7 @@ function Ea(e) {
|
|
|
1701
1701
|
var Vn = new Array(256), Dn = new Array(256);
|
|
1702
1702
|
for (var Pe = 0; Pe < 256; Pe++)
|
|
1703
1703
|
Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
|
|
1704
|
-
function
|
|
1704
|
+
function Ea(e, n) {
|
|
1705
1705
|
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 = [];
|
|
1706
1706
|
}
|
|
1707
1707
|
function Gn(e, n) {
|
|
@@ -1744,7 +1744,7 @@ function Me(e, n, t, r) {
|
|
|
1744
1744
|
for (o = 0, a = s.length; o < a; o += 1)
|
|
1745
1745
|
i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
|
|
1746
1746
|
else
|
|
1747
|
-
|
|
1747
|
+
Aa.test(s) && $(e, "the stream contains non-printable characters");
|
|
1748
1748
|
e.result += s;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
@@ -1801,7 +1801,7 @@ function jt(e, n) {
|
|
|
1801
1801
|
n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
|
|
1802
1802
|
`, n - 1));
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Oa(e, n, t) {
|
|
1805
1805
|
var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
|
|
1806
1806
|
if (f = e.input.charCodeAt(e.position), he(f) || Ue(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
|
|
1807
1807
|
return !1;
|
|
@@ -1828,7 +1828,7 @@ function Fa(e, n, t) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function Fa(e, n) {
|
|
1832
1832
|
var t, r, o;
|
|
1833
1833
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1834
1834
|
return !1;
|
|
@@ -1842,7 +1842,7 @@ function Ka(e, n) {
|
|
|
1842
1842
|
we(t) ? (Me(e, r, o, !0), jt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
1843
1843
|
$(e, "unexpected end of the stream within a single quoted scalar");
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Ka(e, n) {
|
|
1846
1846
|
var t, r, o, a, i, s;
|
|
1847
1847
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1848
1848
|
return !1;
|
|
@@ -1854,10 +1854,10 @@ function Ba(e, n) {
|
|
|
1854
1854
|
oe(e, !1, n);
|
|
1855
1855
|
else if (s < 256 && Vn[s])
|
|
1856
1856
|
e.result += Dn[s], e.position++;
|
|
1857
|
-
else if ((i =
|
|
1857
|
+
else if ((i = $a(s)) > 0) {
|
|
1858
1858
|
for (o = i, a = 0; o > 0; o--)
|
|
1859
|
-
s = e.input.charCodeAt(++e.position), (i =
|
|
1860
|
-
e.result +=
|
|
1859
|
+
s = e.input.charCodeAt(++e.position), (i = Ta(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
|
|
1860
|
+
e.result += ja(a), e.position++;
|
|
1861
1861
|
} else
|
|
1862
1862
|
$(e, "unknown escape sequence");
|
|
1863
1863
|
t = r = e.position;
|
|
@@ -1867,21 +1867,21 @@ function Ba(e, n) {
|
|
|
1867
1867
|
$(e, "unexpected end of the stream within a double quoted scalar");
|
|
1868
1868
|
}
|
|
1869
1869
|
function Na(e, n) {
|
|
1870
|
-
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, A = /* @__PURE__ */ Object.create(null),
|
|
1871
|
-
if (
|
|
1870
|
+
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, A = /* @__PURE__ */ Object.create(null), v, p, S, b;
|
|
1871
|
+
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1872
1872
|
d = 93, f = !1, s = [];
|
|
1873
|
-
else if (
|
|
1873
|
+
else if (b === 123)
|
|
1874
1874
|
d = 125, f = !0, s = {};
|
|
1875
1875
|
else
|
|
1876
1876
|
return !1;
|
|
1877
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s),
|
|
1878
|
-
if (oe(e, !0, n),
|
|
1877
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
|
|
1878
|
+
if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
|
|
1879
1879
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
1880
|
-
t ?
|
|
1880
|
+
t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = g = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = g = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (g || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? qe(e, s, A, p, v, S, r, o, a) : u ? s.push(qe(e, null, A, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
|
|
1881
1881
|
}
|
|
1882
1882
|
$(e, "unexpected end of the stream within a flow collection");
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function Ba(e, n) {
|
|
1885
1885
|
var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
|
|
1886
1886
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1887
1887
|
r = !1;
|
|
@@ -1891,8 +1891,8 @@ function Pa(e, n) {
|
|
|
1891
1891
|
return !1;
|
|
1892
1892
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1893
1893
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1894
|
-
yt === o ? o = u === 43 ? zt :
|
|
1895
|
-
else if ((d =
|
|
1894
|
+
yt === o ? o = u === 43 ? zt : Ia : $(e, "repeat of a chomping mode identifier");
|
|
1895
|
+
else if ((d = Ma(u)) >= 0)
|
|
1896
1896
|
d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
1897
1897
|
else
|
|
1898
1898
|
break;
|
|
@@ -1944,21 +1944,21 @@ function Qt(e, n) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1948
|
-
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, A = null,
|
|
1947
|
+
function Pa(e, n, t) {
|
|
1948
|
+
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, A = null, v = null, p = !1, S = !1, b;
|
|
1949
1949
|
if (e.firstTabInLine !== -1)
|
|
1950
1950
|
return !1;
|
|
1951
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = u),
|
|
1952
|
-
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (
|
|
1953
|
-
|
|
1951
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
|
|
1952
|
+
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
|
|
1953
|
+
b === 63 ? (p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
|
|
1954
1954
|
else {
|
|
1955
1955
|
if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
|
|
1956
1956
|
break;
|
|
1957
1957
|
if (e.line === a) {
|
|
1958
|
-
for (
|
|
1959
|
-
|
|
1960
|
-
if (
|
|
1961
|
-
|
|
1958
|
+
for (b = e.input.charCodeAt(e.position); Fe(b); )
|
|
1959
|
+
b = e.input.charCodeAt(++e.position);
|
|
1960
|
+
if (b === 58)
|
|
1961
|
+
b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (qe(e, u, g, f, A, null, i, s, l), f = A = v = null), S = !0, p = !1, o = !1, f = e.tag, A = e.result;
|
|
1962
1962
|
else if (S)
|
|
1963
1963
|
$(e, "can not read an implicit mapping pair; a colon is missed");
|
|
1964
1964
|
else
|
|
@@ -1968,14 +1968,14 @@ function La(e, n, t) {
|
|
|
1968
1968
|
else
|
|
1969
1969
|
return e.tag = c, e.anchor = d, !0;
|
|
1970
1970
|
}
|
|
1971
|
-
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? A = e.result :
|
|
1971
|
+
if ((e.line === a || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Re(e, n, at, !0, o) && (p ? A = e.result : v = e.result), p || (qe(e, u, g, f, A, v, i, s, l), f = A = v = null), oe(e, !0, -1), b = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > n) && b !== 0)
|
|
1972
1972
|
$(e, "bad indentation of a mapping entry");
|
|
1973
1973
|
else if (e.lineIndent < n)
|
|
1974
1974
|
break;
|
|
1975
1975
|
}
|
|
1976
1976
|
return p && qe(e, u, g, f, A, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function La(e) {
|
|
1979
1979
|
var n, t = !1, r = !1, o, a, i;
|
|
1980
1980
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
1981
1981
|
return !1;
|
|
@@ -1987,7 +1987,7 @@ function Ua(e) {
|
|
|
1987
1987
|
} else {
|
|
1988
1988
|
for (; i !== 0 && !he(i); )
|
|
1989
1989
|
i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), qn.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
1990
|
-
a = e.input.slice(n, e.position),
|
|
1990
|
+
a = e.input.slice(n, e.position), xa.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
|
|
1991
1991
|
}
|
|
1992
1992
|
a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
|
|
1993
1993
|
try {
|
|
@@ -1997,7 +1997,7 @@ function Ua(e) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return t ? e.tag = a : je.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function Ua(e) {
|
|
2001
2001
|
var n, t;
|
|
2002
2002
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2003
2003
|
return !1;
|
|
@@ -2005,7 +2005,7 @@ function qa(e) {
|
|
|
2005
2005
|
t = e.input.charCodeAt(++e.position);
|
|
2006
2006
|
return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function qa(e) {
|
|
2009
2009
|
var n, t, r;
|
|
2010
2010
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2011
2011
|
return !1;
|
|
@@ -2014,11 +2014,11 @@ function Ra(e) {
|
|
|
2014
2014
|
return e.position === n && $(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), je.call(e.anchorMap, t) || $(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], oe(e, !0, -1), !0;
|
|
2015
2015
|
}
|
|
2016
2016
|
function Re(e, n, t, r, o) {
|
|
2017
|
-
var a, i, s, l = 1, c = !1, d = !1, u, g, f, A,
|
|
2017
|
+
var a, i, s, l = 1, c = !1, d = !1, u, g, f, A, v, p;
|
|
2018
2018
|
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 || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2019
|
-
for (;
|
|
2019
|
+
for (; La(e) || Ua(e); )
|
|
2020
2020
|
oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2021
|
-
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ?
|
|
2021
|
+
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Pa(e, p, v)) || Na(e, v) ? d = !0 : (i && Ba(e, v) || Fa(e, v) || Ka(e, v) ? d = !0 : qa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Oa(e, v, 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)
|
|
2022
2022
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2023
2023
|
else if (e.tag === "?") {
|
|
2024
2024
|
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2039,7 +2039,7 @@ function Re(e, n, t, r, o) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Ra(e) {
|
|
2043
2043
|
var n = e.position, t, r, o, a = !1, i;
|
|
2044
2044
|
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 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
2045
2045
|
for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
|
|
@@ -2061,7 +2061,7 @@ function Va(e) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
i !== 0 && Mt(e), je.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
|
|
2063
2063
|
}
|
|
2064
|
-
if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks &&
|
|
2064
|
+
if (oe(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, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Sa.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)) {
|
|
2065
2065
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2066
2066
|
return;
|
|
2067
2067
|
}
|
|
@@ -2073,14 +2073,14 @@ function Va(e) {
|
|
|
2073
2073
|
function Hn(e, n) {
|
|
2074
2074
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2075
2075
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2076
|
-
var t = new
|
|
2076
|
+
var t = new Ea(e, n), r = e.indexOf("\0");
|
|
2077
2077
|
for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2078
2078
|
t.lineIndent += 1, t.position += 1;
|
|
2079
2079
|
for (; t.position < t.length - 1; )
|
|
2080
|
-
|
|
2080
|
+
Ra(t);
|
|
2081
2081
|
return t.documents;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Va(e, n, t) {
|
|
2084
2084
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2085
2085
|
var r = Hn(e, t);
|
|
2086
2086
|
if (typeof n != "function")
|
|
@@ -2088,7 +2088,7 @@ function Da(e, n, t) {
|
|
|
2088
2088
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2089
2089
|
n(r[o]);
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function Da(e, n) {
|
|
2092
2092
|
var t = Hn(e, n);
|
|
2093
2093
|
if (t.length !== 0) {
|
|
2094
2094
|
if (t.length === 1)
|
|
@@ -2096,10 +2096,10 @@ function Ga(e, n) {
|
|
|
2096
2096
|
throw new me("expected a single document in the stream, but found more");
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
var
|
|
2100
|
-
loadAll:
|
|
2101
|
-
load:
|
|
2102
|
-
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279,
|
|
2099
|
+
var Ga = Va, Ha = Da, zn = {
|
|
2100
|
+
loadAll: Ga,
|
|
2101
|
+
load: Ha
|
|
2102
|
+
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279, za = 9, We = 10, Ja = 13, Wa = 32, Ya = 33, Za = 34, bt = 35, Qa = 37, Xa = 38, ei = 39, ti = 42, Yn = 44, ni = 45, st = 58, ri = 61, oi = 62, ai = 63, ii = 64, Zn = 91, Qn = 93, si = 96, Xn = 123, li = 124, er = 125, fe = {};
|
|
2103
2103
|
fe[0] = "\\0";
|
|
2104
2104
|
fe[7] = "\\a";
|
|
2105
2105
|
fe[8] = "\\b";
|
|
@@ -2115,7 +2115,7 @@ fe[133] = "\\N";
|
|
|
2115
2115
|
fe[160] = "\\_";
|
|
2116
2116
|
fe[8232] = "\\L";
|
|
2117
2117
|
fe[8233] = "\\P";
|
|
2118
|
-
var
|
|
2118
|
+
var ui = [
|
|
2119
2119
|
"y",
|
|
2120
2120
|
"Y",
|
|
2121
2121
|
"yes",
|
|
@@ -2132,8 +2132,8 @@ var ci = [
|
|
|
2132
2132
|
"off",
|
|
2133
2133
|
"Off",
|
|
2134
2134
|
"OFF"
|
|
2135
|
-
],
|
|
2136
|
-
function
|
|
2135
|
+
], ci = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2136
|
+
function di(e, n) {
|
|
2137
2137
|
var t, r, o, a, i, s, l;
|
|
2138
2138
|
if (n === null)
|
|
2139
2139
|
return {};
|
|
@@ -2141,7 +2141,7 @@ function pi(e, n) {
|
|
|
2141
2141
|
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 && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
|
|
2142
2142
|
return t;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function pi(e) {
|
|
2145
2145
|
var n, t, r;
|
|
2146
2146
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2147
2147
|
t = "x", r = 2;
|
|
@@ -2153,9 +2153,9 @@ function fi(e) {
|
|
|
2153
2153
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2154
2154
|
return "\\" + t + se.repeat("0", r - n.length) + n;
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2157
|
-
function
|
|
2158
|
-
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2156
|
+
var fi = 1, Ye = 2;
|
|
2157
|
+
function mi(e) {
|
|
2158
|
+
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = 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 === '"' ? Ye : 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;
|
|
2159
2159
|
}
|
|
2160
2160
|
function Xt(e, n) {
|
|
2161
2161
|
for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
|
|
@@ -2164,11 +2164,11 @@ function Xt(e, n) {
|
|
|
2164
2164
|
` && (a += t), a += i;
|
|
2165
2165
|
return a;
|
|
2166
2166
|
}
|
|
2167
|
-
function
|
|
2167
|
+
function Ct(e, n) {
|
|
2168
2168
|
return `
|
|
2169
2169
|
` + se.repeat(" ", e.indent * n);
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function gi(e, n) {
|
|
2172
2172
|
var t, r, o;
|
|
2173
2173
|
for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
|
|
2174
2174
|
if (o = e.implicitTypes[t], o.resolve(n))
|
|
@@ -2176,13 +2176,13 @@ function yi(e, n) {
|
|
|
2176
2176
|
return !1;
|
|
2177
2177
|
}
|
|
2178
2178
|
function lt(e) {
|
|
2179
|
-
return e ===
|
|
2179
|
+
return e === Wa || e === za;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Ze(e) {
|
|
2182
2182
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
|
|
2183
2183
|
}
|
|
2184
2184
|
function en(e) {
|
|
2185
|
-
return Ze(e) && e !== Et && e !==
|
|
2185
|
+
return Ze(e) && e !== Et && e !== Ja && e !== We;
|
|
2186
2186
|
}
|
|
2187
2187
|
function tn(e, n, t) {
|
|
2188
2188
|
var r = en(e), o = r && !lt(e);
|
|
@@ -2194,10 +2194,10 @@ function tn(e, n, t) {
|
|
|
2194
2194
|
) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
|
|
2195
2195
|
);
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return Ze(e) && e !== Et && !lt(e) && e !==
|
|
2197
|
+
function yi(e) {
|
|
2198
|
+
return Ze(e) && e !== Et && !lt(e) && e !== ni && e !== ai && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== Xa && e !== ti && e !== Ya && e !== li && e !== ri && e !== oi && e !== ei && e !== Za && e !== Qa && e !== ii && e !== si;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function hi(e) {
|
|
2201
2201
|
return !lt(e) && e !== st;
|
|
2202
2202
|
}
|
|
2203
2203
|
function He(e, n) {
|
|
@@ -2208,14 +2208,14 @@ function tr(e) {
|
|
|
2208
2208
|
var n = /^\n* /;
|
|
2209
2209
|
return n.test(e);
|
|
2210
2210
|
}
|
|
2211
|
-
var nr = 1,
|
|
2212
|
-
function
|
|
2213
|
-
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1,
|
|
2211
|
+
var nr = 1, kt = 2, rr = 3, or = 4, Le = 5;
|
|
2212
|
+
function vi(e, n, t, r, o, a, i, s) {
|
|
2213
|
+
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1, v = yi(He(e, 0)) && hi(He(e, e.length - 1));
|
|
2214
2214
|
if (n || i)
|
|
2215
2215
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2216
2216
|
if (c = He(e, l), !Ze(c))
|
|
2217
2217
|
return Le;
|
|
2218
|
-
|
|
2218
|
+
v = v && tn(c, d, s), d = c;
|
|
2219
2219
|
}
|
|
2220
2220
|
else {
|
|
2221
2221
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
@@ -2224,23 +2224,23 @@ function bi(e, n, t, r, o, a, i, s) {
|
|
|
2224
2224
|
l - A - 1 > r && e[A + 1] !== " ", A = l);
|
|
2225
2225
|
else if (!Ze(c))
|
|
2226
2226
|
return Le;
|
|
2227
|
-
|
|
2227
|
+
v = v && tn(c, d, s), d = c;
|
|
2228
2228
|
}
|
|
2229
2229
|
g = g || f && l - A - 1 > r && e[A + 1] !== " ";
|
|
2230
2230
|
}
|
|
2231
|
-
return !u && !g ?
|
|
2231
|
+
return !u && !g ? v && !i && !o(e) ? nr : a === Ye ? Le : kt : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : kt : g ? or : rr;
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function bi(e, n, t, r, o) {
|
|
2234
2234
|
e.dump = function() {
|
|
2235
2235
|
if (n.length === 0)
|
|
2236
2236
|
return e.quotingType === Ye ? '""' : "''";
|
|
2237
|
-
if (!e.noCompatMode && (
|
|
2237
|
+
if (!e.noCompatMode && (ui.indexOf(n) !== -1 || ci.test(n)))
|
|
2238
2238
|
return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
|
|
2239
2239
|
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;
|
|
2240
2240
|
function l(c) {
|
|
2241
|
-
return
|
|
2241
|
+
return gi(e, c);
|
|
2242
2242
|
}
|
|
2243
|
-
switch (
|
|
2243
|
+
switch (vi(
|
|
2244
2244
|
n,
|
|
2245
2245
|
s,
|
|
2246
2246
|
e.indent,
|
|
@@ -2252,14 +2252,14 @@ function ki(e, n, t, r, o) {
|
|
|
2252
2252
|
)) {
|
|
2253
2253
|
case nr:
|
|
2254
2254
|
return n;
|
|
2255
|
-
case
|
|
2255
|
+
case kt:
|
|
2256
2256
|
return "'" + n.replace(/'/g, "''") + "'";
|
|
2257
2257
|
case rr:
|
|
2258
2258
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2259
2259
|
case or:
|
|
2260
2260
|
return ">" + nn(n, e.indent) + rn(Xt(Ci(n, i), a));
|
|
2261
2261
|
case Le:
|
|
2262
|
-
return '"' +
|
|
2262
|
+
return '"' + ki(n) + '"';
|
|
2263
2263
|
default:
|
|
2264
2264
|
throw new me("impossible error: invalid scalar style");
|
|
2265
2265
|
}
|
|
@@ -2300,12 +2300,12 @@ function on(e, n) {
|
|
|
2300
2300
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2301
2301
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function ki(e) {
|
|
2304
2304
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2305
|
-
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r ||
|
|
2305
|
+
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || pi(t);
|
|
2306
2306
|
return n;
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function _i(e, n, t) {
|
|
2309
2309
|
var r = "", o = e.tag, a, i, s;
|
|
2310
2310
|
for (a = 0, i = t.length; a < i; a += 1)
|
|
2311
2311
|
s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -2314,16 +2314,16 @@ function wi(e, n, t) {
|
|
|
2314
2314
|
function an(e, n, t, r) {
|
|
2315
2315
|
var o = "", a = e.tag, i, s, l;
|
|
2316
2316
|
for (i = 0, s = t.length; i < s; i += 1)
|
|
2317
|
-
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o +=
|
|
2317
|
+
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2318
2318
|
e.tag = a, e.dump = o || "[]";
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function wi(e, n, t) {
|
|
2321
2321
|
var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
|
|
2322
2322
|
for (i = 0, s = a.length; i < s; i += 1)
|
|
2323
2323
|
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
|
|
2324
2324
|
e.tag = o, e.dump = "{" + r + "}";
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Ii(e, n, t, r) {
|
|
2327
2327
|
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
|
|
2328
2328
|
if (e.sortKeys === !0)
|
|
2329
2329
|
i.sort();
|
|
@@ -2332,7 +2332,7 @@ function Ai(e, n, t, r) {
|
|
|
2332
2332
|
else if (e.sortKeys)
|
|
2333
2333
|
throw new me("sortKeys must be a boolean or a function");
|
|
2334
2334
|
for (s = 0, l = i.length; s < l; s += 1)
|
|
2335
|
-
g = "", (!r || o !== "") && (g +=
|
|
2335
|
+
g = "", (!r || o !== "") && (g += Ct(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? g += "?" : g += "? "), g += e.dump, u && (g += Ct(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? g += ":" : g += ": ", g += e.dump, o += g));
|
|
2336
2336
|
e.tag = a, e.dump = o || "{}";
|
|
2337
2337
|
}
|
|
2338
2338
|
function sn(e, n, t) {
|
|
@@ -2361,11 +2361,11 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2361
2361
|
e.dump = "*ref_" + u;
|
|
2362
2362
|
else {
|
|
2363
2363
|
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2364
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2364
|
+
r && Object.keys(e.dump).length !== 0 ? (Ii(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (wi(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2365
2365
|
else if (s === "[object Array]")
|
|
2366
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2366
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (_i(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2367
2367
|
else if (s === "[object String]")
|
|
2368
|
-
e.tag !== "?" &&
|
|
2368
|
+
e.tag !== "?" && bi(e, e.dump, n, a, l);
|
|
2369
2369
|
else {
|
|
2370
2370
|
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2371
2371
|
return !1;
|
|
@@ -2377,7 +2377,7 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
return !0;
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function Ai(e, n) {
|
|
2381
2381
|
var t = [], r = [], o, a;
|
|
2382
2382
|
for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
|
|
2383
2383
|
n.duplicates.push(t[r[o]]);
|
|
@@ -2395,65 +2395,65 @@ function _t(e, n, t) {
|
|
|
2395
2395
|
for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
|
|
2396
2396
|
_t(e[r[o]], n, t);
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Si(e, n) {
|
|
2399
2399
|
n = n || {};
|
|
2400
|
-
var t = new
|
|
2401
|
-
t.noRefs ||
|
|
2400
|
+
var t = new mi(n);
|
|
2401
|
+
t.noRefs || Ai(e, t);
|
|
2402
2402
|
var r = e;
|
|
2403
2403
|
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
|
|
2404
2404
|
` : "";
|
|
2405
2405
|
}
|
|
2406
|
-
var
|
|
2407
|
-
dump:
|
|
2406
|
+
var xi = Si, Ti = {
|
|
2407
|
+
dump: xi
|
|
2408
2408
|
};
|
|
2409
2409
|
function Ot(e, n) {
|
|
2410
2410
|
return function() {
|
|
2411
2411
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2412
2412
|
};
|
|
2413
2413
|
}
|
|
2414
|
-
var
|
|
2414
|
+
var $i = de, Mi = Cn, ji = In, Ei = $n, Oi = Mn, Fi = $t, Ki = zn.load, Ni = zn.loadAll, Bi = Ti.dump, Pi = me, Li = {
|
|
2415
2415
|
binary: Kn,
|
|
2416
2416
|
float: Tn,
|
|
2417
2417
|
map: wn,
|
|
2418
2418
|
null: An,
|
|
2419
|
-
pairs:
|
|
2419
|
+
pairs: Bn,
|
|
2420
2420
|
set: Pn,
|
|
2421
2421
|
timestamp: On,
|
|
2422
2422
|
bool: Sn,
|
|
2423
2423
|
int: xn,
|
|
2424
2424
|
merge: Fn,
|
|
2425
|
-
omap:
|
|
2425
|
+
omap: Nn,
|
|
2426
2426
|
seq: _n,
|
|
2427
|
-
str:
|
|
2428
|
-
},
|
|
2429
|
-
Type:
|
|
2430
|
-
Schema:
|
|
2431
|
-
FAILSAFE_SCHEMA:
|
|
2432
|
-
JSON_SCHEMA:
|
|
2433
|
-
CORE_SCHEMA:
|
|
2434
|
-
DEFAULT_SCHEMA:
|
|
2435
|
-
load:
|
|
2427
|
+
str: kn
|
|
2428
|
+
}, Ui = Ot("safeLoad", "load"), qi = Ot("safeLoadAll", "loadAll"), Ri = Ot("safeDump", "dump"), Vi = {
|
|
2429
|
+
Type: $i,
|
|
2430
|
+
Schema: Mi,
|
|
2431
|
+
FAILSAFE_SCHEMA: ji,
|
|
2432
|
+
JSON_SCHEMA: Ei,
|
|
2433
|
+
CORE_SCHEMA: Oi,
|
|
2434
|
+
DEFAULT_SCHEMA: Fi,
|
|
2435
|
+
load: Ki,
|
|
2436
2436
|
loadAll: Ni,
|
|
2437
|
-
dump:
|
|
2438
|
-
YAMLException:
|
|
2439
|
-
types:
|
|
2440
|
-
safeLoad:
|
|
2441
|
-
safeLoadAll:
|
|
2442
|
-
safeDump:
|
|
2437
|
+
dump: Bi,
|
|
2438
|
+
YAMLException: Pi,
|
|
2439
|
+
types: Li,
|
|
2440
|
+
safeLoad: Ui,
|
|
2441
|
+
safeLoadAll: qi,
|
|
2442
|
+
safeDump: Ri
|
|
2443
2443
|
};
|
|
2444
|
-
const
|
|
2444
|
+
const Di = {
|
|
2445
2445
|
key: 0,
|
|
2446
2446
|
class: "config-card-display-form"
|
|
2447
|
-
},
|
|
2447
|
+
}, Gi = ["data-testid"], Hi = {
|
|
2448
2448
|
key: 0,
|
|
2449
2449
|
class: "config-card-prop-section-title"
|
|
2450
|
-
},
|
|
2450
|
+
}, zi = {
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
class: "config-card-display-json"
|
|
2453
|
-
},
|
|
2453
|
+
}, Ji = {
|
|
2454
2454
|
key: 2,
|
|
2455
2455
|
class: "config-card-display-yaml"
|
|
2456
|
-
},
|
|
2456
|
+
}, Wi = /* @__PURE__ */ ae({
|
|
2457
2457
|
__name: "ConfigCardDisplay",
|
|
2458
2458
|
props: {
|
|
2459
2459
|
propertyCollections: {
|
|
@@ -2481,17 +2481,17 @@ const Gi = {
|
|
|
2481
2481
|
setup(e) {
|
|
2482
2482
|
const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
|
|
2483
2483
|
return xe(() => n.format, (s) => {
|
|
2484
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2484
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Vi.dump(n.record));
|
|
2485
2485
|
}, { immediate: !0 }), (s, l) => {
|
|
2486
2486
|
const c = U("KCodeBlock");
|
|
2487
2487
|
return m(), j(ve, null, [
|
|
2488
|
-
e.format === "structured" ? (m(), j("div",
|
|
2488
|
+
e.format === "structured" ? (m(), j("div", Di, [
|
|
2489
2489
|
(m(!0), j(ve, null, ye(e.propListTypes, (d) => (m(), j("div", {
|
|
2490
2490
|
key: `config-card-details-${d}-props`,
|
|
2491
2491
|
class: Ke(`config-card-details-${d}-props`),
|
|
2492
2492
|
"data-testid": `config-card-details-${d}-props`
|
|
2493
2493
|
}, [
|
|
2494
|
-
d !== "basic" ? (m(), j("div",
|
|
2494
|
+
d !== "basic" ? (m(), j("div", Hi, F(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2495
2495
|
(m(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (m(), V(xt, {
|
|
2496
2496
|
key: u.key,
|
|
2497
2497
|
item: u
|
|
@@ -2515,9 +2515,9 @@ const Gi = {
|
|
|
2515
2515
|
key: "0"
|
|
2516
2516
|
} : void 0
|
|
2517
2517
|
]), 1032, ["item"]))), 128))
|
|
2518
|
-
], 10,
|
|
2518
|
+
], 10, Gi))), 128))
|
|
2519
2519
|
])) : G("", !0),
|
|
2520
|
-
e.format === "json" ? (m(), j("div",
|
|
2520
|
+
e.format === "json" ? (m(), j("div", zi, [
|
|
2521
2521
|
K(c, {
|
|
2522
2522
|
id: "config-card-codeblock",
|
|
2523
2523
|
code: a.value,
|
|
@@ -2525,7 +2525,7 @@ const Gi = {
|
|
|
2525
2525
|
theme: "dark"
|
|
2526
2526
|
}, null, 8, ["code"])
|
|
2527
2527
|
])) : G("", !0),
|
|
2528
|
-
e.format === "yaml" ? (m(), j("div",
|
|
2528
|
+
e.format === "yaml" ? (m(), j("div", Ji, [
|
|
2529
2529
|
K(c, {
|
|
2530
2530
|
id: "config-card-codeblock",
|
|
2531
2531
|
code: i.value,
|
|
@@ -2536,18 +2536,18 @@ const Gi = {
|
|
|
2536
2536
|
], 64);
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
2539
|
-
}),
|
|
2539
|
+
}), Yi = /* @__PURE__ */ ke(Wi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Zi = (e, n) => {
|
|
2540
2540
|
const t = e.__vccOpts || e;
|
|
2541
2541
|
for (const [r, o] of n)
|
|
2542
2542
|
t[r] = o;
|
|
2543
2543
|
return t;
|
|
2544
|
-
},
|
|
2544
|
+
}, Qi = (e) => (yr("data-v-dd88a2bb"), e = e(), hr(), e), Xi = ["aria-hidden"], es = {
|
|
2545
2545
|
key: 0,
|
|
2546
2546
|
"data-testid": "kui-icon-svg-title"
|
|
2547
|
-
},
|
|
2547
|
+
}, ts = /* @__PURE__ */ Qi(() => /* @__PURE__ */ R("path", {
|
|
2548
2548
|
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",
|
|
2549
2549
|
fill: "currentColor"
|
|
2550
|
-
}, null, -1)),
|
|
2550
|
+
}, null, -1)), ns = /* @__PURE__ */ ae({
|
|
2551
2551
|
__name: "BookIcon",
|
|
2552
2552
|
props: {
|
|
2553
2553
|
/** The accessibility text provided to screen readers */
|
|
@@ -2620,7 +2620,7 @@ const Gi = {
|
|
|
2620
2620
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2621
2621
|
class: "kui-icon book-icon",
|
|
2622
2622
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2623
|
-
style:
|
|
2623
|
+
style: mr(r.value)
|
|
2624
2624
|
}, {
|
|
2625
2625
|
default: h(() => [
|
|
2626
2626
|
(m(), j("svg", {
|
|
@@ -2633,23 +2633,23 @@ const Gi = {
|
|
|
2633
2633
|
width: "100%",
|
|
2634
2634
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2635
2635
|
}, [
|
|
2636
|
-
e.title ? (m(), j("title",
|
|
2637
|
-
|
|
2638
|
-
], 8,
|
|
2636
|
+
e.title ? (m(), j("title", es, F(e.title), 1)) : G("", !0),
|
|
2637
|
+
ts
|
|
2638
|
+
], 8, Xi))
|
|
2639
2639
|
]),
|
|
2640
2640
|
_: 1
|
|
2641
2641
|
}, 8, ["aria-hidden", "style"]));
|
|
2642
2642
|
}
|
|
2643
|
-
}),
|
|
2643
|
+
}), rs = /* @__PURE__ */ Zi(ns, [["__scopeId", "data-v-dd88a2bb"]]), os = { "data-testid": "config-card-title" }, as = { class: "config-card-actions" }, is = ["href"], ss = {
|
|
2644
2644
|
key: 2,
|
|
2645
2645
|
class: "config-card-details-section"
|
|
2646
|
-
},
|
|
2646
|
+
}, ls = {
|
|
2647
2647
|
key: 3,
|
|
2648
2648
|
class: "config-card-details-section"
|
|
2649
|
-
},
|
|
2649
|
+
}, us = ["data-testid"], cs = {
|
|
2650
2650
|
key: 0,
|
|
2651
2651
|
class: "config-card-prop-section-title"
|
|
2652
|
-
},
|
|
2652
|
+
}, ds = /* @__PURE__ */ ae({
|
|
2653
2653
|
__name: "EntityBaseConfigCard",
|
|
2654
2654
|
props: {
|
|
2655
2655
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2776,19 +2776,19 @@ const Gi = {
|
|
|
2776
2776
|
// the last property displayed
|
|
2777
2777
|
section: be.Basic
|
|
2778
2778
|
}
|
|
2779
|
-
}, f = O(!1), A = O(!1),
|
|
2780
|
-
var w,
|
|
2779
|
+
}, f = O(!1), A = O(!1), v = O(""), p = O(), S = M(() => {
|
|
2780
|
+
var w, N, B;
|
|
2781
2781
|
if (!p.value)
|
|
2782
2782
|
return [];
|
|
2783
|
-
const
|
|
2783
|
+
const k = [], x = Object.keys(p.value).length;
|
|
2784
2784
|
for (const T in p.value) {
|
|
2785
|
-
const P = (
|
|
2785
|
+
const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = g[T]) == null ? void 0 : B.order;
|
|
2786
2786
|
let Q = x;
|
|
2787
|
-
(J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P),
|
|
2787
|
+
(J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), k.push([T, Q]);
|
|
2788
2788
|
}
|
|
2789
|
-
return
|
|
2789
|
+
return k.sort(function(T, P) {
|
|
2790
2790
|
return T[1] - P[1];
|
|
2791
|
-
}),
|
|
2791
|
+
}), k.map((T) => {
|
|
2792
2792
|
var P, J;
|
|
2793
2793
|
const Q = T[0], X = (P = p.value) == null ? void 0 : P[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
|
|
2794
2794
|
return {
|
|
@@ -2801,21 +2801,21 @@ const Gi = {
|
|
|
2801
2801
|
section: ee.section ?? ((ie == null ? void 0 : ie.section) || be.Advanced)
|
|
2802
2802
|
};
|
|
2803
2803
|
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
2804
|
-
}),
|
|
2805
|
-
var w,
|
|
2804
|
+
}), b = M(() => {
|
|
2805
|
+
var w, N;
|
|
2806
2806
|
if (!p.value || !r.pluginConfigKey)
|
|
2807
2807
|
return [];
|
|
2808
|
-
const
|
|
2809
|
-
for (const T in
|
|
2810
|
-
const P = (
|
|
2811
|
-
let Q = J != null && J !== "" ?
|
|
2812
|
-
P && (Q = P === -1 ?
|
|
2808
|
+
const B = p.value[r.pluginConfigKey] || {}, k = Object.keys(B).length, x = [];
|
|
2809
|
+
for (const T in B) {
|
|
2810
|
+
const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
|
|
2811
|
+
let Q = J != null && J !== "" ? k - 1 : k;
|
|
2812
|
+
P && (Q = P === -1 ? k + 1 : P), x.push([T, Q]);
|
|
2813
2813
|
}
|
|
2814
2814
|
return x.sort(function(T, P) {
|
|
2815
2815
|
return T[1] - P[1];
|
|
2816
2816
|
}), x.map((T) => {
|
|
2817
2817
|
var P;
|
|
2818
|
-
const J = T[0], Q =
|
|
2818
|
+
const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
|
|
2819
2819
|
return {
|
|
2820
2820
|
key: J,
|
|
2821
2821
|
value: Q,
|
|
@@ -2826,20 +2826,20 @@ const Gi = {
|
|
|
2826
2826
|
section: be.Plugin
|
|
2827
2827
|
};
|
|
2828
2828
|
}).filter((T) => !T.hidden);
|
|
2829
|
-
}),
|
|
2830
|
-
var w,
|
|
2829
|
+
}), C = M(() => {
|
|
2830
|
+
var w, N, B, k;
|
|
2831
2831
|
return {
|
|
2832
2832
|
basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
|
|
2833
|
-
advanced: (
|
|
2834
|
-
plugin: (
|
|
2833
|
+
advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
|
|
2834
|
+
plugin: (k = b.value) == null ? void 0 : k.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
|
|
2835
2835
|
};
|
|
2836
2836
|
}), I = M(() => {
|
|
2837
2837
|
const w = [];
|
|
2838
|
-
return
|
|
2838
|
+
return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
|
|
2839
2839
|
}), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
|
|
2840
|
-
var w,
|
|
2841
|
-
let
|
|
2842
|
-
return r.config.app === "konnect" ?
|
|
2840
|
+
var w, N;
|
|
2841
|
+
let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2842
|
+
return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (N = r.config) != null && N.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
|
|
2843
2843
|
}), H = (w) => {
|
|
2844
2844
|
p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2845
2845
|
};
|
|
@@ -2856,22 +2856,22 @@ const Gi = {
|
|
|
2856
2856
|
throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
2857
2857
|
else
|
|
2858
2858
|
p.value = { ...w };
|
|
2859
|
-
Object.keys(r.configSchema).filter((
|
|
2860
|
-
p.value && typeof p.value[
|
|
2859
|
+
Object.keys(r.configSchema).filter((N) => r.configSchema[N].forceShow).forEach((N) => {
|
|
2860
|
+
p.value && typeof p.value[N] > "u" && (p.value[N] = null);
|
|
2861
2861
|
}), n("fetch:success", w);
|
|
2862
2862
|
} catch (w) {
|
|
2863
|
-
const
|
|
2864
|
-
|
|
2863
|
+
const N = i(w);
|
|
2864
|
+
v.value = N.startsWith("code") ? a("baseConfigCard.errors.load") : N, A.value = !0, n("fetch:error", w);
|
|
2865
2865
|
} finally {
|
|
2866
2866
|
f.value = !1;
|
|
2867
2867
|
}
|
|
2868
|
-
}), (w,
|
|
2869
|
-
const
|
|
2868
|
+
}), (w, N) => {
|
|
2869
|
+
const B = U("KLabel"), k = U("KSelect"), x = U("KButton"), T = U("KClipboardProvider"), P = U("KSkeleton"), J = U("KEmptyState"), Q = U("KCard");
|
|
2870
2870
|
return m(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
|
|
2871
2871
|
actions: h(() => [
|
|
2872
|
-
R("div",
|
|
2872
|
+
R("div", as, [
|
|
2873
2873
|
Y(w.$slots, "actions", {}, void 0, !0),
|
|
2874
|
-
e.config.jsonYamlEnabled ? (m(), V(
|
|
2874
|
+
e.config.jsonYamlEnabled ? (m(), V(B, {
|
|
2875
2875
|
key: 0,
|
|
2876
2876
|
class: "config-format-select-label",
|
|
2877
2877
|
"data-testid": "config-format-select-label"
|
|
@@ -2881,7 +2881,7 @@ const Gi = {
|
|
|
2881
2881
|
]),
|
|
2882
2882
|
_: 1
|
|
2883
2883
|
})) : G("", !0),
|
|
2884
|
-
e.config.jsonYamlEnabled ? (m(), V(
|
|
2884
|
+
e.config.jsonYamlEnabled ? (m(), V(k, {
|
|
2885
2885
|
key: 1,
|
|
2886
2886
|
appearance: "select",
|
|
2887
2887
|
"data-testid": "select-config-format",
|
|
@@ -2900,8 +2900,8 @@ const Gi = {
|
|
|
2900
2900
|
rel: "noopener",
|
|
2901
2901
|
target: "_blank"
|
|
2902
2902
|
}, [
|
|
2903
|
-
K(y(
|
|
2904
|
-
], 8,
|
|
2903
|
+
K(y(rs), { size: y(co) }, null, 8, ["size"])
|
|
2904
|
+
], 8, is)
|
|
2905
2905
|
]),
|
|
2906
2906
|
_: 1
|
|
2907
2907
|
})) : G("", !0),
|
|
@@ -2935,15 +2935,15 @@ const Gi = {
|
|
|
2935
2935
|
"is-error": ""
|
|
2936
2936
|
}, {
|
|
2937
2937
|
message: h(() => [
|
|
2938
|
-
R("h3", null, F(
|
|
2938
|
+
R("h3", null, F(v.value), 1)
|
|
2939
2939
|
]),
|
|
2940
2940
|
_: 1
|
|
2941
2941
|
})) : G("", !0),
|
|
2942
|
-
e.config.jsonYamlEnabled ? (m(), j("div",
|
|
2943
|
-
K(
|
|
2942
|
+
e.config.jsonYamlEnabled ? (m(), j("div", ss, [
|
|
2943
|
+
K(Yi, {
|
|
2944
2944
|
format: d.value,
|
|
2945
2945
|
"prop-list-types": I.value,
|
|
2946
|
-
"property-collections":
|
|
2946
|
+
"property-collections": C.value,
|
|
2947
2947
|
record: p.value
|
|
2948
2948
|
}, Te({ _: 2 }, [
|
|
2949
2949
|
ye(Object.keys(w.$slots), (X) => ({
|
|
@@ -2956,14 +2956,14 @@ const Gi = {
|
|
|
2956
2956
|
])
|
|
2957
2957
|
}))
|
|
2958
2958
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2959
|
-
])) : (m(), j("div",
|
|
2959
|
+
])) : (m(), j("div", ls, [
|
|
2960
2960
|
(m(!0), j(ve, null, ye(I.value, (X) => (m(), j("div", {
|
|
2961
2961
|
key: `config-card-details-${X}-props`,
|
|
2962
2962
|
class: Ke(`config-card-details-${X}-props`),
|
|
2963
2963
|
"data-testid": `config-card-details-${X}-props`
|
|
2964
2964
|
}, [
|
|
2965
|
-
X !== "basic" ? (m(), j("div",
|
|
2966
|
-
(m(!0), j(ve, null, ye(
|
|
2965
|
+
X !== "basic" ? (m(), j("div", cs, F(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2966
|
+
(m(!0), j(ve, null, ye(C.value[X], (ee) => (m(), V(xt, {
|
|
2967
2967
|
key: ee.key,
|
|
2968
2968
|
item: ee
|
|
2969
2969
|
}, Te({
|
|
@@ -2986,7 +2986,7 @@ const Gi = {
|
|
|
2986
2986
|
key: "0"
|
|
2987
2987
|
} : void 0
|
|
2988
2988
|
]), 1032, ["item"]))), 128))
|
|
2989
|
-
], 10,
|
|
2989
|
+
], 10, us))), 128))
|
|
2990
2990
|
]))
|
|
2991
2991
|
]),
|
|
2992
2992
|
_: 2
|
|
@@ -2994,7 +2994,7 @@ const Gi = {
|
|
|
2994
2994
|
e.hideTitle ? void 0 : {
|
|
2995
2995
|
name: "title",
|
|
2996
2996
|
fn: h(() => [
|
|
2997
|
-
R("div",
|
|
2997
|
+
R("div", os, [
|
|
2998
2998
|
Y(w.$slots, "title", {}, () => [
|
|
2999
2999
|
Z(F(y(a)("baseConfigCard.title")), 1)
|
|
3000
3000
|
], !0)
|
|
@@ -3005,10 +3005,10 @@ const Gi = {
|
|
|
3005
3005
|
]), 1024);
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
}),
|
|
3008
|
+
}), ps = /* @__PURE__ */ ke(ds, [["__scopeId", "data-v-64349aa2"]]), fs = ["onReset", "onSubmit"], ms = {
|
|
3009
3009
|
class: "form-actions",
|
|
3010
3010
|
"data-testid": "form-actions"
|
|
3011
|
-
},
|
|
3011
|
+
}, gs = /* @__PURE__ */ ae({
|
|
3012
3012
|
__name: "EntityBaseForm",
|
|
3013
3013
|
props: {
|
|
3014
3014
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3064,13 +3064,13 @@ const Gi = {
|
|
|
3064
3064
|
var p, S;
|
|
3065
3065
|
if (!r.editId)
|
|
3066
3066
|
return "";
|
|
3067
|
-
let
|
|
3068
|
-
return r.config.app === "konnect" ?
|
|
3067
|
+
let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
3068
|
+
return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
|
|
3069
3069
|
}), f = () => {
|
|
3070
3070
|
r.config.cancelRoute ? o.push(r.config.cancelRoute) : A();
|
|
3071
3071
|
}, A = () => {
|
|
3072
3072
|
n("cancel");
|
|
3073
|
-
},
|
|
3073
|
+
}, v = () => {
|
|
3074
3074
|
u.value || n("submit");
|
|
3075
3075
|
};
|
|
3076
3076
|
return xe(() => l.value, (p) => {
|
|
@@ -3088,13 +3088,13 @@ const Gi = {
|
|
|
3088
3088
|
l.value = !1;
|
|
3089
3089
|
}
|
|
3090
3090
|
}), (p, S) => {
|
|
3091
|
-
const
|
|
3091
|
+
const b = U("KSkeleton"), C = U("KEmptyState"), I = U("KAlert"), ne = U("KButton"), pe = U("KCard");
|
|
3092
3092
|
return m(), V(pe, { class: "kong-ui-entity-base-form" }, {
|
|
3093
3093
|
body: h(() => [
|
|
3094
|
-
l.value ? (m(), V(
|
|
3094
|
+
l.value ? (m(), V(b, {
|
|
3095
3095
|
key: 0,
|
|
3096
3096
|
type: "form"
|
|
3097
|
-
})) : c.value ? (m(), V(
|
|
3097
|
+
})) : c.value ? (m(), V(C, {
|
|
3098
3098
|
key: 1,
|
|
3099
3099
|
"cta-text": y(a)("baseForm.actions.back"),
|
|
3100
3100
|
"data-testid": "form-fetch-error",
|
|
@@ -3109,7 +3109,7 @@ const Gi = {
|
|
|
3109
3109
|
key: 2,
|
|
3110
3110
|
"data-testid": "form-content",
|
|
3111
3111
|
onReset: rt(A, ["prevent"]),
|
|
3112
|
-
onSubmit: rt(
|
|
3112
|
+
onSubmit: rt(v, ["prevent"])
|
|
3113
3113
|
}, [
|
|
3114
3114
|
Y(p.$slots, "default", {}, void 0, !0),
|
|
3115
3115
|
e.errorMessage ? (m(), V(I, {
|
|
@@ -3118,7 +3118,7 @@ const Gi = {
|
|
|
3118
3118
|
appearance: "danger",
|
|
3119
3119
|
"data-testid": "form-error"
|
|
3120
3120
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3121
|
-
R("div",
|
|
3121
|
+
R("div", ms, [
|
|
3122
3122
|
Y(p.$slots, "form-actions", {}, () => [
|
|
3123
3123
|
K(ne, {
|
|
3124
3124
|
appearance: "outline",
|
|
@@ -3144,16 +3144,16 @@ const Gi = {
|
|
|
3144
3144
|
}, 8, ["disabled"])
|
|
3145
3145
|
], !0)
|
|
3146
3146
|
])
|
|
3147
|
-
], 40,
|
|
3147
|
+
], 40, fs))
|
|
3148
3148
|
]),
|
|
3149
3149
|
_: 3
|
|
3150
3150
|
});
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
|
-
}),
|
|
3153
|
+
}), ys = /* @__PURE__ */ ke(gs, [["__scopeId", "data-v-44a90aae"]]), hs = {
|
|
3154
3154
|
key: 0,
|
|
3155
3155
|
"data-testid": "first-col"
|
|
3156
|
-
},
|
|
3156
|
+
}, vs = /* @__PURE__ */ ae({
|
|
3157
3157
|
__name: "EntityBaseTableCell",
|
|
3158
3158
|
props: {
|
|
3159
3159
|
keyName: {
|
|
@@ -3167,67 +3167,67 @@ const Gi = {
|
|
|
3167
3167
|
},
|
|
3168
3168
|
setup(e) {
|
|
3169
3169
|
const n = e, t = M(() => {
|
|
3170
|
-
var
|
|
3171
|
-
return ((
|
|
3170
|
+
var v;
|
|
3171
|
+
return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3172
3172
|
}), r = M(() => {
|
|
3173
|
-
var
|
|
3174
|
-
return ((
|
|
3173
|
+
var v;
|
|
3174
|
+
return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
|
|
3175
3175
|
}), o = M(() => {
|
|
3176
|
-
var
|
|
3177
|
-
const S = (
|
|
3176
|
+
var v, p;
|
|
3177
|
+
const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
|
|
3178
3178
|
return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3179
3179
|
});
|
|
3180
3180
|
let a;
|
|
3181
3181
|
const i = () => {
|
|
3182
3182
|
a && (a.disconnect(), a = void 0);
|
|
3183
3183
|
}, s = () => {
|
|
3184
|
-
var
|
|
3185
|
-
c.value = ((
|
|
3184
|
+
var v, p, S;
|
|
3185
|
+
c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
|
|
3186
3186
|
}, l = O({}), c = O(0), d = O(0), u = O(""), g = M(() => [r.value, t.value]), f = xe(
|
|
3187
3187
|
g,
|
|
3188
|
-
(
|
|
3188
|
+
(v) => {
|
|
3189
3189
|
if (o.value && (i(), "ResizeObserver" in window && window)) {
|
|
3190
3190
|
a = new ResizeObserver((p) => {
|
|
3191
3191
|
window.requestAnimationFrame(() => {
|
|
3192
3192
|
!Array.isArray(p) || !p.length || s();
|
|
3193
3193
|
});
|
|
3194
3194
|
});
|
|
3195
|
-
for (const p of
|
|
3195
|
+
for (const p of v)
|
|
3196
3196
|
p && a.observe(p);
|
|
3197
3197
|
}
|
|
3198
3198
|
},
|
|
3199
3199
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3200
3200
|
), A = M(() => o.value ? c.value > d.value : !1);
|
|
3201
|
-
return
|
|
3201
|
+
return pr(() => {
|
|
3202
3202
|
s();
|
|
3203
|
-
}),
|
|
3203
|
+
}), fr(() => {
|
|
3204
3204
|
f();
|
|
3205
|
-
}), (
|
|
3205
|
+
}), (v, p) => {
|
|
3206
3206
|
const S = U("KTooltip");
|
|
3207
3207
|
return m(), j("span", {
|
|
3208
3208
|
ref_key: "contentRef",
|
|
3209
3209
|
ref: l,
|
|
3210
3210
|
class: "content-wrapper"
|
|
3211
3211
|
}, [
|
|
3212
|
-
o.value ? (m(), j("span",
|
|
3212
|
+
o.value ? (m(), j("span", hs, [
|
|
3213
3213
|
K(S, {
|
|
3214
3214
|
label: A.value ? u.value : "",
|
|
3215
3215
|
"max-width": "300",
|
|
3216
3216
|
placement: "bottomStart"
|
|
3217
3217
|
}, {
|
|
3218
3218
|
default: h(() => [
|
|
3219
|
-
Y(
|
|
3219
|
+
Y(v.$slots, "default", {}, void 0, !0)
|
|
3220
3220
|
]),
|
|
3221
3221
|
_: 3
|
|
3222
3222
|
}, 8, ["label"])
|
|
3223
|
-
])) : Y(
|
|
3223
|
+
])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
|
|
3224
3224
|
], 512);
|
|
3225
3225
|
};
|
|
3226
3226
|
}
|
|
3227
|
-
}),
|
|
3227
|
+
}), bs = /* @__PURE__ */ ke(vs, [["__scopeId", "data-v-e42a20c9"]]), Cs = { class: "toolbar-container" }, ks = {
|
|
3228
3228
|
key: 0,
|
|
3229
3229
|
class: "toolbar-button-container"
|
|
3230
|
-
},
|
|
3230
|
+
}, _s = ["data-testid"], ws = /* @__PURE__ */ ae({
|
|
3231
3231
|
__name: "EntityBaseTable",
|
|
3232
3232
|
props: {
|
|
3233
3233
|
// table header configuration
|
|
@@ -3332,41 +3332,36 @@ const Gi = {
|
|
|
3332
3332
|
disableRowClick: {
|
|
3333
3333
|
type: Boolean,
|
|
3334
3334
|
default: !1
|
|
3335
|
-
},
|
|
3336
|
-
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
3337
|
-
useActionOutside: {
|
|
3338
|
-
type: Boolean,
|
|
3339
|
-
default: !1
|
|
3340
3335
|
}
|
|
3341
3336
|
},
|
|
3342
3337
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3343
3338
|
setup(e, { emit: n }) {
|
|
3344
|
-
const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (
|
|
3345
|
-
const
|
|
3339
|
+
const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (C) => C.hasData || !!t.query, i = M(() => {
|
|
3340
|
+
const C = [];
|
|
3346
3341
|
return Object.keys(t.tableHeaders).forEach((I) => {
|
|
3347
3342
|
const ne = t.tableHeaders[I];
|
|
3348
|
-
|
|
3343
|
+
C.push({
|
|
3349
3344
|
label: ne.label ?? I,
|
|
3350
3345
|
key: I,
|
|
3351
3346
|
sortable: ne.sortable ?? !1
|
|
3352
3347
|
});
|
|
3353
|
-
}), t.enableEntityActions &&
|
|
3348
|
+
}), t.enableEntityActions && C.push({
|
|
3354
3349
|
key: "actions",
|
|
3355
3350
|
hideLabel: !0
|
|
3356
|
-
}),
|
|
3357
|
-
}), s = (
|
|
3358
|
-
"data-rowid":
|
|
3359
|
-
"data-testid":
|
|
3360
|
-
...t.rowAttributes(
|
|
3361
|
-
}), l = O({}), c = (
|
|
3351
|
+
}), C;
|
|
3352
|
+
}), s = (C) => ({
|
|
3353
|
+
"data-rowid": C.id,
|
|
3354
|
+
"data-testid": C.name,
|
|
3355
|
+
...t.rowAttributes(C)
|
|
3356
|
+
}), l = O({}), c = (C) => {
|
|
3362
3357
|
var I;
|
|
3363
|
-
return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${
|
|
3364
|
-
}, d = (
|
|
3358
|
+
return (I = l.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${C.id}"]`);
|
|
3359
|
+
}, d = (C) => {
|
|
3365
3360
|
const I = {
|
|
3366
|
-
"data-testid":
|
|
3367
|
-
...t.cellAttributes(
|
|
3361
|
+
"data-testid": C.headerKey,
|
|
3362
|
+
...t.cellAttributes(C)
|
|
3368
3363
|
};
|
|
3369
|
-
return
|
|
3364
|
+
return C.colIndex === 0 && (I.style = {
|
|
3370
3365
|
maxWidth: "250px",
|
|
3371
3366
|
overflowX: "hidden",
|
|
3372
3367
|
textOverflow: "ellipsis"
|
|
@@ -3375,22 +3370,22 @@ const Gi = {
|
|
|
3375
3370
|
n("empty-state-cta-clicked"), g();
|
|
3376
3371
|
}, g = () => {
|
|
3377
3372
|
n("clear-search-input");
|
|
3378
|
-
}, f = M(() => t.disableRowClick ? void 0 : (
|
|
3373
|
+
}, f = M(() => t.disableRowClick ? void 0 : (C, I) => {
|
|
3379
3374
|
n("click:row", I);
|
|
3380
|
-
}), A = (
|
|
3381
|
-
n("sort",
|
|
3382
|
-
}, { setTablePreferences:
|
|
3383
|
-
const
|
|
3375
|
+
}), A = (C) => {
|
|
3376
|
+
n("sort", C);
|
|
3377
|
+
}, { setTablePreferences: v, getTablePreferences: p } = Ar(), S = M(() => {
|
|
3378
|
+
const C = p(t.preferencesStorageKey);
|
|
3384
3379
|
return {
|
|
3385
3380
|
...t.initialFetcherParams,
|
|
3386
|
-
...
|
|
3381
|
+
...C
|
|
3387
3382
|
};
|
|
3388
|
-
}),
|
|
3389
|
-
t.preferencesStorageKey &&
|
|
3383
|
+
}), b = (C) => {
|
|
3384
|
+
t.preferencesStorageKey && v(t.preferencesStorageKey, C);
|
|
3390
3385
|
};
|
|
3391
|
-
return (
|
|
3392
|
-
const ne = U("KIcon"), pe = U("KButton"), H = U("KDropdownMenu"), w = U("KTable"),
|
|
3393
|
-
return m(), V(
|
|
3386
|
+
return (C, I) => {
|
|
3387
|
+
const ne = U("KIcon"), pe = U("KButton"), H = U("KDropdownMenu"), w = U("KTable"), N = U("KCard");
|
|
3388
|
+
return m(), V(N, {
|
|
3394
3389
|
class: "kong-ui-entity-base-table",
|
|
3395
3390
|
title: e.title
|
|
3396
3391
|
}, {
|
|
@@ -3423,37 +3418,32 @@ const Gi = {
|
|
|
3423
3418
|
"search-input": e.query,
|
|
3424
3419
|
onKtableEmptyStateCtaClicked: u,
|
|
3425
3420
|
"onRow:click": f.value,
|
|
3426
|
-
onSort: I[0] || (I[0] = (
|
|
3427
|
-
"onUpdate:tablePreferences":
|
|
3421
|
+
onSort: I[0] || (I[0] = (B) => A(B)),
|
|
3422
|
+
"onUpdate:tablePreferences": b
|
|
3428
3423
|
}, Te({
|
|
3429
|
-
toolbar: h(({ state:
|
|
3424
|
+
toolbar: h(({ state: B }) => [
|
|
3430
3425
|
et(R("div", Cs, [
|
|
3431
|
-
Y(
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
key: 0,
|
|
3435
|
-
to: "#kong-ui-app-page-header-action-button"
|
|
3436
|
-
}, [
|
|
3437
|
-
Y(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3438
|
-
])) : Y(v.$slots, "toolbar-button", { key: 1 }, void 0, !0)
|
|
3426
|
+
Y(C.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3427
|
+
C.$slots["toolbar-button"] ? (m(), j("div", ks, [
|
|
3428
|
+
Y(C.$slots, "toolbar-button", {}, void 0, !0)
|
|
3439
3429
|
])) : G("", !0)
|
|
3440
3430
|
], 512), [
|
|
3441
|
-
[tt, a(
|
|
3431
|
+
[tt, a(B)]
|
|
3442
3432
|
])
|
|
3443
3433
|
]),
|
|
3444
|
-
actions: h(({ row:
|
|
3434
|
+
actions: h(({ row: B, rowKey: k, rowValue: x }) => [
|
|
3445
3435
|
R("div", {
|
|
3446
3436
|
class: "actions-container",
|
|
3447
|
-
"data-testid":
|
|
3437
|
+
"data-testid": B.name
|
|
3448
3438
|
}, [
|
|
3449
3439
|
K(H, {
|
|
3450
3440
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3451
3441
|
width: e.dropdownMenuWidth
|
|
3452
3442
|
}, {
|
|
3453
3443
|
items: h(() => [
|
|
3454
|
-
Y(
|
|
3455
|
-
row:
|
|
3456
|
-
rowKey:
|
|
3444
|
+
Y(C.$slots, "actions", {
|
|
3445
|
+
row: B,
|
|
3446
|
+
rowKey: k,
|
|
3457
3447
|
rowValue: x
|
|
3458
3448
|
}, void 0, !0)
|
|
3459
3449
|
]),
|
|
@@ -3465,7 +3455,7 @@ const Gi = {
|
|
|
3465
3455
|
}, {
|
|
3466
3456
|
icon: h(() => [
|
|
3467
3457
|
K(ne, {
|
|
3468
|
-
color: y(
|
|
3458
|
+
color: y(lo),
|
|
3469
3459
|
icon: "more",
|
|
3470
3460
|
size: "16"
|
|
3471
3461
|
}, null, 8, ["color"])
|
|
@@ -3475,19 +3465,19 @@ const Gi = {
|
|
|
3475
3465
|
]),
|
|
3476
3466
|
_: 2
|
|
3477
3467
|
}, 1032, ["width"])
|
|
3478
|
-
], 8,
|
|
3468
|
+
], 8, _s)
|
|
3479
3469
|
]),
|
|
3480
3470
|
_: 2
|
|
3481
3471
|
}, [
|
|
3482
|
-
ye(e.tableHeaders, (
|
|
3483
|
-
name:
|
|
3472
|
+
ye(e.tableHeaders, (B, k) => ({
|
|
3473
|
+
name: k,
|
|
3484
3474
|
fn: h(({ row: x, rowKey: T, rowValue: P }) => [
|
|
3485
|
-
K(
|
|
3486
|
-
"key-name": String(
|
|
3475
|
+
K(bs, {
|
|
3476
|
+
"key-name": String(k),
|
|
3487
3477
|
"row-el": c(x)
|
|
3488
3478
|
}, {
|
|
3489
3479
|
default: h(() => [
|
|
3490
|
-
Y(
|
|
3480
|
+
Y(C.$slots, k, {
|
|
3491
3481
|
row: x,
|
|
3492
3482
|
rowKey: T,
|
|
3493
3483
|
rowValue: P
|
|
@@ -3505,13 +3495,13 @@ const Gi = {
|
|
|
3505
3495
|
}, 8, ["title"]);
|
|
3506
3496
|
};
|
|
3507
3497
|
}
|
|
3508
|
-
}),
|
|
3498
|
+
}), Is = /* @__PURE__ */ ke(ws, [["__scopeId", "data-v-6bf92df6"]]), As = {
|
|
3509
3499
|
key: 0,
|
|
3510
3500
|
class: "kong-ui-entity-delete-error"
|
|
3511
|
-
},
|
|
3501
|
+
}, Ss = {
|
|
3512
3502
|
key: 1,
|
|
3513
3503
|
class: "description"
|
|
3514
|
-
},
|
|
3504
|
+
}, xs = /* @__PURE__ */ ae({
|
|
3515
3505
|
__name: "EntityDeleteModal",
|
|
3516
3506
|
props: {
|
|
3517
3507
|
visible: {
|
|
@@ -3569,7 +3559,7 @@ const Gi = {
|
|
|
3569
3559
|
onProceed: i
|
|
3570
3560
|
}, {
|
|
3571
3561
|
"body-content": h(() => [
|
|
3572
|
-
e.error ? (m(), j("div",
|
|
3562
|
+
e.error ? (m(), j("div", As, [
|
|
3573
3563
|
K(c, { appearance: "danger" }, {
|
|
3574
3564
|
alertMessage: h(() => [
|
|
3575
3565
|
Z(F(e.error), 1)
|
|
@@ -3595,7 +3585,7 @@ const Gi = {
|
|
|
3595
3585
|
key: "0"
|
|
3596
3586
|
} : void 0
|
|
3597
3587
|
]), 1032, ["keypath"]),
|
|
3598
|
-
t.description || s.$slots.description ? (m(), j("div",
|
|
3588
|
+
t.description || s.$slots.description ? (m(), j("div", Ss, [
|
|
3599
3589
|
Y(s.$slots, "description", {}, () => [
|
|
3600
3590
|
R("p", null, F(t.description), 1)
|
|
3601
3591
|
], !0)
|
|
@@ -3605,13 +3595,13 @@ const Gi = {
|
|
|
3605
3595
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3606
3596
|
};
|
|
3607
3597
|
}
|
|
3608
|
-
}),
|
|
3598
|
+
}), Ts = /* @__PURE__ */ ke(xs, [["__scopeId", "data-v-1c9a2a07"]]), $s = {
|
|
3609
3599
|
fill: "none",
|
|
3610
3600
|
height: "20",
|
|
3611
3601
|
viewBox: "0 0 20 20",
|
|
3612
3602
|
width: "20",
|
|
3613
3603
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3614
|
-
},
|
|
3604
|
+
}, Ms = {
|
|
3615
3605
|
id: "mask0_180_20349",
|
|
3616
3606
|
height: "20",
|
|
3617
3607
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3619,35 +3609,35 @@ const Gi = {
|
|
|
3619
3609
|
width: "20",
|
|
3620
3610
|
x: "0",
|
|
3621
3611
|
y: "0"
|
|
3622
|
-
},
|
|
3612
|
+
}, js = ["fill"], Es = { mask: "url(#mask0_180_20349)" }, Os = ["fill"], Fs = /* @__PURE__ */ ae({
|
|
3623
3613
|
__name: "IconFilter",
|
|
3624
3614
|
props: {
|
|
3625
3615
|
color: {
|
|
3626
3616
|
type: String,
|
|
3627
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3617
|
+
default: `var(--kong-ui-entity-filter-color, ${io})`
|
|
3628
3618
|
}
|
|
3629
3619
|
},
|
|
3630
3620
|
setup(e) {
|
|
3631
|
-
return (n, t) => (m(), j("svg",
|
|
3632
|
-
R("mask",
|
|
3621
|
+
return (n, t) => (m(), j("svg", $s, [
|
|
3622
|
+
R("mask", Ms, [
|
|
3633
3623
|
R("rect", {
|
|
3634
3624
|
fill: e.color,
|
|
3635
3625
|
height: "20",
|
|
3636
3626
|
width: "20"
|
|
3637
|
-
}, null, 8,
|
|
3627
|
+
}, null, 8, js)
|
|
3638
3628
|
]),
|
|
3639
|
-
R("g",
|
|
3629
|
+
R("g", Es, [
|
|
3640
3630
|
R("path", {
|
|
3641
3631
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3642
3632
|
fill: e.color
|
|
3643
|
-
}, null, 8,
|
|
3633
|
+
}, null, 8, Os)
|
|
3644
3634
|
])
|
|
3645
3635
|
]));
|
|
3646
3636
|
}
|
|
3647
|
-
}),
|
|
3637
|
+
}), Ks = {
|
|
3648
3638
|
key: 1,
|
|
3649
3639
|
class: "kong-ui-entity-filter"
|
|
3650
|
-
}, Ns = { class: "menu-item-title" },
|
|
3640
|
+
}, Ns = { class: "menu-item-title" }, Bs = { class: "menu-item-indicator" }, Ps = { class: "menu-item-body" }, Ls = ["for"], Us = { class: "menu-item-buttons" }, qs = /* @__PURE__ */ ae({
|
|
3651
3641
|
__name: "EntityFilter",
|
|
3652
3642
|
props: {
|
|
3653
3643
|
// filter config, either exact match or fuzzy match
|
|
@@ -3669,8 +3659,8 @@ const Gi = {
|
|
|
3669
3659
|
setup(e, { emit: n }) {
|
|
3670
3660
|
const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = M(() => {
|
|
3671
3661
|
const p = [];
|
|
3672
|
-
return new URLSearchParams(t.modelValue).forEach((S,
|
|
3673
|
-
S !== "" && p.push(
|
|
3662
|
+
return new URLSearchParams(t.modelValue).forEach((S, b) => {
|
|
3663
|
+
S !== "" && p.push(b);
|
|
3674
3664
|
}), p;
|
|
3675
3665
|
}), s = M(() => {
|
|
3676
3666
|
const p = t.config.fields;
|
|
@@ -3680,8 +3670,8 @@ const Gi = {
|
|
|
3680
3670
|
}));
|
|
3681
3671
|
});
|
|
3682
3672
|
xe(() => t.modelValue, (p) => {
|
|
3683
|
-
a.value = {}, new URLSearchParams(p).forEach((S,
|
|
3684
|
-
a.value[
|
|
3673
|
+
a.value = {}, new URLSearchParams(p).forEach((S, b) => {
|
|
3674
|
+
a.value[b] = S;
|
|
3685
3675
|
});
|
|
3686
3676
|
});
|
|
3687
3677
|
const l = () => {
|
|
@@ -3689,28 +3679,28 @@ const Gi = {
|
|
|
3689
3679
|
}, c = (p) => {
|
|
3690
3680
|
n("update:modelValue", p);
|
|
3691
3681
|
}, d = (p) => `filter-${p}`, u = (p) => {
|
|
3692
|
-
var S,
|
|
3693
|
-
return (((
|
|
3694
|
-
value:
|
|
3695
|
-
label:
|
|
3682
|
+
var S, b;
|
|
3683
|
+
return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((C) => ({
|
|
3684
|
+
value: C,
|
|
3685
|
+
label: C
|
|
3696
3686
|
}));
|
|
3697
3687
|
}, g = (p) => {
|
|
3698
|
-
var S,
|
|
3699
|
-
return ((
|
|
3688
|
+
var S, b;
|
|
3689
|
+
return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
|
|
3700
3690
|
}, f = (p) => {
|
|
3701
3691
|
a.value = {
|
|
3702
3692
|
...a.value,
|
|
3703
3693
|
[p]: ""
|
|
3704
|
-
},
|
|
3694
|
+
}, v();
|
|
3705
3695
|
}, A = () => {
|
|
3706
|
-
a.value = {},
|
|
3707
|
-
},
|
|
3708
|
-
const S = Object.keys(a.value).reduce((
|
|
3696
|
+
a.value = {}, v(!0);
|
|
3697
|
+
}, v = (p = !1) => {
|
|
3698
|
+
const S = Object.keys(a.value).reduce((b, C) => (a.value[C] && (b[C] = `${a.value[C]}`), b), {});
|
|
3709
3699
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3710
3700
|
};
|
|
3711
3701
|
return (p, S) => {
|
|
3712
|
-
const
|
|
3713
|
-
return e.config.isExactMatch ? (m(), V(
|
|
3702
|
+
const b = U("KInput"), C = U("KButton"), I = U("KSelect"), ne = U("KMenuItem"), pe = U("KMenu");
|
|
3703
|
+
return e.config.isExactMatch ? (m(), V(b, {
|
|
3714
3704
|
key: 0,
|
|
3715
3705
|
autocomplete: "off",
|
|
3716
3706
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3720,11 +3710,11 @@ const Gi = {
|
|
|
3720
3710
|
"onUpdate:modelValue": c
|
|
3721
3711
|
}, {
|
|
3722
3712
|
icon: h(() => [
|
|
3723
|
-
K(
|
|
3713
|
+
K(Fs)
|
|
3724
3714
|
]),
|
|
3725
3715
|
_: 1
|
|
3726
|
-
}, 8, ["model-value", "placeholder"])) : (m(), j("div",
|
|
3727
|
-
K(
|
|
3716
|
+
}, 8, ["model-value", "placeholder"])) : (m(), j("div", Ks, [
|
|
3717
|
+
K(C, {
|
|
3728
3718
|
appearance: "btn-link",
|
|
3729
3719
|
"data-testid": "filter-button",
|
|
3730
3720
|
icon: "filter",
|
|
@@ -3752,55 +3742,55 @@ const Gi = {
|
|
|
3752
3742
|
itemTitle: h(() => [
|
|
3753
3743
|
R("span", Ns, [
|
|
3754
3744
|
Z(F(H.label) + " ", 1),
|
|
3755
|
-
et(R("span",
|
|
3745
|
+
et(R("span", Bs, null, 512), [
|
|
3756
3746
|
[tt, i.value.includes(H.value)]
|
|
3757
3747
|
])
|
|
3758
3748
|
])
|
|
3759
3749
|
]),
|
|
3760
3750
|
itemBody: h(() => {
|
|
3761
|
-
var
|
|
3751
|
+
var N, B;
|
|
3762
3752
|
return [
|
|
3763
|
-
R("div",
|
|
3753
|
+
R("div", Ps, [
|
|
3764
3754
|
R("label", {
|
|
3765
3755
|
class: "menu-item-label",
|
|
3766
3756
|
for: d(H.value)
|
|
3767
|
-
}, F(y(r)("filter.fieldLabel")), 9,
|
|
3768
|
-
((
|
|
3757
|
+
}, F(y(r)("filter.fieldLabel")), 9, Ls),
|
|
3758
|
+
((B = (N = e.config.schema) == null ? void 0 : N[H.value]) == null ? void 0 : B.type) === "select" ? (m(), V(I, {
|
|
3769
3759
|
key: 0,
|
|
3770
3760
|
id: d(H.value),
|
|
3771
3761
|
modelValue: a.value[H.value],
|
|
3772
|
-
"onUpdate:modelValue": (
|
|
3762
|
+
"onUpdate:modelValue": (k) => a.value[H.value] = k,
|
|
3773
3763
|
appearance: "select",
|
|
3774
3764
|
items: u(H.value),
|
|
3775
3765
|
placeholder: y(r)("filter.selectPlaceholder")
|
|
3776
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), V(
|
|
3766
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), V(b, {
|
|
3777
3767
|
key: 1,
|
|
3778
3768
|
id: d(H.value),
|
|
3779
3769
|
modelValue: a.value[H.value],
|
|
3780
|
-
"onUpdate:modelValue": (
|
|
3770
|
+
"onUpdate:modelValue": (k) => a.value[H.value] = k,
|
|
3781
3771
|
autocomplete: "off",
|
|
3782
3772
|
placeholder: y(r)("filter.inputPlaceholder"),
|
|
3783
3773
|
size: "small",
|
|
3784
3774
|
type: g(H.value)
|
|
3785
3775
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3786
3776
|
]),
|
|
3787
|
-
R("div",
|
|
3788
|
-
K(
|
|
3777
|
+
R("div", Us, [
|
|
3778
|
+
K(C, {
|
|
3789
3779
|
appearance: "btn-link",
|
|
3790
3780
|
"data-testid": "apply-filter",
|
|
3791
3781
|
size: "small",
|
|
3792
|
-
onClick: S[0] || (S[0] = (
|
|
3782
|
+
onClick: S[0] || (S[0] = (k) => v(!0))
|
|
3793
3783
|
}, {
|
|
3794
3784
|
default: h(() => [
|
|
3795
3785
|
Z(F(y(r)("filter.applyButtonText")), 1)
|
|
3796
3786
|
]),
|
|
3797
3787
|
_: 1
|
|
3798
3788
|
}),
|
|
3799
|
-
K(
|
|
3789
|
+
K(C, {
|
|
3800
3790
|
appearance: "btn-link",
|
|
3801
3791
|
"data-testid": "clear-filter",
|
|
3802
3792
|
size: "small",
|
|
3803
|
-
onClick: (
|
|
3793
|
+
onClick: (k) => f(H.value)
|
|
3804
3794
|
}, {
|
|
3805
3795
|
default: h(() => [
|
|
3806
3796
|
Z(F(y(r)("filter.clearButtonText")), 1)
|
|
@@ -3814,7 +3804,7 @@ const Gi = {
|
|
|
3814
3804
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3815
3805
|
]),
|
|
3816
3806
|
actionButton: h(() => [
|
|
3817
|
-
K(
|
|
3807
|
+
K(C, { onClick: A }, {
|
|
3818
3808
|
default: h(() => [
|
|
3819
3809
|
Z(F(y(r)("filter.clearAllButtonText")), 1)
|
|
3820
3810
|
]),
|
|
@@ -3828,7 +3818,7 @@ const Gi = {
|
|
|
3828
3818
|
]));
|
|
3829
3819
|
};
|
|
3830
3820
|
}
|
|
3831
|
-
}),
|
|
3821
|
+
}), Rs = /* @__PURE__ */ ke(qs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
|
|
3832
3822
|
__name: "PermissionsWrapper",
|
|
3833
3823
|
props: {
|
|
3834
3824
|
/**
|
|
@@ -3858,16 +3848,16 @@ const Gi = {
|
|
|
3858
3848
|
isAllowed: t.value
|
|
3859
3849
|
}) : G("", !0);
|
|
3860
3850
|
}
|
|
3861
|
-
}),
|
|
3851
|
+
}), Vs = { class: "form-section-wrapper" }, Ds = {
|
|
3862
3852
|
key: 0,
|
|
3863
3853
|
class: "form-section-title"
|
|
3864
|
-
},
|
|
3854
|
+
}, Gs = {
|
|
3865
3855
|
key: 1,
|
|
3866
3856
|
class: "form-section-description"
|
|
3867
|
-
},
|
|
3857
|
+
}, Hs = {
|
|
3868
3858
|
key: 2,
|
|
3869
3859
|
class: "form-section-footer"
|
|
3870
|
-
},
|
|
3860
|
+
}, zs = { class: "form-section-content" }, Js = /* @__PURE__ */ ae({
|
|
3871
3861
|
__name: "EntityFormSection",
|
|
3872
3862
|
props: {
|
|
3873
3863
|
title: {
|
|
@@ -3896,32 +3886,32 @@ const Gi = {
|
|
|
3896
3886
|
return (t, r) => (m(), j("fieldset", {
|
|
3897
3887
|
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3898
3888
|
}, [
|
|
3899
|
-
R("div",
|
|
3889
|
+
R("div", Vs, [
|
|
3900
3890
|
e.hideInfoHeader ? G("", !0) : (m(), j("div", {
|
|
3901
3891
|
key: 0,
|
|
3902
3892
|
class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3903
3893
|
}, [
|
|
3904
|
-
e.title ? (m(), j("h4",
|
|
3905
|
-
e.description || y(n).description ? (m(), j("div",
|
|
3894
|
+
e.title ? (m(), j("h4", Ds, F(e.title), 1)) : G("", !0),
|
|
3895
|
+
e.description || y(n).description ? (m(), j("div", Gs, [
|
|
3906
3896
|
Y(t.$slots, "description", {}, () => [
|
|
3907
3897
|
R("p", null, F(e.description), 1)
|
|
3908
3898
|
], !0)
|
|
3909
3899
|
])) : G("", !0),
|
|
3910
|
-
y(n).footer ? (m(), j("div",
|
|
3900
|
+
y(n).footer ? (m(), j("div", Hs, [
|
|
3911
3901
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
3912
3902
|
])) : G("", !0)
|
|
3913
3903
|
], 2)),
|
|
3914
|
-
R("div",
|
|
3904
|
+
R("div", zs, [
|
|
3915
3905
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
3916
3906
|
])
|
|
3917
3907
|
])
|
|
3918
3908
|
], 2));
|
|
3919
3909
|
}
|
|
3920
|
-
}), un = /* @__PURE__ */
|
|
3921
|
-
const
|
|
3910
|
+
}), un = /* @__PURE__ */ ke(Js, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Ws, useErrors: Ys, useFetchUrlBuilder: hl, useFetcher: Zs, useDebouncedFilter: ar, useStringHelpers: vl, useHelpers: bl, useGatewayFeatureSupported: Cl, useTruncationDetector: kl } = ue;
|
|
3911
|
+
const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group-cta-text" }, el = {
|
|
3922
3912
|
key: 0,
|
|
3923
3913
|
class: "kong-ui-entity-add-to-groups-error"
|
|
3924
|
-
},
|
|
3914
|
+
}, tl = { key: 0 }, nl = /* @__PURE__ */ ae({
|
|
3925
3915
|
__name: "AddToGroupModal",
|
|
3926
3916
|
props: {
|
|
3927
3917
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3938,9 +3928,9 @@ const Xs = { class: "add-to-group-form-container" }, el = { class: "add-to-group
|
|
|
3938
3928
|
},
|
|
3939
3929
|
emits: ["cancel", "add:success", "add:partial-success", "error"],
|
|
3940
3930
|
setup(e, { emit: n }) {
|
|
3941
|
-
var
|
|
3931
|
+
var B;
|
|
3942
3932
|
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Ft({
|
|
3943
|
-
headers: (
|
|
3933
|
+
headers: (B = t.config) == null ? void 0 : B.requestHeaders
|
|
3944
3934
|
}), a = O([]), {
|
|
3945
3935
|
debouncedQueryChange: i,
|
|
3946
3936
|
loading: s,
|
|
@@ -3956,64 +3946,64 @@ const Xs = { class: "add-to-group-form-container" }, el = { class: "add-to-group
|
|
|
3956
3946
|
fetchedItemsKey: "data",
|
|
3957
3947
|
searchKeys: ["name", "id"]
|
|
3958
3948
|
}
|
|
3959
|
-
), g = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), A = M(() => l.value === void 0),
|
|
3960
|
-
label:
|
|
3961
|
-
value:
|
|
3962
|
-
selected: a.value.includes(
|
|
3963
|
-
data:
|
|
3949
|
+
), g = M(() => c.value ? r("consumer_groups.errors.general") : ""), f = O(0), A = M(() => l.value === void 0), v = M(() => u.value.map((k) => ({
|
|
3950
|
+
label: k.name,
|
|
3951
|
+
value: k.id,
|
|
3952
|
+
selected: a.value.includes(k.id),
|
|
3953
|
+
data: k
|
|
3964
3954
|
// we need this to determine whether or not to show the description text
|
|
3965
|
-
}))), p = (
|
|
3955
|
+
}))), p = (k) => {
|
|
3966
3956
|
var T;
|
|
3967
|
-
const x = A.value ? u.value.find((P) => P.id ===
|
|
3968
|
-
return x ? x.name :
|
|
3957
|
+
const x = A.value ? u.value.find((P) => P.id === k) : (T = l.value) == null ? void 0 : T.find((P) => P.id === k);
|
|
3958
|
+
return x ? x.name : k;
|
|
3969
3959
|
}, S = () => {
|
|
3970
|
-
I.value = "",
|
|
3971
|
-
},
|
|
3960
|
+
I.value = "", b.value = [], w.value = [], n("cancel");
|
|
3961
|
+
}, b = O([]), C = O(!1), I = O(""), ne = async () => {
|
|
3972
3962
|
if (!a.value.length) {
|
|
3973
3963
|
I.value = "", w.value = [], n("cancel");
|
|
3974
3964
|
return;
|
|
3975
3965
|
}
|
|
3976
|
-
|
|
3966
|
+
C.value = !0, I.value = "", b.value = [], w.value = [];
|
|
3977
3967
|
try {
|
|
3978
|
-
const
|
|
3968
|
+
const k = a.value.map((P) => H(P)), x = await Promise.allSettled(k);
|
|
3979
3969
|
let T = !0;
|
|
3980
3970
|
x.forEach((P) => {
|
|
3981
3971
|
P.status !== "fulfilled" && (T = !1);
|
|
3982
|
-
}), T ? (
|
|
3972
|
+
}), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
|
|
3983
3973
|
} catch {
|
|
3984
3974
|
I.value = r("consumer_groups.errors.add"), n("error", I.value);
|
|
3985
3975
|
} finally {
|
|
3986
|
-
|
|
3976
|
+
C.value = !1;
|
|
3987
3977
|
}
|
|
3988
3978
|
}, pe = M(() => {
|
|
3989
3979
|
var x, T, P, J;
|
|
3990
|
-
let
|
|
3991
|
-
return t.config.app === "konnect" ?
|
|
3992
|
-
}), H = async (
|
|
3980
|
+
let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
|
|
3981
|
+
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
|
|
3982
|
+
}), H = async (k) => {
|
|
3993
3983
|
const x = {
|
|
3994
|
-
group:
|
|
3984
|
+
group: k
|
|
3995
3985
|
};
|
|
3996
3986
|
try {
|
|
3997
3987
|
const T = await o.post(pe.value, x);
|
|
3998
|
-
return
|
|
3988
|
+
return b.value.push(k), T;
|
|
3999
3989
|
} catch (T) {
|
|
4000
|
-
let P = `${p(
|
|
4001
|
-
return T.response.status === 409 && (P = `${p(
|
|
3990
|
+
let P = `${p(k)} - ${T.message}`;
|
|
3991
|
+
return T.response.status === 409 && (P = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
|
|
4002
3992
|
}
|
|
4003
|
-
}, w = O([]),
|
|
4004
|
-
w.value =
|
|
3993
|
+
}, w = O([]), N = (k) => {
|
|
3994
|
+
w.value = k.map((x) => {
|
|
4005
3995
|
var T;
|
|
4006
3996
|
return (T = x.reason) == null ? void 0 : T.message;
|
|
4007
3997
|
}).filter(Boolean);
|
|
4008
3998
|
};
|
|
4009
|
-
return xe(
|
|
3999
|
+
return xe(v, () => {
|
|
4010
4000
|
f.value++;
|
|
4011
4001
|
}, { immediate: !0, deep: !0 }), Qe(async () => {
|
|
4012
4002
|
await d();
|
|
4013
|
-
}), (
|
|
4003
|
+
}), (k, x) => {
|
|
4014
4004
|
const T = U("KMultiselect"), P = U("KAlert"), J = U("KPrompt");
|
|
4015
4005
|
return m(), V(J, {
|
|
4016
|
-
"action-pending":
|
|
4006
|
+
"action-pending": C.value,
|
|
4017
4007
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
4018
4008
|
"data-testid": "add-to-group-modal",
|
|
4019
4009
|
"is-visible": e.visible,
|
|
@@ -4022,28 +4012,28 @@ const Xs = { class: "add-to-group-form-container" }, el = { class: "add-to-group
|
|
|
4022
4012
|
onProceed: ne
|
|
4023
4013
|
}, {
|
|
4024
4014
|
"body-content": h(() => [
|
|
4025
|
-
R("div",
|
|
4026
|
-
R("p",
|
|
4015
|
+
R("div", Qs, [
|
|
4016
|
+
R("p", Xs, F(y(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4027
4017
|
K(T, {
|
|
4028
4018
|
modelValue: a.value,
|
|
4029
4019
|
"onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
|
|
4030
4020
|
autosuggest: "",
|
|
4031
4021
|
"data-testid": "add-to-groups-multiselect",
|
|
4032
4022
|
"dropdown-footer-text": A.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
|
|
4033
|
-
items:
|
|
4023
|
+
items: v.value,
|
|
4034
4024
|
label: y(r)("consumer_groups.consumers.add.consumer_groups_label"),
|
|
4035
4025
|
loading: y(s),
|
|
4036
4026
|
placeholder: y(r)("consumer_groups.consumers.add.consumer_group_placeholder"),
|
|
4037
|
-
readonly:
|
|
4027
|
+
readonly: C.value,
|
|
4038
4028
|
required: "",
|
|
4039
4029
|
width: "100%",
|
|
4040
4030
|
onQueryChange: y(i)
|
|
4041
4031
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4042
|
-
I.value || g.value || w.value.length ? (m(), j("div",
|
|
4032
|
+
I.value || g.value || w.value.length ? (m(), j("div", el, [
|
|
4043
4033
|
K(P, { appearance: "danger" }, {
|
|
4044
4034
|
alertMessage: h(() => [
|
|
4045
4035
|
R("p", null, F(y(r)("consumer_groups.errors.add")), 1),
|
|
4046
|
-
w.value.length ? (m(), j("ul",
|
|
4036
|
+
w.value.length ? (m(), j("ul", tl, [
|
|
4047
4037
|
(m(!0), j(ve, null, ye(w.value, (Q, X) => (m(), j("li", { key: X }, F(Q), 1))), 128))
|
|
4048
4038
|
])) : G("", !0),
|
|
4049
4039
|
R("div", null, F(I.value || g.value), 1)
|
|
@@ -4063,7 +4053,7 @@ const Kt = (e, n) => {
|
|
|
4063
4053
|
for (const [r, o] of n)
|
|
4064
4054
|
t[r] = o;
|
|
4065
4055
|
return t;
|
|
4066
|
-
},
|
|
4056
|
+
}, rl = /* @__PURE__ */ Kt(nl, [["__scopeId", "data-v-4d30f3c5"]]), ol = { class: "kong-ui-entities-consumer-groups-list" }, al = { key: 1 }, il = /* @__PURE__ */ ae({
|
|
4067
4057
|
__name: "ConsumerGroupList",
|
|
4068
4058
|
props: {
|
|
4069
4059
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4104,9 +4094,9 @@ const Kt = (e, n) => {
|
|
|
4104
4094
|
},
|
|
4105
4095
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4106
4096
|
setup(e, { emit: n }) {
|
|
4107
|
-
var
|
|
4097
|
+
var Nt;
|
|
4108
4098
|
const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Ft({
|
|
4109
|
-
headers: (
|
|
4099
|
+
headers: (Nt = t.config) == null ? void 0 : Nt.requestHeaders
|
|
4110
4100
|
}), s = O(1), l = M(() => !!t.config.consumerId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4111
4101
|
name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4112
4102
|
};
|
|
@@ -4114,10 +4104,10 @@ const Kt = (e, n) => {
|
|
|
4114
4104
|
const u = d, g = (E) => ({
|
|
4115
4105
|
"data-testid": E.username ?? E.custom_id ?? E.id
|
|
4116
4106
|
}), f = M(() => {
|
|
4117
|
-
var z, le,
|
|
4107
|
+
var z, le, Ce, Ee;
|
|
4118
4108
|
let E = `${t.config.apiBaseUrl}${$e.list[t.config.app][l.value ? "forConsumer" : "all"]}`;
|
|
4119
|
-
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (
|
|
4120
|
-
}), A = O(""),
|
|
4109
|
+
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
|
|
4110
|
+
}), A = O(""), v = M(() => {
|
|
4121
4111
|
const E = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4122
4112
|
return E ? {
|
|
4123
4113
|
isExactMatch: E,
|
|
@@ -4133,7 +4123,7 @@ const Kt = (e, n) => {
|
|
|
4133
4123
|
},
|
|
4134
4124
|
schema: t.config.filterSchema
|
|
4135
4125
|
};
|
|
4136
|
-
}), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState:
|
|
4126
|
+
}), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = Zs(t.config, f.value, p.value), C = () => {
|
|
4137
4127
|
A.value = "";
|
|
4138
4128
|
}, I = () => {
|
|
4139
4129
|
s.value++;
|
|
@@ -4168,24 +4158,24 @@ const Kt = (e, n) => {
|
|
|
4168
4158
|
}, w = async (E) => {
|
|
4169
4159
|
var le;
|
|
4170
4160
|
await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
|
|
4171
|
-
},
|
|
4161
|
+
}, N = (E) => ({
|
|
4172
4162
|
label: o("consumer_groups.actions.view"),
|
|
4173
4163
|
to: t.config.getViewRoute(E)
|
|
4174
|
-
}),
|
|
4164
|
+
}), B = (E) => ({
|
|
4175
4165
|
label: o("consumer_groups.actions.edit"),
|
|
4176
4166
|
to: t.config.getEditRoute(E)
|
|
4177
|
-
}),
|
|
4178
|
-
|
|
4167
|
+
}), k = O(void 0), x = O(!1), T = O(!1), P = O(""), J = Ws(t.config, f.value), Q = (E) => {
|
|
4168
|
+
k.value = E, x.value = !0;
|
|
4179
4169
|
}, X = () => {
|
|
4180
4170
|
x.value = !1;
|
|
4181
4171
|
}, ee = async () => {
|
|
4182
4172
|
var E, z, le;
|
|
4183
|
-
if ((E =
|
|
4173
|
+
if ((E = k.value) != null && E.id) {
|
|
4184
4174
|
T.value = !0;
|
|
4185
4175
|
try {
|
|
4186
|
-
await i.delete(J(
|
|
4187
|
-
} catch (
|
|
4188
|
-
P.value = ((le = (z =
|
|
4176
|
+
await i.delete(J(k.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
|
|
4177
|
+
} catch (Ce) {
|
|
4178
|
+
P.value = ((le = (z = Ce.response) == null ? void 0 : z.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
|
|
4189
4179
|
} finally {
|
|
4190
4180
|
T.value = !1;
|
|
4191
4181
|
}
|
|
@@ -4202,15 +4192,15 @@ const Kt = (e, n) => {
|
|
|
4202
4192
|
q.value = E, D.value = !0;
|
|
4203
4193
|
}, ce = () => {
|
|
4204
4194
|
D.value = !1, q.value = void 0;
|
|
4205
|
-
},
|
|
4206
|
-
var z, le,
|
|
4195
|
+
}, Ne = M(() => {
|
|
4196
|
+
var z, le, Ce, Ee;
|
|
4207
4197
|
let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
|
|
4208
|
-
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (
|
|
4198
|
+
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
|
|
4209
4199
|
}), De = O(!1), ir = async () => {
|
|
4210
4200
|
if (q.value) {
|
|
4211
4201
|
De.value = !0;
|
|
4212
4202
|
try {
|
|
4213
|
-
const E =
|
|
4203
|
+
const E = Ne.value.replace(/{consumerGroupId}/gi, q.value.id);
|
|
4214
4204
|
await i.delete(E), n("remove:success", q.value), ce(), s.value++;
|
|
4215
4205
|
} catch (E) {
|
|
4216
4206
|
ge.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
|
|
@@ -4219,7 +4209,7 @@ const Kt = (e, n) => {
|
|
|
4219
4209
|
}
|
|
4220
4210
|
}
|
|
4221
4211
|
};
|
|
4222
|
-
xe(
|
|
4212
|
+
xe(b, (E) => {
|
|
4223
4213
|
if (E.status === Oe.Error) {
|
|
4224
4214
|
ne.value = o("consumer_groups.errors.general"), n("error", E.error);
|
|
4225
4215
|
return;
|
|
@@ -4235,9 +4225,9 @@ const Kt = (e, n) => {
|
|
|
4235
4225
|
return Qe(async () => {
|
|
4236
4226
|
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"));
|
|
4237
4227
|
}), (E, z) => {
|
|
4238
|
-
const le = U("KButton"),
|
|
4239
|
-
return m(), j("div",
|
|
4240
|
-
K(y(
|
|
4228
|
+
const le = U("KButton"), Ce = U("KBadge"), Ee = U("KTruncate"), Ge = U("KDropdownItem"), Bt = U("KClipboardProvider"), sr = U("KPrompt");
|
|
4229
|
+
return m(), j("div", ol, [
|
|
4230
|
+
K(y(Is), {
|
|
4241
4231
|
"cache-identifier": e.cacheIdentifier,
|
|
4242
4232
|
"disable-pagination": l.value,
|
|
4243
4233
|
"disable-pagination-page-jump": "",
|
|
@@ -4252,17 +4242,17 @@ const Kt = (e, n) => {
|
|
|
4252
4242
|
query: A.value,
|
|
4253
4243
|
"row-attributes": g,
|
|
4254
4244
|
"table-headers": y(u),
|
|
4255
|
-
onClearSearchInput:
|
|
4245
|
+
onClearSearchInput: C,
|
|
4256
4246
|
"onClick:row": z[3] || (z[3] = (W) => w(W)),
|
|
4257
4247
|
onEmptyStateCtaClicked: re,
|
|
4258
4248
|
onSort: I
|
|
4259
4249
|
}, {
|
|
4260
4250
|
"toolbar-filter": h(() => [
|
|
4261
|
-
l.value ? G("", !0) : (m(), V(y(
|
|
4251
|
+
l.value ? G("", !0) : (m(), V(y(Rs), {
|
|
4262
4252
|
key: 0,
|
|
4263
4253
|
modelValue: A.value,
|
|
4264
4254
|
"onUpdate:modelValue": z[0] || (z[0] = (W) => A.value = W),
|
|
4265
|
-
config:
|
|
4255
|
+
config: v.value
|
|
4266
4256
|
}, null, 8, ["modelValue", "config"]))
|
|
4267
4257
|
]),
|
|
4268
4258
|
"toolbar-button": h(() => [
|
|
@@ -4295,26 +4285,26 @@ const Kt = (e, n) => {
|
|
|
4295
4285
|
tags: h(({ rowValue: W }) => [
|
|
4296
4286
|
(W == null ? void 0 : W.length) > 0 ? (m(), V(Ee, { key: 0 }, {
|
|
4297
4287
|
default: h(() => [
|
|
4298
|
-
(m(!0), j(ve, null, ye(W, (
|
|
4299
|
-
key:
|
|
4288
|
+
(m(!0), j(ve, null, ye(W, (Be) => (m(), V(Ce, {
|
|
4289
|
+
key: Be,
|
|
4300
4290
|
onClick: z[2] || (z[2] = rt(() => {
|
|
4301
4291
|
}, ["stop"]))
|
|
4302
4292
|
}, {
|
|
4303
4293
|
default: h(() => [
|
|
4304
|
-
Z(F(
|
|
4294
|
+
Z(F(Be), 1)
|
|
4305
4295
|
]),
|
|
4306
4296
|
_: 2
|
|
4307
4297
|
}, 1024))), 128))
|
|
4308
4298
|
]),
|
|
4309
4299
|
_: 2
|
|
4310
|
-
}, 1024)) : (m(), j("span",
|
|
4300
|
+
}, 1024)) : (m(), j("span", al, "-"))
|
|
4311
4301
|
]),
|
|
4312
4302
|
actions: h(({ row: W }) => [
|
|
4313
|
-
K(
|
|
4314
|
-
default: h(({ copyToClipboard:
|
|
4303
|
+
K(Bt, null, {
|
|
4304
|
+
default: h(({ copyToClipboard: Be }) => [
|
|
4315
4305
|
K(Ge, {
|
|
4316
4306
|
"data-testid": "action-entity-copy-id",
|
|
4317
|
-
onClick: (lr) => pe(W,
|
|
4307
|
+
onClick: (lr) => pe(W, Be)
|
|
4318
4308
|
}, {
|
|
4319
4309
|
default: h(() => [
|
|
4320
4310
|
Z(F(y(o)("consumer_groups.actions.copy_id")), 1)
|
|
@@ -4324,11 +4314,11 @@ const Kt = (e, n) => {
|
|
|
4324
4314
|
]),
|
|
4325
4315
|
_: 2
|
|
4326
4316
|
}, 1024),
|
|
4327
|
-
K(
|
|
4328
|
-
default: h(({ copyToClipboard:
|
|
4317
|
+
K(Bt, null, {
|
|
4318
|
+
default: h(({ copyToClipboard: Be }) => [
|
|
4329
4319
|
K(Ge, {
|
|
4330
4320
|
"data-testid": "action-entity-copy-json",
|
|
4331
|
-
onClick: (lr) => H(W,
|
|
4321
|
+
onClick: (lr) => H(W, Be)
|
|
4332
4322
|
}, {
|
|
4333
4323
|
default: h(() => [
|
|
4334
4324
|
Z(F(y(o)("consumer_groups.actions.copy_json")), 1)
|
|
@@ -4345,7 +4335,7 @@ const Kt = (e, n) => {
|
|
|
4345
4335
|
K(Ge, {
|
|
4346
4336
|
"data-testid": "action-entity-view",
|
|
4347
4337
|
"has-divider": "",
|
|
4348
|
-
item:
|
|
4338
|
+
item: N(W.id)
|
|
4349
4339
|
}, null, 8, ["item"])
|
|
4350
4340
|
]),
|
|
4351
4341
|
_: 2
|
|
@@ -4356,7 +4346,7 @@ const Kt = (e, n) => {
|
|
|
4356
4346
|
default: h(() => [
|
|
4357
4347
|
K(Ge, {
|
|
4358
4348
|
"data-testid": "action-entity-edit",
|
|
4359
|
-
item:
|
|
4349
|
+
item: B(W.id)
|
|
4360
4350
|
}, null, 8, ["item"])
|
|
4361
4351
|
]),
|
|
4362
4352
|
_: 2
|
|
@@ -4382,11 +4372,11 @@ const Kt = (e, n) => {
|
|
|
4382
4372
|
]),
|
|
4383
4373
|
_: 1
|
|
4384
4374
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4385
|
-
K(y(
|
|
4375
|
+
K(y(Ts), {
|
|
4386
4376
|
"action-pending": T.value,
|
|
4387
4377
|
"data-testid": "delete-consumer-group-modal",
|
|
4388
4378
|
description: y(o)("consumer_groups.delete.description"),
|
|
4389
|
-
"entity-name":
|
|
4379
|
+
"entity-name": k.value && (k.value.name || k.value.id),
|
|
4390
4380
|
"entity-type": y(dn).ConsumerGroup,
|
|
4391
4381
|
error: P.value,
|
|
4392
4382
|
title: y(o)("consumer_groups.delete.title"),
|
|
@@ -4394,7 +4384,7 @@ const Kt = (e, n) => {
|
|
|
4394
4384
|
onCancel: X,
|
|
4395
4385
|
onProceed: ee
|
|
4396
4386
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4397
|
-
e.config.consumerId ? (m(), V(
|
|
4387
|
+
e.config.consumerId ? (m(), V(rl, {
|
|
4398
4388
|
key: 0,
|
|
4399
4389
|
config: e.config,
|
|
4400
4390
|
"data-testid": "add-to-group-modal",
|
|
@@ -4439,10 +4429,10 @@ const Kt = (e, n) => {
|
|
|
4439
4429
|
};
|
|
4440
4430
|
}
|
|
4441
4431
|
});
|
|
4442
|
-
const
|
|
4432
|
+
const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { class: "kong-ui-entities-consumer-group-form" }, ll = { class: "select-item-label" }, ul = {
|
|
4443
4433
|
key: 0,
|
|
4444
4434
|
class: "select-item-desc"
|
|
4445
|
-
},
|
|
4435
|
+
}, cl = /* @__PURE__ */ ae({
|
|
4446
4436
|
__name: "ConsumerGroupForm",
|
|
4447
4437
|
props: {
|
|
4448
4438
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4484,19 +4474,19 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4484
4474
|
searchKeys: ["username", "custom_id", "id"]
|
|
4485
4475
|
}), { axiosInstance: g } = Ft({
|
|
4486
4476
|
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4487
|
-
}), { getMessageFromError: f } =
|
|
4477
|
+
}), { getMessageFromError: f } = Ys(), A = M(() => u.value.map((_) => ({
|
|
4488
4478
|
label: _.username || _.custom_id,
|
|
4489
4479
|
value: _.id,
|
|
4490
4480
|
selected: a.fields.consumers.includes(_.id),
|
|
4491
4481
|
data: _
|
|
4492
4482
|
// we need this to determine whether or not to show the description text
|
|
4493
|
-
}))),
|
|
4483
|
+
}))), v = M(() => {
|
|
4494
4484
|
var _, L;
|
|
4495
4485
|
return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
|
|
4496
|
-
}), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value),
|
|
4497
|
-
var D, ge, _e, ce,
|
|
4486
|
+
}), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, L = "", re = "") => {
|
|
4487
|
+
var D, ge, _e, ce, Ne, De;
|
|
4498
4488
|
let q = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
|
|
4499
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((
|
|
4489
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
|
|
4500
4490
|
}, I = () => {
|
|
4501
4491
|
var _;
|
|
4502
4492
|
o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
|
|
@@ -4512,19 +4502,19 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4512
4502
|
a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4513
4503
|
else
|
|
4514
4504
|
try {
|
|
4515
|
-
const { data: ce } = await g.get(
|
|
4516
|
-
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((
|
|
4505
|
+
const { data: ce } = await g.get(C("getConsumers"));
|
|
4506
|
+
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
|
|
4517
4507
|
} catch (ce) {
|
|
4518
4508
|
x(ce);
|
|
4519
4509
|
}
|
|
4520
4510
|
Object.assign(i, a.fields);
|
|
4521
|
-
}, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")),
|
|
4511
|
+
}, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
|
|
4522
4512
|
var _, L;
|
|
4523
4513
|
return {
|
|
4524
4514
|
name: a.fields.name,
|
|
4525
4515
|
tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
|
|
4526
4516
|
};
|
|
4527
|
-
},
|
|
4517
|
+
}, B = async (_, L = "") => await g.post(C("addConsumer", L, _), { consumer: _ }), k = async (_, L = "") => await g.delete(C("removeConsumer", L, _)), x = (_) => {
|
|
4528
4518
|
a.errorMessage = f(_), n("error", _);
|
|
4529
4519
|
}, T = (_ = t.consumerGroupId) => {
|
|
4530
4520
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
|
|
@@ -4537,14 +4527,14 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4537
4527
|
}, J = async () => {
|
|
4538
4528
|
let _ = "";
|
|
4539
4529
|
try {
|
|
4540
|
-
const { data: L } = await g.post(
|
|
4530
|
+
const { data: L } = await g.post(C("create"), N());
|
|
4541
4531
|
_ = "item" in L ? L.item.id : L.id;
|
|
4542
4532
|
} catch (L) {
|
|
4543
4533
|
x(L);
|
|
4544
4534
|
}
|
|
4545
4535
|
if (a.fields.consumers.length > 0 && _)
|
|
4546
4536
|
try {
|
|
4547
|
-
const L = a.fields.consumers.map((q) =>
|
|
4537
|
+
const L = a.fields.consumers.map((q) => B(q, _)), re = await Promise.allSettled(L);
|
|
4548
4538
|
P(re, r("consumer_groups.errors.add_consumer"), _);
|
|
4549
4539
|
} catch (L) {
|
|
4550
4540
|
x(L);
|
|
@@ -4554,7 +4544,7 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4554
4544
|
}, Q = async () => {
|
|
4555
4545
|
var re;
|
|
4556
4546
|
try {
|
|
4557
|
-
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(
|
|
4547
|
+
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(C("edit"), N()) : await g.patch(C("edit"), N());
|
|
4558
4548
|
} catch (q) {
|
|
4559
4549
|
x(q);
|
|
4560
4550
|
}
|
|
@@ -4564,14 +4554,14 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4564
4554
|
else {
|
|
4565
4555
|
if (L.length > 0)
|
|
4566
4556
|
try {
|
|
4567
|
-
const q = L.map((ge) =>
|
|
4557
|
+
const q = L.map((ge) => k(ge)), D = await Promise.allSettled(q);
|
|
4568
4558
|
P(D, r("consumer_groups.errors.remove_consumer"));
|
|
4569
4559
|
} catch (q) {
|
|
4570
4560
|
x(q);
|
|
4571
4561
|
}
|
|
4572
4562
|
if (_.length > 0)
|
|
4573
4563
|
try {
|
|
4574
|
-
const q = _.map((ge) =>
|
|
4564
|
+
const q = _.map((ge) => B(ge)), D = await Promise.allSettled(q);
|
|
4575
4565
|
P(D, r("consumer_groups.errors.add_consumer"));
|
|
4576
4566
|
} catch (q) {
|
|
4577
4567
|
x(q);
|
|
@@ -4588,13 +4578,13 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4588
4578
|
await d();
|
|
4589
4579
|
}), (_, L) => {
|
|
4590
4580
|
const re = U("KInput"), q = U("KMultiselect");
|
|
4591
|
-
return m(), j("div",
|
|
4592
|
-
K(y(
|
|
4593
|
-
"can-submit": S.value &&
|
|
4581
|
+
return m(), j("div", sl, [
|
|
4582
|
+
K(y(ys), {
|
|
4583
|
+
"can-submit": S.value && b.value,
|
|
4594
4584
|
config: e.config,
|
|
4595
4585
|
"edit-id": e.consumerGroupId,
|
|
4596
4586
|
"error-message": a.errorMessage || y(c) || w.value,
|
|
4597
|
-
"fetch-url":
|
|
4587
|
+
"fetch-url": v.value,
|
|
4598
4588
|
"is-readonly": a.readonly,
|
|
4599
4589
|
onCancel: I,
|
|
4600
4590
|
"onFetch:error": L[3] || (L[3] = (D) => ne(D)),
|
|
@@ -4659,8 +4649,8 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4659
4649
|
"item-template": h(({ item: D }) => {
|
|
4660
4650
|
var ge, _e, ce;
|
|
4661
4651
|
return [
|
|
4662
|
-
R("div",
|
|
4663
|
-
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div",
|
|
4652
|
+
R("div", ll, F(D.label), 1),
|
|
4653
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div", ul, F((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4664
4654
|
];
|
|
4665
4655
|
}),
|
|
4666
4656
|
_: 1
|
|
@@ -4675,7 +4665,7 @@ const wl = /* @__PURE__ */ Kt(sl, [["__scopeId", "data-v-80c4522c"]]), ll = { cl
|
|
|
4675
4665
|
};
|
|
4676
4666
|
}
|
|
4677
4667
|
});
|
|
4678
|
-
const
|
|
4668
|
+
const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { class: "kong-ui-consumer-group-entity-config-card" }, Il = /* @__PURE__ */ ae({
|
|
4679
4669
|
__name: "ConsumerGroupConfigCard",
|
|
4680
4670
|
props: {
|
|
4681
4671
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4711,8 +4701,8 @@ const Il = /* @__PURE__ */ Kt(dl, [["__scopeId", "data-v-102d40d2"]]), pl = { cl
|
|
|
4711
4701
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4712
4702
|
}
|
|
4713
4703
|
});
|
|
4714
|
-
return (a, i) => (m(), j("div",
|
|
4715
|
-
K(y(
|
|
4704
|
+
return (a, i) => (m(), j("div", dl, [
|
|
4705
|
+
K(y(ps), {
|
|
4716
4706
|
config: e.config,
|
|
4717
4707
|
"config-card-doc": e.configCardDoc,
|
|
4718
4708
|
"config-schema": o.value,
|
|
@@ -4728,7 +4718,7 @@ const Il = /* @__PURE__ */ Kt(dl, [["__scopeId", "data-v-102d40d2"]]), pl = { cl
|
|
|
4728
4718
|
}
|
|
4729
4719
|
});
|
|
4730
4720
|
export {
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4721
|
+
Il as ConsumerGroupConfigCard,
|
|
4722
|
+
wl as ConsumerGroupForm,
|
|
4723
|
+
_l as ConsumerGroupList
|
|
4734
4724
|
};
|