@kong-ui-public/entities-consumer-groups 3.1.11 → 3.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as
|
|
1
|
+
import { defineComponent as X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as Te, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as K, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as M, watch as Ae, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as R, createSlots as Be, createVNode as j, createTextVNode as Y, renderList as ve, withModifiers as xt, withDirectives as Ne, vShow as je, Fragment as be, normalizeClass as Me, withKeys as wr, useSlots as jt, useCssVars as bn, inject as _r, onMounted as Sr, onUnmounted as xr, normalizeProps as Ir, guardReactiveProps as Ar, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
|
|
2
2
|
import { useRouter as Ot } from "vue-router";
|
|
3
3
|
import { createI18n as Cn, i18nTComponent as kn } from "@kong-ui-public/i18n";
|
|
4
4
|
import Gt from "axios";
|
|
5
|
-
import { BadgeMethodAppearances as
|
|
6
|
-
const Ht = "24px",
|
|
5
|
+
import { BadgeMethodAppearances as Nr } from "@kong/kongponents";
|
|
6
|
+
const Ht = "24px", jr = (e, t) => {
|
|
7
7
|
const n = e.__vccOpts || e;
|
|
8
8
|
for (const [r, a] of t)
|
|
9
9
|
n[r] = a;
|
|
10
10
|
return n;
|
|
11
|
-
},
|
|
11
|
+
}, Or = (e) => (Je("data-v-1d2a8d30"), e = e(), Ze(), e), Er = ["aria-hidden"], Mr = {
|
|
12
12
|
key: 0,
|
|
13
13
|
"data-testid": "kui-icon-svg-title"
|
|
14
|
-
},
|
|
14
|
+
}, qr = /* @__PURE__ */ Or(() => /* @__PURE__ */ L("path", {
|
|
15
15
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
16
16
|
fill: "currentColor"
|
|
17
|
-
}, null, -1)),
|
|
17
|
+
}, null, -1)), Fr = /* @__PURE__ */ X({
|
|
18
18
|
__name: "AddIcon",
|
|
19
19
|
props: {
|
|
20
20
|
/** The accessibility text provided to screen readers */
|
|
@@ -83,7 +83,7 @@ const Ht = "24px", Nr = (e, t) => {
|
|
|
83
83
|
lineHeight: "0",
|
|
84
84
|
width: n.value
|
|
85
85
|
}));
|
|
86
|
-
return (a, i) => (m(), D(
|
|
86
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
87
87
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
88
88
|
class: "kui-icon add-icon",
|
|
89
89
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -100,14 +100,14 @@ const Ht = "24px", Nr = (e, t) => {
|
|
|
100
100
|
width: "100%",
|
|
101
101
|
xmlns: "http://www.w3.org/2000/svg"
|
|
102
102
|
}, [
|
|
103
|
-
e.title ? (m(), $("title",
|
|
104
|
-
|
|
105
|
-
], 8,
|
|
103
|
+
e.title ? (m(), $("title", Mr, K(e.title), 1)) : J("", !0),
|
|
104
|
+
qr
|
|
105
|
+
], 8, Er))
|
|
106
106
|
]),
|
|
107
107
|
_: 1
|
|
108
108
|
}, 8, ["aria-hidden", "style"]));
|
|
109
109
|
}
|
|
110
|
-
}),
|
|
110
|
+
}), Kr = /* @__PURE__ */ jr(Fr, [["__scopeId", "data-v-1d2a8d30"]]), Br = {
|
|
111
111
|
list: {
|
|
112
112
|
table_headers: {
|
|
113
113
|
name: "Name",
|
|
@@ -196,11 +196,11 @@ const Ht = "24px", Nr = (e, t) => {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
|
-
},
|
|
200
|
-
consumer_groups:
|
|
199
|
+
}, Lr = {
|
|
200
|
+
consumer_groups: Br
|
|
201
201
|
};
|
|
202
|
-
function
|
|
203
|
-
const e = Cn("en-us",
|
|
202
|
+
function Ur() {
|
|
203
|
+
const e = Cn("en-us", Lr);
|
|
204
204
|
return {
|
|
205
205
|
i18n: e,
|
|
206
206
|
i18nT: kn(e)
|
|
@@ -208,13 +208,13 @@ function Lr() {
|
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
const yt = {
|
|
211
|
-
useI18n:
|
|
212
|
-
},
|
|
211
|
+
useI18n: Ur
|
|
212
|
+
}, xe = "/v2/control-planes/{controlPlaneId}/core-entities", Ie = "/{workspace}", Oe = {
|
|
213
213
|
list: {
|
|
214
214
|
konnect: {
|
|
215
|
-
all: `${
|
|
216
|
-
forConsumer: `${
|
|
217
|
-
oneForConsumer: `${
|
|
215
|
+
all: `${xe}/consumer_groups`,
|
|
216
|
+
forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
|
|
217
|
+
oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
|
|
218
218
|
},
|
|
219
219
|
kongManager: {
|
|
220
220
|
all: `${Ie}/consumer_groups?counter=true`,
|
|
@@ -224,12 +224,12 @@ const yt = {
|
|
|
224
224
|
},
|
|
225
225
|
form: {
|
|
226
226
|
konnect: {
|
|
227
|
-
consumersList: `${
|
|
228
|
-
create: `${
|
|
229
|
-
edit: `${
|
|
230
|
-
addConsumer: `${
|
|
231
|
-
removeConsumer: `${
|
|
232
|
-
getConsumers: `${
|
|
227
|
+
consumersList: `${xe}/consumers`,
|
|
228
|
+
create: `${xe}/consumer_groups`,
|
|
229
|
+
edit: `${xe}/consumer_groups/{id}`,
|
|
230
|
+
addConsumer: `${xe}/consumer_groups/{id}/consumers`,
|
|
231
|
+
removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
|
|
232
|
+
getConsumers: `${xe}/consumer_groups/{id}/consumers`
|
|
233
233
|
},
|
|
234
234
|
kongManager: {
|
|
235
235
|
consumersList: `${Ie}/consumers`,
|
|
@@ -242,7 +242,7 @@ const yt = {
|
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
244
|
var wn = /* @__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))(wn || {}), ut = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(ut || {}), Fe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Fe || {}), ee = /* @__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))(ee || {}), he = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(he || {});
|
|
245
|
-
function
|
|
245
|
+
function Pr() {
|
|
246
246
|
return {
|
|
247
247
|
getAxiosInstance: (e = {}) => {
|
|
248
248
|
try {
|
|
@@ -266,7 +266,7 @@ function Ur() {
|
|
|
266
266
|
}
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
function
|
|
269
|
+
function Rr() {
|
|
270
270
|
return {
|
|
271
271
|
debounce: (e, t) => {
|
|
272
272
|
let n;
|
|
@@ -278,14 +278,14 @@ function Pr() {
|
|
|
278
278
|
}
|
|
279
279
|
};
|
|
280
280
|
}
|
|
281
|
-
const kt = "khcp-user-table-preferences",
|
|
281
|
+
const kt = "khcp-user-table-preferences", Vr = {
|
|
282
282
|
pageSize: 30,
|
|
283
283
|
sortColumnKey: void 0,
|
|
284
284
|
sortColumnOrder: void 0,
|
|
285
285
|
columnWidths: {},
|
|
286
286
|
columnVisibility: {}
|
|
287
287
|
};
|
|
288
|
-
function
|
|
288
|
+
function Dr() {
|
|
289
289
|
const e = (n) => {
|
|
290
290
|
if (typeof n == "string")
|
|
291
291
|
try {
|
|
@@ -309,7 +309,7 @@ function Vr() {
|
|
|
309
309
|
},
|
|
310
310
|
getTablePreferences: (n) => {
|
|
311
311
|
const r = t();
|
|
312
|
-
return (r == null ? void 0 : r.get(n)) || void 0 ||
|
|
312
|
+
return (r == null ? void 0 : r.get(n)) || void 0 || Vr;
|
|
313
313
|
},
|
|
314
314
|
deleteAllTablePreferences: () => {
|
|
315
315
|
localStorage.removeItem(kt);
|
|
@@ -317,22 +317,22 @@ function Vr() {
|
|
|
317
317
|
};
|
|
318
318
|
}
|
|
319
319
|
function Et(e = {}) {
|
|
320
|
-
const { getAxiosInstance: t } =
|
|
320
|
+
const { getAxiosInstance: t } = Pr();
|
|
321
321
|
return {
|
|
322
322
|
axiosInstance: t(e)
|
|
323
323
|
};
|
|
324
324
|
}
|
|
325
|
-
const
|
|
325
|
+
const zr = {
|
|
326
326
|
actions: {
|
|
327
327
|
copyId: "Copy ID",
|
|
328
328
|
copied_id: 'Copied "{id}" to the clipboard',
|
|
329
329
|
copyToClipboard: "Copied successfully!",
|
|
330
330
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
331
331
|
}
|
|
332
|
-
},
|
|
332
|
+
}, Gr = {
|
|
333
333
|
message: "Are you sure you want to delete this {entityType}?",
|
|
334
334
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
335
|
-
},
|
|
335
|
+
}, Hr = {
|
|
336
336
|
actions: {
|
|
337
337
|
viewConfiguration: "View Configuration",
|
|
338
338
|
save: "Save",
|
|
@@ -348,13 +348,13 @@ const Dr = {
|
|
|
348
348
|
errors: {
|
|
349
349
|
edit: "The entity could not be edited at this time."
|
|
350
350
|
}
|
|
351
|
-
},
|
|
351
|
+
}, Jr = {
|
|
352
352
|
emptyState: {
|
|
353
353
|
noSearchResultsTitle: "No results found",
|
|
354
354
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
355
355
|
noSearchResultsCtaText: "Clear"
|
|
356
356
|
}
|
|
357
|
-
},
|
|
357
|
+
}, Zr = {
|
|
358
358
|
title: "Configuration",
|
|
359
359
|
actions: {
|
|
360
360
|
copy: "Copy JSON"
|
|
@@ -389,7 +389,7 @@ const Dr = {
|
|
|
389
389
|
entryTitle: "Entry {index}",
|
|
390
390
|
structuredFormat: "Structured"
|
|
391
391
|
}
|
|
392
|
-
},
|
|
392
|
+
}, Wr = {
|
|
393
393
|
filterButtonText: "Filter",
|
|
394
394
|
fieldLabel: "Filter by:",
|
|
395
395
|
inputPlaceholder: "Enter a value",
|
|
@@ -397,17 +397,17 @@ const Dr = {
|
|
|
397
397
|
applyButtonText: "Apply",
|
|
398
398
|
clearButtonText: "Clear",
|
|
399
399
|
clearAllButtonText: "Clear all filters"
|
|
400
|
-
},
|
|
400
|
+
}, Yr = {
|
|
401
401
|
errors: {
|
|
402
402
|
fetch: "Could not fetch available items",
|
|
403
403
|
invalid: "Please select a valid value"
|
|
404
404
|
}
|
|
405
|
-
},
|
|
405
|
+
}, Qr = {
|
|
406
406
|
unexpected: "An unexpected error has occurred",
|
|
407
407
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
408
|
-
}, Qr = {
|
|
409
|
-
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
410
408
|
}, Xr = {
|
|
409
|
+
utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
410
|
+
}, ea = {
|
|
411
411
|
enable: {
|
|
412
412
|
title: "Enable {entityType}",
|
|
413
413
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -418,20 +418,20 @@ const Dr = {
|
|
|
418
418
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
419
419
|
confirmText: "Yes, disable"
|
|
420
420
|
}
|
|
421
|
-
},
|
|
422
|
-
global:
|
|
423
|
-
deleteModal:
|
|
424
|
-
baseForm:
|
|
425
|
-
baseTable:
|
|
426
|
-
baseConfigCard:
|
|
427
|
-
filter:
|
|
428
|
-
debouncedFilter:
|
|
429
|
-
errors:
|
|
430
|
-
validationErrors:
|
|
431
|
-
toggleModal:
|
|
421
|
+
}, ta = {
|
|
422
|
+
global: zr,
|
|
423
|
+
deleteModal: Gr,
|
|
424
|
+
baseForm: Hr,
|
|
425
|
+
baseTable: Jr,
|
|
426
|
+
baseConfigCard: Zr,
|
|
427
|
+
filter: Wr,
|
|
428
|
+
debouncedFilter: Yr,
|
|
429
|
+
errors: Qr,
|
|
430
|
+
validationErrors: Xr,
|
|
431
|
+
toggleModal: ea
|
|
432
432
|
};
|
|
433
433
|
function ht() {
|
|
434
|
-
const e = Cn("en-us",
|
|
434
|
+
const e = Cn("en-us", ta);
|
|
435
435
|
return {
|
|
436
436
|
i18n: e,
|
|
437
437
|
i18nT: kn(e)
|
|
@@ -482,12 +482,12 @@ function _n() {
|
|
|
482
482
|
isValidUuid: (n) => n ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(n) : !1
|
|
483
483
|
};
|
|
484
484
|
}
|
|
485
|
-
function
|
|
485
|
+
function na(e, t, n, r = {
|
|
486
486
|
fetchedItemsKey: "data",
|
|
487
487
|
searchKeys: ["id"]
|
|
488
488
|
}) {
|
|
489
489
|
n || (n = "1000");
|
|
490
|
-
const { axiosInstance: a } = Et(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } =
|
|
490
|
+
const { axiosInstance: a } = Et(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Rr(), s = o(async (h) => {
|
|
491
491
|
await Z(h);
|
|
492
492
|
}, 200), l = M(!1), u = M(""), p = M(""), c = M([]), y = M([]), f = M(void 0), S = g(t);
|
|
493
493
|
let T = `${e.apiBaseUrl}${S}`;
|
|
@@ -503,7 +503,7 @@ function ta(e, t, n, r = {
|
|
|
503
503
|
l.value = !1;
|
|
504
504
|
}
|
|
505
505
|
}, N = M(""), Z = async (h) => {
|
|
506
|
-
var _, d,
|
|
506
|
+
var _, d, I;
|
|
507
507
|
if (N.value !== h)
|
|
508
508
|
if (N.value = h || "", f.value === void 0)
|
|
509
509
|
try {
|
|
@@ -538,7 +538,7 @@ function ta(e, t, n, r = {
|
|
|
538
538
|
l.value = !1;
|
|
539
539
|
}
|
|
540
540
|
else
|
|
541
|
-
l.value = !0, p.value = "", h ? (c.value = (
|
|
541
|
+
l.value = !0, p.value = "", h ? (c.value = (I = f.value) == null ? void 0 : I.filter((B) => {
|
|
542
542
|
var x;
|
|
543
543
|
let G = !1;
|
|
544
544
|
for (const q of r.searchKeys) {
|
|
@@ -558,13 +558,13 @@ function ta(e, t, n, r = {
|
|
|
558
558
|
debouncedQueryChange: s
|
|
559
559
|
};
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function ra(e, t) {
|
|
562
562
|
const n = g(t), r = w(
|
|
563
563
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
|
|
564
564
|
);
|
|
565
565
|
return r.value.search = "", (a) => `${r.value.href}/${a}`;
|
|
566
566
|
}
|
|
567
|
-
function
|
|
567
|
+
function aa() {
|
|
568
568
|
const { i18n: { t: e } } = ht();
|
|
569
569
|
return {
|
|
570
570
|
getMessageFromError: (t) => {
|
|
@@ -594,7 +594,7 @@ function ra() {
|
|
|
594
594
|
}
|
|
595
595
|
};
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function oa(e) {
|
|
598
598
|
const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
|
|
599
599
|
try {
|
|
600
600
|
const r = e.join("/"), a = `${n}${r}`, i = e.some((o) => o.trim() === "");
|
|
@@ -623,7 +623,7 @@ function Sn(e, t) {
|
|
|
623
623
|
}
|
|
624
624
|
};
|
|
625
625
|
}
|
|
626
|
-
function
|
|
626
|
+
function ia(e, t, n = "data") {
|
|
627
627
|
const r = g(t), { axiosInstance: a } = Et(e.axiosRequestConfig), i = Sn(e, r), o = M({
|
|
628
628
|
status: Fe.Idle
|
|
629
629
|
});
|
|
@@ -669,7 +669,7 @@ function oa(e, t, n = "data") {
|
|
|
669
669
|
}
|
|
670
670
|
}, fetcherState: o };
|
|
671
671
|
}
|
|
672
|
-
function
|
|
672
|
+
function sa() {
|
|
673
673
|
const e = (n, r = "_") => n ? n.split(r).map((a) => a.toLowerCase() === "id" ? a.toUpperCase() : a.charAt(0).toUpperCase() + a.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
|
|
674
674
|
return {
|
|
675
675
|
capitalize: (n) => n ? n.replace(t, (r) => r.toUpperCase()) : "",
|
|
@@ -686,44 +686,44 @@ const xn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
686
686
|
}, Zt = (e) => e === "*" || e === "x" || e === "X", Wt = (e) => {
|
|
687
687
|
const t = parseInt(e, 10);
|
|
688
688
|
return isNaN(t) ? e : t;
|
|
689
|
-
},
|
|
689
|
+
}, la = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ua = (e, t) => {
|
|
690
690
|
if (Zt(e) || Zt(t))
|
|
691
691
|
return 0;
|
|
692
|
-
const [n, r] =
|
|
692
|
+
const [n, r] = la(Wt(e), Wt(t));
|
|
693
693
|
return n > r ? 1 : n < r ? -1 : 0;
|
|
694
694
|
}, Yt = (e, t) => {
|
|
695
695
|
for (let n = 0; n < Math.max(e.length, t.length); n++) {
|
|
696
|
-
const r =
|
|
696
|
+
const r = ua(e[n] || "0", t[n] || "0");
|
|
697
697
|
if (r !== 0)
|
|
698
698
|
return r;
|
|
699
699
|
}
|
|
700
700
|
return 0;
|
|
701
|
-
},
|
|
701
|
+
}, ca = (e, t) => {
|
|
702
702
|
const n = Jt(e), r = Jt(t), a = n.pop(), i = r.pop(), o = Yt(n, r);
|
|
703
703
|
return o !== 0 ? o : a && i ? Yt(a.split("."), i.split(".")) : a || i ? a ? -1 : 1 : 0;
|
|
704
704
|
}, Qt = (e, t, n) => {
|
|
705
|
-
|
|
706
|
-
const r =
|
|
707
|
-
return
|
|
708
|
-
},
|
|
705
|
+
da(n);
|
|
706
|
+
const r = ca(e, t);
|
|
707
|
+
return In[n].includes(r);
|
|
708
|
+
}, In = {
|
|
709
709
|
">": [1],
|
|
710
710
|
">=": [0, 1],
|
|
711
711
|
"=": [0],
|
|
712
712
|
"<=": [-1, 0],
|
|
713
713
|
"<": [-1],
|
|
714
714
|
"!=": [-1, 1]
|
|
715
|
-
}, Xt = Object.keys(
|
|
715
|
+
}, Xt = Object.keys(In), da = (e) => {
|
|
716
716
|
if (typeof e != "string")
|
|
717
717
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
718
718
|
if (Xt.indexOf(e) === -1)
|
|
719
719
|
throw new Error(`Invalid operator, expected one of ${Xt.join("|")}`);
|
|
720
|
-
},
|
|
721
|
-
function
|
|
720
|
+
}, pa = (e) => typeof e == "string" && /^[v\d]/.test(e) && xn.test(e);
|
|
721
|
+
function fa(e) {
|
|
722
722
|
const { gatewayInfo: t, supportedRange: n } = e;
|
|
723
723
|
if (!t)
|
|
724
724
|
return !0;
|
|
725
725
|
const { edition: r, version: a } = t;
|
|
726
|
-
if (!
|
|
726
|
+
if (!pa(a))
|
|
727
727
|
return console.error("Invalid version"), !1;
|
|
728
728
|
const i = n[r];
|
|
729
729
|
if (!i)
|
|
@@ -731,15 +731,15 @@ function pa(e) {
|
|
|
731
731
|
const [o, s] = i;
|
|
732
732
|
return !(o && Qt(a, o, "<") || s && Qt(a, s, ">"));
|
|
733
733
|
}
|
|
734
|
-
function
|
|
734
|
+
function ma(e) {
|
|
735
735
|
const t = M(0), n = M(0), r = M(!1);
|
|
736
|
-
return
|
|
736
|
+
return Ae(e, (a) => {
|
|
737
737
|
a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
|
|
738
738
|
}), {
|
|
739
739
|
isTruncated: w(() => t.value < n.value)
|
|
740
740
|
};
|
|
741
741
|
}
|
|
742
|
-
function
|
|
742
|
+
function ga() {
|
|
743
743
|
const { i18n: { t: e } } = ht();
|
|
744
744
|
return {
|
|
745
745
|
utf8Name: (t) => /^[\p{N}\p{L}.\-_~]*$/u.test(t) ? "" : e("validationErrors.utf8Name")
|
|
@@ -747,22 +747,22 @@ function ma() {
|
|
|
747
747
|
}
|
|
748
748
|
const se = {
|
|
749
749
|
useAxios: Et,
|
|
750
|
-
useDebouncedFilter:
|
|
751
|
-
useDeleteUrlBuilder:
|
|
752
|
-
useErrors:
|
|
753
|
-
useExternalLinkCreator:
|
|
754
|
-
useFetcher:
|
|
750
|
+
useDebouncedFilter: na,
|
|
751
|
+
useDeleteUrlBuilder: ra,
|
|
752
|
+
useErrors: aa,
|
|
753
|
+
useExternalLinkCreator: oa,
|
|
754
|
+
useFetcher: ia,
|
|
755
755
|
useFetchUrlBuilder: Sn,
|
|
756
756
|
useHelpers: _n,
|
|
757
|
-
useStringHelpers:
|
|
757
|
+
useStringHelpers: sa,
|
|
758
758
|
useI18n: ht,
|
|
759
|
-
useGatewayFeatureSupported:
|
|
760
|
-
useTruncationDetector:
|
|
761
|
-
useValidators:
|
|
762
|
-
},
|
|
759
|
+
useGatewayFeatureSupported: fa,
|
|
760
|
+
useTruncationDetector: ma,
|
|
761
|
+
useValidators: ga
|
|
762
|
+
}, ya = {
|
|
763
763
|
key: 0,
|
|
764
764
|
class: "config-card-fieldset-title"
|
|
765
|
-
},
|
|
765
|
+
}, ha = /* @__PURE__ */ X({
|
|
766
766
|
__name: "JsonCardItem",
|
|
767
767
|
props: {
|
|
768
768
|
item: {
|
|
@@ -786,11 +786,11 @@ const se = {
|
|
|
786
786
|
var l;
|
|
787
787
|
return t.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
|
|
788
788
|
});
|
|
789
|
-
return (l, u) => (m(), D(
|
|
789
|
+
return (l, u) => (m(), D(Te(e.isArrayItem ? "fieldset" : "div"), {
|
|
790
790
|
class: Me(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
791
791
|
}, {
|
|
792
792
|
default: v(() => [
|
|
793
|
-
e.isArrayItem ? (m(), $("legend",
|
|
793
|
+
e.isArrayItem ? (m(), $("legend", ya, [
|
|
794
794
|
L("b", null, K(s.value), 1)
|
|
795
795
|
])) : J("", !0),
|
|
796
796
|
(m(!0), $(be, null, ve(Object.keys(o.value), (p, c) => (m(), D($n, {
|
|
@@ -810,7 +810,7 @@ const se = {
|
|
|
810
810
|
for (const [r, a] of t)
|
|
811
811
|
n[r] = a;
|
|
812
812
|
return n;
|
|
813
|
-
},
|
|
813
|
+
}, An = /* @__PURE__ */ Ce(ha, [["__scopeId", "data-v-68ca83ec"]]), va = /* @__PURE__ */ X({
|
|
814
814
|
__name: "InternalLinkItem",
|
|
815
815
|
props: {
|
|
816
816
|
item: {
|
|
@@ -837,7 +837,7 @@ const se = {
|
|
|
837
837
|
]);
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
|
-
}),
|
|
840
|
+
}), ba = /* @__PURE__ */ Ce(va, [["__scopeId", "data-v-c96811e5"]]), Ca = /* @__PURE__ */ X({
|
|
841
841
|
__name: "StatusBadge",
|
|
842
842
|
props: {
|
|
843
843
|
status: {
|
|
@@ -859,11 +859,11 @@ const se = {
|
|
|
859
859
|
}, 8, ["appearance"]);
|
|
860
860
|
};
|
|
861
861
|
}
|
|
862
|
-
}),
|
|
862
|
+
}), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Sa = "1px", xa = "20px", Ia = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Oa = ["data-testid"], Ea = ["data-testid"], Ma = ["data-testid"], qa = ["data-testid"], Fa = {
|
|
863
863
|
name: "ConfigCardItem",
|
|
864
|
-
components: { JsonCardItem:
|
|
865
|
-
},
|
|
866
|
-
...
|
|
864
|
+
components: { JsonCardItem: An, StatusBadge: Ca, InternalLinkItem: ba }
|
|
865
|
+
}, Ka = /* @__PURE__ */ X({
|
|
866
|
+
...Fa,
|
|
867
867
|
props: {
|
|
868
868
|
item: {
|
|
869
869
|
type: Object,
|
|
@@ -883,7 +883,7 @@ const se = {
|
|
|
883
883
|
emits: ["navigation-click"],
|
|
884
884
|
setup(e, { emit: t }) {
|
|
885
885
|
bn((S) => ({
|
|
886
|
-
"07753575": p.value ? "none" : `solid ${g(
|
|
886
|
+
"07753575": p.value ? "none" : `solid ${g(Sa)} ${g(wa)}`,
|
|
887
887
|
"32d44ea8": u.value && s.value ? "block" : "flex",
|
|
888
888
|
"5036b738": u.value && s.value ? "100%" : n.slim ? "50%" : "25%",
|
|
889
889
|
"5038fd13": u.value && s.value ? "100%" : n.slim ? "50%" : "75%"
|
|
@@ -1001,7 +1001,7 @@ const se = {
|
|
|
1001
1001
|
}), y = M(), { isTruncated: f } = se.useTruncationDetector(y);
|
|
1002
1002
|
return (S, T) => {
|
|
1003
1003
|
const k = R("KLabel"), U = R("KBadge"), N = R("KCopy"), Z = R("KTooltip");
|
|
1004
|
-
return m(), $("div",
|
|
1004
|
+
return m(), $("div", Ia, [
|
|
1005
1005
|
L("div", {
|
|
1006
1006
|
class: "config-card-details-label",
|
|
1007
1007
|
"data-testid": `${e.item.key}-label`
|
|
@@ -1022,7 +1022,7 @@ const se = {
|
|
|
1022
1022
|
ne(S.$slots, "label-tooltip", {}, () => [
|
|
1023
1023
|
Y(K(e.item.tooltip), 1)
|
|
1024
1024
|
], !0)
|
|
1025
|
-
], 8,
|
|
1025
|
+
], 8, $a)
|
|
1026
1026
|
]),
|
|
1027
1027
|
key: "0"
|
|
1028
1028
|
} : void 0
|
|
@@ -1036,8 +1036,8 @@ const se = {
|
|
|
1036
1036
|
ne(S.$slots, e.item.key, {
|
|
1037
1037
|
rowValue: e.item.value
|
|
1038
1038
|
}, () => [
|
|
1039
|
-
s.value ? (m(), $("div",
|
|
1040
|
-
(m(), D(
|
|
1039
|
+
s.value ? (m(), $("div", ja, [
|
|
1040
|
+
(m(), D(Te(c.value.tag), Ir(Ar(c.value.attrs)), {
|
|
1041
1041
|
default: v(() => [
|
|
1042
1042
|
c.value.additionalComponent === "KBadge" ? (m(), $("div", {
|
|
1043
1043
|
key: 0,
|
|
@@ -1055,7 +1055,7 @@ const se = {
|
|
|
1055
1055
|
]),
|
|
1056
1056
|
_: 2
|
|
1057
1057
|
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1058
|
-
], 8,
|
|
1058
|
+
], 8, Oa)) : J("", !0),
|
|
1059
1059
|
c.value.additionalComponent === "KCopy" ? (m(), $("div", {
|
|
1060
1060
|
key: 1,
|
|
1061
1061
|
class: "copy-uuid-array",
|
|
@@ -1066,14 +1066,14 @@ const se = {
|
|
|
1066
1066
|
"data-testid": `${e.item.key}-copy-uuid-${_}`,
|
|
1067
1067
|
text: h
|
|
1068
1068
|
}), null, 16, ["data-testid", "text"]))), 128))
|
|
1069
|
-
], 8,
|
|
1069
|
+
], 8, Ea)) : c.value.additionalComponent === "KMethodBadge" ? (m(), $("div", {
|
|
1070
1070
|
key: 2,
|
|
1071
1071
|
class: "method-badge-array",
|
|
1072
1072
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1073
1073
|
}, [
|
|
1074
1074
|
(m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(U, {
|
|
1075
1075
|
key: `${e.item.key}-badge-method-${_}`,
|
|
1076
|
-
appearance: Object.values(g(
|
|
1076
|
+
appearance: Object.values(g(Nr)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
|
|
1077
1077
|
class: "config-badge",
|
|
1078
1078
|
"data-testid": `${e.item.key}-badge-method-${_}`
|
|
1079
1079
|
}, {
|
|
@@ -1082,18 +1082,18 @@ const se = {
|
|
|
1082
1082
|
]),
|
|
1083
1083
|
_: 2
|
|
1084
1084
|
}, 1032, ["appearance", "data-testid"]))), 128))
|
|
1085
|
-
], 8,
|
|
1085
|
+
], 8, Ma)) : J("", !0),
|
|
1086
1086
|
c.value.additionalComponent === "JsonCardItem" ? (m(), $("div", {
|
|
1087
1087
|
key: 3,
|
|
1088
1088
|
"data-testid": `${n.item.key}-json-array-content`
|
|
1089
1089
|
}, [
|
|
1090
|
-
(m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(
|
|
1090
|
+
(m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(An, {
|
|
1091
1091
|
key: `json-array-item-${_}`,
|
|
1092
1092
|
index: _,
|
|
1093
1093
|
"is-array-item": "",
|
|
1094
1094
|
item: h
|
|
1095
1095
|
}, null, 8, ["index", "item"]))), 128))
|
|
1096
|
-
], 8,
|
|
1096
|
+
], 8, qa)) : (m(), D(Z, {
|
|
1097
1097
|
key: 4,
|
|
1098
1098
|
text: g(f) ? e.item.value : ""
|
|
1099
1099
|
}, {
|
|
@@ -1112,13 +1112,13 @@ const se = {
|
|
|
1112
1112
|
])) : (m(), $("div", {
|
|
1113
1113
|
key: 0,
|
|
1114
1114
|
"data-testid": `${e.item.key}-no-value`
|
|
1115
|
-
}, " – ", 8,
|
|
1115
|
+
}, " – ", 8, Na))
|
|
1116
1116
|
], !0)
|
|
1117
|
-
], 8,
|
|
1117
|
+
], 8, Ta)
|
|
1118
1118
|
]);
|
|
1119
1119
|
};
|
|
1120
1120
|
}
|
|
1121
|
-
}), $n = /* @__PURE__ */ Ce(
|
|
1121
|
+
}), $n = /* @__PURE__ */ Ce(Ka, [["__scopeId", "data-v-d056663c"]]), Ba = { class: "json-config" }, La = {
|
|
1122
1122
|
key: 0,
|
|
1123
1123
|
class: "json-endpoint"
|
|
1124
1124
|
}, Tn = /* @__PURE__ */ X({
|
|
@@ -1161,8 +1161,8 @@ const se = {
|
|
|
1161
1161
|
});
|
|
1162
1162
|
return (a, i) => {
|
|
1163
1163
|
const o = R("KBadge"), s = R("KCodeBlock");
|
|
1164
|
-
return m(), $("div",
|
|
1165
|
-
t.fetcherUrl ? (m(), $("div",
|
|
1164
|
+
return m(), $("div", Ba, [
|
|
1165
|
+
t.fetcherUrl ? (m(), $("div", La, [
|
|
1166
1166
|
j(o, {
|
|
1167
1167
|
appearance: t.requestMethod
|
|
1168
1168
|
}, {
|
|
@@ -1195,35 +1195,35 @@ const se = {
|
|
|
1195
1195
|
function Nn(e) {
|
|
1196
1196
|
return typeof e > "u" || e === null;
|
|
1197
1197
|
}
|
|
1198
|
-
function
|
|
1198
|
+
function Ua(e) {
|
|
1199
1199
|
return typeof e == "object" && e !== null;
|
|
1200
1200
|
}
|
|
1201
|
-
function
|
|
1201
|
+
function Pa(e) {
|
|
1202
1202
|
return Array.isArray(e) ? e : Nn(e) ? [] : [e];
|
|
1203
1203
|
}
|
|
1204
|
-
function
|
|
1204
|
+
function Ra(e, t) {
|
|
1205
1205
|
var n, r, a, i;
|
|
1206
1206
|
if (t)
|
|
1207
1207
|
for (i = Object.keys(t), n = 0, r = i.length; n < r; n += 1)
|
|
1208
1208
|
a = i[n], e[a] = t[a];
|
|
1209
1209
|
return e;
|
|
1210
1210
|
}
|
|
1211
|
-
function
|
|
1211
|
+
function Va(e, t) {
|
|
1212
1212
|
var n = "", r;
|
|
1213
1213
|
for (r = 0; r < t; r += 1)
|
|
1214
1214
|
n += e;
|
|
1215
1215
|
return n;
|
|
1216
1216
|
}
|
|
1217
|
-
function
|
|
1217
|
+
function Da(e) {
|
|
1218
1218
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1219
1219
|
}
|
|
1220
|
-
var
|
|
1221
|
-
isNothing:
|
|
1222
|
-
isObject:
|
|
1223
|
-
toArray:
|
|
1224
|
-
repeat:
|
|
1225
|
-
isNegativeZero:
|
|
1226
|
-
extend:
|
|
1220
|
+
var za = Nn, Ga = Ua, Ha = Pa, Ja = Va, Za = Da, Wa = Ra, ie = {
|
|
1221
|
+
isNothing: za,
|
|
1222
|
+
isObject: Ga,
|
|
1223
|
+
toArray: Ha,
|
|
1224
|
+
repeat: Ja,
|
|
1225
|
+
isNegativeZero: Za,
|
|
1226
|
+
extend: Wa
|
|
1227
1227
|
};
|
|
1228
1228
|
function jn(e, t) {
|
|
1229
1229
|
var n = "", r = e.reason || "(unknown reason)";
|
|
@@ -1251,7 +1251,7 @@ function wt(e, t, n, r, a) {
|
|
|
1251
1251
|
function _t(e, t) {
|
|
1252
1252
|
return ie.repeat(" ", t - e.length) + e;
|
|
1253
1253
|
}
|
|
1254
|
-
function
|
|
1254
|
+
function Ya(e, t) {
|
|
1255
1255
|
if (t = Object.create(t || null), !e.buffer)
|
|
1256
1256
|
return null;
|
|
1257
1257
|
t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
|
|
@@ -1281,7 +1281,7 @@ function Wa(e, t) {
|
|
|
1281
1281
|
`;
|
|
1282
1282
|
return s.replace(/\n$/, "");
|
|
1283
1283
|
}
|
|
1284
|
-
var
|
|
1284
|
+
var Qa = Ya, Xa = [
|
|
1285
1285
|
"kind",
|
|
1286
1286
|
"multi",
|
|
1287
1287
|
"resolve",
|
|
@@ -1292,12 +1292,12 @@ var Ya = Wa, Qa = [
|
|
|
1292
1292
|
"representName",
|
|
1293
1293
|
"defaultStyle",
|
|
1294
1294
|
"styleAliases"
|
|
1295
|
-
],
|
|
1295
|
+
], eo = [
|
|
1296
1296
|
"scalar",
|
|
1297
1297
|
"sequence",
|
|
1298
1298
|
"mapping"
|
|
1299
1299
|
];
|
|
1300
|
-
function
|
|
1300
|
+
function to(e) {
|
|
1301
1301
|
var t = {};
|
|
1302
1302
|
return e !== null && Object.keys(e).forEach(function(n) {
|
|
1303
1303
|
e[n].forEach(function(r) {
|
|
@@ -1305,18 +1305,18 @@ function eo(e) {
|
|
|
1305
1305
|
});
|
|
1306
1306
|
}), t;
|
|
1307
1307
|
}
|
|
1308
|
-
function
|
|
1308
|
+
function no(e, t) {
|
|
1309
1309
|
if (t = t || {}, Object.keys(t).forEach(function(n) {
|
|
1310
|
-
if (
|
|
1310
|
+
if (Xa.indexOf(n) === -1)
|
|
1311
1311
|
throw new fe('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
|
|
1312
1312
|
}), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
|
|
1313
1313
|
return !0;
|
|
1314
1314
|
}, this.construct = t.construct || function(n) {
|
|
1315
1315
|
return n;
|
|
1316
|
-
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases =
|
|
1316
|
+
}, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = to(t.styleAliases || null), eo.indexOf(this.kind) === -1)
|
|
1317
1317
|
throw new fe('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1318
1318
|
}
|
|
1319
|
-
var ce =
|
|
1319
|
+
var ce = no;
|
|
1320
1320
|
function en(e, t) {
|
|
1321
1321
|
var n = [];
|
|
1322
1322
|
return e[t].forEach(function(r) {
|
|
@@ -1326,7 +1326,7 @@ function en(e, t) {
|
|
|
1326
1326
|
}), n[a] = r;
|
|
1327
1327
|
}), n;
|
|
1328
1328
|
}
|
|
1329
|
-
function
|
|
1329
|
+
function ro() {
|
|
1330
1330
|
var e = {
|
|
1331
1331
|
scalar: {},
|
|
1332
1332
|
sequence: {},
|
|
@@ -1346,10 +1346,10 @@ function no() {
|
|
|
1346
1346
|
arguments[t].forEach(r);
|
|
1347
1347
|
return e;
|
|
1348
1348
|
}
|
|
1349
|
-
function
|
|
1349
|
+
function It(e) {
|
|
1350
1350
|
return this.extend(e);
|
|
1351
1351
|
}
|
|
1352
|
-
|
|
1352
|
+
It.prototype.extend = function(e) {
|
|
1353
1353
|
var t = [], n = [];
|
|
1354
1354
|
if (e instanceof ce)
|
|
1355
1355
|
n.push(e);
|
|
@@ -1370,10 +1370,10 @@ At.prototype.extend = function(e) {
|
|
|
1370
1370
|
if (!(a instanceof ce))
|
|
1371
1371
|
throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1372
1372
|
});
|
|
1373
|
-
var r = Object.create(
|
|
1374
|
-
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = en(r, "implicit"), r.compiledExplicit = en(r, "explicit"), r.compiledTypeMap =
|
|
1373
|
+
var r = Object.create(It.prototype);
|
|
1374
|
+
return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = en(r, "implicit"), r.compiledExplicit = en(r, "explicit"), r.compiledTypeMap = ro(r.compiledImplicit, r.compiledExplicit), r;
|
|
1375
1375
|
};
|
|
1376
|
-
var On =
|
|
1376
|
+
var On = It, En = new ce("tag:yaml.org,2002:str", {
|
|
1377
1377
|
kind: "scalar",
|
|
1378
1378
|
construct: function(e) {
|
|
1379
1379
|
return e !== null ? e : "";
|
|
@@ -1395,23 +1395,23 @@ var On = At, En = new ce("tag:yaml.org,2002:str", {
|
|
|
1395
1395
|
qn
|
|
1396
1396
|
]
|
|
1397
1397
|
});
|
|
1398
|
-
function
|
|
1398
|
+
function ao(e) {
|
|
1399
1399
|
if (e === null)
|
|
1400
1400
|
return !0;
|
|
1401
1401
|
var t = e.length;
|
|
1402
1402
|
return t === 1 && e === "~" || t === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1403
1403
|
}
|
|
1404
|
-
function
|
|
1404
|
+
function oo() {
|
|
1405
1405
|
return null;
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function io(e) {
|
|
1408
1408
|
return e === null;
|
|
1409
1409
|
}
|
|
1410
1410
|
var Kn = new ce("tag:yaml.org,2002:null", {
|
|
1411
1411
|
kind: "scalar",
|
|
1412
|
-
resolve:
|
|
1413
|
-
construct:
|
|
1414
|
-
predicate:
|
|
1412
|
+
resolve: ao,
|
|
1413
|
+
construct: oo,
|
|
1414
|
+
predicate: io,
|
|
1415
1415
|
represent: {
|
|
1416
1416
|
canonical: function() {
|
|
1417
1417
|
return "~";
|
|
@@ -1431,23 +1431,23 @@ var Kn = new ce("tag:yaml.org,2002:null", {
|
|
|
1431
1431
|
},
|
|
1432
1432
|
defaultStyle: "lowercase"
|
|
1433
1433
|
});
|
|
1434
|
-
function
|
|
1434
|
+
function so(e) {
|
|
1435
1435
|
if (e === null)
|
|
1436
1436
|
return !1;
|
|
1437
1437
|
var t = e.length;
|
|
1438
1438
|
return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1440
|
+
function lo(e) {
|
|
1441
1441
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1442
1442
|
}
|
|
1443
|
-
function
|
|
1443
|
+
function uo(e) {
|
|
1444
1444
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1445
1445
|
}
|
|
1446
1446
|
var Bn = new ce("tag:yaml.org,2002:bool", {
|
|
1447
1447
|
kind: "scalar",
|
|
1448
|
-
resolve:
|
|
1449
|
-
construct:
|
|
1450
|
-
predicate:
|
|
1448
|
+
resolve: so,
|
|
1449
|
+
construct: lo,
|
|
1450
|
+
predicate: uo,
|
|
1451
1451
|
represent: {
|
|
1452
1452
|
lowercase: function(e) {
|
|
1453
1453
|
return e ? "true" : "false";
|
|
@@ -1461,16 +1461,16 @@ var Bn = new ce("tag:yaml.org,2002:bool", {
|
|
|
1461
1461
|
},
|
|
1462
1462
|
defaultStyle: "lowercase"
|
|
1463
1463
|
});
|
|
1464
|
-
function
|
|
1464
|
+
function co(e) {
|
|
1465
1465
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1466
1466
|
}
|
|
1467
|
-
function
|
|
1467
|
+
function po(e) {
|
|
1468
1468
|
return 48 <= e && e <= 55;
|
|
1469
1469
|
}
|
|
1470
|
-
function
|
|
1470
|
+
function fo(e) {
|
|
1471
1471
|
return 48 <= e && e <= 57;
|
|
1472
1472
|
}
|
|
1473
|
-
function
|
|
1473
|
+
function mo(e) {
|
|
1474
1474
|
if (e === null)
|
|
1475
1475
|
return !1;
|
|
1476
1476
|
var t = e.length, n = 0, r = !1, a;
|
|
@@ -1491,7 +1491,7 @@ function fo(e) {
|
|
|
1491
1491
|
if (a === "x") {
|
|
1492
1492
|
for (n++; n < t; n++)
|
|
1493
1493
|
if (a = e[n], a !== "_") {
|
|
1494
|
-
if (!
|
|
1494
|
+
if (!co(e.charCodeAt(n)))
|
|
1495
1495
|
return !1;
|
|
1496
1496
|
r = !0;
|
|
1497
1497
|
}
|
|
@@ -1500,7 +1500,7 @@ function fo(e) {
|
|
|
1500
1500
|
if (a === "o") {
|
|
1501
1501
|
for (n++; n < t; n++)
|
|
1502
1502
|
if (a = e[n], a !== "_") {
|
|
1503
|
-
if (!
|
|
1503
|
+
if (!po(e.charCodeAt(n)))
|
|
1504
1504
|
return !1;
|
|
1505
1505
|
r = !0;
|
|
1506
1506
|
}
|
|
@@ -1511,13 +1511,13 @@ function fo(e) {
|
|
|
1511
1511
|
return !1;
|
|
1512
1512
|
for (; n < t; n++)
|
|
1513
1513
|
if (a = e[n], a !== "_") {
|
|
1514
|
-
if (!
|
|
1514
|
+
if (!fo(e.charCodeAt(n)))
|
|
1515
1515
|
return !1;
|
|
1516
1516
|
r = !0;
|
|
1517
1517
|
}
|
|
1518
1518
|
return !(!r || a === "_");
|
|
1519
1519
|
}
|
|
1520
|
-
function
|
|
1520
|
+
function go(e) {
|
|
1521
1521
|
var t = e, n = 1, r;
|
|
1522
1522
|
if (t.indexOf("_") !== -1 && (t = t.replace(/_/g, "")), r = t[0], (r === "-" || r === "+") && (r === "-" && (n = -1), t = t.slice(1), r = t[0]), t === "0")
|
|
1523
1523
|
return 0;
|
|
@@ -1531,14 +1531,14 @@ function mo(e) {
|
|
|
1531
1531
|
}
|
|
1532
1532
|
return n * parseInt(t, 10);
|
|
1533
1533
|
}
|
|
1534
|
-
function
|
|
1534
|
+
function yo(e) {
|
|
1535
1535
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ie.isNegativeZero(e);
|
|
1536
1536
|
}
|
|
1537
1537
|
var Ln = new ce("tag:yaml.org,2002:int", {
|
|
1538
1538
|
kind: "scalar",
|
|
1539
|
-
resolve:
|
|
1540
|
-
construct:
|
|
1541
|
-
predicate:
|
|
1539
|
+
resolve: mo,
|
|
1540
|
+
construct: go,
|
|
1541
|
+
predicate: yo,
|
|
1542
1542
|
represent: {
|
|
1543
1543
|
binary: function(e) {
|
|
1544
1544
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1561,21 +1561,21 @@ var Ln = new ce("tag:yaml.org,2002:int", {
|
|
|
1561
1561
|
decimal: [10, "dec"],
|
|
1562
1562
|
hexadecimal: [16, "hex"]
|
|
1563
1563
|
}
|
|
1564
|
-
}),
|
|
1564
|
+
}), ho = new RegExp(
|
|
1565
1565
|
// 2.5e4, 2.5 and integers
|
|
1566
1566
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1567
1567
|
);
|
|
1568
|
-
function
|
|
1569
|
-
return !(e === null || !
|
|
1568
|
+
function vo(e) {
|
|
1569
|
+
return !(e === null || !ho.test(e) || // Quick hack to not allow integers end with `_`
|
|
1570
1570
|
// Probably should update regexp & check speed
|
|
1571
1571
|
e[e.length - 1] === "_");
|
|
1572
1572
|
}
|
|
1573
|
-
function
|
|
1573
|
+
function bo(e) {
|
|
1574
1574
|
var t, n;
|
|
1575
1575
|
return t = e.replace(/_/g, "").toLowerCase(), n = t[0] === "-" ? -1 : 1, "+-".indexOf(t[0]) >= 0 && (t = t.slice(1)), t === ".inf" ? n === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : t === ".nan" ? NaN : n * parseFloat(t, 10);
|
|
1576
1576
|
}
|
|
1577
|
-
var
|
|
1578
|
-
function
|
|
1577
|
+
var Co = /^[-+]?[0-9]+e/;
|
|
1578
|
+
function ko(e, t) {
|
|
1579
1579
|
var n;
|
|
1580
1580
|
if (isNaN(e))
|
|
1581
1581
|
switch (t) {
|
|
@@ -1606,17 +1606,17 @@ function Co(e, t) {
|
|
|
1606
1606
|
}
|
|
1607
1607
|
else if (ie.isNegativeZero(e))
|
|
1608
1608
|
return "-0.0";
|
|
1609
|
-
return n = e.toString(10),
|
|
1609
|
+
return n = e.toString(10), Co.test(n) ? n.replace("e", ".e") : n;
|
|
1610
1610
|
}
|
|
1611
|
-
function
|
|
1611
|
+
function wo(e) {
|
|
1612
1612
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ie.isNegativeZero(e));
|
|
1613
1613
|
}
|
|
1614
1614
|
var Un = new ce("tag:yaml.org,2002:float", {
|
|
1615
1615
|
kind: "scalar",
|
|
1616
|
-
resolve:
|
|
1617
|
-
construct:
|
|
1618
|
-
predicate:
|
|
1619
|
-
represent:
|
|
1616
|
+
resolve: vo,
|
|
1617
|
+
construct: bo,
|
|
1618
|
+
predicate: wo,
|
|
1619
|
+
represent: ko,
|
|
1620
1620
|
defaultStyle: "lowercase"
|
|
1621
1621
|
}), Pn = Fn.extend({
|
|
1622
1622
|
implicit: [
|
|
@@ -1630,10 +1630,10 @@ var Un = new ce("tag:yaml.org,2002:float", {
|
|
|
1630
1630
|
), Dn = new RegExp(
|
|
1631
1631
|
"^([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]))?))?$"
|
|
1632
1632
|
);
|
|
1633
|
-
function
|
|
1633
|
+
function _o(e) {
|
|
1634
1634
|
return e === null ? !1 : Vn.exec(e) !== null || Dn.exec(e) !== null;
|
|
1635
1635
|
}
|
|
1636
|
-
function
|
|
1636
|
+
function So(e) {
|
|
1637
1637
|
var t, n, r, a, i, o, s, l = 0, u = null, p, c, y;
|
|
1638
1638
|
if (t = Vn.exec(e), t === null && (t = Dn.exec(e)), t === null)
|
|
1639
1639
|
throw new Error("Date resolve error");
|
|
@@ -1646,22 +1646,22 @@ function _o(e) {
|
|
|
1646
1646
|
}
|
|
1647
1647
|
return t[9] && (p = +t[10], c = +(t[11] || 0), u = (p * 60 + c) * 6e4, t[9] === "-" && (u = -u)), y = new Date(Date.UTC(n, r, a, i, o, s, l)), u && y.setTime(y.getTime() - u), y;
|
|
1648
1648
|
}
|
|
1649
|
-
function
|
|
1649
|
+
function xo(e) {
|
|
1650
1650
|
return e.toISOString();
|
|
1651
1651
|
}
|
|
1652
1652
|
var zn = new ce("tag:yaml.org,2002:timestamp", {
|
|
1653
1653
|
kind: "scalar",
|
|
1654
|
-
resolve:
|
|
1655
|
-
construct:
|
|
1654
|
+
resolve: _o,
|
|
1655
|
+
construct: So,
|
|
1656
1656
|
instanceOf: Date,
|
|
1657
|
-
represent:
|
|
1657
|
+
represent: xo
|
|
1658
1658
|
});
|
|
1659
|
-
function
|
|
1659
|
+
function Io(e) {
|
|
1660
1660
|
return e === "<<" || e === null;
|
|
1661
1661
|
}
|
|
1662
1662
|
var Gn = new ce("tag:yaml.org,2002:merge", {
|
|
1663
1663
|
kind: "scalar",
|
|
1664
|
-
resolve:
|
|
1664
|
+
resolve: Io
|
|
1665
1665
|
}), Mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1666
1666
|
\r`;
|
|
1667
1667
|
function Ao(e) {
|
|
@@ -1676,37 +1676,37 @@ function Ao(e) {
|
|
|
1676
1676
|
}
|
|
1677
1677
|
return r % 8 === 0;
|
|
1678
1678
|
}
|
|
1679
|
-
function
|
|
1679
|
+
function $o(e) {
|
|
1680
1680
|
var t, n, r = e.replace(/[\r\n=]/g, ""), a = r.length, i = Mt, o = 0, s = [];
|
|
1681
1681
|
for (t = 0; t < a; t++)
|
|
1682
1682
|
t % 4 === 0 && t && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | i.indexOf(r.charAt(t));
|
|
1683
1683
|
return n = a % 4 * 6, n === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : n === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : n === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function To(e) {
|
|
1686
1686
|
var t = "", n = 0, r, a, i = e.length, o = Mt;
|
|
1687
1687
|
for (r = 0; r < i; r++)
|
|
1688
1688
|
r % 3 === 0 && r && (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]), n = (n << 8) + e[r];
|
|
1689
1689
|
return a = i % 3, a === 0 ? (t += o[n >> 18 & 63], t += o[n >> 12 & 63], t += o[n >> 6 & 63], t += o[n & 63]) : a === 2 ? (t += o[n >> 10 & 63], t += o[n >> 4 & 63], t += o[n << 2 & 63], t += o[64]) : a === 1 && (t += o[n >> 2 & 63], t += o[n << 4 & 63], t += o[64], t += o[64]), t;
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function No(e) {
|
|
1692
1692
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1693
1693
|
}
|
|
1694
1694
|
var Hn = new ce("tag:yaml.org,2002:binary", {
|
|
1695
1695
|
kind: "scalar",
|
|
1696
1696
|
resolve: Ao,
|
|
1697
|
-
construct:
|
|
1698
|
-
predicate:
|
|
1699
|
-
represent:
|
|
1700
|
-
}),
|
|
1701
|
-
function
|
|
1697
|
+
construct: $o,
|
|
1698
|
+
predicate: No,
|
|
1699
|
+
represent: To
|
|
1700
|
+
}), jo = Object.prototype.hasOwnProperty, Oo = Object.prototype.toString;
|
|
1701
|
+
function Eo(e) {
|
|
1702
1702
|
if (e === null)
|
|
1703
1703
|
return !0;
|
|
1704
1704
|
var t = [], n, r, a, i, o, s = e;
|
|
1705
1705
|
for (n = 0, r = s.length; n < r; n += 1) {
|
|
1706
|
-
if (a = s[n], o = !1,
|
|
1706
|
+
if (a = s[n], o = !1, Oo.call(a) !== "[object Object]")
|
|
1707
1707
|
return !1;
|
|
1708
1708
|
for (i in a)
|
|
1709
|
-
if (
|
|
1709
|
+
if (jo.call(a, i))
|
|
1710
1710
|
if (!o)
|
|
1711
1711
|
o = !0;
|
|
1712
1712
|
else
|
|
@@ -1720,26 +1720,26 @@ function Oo(e) {
|
|
|
1720
1720
|
}
|
|
1721
1721
|
return !0;
|
|
1722
1722
|
}
|
|
1723
|
-
function
|
|
1723
|
+
function Mo(e) {
|
|
1724
1724
|
return e !== null ? e : [];
|
|
1725
1725
|
}
|
|
1726
1726
|
var Jn = new ce("tag:yaml.org,2002:omap", {
|
|
1727
1727
|
kind: "sequence",
|
|
1728
|
-
resolve:
|
|
1729
|
-
construct:
|
|
1730
|
-
}),
|
|
1731
|
-
function
|
|
1728
|
+
resolve: Eo,
|
|
1729
|
+
construct: Mo
|
|
1730
|
+
}), qo = Object.prototype.toString;
|
|
1731
|
+
function Fo(e) {
|
|
1732
1732
|
if (e === null)
|
|
1733
1733
|
return !0;
|
|
1734
1734
|
var t, n, r, a, i, o = e;
|
|
1735
1735
|
for (i = new Array(o.length), t = 0, n = o.length; t < n; t += 1) {
|
|
1736
|
-
if (r = o[t],
|
|
1736
|
+
if (r = o[t], qo.call(r) !== "[object Object]" || (a = Object.keys(r), a.length !== 1))
|
|
1737
1737
|
return !1;
|
|
1738
1738
|
i[t] = [a[0], r[a[0]]];
|
|
1739
1739
|
}
|
|
1740
1740
|
return !0;
|
|
1741
1741
|
}
|
|
1742
|
-
function
|
|
1742
|
+
function Ko(e) {
|
|
1743
1743
|
if (e === null)
|
|
1744
1744
|
return [];
|
|
1745
1745
|
var t, n, r, a, i, o = e;
|
|
@@ -1749,25 +1749,25 @@ function Fo(e) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
var Zn = new ce("tag:yaml.org,2002:pairs", {
|
|
1751
1751
|
kind: "sequence",
|
|
1752
|
-
resolve:
|
|
1753
|
-
construct:
|
|
1754
|
-
}),
|
|
1755
|
-
function
|
|
1752
|
+
resolve: Fo,
|
|
1753
|
+
construct: Ko
|
|
1754
|
+
}), Bo = Object.prototype.hasOwnProperty;
|
|
1755
|
+
function Lo(e) {
|
|
1756
1756
|
if (e === null)
|
|
1757
1757
|
return !0;
|
|
1758
1758
|
var t, n = e;
|
|
1759
1759
|
for (t in n)
|
|
1760
|
-
if (
|
|
1760
|
+
if (Bo.call(n, t) && n[t] !== null)
|
|
1761
1761
|
return !1;
|
|
1762
1762
|
return !0;
|
|
1763
1763
|
}
|
|
1764
|
-
function
|
|
1764
|
+
function Uo(e) {
|
|
1765
1765
|
return e !== null ? e : {};
|
|
1766
1766
|
}
|
|
1767
1767
|
var Wn = new ce("tag:yaml.org,2002:set", {
|
|
1768
1768
|
kind: "mapping",
|
|
1769
|
-
resolve:
|
|
1770
|
-
construct:
|
|
1769
|
+
resolve: Lo,
|
|
1770
|
+
construct: Uo
|
|
1771
1771
|
}), qt = Rn.extend({
|
|
1772
1772
|
implicit: [
|
|
1773
1773
|
zn,
|
|
@@ -1779,7 +1779,7 @@ var Wn = new ce("tag:yaml.org,2002:set", {
|
|
|
1779
1779
|
Zn,
|
|
1780
1780
|
Wn
|
|
1781
1781
|
]
|
|
1782
|
-
}), qe = Object.prototype.hasOwnProperty, ct = 1, Yn = 2, Qn = 3, dt = 4, St = 1,
|
|
1782
|
+
}), qe = Object.prototype.hasOwnProperty, ct = 1, Yn = 2, Qn = 3, dt = 4, St = 1, Po = 2, tn = 3, Ro = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vo = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Xn = /^(?:!|!!|![a-z\-]+!)$/i, er = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1783
1783
|
function nn(e) {
|
|
1784
1784
|
return Object.prototype.toString.call(e);
|
|
1785
1785
|
}
|
|
@@ -1795,21 +1795,21 @@ function ye(e) {
|
|
|
1795
1795
|
function De(e) {
|
|
1796
1796
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1797
1797
|
}
|
|
1798
|
-
function
|
|
1798
|
+
function zo(e) {
|
|
1799
1799
|
var t;
|
|
1800
1800
|
return 48 <= e && e <= 57 ? e - 48 : (t = e | 32, 97 <= t && t <= 102 ? t - 97 + 10 : -1);
|
|
1801
1801
|
}
|
|
1802
|
-
function
|
|
1802
|
+
function Go(e) {
|
|
1803
1803
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1804
1804
|
}
|
|
1805
|
-
function
|
|
1805
|
+
function Ho(e) {
|
|
1806
1806
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1807
1807
|
}
|
|
1808
1808
|
function rn(e) {
|
|
1809
1809
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1810
1810
|
` : 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" : "";
|
|
1811
1811
|
}
|
|
1812
|
-
function
|
|
1812
|
+
function Jo(e) {
|
|
1813
1813
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1814
1814
|
(e - 65536 >> 10) + 55296,
|
|
1815
1815
|
(e - 65536 & 1023) + 56320
|
|
@@ -1818,7 +1818,7 @@ function Ho(e) {
|
|
|
1818
1818
|
var tr = new Array(256), nr = new Array(256);
|
|
1819
1819
|
for (var Re = 0; Re < 256; Re++)
|
|
1820
1820
|
tr[Re] = rn(Re) ? 1 : 0, nr[Re] = rn(Re);
|
|
1821
|
-
function
|
|
1821
|
+
function Zo(e, t) {
|
|
1822
1822
|
this.input = e, this.filename = t.filename || null, this.schema = t.schema || qt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1823
1823
|
}
|
|
1824
1824
|
function rr(e, t) {
|
|
@@ -1830,7 +1830,7 @@ function rr(e, t) {
|
|
|
1830
1830
|
line: e.line,
|
|
1831
1831
|
column: e.position - e.lineStart
|
|
1832
1832
|
};
|
|
1833
|
-
return n.snippet =
|
|
1833
|
+
return n.snippet = Qa(n), new fe(t, n);
|
|
1834
1834
|
}
|
|
1835
1835
|
function O(e, t) {
|
|
1836
1836
|
throw rr(e, t);
|
|
@@ -1861,7 +1861,7 @@ function Ee(e, t, n, r) {
|
|
|
1861
1861
|
for (a = 0, i = s.length; a < i; a += 1)
|
|
1862
1862
|
o = s.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || O(e, "expected valid JSON character");
|
|
1863
1863
|
else
|
|
1864
|
-
|
|
1864
|
+
Ro.test(s) && O(e, "the stream contains non-printable characters");
|
|
1865
1865
|
e.result += s;
|
|
1866
1866
|
}
|
|
1867
1867
|
}
|
|
@@ -1918,7 +1918,7 @@ function Kt(e, t) {
|
|
|
1918
1918
|
t === 1 ? e.result += " " : t > 1 && (e.result += ie.repeat(`
|
|
1919
1919
|
`, t - 1));
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function Wo(e, t, n) {
|
|
1922
1922
|
var r, a, i, o, s, l, u, p, c = e.kind, y = e.result, f;
|
|
1923
1923
|
if (f = e.input.charCodeAt(e.position), ye(f) || De(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) && (a = e.input.charCodeAt(e.position + 1), ye(a) || n && De(a)))
|
|
1924
1924
|
return !1;
|
|
@@ -1945,7 +1945,7 @@ function Zo(e, t, n) {
|
|
|
1945
1945
|
}
|
|
1946
1946
|
return Ee(e, i, o, !1), e.result ? !0 : (e.kind = c, e.result = y, !1);
|
|
1947
1947
|
}
|
|
1948
|
-
function
|
|
1948
|
+
function Yo(e, t) {
|
|
1949
1949
|
var n, r, a;
|
|
1950
1950
|
if (n = e.input.charCodeAt(e.position), n !== 39)
|
|
1951
1951
|
return !1;
|
|
@@ -1959,7 +1959,7 @@ function Wo(e, t) {
|
|
|
1959
1959
|
_e(n) ? (Ee(e, r, a, !0), Kt(e, oe(e, !1, t)), r = a = e.position) : e.position === e.lineStart && vt(e) ? O(e, "unexpected end of the document within a single quoted scalar") : (e.position++, a = e.position);
|
|
1960
1960
|
O(e, "unexpected end of the stream within a single quoted scalar");
|
|
1961
1961
|
}
|
|
1962
|
-
function
|
|
1962
|
+
function Qo(e, t) {
|
|
1963
1963
|
var n, r, a, i, o, s;
|
|
1964
1964
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1965
1965
|
return !1;
|
|
@@ -1971,10 +1971,10 @@ function Yo(e, t) {
|
|
|
1971
1971
|
oe(e, !1, t);
|
|
1972
1972
|
else if (s < 256 && tr[s])
|
|
1973
1973
|
e.result += nr[s], e.position++;
|
|
1974
|
-
else if ((o =
|
|
1974
|
+
else if ((o = Go(s)) > 0) {
|
|
1975
1975
|
for (a = o, i = 0; a > 0; a--)
|
|
1976
|
-
s = e.input.charCodeAt(++e.position), (o =
|
|
1977
|
-
e.result +=
|
|
1976
|
+
s = e.input.charCodeAt(++e.position), (o = zo(s)) >= 0 ? i = (i << 4) + o : O(e, "expected hexadecimal character");
|
|
1977
|
+
e.result += Jo(i), e.position++;
|
|
1978
1978
|
} else
|
|
1979
1979
|
O(e, "unknown escape sequence");
|
|
1980
1980
|
n = r = e.position;
|
|
@@ -1983,7 +1983,7 @@ function Yo(e, t) {
|
|
|
1983
1983
|
}
|
|
1984
1984
|
O(e, "unexpected end of the stream within a double quoted scalar");
|
|
1985
1985
|
}
|
|
1986
|
-
function
|
|
1986
|
+
function Xo(e, t) {
|
|
1987
1987
|
var n = !0, r, a, i, o = e.tag, s, l = e.anchor, u, p, c, y, f, S = /* @__PURE__ */ Object.create(null), T, k, U, N;
|
|
1988
1988
|
if (N = e.input.charCodeAt(e.position), N === 91)
|
|
1989
1989
|
p = 93, f = !1, s = [];
|
|
@@ -1998,7 +1998,7 @@ function Qo(e, t) {
|
|
|
1998
1998
|
}
|
|
1999
1999
|
O(e, "unexpected end of the stream within a flow collection");
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function ei(e, t) {
|
|
2002
2002
|
var n, r, a = St, i = !1, o = !1, s = t, l = 0, u = !1, p, c;
|
|
2003
2003
|
if (c = e.input.charCodeAt(e.position), c === 124)
|
|
2004
2004
|
r = !1;
|
|
@@ -2008,8 +2008,8 @@ function Xo(e, t) {
|
|
|
2008
2008
|
return !1;
|
|
2009
2009
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
2010
2010
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
2011
|
-
St === a ? a = c === 43 ? tn :
|
|
2012
|
-
else if ((p =
|
|
2011
|
+
St === a ? a = c === 43 ? tn : Po : O(e, "repeat of a chomping mode identifier");
|
|
2012
|
+
else if ((p = Ho(c)) >= 0)
|
|
2013
2013
|
p === 0 ? O(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? O(e, "repeat of an indentation width identifier") : (s = t + p - 1, o = !0);
|
|
2014
2014
|
else
|
|
2015
2015
|
break;
|
|
@@ -2061,7 +2061,7 @@ function sn(e, t) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = i, !0) : !1;
|
|
2063
2063
|
}
|
|
2064
|
-
function
|
|
2064
|
+
function ti(e, t, n) {
|
|
2065
2065
|
var r, a, i, o, s, l, u = e.tag, p = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null, S = null, T = null, k = !1, U = !1, N;
|
|
2066
2066
|
if (e.firstTabInLine !== -1)
|
|
2067
2067
|
return !1;
|
|
@@ -2092,7 +2092,7 @@ function ei(e, t, n) {
|
|
|
2092
2092
|
}
|
|
2093
2093
|
return k && ze(e, c, y, f, S, null, o, s, l), U && (e.tag = u, e.anchor = p, e.kind = "mapping", e.result = c), U;
|
|
2094
2094
|
}
|
|
2095
|
-
function
|
|
2095
|
+
function ni(e) {
|
|
2096
2096
|
var t, n = !1, r = !1, a, i, o;
|
|
2097
2097
|
if (o = e.input.charCodeAt(e.position), o !== 33)
|
|
2098
2098
|
return !1;
|
|
@@ -2104,7 +2104,7 @@ function ti(e) {
|
|
|
2104
2104
|
} else {
|
|
2105
2105
|
for (; o !== 0 && !ye(o); )
|
|
2106
2106
|
o === 33 && (r ? O(e, "tag suffix cannot contain exclamation marks") : (a = e.input.slice(t - 1, e.position + 1), Xn.test(a) || O(e, "named tag handle cannot contain such characters"), r = !0, t = e.position + 1)), o = e.input.charCodeAt(++e.position);
|
|
2107
|
-
i = e.input.slice(t, e.position),
|
|
2107
|
+
i = e.input.slice(t, e.position), Do.test(i) && O(e, "tag suffix cannot contain flow indicator characters");
|
|
2108
2108
|
}
|
|
2109
2109
|
i && !er.test(i) && O(e, "tag name cannot contain such characters: " + i);
|
|
2110
2110
|
try {
|
|
@@ -2114,7 +2114,7 @@ function ti(e) {
|
|
|
2114
2114
|
}
|
|
2115
2115
|
return n ? e.tag = i : qe.call(e.tagMap, a) ? e.tag = e.tagMap[a] + i : a === "!" ? e.tag = "!" + i : a === "!!" ? e.tag = "tag:yaml.org,2002:" + i : O(e, 'undeclared tag handle "' + a + '"'), !0;
|
|
2116
2116
|
}
|
|
2117
|
-
function
|
|
2117
|
+
function ri(e) {
|
|
2118
2118
|
var t, n;
|
|
2119
2119
|
if (n = e.input.charCodeAt(e.position), n !== 38)
|
|
2120
2120
|
return !1;
|
|
@@ -2122,7 +2122,7 @@ function ni(e) {
|
|
|
2122
2122
|
n = e.input.charCodeAt(++e.position);
|
|
2123
2123
|
return e.position === t && O(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
|
|
2124
2124
|
}
|
|
2125
|
-
function
|
|
2125
|
+
function ai(e) {
|
|
2126
2126
|
var t, n, r;
|
|
2127
2127
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2128
2128
|
return !1;
|
|
@@ -2133,9 +2133,9 @@ function ri(e) {
|
|
|
2133
2133
|
function Ge(e, t, n, r, a) {
|
|
2134
2134
|
var i, o, s, l = 1, u = !1, p = !1, c, y, f, S, T, k;
|
|
2135
2135
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = dt === n || Qn === n, r && oe(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
|
|
2136
|
-
for (;
|
|
2136
|
+
for (; ni(e) || ri(e); )
|
|
2137
2137
|
oe(e, !0, -1) ? (u = !0, s = i, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
|
|
2138
|
-
if (s && (s = u || a), (l === 1 || dt === n) && (ct === n || Yn === n ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (sn(e, k) ||
|
|
2138
|
+
if (s && (s = u || a), (l === 1 || dt === n) && (ct === n || Yn === n ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (sn(e, k) || ti(e, k, T)) || Xo(e, T) ? p = !0 : (o && ei(e, T) || Yo(e, T) || Qo(e, T) ? p = !0 : ai(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Wo(e, T, ct === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && sn(e, k))), e.tag === null)
|
|
2139
2139
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2140
2140
|
else if (e.tag === "?") {
|
|
2141
2141
|
for (e.result !== null && e.kind !== "scalar" && O(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
|
|
@@ -2156,7 +2156,7 @@ function Ge(e, t, n, r, a) {
|
|
|
2156
2156
|
}
|
|
2157
2157
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || p;
|
|
2158
2158
|
}
|
|
2159
|
-
function
|
|
2159
|
+
function oi(e) {
|
|
2160
2160
|
var t = e.position, n, r, a, i = !1, o;
|
|
2161
2161
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
|
|
2162
2162
|
for (i = !0, o = e.input.charCodeAt(++e.position), n = e.position; o !== 0 && !ye(o); )
|
|
@@ -2178,7 +2178,7 @@ function ai(e) {
|
|
|
2178
2178
|
}
|
|
2179
2179
|
o !== 0 && Ft(e), qe.call(an, r) ? an[r](e, r, a) : pt(e, 'unknown document directive "' + r + '"');
|
|
2180
2180
|
}
|
|
2181
|
-
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)) : i && O(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks &&
|
|
2181
|
+
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)) : i && O(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Vo.test(e.input.slice(t, e.position)) && pt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && vt(e)) {
|
|
2182
2182
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2183
2183
|
return;
|
|
2184
2184
|
}
|
|
@@ -2190,14 +2190,14 @@ function ai(e) {
|
|
|
2190
2190
|
function ar(e, t) {
|
|
2191
2191
|
e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2192
2192
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2193
|
-
var n = new
|
|
2193
|
+
var n = new Zo(e, t), r = e.indexOf("\0");
|
|
2194
2194
|
for (r !== -1 && (n.position = r, O(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
|
|
2195
2195
|
n.lineIndent += 1, n.position += 1;
|
|
2196
2196
|
for (; n.position < n.length - 1; )
|
|
2197
|
-
|
|
2197
|
+
oi(n);
|
|
2198
2198
|
return n.documents;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function ii(e, t, n) {
|
|
2201
2201
|
t !== null && typeof t == "object" && typeof n > "u" && (n = t, t = null);
|
|
2202
2202
|
var r = ar(e, n);
|
|
2203
2203
|
if (typeof t != "function")
|
|
@@ -2205,7 +2205,7 @@ function oi(e, t, n) {
|
|
|
2205
2205
|
for (var a = 0, i = r.length; a < i; a += 1)
|
|
2206
2206
|
t(r[a]);
|
|
2207
2207
|
}
|
|
2208
|
-
function
|
|
2208
|
+
function si(e, t) {
|
|
2209
2209
|
var n = ar(e, t);
|
|
2210
2210
|
if (n.length !== 0) {
|
|
2211
2211
|
if (n.length === 1)
|
|
@@ -2213,10 +2213,10 @@ function ii(e, t) {
|
|
|
2213
2213
|
throw new fe("expected a single document in the stream, but found more");
|
|
2214
2214
|
}
|
|
2215
2215
|
}
|
|
2216
|
-
var
|
|
2217
|
-
loadAll:
|
|
2218
|
-
load:
|
|
2219
|
-
}, ir = Object.prototype.toString, sr = Object.prototype.hasOwnProperty, Bt = 65279,
|
|
2216
|
+
var li = ii, ui = si, or = {
|
|
2217
|
+
loadAll: li,
|
|
2218
|
+
load: ui
|
|
2219
|
+
}, ir = Object.prototype.toString, sr = Object.prototype.hasOwnProperty, Bt = 65279, ci = 9, nt = 10, di = 13, pi = 32, fi = 33, mi = 34, At = 35, gi = 37, yi = 38, hi = 39, vi = 42, lr = 44, bi = 45, ft = 58, Ci = 61, ki = 62, wi = 63, _i = 64, ur = 91, cr = 93, Si = 96, dr = 123, xi = 124, pr = 125, pe = {};
|
|
2220
2220
|
pe[0] = "\\0";
|
|
2221
2221
|
pe[7] = "\\a";
|
|
2222
2222
|
pe[8] = "\\b";
|
|
@@ -2232,7 +2232,7 @@ pe[133] = "\\N";
|
|
|
2232
2232
|
pe[160] = "\\_";
|
|
2233
2233
|
pe[8232] = "\\L";
|
|
2234
2234
|
pe[8233] = "\\P";
|
|
2235
|
-
var
|
|
2235
|
+
var Ii = [
|
|
2236
2236
|
"y",
|
|
2237
2237
|
"Y",
|
|
2238
2238
|
"yes",
|
|
@@ -2250,7 +2250,7 @@ var xi = [
|
|
|
2250
2250
|
"Off",
|
|
2251
2251
|
"OFF"
|
|
2252
2252
|
], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2253
|
-
function
|
|
2253
|
+
function $i(e, t) {
|
|
2254
2254
|
var n, r, a, i, o, s, l;
|
|
2255
2255
|
if (t === null)
|
|
2256
2256
|
return {};
|
|
@@ -2258,7 +2258,7 @@ function Ii(e, t) {
|
|
|
2258
2258
|
o = r[a], s = String(t[o]), o.slice(0, 2) === "!!" && (o = "tag:yaml.org,2002:" + o.slice(2)), l = e.compiledTypeMap.fallback[o], l && sr.call(l.styleAliases, s) && (s = l.styleAliases[s]), n[o] = s;
|
|
2259
2259
|
return n;
|
|
2260
2260
|
}
|
|
2261
|
-
function
|
|
2261
|
+
function Ti(e) {
|
|
2262
2262
|
var t, n, r;
|
|
2263
2263
|
if (t = e.toString(16).toUpperCase(), e <= 255)
|
|
2264
2264
|
n = "x", r = 2;
|
|
@@ -2270,9 +2270,9 @@ function $i(e) {
|
|
|
2270
2270
|
throw new fe("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2271
2271
|
return "\\" + n + ie.repeat("0", r - t.length) + t;
|
|
2272
2272
|
}
|
|
2273
|
-
var
|
|
2274
|
-
function
|
|
2275
|
-
this.schema = e.schema || qt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2273
|
+
var Ni = 1, rt = 2;
|
|
2274
|
+
function ji(e) {
|
|
2275
|
+
this.schema = e.schema || qt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ie.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = $i(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 === '"' ? rt : Ni, 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;
|
|
2276
2276
|
}
|
|
2277
2277
|
function ln(e, t) {
|
|
2278
2278
|
for (var n = ie.repeat(" ", t), r = 0, a = -1, i = "", o, s = e.length; r < s; )
|
|
@@ -2285,7 +2285,7 @@ function $t(e, t) {
|
|
|
2285
2285
|
return `
|
|
2286
2286
|
` + ie.repeat(" ", e.indent * t);
|
|
2287
2287
|
}
|
|
2288
|
-
function
|
|
2288
|
+
function Oi(e, t) {
|
|
2289
2289
|
var n, r, a;
|
|
2290
2290
|
for (n = 0, r = e.implicitTypes.length; n < r; n += 1)
|
|
2291
2291
|
if (a = e.implicitTypes[n], a.resolve(t))
|
|
@@ -2293,13 +2293,13 @@ function ji(e, t) {
|
|
|
2293
2293
|
return !1;
|
|
2294
2294
|
}
|
|
2295
2295
|
function mt(e) {
|
|
2296
|
-
return e ===
|
|
2296
|
+
return e === pi || e === ci;
|
|
2297
2297
|
}
|
|
2298
2298
|
function at(e) {
|
|
2299
2299
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Bt || 65536 <= e && e <= 1114111;
|
|
2300
2300
|
}
|
|
2301
2301
|
function un(e) {
|
|
2302
|
-
return at(e) && e !== Bt && e !==
|
|
2302
|
+
return at(e) && e !== Bt && e !== di && e !== nt;
|
|
2303
2303
|
}
|
|
2304
2304
|
function cn(e, t, n) {
|
|
2305
2305
|
var r = un(e), a = r && !mt(e);
|
|
@@ -2308,13 +2308,13 @@ function cn(e, t, n) {
|
|
|
2308
2308
|
(n ? (
|
|
2309
2309
|
// c = flow-in
|
|
2310
2310
|
r
|
|
2311
|
-
) : r && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr) && e !==
|
|
2311
|
+
) : r && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr) && e !== At && !(t === ft && !a) || un(t) && !mt(t) && e === At || t === ft && a
|
|
2312
2312
|
);
|
|
2313
2313
|
}
|
|
2314
|
-
function Oi(e) {
|
|
2315
|
-
return at(e) && e !== Bt && !mt(e) && e !== vi && e !== ki && e !== ft && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr && e !== It && e !== gi && e !== hi && e !== pi && e !== Si && e !== bi && e !== Ci && e !== yi && e !== fi && e !== mi && e !== wi && e !== _i;
|
|
2316
|
-
}
|
|
2317
2314
|
function Ei(e) {
|
|
2315
|
+
return at(e) && e !== Bt && !mt(e) && e !== bi && e !== wi && e !== ft && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr && e !== At && e !== yi && e !== vi && e !== fi && e !== xi && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Si;
|
|
2316
|
+
}
|
|
2317
|
+
function Mi(e) {
|
|
2318
2318
|
return !mt(e) && e !== ft;
|
|
2319
2319
|
}
|
|
2320
2320
|
function et(e, t) {
|
|
@@ -2326,8 +2326,8 @@ function fr(e) {
|
|
|
2326
2326
|
return t.test(e);
|
|
2327
2327
|
}
|
|
2328
2328
|
var mr = 1, Tt = 2, gr = 3, yr = 4, Ve = 5;
|
|
2329
|
-
function
|
|
2330
|
-
var l, u = 0, p = null, c = !1, y = !1, f = r !== -1, S = -1, T =
|
|
2329
|
+
function qi(e, t, n, r, a, i, o, s) {
|
|
2330
|
+
var l, u = 0, p = null, c = !1, y = !1, f = r !== -1, S = -1, T = Ei(et(e, 0)) && Mi(et(e, e.length - 1));
|
|
2331
2331
|
if (t || o)
|
|
2332
2332
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2333
2333
|
if (u = et(e, l), !at(u))
|
|
@@ -2347,17 +2347,17 @@ function Mi(e, t, n, r, a, i, o, s) {
|
|
|
2347
2347
|
}
|
|
2348
2348
|
return !c && !y ? T && !o && !a(e) ? mr : i === rt ? Ve : Tt : n > 9 && fr(e) ? Ve : o ? i === rt ? Ve : Tt : y ? yr : gr;
|
|
2349
2349
|
}
|
|
2350
|
-
function
|
|
2350
|
+
function Fi(e, t, n, r, a) {
|
|
2351
2351
|
e.dump = function() {
|
|
2352
2352
|
if (t.length === 0)
|
|
2353
2353
|
return e.quotingType === rt ? '""' : "''";
|
|
2354
|
-
if (!e.noCompatMode && (
|
|
2354
|
+
if (!e.noCompatMode && (Ii.indexOf(t) !== -1 || Ai.test(t)))
|
|
2355
2355
|
return e.quotingType === rt ? '"' + t + '"' : "'" + t + "'";
|
|
2356
2356
|
var i = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), s = r || e.flowLevel > -1 && n >= e.flowLevel;
|
|
2357
2357
|
function l(u) {
|
|
2358
|
-
return
|
|
2358
|
+
return Oi(e, u);
|
|
2359
2359
|
}
|
|
2360
|
-
switch (
|
|
2360
|
+
switch (qi(
|
|
2361
2361
|
t,
|
|
2362
2362
|
s,
|
|
2363
2363
|
e.indent,
|
|
@@ -2374,9 +2374,9 @@ function qi(e, t, n, r, a) {
|
|
|
2374
2374
|
case gr:
|
|
2375
2375
|
return "|" + dn(t, e.indent) + pn(ln(t, i));
|
|
2376
2376
|
case yr:
|
|
2377
|
-
return ">" + dn(t, e.indent) + pn(ln(
|
|
2377
|
+
return ">" + dn(t, e.indent) + pn(ln(Ki(t, o), i));
|
|
2378
2378
|
case Ve:
|
|
2379
|
-
return '"' +
|
|
2379
|
+
return '"' + Bi(t) + '"';
|
|
2380
2380
|
default:
|
|
2381
2381
|
throw new fe("impossible error: invalid scalar style");
|
|
2382
2382
|
}
|
|
@@ -2394,7 +2394,7 @@ function pn(e) {
|
|
|
2394
2394
|
return e[e.length - 1] === `
|
|
2395
2395
|
` ? e.slice(0, -1) : e;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Ki(e, t) {
|
|
2398
2398
|
for (var n = /(\n+)([^\n]*)/g, r = function() {
|
|
2399
2399
|
var u = e.indexOf(`
|
|
2400
2400
|
`);
|
|
@@ -2417,30 +2417,30 @@ function fn(e, t) {
|
|
|
2417
2417
|
`, e.length - a > t && o > a ? l += e.slice(a, o) + `
|
|
2418
2418
|
` + e.slice(o + 1) : l += e.slice(a), l.slice(1);
|
|
2419
2419
|
}
|
|
2420
|
-
function
|
|
2420
|
+
function Bi(e) {
|
|
2421
2421
|
for (var t = "", n = 0, r, a = 0; a < e.length; n >= 65536 ? a += 2 : a++)
|
|
2422
|
-
n = et(e, a), r = pe[n], !r && at(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += r ||
|
|
2422
|
+
n = et(e, a), r = pe[n], !r && at(n) ? (t += e[a], n >= 65536 && (t += e[a + 1])) : t += r || Ti(n);
|
|
2423
2423
|
return t;
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function Li(e, t, n) {
|
|
2426
2426
|
var r = "", a = e.tag, i, o, s;
|
|
2427
2427
|
for (i = 0, o = n.length; i < o; i += 1)
|
|
2428
|
-
s = n[i], e.replacer && (s = e.replacer.call(n, String(i), s)), (
|
|
2428
|
+
s = n[i], e.replacer && (s = e.replacer.call(n, String(i), s)), ($e(e, t, s, !1, !1) || typeof s > "u" && $e(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
2429
2429
|
e.tag = a, e.dump = "[" + r + "]";
|
|
2430
2430
|
}
|
|
2431
2431
|
function mn(e, t, n, r) {
|
|
2432
2432
|
var a = "", i = e.tag, o, s, l;
|
|
2433
2433
|
for (o = 0, s = n.length; o < s; o += 1)
|
|
2434
|
-
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (
|
|
2434
|
+
l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), ($e(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && $e(e, t + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += $t(e, t)), e.dump && nt === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
|
|
2435
2435
|
e.tag = i, e.dump = a || "[]";
|
|
2436
2436
|
}
|
|
2437
|
-
function
|
|
2437
|
+
function Ui(e, t, n) {
|
|
2438
2438
|
var r = "", a = e.tag, i = Object.keys(n), o, s, l, u, p;
|
|
2439
2439
|
for (o = 0, s = i.length; o < s; o += 1)
|
|
2440
|
-
p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)),
|
|
2440
|
+
p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), $e(e, t, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), $e(e, t, u, !1, !1) && (p += e.dump, r += p));
|
|
2441
2441
|
e.tag = a, e.dump = "{" + r + "}";
|
|
2442
2442
|
}
|
|
2443
|
-
function
|
|
2443
|
+
function Pi(e, t, n, r) {
|
|
2444
2444
|
var a = "", i = e.tag, o = Object.keys(n), s, l, u, p, c, y;
|
|
2445
2445
|
if (e.sortKeys === !0)
|
|
2446
2446
|
o.sort();
|
|
@@ -2449,7 +2449,7 @@ function Ui(e, t, n, r) {
|
|
|
2449
2449
|
else if (e.sortKeys)
|
|
2450
2450
|
throw new fe("sortKeys must be a boolean or a function");
|
|
2451
2451
|
for (s = 0, l = o.length; s < l; s += 1)
|
|
2452
|
-
y = "", (!r || a !== "") && (y += $t(e, t)), u = o[s], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)),
|
|
2452
|
+
y = "", (!r || a !== "") && (y += $t(e, t)), u = o[s], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)), $e(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && nt === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += $t(e, t)), $e(e, t + 1, p, !0, c) && (e.dump && nt === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
|
|
2453
2453
|
e.tag = i, e.dump = a || "{}";
|
|
2454
2454
|
}
|
|
2455
2455
|
function gn(e, t, n) {
|
|
@@ -2469,7 +2469,7 @@ function gn(e, t, n) {
|
|
|
2469
2469
|
}
|
|
2470
2470
|
return !1;
|
|
2471
2471
|
}
|
|
2472
|
-
function
|
|
2472
|
+
function $e(e, t, n, r, a, i, o) {
|
|
2473
2473
|
e.tag = null, e.dump = n, gn(e, n, !1) || gn(e, n, !0);
|
|
2474
2474
|
var s = ir.call(e.dump), l = r, u;
|
|
2475
2475
|
r && (r = e.flowLevel < 0 || e.flowLevel > t);
|
|
@@ -2478,11 +2478,11 @@ function Te(e, t, n, r, a, i, o) {
|
|
|
2478
2478
|
e.dump = "*ref_" + c;
|
|
2479
2479
|
else {
|
|
2480
2480
|
if (p && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
|
|
2481
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2481
|
+
r && Object.keys(e.dump).length !== 0 ? (Pi(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Ui(e, t, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2482
2482
|
else if (s === "[object Array]")
|
|
2483
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? mn(e, t - 1, e.dump, a) : mn(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (
|
|
2483
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !o && t > 0 ? mn(e, t - 1, e.dump, a) : mn(e, t, e.dump, a), y && (e.dump = "&ref_" + c + e.dump)) : (Li(e, t, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2484
2484
|
else if (s === "[object String]")
|
|
2485
|
-
e.tag !== "?" &&
|
|
2485
|
+
e.tag !== "?" && Fi(e, e.dump, t, i, l);
|
|
2486
2486
|
else {
|
|
2487
2487
|
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2488
2488
|
return !1;
|
|
@@ -2494,7 +2494,7 @@ function Te(e, t, n, r, a, i, o) {
|
|
|
2494
2494
|
}
|
|
2495
2495
|
return !0;
|
|
2496
2496
|
}
|
|
2497
|
-
function
|
|
2497
|
+
function Ri(e, t) {
|
|
2498
2498
|
var n = [], r = [], a, i;
|
|
2499
2499
|
for (Nt(e, n, r), a = 0, i = r.length; a < i; a += 1)
|
|
2500
2500
|
t.duplicates.push(n[r[a]]);
|
|
@@ -2512,23 +2512,23 @@ function Nt(e, t, n) {
|
|
|
2512
2512
|
for (r = Object.keys(e), a = 0, i = r.length; a < i; a += 1)
|
|
2513
2513
|
Nt(e[r[a]], t, n);
|
|
2514
2514
|
}
|
|
2515
|
-
function
|
|
2515
|
+
function Vi(e, t) {
|
|
2516
2516
|
t = t || {};
|
|
2517
|
-
var n = new
|
|
2518
|
-
n.noRefs ||
|
|
2517
|
+
var n = new ji(t);
|
|
2518
|
+
n.noRefs || Ri(e, n);
|
|
2519
2519
|
var r = e;
|
|
2520
|
-
return n.replacer && (r = n.replacer.call({ "": r }, "", r)),
|
|
2520
|
+
return n.replacer && (r = n.replacer.call({ "": r }, "", r)), $e(n, 0, r, !0, !0) ? n.dump + `
|
|
2521
2521
|
` : "";
|
|
2522
2522
|
}
|
|
2523
|
-
var
|
|
2524
|
-
dump:
|
|
2523
|
+
var Di = Vi, zi = {
|
|
2524
|
+
dump: Di
|
|
2525
2525
|
};
|
|
2526
2526
|
function Lt(e, t) {
|
|
2527
2527
|
return function() {
|
|
2528
2528
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
|
|
2529
2529
|
};
|
|
2530
2530
|
}
|
|
2531
|
-
var
|
|
2531
|
+
var Gi = ce, Hi = On, Ji = Fn, Zi = Pn, Wi = Rn, Yi = qt, Qi = or.load, Xi = or.loadAll, es = zi.dump, ts = fe, ns = {
|
|
2532
2532
|
binary: Hn,
|
|
2533
2533
|
float: Un,
|
|
2534
2534
|
map: qn,
|
|
@@ -2542,23 +2542,23 @@ var zi = ce, Gi = On, Hi = Fn, Ji = Pn, Zi = Rn, Wi = qt, Yi = or.load, Qi = or.
|
|
|
2542
2542
|
omap: Jn,
|
|
2543
2543
|
seq: Mn,
|
|
2544
2544
|
str: En
|
|
2545
|
-
},
|
|
2546
|
-
Type:
|
|
2547
|
-
Schema:
|
|
2548
|
-
FAILSAFE_SCHEMA:
|
|
2549
|
-
JSON_SCHEMA:
|
|
2550
|
-
CORE_SCHEMA:
|
|
2551
|
-
DEFAULT_SCHEMA:
|
|
2552
|
-
load:
|
|
2553
|
-
loadAll:
|
|
2554
|
-
dump:
|
|
2555
|
-
YAMLException:
|
|
2556
|
-
types:
|
|
2557
|
-
safeLoad:
|
|
2558
|
-
safeLoadAll:
|
|
2559
|
-
safeDump:
|
|
2545
|
+
}, rs = Lt("safeLoad", "load"), as = Lt("safeLoadAll", "loadAll"), os = Lt("safeDump", "dump"), is = {
|
|
2546
|
+
Type: Gi,
|
|
2547
|
+
Schema: Hi,
|
|
2548
|
+
FAILSAFE_SCHEMA: Ji,
|
|
2549
|
+
JSON_SCHEMA: Zi,
|
|
2550
|
+
CORE_SCHEMA: Wi,
|
|
2551
|
+
DEFAULT_SCHEMA: Yi,
|
|
2552
|
+
load: Qi,
|
|
2553
|
+
loadAll: Xi,
|
|
2554
|
+
dump: es,
|
|
2555
|
+
YAMLException: ts,
|
|
2556
|
+
types: ns,
|
|
2557
|
+
safeLoad: rs,
|
|
2558
|
+
safeLoadAll: as,
|
|
2559
|
+
safeDump: os
|
|
2560
2560
|
};
|
|
2561
|
-
const
|
|
2561
|
+
const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
2562
2562
|
__name: "YamlCodeBlock",
|
|
2563
2563
|
props: {
|
|
2564
2564
|
/** A record to indicate the entity's configuration, used to populate the YAML code block */
|
|
@@ -2570,11 +2570,11 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2570
2570
|
setup(e) {
|
|
2571
2571
|
const t = e, n = w(() => {
|
|
2572
2572
|
const r = Object.fromEntries(Object.entries(t.yamlRecord).filter(([, a]) => a !== null && a !== "" && (Array.isArray(a) ? a.length !== 0 : !0)));
|
|
2573
|
-
return Object.keys(r).length === 0 && r.constructor === Object ? "" :
|
|
2573
|
+
return Object.keys(r).length === 0 && r.constructor === Object ? "" : is.dump(r).trim();
|
|
2574
2574
|
});
|
|
2575
2575
|
return (r, a) => {
|
|
2576
2576
|
const i = R("KCodeBlock");
|
|
2577
|
-
return m(), $("div",
|
|
2577
|
+
return m(), $("div", ss, [
|
|
2578
2578
|
t.yamlRecord ? (m(), D(i, {
|
|
2579
2579
|
key: 0,
|
|
2580
2580
|
id: "yaml-codeblock",
|
|
@@ -2585,13 +2585,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2585
2585
|
]);
|
|
2586
2586
|
};
|
|
2587
2587
|
}
|
|
2588
|
-
}),
|
|
2588
|
+
}), ls = {
|
|
2589
2589
|
key: 0,
|
|
2590
2590
|
class: "config-card-display-form"
|
|
2591
|
-
},
|
|
2591
|
+
}, us = ["data-testid"], cs = {
|
|
2592
2592
|
key: 0,
|
|
2593
2593
|
class: "config-card-prop-section-title"
|
|
2594
|
-
},
|
|
2594
|
+
}, ds = /* @__PURE__ */ X({
|
|
2595
2595
|
__name: "ConfigCardDisplay",
|
|
2596
2596
|
props: {
|
|
2597
2597
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2637,13 +2637,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2637
2637
|
return delete o.created_at, delete o.updated_at, o;
|
|
2638
2638
|
});
|
|
2639
2639
|
return (o, s) => (m(), $(be, null, [
|
|
2640
|
-
e.format === "structured" ? (m(), $("div",
|
|
2640
|
+
e.format === "structured" ? (m(), $("div", ls, [
|
|
2641
2641
|
(m(!0), $(be, null, ve(e.propListTypes, (l) => (m(), $("div", {
|
|
2642
2642
|
key: `config-card-details-${l}-props`,
|
|
2643
2643
|
class: Me(`config-card-details-${l}-props`),
|
|
2644
2644
|
"data-testid": `config-card-details-${l}-props`
|
|
2645
2645
|
}, [
|
|
2646
|
-
l !== "basic" ? (m(), $("div",
|
|
2646
|
+
l !== "basic" ? (m(), $("div", cs, K(l === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
|
|
2647
2647
|
(m(!0), $(be, null, ve(e.propertyCollections[l], (u) => (m(), D($n, {
|
|
2648
2648
|
key: u.key,
|
|
2649
2649
|
item: u
|
|
@@ -2667,7 +2667,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2667
2667
|
key: "0"
|
|
2668
2668
|
} : void 0
|
|
2669
2669
|
]), 1032, ["item"]))), 128))
|
|
2670
|
-
], 10,
|
|
2670
|
+
], 10, us))), 128))
|
|
2671
2671
|
])) : J("", !0),
|
|
2672
2672
|
e.format === "json" && t.record ? (m(), D(Tn, {
|
|
2673
2673
|
key: 1,
|
|
@@ -2682,18 +2682,18 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2682
2682
|
}, null, 8, ["yaml-record"])) : J("", !0)
|
|
2683
2683
|
], 64));
|
|
2684
2684
|
}
|
|
2685
|
-
}),
|
|
2685
|
+
}), ps = /* @__PURE__ */ Ce(ds, [["__scopeId", "data-v-147a2f70"]]), Se = "24px", ot = (e, t) => {
|
|
2686
2686
|
const n = e.__vccOpts || e;
|
|
2687
2687
|
for (const [r, a] of t)
|
|
2688
2688
|
n[r] = a;
|
|
2689
2689
|
return n;
|
|
2690
|
-
},
|
|
2690
|
+
}, fs = (e) => (Je("data-v-1d2a8d30"), e = e(), Ze(), e), ms = ["aria-hidden"], gs = {
|
|
2691
2691
|
key: 0,
|
|
2692
2692
|
"data-testid": "kui-icon-svg-title"
|
|
2693
|
-
},
|
|
2693
|
+
}, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ L("path", {
|
|
2694
2694
|
d: "M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",
|
|
2695
2695
|
fill: "currentColor"
|
|
2696
|
-
}, null, -1)),
|
|
2696
|
+
}, null, -1)), hs = /* @__PURE__ */ X({
|
|
2697
2697
|
__name: "AddIcon",
|
|
2698
2698
|
props: {
|
|
2699
2699
|
/** The accessibility text provided to screen readers */
|
|
@@ -2762,7 +2762,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2762
2762
|
lineHeight: "0",
|
|
2763
2763
|
width: n.value
|
|
2764
2764
|
}));
|
|
2765
|
-
return (a, i) => (m(), D(
|
|
2765
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
2766
2766
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2767
2767
|
class: "kui-icon add-icon",
|
|
2768
2768
|
"data-testid": "kui-icon-wrapper-add-icon",
|
|
@@ -2779,20 +2779,20 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2779
2779
|
width: "100%",
|
|
2780
2780
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2781
2781
|
}, [
|
|
2782
|
-
e.title ? (m(), $("title",
|
|
2783
|
-
|
|
2784
|
-
], 8,
|
|
2782
|
+
e.title ? (m(), $("title", gs, K(e.title), 1)) : J("", !0),
|
|
2783
|
+
ys
|
|
2784
|
+
], 8, ms))
|
|
2785
2785
|
]),
|
|
2786
2786
|
_: 1
|
|
2787
2787
|
}, 8, ["aria-hidden", "style"]));
|
|
2788
2788
|
}
|
|
2789
|
-
}),
|
|
2789
|
+
}), vs = /* @__PURE__ */ ot(hs, [["__scopeId", "data-v-1d2a8d30"]]), bs = (e) => (Je("data-v-929b4762"), e = e(), Ze(), e), Cs = ["aria-hidden"], ks = {
|
|
2790
2790
|
key: 0,
|
|
2791
2791
|
"data-testid": "kui-icon-svg-title"
|
|
2792
|
-
},
|
|
2792
|
+
}, ws = /* @__PURE__ */ bs(() => /* @__PURE__ */ L("path", {
|
|
2793
2793
|
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",
|
|
2794
2794
|
fill: "currentColor"
|
|
2795
|
-
}, null, -1)),
|
|
2795
|
+
}, null, -1)), _s = /* @__PURE__ */ X({
|
|
2796
2796
|
__name: "BookIcon",
|
|
2797
2797
|
props: {
|
|
2798
2798
|
/** The accessibility text provided to screen readers */
|
|
@@ -2861,7 +2861,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2861
2861
|
lineHeight: "0",
|
|
2862
2862
|
width: n.value
|
|
2863
2863
|
}));
|
|
2864
|
-
return (a, i) => (m(), D(
|
|
2864
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
2865
2865
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2866
2866
|
class: "kui-icon book-icon",
|
|
2867
2867
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
@@ -2878,20 +2878,20 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2878
2878
|
width: "100%",
|
|
2879
2879
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2880
2880
|
}, [
|
|
2881
|
-
e.title ? (m(), $("title",
|
|
2882
|
-
|
|
2883
|
-
], 8,
|
|
2881
|
+
e.title ? (m(), $("title", ks, K(e.title), 1)) : J("", !0),
|
|
2882
|
+
ws
|
|
2883
|
+
], 8, Cs))
|
|
2884
2884
|
]),
|
|
2885
2885
|
_: 1
|
|
2886
2886
|
}, 8, ["aria-hidden", "style"]));
|
|
2887
2887
|
}
|
|
2888
|
-
}),
|
|
2888
|
+
}), Ss = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-929b4762"]]), xs = (e) => (Je("data-v-219f8484"), e = e(), Ze(), e), Is = ["aria-hidden"], As = {
|
|
2889
2889
|
key: 0,
|
|
2890
2890
|
"data-testid": "kui-icon-svg-title"
|
|
2891
|
-
},
|
|
2891
|
+
}, $s = /* @__PURE__ */ xs(() => /* @__PURE__ */ L("path", {
|
|
2892
2892
|
d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
|
|
2893
2893
|
fill: "currentColor"
|
|
2894
|
-
}, null, -1)),
|
|
2894
|
+
}, null, -1)), Ts = /* @__PURE__ */ X({
|
|
2895
2895
|
__name: "ChevronDownIcon",
|
|
2896
2896
|
props: {
|
|
2897
2897
|
/** The accessibility text provided to screen readers */
|
|
@@ -2960,7 +2960,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2960
2960
|
lineHeight: "0",
|
|
2961
2961
|
width: n.value
|
|
2962
2962
|
}));
|
|
2963
|
-
return (a, i) => (m(), D(
|
|
2963
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
2964
2964
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2965
2965
|
class: "kui-icon chevron-down-icon",
|
|
2966
2966
|
"data-testid": "kui-icon-wrapper-chevron-down-icon",
|
|
@@ -2978,19 +2978,19 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
2978
2978
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2979
2979
|
}, [
|
|
2980
2980
|
e.title ? (m(), $("title", As, K(e.title), 1)) : J("", !0),
|
|
2981
|
-
|
|
2982
|
-
], 8,
|
|
2981
|
+
$s
|
|
2982
|
+
], 8, Is))
|
|
2983
2983
|
]),
|
|
2984
2984
|
_: 1
|
|
2985
2985
|
}, 8, ["aria-hidden", "style"]));
|
|
2986
2986
|
}
|
|
2987
|
-
}),
|
|
2987
|
+
}), Ns = /* @__PURE__ */ ot(Ts, [["__scopeId", "data-v-219f8484"]]), js = (e) => (Je("data-v-ed11facd"), e = e(), Ze(), e), Os = ["aria-hidden"], Es = {
|
|
2988
2988
|
key: 0,
|
|
2989
2989
|
"data-testid": "kui-icon-svg-title"
|
|
2990
|
-
},
|
|
2990
|
+
}, Ms = /* @__PURE__ */ js(() => /* @__PURE__ */ L("path", {
|
|
2991
2991
|
d: "M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",
|
|
2992
2992
|
fill: "currentColor"
|
|
2993
|
-
}, null, -1)),
|
|
2993
|
+
}, null, -1)), qs = /* @__PURE__ */ X({
|
|
2994
2994
|
__name: "CloseIcon",
|
|
2995
2995
|
props: {
|
|
2996
2996
|
/** The accessibility text provided to screen readers */
|
|
@@ -3059,7 +3059,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3059
3059
|
lineHeight: "0",
|
|
3060
3060
|
width: n.value
|
|
3061
3061
|
}));
|
|
3062
|
-
return (a, i) => (m(), D(
|
|
3062
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
3063
3063
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3064
3064
|
class: "kui-icon close-icon",
|
|
3065
3065
|
"data-testid": "kui-icon-wrapper-close-icon",
|
|
@@ -3076,20 +3076,20 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3076
3076
|
width: "100%",
|
|
3077
3077
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3078
3078
|
}, [
|
|
3079
|
-
e.title ? (m(), $("title",
|
|
3080
|
-
|
|
3081
|
-
], 8,
|
|
3079
|
+
e.title ? (m(), $("title", Es, K(e.title), 1)) : J("", !0),
|
|
3080
|
+
Ms
|
|
3081
|
+
], 8, Os))
|
|
3082
3082
|
]),
|
|
3083
3083
|
_: 1
|
|
3084
3084
|
}, 8, ["aria-hidden", "style"]));
|
|
3085
3085
|
}
|
|
3086
|
-
}),
|
|
3086
|
+
}), Fs = /* @__PURE__ */ ot(qs, [["__scopeId", "data-v-ed11facd"]]), Ks = (e) => (Je("data-v-cf4e7d0b"), e = e(), Ze(), e), Bs = ["aria-hidden"], Ls = {
|
|
3087
3087
|
key: 0,
|
|
3088
3088
|
"data-testid": "kui-icon-svg-title"
|
|
3089
|
-
},
|
|
3089
|
+
}, Us = /* @__PURE__ */ Ks(() => /* @__PURE__ */ L("path", {
|
|
3090
3090
|
d: "M12 20C11.45 20 10.9792 19.8042 10.5875 19.4125C10.1958 19.0208 10 18.55 10 18C10 17.45 10.1958 16.9792 10.5875 16.5875C10.9792 16.1958 11.45 16 12 16C12.55 16 13.0208 16.1958 13.4125 16.5875C13.8042 16.9792 14 17.45 14 18C14 18.55 13.8042 19.0208 13.4125 19.4125C13.0208 19.8042 12.55 20 12 20ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM12 8C11.45 8 10.9792 7.80417 10.5875 7.4125C10.1958 7.02083 10 6.55 10 6C10 5.45 10.1958 4.97917 10.5875 4.5875C10.9792 4.19583 11.45 4 12 4C12.55 4 13.0208 4.19583 13.4125 4.5875C13.8042 4.97917 14 5.45 14 6C14 6.55 13.8042 7.02083 13.4125 7.4125C13.0208 7.80417 12.55 8 12 8Z",
|
|
3091
3091
|
fill: "currentColor"
|
|
3092
|
-
}, null, -1)),
|
|
3092
|
+
}, null, -1)), Ps = /* @__PURE__ */ X({
|
|
3093
3093
|
__name: "MoreIcon",
|
|
3094
3094
|
props: {
|
|
3095
3095
|
/** The accessibility text provided to screen readers */
|
|
@@ -3158,7 +3158,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3158
3158
|
lineHeight: "0",
|
|
3159
3159
|
width: n.value
|
|
3160
3160
|
}));
|
|
3161
|
-
return (a, i) => (m(), D(
|
|
3161
|
+
return (a, i) => (m(), D(Te(e.as), {
|
|
3162
3162
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
3163
3163
|
class: "kui-icon more-icon",
|
|
3164
3164
|
"data-testid": "kui-icon-wrapper-more-icon",
|
|
@@ -3175,17 +3175,17 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3175
3175
|
width: "100%",
|
|
3176
3176
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3177
3177
|
}, [
|
|
3178
|
-
e.title ? (m(), $("title",
|
|
3179
|
-
|
|
3180
|
-
], 8,
|
|
3178
|
+
e.title ? (m(), $("title", Ls, K(e.title), 1)) : J("", !0),
|
|
3179
|
+
Us
|
|
3180
|
+
], 8, Bs))
|
|
3181
3181
|
]),
|
|
3182
3182
|
_: 1
|
|
3183
3183
|
}, 8, ["aria-hidden", "style"]));
|
|
3184
3184
|
}
|
|
3185
|
-
}),
|
|
3185
|
+
}), Rs = /* @__PURE__ */ ot(Ps, [["__scopeId", "data-v-cf4e7d0b"]]), Vs = {
|
|
3186
3186
|
class: "config-card-title",
|
|
3187
3187
|
"data-testid": "config-card-title"
|
|
3188
|
-
},
|
|
3188
|
+
}, Ds = { class: "config-card-actions" }, zs = ["href"], Gs = { class: "config-card-details-section" }, Hs = /* @__PURE__ */ X({
|
|
3189
3189
|
__name: "EntityBaseConfigCard",
|
|
3190
3190
|
props: {
|
|
3191
3191
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3315,12 +3315,12 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3315
3315
|
section: he.Basic
|
|
3316
3316
|
}
|
|
3317
3317
|
}, f = M(!1), S = M(!1), T = M(""), k = M({}), U = w(() => {
|
|
3318
|
-
var d,
|
|
3318
|
+
var d, I, B;
|
|
3319
3319
|
if (!k.value)
|
|
3320
3320
|
return [];
|
|
3321
3321
|
const x = [], G = Object.keys(k.value).length;
|
|
3322
3322
|
for (const q in k.value) {
|
|
3323
|
-
const b = (
|
|
3323
|
+
const b = (I = (d = a.configSchema) == null ? void 0 : d[q]) == null ? void 0 : I.order, E = (B = y[q]) == null ? void 0 : B.order;
|
|
3324
3324
|
let F = G;
|
|
3325
3325
|
(E || E === 0) && (F = E === -1 ? G + 1 : E), b && (F = b === -1 ? G + 1 : b), x.push([q, F]);
|
|
3326
3326
|
}
|
|
@@ -3340,12 +3340,12 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3340
3340
|
};
|
|
3341
3341
|
}).filter((q) => !q.hidden && q.key !== a.pluginConfigKey);
|
|
3342
3342
|
}), N = w(() => {
|
|
3343
|
-
var d,
|
|
3343
|
+
var d, I;
|
|
3344
3344
|
if (!k.value || !a.pluginConfigKey)
|
|
3345
3345
|
return [];
|
|
3346
3346
|
const B = k.value[a.pluginConfigKey] || {}, x = Object.keys(B).length, G = [];
|
|
3347
3347
|
for (const q in B) {
|
|
3348
|
-
const b = (
|
|
3348
|
+
const b = (I = (d = a.pluginConfigSchema) == null ? void 0 : d[q]) == null ? void 0 : I.order, E = B[q];
|
|
3349
3349
|
let F = E != null && E !== "" ? x - 1 : x;
|
|
3350
3350
|
b && (F = b === -1 ? x + 1 : b), G.push([q, F]);
|
|
3351
3351
|
}
|
|
@@ -3365,21 +3365,21 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3365
3365
|
};
|
|
3366
3366
|
}).filter((q) => !q.hidden);
|
|
3367
3367
|
}), Z = w(() => {
|
|
3368
|
-
var d,
|
|
3368
|
+
var d, I, B, x;
|
|
3369
3369
|
return {
|
|
3370
3370
|
basic: (d = U.value) == null ? void 0 : d.filter((G) => G.section === he.Basic),
|
|
3371
|
-
advanced: (
|
|
3371
|
+
advanced: (I = U.value) == null ? void 0 : I.filter((G) => G.section === he.Advanced),
|
|
3372
3372
|
plugin: (x = N.value) == null ? void 0 : x.concat((B = U.value) == null ? void 0 : B.filter((G) => G.section === he.Plugin))
|
|
3373
3373
|
};
|
|
3374
3374
|
}), h = w(() => {
|
|
3375
3375
|
const d = [];
|
|
3376
3376
|
return Z.value.basic.length && d.push("basic"), Z.value.advanced.length && d.push("advanced"), Z.value.plugin.length && d.push("plugin"), d;
|
|
3377
3377
|
}), _ = w(() => {
|
|
3378
|
-
var d,
|
|
3378
|
+
var d, I;
|
|
3379
3379
|
let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3380
|
-
return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (
|
|
3380
|
+
return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (I = a.config) != null && I.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
|
|
3381
3381
|
});
|
|
3382
|
-
return
|
|
3382
|
+
return Ae(f, (d) => {
|
|
3383
3383
|
r("loading", d);
|
|
3384
3384
|
}, { immediate: !0 }), gt(async () => {
|
|
3385
3385
|
S.value = !1, f.value = !0;
|
|
@@ -3392,23 +3392,23 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3392
3392
|
throw new Error(i("errors.dataKeyUndefined", { dataKey: a.dataKey }));
|
|
3393
3393
|
else
|
|
3394
3394
|
k.value = { ...d };
|
|
3395
|
-
Object.keys(a.configSchema).filter((
|
|
3396
|
-
k.value && typeof k.value[
|
|
3395
|
+
Object.keys(a.configSchema).filter((I) => a.configSchema[I].forceShow).forEach((I) => {
|
|
3396
|
+
k.value && typeof k.value[I] > "u" && (k.value[I] = null);
|
|
3397
3397
|
}), r("fetch:success", d);
|
|
3398
3398
|
} catch (d) {
|
|
3399
|
-
const
|
|
3400
|
-
T.value =
|
|
3399
|
+
const I = o(d);
|
|
3400
|
+
T.value = I.startsWith("code") ? i("baseConfigCard.errors.load") : I, S.value = !0, r("fetch:error", d);
|
|
3401
3401
|
} finally {
|
|
3402
3402
|
f.value = !1;
|
|
3403
3403
|
}
|
|
3404
|
-
}), (d,
|
|
3404
|
+
}), (d, I) => {
|
|
3405
3405
|
const B = R("KLabel"), x = R("KSelect"), G = R("KButton"), q = R("KSkeleton"), b = R("KEmptyState"), E = R("KCard");
|
|
3406
3406
|
return m(), D(E, {
|
|
3407
3407
|
class: "kong-ui-entity-base-config-card",
|
|
3408
3408
|
"title-tag": e.titleTag
|
|
3409
3409
|
}, Be({
|
|
3410
3410
|
actions: v(() => [
|
|
3411
|
-
L("div",
|
|
3411
|
+
L("div", Ds, [
|
|
3412
3412
|
ne(d.$slots, "actions", {}, void 0, !0),
|
|
3413
3413
|
j(B, {
|
|
3414
3414
|
class: "config-format-select-label",
|
|
@@ -3436,8 +3436,8 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3436
3436
|
rel: "noopener",
|
|
3437
3437
|
target: "_blank"
|
|
3438
3438
|
}, [
|
|
3439
|
-
j(g(
|
|
3440
|
-
], 8,
|
|
3439
|
+
j(g(Ss), { size: g(xa) }, null, 8, ["size"])
|
|
3440
|
+
], 8, zs)
|
|
3441
3441
|
]),
|
|
3442
3442
|
_: 1
|
|
3443
3443
|
})) : J("", !0)
|
|
@@ -3459,8 +3459,8 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3459
3459
|
]),
|
|
3460
3460
|
_: 1
|
|
3461
3461
|
})) : J("", !0),
|
|
3462
|
-
L("div",
|
|
3463
|
-
j(
|
|
3462
|
+
L("div", Gs, [
|
|
3463
|
+
j(ps, {
|
|
3464
3464
|
config: e.config,
|
|
3465
3465
|
"fetcher-url": _.value,
|
|
3466
3466
|
format: p.value,
|
|
@@ -3485,7 +3485,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3485
3485
|
e.hideTitle ? void 0 : {
|
|
3486
3486
|
name: "title",
|
|
3487
3487
|
fn: v(() => [
|
|
3488
|
-
L("span",
|
|
3488
|
+
L("span", Vs, [
|
|
3489
3489
|
ne(d.$slots, "title", {}, () => [
|
|
3490
3490
|
Y(K(g(i)("baseConfigCard.title")), 1)
|
|
3491
3491
|
], !0)
|
|
@@ -3496,10 +3496,10 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3496
3496
|
]), 1032, ["title-tag"]);
|
|
3497
3497
|
};
|
|
3498
3498
|
}
|
|
3499
|
-
}),
|
|
3499
|
+
}), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-f40a683b"]]), Zs = ["novalidate"], Ws = {
|
|
3500
3500
|
class: "form-actions",
|
|
3501
3501
|
"data-testid": "form-actions"
|
|
3502
|
-
},
|
|
3502
|
+
}, Ys = /* @__PURE__ */ X({
|
|
3503
3503
|
__name: "EntityBaseForm",
|
|
3504
3504
|
props: {
|
|
3505
3505
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3583,7 +3583,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3583
3583
|
hash: "#json"
|
|
3584
3584
|
}
|
|
3585
3585
|
]);
|
|
3586
|
-
return
|
|
3586
|
+
return Ae(() => u.value, (h) => {
|
|
3587
3587
|
r("loading", h);
|
|
3588
3588
|
}, { immediate: !0 }), gt(async () => {
|
|
3589
3589
|
if (a.editId)
|
|
@@ -3598,13 +3598,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3598
3598
|
u.value = !1;
|
|
3599
3599
|
}
|
|
3600
3600
|
}), (h, _) => {
|
|
3601
|
-
const d = R("KSkeleton"),
|
|
3601
|
+
const d = R("KSkeleton"), I = R("KEmptyState"), B = R("KAlert"), x = R("KButton"), G = R("KTabs"), q = R("KSlideout"), b = R("KCard");
|
|
3602
3602
|
return m(), D(b, { class: "kong-ui-entity-base-form" }, {
|
|
3603
3603
|
default: v(() => [
|
|
3604
3604
|
u.value ? (m(), D(d, {
|
|
3605
3605
|
key: 0,
|
|
3606
3606
|
type: "form"
|
|
3607
|
-
})) : p.value ? (m(), D(
|
|
3607
|
+
})) : p.value ? (m(), D(I, {
|
|
3608
3608
|
key: 1,
|
|
3609
3609
|
"action-button-text": g(o)("baseForm.actions.back"),
|
|
3610
3610
|
"data-testid": "form-fetch-error",
|
|
@@ -3629,7 +3629,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3629
3629
|
"data-testid": "form-error",
|
|
3630
3630
|
message: e.errorMessage
|
|
3631
3631
|
}, null, 8, ["message"])) : J("", !0),
|
|
3632
|
-
L("div",
|
|
3632
|
+
L("div", Ws, [
|
|
3633
3633
|
ne(h.$slots, "form-actions", {}, () => [
|
|
3634
3634
|
j(x, {
|
|
3635
3635
|
appearance: "tertiary",
|
|
@@ -3665,7 +3665,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3665
3665
|
}, 8, ["disabled"])
|
|
3666
3666
|
], !0)
|
|
3667
3667
|
])
|
|
3668
|
-
], 40,
|
|
3668
|
+
], 40, Zs)),
|
|
3669
3669
|
j(q, {
|
|
3670
3670
|
"close-on-blur": !1,
|
|
3671
3671
|
"data-testid": "form-view-configuration-slideout",
|
|
@@ -3704,7 +3704,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3704
3704
|
});
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
|
-
}),
|
|
3707
|
+
}), Qs = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-3def74fe"]]), Xs = ["data-truncate"], el = /* @__PURE__ */ X({
|
|
3708
3708
|
__name: "EntityBaseTableCell",
|
|
3709
3709
|
props: {
|
|
3710
3710
|
keyName: {
|
|
@@ -3743,7 +3743,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3743
3743
|
Z -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
|
|
3744
3744
|
}
|
|
3745
3745
|
p.value = ((U = r.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, c.value = Z, y.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
|
|
3746
|
-
}, u = M({}), p = M(0), c = M(0), y = M(""), f = w(() => [r.value, n.value]), S =
|
|
3746
|
+
}, u = M({}), p = M(0), c = M(0), y = M(""), f = w(() => [r.value, n.value]), S = Ae(
|
|
3747
3747
|
f,
|
|
3748
3748
|
(k) => {
|
|
3749
3749
|
if (i.value && (s(), "ResizeObserver" in window && window)) {
|
|
@@ -3783,14 +3783,14 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3783
3783
|
]),
|
|
3784
3784
|
_: 3
|
|
3785
3785
|
}, 8, ["text"])
|
|
3786
|
-
], 8,
|
|
3786
|
+
], 8, Xs)) : ne(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3787
3787
|
], 512);
|
|
3788
3788
|
};
|
|
3789
3789
|
}
|
|
3790
|
-
}),
|
|
3790
|
+
}), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-471ce76e"]]), nl = { class: "toolbar-container" }, rl = {
|
|
3791
3791
|
key: 0,
|
|
3792
3792
|
class: "toolbar-button-container"
|
|
3793
|
-
},
|
|
3793
|
+
}, al = ["data-testid"], ol = /* @__PURE__ */ X({
|
|
3794
3794
|
__name: "EntityBaseTable",
|
|
3795
3795
|
props: {
|
|
3796
3796
|
// table header configuration
|
|
@@ -3909,7 +3909,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3909
3909
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3910
3910
|
setup(e, { emit: t }) {
|
|
3911
3911
|
const n = e, r = t, { i18n: { t: a } } = se.useI18n(), i = w(() => {
|
|
3912
|
-
var d,
|
|
3912
|
+
var d, I;
|
|
3913
3913
|
return typeof n.errorMessage == "string" ? {
|
|
3914
3914
|
hasError: !!n.errorMessage,
|
|
3915
3915
|
title: n.errorMessage,
|
|
@@ -3917,15 +3917,15 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3917
3917
|
} : {
|
|
3918
3918
|
hasError: !!n.errorMessage,
|
|
3919
3919
|
title: (d = n.errorMessage) == null ? void 0 : d.title,
|
|
3920
|
-
message: (
|
|
3920
|
+
message: (I = n.errorMessage) == null ? void 0 : I.message
|
|
3921
3921
|
};
|
|
3922
3922
|
}), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), s = (d) => d.hasData || !!n.query, l = w(() => {
|
|
3923
3923
|
const d = [];
|
|
3924
|
-
return Object.keys(n.tableHeaders).forEach((
|
|
3925
|
-
const B = n.tableHeaders[
|
|
3924
|
+
return Object.keys(n.tableHeaders).forEach((I) => {
|
|
3925
|
+
const B = n.tableHeaders[I];
|
|
3926
3926
|
d.push({
|
|
3927
|
-
label: B.label ??
|
|
3928
|
-
key:
|
|
3927
|
+
label: B.label ?? I,
|
|
3928
|
+
key: I,
|
|
3929
3929
|
sortable: B.sortable ?? !1,
|
|
3930
3930
|
hidable: !0
|
|
3931
3931
|
});
|
|
@@ -3938,27 +3938,27 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3938
3938
|
"data-testid": d.name,
|
|
3939
3939
|
...n.rowAttributes(d)
|
|
3940
3940
|
}), p = M({}), c = (d) => {
|
|
3941
|
-
var
|
|
3942
|
-
return (
|
|
3941
|
+
var I;
|
|
3942
|
+
return (I = p.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${d.id}"]`);
|
|
3943
3943
|
}, y = (d) => {
|
|
3944
|
-
const
|
|
3944
|
+
const I = {
|
|
3945
3945
|
"data-testid": d.headerKey,
|
|
3946
3946
|
...n.cellAttributes(d)
|
|
3947
3947
|
};
|
|
3948
|
-
return d.colIndex === 0 && (
|
|
3948
|
+
return d.colIndex === 0 && (I.style = {
|
|
3949
3949
|
maxWidth: "250px",
|
|
3950
3950
|
overflowX: "hidden",
|
|
3951
3951
|
textOverflow: "ellipsis"
|
|
3952
|
-
}),
|
|
3952
|
+
}), I;
|
|
3953
3953
|
}, f = () => {
|
|
3954
3954
|
r("empty-state-cta-clicked"), S();
|
|
3955
3955
|
}, S = () => {
|
|
3956
3956
|
r("clear-search-input");
|
|
3957
|
-
}, T = w(() => n.disableRowClick ? void 0 : (d,
|
|
3958
|
-
r("click:row",
|
|
3957
|
+
}, T = w(() => n.disableRowClick ? void 0 : (d, I) => {
|
|
3958
|
+
r("click:row", I);
|
|
3959
3959
|
}), k = (d) => {
|
|
3960
3960
|
r("sort", d);
|
|
3961
|
-
}, { setTablePreferences: U, getTablePreferences: N } =
|
|
3961
|
+
}, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = M(N(o.value)), h = w(() => {
|
|
3962
3962
|
const d = N(o.value);
|
|
3963
3963
|
return {
|
|
3964
3964
|
...n.initialFetcherParams,
|
|
@@ -3967,7 +3967,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
3967
3967
|
}), _ = (d) => {
|
|
3968
3968
|
Z.value = d, o.value && U(o.value, d);
|
|
3969
3969
|
};
|
|
3970
|
-
return (d,
|
|
3970
|
+
return (d, I) => {
|
|
3971
3971
|
const B = R("KButton"), x = R("KDropdown"), G = R("KTable"), q = R("KCard");
|
|
3972
3972
|
return m(), D(q, {
|
|
3973
3973
|
class: "kong-ui-entity-base-table",
|
|
@@ -4005,13 +4005,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4005
4005
|
"table-preferences": Z.value,
|
|
4006
4006
|
onEmptyStateActionClick: f,
|
|
4007
4007
|
"onRow:click": T.value,
|
|
4008
|
-
onSort:
|
|
4008
|
+
onSort: I[0] || (I[0] = (b) => k(b)),
|
|
4009
4009
|
"onUpdate:tablePreferences": _
|
|
4010
4010
|
}, Be({
|
|
4011
4011
|
toolbar: v(({ state: b }) => [
|
|
4012
|
-
Ne(L("div",
|
|
4012
|
+
Ne(L("div", nl, [
|
|
4013
4013
|
ne(d.$slots, "toolbar-filter", {}, void 0, !0),
|
|
4014
|
-
d.$slots["toolbar-button"] ? (m(), $("div",
|
|
4014
|
+
d.$slots["toolbar-button"] ? (m(), $("div", rl, [
|
|
4015
4015
|
ne(d.$slots, "toolbar-button", {}, void 0, !0)
|
|
4016
4016
|
])) : J("", !0)
|
|
4017
4017
|
], 512), [
|
|
@@ -4043,21 +4043,21 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4043
4043
|
size: "small"
|
|
4044
4044
|
}, {
|
|
4045
4045
|
default: v(() => [
|
|
4046
|
-
j(g(
|
|
4046
|
+
j(g(Rs))
|
|
4047
4047
|
]),
|
|
4048
4048
|
_: 1
|
|
4049
4049
|
})
|
|
4050
4050
|
]),
|
|
4051
4051
|
_: 2
|
|
4052
4052
|
}, 1032, ["width"])
|
|
4053
|
-
], 8,
|
|
4053
|
+
], 8, al)
|
|
4054
4054
|
]),
|
|
4055
4055
|
_: 2
|
|
4056
4056
|
}, [
|
|
4057
4057
|
ve(e.tableHeaders, (b, E) => ({
|
|
4058
4058
|
name: E,
|
|
4059
4059
|
fn: v(({ row: F, rowKey: H, rowValue: te }) => [
|
|
4060
|
-
j(
|
|
4060
|
+
j(tl, {
|
|
4061
4061
|
"key-name": String(E),
|
|
4062
4062
|
"row-el": c(F),
|
|
4063
4063
|
tooltip: b.tooltip
|
|
@@ -4078,7 +4078,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4078
4078
|
e.query ? void 0 : {
|
|
4079
4079
|
name: "empty-state-action-icon",
|
|
4080
4080
|
fn: v(() => [
|
|
4081
|
-
j(g(
|
|
4081
|
+
j(g(vs))
|
|
4082
4082
|
]),
|
|
4083
4083
|
key: "0"
|
|
4084
4084
|
}
|
|
@@ -4088,13 +4088,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4088
4088
|
}, 8, ["title", "title-tag"]);
|
|
4089
4089
|
};
|
|
4090
4090
|
}
|
|
4091
|
-
}),
|
|
4091
|
+
}), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-0496d9a7"]]), sl = {
|
|
4092
4092
|
key: 0,
|
|
4093
4093
|
class: "kong-ui-entity-delete-error"
|
|
4094
|
-
},
|
|
4094
|
+
}, ll = {
|
|
4095
4095
|
key: 1,
|
|
4096
4096
|
class: "description"
|
|
4097
|
-
},
|
|
4097
|
+
}, ul = /* @__PURE__ */ X({
|
|
4098
4098
|
__name: "EntityDeleteModal",
|
|
4099
4099
|
props: {
|
|
4100
4100
|
visible: {
|
|
@@ -4152,7 +4152,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4152
4152
|
onProceed: s
|
|
4153
4153
|
}, {
|
|
4154
4154
|
default: v(() => [
|
|
4155
|
-
e.error ? (m(), $("div",
|
|
4155
|
+
e.error ? (m(), $("div", sl, [
|
|
4156
4156
|
j(p, { appearance: "danger" }, {
|
|
4157
4157
|
default: v(() => [
|
|
4158
4158
|
Y(K(e.error), 1)
|
|
@@ -4178,7 +4178,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4178
4178
|
key: "0"
|
|
4179
4179
|
} : void 0
|
|
4180
4180
|
]), 1032, ["keypath"]),
|
|
4181
|
-
r.description || l.$slots.description ? (m(), $("div",
|
|
4181
|
+
r.description || l.$slots.description ? (m(), $("div", ll, [
|
|
4182
4182
|
ne(l.$slots, "description", {}, () => [
|
|
4183
4183
|
L("p", null, K(r.description), 1)
|
|
4184
4184
|
], !0)
|
|
@@ -4188,13 +4188,13 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4188
4188
|
}, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
|
|
4189
4189
|
};
|
|
4190
4190
|
}
|
|
4191
|
-
}),
|
|
4191
|
+
}), cl = /* @__PURE__ */ Ce(ul, [["__scopeId", "data-v-4361d622"]]), dl = {
|
|
4192
4192
|
fill: "none",
|
|
4193
4193
|
height: "20",
|
|
4194
4194
|
viewBox: "0 0 20 20",
|
|
4195
4195
|
width: "20",
|
|
4196
4196
|
xmlns: "http://www.w3.org/2000/svg"
|
|
4197
|
-
},
|
|
4197
|
+
}, pl = {
|
|
4198
4198
|
id: "mask0_180_20349",
|
|
4199
4199
|
height: "20",
|
|
4200
4200
|
maskUnits: "userSpaceOnUse",
|
|
@@ -4202,35 +4202,35 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4202
4202
|
width: "20",
|
|
4203
4203
|
x: "0",
|
|
4204
4204
|
y: "0"
|
|
4205
|
-
},
|
|
4205
|
+
}, fl = ["fill"], ml = { mask: "url(#mask0_180_20349)" }, gl = ["fill"], yn = /* @__PURE__ */ X({
|
|
4206
4206
|
__name: "IconFilter",
|
|
4207
4207
|
props: {
|
|
4208
4208
|
color: {
|
|
4209
4209
|
type: String,
|
|
4210
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
4210
|
+
default: `var(--kong-ui-entity-filter-color, ${ka})`
|
|
4211
4211
|
}
|
|
4212
4212
|
},
|
|
4213
4213
|
setup(e) {
|
|
4214
|
-
return (t, n) => (m(), $("svg",
|
|
4215
|
-
L("mask",
|
|
4214
|
+
return (t, n) => (m(), $("svg", dl, [
|
|
4215
|
+
L("mask", pl, [
|
|
4216
4216
|
L("rect", {
|
|
4217
4217
|
fill: e.color,
|
|
4218
4218
|
height: "20",
|
|
4219
4219
|
width: "20"
|
|
4220
|
-
}, null, 8,
|
|
4220
|
+
}, null, 8, fl)
|
|
4221
4221
|
]),
|
|
4222
|
-
L("g",
|
|
4222
|
+
L("g", ml, [
|
|
4223
4223
|
L("path", {
|
|
4224
4224
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
4225
4225
|
fill: e.color
|
|
4226
|
-
}, null, 8,
|
|
4226
|
+
}, null, 8, gl)
|
|
4227
4227
|
])
|
|
4228
4228
|
]));
|
|
4229
4229
|
}
|
|
4230
|
-
}),
|
|
4230
|
+
}), yl = {
|
|
4231
4231
|
key: 1,
|
|
4232
4232
|
class: "kong-ui-entity-filter"
|
|
4233
|
-
},
|
|
4233
|
+
}, hl = { class: "kong-ui-entity-filter-menu" }, vl = ["data-testid"], bl = ["onClick", "onKeydown"], Cl = { class: "menu-item-indicator" }, kl = { class: "menu-item-body" }, wl = ["for"], _l = { class: "menu-item-buttons" }, Sl = { class: "filter-clear-button-container" }, xl = /* @__PURE__ */ X({
|
|
4234
4234
|
__name: "EntityFilter",
|
|
4235
4235
|
props: {
|
|
4236
4236
|
// filter config, either exact match or fuzzy match
|
|
@@ -4266,7 +4266,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4266
4266
|
expanded: !1
|
|
4267
4267
|
}));
|
|
4268
4268
|
});
|
|
4269
|
-
|
|
4269
|
+
Ae(() => r.modelValue, (h) => {
|
|
4270
4270
|
o.value = {}, new URLSearchParams(h).forEach((_, d) => {
|
|
4271
4271
|
o.value[d] = _;
|
|
4272
4272
|
});
|
|
@@ -4281,9 +4281,9 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4281
4281
|
y("");
|
|
4282
4282
|
}, S = (h) => `filter-${h}`, T = (h) => {
|
|
4283
4283
|
var _, d;
|
|
4284
|
-
return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((
|
|
4285
|
-
value:
|
|
4286
|
-
label:
|
|
4284
|
+
return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((I) => ({
|
|
4285
|
+
value: I,
|
|
4286
|
+
label: I
|
|
4287
4287
|
}));
|
|
4288
4288
|
}, k = (h) => {
|
|
4289
4289
|
var _, d;
|
|
@@ -4296,11 +4296,11 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4296
4296
|
}, N = () => {
|
|
4297
4297
|
o.value = {}, Z(!0);
|
|
4298
4298
|
}, Z = (h = !1) => {
|
|
4299
|
-
const _ = Object.keys(o.value).reduce((d,
|
|
4299
|
+
const _ = Object.keys(o.value).reduce((d, I) => (o.value[I] && (d[I] = `${o.value[I]}`), d), {});
|
|
4300
4300
|
h && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
|
|
4301
4301
|
};
|
|
4302
4302
|
return (h, _) => {
|
|
4303
|
-
const d = R("KInput"),
|
|
4303
|
+
const d = R("KInput"), I = R("KButton"), B = R("KSelect");
|
|
4304
4304
|
return e.config.isExactMatch ? (m(), D(d, {
|
|
4305
4305
|
key: 0,
|
|
4306
4306
|
autocomplete: "off",
|
|
@@ -4314,7 +4314,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4314
4314
|
j(yn)
|
|
4315
4315
|
]),
|
|
4316
4316
|
after: v(() => [
|
|
4317
|
-
Ne(j(g(
|
|
4317
|
+
Ne(j(g(Fs), {
|
|
4318
4318
|
class: "kong-ui-entity-filter-clear",
|
|
4319
4319
|
onClick: f
|
|
4320
4320
|
}, null, 512), [
|
|
@@ -4322,8 +4322,8 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4322
4322
|
])
|
|
4323
4323
|
]),
|
|
4324
4324
|
_: 1
|
|
4325
|
-
}, 8, ["model-value", "placeholder"])) : (m(), $("div",
|
|
4326
|
-
j(
|
|
4325
|
+
}, 8, ["model-value", "placeholder"])) : (m(), $("div", yl, [
|
|
4326
|
+
j(I, {
|
|
4327
4327
|
appearance: "tertiary",
|
|
4328
4328
|
"data-testid": "filter-button",
|
|
4329
4329
|
onClick: p
|
|
@@ -4340,7 +4340,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4340
4340
|
}, null, 512), [
|
|
4341
4341
|
[je, i.value]
|
|
4342
4342
|
]),
|
|
4343
|
-
Ne(L("div",
|
|
4343
|
+
Ne(L("div", hl, [
|
|
4344
4344
|
(m(!0), $(be, null, ve(u.value, (x) => {
|
|
4345
4345
|
var G, q;
|
|
4346
4346
|
return m(), $("div", {
|
|
@@ -4356,19 +4356,19 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4356
4356
|
onKeydown: wr((b) => c(x.value), ["enter"])
|
|
4357
4357
|
}, [
|
|
4358
4358
|
Y(K(x.label) + " ", 1),
|
|
4359
|
-
Ne(L("span",
|
|
4359
|
+
Ne(L("span", Cl, null, 512), [
|
|
4360
4360
|
[je, l.value.includes(x.value)]
|
|
4361
4361
|
]),
|
|
4362
|
-
j(g(
|
|
4362
|
+
j(g(Ns), {
|
|
4363
4363
|
class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
|
|
4364
|
-
color: g(
|
|
4364
|
+
color: g(_a)
|
|
4365
4365
|
}, null, 8, ["class", "color"])
|
|
4366
|
-
], 42,
|
|
4367
|
-
Ne(L("div",
|
|
4366
|
+
], 42, bl),
|
|
4367
|
+
Ne(L("div", kl, [
|
|
4368
4368
|
L("label", {
|
|
4369
4369
|
class: "menu-item-label",
|
|
4370
4370
|
for: S(x.value)
|
|
4371
|
-
}, K(g(n)("filter.fieldLabel")), 9,
|
|
4371
|
+
}, K(g(n)("filter.fieldLabel")), 9, wl),
|
|
4372
4372
|
((q = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : q.type) === "select" ? (m(), D(B, {
|
|
4373
4373
|
key: 0,
|
|
4374
4374
|
id: S(x.value),
|
|
@@ -4388,8 +4388,8 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4388
4388
|
], 512), [
|
|
4389
4389
|
[je, s.value.has(x.value)]
|
|
4390
4390
|
]),
|
|
4391
|
-
Ne(L("div",
|
|
4392
|
-
j(
|
|
4391
|
+
Ne(L("div", _l, [
|
|
4392
|
+
j(I, {
|
|
4393
4393
|
appearance: "tertiary",
|
|
4394
4394
|
"data-testid": "apply-filter",
|
|
4395
4395
|
size: "small",
|
|
@@ -4400,7 +4400,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4400
4400
|
]),
|
|
4401
4401
|
_: 1
|
|
4402
4402
|
}),
|
|
4403
|
-
j(
|
|
4403
|
+
j(I, {
|
|
4404
4404
|
appearance: "tertiary",
|
|
4405
4405
|
"data-testid": "clear-filter",
|
|
4406
4406
|
size: "small",
|
|
@@ -4414,10 +4414,10 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4414
4414
|
], 512), [
|
|
4415
4415
|
[je, s.value.has(x.value)]
|
|
4416
4416
|
])
|
|
4417
|
-
], 8,
|
|
4417
|
+
], 8, vl);
|
|
4418
4418
|
}), 128)),
|
|
4419
|
-
L("div",
|
|
4420
|
-
j(
|
|
4419
|
+
L("div", Sl, [
|
|
4420
|
+
j(I, {
|
|
4421
4421
|
appearance: "tertiary",
|
|
4422
4422
|
size: "small",
|
|
4423
4423
|
onClick: N
|
|
@@ -4434,7 +4434,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4434
4434
|
]));
|
|
4435
4435
|
};
|
|
4436
4436
|
}
|
|
4437
|
-
}),
|
|
4437
|
+
}), Il = /* @__PURE__ */ Ce(xl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
|
|
4438
4438
|
__name: "PermissionsWrapper",
|
|
4439
4439
|
props: {
|
|
4440
4440
|
/**
|
|
@@ -4457,7 +4457,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4457
4457
|
},
|
|
4458
4458
|
setup(e) {
|
|
4459
4459
|
const t = e, n = M(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
|
|
4460
|
-
return
|
|
4460
|
+
return Ae(() => t.authFunction, async () => {
|
|
4461
4461
|
n.value = await t.authFunction();
|
|
4462
4462
|
}, { immediate: !0 }), (a, i) => r.value ? ne(a.$slots, "default", {
|
|
4463
4463
|
key: 0,
|
|
@@ -4467,7 +4467,7 @@ const is = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
|
|
|
4467
4467
|
});
|
|
4468
4468
|
let lt;
|
|
4469
4469
|
const Al = new Uint8Array(16);
|
|
4470
|
-
function
|
|
4470
|
+
function $l() {
|
|
4471
4471
|
if (!lt && (lt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !lt))
|
|
4472
4472
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
4473
4473
|
return lt(Al);
|
|
@@ -4475,32 +4475,32 @@ function Il() {
|
|
|
4475
4475
|
const ue = [];
|
|
4476
4476
|
for (let e = 0; e < 256; ++e)
|
|
4477
4477
|
ue.push((e + 256).toString(16).slice(1));
|
|
4478
|
-
function
|
|
4478
|
+
function Tl(e, t = 0) {
|
|
4479
4479
|
return ue[e[t + 0]] + ue[e[t + 1]] + ue[e[t + 2]] + ue[e[t + 3]] + "-" + ue[e[t + 4]] + ue[e[t + 5]] + "-" + ue[e[t + 6]] + ue[e[t + 7]] + "-" + ue[e[t + 8]] + ue[e[t + 9]] + "-" + ue[e[t + 10]] + ue[e[t + 11]] + ue[e[t + 12]] + ue[e[t + 13]] + ue[e[t + 14]] + ue[e[t + 15]];
|
|
4480
4480
|
}
|
|
4481
|
-
const
|
|
4482
|
-
randomUUID:
|
|
4481
|
+
const Nl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hn = {
|
|
4482
|
+
randomUUID: Nl
|
|
4483
4483
|
};
|
|
4484
|
-
function
|
|
4484
|
+
function jl(e, t, n) {
|
|
4485
4485
|
if (hn.randomUUID && !t && !e)
|
|
4486
4486
|
return hn.randomUUID();
|
|
4487
4487
|
e = e || {};
|
|
4488
|
-
const r = e.random || (e.rng ||
|
|
4488
|
+
const r = e.random || (e.rng || $l)();
|
|
4489
4489
|
if (r[6] = r[6] & 15 | 64, r[8] = r[8] & 63 | 128, t) {
|
|
4490
4490
|
n = n || 0;
|
|
4491
4491
|
for (let a = 0; a < 16; ++a)
|
|
4492
4492
|
t[n + a] = r[a];
|
|
4493
4493
|
return t;
|
|
4494
4494
|
}
|
|
4495
|
-
return
|
|
4495
|
+
return Tl(r);
|
|
4496
4496
|
}
|
|
4497
|
-
const
|
|
4497
|
+
const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
|
|
4498
4498
|
key: 1,
|
|
4499
4499
|
class: "form-section-description"
|
|
4500
|
-
},
|
|
4500
|
+
}, ql = {
|
|
4501
4501
|
key: 2,
|
|
4502
4502
|
class: "form-section-footer"
|
|
4503
|
-
},
|
|
4503
|
+
}, Fl = { class: "form-section-content" }, Kl = /* @__PURE__ */ X({
|
|
4504
4504
|
__name: "EntityFormSection",
|
|
4505
4505
|
props: {
|
|
4506
4506
|
title: {
|
|
@@ -4529,18 +4529,18 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4529
4529
|
}
|
|
4530
4530
|
},
|
|
4531
4531
|
setup(e) {
|
|
4532
|
-
const t = jt(), n =
|
|
4532
|
+
const t = jt(), n = jl();
|
|
4533
4533
|
return (r, a) => (m(), $("div", {
|
|
4534
4534
|
"aria-labelledby": e.title ? g(n) : void 0,
|
|
4535
4535
|
class: Me(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
|
|
4536
4536
|
role: "group"
|
|
4537
4537
|
}, [
|
|
4538
|
-
L("div",
|
|
4538
|
+
L("div", El, [
|
|
4539
4539
|
e.hideInfoHeader ? J("", !0) : (m(), $("div", {
|
|
4540
4540
|
key: 0,
|
|
4541
4541
|
class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4542
4542
|
}, [
|
|
4543
|
-
e.title ? (m(), D(
|
|
4543
|
+
e.title ? (m(), D(Te(e.titleTag), {
|
|
4544
4544
|
key: 0,
|
|
4545
4545
|
id: g(n),
|
|
4546
4546
|
class: "form-section-title"
|
|
@@ -4550,25 +4550,25 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4550
4550
|
]),
|
|
4551
4551
|
_: 1
|
|
4552
4552
|
}, 8, ["id"])) : J("", !0),
|
|
4553
|
-
e.description || g(t).description ? (m(), $("div",
|
|
4553
|
+
e.description || g(t).description ? (m(), $("div", Ml, [
|
|
4554
4554
|
ne(r.$slots, "description", {}, () => [
|
|
4555
4555
|
L("p", null, K(e.description), 1)
|
|
4556
4556
|
], !0)
|
|
4557
4557
|
])) : J("", !0),
|
|
4558
|
-
g(t).footer ? (m(), $("div",
|
|
4558
|
+
g(t).footer ? (m(), $("div", ql, [
|
|
4559
4559
|
ne(r.$slots, "footer", {}, void 0, !0)
|
|
4560
4560
|
])) : J("", !0)
|
|
4561
4561
|
], 2)),
|
|
4562
|
-
L("div",
|
|
4562
|
+
L("div", Fl, [
|
|
4563
4563
|
ne(r.$slots, "default", {}, void 0, !0)
|
|
4564
4564
|
])
|
|
4565
4565
|
])
|
|
4566
|
-
], 10,
|
|
4566
|
+
], 10, Ol));
|
|
4567
4567
|
}
|
|
4568
|
-
}), vn = /* @__PURE__ */ Ce(
|
|
4568
|
+
}), vn = /* @__PURE__ */ Ce(Kl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Ut, useDeleteUrlBuilder: Bl, useErrors: Ll, useExternalLinkCreator: lu, useFetchUrlBuilder: uu, useFetcher: Ul, useDebouncedFilter: vr, useStringHelpers: cu, useHelpers: du, useGatewayFeatureSupported: pu, useTruncationDetector: fu, useValidators: Pl } = se, Rl = { class: "add-to-group-form-container" }, Vl = { class: "add-to-group-cta-text" }, Dl = {
|
|
4569
4569
|
key: 0,
|
|
4570
4570
|
class: "kong-ui-entity-add-to-groups-error"
|
|
4571
|
-
},
|
|
4571
|
+
}, zl = { key: 0 }, Gl = /* @__PURE__ */ X({
|
|
4572
4572
|
__name: "AddToGroupModal",
|
|
4573
4573
|
props: {
|
|
4574
4574
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4630,7 +4630,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4630
4630
|
} finally {
|
|
4631
4631
|
h.value = !1;
|
|
4632
4632
|
}
|
|
4633
|
-
},
|
|
4633
|
+
}, I = w(() => {
|
|
4634
4634
|
var E, F, H, te;
|
|
4635
4635
|
let b = `${r.config.apiBaseUrl}${Oe.list[r.config.app].forConsumer}`;
|
|
4636
4636
|
return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.controlPlaneId) || "").replace(/{consumerId}/gi, ((F = r.config) == null ? void 0 : F.consumerId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = r.config) != null && H.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((te = r.config) == null ? void 0 : te.consumerId) || "")), b;
|
|
@@ -4639,7 +4639,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4639
4639
|
group: b
|
|
4640
4640
|
};
|
|
4641
4641
|
try {
|
|
4642
|
-
const F = await i.post(
|
|
4642
|
+
const F = await i.post(I.value, E);
|
|
4643
4643
|
return Z.value.push(b), F;
|
|
4644
4644
|
} catch (F) {
|
|
4645
4645
|
let H = `${U(b)} - ${F.message}`;
|
|
@@ -4651,9 +4651,9 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4651
4651
|
return (F = E.reason) == null ? void 0 : F.message;
|
|
4652
4652
|
}).filter(Boolean);
|
|
4653
4653
|
};
|
|
4654
|
-
return
|
|
4654
|
+
return Ae(k, () => {
|
|
4655
4655
|
S.value++;
|
|
4656
|
-
}, { immediate: !0, deep: !0 }),
|
|
4656
|
+
}, { immediate: !0, deep: !0 }), Ae(() => r.visible, () => {
|
|
4657
4657
|
r.visible && c();
|
|
4658
4658
|
}, { immediate: !0 }), (b, E) => {
|
|
4659
4659
|
const F = R("KMultiselect"), H = R("KAlert"), te = R("KPrompt");
|
|
@@ -4667,8 +4667,8 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4667
4667
|
onProceed: d
|
|
4668
4668
|
}, {
|
|
4669
4669
|
default: v(() => [
|
|
4670
|
-
L("div",
|
|
4671
|
-
L("p",
|
|
4670
|
+
L("div", Rl, [
|
|
4671
|
+
L("p", Vl, K(g(n)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4672
4672
|
j(F, {
|
|
4673
4673
|
modelValue: o.value,
|
|
4674
4674
|
"onUpdate:modelValue": E[0] || (E[0] = (de) => o.value = de),
|
|
@@ -4684,11 +4684,11 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4684
4684
|
width: "100%",
|
|
4685
4685
|
onQueryChange: g(s)
|
|
4686
4686
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4687
|
-
_.value || f.value || x.value.length ? (m(), $("div",
|
|
4687
|
+
_.value || f.value || x.value.length ? (m(), $("div", Dl, [
|
|
4688
4688
|
j(H, { appearance: "danger" }, {
|
|
4689
4689
|
default: v(() => [
|
|
4690
4690
|
L("p", null, K(g(n)("consumer_groups.errors.add")), 1),
|
|
4691
|
-
x.value.length ? (m(), $("ul",
|
|
4691
|
+
x.value.length ? (m(), $("ul", zl, [
|
|
4692
4692
|
(m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, K(de), 1))), 128))
|
|
4693
4693
|
])) : J("", !0),
|
|
4694
4694
|
L("div", null, K(_.value || f.value), 1)
|
|
@@ -4707,7 +4707,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4707
4707
|
for (const [r, a] of t)
|
|
4708
4708
|
n[r] = a;
|
|
4709
4709
|
return n;
|
|
4710
|
-
},
|
|
4710
|
+
}, Hl = /* @__PURE__ */ Pt(Gl, [["__scopeId", "data-v-bb0a8037"]]), Jl = { class: "kong-ui-entities-consumer-groups-list" }, Zl = { key: 1 }, Wl = /* @__PURE__ */ X({
|
|
4711
4711
|
__name: "ConsumerGroupList",
|
|
4712
4712
|
props: {
|
|
4713
4713
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4760,76 +4760,76 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4760
4760
|
name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4761
4761
|
};
|
|
4762
4762
|
r.config.app === "kongManager" && (y.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), y.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
|
|
4763
|
-
const f = y, S = (
|
|
4764
|
-
"data-testid":
|
|
4763
|
+
const f = y, S = (A) => ({
|
|
4764
|
+
"data-testid": A.username ?? A.custom_id ?? A.id
|
|
4765
4765
|
}), T = w(() => {
|
|
4766
4766
|
var W, re, ge, we;
|
|
4767
|
-
let
|
|
4768
|
-
return r.config.app === "konnect" ?
|
|
4767
|
+
let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
|
|
4768
|
+
return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
|
|
4769
4769
|
}), k = M(""), U = w(() => {
|
|
4770
|
-
const
|
|
4771
|
-
return
|
|
4772
|
-
isExactMatch:
|
|
4770
|
+
const A = r.config.app === "konnect" || r.config.isExactMatch;
|
|
4771
|
+
return A ? {
|
|
4772
|
+
isExactMatch: A,
|
|
4773
4773
|
fields: {
|
|
4774
4774
|
username: y.name,
|
|
4775
4775
|
id: { label: i("consumer_groups.list.table_headers.id") }
|
|
4776
4776
|
},
|
|
4777
4777
|
placeholder: i("consumer_groups.search.placeholder")
|
|
4778
4778
|
} : {
|
|
4779
|
-
isExactMatch:
|
|
4779
|
+
isExactMatch: A,
|
|
4780
4780
|
fields: {
|
|
4781
4781
|
name: y.name
|
|
4782
4782
|
},
|
|
4783
4783
|
schema: r.config.filterSchema
|
|
4784
4784
|
};
|
|
4785
|
-
}), N = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Z, fetcherState: h } =
|
|
4785
|
+
}), N = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Z, fetcherState: h } = Ul(r.config, T.value, N.value), _ = () => {
|
|
4786
4786
|
k.value = "";
|
|
4787
4787
|
}, d = () => {
|
|
4788
4788
|
l.value++;
|
|
4789
|
-
},
|
|
4790
|
-
const re =
|
|
4789
|
+
}, I = M(null), B = (A, W) => {
|
|
4790
|
+
const re = A.id;
|
|
4791
4791
|
if (!W(re)) {
|
|
4792
4792
|
n("copy:error", {
|
|
4793
|
-
entity:
|
|
4793
|
+
entity: A,
|
|
4794
4794
|
field: "id",
|
|
4795
4795
|
message: i("consumer_groups.errors.copy")
|
|
4796
4796
|
});
|
|
4797
4797
|
return;
|
|
4798
4798
|
}
|
|
4799
4799
|
n("copy:success", {
|
|
4800
|
-
entity:
|
|
4800
|
+
entity: A,
|
|
4801
4801
|
field: "id",
|
|
4802
4802
|
message: i("consumer_groups.copy.success", { val: re })
|
|
4803
4803
|
});
|
|
4804
|
-
}, x = (
|
|
4805
|
-
const re = JSON.stringify(
|
|
4804
|
+
}, x = (A, W) => {
|
|
4805
|
+
const re = JSON.stringify(A);
|
|
4806
4806
|
if (!W(re)) {
|
|
4807
4807
|
n("copy:error", {
|
|
4808
|
-
entity:
|
|
4808
|
+
entity: A,
|
|
4809
4809
|
message: i("consumer_groups.errors.copy")
|
|
4810
4810
|
});
|
|
4811
4811
|
return;
|
|
4812
4812
|
}
|
|
4813
4813
|
n("copy:success", {
|
|
4814
|
-
entity:
|
|
4814
|
+
entity: A,
|
|
4815
4815
|
message: i("consumer_groups.copy.success_brief")
|
|
4816
4816
|
});
|
|
4817
|
-
}, G = async (
|
|
4817
|
+
}, G = async (A) => {
|
|
4818
4818
|
var re;
|
|
4819
|
-
await ((re = r.canRetrieve) == null ? void 0 : re.call(r,
|
|
4820
|
-
}, q = (
|
|
4819
|
+
await ((re = r.canRetrieve) == null ? void 0 : re.call(r, A)) && o.push(r.config.getViewRoute(A.id));
|
|
4820
|
+
}, q = (A) => ({
|
|
4821
4821
|
label: i("consumer_groups.actions.view"),
|
|
4822
|
-
to: r.config.getViewRoute(
|
|
4823
|
-
}), b = (
|
|
4822
|
+
to: r.config.getViewRoute(A)
|
|
4823
|
+
}), b = (A) => ({
|
|
4824
4824
|
label: i("consumer_groups.actions.edit"),
|
|
4825
|
-
to: r.config.getEditRoute(
|
|
4826
|
-
}), E = M(void 0), F = M(!1), H = M(!1), te = M(""), de =
|
|
4827
|
-
E.value =
|
|
4825
|
+
to: r.config.getEditRoute(A)
|
|
4826
|
+
}), E = M(void 0), F = M(!1), H = M(!1), te = M(""), de = Bl(r.config, T.value), We = (A) => {
|
|
4827
|
+
E.value = A, F.value = !0;
|
|
4828
4828
|
}, bt = () => {
|
|
4829
4829
|
F.value = !1;
|
|
4830
4830
|
}, it = async () => {
|
|
4831
|
-
var
|
|
4832
|
-
if ((
|
|
4831
|
+
var A, W, re;
|
|
4832
|
+
if ((A = E.value) != null && A.id) {
|
|
4833
4833
|
H.value = !0;
|
|
4834
4834
|
try {
|
|
4835
4835
|
await s.delete(de(E.value.id)), H.value = !1, F.value = !1, l.value++, n("delete:success", E.value);
|
|
@@ -4843,40 +4843,40 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4843
4843
|
Le.value = !0;
|
|
4844
4844
|
}, C = () => {
|
|
4845
4845
|
Le.value = !1;
|
|
4846
|
-
}, P = (
|
|
4847
|
-
W || C(), l.value++, n("add:success",
|
|
4846
|
+
}, P = (A, W) => {
|
|
4847
|
+
W || C(), l.value++, n("add:success", A);
|
|
4848
4848
|
}, ae = () => {
|
|
4849
4849
|
u.value && Ye();
|
|
4850
|
-
}, V = M(void 0), z = M(!1), me = M(""), ke = (
|
|
4851
|
-
V.value =
|
|
4850
|
+
}, V = M(void 0), z = M(!1), me = M(""), ke = (A) => {
|
|
4851
|
+
V.value = A, z.value = !0;
|
|
4852
4852
|
}, le = () => {
|
|
4853
4853
|
z.value = !1, V.value = void 0;
|
|
4854
4854
|
}, Ue = w(() => {
|
|
4855
4855
|
var W, re, ge, we;
|
|
4856
|
-
let
|
|
4857
|
-
return r.config.app === "konnect" ?
|
|
4856
|
+
let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app].oneForConsumer}`;
|
|
4857
|
+
return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
|
|
4858
4858
|
}), Qe = M(!1), br = async () => {
|
|
4859
4859
|
if (V.value) {
|
|
4860
4860
|
Qe.value = !0;
|
|
4861
4861
|
try {
|
|
4862
|
-
const
|
|
4863
|
-
await s.delete(
|
|
4864
|
-
} catch (
|
|
4865
|
-
me.value =
|
|
4862
|
+
const A = Ue.value.replace(/{consumerGroupId}/gi, V.value.id);
|
|
4863
|
+
await s.delete(A), n("remove:success", V.value), le(), l.value++;
|
|
4864
|
+
} catch (A) {
|
|
4865
|
+
me.value = A.message || i("consumer_groups.errors.delete"), n("error", A);
|
|
4866
4866
|
} finally {
|
|
4867
4867
|
Qe.value = !1;
|
|
4868
4868
|
}
|
|
4869
4869
|
}
|
|
4870
4870
|
}, Rt = M(!0);
|
|
4871
|
-
|
|
4871
|
+
Ae(h, (A) => {
|
|
4872
4872
|
var W, re, ge, we;
|
|
4873
|
-
if (Array.isArray((W =
|
|
4874
|
-
|
|
4873
|
+
if (Array.isArray((W = A == null ? void 0 : A.response) == null ? void 0 : W.data) && (Rt.value = A.response.data.length > 0), A.status === Fe.Error) {
|
|
4874
|
+
I.value = {
|
|
4875
4875
|
title: i("consumer_groups.errors.general")
|
|
4876
|
-
}, (we = (ge = (re =
|
|
4876
|
+
}, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (I.value.message = A.error.response.data.message), n("error", A.error);
|
|
4877
4877
|
return;
|
|
4878
4878
|
}
|
|
4879
|
-
|
|
4879
|
+
I.value = null;
|
|
4880
4880
|
});
|
|
4881
4881
|
const Ct = M({
|
|
4882
4882
|
ctaPath: u.value ? void 0 : r.config.createRoute,
|
|
@@ -4886,17 +4886,17 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4886
4886
|
});
|
|
4887
4887
|
return gt(async () => {
|
|
4888
4888
|
await r.canCreate() && (Ct.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), Ct.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
|
|
4889
|
-
}), (
|
|
4889
|
+
}), (A, W) => {
|
|
4890
4890
|
const re = R("KButton"), ge = R("KBadge"), we = R("KTruncate"), Xe = R("KDropdownItem"), Dt = R("KClipboardProvider"), Cr = R("KPrompt");
|
|
4891
|
-
return m(), $("div",
|
|
4892
|
-
j(g(
|
|
4891
|
+
return m(), $("div", Jl, [
|
|
4892
|
+
j(g(il), {
|
|
4893
4893
|
"cache-identifier": e.cacheIdentifier,
|
|
4894
4894
|
"disable-pagination": u.value && !e.config.paginatedEndpoint,
|
|
4895
4895
|
"disable-pagination-page-jump": "",
|
|
4896
4896
|
"disable-sorting": c.value,
|
|
4897
4897
|
"empty-state-options": Ct.value,
|
|
4898
4898
|
"enable-entity-actions": "",
|
|
4899
|
-
"error-message":
|
|
4899
|
+
"error-message": I.value,
|
|
4900
4900
|
fetcher: g(Z),
|
|
4901
4901
|
"fetcher-cache-key": l.value,
|
|
4902
4902
|
"pagination-type": "offset",
|
|
@@ -4911,7 +4911,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4911
4911
|
onSort: d
|
|
4912
4912
|
}, {
|
|
4913
4913
|
"toolbar-filter": v(() => [
|
|
4914
|
-
u.value ? J("", !0) : (m(), D(g(
|
|
4914
|
+
u.value ? J("", !0) : (m(), D(g(Il), {
|
|
4915
4915
|
key: 0,
|
|
4916
4916
|
modelValue: k.value,
|
|
4917
4917
|
"onUpdate:modelValue": W[0] || (W[0] = (Q) => k.value = Q),
|
|
@@ -4919,35 +4919,33 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4919
4919
|
}, null, 8, ["modelValue", "config"]))
|
|
4920
4920
|
]),
|
|
4921
4921
|
"toolbar-button": v(() => [
|
|
4922
|
-
(m(), D(
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
|
|
4939
|
-
|
|
4940
|
-
|
|
4941
|
-
|
|
4942
|
-
|
|
4943
|
-
|
|
4944
|
-
|
|
4945
|
-
|
|
4946
|
-
|
|
4947
|
-
|
|
4948
|
-
|
|
4949
|
-
_: 1
|
|
4950
|
-
}, 8, ["to"]))
|
|
4922
|
+
(m(), D(Tr, {
|
|
4923
|
+
disabled: !e.useActionOutside,
|
|
4924
|
+
to: "#kong-ui-app-page-header-action-button"
|
|
4925
|
+
}, [
|
|
4926
|
+
j(g(st), {
|
|
4927
|
+
"auth-function": () => e.canCreate()
|
|
4928
|
+
}, {
|
|
4929
|
+
default: v(() => [
|
|
4930
|
+
Ne(j(re, {
|
|
4931
|
+
appearance: "primary",
|
|
4932
|
+
"data-testid": "toolbar-add-consumer-group",
|
|
4933
|
+
size: "large",
|
|
4934
|
+
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4935
|
+
onClick: W[1] || (W[1] = () => e.config.consumerId ? Ye() : void 0)
|
|
4936
|
+
}, {
|
|
4937
|
+
default: v(() => [
|
|
4938
|
+
j(g(Kr)),
|
|
4939
|
+
Y(" " + K(e.config.consumerId ? g(i)("consumer_groups.actions.add_to_group") : g(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4940
|
+
]),
|
|
4941
|
+
_: 1
|
|
4942
|
+
}, 8, ["to"]), [
|
|
4943
|
+
[je, Rt.value]
|
|
4944
|
+
])
|
|
4945
|
+
]),
|
|
4946
|
+
_: 1
|
|
4947
|
+
}, 8, ["auth-function"])
|
|
4948
|
+
], 8, ["disabled"]))
|
|
4951
4949
|
]),
|
|
4952
4950
|
name: v(({ rowValue: Q }) => [
|
|
4953
4951
|
L("b", null, K(Q ?? "-"), 1)
|
|
@@ -4970,7 +4968,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
4970
4968
|
}, 1024))), 128))
|
|
4971
4969
|
]),
|
|
4972
4970
|
_: 2
|
|
4973
|
-
}, 1024)) : (m(), $("span",
|
|
4971
|
+
}, 1024)) : (m(), $("span", Zl, "-"))
|
|
4974
4972
|
]),
|
|
4975
4973
|
actions: v(({ row: Q }) => [
|
|
4976
4974
|
j(Dt, null, {
|
|
@@ -5045,7 +5043,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5045
5043
|
]),
|
|
5046
5044
|
_: 1
|
|
5047
5045
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers", "use-action-outside"]),
|
|
5048
|
-
j(g(
|
|
5046
|
+
j(g(cl), {
|
|
5049
5047
|
"action-pending": H.value,
|
|
5050
5048
|
"data-testid": "delete-consumer-group-modal",
|
|
5051
5049
|
description: g(i)("consumer_groups.delete.description"),
|
|
@@ -5057,7 +5055,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5057
5055
|
onCancel: bt,
|
|
5058
5056
|
onProceed: it
|
|
5059
5057
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
5060
|
-
e.config.consumerId ? (m(), D(
|
|
5058
|
+
e.config.consumerId ? (m(), D(Hl, {
|
|
5061
5059
|
key: 0,
|
|
5062
5060
|
config: e.config,
|
|
5063
5061
|
"data-testid": "add-to-group-modal",
|
|
@@ -5101,10 +5099,10 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5101
5099
|
]);
|
|
5102
5100
|
};
|
|
5103
5101
|
}
|
|
5104
|
-
}),
|
|
5102
|
+
}), mu = /* @__PURE__ */ Pt(Wl, [["__scopeId", "data-v-a183d2c6"]]), Yl = { class: "kong-ui-entities-consumer-group-form" }, Ql = { class: "select-item-container" }, Xl = { class: "select-item-label" }, eu = {
|
|
5105
5103
|
key: 0,
|
|
5106
5104
|
class: "select-item-description"
|
|
5107
|
-
},
|
|
5105
|
+
}, tu = /* @__PURE__ */ X({
|
|
5108
5106
|
__name: "ConsumerGroupForm",
|
|
5109
5107
|
props: {
|
|
5110
5108
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5144,7 +5142,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5144
5142
|
} = vr(n.config, (Le = Oe.form[(it = n.config) == null ? void 0 : it.app]) == null ? void 0 : Le.consumersList, "", {
|
|
5145
5143
|
fetchedItemsKey: "data",
|
|
5146
5144
|
searchKeys: ["username", "custom_id", "id"]
|
|
5147
|
-
}), { axiosInstance: f } = Ut((Ye = n.config) == null ? void 0 : Ye.axiosRequestConfig), { getMessageFromError: S } =
|
|
5145
|
+
}), { axiosInstance: f } = Ut((Ye = n.config) == null ? void 0 : Ye.axiosRequestConfig), { getMessageFromError: S } = Ll(), T = Pl(), k = w(() => y.value.map((C) => ({
|
|
5148
5146
|
label: C.username || C.custom_id,
|
|
5149
5147
|
value: C.id,
|
|
5150
5148
|
selected: o.fields.consumers.includes(C.id),
|
|
@@ -5160,7 +5158,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5160
5158
|
}, d = () => {
|
|
5161
5159
|
var C;
|
|
5162
5160
|
i.push(((C = n.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
|
|
5163
|
-
},
|
|
5161
|
+
}, I = (C) => {
|
|
5164
5162
|
r("error", C);
|
|
5165
5163
|
}, B = (C) => {
|
|
5166
5164
|
r("loading", C);
|
|
@@ -5248,8 +5246,8 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5248
5246
|
await c();
|
|
5249
5247
|
}), (C, P) => {
|
|
5250
5248
|
const ae = R("KInput"), V = R("KMultiselect");
|
|
5251
|
-
return m(), $("div",
|
|
5252
|
-
j(g(
|
|
5249
|
+
return m(), $("div", Yl, [
|
|
5250
|
+
j(g(Qs), {
|
|
5253
5251
|
"can-submit": Z.value && h.value,
|
|
5254
5252
|
config: e.config,
|
|
5255
5253
|
"edit-id": e.consumerGroupId,
|
|
@@ -5258,7 +5256,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5258
5256
|
"form-fields": q.value,
|
|
5259
5257
|
"is-readonly": o.readonly,
|
|
5260
5258
|
onCancel: d,
|
|
5261
|
-
"onFetch:error": P[3] || (P[3] = (z) =>
|
|
5259
|
+
"onFetch:error": P[3] || (P[3] = (z) => I(z)),
|
|
5262
5260
|
"onFetch:success": x,
|
|
5263
5261
|
onLoading: P[4] || (P[4] = (z) => B(z)),
|
|
5264
5262
|
onSubmit: bt
|
|
@@ -5319,9 +5317,9 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5319
5317
|
"item-template": v(({ item: z }) => {
|
|
5320
5318
|
var me, ke, le;
|
|
5321
5319
|
return [
|
|
5322
|
-
L("div",
|
|
5323
|
-
L("div",
|
|
5324
|
-
(me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div",
|
|
5320
|
+
L("div", Ql, [
|
|
5321
|
+
L("div", Xl, K(z.label), 1),
|
|
5322
|
+
(me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div", eu, K((le = z == null ? void 0 : z.data) == null ? void 0 : le.custom_id), 1)) : J("", !0)
|
|
5325
5323
|
])
|
|
5326
5324
|
];
|
|
5327
5325
|
}),
|
|
@@ -5336,7 +5334,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5336
5334
|
]);
|
|
5337
5335
|
};
|
|
5338
5336
|
}
|
|
5339
|
-
}),
|
|
5337
|
+
}), gu = /* @__PURE__ */ Pt(tu, [["__scopeId", "data-v-9681165d"]]), nu = { class: "kong-ui-consumer-group-entity-config-card" }, yu = /* @__PURE__ */ X({
|
|
5340
5338
|
__name: "ConsumerGroupConfigCard",
|
|
5341
5339
|
props: {
|
|
5342
5340
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -5372,8 +5370,8 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5372
5370
|
tooltip: n("consumer_groups.form.fields.tags.tooltip")
|
|
5373
5371
|
}
|
|
5374
5372
|
});
|
|
5375
|
-
return (i, o) => (m(), $("div",
|
|
5376
|
-
j(g(
|
|
5373
|
+
return (i, o) => (m(), $("div", nu, [
|
|
5374
|
+
j(g(Js), {
|
|
5377
5375
|
config: e.config,
|
|
5378
5376
|
"config-card-doc": e.configCardDoc,
|
|
5379
5377
|
"config-schema": a.value,
|
|
@@ -5388,7 +5386,7 @@ const jl = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, El = {
|
|
|
5388
5386
|
}
|
|
5389
5387
|
});
|
|
5390
5388
|
export {
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5389
|
+
yu as ConsumerGroupConfigCard,
|
|
5390
|
+
gu as ConsumerGroupForm,
|
|
5391
|
+
mu as ConsumerGroupList
|
|
5394
5392
|
};
|