@kong-ui-public/entities-consumer-groups 1.3.2 → 1.3.3-pr.913.7ee8b281.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as
|
|
1
|
+
import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as N, openBlock as m, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Ke, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as cr, resolveDynamicComponent as ze, normalizeProps as dr, guardReactiveProps as pr, mergeProps as ht, onMounted as fr, onUnmounted as mr, normalizeStyle as gr, inject as yr, pushScopeId as hr, popScopeId as vr, Teleport as br, reactive as Pt } from "vue";
|
|
2
2
|
import { useRouter as wt } from "vue-router";
|
|
3
3
|
import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import { MethodsArray as
|
|
6
|
-
const
|
|
4
|
+
import Cr from "axios";
|
|
5
|
+
import { MethodsArray as kr } from "@kong/kongponents";
|
|
6
|
+
const _r = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
9
9
|
name: "Name",
|
|
@@ -95,11 +95,11 @@ const Cr = {
|
|
|
95
95
|
name: "The name can be any string containing letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
99
|
-
consumer_groups:
|
|
98
|
+
}, wr = {
|
|
99
|
+
consumer_groups: _r
|
|
100
100
|
};
|
|
101
|
-
function
|
|
102
|
-
const e = It("en-us",
|
|
101
|
+
function Ir() {
|
|
102
|
+
const e = It("en-us", wr);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: cn(e)
|
|
@@ -107,7 +107,7 @@ function _r() {
|
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
const ct = {
|
|
110
|
-
useI18n:
|
|
110
|
+
useI18n: Ir
|
|
111
111
|
}, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
|
|
112
112
|
list: {
|
|
113
113
|
konnect: {
|
|
@@ -143,14 +143,14 @@ const ct = {
|
|
|
143
143
|
var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
|
|
144
144
|
function At(e = {}) {
|
|
145
145
|
return {
|
|
146
|
-
axiosInstance:
|
|
146
|
+
axiosInstance: Cr.create({
|
|
147
147
|
withCredentials: !0,
|
|
148
148
|
timeout: 3e4,
|
|
149
149
|
...e
|
|
150
150
|
})
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Ar() {
|
|
154
154
|
return {
|
|
155
155
|
debounce: (e, n) => {
|
|
156
156
|
let t;
|
|
@@ -162,12 +162,12 @@ function wr() {
|
|
|
162
162
|
}
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
|
-
const ft = "khcp-user-table-preferences",
|
|
165
|
+
const ft = "khcp-user-table-preferences", Sr = {
|
|
166
166
|
pageSize: 30,
|
|
167
167
|
sortColumnKey: void 0,
|
|
168
168
|
sortColumnOrder: void 0
|
|
169
169
|
};
|
|
170
|
-
function
|
|
170
|
+
function xr() {
|
|
171
171
|
const e = (t) => {
|
|
172
172
|
if (typeof t == "string")
|
|
173
173
|
try {
|
|
@@ -191,17 +191,17 @@ function Ar() {
|
|
|
191
191
|
},
|
|
192
192
|
getTablePreferences: (t) => {
|
|
193
193
|
const r = n();
|
|
194
|
-
return (r == null ? void 0 : r.get(t)) || void 0 ||
|
|
194
|
+
return (r == null ? void 0 : r.get(t)) || void 0 || Sr;
|
|
195
195
|
},
|
|
196
196
|
deleteAllTablePreferences: () => {
|
|
197
197
|
localStorage.removeItem(ft);
|
|
198
198
|
}
|
|
199
199
|
};
|
|
200
200
|
}
|
|
201
|
-
const
|
|
201
|
+
const Tr = {
|
|
202
202
|
message: "Are you sure you want to delete this {entityType}?",
|
|
203
203
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
204
|
-
},
|
|
204
|
+
}, $r = {
|
|
205
205
|
actions: {
|
|
206
206
|
save: "Save",
|
|
207
207
|
cancel: "Cancel",
|
|
@@ -210,13 +210,13 @@ const Sr = {
|
|
|
210
210
|
errors: {
|
|
211
211
|
edit: "The entity could not be edited at this time."
|
|
212
212
|
}
|
|
213
|
-
},
|
|
213
|
+
}, Mr = {
|
|
214
214
|
emptyState: {
|
|
215
215
|
noSearchResultsTitle: "No results found",
|
|
216
216
|
noSearchResultsMessage: "Please adjust the criteria and try again.",
|
|
217
217
|
noSearchResultsCtaText: "Clear"
|
|
218
218
|
}
|
|
219
|
-
},
|
|
219
|
+
}, jr = {
|
|
220
220
|
title: "Configuration",
|
|
221
221
|
actions: {
|
|
222
222
|
copy: "Copy JSON"
|
|
@@ -251,7 +251,7 @@ const Sr = {
|
|
|
251
251
|
entryTitle: "Entry {index}",
|
|
252
252
|
structuredFormat: "Structured"
|
|
253
253
|
}
|
|
254
|
-
},
|
|
254
|
+
}, Er = {
|
|
255
255
|
filterButtonText: "Filter",
|
|
256
256
|
fieldLabel: "Filter by:",
|
|
257
257
|
inputPlaceholder: "Enter a value",
|
|
@@ -259,15 +259,15 @@ const Sr = {
|
|
|
259
259
|
applyButtonText: "Apply",
|
|
260
260
|
clearButtonText: "Clear",
|
|
261
261
|
clearAllButtonText: "Clear all filters"
|
|
262
|
-
},
|
|
262
|
+
}, Or = {
|
|
263
263
|
errors: {
|
|
264
264
|
fetch: "Could not fetch available items",
|
|
265
265
|
invalid: "Please select a valid value"
|
|
266
266
|
}
|
|
267
|
-
},
|
|
267
|
+
}, Fr = {
|
|
268
268
|
unexpected: "An unexpected error has occurred",
|
|
269
269
|
dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
|
|
270
|
-
},
|
|
270
|
+
}, Kr = {
|
|
271
271
|
enable: {
|
|
272
272
|
title: "Enable {entityType}",
|
|
273
273
|
message: "Are you sure you want to enable the {entityType} {entityName}?",
|
|
@@ -278,18 +278,18 @@ const Sr = {
|
|
|
278
278
|
message: "Are you sure you want to disable the {entityType} {entityName}?",
|
|
279
279
|
confirmText: "Yes, disable"
|
|
280
280
|
}
|
|
281
|
-
},
|
|
282
|
-
deleteModal:
|
|
283
|
-
baseForm:
|
|
284
|
-
baseTable:
|
|
285
|
-
baseConfigCard:
|
|
286
|
-
filter:
|
|
287
|
-
debouncedFilter:
|
|
288
|
-
errors:
|
|
289
|
-
toggleModal:
|
|
281
|
+
}, Br = {
|
|
282
|
+
deleteModal: Tr,
|
|
283
|
+
baseForm: $r,
|
|
284
|
+
baseTable: Mr,
|
|
285
|
+
baseConfigCard: jr,
|
|
286
|
+
filter: Er,
|
|
287
|
+
debouncedFilter: Or,
|
|
288
|
+
errors: Fr,
|
|
289
|
+
toggleModal: Kr
|
|
290
290
|
};
|
|
291
291
|
function St() {
|
|
292
|
-
const e = It("en-us",
|
|
292
|
+
const e = It("en-us", Br);
|
|
293
293
|
return {
|
|
294
294
|
i18n: e,
|
|
295
295
|
i18nT: cn(e)
|
|
@@ -313,14 +313,14 @@ function pn() {
|
|
|
313
313
|
isValidUuid: (e) => e ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(e) : !1
|
|
314
314
|
};
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function Nr(e, n, t, r = {
|
|
317
317
|
fetchedItemsKey: "data",
|
|
318
318
|
searchKeys: ["id"]
|
|
319
319
|
}) {
|
|
320
320
|
t || (t = "100");
|
|
321
321
|
const { axiosInstance: o } = At({
|
|
322
322
|
headers: e.requestHeaders
|
|
323
|
-
}), { i18n: { t: a } } = St(), { debounce: i } =
|
|
323
|
+
}), { i18n: { t: a } } = St(), { debounce: i } = Ar(), s = i(async (I) => {
|
|
324
324
|
await C(I);
|
|
325
325
|
}, 200), l = O(!1), c = O(""), d = O(""), u = O([]), g = O([]), f = O(void 0), A = y(n);
|
|
326
326
|
let v = `${e.apiBaseUrl}${A}`;
|
|
@@ -343,8 +343,8 @@ function Kr(e, n, t, r = {
|
|
|
343
343
|
if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
|
|
344
344
|
let w = v + "";
|
|
345
345
|
I && (w += `/${I}`);
|
|
346
|
-
const { data:
|
|
347
|
-
r.fetchedItemsKey in
|
|
346
|
+
const { data: B } = await o.get(`${w}?size=${t}`);
|
|
347
|
+
r.fetchedItemsKey in B ? u.value = B[r.fetchedItemsKey] : B != null && B.id ? u.value = [B] : u.value = [];
|
|
348
348
|
} else if (I) {
|
|
349
349
|
const w = [];
|
|
350
350
|
p(I) && r.searchKeys.includes("id") ? w.push((async () => {
|
|
@@ -356,11 +356,11 @@ function Kr(e, n, t, r = {
|
|
|
356
356
|
return x[r.fetchedItemsKey];
|
|
357
357
|
})
|
|
358
358
|
);
|
|
359
|
-
const
|
|
360
|
-
u.value = [], (ne =
|
|
359
|
+
const B = await Promise.all(w), P = /* @__PURE__ */ new Set();
|
|
360
|
+
u.value = [], (ne = B == null ? void 0 : B.forEach) == null || ne.call(B, (k) => {
|
|
361
361
|
var x;
|
|
362
362
|
(x = k == null ? void 0 : k.forEach) == null || x.call(k, (T) => {
|
|
363
|
-
|
|
363
|
+
P.has(T.id) || (P.add(T.id), u.value.push(T));
|
|
364
364
|
});
|
|
365
365
|
});
|
|
366
366
|
} else
|
|
@@ -372,13 +372,13 @@ function Kr(e, n, t, r = {
|
|
|
372
372
|
}
|
|
373
373
|
else
|
|
374
374
|
l.value = !0, d.value = "", I ? (u.value = (H = f.value) == null ? void 0 : H.filter((w) => {
|
|
375
|
-
var
|
|
376
|
-
let
|
|
375
|
+
var B;
|
|
376
|
+
let P = !1;
|
|
377
377
|
for (const k of r.searchKeys) {
|
|
378
|
-
const x = typeof w[k] == "string" ? (
|
|
379
|
-
x != null && x.includes(I.toLowerCase()) && (
|
|
378
|
+
const x = typeof w[k] == "string" ? (B = w[k]) == null ? void 0 : B.toLowerCase() : w[k];
|
|
379
|
+
x != null && x.includes(I.toLowerCase()) && (P = !0);
|
|
380
380
|
}
|
|
381
|
-
return
|
|
381
|
+
return P;
|
|
382
382
|
}), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
|
|
383
383
|
};
|
|
384
384
|
return {
|
|
@@ -391,13 +391,13 @@ function Kr(e, n, t, r = {
|
|
|
391
391
|
debouncedQueryChange: s
|
|
392
392
|
};
|
|
393
393
|
}
|
|
394
|
-
function
|
|
394
|
+
function Pr(e, n) {
|
|
395
395
|
const t = y(n), r = M(
|
|
396
396
|
() => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
|
|
397
397
|
);
|
|
398
398
|
return r.value.search = "", (o) => `${r.value.href}/${o}`;
|
|
399
399
|
}
|
|
400
|
-
function
|
|
400
|
+
function Lr() {
|
|
401
401
|
const { i18n: { t: e } } = St();
|
|
402
402
|
return {
|
|
403
403
|
getMessageFromError: (n) => {
|
|
@@ -443,7 +443,7 @@ function fn(e, n) {
|
|
|
443
443
|
}
|
|
444
444
|
};
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Ur(e, n, t = "data") {
|
|
447
447
|
const r = y(n), { axiosInstance: o } = At({
|
|
448
448
|
headers: e.requestHeaders
|
|
449
449
|
}), a = fn(e, r), i = O({
|
|
@@ -485,7 +485,7 @@ function Pr(e, n, t = "data") {
|
|
|
485
485
|
}
|
|
486
486
|
}, fetcherState: i };
|
|
487
487
|
}
|
|
488
|
-
function
|
|
488
|
+
function qr() {
|
|
489
489
|
return {
|
|
490
490
|
convertKeyToTitle: (e, n = "_") => e ? e.split(n).map((t) => t.toLowerCase() === "id" ? t.toUpperCase() : t.charAt(0).toUpperCase() + t.substring(1)).join(" ") : ""
|
|
491
491
|
};
|
|
@@ -500,24 +500,24 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
500
500
|
}, Ut = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
|
|
501
501
|
const n = parseInt(e, 10);
|
|
502
502
|
return isNaN(n) ? e : n;
|
|
503
|
-
},
|
|
503
|
+
}, Rr = (e, n) => typeof e != typeof n ? [String(e), String(n)] : [e, n], Vr = (e, n) => {
|
|
504
504
|
if (Ut(e) || Ut(n))
|
|
505
505
|
return 0;
|
|
506
|
-
const [t, r] =
|
|
506
|
+
const [t, r] = Rr(qt(e), qt(n));
|
|
507
507
|
return t > r ? 1 : t < r ? -1 : 0;
|
|
508
508
|
}, Rt = (e, n) => {
|
|
509
509
|
for (let t = 0; t < Math.max(e.length, n.length); t++) {
|
|
510
|
-
const r =
|
|
510
|
+
const r = Vr(e[t] || "0", n[t] || "0");
|
|
511
511
|
if (r !== 0)
|
|
512
512
|
return r;
|
|
513
513
|
}
|
|
514
514
|
return 0;
|
|
515
|
-
},
|
|
515
|
+
}, Dr = (e, n) => {
|
|
516
516
|
const t = Lt(e), r = Lt(n), o = t.pop(), a = r.pop(), i = Rt(t, r);
|
|
517
517
|
return i !== 0 ? i : o && a ? Rt(o.split("."), a.split(".")) : o || a ? o ? -1 : 1 : 0;
|
|
518
518
|
}, Vt = (e, n, t) => {
|
|
519
|
-
|
|
520
|
-
const r =
|
|
519
|
+
Gr(t);
|
|
520
|
+
const r = Dr(e, n);
|
|
521
521
|
return gn[t].includes(r);
|
|
522
522
|
}, gn = {
|
|
523
523
|
">": [1],
|
|
@@ -526,18 +526,18 @@ const mn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
|
|
|
526
526
|
"<=": [-1, 0],
|
|
527
527
|
"<": [-1],
|
|
528
528
|
"!=": [-1, 1]
|
|
529
|
-
}, Dt = Object.keys(gn),
|
|
529
|
+
}, Dt = Object.keys(gn), Gr = (e) => {
|
|
530
530
|
if (typeof e != "string")
|
|
531
531
|
throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
|
|
532
532
|
if (Dt.indexOf(e) === -1)
|
|
533
533
|
throw new Error(`Invalid operator, expected one of ${Dt.join("|")}`);
|
|
534
|
-
},
|
|
535
|
-
function
|
|
534
|
+
}, Hr = (e) => typeof e == "string" && /^[v\d]/.test(e) && mn.test(e);
|
|
535
|
+
function zr(e) {
|
|
536
536
|
const { gatewayInfo: n, supportedRange: t } = e;
|
|
537
537
|
if (!n)
|
|
538
538
|
return !0;
|
|
539
539
|
const { edition: r, version: o } = n;
|
|
540
|
-
if (!
|
|
540
|
+
if (!Hr(o))
|
|
541
541
|
return console.error("Invalid version"), !1;
|
|
542
542
|
const a = t[r];
|
|
543
543
|
if (!a)
|
|
@@ -545,7 +545,7 @@ function Gr(e) {
|
|
|
545
545
|
const [i, s] = a;
|
|
546
546
|
return !(i && Vt(o, i, "<") || s && Vt(o, s, ">"));
|
|
547
547
|
}
|
|
548
|
-
function
|
|
548
|
+
function Jr(e) {
|
|
549
549
|
const n = O(0), t = O(0), r = O(!1);
|
|
550
550
|
return xe(e, (o) => {
|
|
551
551
|
o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
|
|
@@ -555,26 +555,26 @@ function Hr(e) {
|
|
|
555
555
|
}
|
|
556
556
|
const ue = {
|
|
557
557
|
useAxios: At,
|
|
558
|
-
useDebouncedFilter:
|
|
559
|
-
useDeleteUrlBuilder:
|
|
560
|
-
useErrors:
|
|
561
|
-
useFetcher:
|
|
558
|
+
useDebouncedFilter: Nr,
|
|
559
|
+
useDeleteUrlBuilder: Pr,
|
|
560
|
+
useErrors: Lr,
|
|
561
|
+
useFetcher: Ur,
|
|
562
562
|
useFetchUrlBuilder: fn,
|
|
563
563
|
useHelpers: pn,
|
|
564
|
-
useStringHelpers:
|
|
564
|
+
useStringHelpers: qr,
|
|
565
565
|
useI18n: St,
|
|
566
|
-
useGatewayFeatureSupported:
|
|
567
|
-
useTruncationDetector:
|
|
568
|
-
},
|
|
566
|
+
useGatewayFeatureSupported: zr,
|
|
567
|
+
useTruncationDetector: Jr
|
|
568
|
+
}, Wr = {
|
|
569
569
|
fail: "Failed to copy id to clipboard",
|
|
570
570
|
success: {
|
|
571
571
|
prefix: "Successfully",
|
|
572
572
|
content: " copied to clipboard"
|
|
573
573
|
}
|
|
574
|
-
},
|
|
575
|
-
message:
|
|
576
|
-
iconTitle:
|
|
577
|
-
},
|
|
574
|
+
}, Yr = "Copy to clipboard", Zr = {
|
|
575
|
+
message: Wr,
|
|
576
|
+
iconTitle: Yr
|
|
577
|
+
}, Qr = "kong-ui-copy-uuid-notify", Xr = { class: "kong-ui-copy-uuid" }, eo = ["onClick"], Gt = 15, to = /* @__PURE__ */ ae({
|
|
578
578
|
__name: "CopyUuid",
|
|
579
579
|
props: {
|
|
580
580
|
uuid: {
|
|
@@ -618,7 +618,7 @@ const ue = {
|
|
|
618
618
|
},
|
|
619
619
|
emits: ["success", "error"],
|
|
620
620
|
setup(e, { emit: n }) {
|
|
621
|
-
const t = e, { t: r } = It("en-us",
|
|
621
|
+
const t = e, { t: r } = It("en-us", Zr), o = t.notify || yr(Qr, () => {
|
|
622
622
|
}), a = M(() => t.idTooltip ? {
|
|
623
623
|
label: t.idTooltip,
|
|
624
624
|
positionFixed: !0,
|
|
@@ -649,8 +649,8 @@ const ue = {
|
|
|
649
649
|
}), i.value ? d(t.successTooltip) : n("success", t.uuid);
|
|
650
650
|
};
|
|
651
651
|
return (g, f) => {
|
|
652
|
-
const A =
|
|
653
|
-
return m(), j("div",
|
|
652
|
+
const A = N("KIcon"), v = N("KClipboardProvider");
|
|
653
|
+
return m(), j("div", Xr, [
|
|
654
654
|
e.format !== "hidden" ? (m(), V(ze(e.idTooltip ? "KTooltip" : "div"), ht({ key: 0 }, a.value, { "data-testid": "copy-id" }), {
|
|
655
655
|
default: h(() => [
|
|
656
656
|
R("div", {
|
|
@@ -659,13 +659,13 @@ const ue = {
|
|
|
659
659
|
e.truncated ? "truncated-uuid" : null,
|
|
660
660
|
e.useMono ? "mono" : null
|
|
661
661
|
])
|
|
662
|
-
},
|
|
662
|
+
}, K(c.value), 3)
|
|
663
663
|
]),
|
|
664
664
|
_: 1
|
|
665
665
|
}, 16)) : G("", !0),
|
|
666
666
|
(m(), V(ze(e.tooltip ? "KTooltip" : "div"), ht(l.value, { class: "uuid-icon-wrapper" }), {
|
|
667
667
|
default: h(() => [
|
|
668
|
-
|
|
668
|
+
F(v, null, {
|
|
669
669
|
default: h(({ copyToClipboard: p }) => [
|
|
670
670
|
R("span", {
|
|
671
671
|
"data-testid": "copy-to-clipboard",
|
|
@@ -673,7 +673,7 @@ const ue = {
|
|
|
673
673
|
tabindex: "0",
|
|
674
674
|
onClick: rt((S) => u(p), ["stop"])
|
|
675
675
|
}, [
|
|
676
|
-
|
|
676
|
+
F(A, {
|
|
677
677
|
class: "uuid-icon",
|
|
678
678
|
color: e.iconColor,
|
|
679
679
|
"hide-title": !!e.tooltip || void 0,
|
|
@@ -681,7 +681,7 @@ const ue = {
|
|
|
681
681
|
size: "16",
|
|
682
682
|
title: y(r)("iconTitle")
|
|
683
683
|
}, null, 8, ["color", "hide-title", "title"])
|
|
684
|
-
], 8,
|
|
684
|
+
], 8, eo)
|
|
685
685
|
]),
|
|
686
686
|
_: 1
|
|
687
687
|
})
|
|
@@ -691,15 +691,15 @@ const ue = {
|
|
|
691
691
|
]);
|
|
692
692
|
};
|
|
693
693
|
}
|
|
694
|
-
}),
|
|
694
|
+
}), no = (e, n) => {
|
|
695
695
|
const t = e.__vccOpts || e;
|
|
696
696
|
for (const [r, o] of n)
|
|
697
697
|
t[r] = o;
|
|
698
698
|
return t;
|
|
699
|
-
}, yn = /* @__PURE__ */
|
|
699
|
+
}, yn = /* @__PURE__ */ no(to, [["__scopeId", "data-v-bfdaf6f7"]]), ro = {
|
|
700
700
|
key: 0,
|
|
701
701
|
class: "config-card-fieldset-title"
|
|
702
|
-
},
|
|
702
|
+
}, oo = /* @__PURE__ */ ae({
|
|
703
703
|
__name: "JsonCardItem",
|
|
704
704
|
props: {
|
|
705
705
|
item: {
|
|
@@ -727,8 +727,8 @@ const ue = {
|
|
|
727
727
|
class: Ke(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
|
|
728
728
|
}, {
|
|
729
729
|
default: h(() => [
|
|
730
|
-
e.isArrayItem ? (m(), j("legend",
|
|
731
|
-
R("b", null,
|
|
730
|
+
e.isArrayItem ? (m(), j("legend", ro, [
|
|
731
|
+
R("b", null, K(s.value), 1)
|
|
732
732
|
])) : G("", !0),
|
|
733
733
|
(m(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (m(), V(xt, {
|
|
734
734
|
key: `${o.value}-property-${u}`,
|
|
@@ -747,7 +747,7 @@ const ue = {
|
|
|
747
747
|
for (const [r, o] of n)
|
|
748
748
|
t[r] = o;
|
|
749
749
|
return t;
|
|
750
|
-
}, hn = /* @__PURE__ */ ke(
|
|
750
|
+
}, hn = /* @__PURE__ */ ke(oo, [["__scopeId", "data-v-68ca83ec"]]), ao = /* @__PURE__ */ ae({
|
|
751
751
|
__name: "InternalLinkItem",
|
|
752
752
|
props: {
|
|
753
753
|
item: {
|
|
@@ -759,22 +759,22 @@ const ue = {
|
|
|
759
759
|
setup(e) {
|
|
760
760
|
const { i18n: { t: n } } = ue.useI18n();
|
|
761
761
|
return (t, r) => {
|
|
762
|
-
const o =
|
|
762
|
+
const o = N("KButton");
|
|
763
763
|
return m(), j("div", null, [
|
|
764
|
-
|
|
764
|
+
F(o, {
|
|
765
765
|
appearance: "btn-link",
|
|
766
766
|
class: "navigation-button",
|
|
767
767
|
onClick: r[0] || (r[0] = (a) => t.$emit("navigation-click", e.item))
|
|
768
768
|
}, {
|
|
769
769
|
default: h(() => [
|
|
770
|
-
Z(
|
|
770
|
+
Z(K(e.item.value || y(n)("baseConfigCard.commonFields.link")), 1)
|
|
771
771
|
]),
|
|
772
772
|
_: 1
|
|
773
773
|
})
|
|
774
774
|
]);
|
|
775
775
|
};
|
|
776
776
|
}
|
|
777
|
-
}),
|
|
777
|
+
}), io = /* @__PURE__ */ ke(ao, [["__scopeId", "data-v-7410504d"]]), so = /* @__PURE__ */ ae({
|
|
778
778
|
__name: "StatusBadge",
|
|
779
779
|
props: {
|
|
780
780
|
status: {
|
|
@@ -785,22 +785,22 @@ const ue = {
|
|
|
785
785
|
setup(e) {
|
|
786
786
|
const { i18n: { t: n } } = ue.useI18n();
|
|
787
787
|
return (t, r) => {
|
|
788
|
-
const o =
|
|
788
|
+
const o = N("KBadge");
|
|
789
789
|
return m(), V(o, {
|
|
790
790
|
appearance: e.status ? "success" : "neutral"
|
|
791
791
|
}, {
|
|
792
792
|
default: h(() => [
|
|
793
|
-
Z(
|
|
793
|
+
Z(K(e.status ? y(n)("baseConfigCard.statusBadge.enabledLabel") : y(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
794
794
|
]),
|
|
795
795
|
_: 1
|
|
796
796
|
}, 8, ["appearance"]);
|
|
797
797
|
};
|
|
798
798
|
}
|
|
799
|
-
}),
|
|
799
|
+
}), lo = "#0044f4", uo = "#e0e4ea", co = "#3a3f51", po = "1px", fo = "20px", mo = { class: "config-card-details-row" }, go = ["data-testid"], yo = ["data-testid"], ho = ["data-testid"], vo = ["data-testid"], bo = { key: 1 }, Co = ["data-testid"], ko = ["data-testid"], _o = ["data-testid"], wo = ["data-testid"], Io = {
|
|
800
800
|
name: "ConfigCardItem",
|
|
801
|
-
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge:
|
|
802
|
-
},
|
|
803
|
-
...
|
|
801
|
+
components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: so, InternalLinkItem: io }
|
|
802
|
+
}, Ao = /* @__PURE__ */ ae({
|
|
803
|
+
...Io,
|
|
804
804
|
props: {
|
|
805
805
|
item: {
|
|
806
806
|
type: Object,
|
|
@@ -820,8 +820,8 @@ const ue = {
|
|
|
820
820
|
emits: ["navigation-click"],
|
|
821
821
|
setup(e, { emit: n }) {
|
|
822
822
|
const t = e;
|
|
823
|
-
|
|
824
|
-
"1df60db4": c.value ? "none" : `solid ${y(
|
|
823
|
+
cr((f) => ({
|
|
824
|
+
"1df60db4": c.value ? "none" : `solid ${y(po)} ${y(uo)}`,
|
|
825
825
|
"21d1d34e": l.value && i.value ? "block" : "flex",
|
|
826
826
|
"4d3dc7e7": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
827
827
|
"4d400dc2": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
@@ -954,16 +954,16 @@ const ue = {
|
|
|
954
954
|
}
|
|
955
955
|
}), u = O(), { isTruncated: g } = ue.useTruncationDetector(u);
|
|
956
956
|
return (f, A) => {
|
|
957
|
-
const v =
|
|
958
|
-
return m(), j("div",
|
|
957
|
+
const v = N("KLabel"), p = N("KBadge"), S = N("KMethodBadge"), b = N("KTooltip");
|
|
958
|
+
return m(), j("div", mo, [
|
|
959
959
|
R("div", {
|
|
960
960
|
class: "config-card-details-label",
|
|
961
961
|
"data-testid": `${e.item.key}-label`
|
|
962
962
|
}, [
|
|
963
963
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
964
|
-
|
|
964
|
+
F(v, { "tooltip-attributes": { maxWidth: "500px" } }, Te({
|
|
965
965
|
default: h(() => [
|
|
966
|
-
Z(
|
|
966
|
+
Z(K(e.item.label) + " ", 1)
|
|
967
967
|
]),
|
|
968
968
|
_: 2
|
|
969
969
|
}, [
|
|
@@ -974,15 +974,15 @@ const ue = {
|
|
|
974
974
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
975
975
|
}, [
|
|
976
976
|
Y(f.$slots, "label-tooltip", {}, () => [
|
|
977
|
-
Z(
|
|
977
|
+
Z(K(e.item.tooltip), 1)
|
|
978
978
|
], !0)
|
|
979
|
-
], 8,
|
|
979
|
+
], 8, yo)
|
|
980
980
|
]),
|
|
981
981
|
key: "0"
|
|
982
982
|
} : void 0
|
|
983
983
|
]), 1024)
|
|
984
984
|
], !0)
|
|
985
|
-
], 8,
|
|
985
|
+
], 8, go),
|
|
986
986
|
R("div", {
|
|
987
987
|
class: "config-card-details-value",
|
|
988
988
|
"data-testid": `${e.item.key}-property-value`
|
|
@@ -990,8 +990,8 @@ const ue = {
|
|
|
990
990
|
Y(f.$slots, e.item.key, {
|
|
991
991
|
rowValue: e.item.value
|
|
992
992
|
}, () => [
|
|
993
|
-
i.value ? (m(), j("div",
|
|
994
|
-
(m(), V(ze(d.value.tag),
|
|
993
|
+
i.value ? (m(), j("div", bo, [
|
|
994
|
+
(m(), V(ze(d.value.tag), dr(pr(d.value.attrs)), {
|
|
995
995
|
default: h(() => [
|
|
996
996
|
d.value.additionalComponent === "KBadge" ? (m(), j("div", {
|
|
997
997
|
key: 0,
|
|
@@ -1004,11 +1004,11 @@ const ue = {
|
|
|
1004
1004
|
"truncation-tooltip": C
|
|
1005
1005
|
}, {
|
|
1006
1006
|
default: h(() => [
|
|
1007
|
-
Z(
|
|
1007
|
+
Z(K(C), 1)
|
|
1008
1008
|
]),
|
|
1009
1009
|
_: 2
|
|
1010
1010
|
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1011
|
-
], 8,
|
|
1011
|
+
], 8, Co)) : G("", !0),
|
|
1012
1012
|
d.value.additionalComponent === "CopyUuid" ? (m(), j("div", {
|
|
1013
1013
|
key: 1,
|
|
1014
1014
|
class: "copy-uuid-array",
|
|
@@ -1019,7 +1019,7 @@ const ue = {
|
|
|
1019
1019
|
"data-testid": `${e.item.key}-copy-uuid-${I}`,
|
|
1020
1020
|
uuid: C
|
|
1021
1021
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1022
|
-
], 8,
|
|
1022
|
+
], 8, ko)) : d.value.additionalComponent === "KMethodBadge" ? (m(), j("div", {
|
|
1023
1023
|
key: 2,
|
|
1024
1024
|
class: "method-badge-array",
|
|
1025
1025
|
"data-testid": `${e.item.key}-badge-methods`
|
|
@@ -1030,14 +1030,14 @@ const ue = {
|
|
|
1030
1030
|
"data-testid": `${e.item.key}-badge-method-${I}`,
|
|
1031
1031
|
"is-rounded": "",
|
|
1032
1032
|
label: C,
|
|
1033
|
-
method: y(
|
|
1033
|
+
method: y(kr).includes(C.toLowerCase()) ? C.toLowerCase() : "custom"
|
|
1034
1034
|
}, {
|
|
1035
1035
|
default: h(() => [
|
|
1036
|
-
Z(
|
|
1036
|
+
Z(K(C), 1)
|
|
1037
1037
|
]),
|
|
1038
1038
|
_: 2
|
|
1039
1039
|
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1040
|
-
], 8,
|
|
1040
|
+
], 8, _o)) : G("", !0),
|
|
1041
1041
|
d.value.additionalComponent === "JsonCardItem" ? (m(), j("div", {
|
|
1042
1042
|
key: 3,
|
|
1043
1043
|
"data-testid": `${t.item.key}-json-array-content`
|
|
@@ -1048,7 +1048,7 @@ const ue = {
|
|
|
1048
1048
|
"is-array-item": "",
|
|
1049
1049
|
item: C
|
|
1050
1050
|
}, null, 8, ["index", "item"]))), 128))
|
|
1051
|
-
], 8,
|
|
1051
|
+
], 8, wo)) : (m(), V(b, {
|
|
1052
1052
|
key: 4,
|
|
1053
1053
|
label: y(g) ? e.item.value : ""
|
|
1054
1054
|
}, {
|
|
@@ -1057,7 +1057,7 @@ const ue = {
|
|
|
1057
1057
|
ref_key: "textContent",
|
|
1058
1058
|
ref: u,
|
|
1059
1059
|
class: Ke(["attrs-data-text", { truncated: e.truncated }])
|
|
1060
|
-
},
|
|
1060
|
+
}, K(d.value.text), 3)
|
|
1061
1061
|
]),
|
|
1062
1062
|
_: 1
|
|
1063
1063
|
}, 8, ["label"]))
|
|
@@ -1067,46 +1067,46 @@ const ue = {
|
|
|
1067
1067
|
])) : (m(), j("div", {
|
|
1068
1068
|
key: 0,
|
|
1069
1069
|
"data-testid": `${e.item.key}-no-value`
|
|
1070
|
-
}, " – ", 8,
|
|
1070
|
+
}, " – ", 8, vo))
|
|
1071
1071
|
], !0)
|
|
1072
|
-
], 8,
|
|
1072
|
+
], 8, ho)
|
|
1073
1073
|
]);
|
|
1074
1074
|
};
|
|
1075
1075
|
}
|
|
1076
|
-
}), xt = /* @__PURE__ */ ke(
|
|
1076
|
+
}), xt = /* @__PURE__ */ ke(Ao, [["__scopeId", "data-v-307ab96d"]]);
|
|
1077
1077
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1078
1078
|
function vn(e) {
|
|
1079
1079
|
return typeof e > "u" || e === null;
|
|
1080
1080
|
}
|
|
1081
|
-
function
|
|
1081
|
+
function So(e) {
|
|
1082
1082
|
return typeof e == "object" && e !== null;
|
|
1083
1083
|
}
|
|
1084
|
-
function
|
|
1084
|
+
function xo(e) {
|
|
1085
1085
|
return Array.isArray(e) ? e : vn(e) ? [] : [e];
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1087
|
+
function To(e, n) {
|
|
1088
1088
|
var t, r, o, a;
|
|
1089
1089
|
if (n)
|
|
1090
1090
|
for (a = Object.keys(n), t = 0, r = a.length; t < r; t += 1)
|
|
1091
1091
|
o = a[t], e[o] = n[o];
|
|
1092
1092
|
return e;
|
|
1093
1093
|
}
|
|
1094
|
-
function
|
|
1094
|
+
function $o(e, n) {
|
|
1095
1095
|
var t = "", r;
|
|
1096
1096
|
for (r = 0; r < n; r += 1)
|
|
1097
1097
|
t += e;
|
|
1098
1098
|
return t;
|
|
1099
1099
|
}
|
|
1100
|
-
function
|
|
1100
|
+
function Mo(e) {
|
|
1101
1101
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1102
1102
|
}
|
|
1103
|
-
var
|
|
1104
|
-
isNothing:
|
|
1105
|
-
isObject:
|
|
1106
|
-
toArray:
|
|
1107
|
-
repeat:
|
|
1108
|
-
isNegativeZero:
|
|
1109
|
-
extend:
|
|
1103
|
+
var jo = vn, Eo = So, Oo = xo, Fo = $o, Ko = Mo, Bo = To, se = {
|
|
1104
|
+
isNothing: jo,
|
|
1105
|
+
isObject: Eo,
|
|
1106
|
+
toArray: Oo,
|
|
1107
|
+
repeat: Fo,
|
|
1108
|
+
isNegativeZero: Ko,
|
|
1109
|
+
extend: Bo
|
|
1110
1110
|
};
|
|
1111
1111
|
function bn(e, n) {
|
|
1112
1112
|
var t = "", r = e.reason || "(unknown reason)";
|
|
@@ -1134,7 +1134,7 @@ function mt(e, n, t, r, o) {
|
|
|
1134
1134
|
function gt(e, n) {
|
|
1135
1135
|
return se.repeat(" ", n - e.length) + e;
|
|
1136
1136
|
}
|
|
1137
|
-
function
|
|
1137
|
+
function No(e, n) {
|
|
1138
1138
|
if (n = Object.create(n || null), !e.buffer)
|
|
1139
1139
|
return null;
|
|
1140
1140
|
n.maxLength || (n.maxLength = 79), typeof n.indent != "number" && (n.indent = 1), typeof n.linesBefore != "number" && (n.linesBefore = 3), typeof n.linesAfter != "number" && (n.linesAfter = 2);
|
|
@@ -1164,7 +1164,7 @@ function Ko(e, n) {
|
|
|
1164
1164
|
`;
|
|
1165
1165
|
return s.replace(/\n$/, "");
|
|
1166
1166
|
}
|
|
1167
|
-
var
|
|
1167
|
+
var Po = No, Lo = [
|
|
1168
1168
|
"kind",
|
|
1169
1169
|
"multi",
|
|
1170
1170
|
"resolve",
|
|
@@ -1175,12 +1175,12 @@ var No = Ko, Bo = [
|
|
|
1175
1175
|
"representName",
|
|
1176
1176
|
"defaultStyle",
|
|
1177
1177
|
"styleAliases"
|
|
1178
|
-
],
|
|
1178
|
+
], Uo = [
|
|
1179
1179
|
"scalar",
|
|
1180
1180
|
"sequence",
|
|
1181
1181
|
"mapping"
|
|
1182
1182
|
];
|
|
1183
|
-
function
|
|
1183
|
+
function qo(e) {
|
|
1184
1184
|
var n = {};
|
|
1185
1185
|
return e !== null && Object.keys(e).forEach(function(t) {
|
|
1186
1186
|
e[t].forEach(function(r) {
|
|
@@ -1188,18 +1188,18 @@ function Lo(e) {
|
|
|
1188
1188
|
});
|
|
1189
1189
|
}), n;
|
|
1190
1190
|
}
|
|
1191
|
-
function
|
|
1191
|
+
function Ro(e, n) {
|
|
1192
1192
|
if (n = n || {}, Object.keys(n).forEach(function(t) {
|
|
1193
|
-
if (
|
|
1193
|
+
if (Lo.indexOf(t) === -1)
|
|
1194
1194
|
throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
|
|
1195
1195
|
}), this.options = n, this.tag = e, this.kind = n.kind || null, this.resolve = n.resolve || function() {
|
|
1196
1196
|
return !0;
|
|
1197
1197
|
}, this.construct = n.construct || function(t) {
|
|
1198
1198
|
return t;
|
|
1199
|
-
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases =
|
|
1199
|
+
}, this.instanceOf = n.instanceOf || null, this.predicate = n.predicate || null, this.represent = n.represent || null, this.representName = n.representName || null, this.defaultStyle = n.defaultStyle || null, this.multi = n.multi || !1, this.styleAliases = qo(n.styleAliases || null), Uo.indexOf(this.kind) === -1)
|
|
1200
1200
|
throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
|
|
1201
1201
|
}
|
|
1202
|
-
var de =
|
|
1202
|
+
var de = Ro;
|
|
1203
1203
|
function Ht(e, n) {
|
|
1204
1204
|
var t = [];
|
|
1205
1205
|
return e[n].forEach(function(r) {
|
|
@@ -1209,7 +1209,7 @@ function Ht(e, n) {
|
|
|
1209
1209
|
}), t[o] = r;
|
|
1210
1210
|
}), t;
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1212
|
+
function Vo() {
|
|
1213
1213
|
var e = {
|
|
1214
1214
|
scalar: {},
|
|
1215
1215
|
sequence: {},
|
|
@@ -1254,7 +1254,7 @@ vt.prototype.extend = function(e) {
|
|
|
1254
1254
|
throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
|
|
1255
1255
|
});
|
|
1256
1256
|
var r = Object.create(vt.prototype);
|
|
1257
|
-
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap =
|
|
1257
|
+
return r.implicit = (this.implicit || []).concat(n), r.explicit = (this.explicit || []).concat(t), r.compiledImplicit = Ht(r, "implicit"), r.compiledExplicit = Ht(r, "explicit"), r.compiledTypeMap = Vo(r.compiledImplicit, r.compiledExplicit), r;
|
|
1258
1258
|
};
|
|
1259
1259
|
var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
|
|
1260
1260
|
kind: "scalar",
|
|
@@ -1278,23 +1278,23 @@ var Cn = vt, kn = new de("tag:yaml.org,2002:str", {
|
|
|
1278
1278
|
wn
|
|
1279
1279
|
]
|
|
1280
1280
|
});
|
|
1281
|
-
function
|
|
1281
|
+
function Do(e) {
|
|
1282
1282
|
if (e === null)
|
|
1283
1283
|
return !0;
|
|
1284
1284
|
var n = e.length;
|
|
1285
1285
|
return n === 1 && e === "~" || n === 4 && (e === "null" || e === "Null" || e === "NULL");
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function Go() {
|
|
1288
1288
|
return null;
|
|
1289
1289
|
}
|
|
1290
|
-
function
|
|
1290
|
+
function Ho(e) {
|
|
1291
1291
|
return e === null;
|
|
1292
1292
|
}
|
|
1293
1293
|
var An = new de("tag:yaml.org,2002:null", {
|
|
1294
1294
|
kind: "scalar",
|
|
1295
|
-
resolve:
|
|
1296
|
-
construct:
|
|
1297
|
-
predicate:
|
|
1295
|
+
resolve: Do,
|
|
1296
|
+
construct: Go,
|
|
1297
|
+
predicate: Ho,
|
|
1298
1298
|
represent: {
|
|
1299
1299
|
canonical: function() {
|
|
1300
1300
|
return "~";
|
|
@@ -1314,23 +1314,23 @@ var An = new de("tag:yaml.org,2002:null", {
|
|
|
1314
1314
|
},
|
|
1315
1315
|
defaultStyle: "lowercase"
|
|
1316
1316
|
});
|
|
1317
|
-
function
|
|
1317
|
+
function zo(e) {
|
|
1318
1318
|
if (e === null)
|
|
1319
1319
|
return !1;
|
|
1320
1320
|
var n = e.length;
|
|
1321
1321
|
return n === 4 && (e === "true" || e === "True" || e === "TRUE") || n === 5 && (e === "false" || e === "False" || e === "FALSE");
|
|
1322
1322
|
}
|
|
1323
|
-
function
|
|
1323
|
+
function Jo(e) {
|
|
1324
1324
|
return e === "true" || e === "True" || e === "TRUE";
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function Wo(e) {
|
|
1327
1327
|
return Object.prototype.toString.call(e) === "[object Boolean]";
|
|
1328
1328
|
}
|
|
1329
1329
|
var Sn = new de("tag:yaml.org,2002:bool", {
|
|
1330
1330
|
kind: "scalar",
|
|
1331
|
-
resolve:
|
|
1332
|
-
construct:
|
|
1333
|
-
predicate:
|
|
1331
|
+
resolve: zo,
|
|
1332
|
+
construct: Jo,
|
|
1333
|
+
predicate: Wo,
|
|
1334
1334
|
represent: {
|
|
1335
1335
|
lowercase: function(e) {
|
|
1336
1336
|
return e ? "true" : "false";
|
|
@@ -1344,16 +1344,16 @@ var Sn = new de("tag:yaml.org,2002:bool", {
|
|
|
1344
1344
|
},
|
|
1345
1345
|
defaultStyle: "lowercase"
|
|
1346
1346
|
});
|
|
1347
|
-
function
|
|
1347
|
+
function Yo(e) {
|
|
1348
1348
|
return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
|
|
1349
1349
|
}
|
|
1350
|
-
function
|
|
1350
|
+
function Zo(e) {
|
|
1351
1351
|
return 48 <= e && e <= 55;
|
|
1352
1352
|
}
|
|
1353
|
-
function
|
|
1353
|
+
function Qo(e) {
|
|
1354
1354
|
return 48 <= e && e <= 57;
|
|
1355
1355
|
}
|
|
1356
|
-
function
|
|
1356
|
+
function Xo(e) {
|
|
1357
1357
|
if (e === null)
|
|
1358
1358
|
return !1;
|
|
1359
1359
|
var n = e.length, t = 0, r = !1, o;
|
|
@@ -1374,7 +1374,7 @@ function Zo(e) {
|
|
|
1374
1374
|
if (o === "x") {
|
|
1375
1375
|
for (t++; t < n; t++)
|
|
1376
1376
|
if (o = e[t], o !== "_") {
|
|
1377
|
-
if (!
|
|
1377
|
+
if (!Yo(e.charCodeAt(t)))
|
|
1378
1378
|
return !1;
|
|
1379
1379
|
r = !0;
|
|
1380
1380
|
}
|
|
@@ -1383,7 +1383,7 @@ function Zo(e) {
|
|
|
1383
1383
|
if (o === "o") {
|
|
1384
1384
|
for (t++; t < n; t++)
|
|
1385
1385
|
if (o = e[t], o !== "_") {
|
|
1386
|
-
if (!
|
|
1386
|
+
if (!Zo(e.charCodeAt(t)))
|
|
1387
1387
|
return !1;
|
|
1388
1388
|
r = !0;
|
|
1389
1389
|
}
|
|
@@ -1394,13 +1394,13 @@ function Zo(e) {
|
|
|
1394
1394
|
return !1;
|
|
1395
1395
|
for (; t < n; t++)
|
|
1396
1396
|
if (o = e[t], o !== "_") {
|
|
1397
|
-
if (!
|
|
1397
|
+
if (!Qo(e.charCodeAt(t)))
|
|
1398
1398
|
return !1;
|
|
1399
1399
|
r = !0;
|
|
1400
1400
|
}
|
|
1401
1401
|
return !(!r || o === "_");
|
|
1402
1402
|
}
|
|
1403
|
-
function
|
|
1403
|
+
function ea(e) {
|
|
1404
1404
|
var n = e, t = 1, r;
|
|
1405
1405
|
if (n.indexOf("_") !== -1 && (n = n.replace(/_/g, "")), r = n[0], (r === "-" || r === "+") && (r === "-" && (t = -1), n = n.slice(1), r = n[0]), n === "0")
|
|
1406
1406
|
return 0;
|
|
@@ -1414,14 +1414,14 @@ function Qo(e) {
|
|
|
1414
1414
|
}
|
|
1415
1415
|
return t * parseInt(n, 10);
|
|
1416
1416
|
}
|
|
1417
|
-
function
|
|
1417
|
+
function ta(e) {
|
|
1418
1418
|
return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
|
|
1419
1419
|
}
|
|
1420
1420
|
var xn = new de("tag:yaml.org,2002:int", {
|
|
1421
1421
|
kind: "scalar",
|
|
1422
|
-
resolve:
|
|
1423
|
-
construct:
|
|
1424
|
-
predicate:
|
|
1422
|
+
resolve: Xo,
|
|
1423
|
+
construct: ea,
|
|
1424
|
+
predicate: ta,
|
|
1425
1425
|
represent: {
|
|
1426
1426
|
binary: function(e) {
|
|
1427
1427
|
return e >= 0 ? "0b" + e.toString(2) : "-0b" + e.toString(2).slice(1);
|
|
@@ -1444,21 +1444,21 @@ var xn = new de("tag:yaml.org,2002:int", {
|
|
|
1444
1444
|
decimal: [10, "dec"],
|
|
1445
1445
|
hexadecimal: [16, "hex"]
|
|
1446
1446
|
}
|
|
1447
|
-
}),
|
|
1447
|
+
}), na = new RegExp(
|
|
1448
1448
|
// 2.5e4, 2.5 and integers
|
|
1449
1449
|
"^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"
|
|
1450
1450
|
);
|
|
1451
|
-
function
|
|
1452
|
-
return !(e === null || !
|
|
1451
|
+
function ra(e) {
|
|
1452
|
+
return !(e === null || !na.test(e) || // Quick hack to not allow integers end with `_`
|
|
1453
1453
|
// Probably should update regexp & check speed
|
|
1454
1454
|
e[e.length - 1] === "_");
|
|
1455
1455
|
}
|
|
1456
|
-
function
|
|
1456
|
+
function oa(e) {
|
|
1457
1457
|
var n, t;
|
|
1458
1458
|
return n = e.replace(/_/g, "").toLowerCase(), t = n[0] === "-" ? -1 : 1, "+-".indexOf(n[0]) >= 0 && (n = n.slice(1)), n === ".inf" ? t === 1 ? Number.POSITIVE_INFINITY : Number.NEGATIVE_INFINITY : n === ".nan" ? NaN : t * parseFloat(n, 10);
|
|
1459
1459
|
}
|
|
1460
|
-
var
|
|
1461
|
-
function
|
|
1460
|
+
var aa = /^[-+]?[0-9]+e/;
|
|
1461
|
+
function ia(e, n) {
|
|
1462
1462
|
var t;
|
|
1463
1463
|
if (isNaN(e))
|
|
1464
1464
|
switch (n) {
|
|
@@ -1489,17 +1489,17 @@ function oa(e, n) {
|
|
|
1489
1489
|
}
|
|
1490
1490
|
else if (se.isNegativeZero(e))
|
|
1491
1491
|
return "-0.0";
|
|
1492
|
-
return t = e.toString(10),
|
|
1492
|
+
return t = e.toString(10), aa.test(t) ? t.replace("e", ".e") : t;
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function sa(e) {
|
|
1495
1495
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || se.isNegativeZero(e));
|
|
1496
1496
|
}
|
|
1497
1497
|
var Tn = new de("tag:yaml.org,2002:float", {
|
|
1498
1498
|
kind: "scalar",
|
|
1499
|
-
resolve:
|
|
1500
|
-
construct:
|
|
1501
|
-
predicate:
|
|
1502
|
-
represent:
|
|
1499
|
+
resolve: ra,
|
|
1500
|
+
construct: oa,
|
|
1501
|
+
predicate: sa,
|
|
1502
|
+
represent: ia,
|
|
1503
1503
|
defaultStyle: "lowercase"
|
|
1504
1504
|
}), $n = In.extend({
|
|
1505
1505
|
implicit: [
|
|
@@ -1513,10 +1513,10 @@ var Tn = new de("tag:yaml.org,2002:float", {
|
|
|
1513
1513
|
), En = new RegExp(
|
|
1514
1514
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
|
|
1515
1515
|
);
|
|
1516
|
-
function
|
|
1516
|
+
function la(e) {
|
|
1517
1517
|
return e === null ? !1 : jn.exec(e) !== null || En.exec(e) !== null;
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function ua(e) {
|
|
1520
1520
|
var n, t, r, o, a, i, s, l = 0, c = null, d, u, g;
|
|
1521
1521
|
if (n = jn.exec(e), n === null && (n = En.exec(e)), n === null)
|
|
1522
1522
|
throw new Error("Date resolve error");
|
|
@@ -1529,25 +1529,25 @@ function sa(e) {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
return n[9] && (d = +n[10], u = +(n[11] || 0), c = (d * 60 + u) * 6e4, n[9] === "-" && (c = -c)), g = new Date(Date.UTC(t, r, o, a, i, s, l)), c && g.setTime(g.getTime() - c), g;
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1532
|
+
function ca(e) {
|
|
1533
1533
|
return e.toISOString();
|
|
1534
1534
|
}
|
|
1535
1535
|
var On = new de("tag:yaml.org,2002:timestamp", {
|
|
1536
1536
|
kind: "scalar",
|
|
1537
|
-
resolve:
|
|
1538
|
-
construct:
|
|
1537
|
+
resolve: la,
|
|
1538
|
+
construct: ua,
|
|
1539
1539
|
instanceOf: Date,
|
|
1540
|
-
represent:
|
|
1540
|
+
represent: ca
|
|
1541
1541
|
});
|
|
1542
|
-
function
|
|
1542
|
+
function da(e) {
|
|
1543
1543
|
return e === "<<" || e === null;
|
|
1544
1544
|
}
|
|
1545
1545
|
var Fn = new de("tag:yaml.org,2002:merge", {
|
|
1546
1546
|
kind: "scalar",
|
|
1547
|
-
resolve:
|
|
1547
|
+
resolve: da
|
|
1548
1548
|
}), Tt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1549
1549
|
\r`;
|
|
1550
|
-
function
|
|
1550
|
+
function pa(e) {
|
|
1551
1551
|
if (e === null)
|
|
1552
1552
|
return !1;
|
|
1553
1553
|
var n, t, r = 0, o = e.length, a = Tt;
|
|
@@ -1559,37 +1559,37 @@ function ca(e) {
|
|
|
1559
1559
|
}
|
|
1560
1560
|
return r % 8 === 0;
|
|
1561
1561
|
}
|
|
1562
|
-
function
|
|
1562
|
+
function fa(e) {
|
|
1563
1563
|
var n, t, r = e.replace(/[\r\n=]/g, ""), o = r.length, a = Tt, i = 0, s = [];
|
|
1564
1564
|
for (n = 0; n < o; n++)
|
|
1565
1565
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | a.indexOf(r.charAt(n));
|
|
1566
1566
|
return t = o % 4 * 6, t === 0 ? (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)) : t === 18 ? (s.push(i >> 10 & 255), s.push(i >> 2 & 255)) : t === 12 && s.push(i >> 4 & 255), new Uint8Array(s);
|
|
1567
1567
|
}
|
|
1568
|
-
function
|
|
1568
|
+
function ma(e) {
|
|
1569
1569
|
var n = "", t = 0, r, o, a = e.length, i = Tt;
|
|
1570
1570
|
for (r = 0; r < a; r++)
|
|
1571
1571
|
r % 3 === 0 && r && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[r];
|
|
1572
1572
|
return o = a % 3, o === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : o === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : o === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
1573
1573
|
}
|
|
1574
|
-
function
|
|
1574
|
+
function ga(e) {
|
|
1575
1575
|
return Object.prototype.toString.call(e) === "[object Uint8Array]";
|
|
1576
1576
|
}
|
|
1577
1577
|
var Kn = new de("tag:yaml.org,2002:binary", {
|
|
1578
1578
|
kind: "scalar",
|
|
1579
|
-
resolve:
|
|
1580
|
-
construct:
|
|
1581
|
-
predicate:
|
|
1582
|
-
represent:
|
|
1583
|
-
}),
|
|
1584
|
-
function
|
|
1579
|
+
resolve: pa,
|
|
1580
|
+
construct: fa,
|
|
1581
|
+
predicate: ga,
|
|
1582
|
+
represent: ma
|
|
1583
|
+
}), ya = Object.prototype.hasOwnProperty, ha = Object.prototype.toString;
|
|
1584
|
+
function va(e) {
|
|
1585
1585
|
if (e === null)
|
|
1586
1586
|
return !0;
|
|
1587
1587
|
var n = [], t, r, o, a, i, s = e;
|
|
1588
1588
|
for (t = 0, r = s.length; t < r; t += 1) {
|
|
1589
|
-
if (o = s[t], i = !1,
|
|
1589
|
+
if (o = s[t], i = !1, ha.call(o) !== "[object Object]")
|
|
1590
1590
|
return !1;
|
|
1591
1591
|
for (a in o)
|
|
1592
|
-
if (
|
|
1592
|
+
if (ya.call(o, a))
|
|
1593
1593
|
if (!i)
|
|
1594
1594
|
i = !0;
|
|
1595
1595
|
else
|
|
@@ -1603,26 +1603,26 @@ function ya(e) {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
return !0;
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function ba(e) {
|
|
1607
1607
|
return e !== null ? e : [];
|
|
1608
1608
|
}
|
|
1609
|
-
var
|
|
1609
|
+
var Bn = new de("tag:yaml.org,2002:omap", {
|
|
1610
1610
|
kind: "sequence",
|
|
1611
|
-
resolve:
|
|
1612
|
-
construct:
|
|
1613
|
-
}),
|
|
1614
|
-
function
|
|
1611
|
+
resolve: va,
|
|
1612
|
+
construct: ba
|
|
1613
|
+
}), Ca = Object.prototype.toString;
|
|
1614
|
+
function ka(e) {
|
|
1615
1615
|
if (e === null)
|
|
1616
1616
|
return !0;
|
|
1617
1617
|
var n, t, r, o, a, i = e;
|
|
1618
1618
|
for (a = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1619
|
-
if (r = i[n],
|
|
1619
|
+
if (r = i[n], Ca.call(r) !== "[object Object]" || (o = Object.keys(r), o.length !== 1))
|
|
1620
1620
|
return !1;
|
|
1621
1621
|
a[n] = [o[0], r[o[0]]];
|
|
1622
1622
|
}
|
|
1623
1623
|
return !0;
|
|
1624
1624
|
}
|
|
1625
|
-
function
|
|
1625
|
+
function _a(e) {
|
|
1626
1626
|
if (e === null)
|
|
1627
1627
|
return [];
|
|
1628
1628
|
var n, t, r, o, a, i = e;
|
|
@@ -1630,27 +1630,27 @@ function Ca(e) {
|
|
|
1630
1630
|
r = i[n], o = Object.keys(r), a[n] = [o[0], r[o[0]]];
|
|
1631
1631
|
return a;
|
|
1632
1632
|
}
|
|
1633
|
-
var
|
|
1633
|
+
var Nn = new de("tag:yaml.org,2002:pairs", {
|
|
1634
1634
|
kind: "sequence",
|
|
1635
|
-
resolve:
|
|
1636
|
-
construct:
|
|
1637
|
-
}),
|
|
1638
|
-
function
|
|
1635
|
+
resolve: ka,
|
|
1636
|
+
construct: _a
|
|
1637
|
+
}), wa = Object.prototype.hasOwnProperty;
|
|
1638
|
+
function Ia(e) {
|
|
1639
1639
|
if (e === null)
|
|
1640
1640
|
return !0;
|
|
1641
1641
|
var n, t = e;
|
|
1642
1642
|
for (n in t)
|
|
1643
|
-
if (
|
|
1643
|
+
if (wa.call(t, n) && t[n] !== null)
|
|
1644
1644
|
return !1;
|
|
1645
1645
|
return !0;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1647
|
+
function Aa(e) {
|
|
1648
1648
|
return e !== null ? e : {};
|
|
1649
1649
|
}
|
|
1650
1650
|
var Pn = new de("tag:yaml.org,2002:set", {
|
|
1651
1651
|
kind: "mapping",
|
|
1652
|
-
resolve:
|
|
1653
|
-
construct:
|
|
1652
|
+
resolve: Ia,
|
|
1653
|
+
construct: Aa
|
|
1654
1654
|
}), $t = Mn.extend({
|
|
1655
1655
|
implicit: [
|
|
1656
1656
|
On,
|
|
@@ -1658,11 +1658,11 @@ var Pn = new de("tag:yaml.org,2002:set", {
|
|
|
1658
1658
|
],
|
|
1659
1659
|
explicit: [
|
|
1660
1660
|
Kn,
|
|
1661
|
-
Nn,
|
|
1662
1661
|
Bn,
|
|
1662
|
+
Nn,
|
|
1663
1663
|
Pn
|
|
1664
1664
|
]
|
|
1665
|
-
}), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1,
|
|
1665
|
+
}), je = Object.prototype.hasOwnProperty, ot = 1, Ln = 2, Un = 3, at = 4, yt = 1, Sa = 2, zt = 3, xa = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ta = /[\x85\u2028\u2029]/, $a = /[,\[\]\{\}]/, qn = /^(?:!|!!|![a-z\-]+!)$/i, Rn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
|
|
1666
1666
|
function Jt(e) {
|
|
1667
1667
|
return Object.prototype.toString.call(e);
|
|
1668
1668
|
}
|
|
@@ -1678,21 +1678,21 @@ function he(e) {
|
|
|
1678
1678
|
function Ue(e) {
|
|
1679
1679
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1680
1680
|
}
|
|
1681
|
-
function
|
|
1681
|
+
function Ma(e) {
|
|
1682
1682
|
var n;
|
|
1683
1683
|
return 48 <= e && e <= 57 ? e - 48 : (n = e | 32, 97 <= n && n <= 102 ? n - 97 + 10 : -1);
|
|
1684
1684
|
}
|
|
1685
|
-
function
|
|
1685
|
+
function ja(e) {
|
|
1686
1686
|
return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
|
|
1687
1687
|
}
|
|
1688
|
-
function
|
|
1688
|
+
function Ea(e) {
|
|
1689
1689
|
return 48 <= e && e <= 57 ? e - 48 : -1;
|
|
1690
1690
|
}
|
|
1691
1691
|
function Wt(e) {
|
|
1692
1692
|
return e === 48 ? "\0" : e === 97 ? "\x07" : e === 98 ? "\b" : e === 116 || e === 9 ? " " : e === 110 ? `
|
|
1693
1693
|
` : e === 118 ? "\v" : e === 102 ? "\f" : e === 114 ? "\r" : e === 101 ? "\x1B" : e === 32 ? " " : e === 34 ? '"' : e === 47 ? "/" : e === 92 ? "\\" : e === 78 ? "
" : e === 95 ? " " : e === 76 ? "\u2028" : e === 80 ? "\u2029" : "";
|
|
1694
1694
|
}
|
|
1695
|
-
function
|
|
1695
|
+
function Oa(e) {
|
|
1696
1696
|
return e <= 65535 ? String.fromCharCode(e) : String.fromCharCode(
|
|
1697
1697
|
(e - 65536 >> 10) + 55296,
|
|
1698
1698
|
(e - 65536 & 1023) + 56320
|
|
@@ -1701,7 +1701,7 @@ function ja(e) {
|
|
|
1701
1701
|
var Vn = new Array(256), Dn = new Array(256);
|
|
1702
1702
|
for (var Pe = 0; Pe < 256; Pe++)
|
|
1703
1703
|
Vn[Pe] = Wt(Pe) ? 1 : 0, Dn[Pe] = Wt(Pe);
|
|
1704
|
-
function
|
|
1704
|
+
function Fa(e, n) {
|
|
1705
1705
|
this.input = e, this.filename = n.filename || null, this.schema = n.schema || $t, this.onWarning = n.onWarning || null, this.legacy = n.legacy || !1, this.json = n.json || !1, this.listener = n.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
|
|
1706
1706
|
}
|
|
1707
1707
|
function Gn(e, n) {
|
|
@@ -1713,7 +1713,7 @@ function Gn(e, n) {
|
|
|
1713
1713
|
line: e.line,
|
|
1714
1714
|
column: e.position - e.lineStart
|
|
1715
1715
|
};
|
|
1716
|
-
return t.snippet =
|
|
1716
|
+
return t.snippet = Po(t), new me(n, t);
|
|
1717
1717
|
}
|
|
1718
1718
|
function $(e, n) {
|
|
1719
1719
|
throw Gn(e, n);
|
|
@@ -1744,7 +1744,7 @@ function Me(e, n, t, r) {
|
|
|
1744
1744
|
for (o = 0, a = s.length; o < a; o += 1)
|
|
1745
1745
|
i = s.charCodeAt(o), i === 9 || 32 <= i && i <= 1114111 || $(e, "expected valid JSON character");
|
|
1746
1746
|
else
|
|
1747
|
-
|
|
1747
|
+
xa.test(s) && $(e, "the stream contains non-printable characters");
|
|
1748
1748
|
e.result += s;
|
|
1749
1749
|
}
|
|
1750
1750
|
}
|
|
@@ -1801,7 +1801,7 @@ function jt(e, n) {
|
|
|
1801
1801
|
n === 1 ? e.result += " " : n > 1 && (e.result += se.repeat(`
|
|
1802
1802
|
`, n - 1));
|
|
1803
1803
|
}
|
|
1804
|
-
function
|
|
1804
|
+
function Ka(e, n, t) {
|
|
1805
1805
|
var r, o, a, i, s, l, c, d, u = e.kind, g = e.result, f;
|
|
1806
1806
|
if (f = e.input.charCodeAt(e.position), he(f) || Ue(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (o = e.input.charCodeAt(e.position + 1), he(o) || t && Ue(o)))
|
|
1807
1807
|
return !1;
|
|
@@ -1828,7 +1828,7 @@ function Oa(e, n, t) {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
return Me(e, a, i, !1), e.result ? !0 : (e.kind = u, e.result = g, !1);
|
|
1830
1830
|
}
|
|
1831
|
-
function
|
|
1831
|
+
function Ba(e, n) {
|
|
1832
1832
|
var t, r, o;
|
|
1833
1833
|
if (t = e.input.charCodeAt(e.position), t !== 39)
|
|
1834
1834
|
return !1;
|
|
@@ -1842,7 +1842,7 @@ function Fa(e, n) {
|
|
|
1842
1842
|
we(t) ? (Me(e, r, o, !0), jt(e, oe(e, !1, n)), r = o = e.position) : e.position === e.lineStart && dt(e) ? $(e, "unexpected end of the document within a single quoted scalar") : (e.position++, o = e.position);
|
|
1843
1843
|
$(e, "unexpected end of the stream within a single quoted scalar");
|
|
1844
1844
|
}
|
|
1845
|
-
function
|
|
1845
|
+
function Na(e, n) {
|
|
1846
1846
|
var t, r, o, a, i, s;
|
|
1847
1847
|
if (s = e.input.charCodeAt(e.position), s !== 34)
|
|
1848
1848
|
return !1;
|
|
@@ -1854,10 +1854,10 @@ function Ka(e, n) {
|
|
|
1854
1854
|
oe(e, !1, n);
|
|
1855
1855
|
else if (s < 256 && Vn[s])
|
|
1856
1856
|
e.result += Dn[s], e.position++;
|
|
1857
|
-
else if ((i =
|
|
1857
|
+
else if ((i = ja(s)) > 0) {
|
|
1858
1858
|
for (o = i, a = 0; o > 0; o--)
|
|
1859
|
-
s = e.input.charCodeAt(++e.position), (i =
|
|
1860
|
-
e.result +=
|
|
1859
|
+
s = e.input.charCodeAt(++e.position), (i = Ma(s)) >= 0 ? a = (a << 4) + i : $(e, "expected hexadecimal character");
|
|
1860
|
+
e.result += Oa(a), e.position++;
|
|
1861
1861
|
} else
|
|
1862
1862
|
$(e, "unknown escape sequence");
|
|
1863
1863
|
t = r = e.position;
|
|
@@ -1866,7 +1866,7 @@ function Ka(e, n) {
|
|
|
1866
1866
|
}
|
|
1867
1867
|
$(e, "unexpected end of the stream within a double quoted scalar");
|
|
1868
1868
|
}
|
|
1869
|
-
function
|
|
1869
|
+
function Pa(e, n) {
|
|
1870
1870
|
var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, g, f, A = /* @__PURE__ */ Object.create(null), v, p, S, b;
|
|
1871
1871
|
if (b = e.input.charCodeAt(e.position), b === 91)
|
|
1872
1872
|
d = 93, f = !1, s = [];
|
|
@@ -1881,7 +1881,7 @@ function Na(e, n) {
|
|
|
1881
1881
|
}
|
|
1882
1882
|
$(e, "unexpected end of the stream within a flow collection");
|
|
1883
1883
|
}
|
|
1884
|
-
function
|
|
1884
|
+
function La(e, n) {
|
|
1885
1885
|
var t, r, o = yt, a = !1, i = !1, s = n, l = 0, c = !1, d, u;
|
|
1886
1886
|
if (u = e.input.charCodeAt(e.position), u === 124)
|
|
1887
1887
|
r = !1;
|
|
@@ -1891,8 +1891,8 @@ function Ba(e, n) {
|
|
|
1891
1891
|
return !1;
|
|
1892
1892
|
for (e.kind = "scalar", e.result = ""; u !== 0; )
|
|
1893
1893
|
if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
|
|
1894
|
-
yt === o ? o = u === 43 ? zt :
|
|
1895
|
-
else if ((d =
|
|
1894
|
+
yt === o ? o = u === 43 ? zt : Sa : $(e, "repeat of a chomping mode identifier");
|
|
1895
|
+
else if ((d = Ea(u)) >= 0)
|
|
1896
1896
|
d === 0 ? $(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? $(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
1897
1897
|
else
|
|
1898
1898
|
break;
|
|
@@ -1944,7 +1944,7 @@ function Qt(e, n) {
|
|
|
1944
1944
|
}
|
|
1945
1945
|
return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1947
|
+
function Ua(e, n, t) {
|
|
1948
1948
|
var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, g = /* @__PURE__ */ Object.create(null), f = null, A = null, v = null, p = !1, S = !1, b;
|
|
1949
1949
|
if (e.firstTabInLine !== -1)
|
|
1950
1950
|
return !1;
|
|
@@ -1975,7 +1975,7 @@ function Pa(e, n, t) {
|
|
|
1975
1975
|
}
|
|
1976
1976
|
return p && qe(e, u, g, f, A, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
|
|
1977
1977
|
}
|
|
1978
|
-
function
|
|
1978
|
+
function qa(e) {
|
|
1979
1979
|
var n, t = !1, r = !1, o, a, i;
|
|
1980
1980
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
1981
1981
|
return !1;
|
|
@@ -1987,7 +1987,7 @@ function La(e) {
|
|
|
1987
1987
|
} else {
|
|
1988
1988
|
for (; i !== 0 && !he(i); )
|
|
1989
1989
|
i === 33 && (r ? $(e, "tag suffix cannot contain exclamation marks") : (o = e.input.slice(n - 1, e.position + 1), qn.test(o) || $(e, "named tag handle cannot contain such characters"), r = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
1990
|
-
a = e.input.slice(n, e.position),
|
|
1990
|
+
a = e.input.slice(n, e.position), $a.test(a) && $(e, "tag suffix cannot contain flow indicator characters");
|
|
1991
1991
|
}
|
|
1992
1992
|
a && !Rn.test(a) && $(e, "tag name cannot contain such characters: " + a);
|
|
1993
1993
|
try {
|
|
@@ -1997,7 +1997,7 @@ function La(e) {
|
|
|
1997
1997
|
}
|
|
1998
1998
|
return t ? e.tag = a : je.call(e.tagMap, o) ? e.tag = e.tagMap[o] + a : o === "!" ? e.tag = "!" + a : o === "!!" ? e.tag = "tag:yaml.org,2002:" + a : $(e, 'undeclared tag handle "' + o + '"'), !0;
|
|
1999
1999
|
}
|
|
2000
|
-
function
|
|
2000
|
+
function Ra(e) {
|
|
2001
2001
|
var n, t;
|
|
2002
2002
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2003
2003
|
return !1;
|
|
@@ -2005,7 +2005,7 @@ function Ua(e) {
|
|
|
2005
2005
|
t = e.input.charCodeAt(++e.position);
|
|
2006
2006
|
return e.position === n && $(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2007
2007
|
}
|
|
2008
|
-
function
|
|
2008
|
+
function Va(e) {
|
|
2009
2009
|
var n, t, r;
|
|
2010
2010
|
if (r = e.input.charCodeAt(e.position), r !== 42)
|
|
2011
2011
|
return !1;
|
|
@@ -2016,9 +2016,9 @@ function qa(e) {
|
|
|
2016
2016
|
function Re(e, n, t, r, o) {
|
|
2017
2017
|
var a, i, s, l = 1, c = !1, d = !1, u, g, f, A, v, p;
|
|
2018
2018
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = i = s = at === t || Un === t, r && oe(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2019
|
-
for (;
|
|
2019
|
+
for (; qa(e) || Ra(e); )
|
|
2020
2020
|
oe(e, !0, -1) ? (c = !0, s = a, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2021
|
-
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) ||
|
|
2021
|
+
if (s && (s = c || o), (l === 1 || at === t) && (ot === t || Ln === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Qt(e, p) || Ua(e, p, v)) || Pa(e, v) ? d = !0 : (i && La(e, v) || Ba(e, v) || Na(e, v) ? d = !0 : Va(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && $(e, "alias node should not have any properties")) : Ka(e, v, ot === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Qt(e, p))), e.tag === null)
|
|
2022
2022
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2023
2023
|
else if (e.tag === "?") {
|
|
2024
2024
|
for (e.result !== null && e.kind !== "scalar" && $(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, g = e.implicitTypes.length; u < g; u += 1)
|
|
@@ -2039,7 +2039,7 @@ function Re(e, n, t, r, o) {
|
|
|
2039
2039
|
}
|
|
2040
2040
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2041
2041
|
}
|
|
2042
|
-
function
|
|
2042
|
+
function Da(e) {
|
|
2043
2043
|
var n = e.position, t, r, o, a = !1, i;
|
|
2044
2044
|
for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (i = e.input.charCodeAt(e.position)) !== 0 && (oe(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
2045
2045
|
for (a = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !he(i); )
|
|
@@ -2061,7 +2061,7 @@ function Ra(e) {
|
|
|
2061
2061
|
}
|
|
2062
2062
|
i !== 0 && Mt(e), je.call(Yt, r) ? Yt[r](e, r, o) : it(e, 'unknown document directive "' + r + '"');
|
|
2063
2063
|
}
|
|
2064
|
-
if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks &&
|
|
2064
|
+
if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : a && $(e, "directives end mark is expected"), Re(e, e.lineIndent - 1, at, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ta.test(e.input.slice(n, e.position)) && it(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && dt(e)) {
|
|
2065
2065
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
|
|
2066
2066
|
return;
|
|
2067
2067
|
}
|
|
@@ -2073,14 +2073,14 @@ function Ra(e) {
|
|
|
2073
2073
|
function Hn(e, n) {
|
|
2074
2074
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2075
2075
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2076
|
-
var t = new
|
|
2076
|
+
var t = new Fa(e, n), r = e.indexOf("\0");
|
|
2077
2077
|
for (r !== -1 && (t.position = r, $(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2078
2078
|
t.lineIndent += 1, t.position += 1;
|
|
2079
2079
|
for (; t.position < t.length - 1; )
|
|
2080
|
-
|
|
2080
|
+
Da(t);
|
|
2081
2081
|
return t.documents;
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2083
|
+
function Ga(e, n, t) {
|
|
2084
2084
|
n !== null && typeof n == "object" && typeof t > "u" && (t = n, n = null);
|
|
2085
2085
|
var r = Hn(e, t);
|
|
2086
2086
|
if (typeof n != "function")
|
|
@@ -2088,7 +2088,7 @@ function Va(e, n, t) {
|
|
|
2088
2088
|
for (var o = 0, a = r.length; o < a; o += 1)
|
|
2089
2089
|
n(r[o]);
|
|
2090
2090
|
}
|
|
2091
|
-
function
|
|
2091
|
+
function Ha(e, n) {
|
|
2092
2092
|
var t = Hn(e, n);
|
|
2093
2093
|
if (t.length !== 0) {
|
|
2094
2094
|
if (t.length === 1)
|
|
@@ -2096,10 +2096,10 @@ function Da(e, n) {
|
|
|
2096
2096
|
throw new me("expected a single document in the stream, but found more");
|
|
2097
2097
|
}
|
|
2098
2098
|
}
|
|
2099
|
-
var
|
|
2100
|
-
loadAll:
|
|
2101
|
-
load:
|
|
2102
|
-
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279,
|
|
2099
|
+
var za = Ga, Ja = Ha, zn = {
|
|
2100
|
+
loadAll: za,
|
|
2101
|
+
load: Ja
|
|
2102
|
+
}, Jn = Object.prototype.toString, Wn = Object.prototype.hasOwnProperty, Et = 65279, Wa = 9, We = 10, Ya = 13, Za = 32, Qa = 33, Xa = 34, bt = 35, ei = 37, ti = 38, ni = 39, ri = 42, Yn = 44, oi = 45, st = 58, ai = 61, ii = 62, si = 63, li = 64, Zn = 91, Qn = 93, ui = 96, Xn = 123, ci = 124, er = 125, fe = {};
|
|
2103
2103
|
fe[0] = "\\0";
|
|
2104
2104
|
fe[7] = "\\a";
|
|
2105
2105
|
fe[8] = "\\b";
|
|
@@ -2115,7 +2115,7 @@ fe[133] = "\\N";
|
|
|
2115
2115
|
fe[160] = "\\_";
|
|
2116
2116
|
fe[8232] = "\\L";
|
|
2117
2117
|
fe[8233] = "\\P";
|
|
2118
|
-
var
|
|
2118
|
+
var di = [
|
|
2119
2119
|
"y",
|
|
2120
2120
|
"Y",
|
|
2121
2121
|
"yes",
|
|
@@ -2132,8 +2132,8 @@ var ui = [
|
|
|
2132
2132
|
"off",
|
|
2133
2133
|
"Off",
|
|
2134
2134
|
"OFF"
|
|
2135
|
-
],
|
|
2136
|
-
function
|
|
2135
|
+
], pi = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2136
|
+
function fi(e, n) {
|
|
2137
2137
|
var t, r, o, a, i, s, l;
|
|
2138
2138
|
if (n === null)
|
|
2139
2139
|
return {};
|
|
@@ -2141,7 +2141,7 @@ function di(e, n) {
|
|
|
2141
2141
|
i = r[o], s = String(n[i]), i.slice(0, 2) === "!!" && (i = "tag:yaml.org,2002:" + i.slice(2)), l = e.compiledTypeMap.fallback[i], l && Wn.call(l.styleAliases, s) && (s = l.styleAliases[s]), t[i] = s;
|
|
2142
2142
|
return t;
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function mi(e) {
|
|
2145
2145
|
var n, t, r;
|
|
2146
2146
|
if (n = e.toString(16).toUpperCase(), e <= 255)
|
|
2147
2147
|
t = "x", r = 2;
|
|
@@ -2153,9 +2153,9 @@ function pi(e) {
|
|
|
2153
2153
|
throw new me("code point within a string may not be greater than 0xFFFFFFFF");
|
|
2154
2154
|
return "\\" + t + se.repeat("0", r - n.length) + n;
|
|
2155
2155
|
}
|
|
2156
|
-
var
|
|
2157
|
-
function
|
|
2158
|
-
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap =
|
|
2156
|
+
var gi = 1, Ye = 2;
|
|
2157
|
+
function yi(e) {
|
|
2158
|
+
this.schema = e.schema || $t, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = se.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = fi(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ye : gi, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
|
|
2159
2159
|
}
|
|
2160
2160
|
function Xt(e, n) {
|
|
2161
2161
|
for (var t = se.repeat(" ", n), r = 0, o = -1, a = "", i, s = e.length; r < s; )
|
|
@@ -2168,7 +2168,7 @@ function Ct(e, n) {
|
|
|
2168
2168
|
return `
|
|
2169
2169
|
` + se.repeat(" ", e.indent * n);
|
|
2170
2170
|
}
|
|
2171
|
-
function
|
|
2171
|
+
function hi(e, n) {
|
|
2172
2172
|
var t, r, o;
|
|
2173
2173
|
for (t = 0, r = e.implicitTypes.length; t < r; t += 1)
|
|
2174
2174
|
if (o = e.implicitTypes[t], o.resolve(n))
|
|
@@ -2176,13 +2176,13 @@ function gi(e, n) {
|
|
|
2176
2176
|
return !1;
|
|
2177
2177
|
}
|
|
2178
2178
|
function lt(e) {
|
|
2179
|
-
return e ===
|
|
2179
|
+
return e === Za || e === Wa;
|
|
2180
2180
|
}
|
|
2181
2181
|
function Ze(e) {
|
|
2182
2182
|
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Et || 65536 <= e && e <= 1114111;
|
|
2183
2183
|
}
|
|
2184
2184
|
function en(e) {
|
|
2185
|
-
return Ze(e) && e !== Et && e !==
|
|
2185
|
+
return Ze(e) && e !== Et && e !== Ya && e !== We;
|
|
2186
2186
|
}
|
|
2187
2187
|
function tn(e, n, t) {
|
|
2188
2188
|
var r = en(e), o = r && !lt(e);
|
|
@@ -2194,10 +2194,10 @@ function tn(e, n, t) {
|
|
|
2194
2194
|
) : r && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er) && e !== bt && !(n === st && !o) || en(n) && !lt(n) && e === bt || n === st && o
|
|
2195
2195
|
);
|
|
2196
2196
|
}
|
|
2197
|
-
function
|
|
2198
|
-
return Ze(e) && e !== Et && !lt(e) && e !==
|
|
2197
|
+
function vi(e) {
|
|
2198
|
+
return Ze(e) && e !== Et && !lt(e) && e !== oi && e !== si && e !== st && e !== Yn && e !== Zn && e !== Qn && e !== Xn && e !== er && e !== bt && e !== ti && e !== ri && e !== Qa && e !== ci && e !== ai && e !== ii && e !== ni && e !== Xa && e !== ei && e !== li && e !== ui;
|
|
2199
2199
|
}
|
|
2200
|
-
function
|
|
2200
|
+
function bi(e) {
|
|
2201
2201
|
return !lt(e) && e !== st;
|
|
2202
2202
|
}
|
|
2203
2203
|
function He(e, n) {
|
|
@@ -2209,8 +2209,8 @@ function tr(e) {
|
|
|
2209
2209
|
return n.test(e);
|
|
2210
2210
|
}
|
|
2211
2211
|
var nr = 1, kt = 2, rr = 3, or = 4, Le = 5;
|
|
2212
|
-
function
|
|
2213
|
-
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1, v =
|
|
2212
|
+
function Ci(e, n, t, r, o, a, i, s) {
|
|
2213
|
+
var l, c = 0, d = null, u = !1, g = !1, f = r !== -1, A = -1, v = vi(He(e, 0)) && bi(He(e, e.length - 1));
|
|
2214
2214
|
if (n || i)
|
|
2215
2215
|
for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
|
|
2216
2216
|
if (c = He(e, l), !Ze(c))
|
|
@@ -2230,17 +2230,17 @@ function vi(e, n, t, r, o, a, i, s) {
|
|
|
2230
2230
|
}
|
|
2231
2231
|
return !u && !g ? v && !i && !o(e) ? nr : a === Ye ? Le : kt : t > 9 && tr(e) ? Le : i ? a === Ye ? Le : kt : g ? or : rr;
|
|
2232
2232
|
}
|
|
2233
|
-
function
|
|
2233
|
+
function ki(e, n, t, r, o) {
|
|
2234
2234
|
e.dump = function() {
|
|
2235
2235
|
if (n.length === 0)
|
|
2236
2236
|
return e.quotingType === Ye ? '""' : "''";
|
|
2237
|
-
if (!e.noCompatMode && (
|
|
2237
|
+
if (!e.noCompatMode && (di.indexOf(n) !== -1 || pi.test(n)))
|
|
2238
2238
|
return e.quotingType === Ye ? '"' + n + '"' : "'" + n + "'";
|
|
2239
2239
|
var a = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - a), s = r || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2240
2240
|
function l(c) {
|
|
2241
|
-
return
|
|
2241
|
+
return hi(e, c);
|
|
2242
2242
|
}
|
|
2243
|
-
switch (
|
|
2243
|
+
switch (Ci(
|
|
2244
2244
|
n,
|
|
2245
2245
|
s,
|
|
2246
2246
|
e.indent,
|
|
@@ -2257,9 +2257,9 @@ function bi(e, n, t, r, o) {
|
|
|
2257
2257
|
case rr:
|
|
2258
2258
|
return "|" + nn(n, e.indent) + rn(Xt(n, a));
|
|
2259
2259
|
case or:
|
|
2260
|
-
return ">" + nn(n, e.indent) + rn(Xt(
|
|
2260
|
+
return ">" + nn(n, e.indent) + rn(Xt(_i(n, i), a));
|
|
2261
2261
|
case Le:
|
|
2262
|
-
return '"' +
|
|
2262
|
+
return '"' + wi(n) + '"';
|
|
2263
2263
|
default:
|
|
2264
2264
|
throw new me("impossible error: invalid scalar style");
|
|
2265
2265
|
}
|
|
@@ -2277,7 +2277,7 @@ function rn(e) {
|
|
|
2277
2277
|
return e[e.length - 1] === `
|
|
2278
2278
|
` ? e.slice(0, -1) : e;
|
|
2279
2279
|
}
|
|
2280
|
-
function
|
|
2280
|
+
function _i(e, n) {
|
|
2281
2281
|
for (var t = /(\n+)([^\n]*)/g, r = function() {
|
|
2282
2282
|
var c = e.indexOf(`
|
|
2283
2283
|
`);
|
|
@@ -2300,12 +2300,12 @@ function on(e, n) {
|
|
|
2300
2300
|
`, e.length - o > n && i > o ? l += e.slice(o, i) + `
|
|
2301
2301
|
` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
|
|
2302
2302
|
}
|
|
2303
|
-
function
|
|
2303
|
+
function wi(e) {
|
|
2304
2304
|
for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
|
|
2305
|
-
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r ||
|
|
2305
|
+
t = He(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || mi(t);
|
|
2306
2306
|
return n;
|
|
2307
2307
|
}
|
|
2308
|
-
function
|
|
2308
|
+
function Ii(e, n, t) {
|
|
2309
2309
|
var r = "", o = e.tag, a, i, s;
|
|
2310
2310
|
for (a = 0, i = t.length; a < i; a += 1)
|
|
2311
2311
|
s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
|
|
@@ -2317,13 +2317,13 @@ function an(e, n, t, r) {
|
|
|
2317
2317
|
l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += Ct(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
|
|
2318
2318
|
e.tag = a, e.dump = o || "[]";
|
|
2319
2319
|
}
|
|
2320
|
-
function
|
|
2320
|
+
function Ai(e, n, t) {
|
|
2321
2321
|
var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
|
|
2322
2322
|
for (i = 0, s = a.length; i < s; i += 1)
|
|
2323
2323
|
d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
|
|
2324
2324
|
e.tag = o, e.dump = "{" + r + "}";
|
|
2325
2325
|
}
|
|
2326
|
-
function
|
|
2326
|
+
function Si(e, n, t, r) {
|
|
2327
2327
|
var o = "", a = e.tag, i = Object.keys(t), s, l, c, d, u, g;
|
|
2328
2328
|
if (e.sortKeys === !0)
|
|
2329
2329
|
i.sort();
|
|
@@ -2361,11 +2361,11 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2361
2361
|
e.dump = "*ref_" + u;
|
|
2362
2362
|
else {
|
|
2363
2363
|
if (d && g && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
|
|
2364
|
-
r && Object.keys(e.dump).length !== 0 ? (
|
|
2364
|
+
r && Object.keys(e.dump).length !== 0 ? (Si(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Ai(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2365
2365
|
else if (s === "[object Array]")
|
|
2366
|
-
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (
|
|
2366
|
+
r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), g && (e.dump = "&ref_" + u + e.dump)) : (Ii(e, n, e.dump), g && (e.dump = "&ref_" + u + " " + e.dump));
|
|
2367
2367
|
else if (s === "[object String]")
|
|
2368
|
-
e.tag !== "?" &&
|
|
2368
|
+
e.tag !== "?" && ki(e, e.dump, n, a, l);
|
|
2369
2369
|
else {
|
|
2370
2370
|
if (s === "[object Undefined]" || e.skipInvalid)
|
|
2371
2371
|
return !1;
|
|
@@ -2377,7 +2377,7 @@ function Se(e, n, t, r, o, a, i) {
|
|
|
2377
2377
|
}
|
|
2378
2378
|
return !0;
|
|
2379
2379
|
}
|
|
2380
|
-
function
|
|
2380
|
+
function xi(e, n) {
|
|
2381
2381
|
var t = [], r = [], o, a;
|
|
2382
2382
|
for (_t(e, t, r), o = 0, a = r.length; o < a; o += 1)
|
|
2383
2383
|
n.duplicates.push(t[r[o]]);
|
|
@@ -2395,65 +2395,65 @@ function _t(e, n, t) {
|
|
|
2395
2395
|
for (r = Object.keys(e), o = 0, a = r.length; o < a; o += 1)
|
|
2396
2396
|
_t(e[r[o]], n, t);
|
|
2397
2397
|
}
|
|
2398
|
-
function
|
|
2398
|
+
function Ti(e, n) {
|
|
2399
2399
|
n = n || {};
|
|
2400
|
-
var t = new
|
|
2401
|
-
t.noRefs ||
|
|
2400
|
+
var t = new yi(n);
|
|
2401
|
+
t.noRefs || xi(e, t);
|
|
2402
2402
|
var r = e;
|
|
2403
2403
|
return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
|
|
2404
2404
|
` : "";
|
|
2405
2405
|
}
|
|
2406
|
-
var
|
|
2407
|
-
dump:
|
|
2406
|
+
var $i = Ti, Mi = {
|
|
2407
|
+
dump: $i
|
|
2408
2408
|
};
|
|
2409
2409
|
function Ot(e, n) {
|
|
2410
2410
|
return function() {
|
|
2411
2411
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2412
2412
|
};
|
|
2413
2413
|
}
|
|
2414
|
-
var
|
|
2414
|
+
var ji = de, Ei = Cn, Oi = In, Fi = $n, Ki = Mn, Bi = $t, Ni = zn.load, Pi = zn.loadAll, Li = Mi.dump, Ui = me, qi = {
|
|
2415
2415
|
binary: Kn,
|
|
2416
2416
|
float: Tn,
|
|
2417
2417
|
map: wn,
|
|
2418
2418
|
null: An,
|
|
2419
|
-
pairs:
|
|
2419
|
+
pairs: Nn,
|
|
2420
2420
|
set: Pn,
|
|
2421
2421
|
timestamp: On,
|
|
2422
2422
|
bool: Sn,
|
|
2423
2423
|
int: xn,
|
|
2424
2424
|
merge: Fn,
|
|
2425
|
-
omap:
|
|
2425
|
+
omap: Bn,
|
|
2426
2426
|
seq: _n,
|
|
2427
2427
|
str: kn
|
|
2428
|
-
},
|
|
2429
|
-
Type:
|
|
2430
|
-
Schema:
|
|
2431
|
-
FAILSAFE_SCHEMA:
|
|
2432
|
-
JSON_SCHEMA:
|
|
2433
|
-
CORE_SCHEMA:
|
|
2434
|
-
DEFAULT_SCHEMA:
|
|
2435
|
-
load:
|
|
2436
|
-
loadAll:
|
|
2437
|
-
dump:
|
|
2438
|
-
YAMLException:
|
|
2439
|
-
types:
|
|
2440
|
-
safeLoad:
|
|
2441
|
-
safeLoadAll:
|
|
2442
|
-
safeDump:
|
|
2428
|
+
}, Ri = Ot("safeLoad", "load"), Vi = Ot("safeLoadAll", "loadAll"), Di = Ot("safeDump", "dump"), Gi = {
|
|
2429
|
+
Type: ji,
|
|
2430
|
+
Schema: Ei,
|
|
2431
|
+
FAILSAFE_SCHEMA: Oi,
|
|
2432
|
+
JSON_SCHEMA: Fi,
|
|
2433
|
+
CORE_SCHEMA: Ki,
|
|
2434
|
+
DEFAULT_SCHEMA: Bi,
|
|
2435
|
+
load: Ni,
|
|
2436
|
+
loadAll: Pi,
|
|
2437
|
+
dump: Li,
|
|
2438
|
+
YAMLException: Ui,
|
|
2439
|
+
types: qi,
|
|
2440
|
+
safeLoad: Ri,
|
|
2441
|
+
safeLoadAll: Vi,
|
|
2442
|
+
safeDump: Di
|
|
2443
2443
|
};
|
|
2444
|
-
const
|
|
2444
|
+
const Hi = {
|
|
2445
2445
|
key: 0,
|
|
2446
2446
|
class: "config-card-display-form"
|
|
2447
|
-
},
|
|
2447
|
+
}, zi = ["data-testid"], Ji = {
|
|
2448
2448
|
key: 0,
|
|
2449
2449
|
class: "config-card-prop-section-title"
|
|
2450
|
-
},
|
|
2450
|
+
}, Wi = {
|
|
2451
2451
|
key: 1,
|
|
2452
2452
|
class: "config-card-display-json"
|
|
2453
|
-
},
|
|
2453
|
+
}, Yi = {
|
|
2454
2454
|
key: 2,
|
|
2455
2455
|
class: "config-card-display-yaml"
|
|
2456
|
-
},
|
|
2456
|
+
}, Zi = /* @__PURE__ */ ae({
|
|
2457
2457
|
__name: "ConfigCardDisplay",
|
|
2458
2458
|
props: {
|
|
2459
2459
|
propertyCollections: {
|
|
@@ -2481,17 +2481,17 @@ const Di = {
|
|
|
2481
2481
|
setup(e) {
|
|
2482
2482
|
const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
|
|
2483
2483
|
return xe(() => n.format, (s) => {
|
|
2484
|
-
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value =
|
|
2484
|
+
s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Gi.dump(n.record));
|
|
2485
2485
|
}, { immediate: !0 }), (s, l) => {
|
|
2486
|
-
const c =
|
|
2486
|
+
const c = N("KCodeBlock");
|
|
2487
2487
|
return m(), j(ve, null, [
|
|
2488
|
-
e.format === "structured" ? (m(), j("div",
|
|
2488
|
+
e.format === "structured" ? (m(), j("div", Hi, [
|
|
2489
2489
|
(m(!0), j(ve, null, ye(e.propListTypes, (d) => (m(), j("div", {
|
|
2490
2490
|
key: `config-card-details-${d}-props`,
|
|
2491
2491
|
class: Ke(`config-card-details-${d}-props`),
|
|
2492
2492
|
"data-testid": `config-card-details-${d}-props`
|
|
2493
2493
|
}, [
|
|
2494
|
-
d !== "basic" ? (m(), j("div",
|
|
2494
|
+
d !== "basic" ? (m(), j("div", Ji, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2495
2495
|
(m(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (m(), V(xt, {
|
|
2496
2496
|
key: u.key,
|
|
2497
2497
|
item: u
|
|
@@ -2515,18 +2515,18 @@ const Di = {
|
|
|
2515
2515
|
key: "0"
|
|
2516
2516
|
} : void 0
|
|
2517
2517
|
]), 1032, ["item"]))), 128))
|
|
2518
|
-
], 10,
|
|
2518
|
+
], 10, zi))), 128))
|
|
2519
2519
|
])) : G("", !0),
|
|
2520
|
-
e.format === "json" ? (m(), j("div",
|
|
2521
|
-
|
|
2520
|
+
e.format === "json" ? (m(), j("div", Wi, [
|
|
2521
|
+
F(c, {
|
|
2522
2522
|
id: "config-card-codeblock",
|
|
2523
2523
|
code: a.value,
|
|
2524
2524
|
language: "json",
|
|
2525
2525
|
theme: "dark"
|
|
2526
2526
|
}, null, 8, ["code"])
|
|
2527
2527
|
])) : G("", !0),
|
|
2528
|
-
e.format === "yaml" ? (m(), j("div",
|
|
2529
|
-
|
|
2528
|
+
e.format === "yaml" ? (m(), j("div", Yi, [
|
|
2529
|
+
F(c, {
|
|
2530
2530
|
id: "config-card-codeblock",
|
|
2531
2531
|
code: i.value,
|
|
2532
2532
|
language: "yaml",
|
|
@@ -2536,18 +2536,18 @@ const Di = {
|
|
|
2536
2536
|
], 64);
|
|
2537
2537
|
};
|
|
2538
2538
|
}
|
|
2539
|
-
}),
|
|
2539
|
+
}), Qi = /* @__PURE__ */ ke(Zi, [["__scopeId", "data-v-6c45e9e4"]]), ln = "24px", Xi = (e, n) => {
|
|
2540
2540
|
const t = e.__vccOpts || e;
|
|
2541
2541
|
for (const [r, o] of n)
|
|
2542
2542
|
t[r] = o;
|
|
2543
2543
|
return t;
|
|
2544
|
-
},
|
|
2544
|
+
}, es = (e) => (hr("data-v-dd88a2bb"), e = e(), vr(), e), ts = ["aria-hidden"], ns = {
|
|
2545
2545
|
key: 0,
|
|
2546
2546
|
"data-testid": "kui-icon-svg-title"
|
|
2547
|
-
},
|
|
2547
|
+
}, rs = /* @__PURE__ */ es(() => /* @__PURE__ */ R("path", {
|
|
2548
2548
|
d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
|
|
2549
2549
|
fill: "currentColor"
|
|
2550
|
-
}, null, -1)),
|
|
2550
|
+
}, null, -1)), os = /* @__PURE__ */ ae({
|
|
2551
2551
|
__name: "BookIcon",
|
|
2552
2552
|
props: {
|
|
2553
2553
|
/** The accessibility text provided to screen readers */
|
|
@@ -2620,7 +2620,7 @@ const Di = {
|
|
|
2620
2620
|
"aria-hidden": e.decorative ? "true" : void 0,
|
|
2621
2621
|
class: "kui-icon book-icon",
|
|
2622
2622
|
"data-testid": "kui-icon-wrapper-book-icon",
|
|
2623
|
-
style:
|
|
2623
|
+
style: gr(r.value)
|
|
2624
2624
|
}, {
|
|
2625
2625
|
default: h(() => [
|
|
2626
2626
|
(m(), j("svg", {
|
|
@@ -2633,23 +2633,23 @@ const Di = {
|
|
|
2633
2633
|
width: "100%",
|
|
2634
2634
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2635
2635
|
}, [
|
|
2636
|
-
e.title ? (m(), j("title",
|
|
2637
|
-
|
|
2638
|
-
], 8,
|
|
2636
|
+
e.title ? (m(), j("title", ns, K(e.title), 1)) : G("", !0),
|
|
2637
|
+
rs
|
|
2638
|
+
], 8, ts))
|
|
2639
2639
|
]),
|
|
2640
2640
|
_: 1
|
|
2641
2641
|
}, 8, ["aria-hidden", "style"]));
|
|
2642
2642
|
}
|
|
2643
|
-
}),
|
|
2643
|
+
}), as = /* @__PURE__ */ Xi(os, [["__scopeId", "data-v-dd88a2bb"]]), is = { "data-testid": "config-card-title" }, ss = { class: "config-card-actions" }, ls = ["href"], us = {
|
|
2644
2644
|
key: 2,
|
|
2645
2645
|
class: "config-card-details-section"
|
|
2646
|
-
},
|
|
2646
|
+
}, cs = {
|
|
2647
2647
|
key: 3,
|
|
2648
2648
|
class: "config-card-details-section"
|
|
2649
|
-
},
|
|
2649
|
+
}, ds = ["data-testid"], ps = {
|
|
2650
2650
|
key: 0,
|
|
2651
2651
|
class: "config-card-prop-section-title"
|
|
2652
|
-
},
|
|
2652
|
+
}, fs = /* @__PURE__ */ ae({
|
|
2653
2653
|
__name: "EntityBaseConfigCard",
|
|
2654
2654
|
props: {
|
|
2655
2655
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2777,20 +2777,20 @@ const Di = {
|
|
|
2777
2777
|
section: be.Basic
|
|
2778
2778
|
}
|
|
2779
2779
|
}, f = O(!1), A = O(!1), v = O(""), p = O(), S = M(() => {
|
|
2780
|
-
var w,
|
|
2780
|
+
var w, B, P;
|
|
2781
2781
|
if (!p.value)
|
|
2782
2782
|
return [];
|
|
2783
2783
|
const k = [], x = Object.keys(p.value).length;
|
|
2784
2784
|
for (const T in p.value) {
|
|
2785
|
-
const
|
|
2785
|
+
const L = (B = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : B.order, J = (P = g[T]) == null ? void 0 : P.order;
|
|
2786
2786
|
let Q = x;
|
|
2787
|
-
(J || J === 0) && (Q = J === -1 ? x + 1 : J),
|
|
2787
|
+
(J || J === 0) && (Q = J === -1 ? x + 1 : J), L && (Q = L === -1 ? x + 1 : L), k.push([T, Q]);
|
|
2788
2788
|
}
|
|
2789
|
-
return k.sort(function(T,
|
|
2790
|
-
return T[1] -
|
|
2789
|
+
return k.sort(function(T, L) {
|
|
2790
|
+
return T[1] - L[1];
|
|
2791
2791
|
}), k.map((T) => {
|
|
2792
|
-
var
|
|
2793
|
-
const Q = T[0], X = (
|
|
2792
|
+
var L, J;
|
|
2793
|
+
const Q = T[0], X = (L = p.value) == null ? void 0 : L[Q], ee = ((J = r.configSchema) == null ? void 0 : J[Q]) || {}, ie = g[Q];
|
|
2794
2794
|
return {
|
|
2795
2795
|
key: Q,
|
|
2796
2796
|
value: X,
|
|
@@ -2802,20 +2802,20 @@ const Di = {
|
|
|
2802
2802
|
};
|
|
2803
2803
|
}).filter((T) => !T.hidden && T.key !== r.pluginConfigKey);
|
|
2804
2804
|
}), b = M(() => {
|
|
2805
|
-
var w,
|
|
2805
|
+
var w, B;
|
|
2806
2806
|
if (!p.value || !r.pluginConfigKey)
|
|
2807
2807
|
return [];
|
|
2808
|
-
const
|
|
2809
|
-
for (const T in
|
|
2810
|
-
const
|
|
2808
|
+
const P = p.value[r.pluginConfigKey] || {}, k = Object.keys(P).length, x = [];
|
|
2809
|
+
for (const T in P) {
|
|
2810
|
+
const L = (B = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : B.order, J = P[T];
|
|
2811
2811
|
let Q = J != null && J !== "" ? k - 1 : k;
|
|
2812
|
-
|
|
2812
|
+
L && (Q = L === -1 ? k + 1 : L), x.push([T, Q]);
|
|
2813
2813
|
}
|
|
2814
|
-
return x.sort(function(T,
|
|
2815
|
-
return T[1] -
|
|
2814
|
+
return x.sort(function(T, L) {
|
|
2815
|
+
return T[1] - L[1];
|
|
2816
2816
|
}), x.map((T) => {
|
|
2817
|
-
var
|
|
2818
|
-
const J = T[0], Q =
|
|
2817
|
+
var L;
|
|
2818
|
+
const J = T[0], Q = P[J], X = ((L = r.pluginConfigSchema) == null ? void 0 : L[J]) || {};
|
|
2819
2819
|
return {
|
|
2820
2820
|
key: J,
|
|
2821
2821
|
value: Q,
|
|
@@ -2827,19 +2827,19 @@ const Di = {
|
|
|
2827
2827
|
};
|
|
2828
2828
|
}).filter((T) => !T.hidden);
|
|
2829
2829
|
}), C = M(() => {
|
|
2830
|
-
var w,
|
|
2830
|
+
var w, B, P, k;
|
|
2831
2831
|
return {
|
|
2832
2832
|
basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
|
|
2833
|
-
advanced: (
|
|
2834
|
-
plugin: (k = b.value) == null ? void 0 : k.concat((
|
|
2833
|
+
advanced: (B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Advanced),
|
|
2834
|
+
plugin: (k = b.value) == null ? void 0 : k.concat((P = S.value) == null ? void 0 : P.filter((x) => x.section === be.Plugin))
|
|
2835
2835
|
};
|
|
2836
2836
|
}), I = M(() => {
|
|
2837
2837
|
const w = [];
|
|
2838
2838
|
return C.value.basic.length && w.push("basic"), C.value.advanced.length && w.push("advanced"), C.value.plugin.length && w.push("plugin"), w;
|
|
2839
2839
|
}), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
|
|
2840
|
-
var w,
|
|
2841
|
-
let
|
|
2842
|
-
return r.config.app === "konnect" ?
|
|
2840
|
+
var w, B;
|
|
2841
|
+
let P = `${r.config.apiBaseUrl}${r.fetchUrl}`;
|
|
2842
|
+
return r.config.app === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (P = P.replace(/\/{workspace}/gi, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), P = P.replace(/{id}/gi, r.config.entityId), P;
|
|
2843
2843
|
}), H = (w) => {
|
|
2844
2844
|
p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2845
2845
|
};
|
|
@@ -2856,28 +2856,28 @@ const Di = {
|
|
|
2856
2856
|
throw new Error(a("errors.dataKeyUndefined", { dataKey: r.dataKey }));
|
|
2857
2857
|
else
|
|
2858
2858
|
p.value = { ...w };
|
|
2859
|
-
Object.keys(r.configSchema).filter((
|
|
2860
|
-
p.value && typeof p.value[
|
|
2859
|
+
Object.keys(r.configSchema).filter((B) => r.configSchema[B].forceShow).forEach((B) => {
|
|
2860
|
+
p.value && typeof p.value[B] > "u" && (p.value[B] = null);
|
|
2861
2861
|
}), n("fetch:success", w);
|
|
2862
2862
|
} catch (w) {
|
|
2863
|
-
const
|
|
2864
|
-
v.value =
|
|
2863
|
+
const B = i(w);
|
|
2864
|
+
v.value = B.startsWith("code") ? a("baseConfigCard.errors.load") : B, A.value = !0, n("fetch:error", w);
|
|
2865
2865
|
} finally {
|
|
2866
2866
|
f.value = !1;
|
|
2867
2867
|
}
|
|
2868
|
-
}), (w,
|
|
2869
|
-
const
|
|
2868
|
+
}), (w, B) => {
|
|
2869
|
+
const P = N("KLabel"), k = N("KSelect"), x = N("KButton"), T = N("KClipboardProvider"), L = N("KSkeleton"), J = N("KEmptyState"), Q = N("KCard");
|
|
2870
2870
|
return m(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
|
|
2871
2871
|
actions: h(() => [
|
|
2872
|
-
R("div",
|
|
2872
|
+
R("div", ss, [
|
|
2873
2873
|
Y(w.$slots, "actions", {}, void 0, !0),
|
|
2874
|
-
e.config.jsonYamlEnabled ? (m(), V(
|
|
2874
|
+
e.config.jsonYamlEnabled ? (m(), V(P, {
|
|
2875
2875
|
key: 0,
|
|
2876
2876
|
class: "config-format-select-label",
|
|
2877
2877
|
"data-testid": "config-format-select-label"
|
|
2878
2878
|
}, {
|
|
2879
2879
|
default: h(() => [
|
|
2880
|
-
Z(
|
|
2880
|
+
Z(K(e.label), 1)
|
|
2881
2881
|
]),
|
|
2882
2882
|
_: 1
|
|
2883
2883
|
})) : G("", !0),
|
|
@@ -2900,8 +2900,8 @@ const Di = {
|
|
|
2900
2900
|
rel: "noopener",
|
|
2901
2901
|
target: "_blank"
|
|
2902
2902
|
}, [
|
|
2903
|
-
|
|
2904
|
-
], 8,
|
|
2903
|
+
F(y(as), { size: y(fo) }, null, 8, ["size"])
|
|
2904
|
+
], 8, ls)
|
|
2905
2905
|
]),
|
|
2906
2906
|
_: 1
|
|
2907
2907
|
})) : G("", !0),
|
|
@@ -2914,7 +2914,7 @@ const Di = {
|
|
|
2914
2914
|
onClick: (ee) => H(X)
|
|
2915
2915
|
}, {
|
|
2916
2916
|
default: h(() => [
|
|
2917
|
-
Z(
|
|
2917
|
+
Z(K(y(a)("baseConfigCard.actions.copy")), 1)
|
|
2918
2918
|
]),
|
|
2919
2919
|
_: 2
|
|
2920
2920
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -2924,7 +2924,7 @@ const Di = {
|
|
|
2924
2924
|
])
|
|
2925
2925
|
]),
|
|
2926
2926
|
body: h(() => [
|
|
2927
|
-
f.value ? (m(), V(
|
|
2927
|
+
f.value ? (m(), V(L, {
|
|
2928
2928
|
key: 0,
|
|
2929
2929
|
"data-testid": "config-card-loader",
|
|
2930
2930
|
"table-columns": 2,
|
|
@@ -2935,12 +2935,12 @@ const Di = {
|
|
|
2935
2935
|
"is-error": ""
|
|
2936
2936
|
}, {
|
|
2937
2937
|
message: h(() => [
|
|
2938
|
-
R("h3", null,
|
|
2938
|
+
R("h3", null, K(v.value), 1)
|
|
2939
2939
|
]),
|
|
2940
2940
|
_: 1
|
|
2941
2941
|
})) : G("", !0),
|
|
2942
|
-
e.config.jsonYamlEnabled ? (m(), j("div",
|
|
2943
|
-
|
|
2942
|
+
e.config.jsonYamlEnabled ? (m(), j("div", us, [
|
|
2943
|
+
F(Qi, {
|
|
2944
2944
|
format: d.value,
|
|
2945
2945
|
"prop-list-types": I.value,
|
|
2946
2946
|
"property-collections": C.value,
|
|
@@ -2956,13 +2956,13 @@ const Di = {
|
|
|
2956
2956
|
])
|
|
2957
2957
|
}))
|
|
2958
2958
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
2959
|
-
])) : (m(), j("div",
|
|
2959
|
+
])) : (m(), j("div", cs, [
|
|
2960
2960
|
(m(!0), j(ve, null, ye(I.value, (X) => (m(), j("div", {
|
|
2961
2961
|
key: `config-card-details-${X}-props`,
|
|
2962
2962
|
class: Ke(`config-card-details-${X}-props`),
|
|
2963
2963
|
"data-testid": `config-card-details-${X}-props`
|
|
2964
2964
|
}, [
|
|
2965
|
-
X !== "basic" ? (m(), j("div",
|
|
2965
|
+
X !== "basic" ? (m(), j("div", ps, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2966
2966
|
(m(!0), j(ve, null, ye(C.value[X], (ee) => (m(), V(xt, {
|
|
2967
2967
|
key: ee.key,
|
|
2968
2968
|
item: ee
|
|
@@ -2986,7 +2986,7 @@ const Di = {
|
|
|
2986
2986
|
key: "0"
|
|
2987
2987
|
} : void 0
|
|
2988
2988
|
]), 1032, ["item"]))), 128))
|
|
2989
|
-
], 10,
|
|
2989
|
+
], 10, ds))), 128))
|
|
2990
2990
|
]))
|
|
2991
2991
|
]),
|
|
2992
2992
|
_: 2
|
|
@@ -2994,9 +2994,9 @@ const Di = {
|
|
|
2994
2994
|
e.hideTitle ? void 0 : {
|
|
2995
2995
|
name: "title",
|
|
2996
2996
|
fn: h(() => [
|
|
2997
|
-
R("div",
|
|
2997
|
+
R("div", is, [
|
|
2998
2998
|
Y(w.$slots, "title", {}, () => [
|
|
2999
|
-
Z(
|
|
2999
|
+
Z(K(y(a)("baseConfigCard.title")), 1)
|
|
3000
3000
|
], !0)
|
|
3001
3001
|
])
|
|
3002
3002
|
]),
|
|
@@ -3005,10 +3005,10 @@ const Di = {
|
|
|
3005
3005
|
]), 1024);
|
|
3006
3006
|
};
|
|
3007
3007
|
}
|
|
3008
|
-
}),
|
|
3008
|
+
}), ms = /* @__PURE__ */ ke(fs, [["__scopeId", "data-v-64349aa2"]]), gs = ["onReset", "onSubmit"], ys = {
|
|
3009
3009
|
class: "form-actions",
|
|
3010
3010
|
"data-testid": "form-actions"
|
|
3011
|
-
},
|
|
3011
|
+
}, hs = /* @__PURE__ */ ae({
|
|
3012
3012
|
__name: "EntityBaseForm",
|
|
3013
3013
|
props: {
|
|
3014
3014
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3088,7 +3088,7 @@ const Di = {
|
|
|
3088
3088
|
l.value = !1;
|
|
3089
3089
|
}
|
|
3090
3090
|
}), (p, S) => {
|
|
3091
|
-
const b =
|
|
3091
|
+
const b = N("KSkeleton"), C = N("KEmptyState"), I = N("KAlert"), ne = N("KButton"), pe = N("KCard");
|
|
3092
3092
|
return m(), V(pe, { class: "kong-ui-entity-base-form" }, {
|
|
3093
3093
|
body: h(() => [
|
|
3094
3094
|
l.value ? (m(), V(b, {
|
|
@@ -3102,7 +3102,7 @@ const Di = {
|
|
|
3102
3102
|
"is-error": !0
|
|
3103
3103
|
}, {
|
|
3104
3104
|
message: h(() => [
|
|
3105
|
-
R("h3", null,
|
|
3105
|
+
R("h3", null, K(d.value), 1)
|
|
3106
3106
|
]),
|
|
3107
3107
|
_: 1
|
|
3108
3108
|
}, 8, ["cta-text"])) : (m(), j("form", {
|
|
@@ -3118,42 +3118,42 @@ const Di = {
|
|
|
3118
3118
|
appearance: "danger",
|
|
3119
3119
|
"data-testid": "form-error"
|
|
3120
3120
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3121
|
-
R("div",
|
|
3121
|
+
R("div", ys, [
|
|
3122
3122
|
Y(p.$slots, "form-actions", {}, () => [
|
|
3123
|
-
|
|
3123
|
+
F(ne, {
|
|
3124
3124
|
appearance: "outline",
|
|
3125
3125
|
"data-testid": "form-cancel",
|
|
3126
3126
|
disabled: e.isReadonly,
|
|
3127
3127
|
type: "reset"
|
|
3128
3128
|
}, {
|
|
3129
3129
|
default: h(() => [
|
|
3130
|
-
Z(
|
|
3130
|
+
Z(K(y(a)("baseForm.actions.cancel")), 1)
|
|
3131
3131
|
]),
|
|
3132
3132
|
_: 1
|
|
3133
3133
|
}, 8, ["disabled"]),
|
|
3134
|
-
|
|
3134
|
+
F(ne, {
|
|
3135
3135
|
appearance: "primary",
|
|
3136
3136
|
"data-testid": "form-submit",
|
|
3137
3137
|
disabled: u.value,
|
|
3138
3138
|
type: "submit"
|
|
3139
3139
|
}, {
|
|
3140
3140
|
default: h(() => [
|
|
3141
|
-
Z(
|
|
3141
|
+
Z(K(y(a)("baseForm.actions.save")), 1)
|
|
3142
3142
|
]),
|
|
3143
3143
|
_: 1
|
|
3144
3144
|
}, 8, ["disabled"])
|
|
3145
3145
|
], !0)
|
|
3146
3146
|
])
|
|
3147
|
-
], 40,
|
|
3147
|
+
], 40, gs))
|
|
3148
3148
|
]),
|
|
3149
3149
|
_: 3
|
|
3150
3150
|
});
|
|
3151
3151
|
};
|
|
3152
3152
|
}
|
|
3153
|
-
}),
|
|
3153
|
+
}), vs = /* @__PURE__ */ ke(hs, [["__scopeId", "data-v-44a90aae"]]), bs = {
|
|
3154
3154
|
key: 0,
|
|
3155
3155
|
"data-testid": "first-col"
|
|
3156
|
-
},
|
|
3156
|
+
}, Cs = /* @__PURE__ */ ae({
|
|
3157
3157
|
__name: "EntityBaseTableCell",
|
|
3158
3158
|
props: {
|
|
3159
3159
|
keyName: {
|
|
@@ -3198,19 +3198,19 @@ const Di = {
|
|
|
3198
3198
|
},
|
|
3199
3199
|
{ immediate: !0, flush: "post", deep: !0 }
|
|
3200
3200
|
), A = M(() => o.value ? c.value > d.value : !1);
|
|
3201
|
-
return
|
|
3201
|
+
return fr(() => {
|
|
3202
3202
|
s();
|
|
3203
|
-
}),
|
|
3203
|
+
}), mr(() => {
|
|
3204
3204
|
f();
|
|
3205
3205
|
}), (v, p) => {
|
|
3206
|
-
const S =
|
|
3206
|
+
const S = N("KTooltip");
|
|
3207
3207
|
return m(), j("span", {
|
|
3208
3208
|
ref_key: "contentRef",
|
|
3209
3209
|
ref: l,
|
|
3210
3210
|
class: "content-wrapper"
|
|
3211
3211
|
}, [
|
|
3212
|
-
o.value ? (m(), j("span",
|
|
3213
|
-
|
|
3212
|
+
o.value ? (m(), j("span", bs, [
|
|
3213
|
+
F(S, {
|
|
3214
3214
|
label: A.value ? u.value : "",
|
|
3215
3215
|
"max-width": "300",
|
|
3216
3216
|
placement: "bottomStart"
|
|
@@ -3224,10 +3224,10 @@ const Di = {
|
|
|
3224
3224
|
], 512);
|
|
3225
3225
|
};
|
|
3226
3226
|
}
|
|
3227
|
-
}),
|
|
3227
|
+
}), ks = /* @__PURE__ */ ke(Cs, [["__scopeId", "data-v-e42a20c9"]]), _s = { class: "toolbar-container" }, ws = {
|
|
3228
3228
|
key: 0,
|
|
3229
3229
|
class: "toolbar-button-container"
|
|
3230
|
-
},
|
|
3230
|
+
}, Is = ["data-testid"], As = /* @__PURE__ */ ae({
|
|
3231
3231
|
__name: "EntityBaseTable",
|
|
3232
3232
|
props: {
|
|
3233
3233
|
// table header configuration
|
|
@@ -3374,7 +3374,7 @@ const Di = {
|
|
|
3374
3374
|
n("click:row", I);
|
|
3375
3375
|
}), A = (C) => {
|
|
3376
3376
|
n("sort", C);
|
|
3377
|
-
}, { setTablePreferences: v, getTablePreferences: p } =
|
|
3377
|
+
}, { setTablePreferences: v, getTablePreferences: p } = xr(), S = M(() => {
|
|
3378
3378
|
const C = p(t.preferencesStorageKey);
|
|
3379
3379
|
return {
|
|
3380
3380
|
...t.initialFetcherParams,
|
|
@@ -3384,13 +3384,13 @@ const Di = {
|
|
|
3384
3384
|
t.preferencesStorageKey && v(t.preferencesStorageKey, C);
|
|
3385
3385
|
};
|
|
3386
3386
|
return (C, I) => {
|
|
3387
|
-
const ne =
|
|
3388
|
-
return m(), V(
|
|
3387
|
+
const ne = N("KIcon"), pe = N("KButton"), H = N("KDropdownMenu"), w = N("KTable"), B = N("KCard");
|
|
3388
|
+
return m(), V(B, {
|
|
3389
3389
|
class: "kong-ui-entity-base-table",
|
|
3390
3390
|
title: e.title
|
|
3391
3391
|
}, {
|
|
3392
3392
|
body: h(() => [
|
|
3393
|
-
|
|
3393
|
+
F(w, {
|
|
3394
3394
|
ref_key: "tableRefs",
|
|
3395
3395
|
ref: l,
|
|
3396
3396
|
"cache-identifier": o.value,
|
|
@@ -3418,44 +3418,44 @@ const Di = {
|
|
|
3418
3418
|
"search-input": e.query,
|
|
3419
3419
|
onKtableEmptyStateCtaClicked: u,
|
|
3420
3420
|
"onRow:click": f.value,
|
|
3421
|
-
onSort: I[0] || (I[0] = (
|
|
3421
|
+
onSort: I[0] || (I[0] = (P) => A(P)),
|
|
3422
3422
|
"onUpdate:tablePreferences": b
|
|
3423
3423
|
}, Te({
|
|
3424
|
-
toolbar: h(({ state:
|
|
3425
|
-
et(R("div",
|
|
3424
|
+
toolbar: h(({ state: P }) => [
|
|
3425
|
+
et(R("div", _s, [
|
|
3426
3426
|
Y(C.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3427
|
-
C.$slots["toolbar-button"] ? (m(), j("div",
|
|
3427
|
+
C.$slots["toolbar-button"] ? (m(), j("div", ws, [
|
|
3428
3428
|
Y(C.$slots, "toolbar-button", {}, void 0, !0)
|
|
3429
3429
|
])) : G("", !0)
|
|
3430
3430
|
], 512), [
|
|
3431
|
-
[tt, a(
|
|
3431
|
+
[tt, a(P)]
|
|
3432
3432
|
])
|
|
3433
3433
|
]),
|
|
3434
|
-
actions: h(({ row:
|
|
3434
|
+
actions: h(({ row: P, rowKey: k, rowValue: x }) => [
|
|
3435
3435
|
R("div", {
|
|
3436
3436
|
class: "actions-container",
|
|
3437
|
-
"data-testid":
|
|
3437
|
+
"data-testid": P.name
|
|
3438
3438
|
}, [
|
|
3439
|
-
|
|
3439
|
+
F(H, {
|
|
3440
3440
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3441
3441
|
width: e.dropdownMenuWidth
|
|
3442
3442
|
}, {
|
|
3443
3443
|
items: h(() => [
|
|
3444
3444
|
Y(C.$slots, "actions", {
|
|
3445
|
-
row:
|
|
3445
|
+
row: P,
|
|
3446
3446
|
rowKey: k,
|
|
3447
3447
|
rowValue: x
|
|
3448
3448
|
}, void 0, !0)
|
|
3449
3449
|
]),
|
|
3450
3450
|
default: h(() => [
|
|
3451
|
-
|
|
3451
|
+
F(pe, {
|
|
3452
3452
|
class: "actions-trigger",
|
|
3453
3453
|
"data-testid": "overflow-actions-button",
|
|
3454
3454
|
size: "small"
|
|
3455
3455
|
}, {
|
|
3456
3456
|
icon: h(() => [
|
|
3457
|
-
|
|
3458
|
-
color: y(
|
|
3457
|
+
F(ne, {
|
|
3458
|
+
color: y(co),
|
|
3459
3459
|
icon: "more",
|
|
3460
3460
|
size: "16"
|
|
3461
3461
|
}, null, 8, ["color"])
|
|
@@ -3465,14 +3465,14 @@ const Di = {
|
|
|
3465
3465
|
]),
|
|
3466
3466
|
_: 2
|
|
3467
3467
|
}, 1032, ["width"])
|
|
3468
|
-
], 8,
|
|
3468
|
+
], 8, Is)
|
|
3469
3469
|
]),
|
|
3470
3470
|
_: 2
|
|
3471
3471
|
}, [
|
|
3472
|
-
ye(e.tableHeaders, (
|
|
3472
|
+
ye(e.tableHeaders, (P, k) => ({
|
|
3473
3473
|
name: k,
|
|
3474
|
-
fn: h(({ row: x, rowKey: T, rowValue:
|
|
3475
|
-
|
|
3474
|
+
fn: h(({ row: x, rowKey: T, rowValue: L }) => [
|
|
3475
|
+
F(ks, {
|
|
3476
3476
|
"key-name": String(k),
|
|
3477
3477
|
"row-el": c(x)
|
|
3478
3478
|
}, {
|
|
@@ -3480,9 +3480,9 @@ const Di = {
|
|
|
3480
3480
|
Y(C.$slots, k, {
|
|
3481
3481
|
row: x,
|
|
3482
3482
|
rowKey: T,
|
|
3483
|
-
rowValue:
|
|
3483
|
+
rowValue: L
|
|
3484
3484
|
}, () => [
|
|
3485
|
-
Z(
|
|
3485
|
+
Z(K(L), 1)
|
|
3486
3486
|
], !0)
|
|
3487
3487
|
]),
|
|
3488
3488
|
_: 2
|
|
@@ -3495,13 +3495,13 @@ const Di = {
|
|
|
3495
3495
|
}, 8, ["title"]);
|
|
3496
3496
|
};
|
|
3497
3497
|
}
|
|
3498
|
-
}),
|
|
3498
|
+
}), Ss = /* @__PURE__ */ ke(As, [["__scopeId", "data-v-6bf92df6"]]), xs = {
|
|
3499
3499
|
key: 0,
|
|
3500
3500
|
class: "kong-ui-entity-delete-error"
|
|
3501
|
-
},
|
|
3501
|
+
}, Ts = {
|
|
3502
3502
|
key: 1,
|
|
3503
3503
|
class: "description"
|
|
3504
|
-
},
|
|
3504
|
+
}, $s = /* @__PURE__ */ ae({
|
|
3505
3505
|
__name: "EntityDeleteModal",
|
|
3506
3506
|
props: {
|
|
3507
3507
|
visible: {
|
|
@@ -3546,7 +3546,7 @@ const Di = {
|
|
|
3546
3546
|
n("proceed");
|
|
3547
3547
|
};
|
|
3548
3548
|
return (s, l) => {
|
|
3549
|
-
const c =
|
|
3549
|
+
const c = N("KAlert"), d = N("KPrompt");
|
|
3550
3550
|
return m(), V(d, {
|
|
3551
3551
|
"action-button-text": "Yes, delete",
|
|
3552
3552
|
"action-pending": e.actionPending,
|
|
@@ -3559,35 +3559,35 @@ const Di = {
|
|
|
3559
3559
|
onProceed: i
|
|
3560
3560
|
}, {
|
|
3561
3561
|
"body-content": h(() => [
|
|
3562
|
-
e.error ? (m(), j("div",
|
|
3563
|
-
|
|
3562
|
+
e.error ? (m(), j("div", xs, [
|
|
3563
|
+
F(c, { appearance: "danger" }, {
|
|
3564
3564
|
alertMessage: h(() => [
|
|
3565
|
-
Z(
|
|
3565
|
+
Z(K(e.error), 1)
|
|
3566
3566
|
]),
|
|
3567
3567
|
_: 1
|
|
3568
3568
|
})
|
|
3569
3569
|
])) : G("", !0),
|
|
3570
|
-
|
|
3570
|
+
F(y(r), {
|
|
3571
3571
|
class: "message",
|
|
3572
3572
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3573
3573
|
tag: "p"
|
|
3574
3574
|
}, Te({
|
|
3575
3575
|
entityType: h(() => [
|
|
3576
|
-
Z(
|
|
3576
|
+
Z(K(t.entityType), 1)
|
|
3577
3577
|
]),
|
|
3578
3578
|
_: 2
|
|
3579
3579
|
}, [
|
|
3580
3580
|
t.entityName ? {
|
|
3581
3581
|
name: "entityName",
|
|
3582
3582
|
fn: h(() => [
|
|
3583
|
-
R("strong", null,
|
|
3583
|
+
R("strong", null, K(t.entityName), 1)
|
|
3584
3584
|
]),
|
|
3585
3585
|
key: "0"
|
|
3586
3586
|
} : void 0
|
|
3587
3587
|
]), 1032, ["keypath"]),
|
|
3588
|
-
t.description || s.$slots.description ? (m(), j("div",
|
|
3588
|
+
t.description || s.$slots.description ? (m(), j("div", Ts, [
|
|
3589
3589
|
Y(s.$slots, "description", {}, () => [
|
|
3590
|
-
R("p", null,
|
|
3590
|
+
R("p", null, K(t.description), 1)
|
|
3591
3591
|
], !0)
|
|
3592
3592
|
])) : G("", !0)
|
|
3593
3593
|
]),
|
|
@@ -3595,13 +3595,13 @@ const Di = {
|
|
|
3595
3595
|
}, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
|
|
3596
3596
|
};
|
|
3597
3597
|
}
|
|
3598
|
-
}),
|
|
3598
|
+
}), Ms = /* @__PURE__ */ ke($s, [["__scopeId", "data-v-1c9a2a07"]]), js = {
|
|
3599
3599
|
fill: "none",
|
|
3600
3600
|
height: "20",
|
|
3601
3601
|
viewBox: "0 0 20 20",
|
|
3602
3602
|
width: "20",
|
|
3603
3603
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3604
|
-
},
|
|
3604
|
+
}, Es = {
|
|
3605
3605
|
id: "mask0_180_20349",
|
|
3606
3606
|
height: "20",
|
|
3607
3607
|
maskUnits: "userSpaceOnUse",
|
|
@@ -3609,35 +3609,35 @@ const Di = {
|
|
|
3609
3609
|
width: "20",
|
|
3610
3610
|
x: "0",
|
|
3611
3611
|
y: "0"
|
|
3612
|
-
},
|
|
3612
|
+
}, Os = ["fill"], Fs = { mask: "url(#mask0_180_20349)" }, Ks = ["fill"], Bs = /* @__PURE__ */ ae({
|
|
3613
3613
|
__name: "IconFilter",
|
|
3614
3614
|
props: {
|
|
3615
3615
|
color: {
|
|
3616
3616
|
type: String,
|
|
3617
|
-
default: `var(--kong-ui-entity-filter-color, ${
|
|
3617
|
+
default: `var(--kong-ui-entity-filter-color, ${lo})`
|
|
3618
3618
|
}
|
|
3619
3619
|
},
|
|
3620
3620
|
setup(e) {
|
|
3621
|
-
return (n, t) => (m(), j("svg",
|
|
3622
|
-
R("mask",
|
|
3621
|
+
return (n, t) => (m(), j("svg", js, [
|
|
3622
|
+
R("mask", Es, [
|
|
3623
3623
|
R("rect", {
|
|
3624
3624
|
fill: e.color,
|
|
3625
3625
|
height: "20",
|
|
3626
3626
|
width: "20"
|
|
3627
|
-
}, null, 8,
|
|
3627
|
+
}, null, 8, Os)
|
|
3628
3628
|
]),
|
|
3629
|
-
R("g",
|
|
3629
|
+
R("g", Fs, [
|
|
3630
3630
|
R("path", {
|
|
3631
3631
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3632
3632
|
fill: e.color
|
|
3633
|
-
}, null, 8,
|
|
3633
|
+
}, null, 8, Ks)
|
|
3634
3634
|
])
|
|
3635
3635
|
]));
|
|
3636
3636
|
}
|
|
3637
|
-
}),
|
|
3637
|
+
}), Ns = {
|
|
3638
3638
|
key: 1,
|
|
3639
3639
|
class: "kong-ui-entity-filter"
|
|
3640
|
-
},
|
|
3640
|
+
}, Ps = { class: "menu-item-title" }, Ls = { class: "menu-item-indicator" }, Us = { class: "menu-item-body" }, qs = ["for"], Rs = { class: "menu-item-buttons" }, Vs = /* @__PURE__ */ ae({
|
|
3641
3641
|
__name: "EntityFilter",
|
|
3642
3642
|
props: {
|
|
3643
3643
|
// filter config, either exact match or fuzzy match
|
|
@@ -3699,7 +3699,7 @@ const Di = {
|
|
|
3699
3699
|
p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3700
3700
|
};
|
|
3701
3701
|
return (p, S) => {
|
|
3702
|
-
const b =
|
|
3702
|
+
const b = N("KInput"), C = N("KButton"), I = N("KSelect"), ne = N("KMenuItem"), pe = N("KMenu");
|
|
3703
3703
|
return e.config.isExactMatch ? (m(), V(b, {
|
|
3704
3704
|
key: 0,
|
|
3705
3705
|
autocomplete: "off",
|
|
@@ -3710,18 +3710,18 @@ const Di = {
|
|
|
3710
3710
|
"onUpdate:modelValue": c
|
|
3711
3711
|
}, {
|
|
3712
3712
|
icon: h(() => [
|
|
3713
|
-
|
|
3713
|
+
F(Bs)
|
|
3714
3714
|
]),
|
|
3715
3715
|
_: 1
|
|
3716
|
-
}, 8, ["model-value", "placeholder"])) : (m(), j("div",
|
|
3717
|
-
|
|
3716
|
+
}, 8, ["model-value", "placeholder"])) : (m(), j("div", Ns, [
|
|
3717
|
+
F(C, {
|
|
3718
3718
|
appearance: "btn-link",
|
|
3719
3719
|
"data-testid": "filter-button",
|
|
3720
3720
|
icon: "filter",
|
|
3721
3721
|
onClick: l
|
|
3722
3722
|
}, {
|
|
3723
3723
|
default: h(() => [
|
|
3724
|
-
Z(
|
|
3724
|
+
Z(K(y(r)("filter.filterButtonText")) + " " + K(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3725
3725
|
]),
|
|
3726
3726
|
_: 1
|
|
3727
3727
|
}),
|
|
@@ -3731,7 +3731,7 @@ const Di = {
|
|
|
3731
3731
|
}, null, 512), [
|
|
3732
3732
|
[tt, o.value]
|
|
3733
3733
|
]),
|
|
3734
|
-
et(
|
|
3734
|
+
et(F(pe, { class: "kong-ui-entity-filter-menu" }, {
|
|
3735
3735
|
body: h(() => [
|
|
3736
3736
|
(m(!0), j(ve, null, ye(s.value, (H, w) => (m(), V(ne, {
|
|
3737
3737
|
key: H.value,
|
|
@@ -3740,22 +3740,22 @@ const Di = {
|
|
|
3740
3740
|
"last-menu-item": w === s.value.length - 1
|
|
3741
3741
|
}, {
|
|
3742
3742
|
itemTitle: h(() => [
|
|
3743
|
-
R("span",
|
|
3744
|
-
Z(
|
|
3745
|
-
et(R("span",
|
|
3743
|
+
R("span", Ps, [
|
|
3744
|
+
Z(K(H.label) + " ", 1),
|
|
3745
|
+
et(R("span", Ls, null, 512), [
|
|
3746
3746
|
[tt, i.value.includes(H.value)]
|
|
3747
3747
|
])
|
|
3748
3748
|
])
|
|
3749
3749
|
]),
|
|
3750
3750
|
itemBody: h(() => {
|
|
3751
|
-
var
|
|
3751
|
+
var B, P;
|
|
3752
3752
|
return [
|
|
3753
|
-
R("div",
|
|
3753
|
+
R("div", Us, [
|
|
3754
3754
|
R("label", {
|
|
3755
3755
|
class: "menu-item-label",
|
|
3756
3756
|
for: d(H.value)
|
|
3757
|
-
},
|
|
3758
|
-
((
|
|
3757
|
+
}, K(y(r)("filter.fieldLabel")), 9, qs),
|
|
3758
|
+
((P = (B = e.config.schema) == null ? void 0 : B[H.value]) == null ? void 0 : P.type) === "select" ? (m(), V(I, {
|
|
3759
3759
|
key: 0,
|
|
3760
3760
|
id: d(H.value),
|
|
3761
3761
|
modelValue: a.value[H.value],
|
|
@@ -3774,26 +3774,26 @@ const Di = {
|
|
|
3774
3774
|
type: g(H.value)
|
|
3775
3775
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3776
3776
|
]),
|
|
3777
|
-
R("div",
|
|
3778
|
-
|
|
3777
|
+
R("div", Rs, [
|
|
3778
|
+
F(C, {
|
|
3779
3779
|
appearance: "btn-link",
|
|
3780
3780
|
"data-testid": "apply-filter",
|
|
3781
3781
|
size: "small",
|
|
3782
3782
|
onClick: S[0] || (S[0] = (k) => v(!0))
|
|
3783
3783
|
}, {
|
|
3784
3784
|
default: h(() => [
|
|
3785
|
-
Z(
|
|
3785
|
+
Z(K(y(r)("filter.applyButtonText")), 1)
|
|
3786
3786
|
]),
|
|
3787
3787
|
_: 1
|
|
3788
3788
|
}),
|
|
3789
|
-
|
|
3789
|
+
F(C, {
|
|
3790
3790
|
appearance: "btn-link",
|
|
3791
3791
|
"data-testid": "clear-filter",
|
|
3792
3792
|
size: "small",
|
|
3793
3793
|
onClick: (k) => f(H.value)
|
|
3794
3794
|
}, {
|
|
3795
3795
|
default: h(() => [
|
|
3796
|
-
Z(
|
|
3796
|
+
Z(K(y(r)("filter.clearButtonText")), 1)
|
|
3797
3797
|
]),
|
|
3798
3798
|
_: 2
|
|
3799
3799
|
}, 1032, ["onClick"])
|
|
@@ -3804,9 +3804,9 @@ const Di = {
|
|
|
3804
3804
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3805
3805
|
]),
|
|
3806
3806
|
actionButton: h(() => [
|
|
3807
|
-
|
|
3807
|
+
F(C, { onClick: A }, {
|
|
3808
3808
|
default: h(() => [
|
|
3809
|
-
Z(
|
|
3809
|
+
Z(K(y(r)("filter.clearAllButtonText")), 1)
|
|
3810
3810
|
]),
|
|
3811
3811
|
_: 1
|
|
3812
3812
|
})
|
|
@@ -3818,7 +3818,7 @@ const Di = {
|
|
|
3818
3818
|
]));
|
|
3819
3819
|
};
|
|
3820
3820
|
}
|
|
3821
|
-
}),
|
|
3821
|
+
}), Ds = /* @__PURE__ */ ke(Vs, [["__scopeId", "data-v-745f38c0"]]), Xe = /* @__PURE__ */ ae({
|
|
3822
3822
|
__name: "PermissionsWrapper",
|
|
3823
3823
|
props: {
|
|
3824
3824
|
/**
|
|
@@ -3848,16 +3848,16 @@ const Di = {
|
|
|
3848
3848
|
isAllowed: t.value
|
|
3849
3849
|
}) : G("", !0);
|
|
3850
3850
|
}
|
|
3851
|
-
}),
|
|
3851
|
+
}), Gs = { class: "form-section-wrapper" }, Hs = {
|
|
3852
3852
|
key: 0,
|
|
3853
3853
|
class: "form-section-title"
|
|
3854
|
-
},
|
|
3854
|
+
}, zs = {
|
|
3855
3855
|
key: 1,
|
|
3856
3856
|
class: "form-section-description"
|
|
3857
|
-
},
|
|
3857
|
+
}, Js = {
|
|
3858
3858
|
key: 2,
|
|
3859
3859
|
class: "form-section-footer"
|
|
3860
|
-
},
|
|
3860
|
+
}, Ws = { class: "form-section-content" }, Ys = /* @__PURE__ */ ae({
|
|
3861
3861
|
__name: "EntityFormSection",
|
|
3862
3862
|
props: {
|
|
3863
3863
|
title: {
|
|
@@ -3886,32 +3886,32 @@ const Di = {
|
|
|
3886
3886
|
return (t, r) => (m(), j("fieldset", {
|
|
3887
3887
|
class: Ke(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
3888
3888
|
}, [
|
|
3889
|
-
R("div",
|
|
3889
|
+
R("div", Gs, [
|
|
3890
3890
|
e.hideInfoHeader ? G("", !0) : (m(), j("div", {
|
|
3891
3891
|
key: 0,
|
|
3892
3892
|
class: Ke(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
3893
3893
|
}, [
|
|
3894
|
-
e.title ? (m(), j("h4",
|
|
3895
|
-
e.description || y(n).description ? (m(), j("div",
|
|
3894
|
+
e.title ? (m(), j("h4", Hs, K(e.title), 1)) : G("", !0),
|
|
3895
|
+
e.description || y(n).description ? (m(), j("div", zs, [
|
|
3896
3896
|
Y(t.$slots, "description", {}, () => [
|
|
3897
|
-
R("p", null,
|
|
3897
|
+
R("p", null, K(e.description), 1)
|
|
3898
3898
|
], !0)
|
|
3899
3899
|
])) : G("", !0),
|
|
3900
|
-
y(n).footer ? (m(), j("div",
|
|
3900
|
+
y(n).footer ? (m(), j("div", Js, [
|
|
3901
3901
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
3902
3902
|
])) : G("", !0)
|
|
3903
3903
|
], 2)),
|
|
3904
|
-
R("div",
|
|
3904
|
+
R("div", Ws, [
|
|
3905
3905
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
3906
3906
|
])
|
|
3907
3907
|
])
|
|
3908
3908
|
], 2));
|
|
3909
3909
|
}
|
|
3910
|
-
}), un = /* @__PURE__ */ ke(
|
|
3911
|
-
const
|
|
3910
|
+
}), un = /* @__PURE__ */ ke(Ys, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Ft, useDeleteUrlBuilder: Zs, useErrors: Qs, useFetchUrlBuilder: bl, useFetcher: Xs, useDebouncedFilter: ar, useStringHelpers: Cl, useHelpers: kl, useGatewayFeatureSupported: _l, useTruncationDetector: wl } = ue;
|
|
3911
|
+
const el = { class: "add-to-group-form-container" }, tl = { class: "add-to-group-cta-text" }, nl = {
|
|
3912
3912
|
key: 0,
|
|
3913
3913
|
class: "kong-ui-entity-add-to-groups-error"
|
|
3914
|
-
},
|
|
3914
|
+
}, rl = { key: 0 }, ol = /* @__PURE__ */ ae({
|
|
3915
3915
|
__name: "AddToGroupModal",
|
|
3916
3916
|
props: {
|
|
3917
3917
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -3928,9 +3928,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3928
3928
|
},
|
|
3929
3929
|
emits: ["cancel", "add:success", "add:partial-success", "error"],
|
|
3930
3930
|
setup(e, { emit: n }) {
|
|
3931
|
-
var
|
|
3931
|
+
var P;
|
|
3932
3932
|
const t = e, { i18n: { t: r } } = ct.useI18n(), { axiosInstance: o } = Ft({
|
|
3933
|
-
headers: (
|
|
3933
|
+
headers: (P = t.config) == null ? void 0 : P.requestHeaders
|
|
3934
3934
|
}), a = O([]), {
|
|
3935
3935
|
debouncedQueryChange: i,
|
|
3936
3936
|
loading: s,
|
|
@@ -3954,7 +3954,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3954
3954
|
// we need this to determine whether or not to show the description text
|
|
3955
3955
|
}))), p = (k) => {
|
|
3956
3956
|
var T;
|
|
3957
|
-
const x = A.value ? u.value.find((
|
|
3957
|
+
const x = A.value ? u.value.find((L) => L.id === k) : (T = l.value) == null ? void 0 : T.find((L) => L.id === k);
|
|
3958
3958
|
return x ? x.name : k;
|
|
3959
3959
|
}, S = () => {
|
|
3960
3960
|
I.value = "", b.value = [], w.value = [], n("cancel");
|
|
@@ -3965,20 +3965,20 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3965
3965
|
}
|
|
3966
3966
|
C.value = !0, I.value = "", b.value = [], w.value = [];
|
|
3967
3967
|
try {
|
|
3968
|
-
const k = a.value.map((
|
|
3968
|
+
const k = a.value.map((L) => H(L)), x = await Promise.allSettled(k);
|
|
3969
3969
|
let T = !0;
|
|
3970
|
-
x.forEach((
|
|
3971
|
-
|
|
3972
|
-
}), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [],
|
|
3970
|
+
x.forEach((L) => {
|
|
3971
|
+
L.status !== "fulfilled" && (T = !1);
|
|
3972
|
+
}), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], B(x));
|
|
3973
3973
|
} catch {
|
|
3974
3974
|
I.value = r("consumer_groups.errors.add"), n("error", I.value);
|
|
3975
3975
|
} finally {
|
|
3976
3976
|
C.value = !1;
|
|
3977
3977
|
}
|
|
3978
3978
|
}, pe = M(() => {
|
|
3979
|
-
var x, T,
|
|
3979
|
+
var x, T, L, J;
|
|
3980
3980
|
let k = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
|
|
3981
|
-
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (
|
|
3981
|
+
return t.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (L = t.config) != null && L.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), k;
|
|
3982
3982
|
}), H = async (k) => {
|
|
3983
3983
|
const x = {
|
|
3984
3984
|
group: k
|
|
@@ -3987,10 +3987,10 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
3987
3987
|
const T = await o.post(pe.value, x);
|
|
3988
3988
|
return b.value.push(k), T;
|
|
3989
3989
|
} catch (T) {
|
|
3990
|
-
let
|
|
3991
|
-
return T.response.status === 409 && (
|
|
3990
|
+
let L = `${p(k)} - ${T.message}`;
|
|
3991
|
+
return T.response.status === 409 && (L = `${p(k)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(L));
|
|
3992
3992
|
}
|
|
3993
|
-
}, w = O([]),
|
|
3993
|
+
}, w = O([]), B = (k) => {
|
|
3994
3994
|
w.value = k.map((x) => {
|
|
3995
3995
|
var T;
|
|
3996
3996
|
return (T = x.reason) == null ? void 0 : T.message;
|
|
@@ -4001,7 +4001,7 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4001
4001
|
}, { immediate: !0, deep: !0 }), Qe(async () => {
|
|
4002
4002
|
await d();
|
|
4003
4003
|
}), (k, x) => {
|
|
4004
|
-
const T =
|
|
4004
|
+
const T = N("KMultiselect"), L = N("KAlert"), J = N("KPrompt");
|
|
4005
4005
|
return m(), V(J, {
|
|
4006
4006
|
"action-pending": C.value,
|
|
4007
4007
|
class: "kong-ui-entities-add-to-groups-modal",
|
|
@@ -4012,9 +4012,9 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4012
4012
|
onProceed: ne
|
|
4013
4013
|
}, {
|
|
4014
4014
|
"body-content": h(() => [
|
|
4015
|
-
R("div",
|
|
4016
|
-
R("p",
|
|
4017
|
-
|
|
4015
|
+
R("div", el, [
|
|
4016
|
+
R("p", tl, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
|
|
4017
|
+
F(T, {
|
|
4018
4018
|
modelValue: a.value,
|
|
4019
4019
|
"onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
|
|
4020
4020
|
autosuggest: "",
|
|
@@ -4029,14 +4029,14 @@ const Qs = { class: "add-to-group-form-container" }, Xs = { class: "add-to-group
|
|
|
4029
4029
|
width: "100%",
|
|
4030
4030
|
onQueryChange: y(i)
|
|
4031
4031
|
}, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4032
|
-
I.value || g.value || w.value.length ? (m(), j("div",
|
|
4033
|
-
|
|
4032
|
+
I.value || g.value || w.value.length ? (m(), j("div", nl, [
|
|
4033
|
+
F(L, { appearance: "danger" }, {
|
|
4034
4034
|
alertMessage: h(() => [
|
|
4035
|
-
R("p", null,
|
|
4036
|
-
w.value.length ? (m(), j("ul",
|
|
4037
|
-
(m(!0), j(ve, null, ye(w.value, (Q, X) => (m(), j("li", { key: X },
|
|
4035
|
+
R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
|
|
4036
|
+
w.value.length ? (m(), j("ul", rl, [
|
|
4037
|
+
(m(!0), j(ve, null, ye(w.value, (Q, X) => (m(), j("li", { key: X }, K(Q), 1))), 128))
|
|
4038
4038
|
])) : G("", !0),
|
|
4039
|
-
R("div", null,
|
|
4039
|
+
R("div", null, K(I.value || g.value), 1)
|
|
4040
4040
|
]),
|
|
4041
4041
|
_: 1
|
|
4042
4042
|
})
|
|
@@ -4053,7 +4053,7 @@ const Kt = (e, n) => {
|
|
|
4053
4053
|
for (const [r, o] of n)
|
|
4054
4054
|
t[r] = o;
|
|
4055
4055
|
return t;
|
|
4056
|
-
},
|
|
4056
|
+
}, al = /* @__PURE__ */ Kt(ol, [["__scopeId", "data-v-4d30f3c5"]]), il = { class: "kong-ui-entities-consumer-groups-list" }, sl = { key: 1 }, ll = /* @__PURE__ */ ae({
|
|
4057
4057
|
__name: "ConsumerGroupList",
|
|
4058
4058
|
props: {
|
|
4059
4059
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4090,13 +4090,18 @@ const Kt = (e, n) => {
|
|
|
4090
4090
|
type: Function,
|
|
4091
4091
|
required: !1,
|
|
4092
4092
|
default: async () => !0
|
|
4093
|
+
},
|
|
4094
|
+
/** default to false, setting to true will teleport the toolbar button to the destination in the consuming app */
|
|
4095
|
+
useActionOutside: {
|
|
4096
|
+
type: Boolean,
|
|
4097
|
+
default: !1
|
|
4093
4098
|
}
|
|
4094
4099
|
},
|
|
4095
4100
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4096
4101
|
setup(e, { emit: n }) {
|
|
4097
|
-
var
|
|
4102
|
+
var Bt;
|
|
4098
4103
|
const t = e, { i18nT: r, i18n: { t: o } } = ct.useI18n(), a = wt(), { axiosInstance: i } = Ft({
|
|
4099
|
-
headers: (
|
|
4104
|
+
headers: (Bt = t.config) == null ? void 0 : Bt.requestHeaders
|
|
4100
4105
|
}), s = O(1), l = M(() => !!t.config.consumerId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4101
4106
|
name: { label: o("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
|
|
4102
4107
|
};
|
|
@@ -4123,7 +4128,7 @@ const Kt = (e, n) => {
|
|
|
4123
4128
|
},
|
|
4124
4129
|
schema: t.config.filterSchema
|
|
4125
4130
|
};
|
|
4126
|
-
}), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } =
|
|
4131
|
+
}), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = Xs(t.config, f.value, p.value), C = () => {
|
|
4127
4132
|
A.value = "";
|
|
4128
4133
|
}, I = () => {
|
|
4129
4134
|
s.value++;
|
|
@@ -4158,13 +4163,13 @@ const Kt = (e, n) => {
|
|
|
4158
4163
|
}, w = async (E) => {
|
|
4159
4164
|
var le;
|
|
4160
4165
|
await ((le = t.canRetrieve) == null ? void 0 : le.call(t, E)) && a.push(t.config.getViewRoute(E.id));
|
|
4161
|
-
},
|
|
4166
|
+
}, B = (E) => ({
|
|
4162
4167
|
label: o("consumer_groups.actions.view"),
|
|
4163
4168
|
to: t.config.getViewRoute(E)
|
|
4164
|
-
}),
|
|
4169
|
+
}), P = (E) => ({
|
|
4165
4170
|
label: o("consumer_groups.actions.edit"),
|
|
4166
4171
|
to: t.config.getEditRoute(E)
|
|
4167
|
-
}), k = O(void 0), x = O(!1), T = O(!1),
|
|
4172
|
+
}), k = O(void 0), x = O(!1), T = O(!1), L = O(""), J = Zs(t.config, f.value), Q = (E) => {
|
|
4168
4173
|
k.value = E, x.value = !0;
|
|
4169
4174
|
}, X = () => {
|
|
4170
4175
|
x.value = !1;
|
|
@@ -4175,7 +4180,7 @@ const Kt = (e, n) => {
|
|
|
4175
4180
|
try {
|
|
4176
4181
|
await i.delete(J(k.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", k.value);
|
|
4177
4182
|
} catch (Ce) {
|
|
4178
|
-
|
|
4183
|
+
L.value = ((le = (z = Ce.response) == null ? void 0 : z.data) == null ? void 0 : le.message) || Ce.message || o("consumer_groups.errors.delete"), n("error", Ce);
|
|
4179
4184
|
} finally {
|
|
4180
4185
|
T.value = !1;
|
|
4181
4186
|
}
|
|
@@ -4184,7 +4189,7 @@ const Kt = (e, n) => {
|
|
|
4184
4189
|
ie.value = !0;
|
|
4185
4190
|
}, _ = () => {
|
|
4186
4191
|
ie.value = !1;
|
|
4187
|
-
},
|
|
4192
|
+
}, U = (E, z) => {
|
|
4188
4193
|
z || _(), s.value++, n("add:success", E);
|
|
4189
4194
|
}, re = () => {
|
|
4190
4195
|
l.value && Ve();
|
|
@@ -4192,7 +4197,7 @@ const Kt = (e, n) => {
|
|
|
4192
4197
|
q.value = E, D.value = !0;
|
|
4193
4198
|
}, ce = () => {
|
|
4194
4199
|
D.value = !1, q.value = void 0;
|
|
4195
|
-
},
|
|
4200
|
+
}, Be = M(() => {
|
|
4196
4201
|
var z, le, Ce, Ee;
|
|
4197
4202
|
let E = `${t.config.apiBaseUrl}${$e.list[t.config.app].oneForConsumer}`;
|
|
4198
4203
|
return t.config.app === "konnect" ? E = E.replace(/{controlPlaneId}/gi, ((z = t.config) == null ? void 0 : z.controlPlaneId) || "").replace(/{consumerId}/gi, ((le = t.config) == null ? void 0 : le.consumerId) || "") : t.config.app === "kongManager" && (E = E.replace(/\/{workspace}/gi, (Ce = t.config) != null && Ce.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((Ee = t.config) == null ? void 0 : Ee.consumerId) || "")), E;
|
|
@@ -4200,7 +4205,7 @@ const Kt = (e, n) => {
|
|
|
4200
4205
|
if (q.value) {
|
|
4201
4206
|
De.value = !0;
|
|
4202
4207
|
try {
|
|
4203
|
-
const E =
|
|
4208
|
+
const E = Be.value.replace(/{consumerGroupId}/gi, q.value.id);
|
|
4204
4209
|
await i.delete(E), n("remove:success", q.value), ce(), s.value++;
|
|
4205
4210
|
} catch (E) {
|
|
4206
4211
|
ge.value = E.message || o("consumer_groups.errors.delete"), n("error", E);
|
|
@@ -4225,9 +4230,9 @@ const Kt = (e, n) => {
|
|
|
4225
4230
|
return Qe(async () => {
|
|
4226
4231
|
await t.canCreate() && (pt.value.title = l.value ? o("consumer_groups.list.empty_state.title_for_consumer") : o("consumer_groups.list.empty_state.title"), pt.value.ctaText = l.value ? o("consumer_groups.actions.add_to_group") : o("consumer_groups.actions.create"));
|
|
4227
4232
|
}), (E, z) => {
|
|
4228
|
-
const le =
|
|
4229
|
-
return m(), j("div",
|
|
4230
|
-
|
|
4233
|
+
const le = N("KButton"), Ce = N("KTooltip"), Ee = N("KBadge"), sr = N("KTruncate"), Ge = N("KDropdownItem"), Nt = N("KClipboardProvider"), lr = N("KPrompt");
|
|
4234
|
+
return m(), j("div", il, [
|
|
4235
|
+
F(y(Ss), {
|
|
4231
4236
|
"cache-identifier": e.cacheIdentifier,
|
|
4232
4237
|
"disable-pagination": l.value,
|
|
4233
4238
|
"disable-pagination-page-jump": "",
|
|
@@ -4242,13 +4247,14 @@ const Kt = (e, n) => {
|
|
|
4242
4247
|
query: A.value,
|
|
4243
4248
|
"row-attributes": g,
|
|
4244
4249
|
"table-headers": y(u),
|
|
4250
|
+
"use-action-outside": e.useActionOutside,
|
|
4245
4251
|
onClearSearchInput: C,
|
|
4246
4252
|
"onClick:row": z[3] || (z[3] = (W) => w(W)),
|
|
4247
4253
|
onEmptyStateCtaClicked: re,
|
|
4248
4254
|
onSort: I
|
|
4249
4255
|
}, {
|
|
4250
4256
|
"toolbar-filter": h(() => [
|
|
4251
|
-
l.value ? G("", !0) : (m(), V(y(
|
|
4257
|
+
l.value ? G("", !0) : (m(), V(y(Ds), {
|
|
4252
4258
|
key: 0,
|
|
4253
4259
|
modelValue: A.value,
|
|
4254
4260
|
"onUpdate:modelValue": z[0] || (z[0] = (W) => A.value = W),
|
|
@@ -4256,113 +4262,125 @@ const Kt = (e, n) => {
|
|
|
4256
4262
|
}, null, 8, ["modelValue", "config"]))
|
|
4257
4263
|
]),
|
|
4258
4264
|
"toolbar-button": h(() => [
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
4265
|
-
|
|
4266
|
-
|
|
4267
|
-
|
|
4268
|
-
|
|
4269
|
-
|
|
4270
|
-
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4275
|
-
|
|
4276
|
-
|
|
4277
|
-
|
|
4265
|
+
(m(), V(br, {
|
|
4266
|
+
disabled: !e.useActionOutside,
|
|
4267
|
+
to: "#kong-ui-app-page-header-action-button"
|
|
4268
|
+
}, [
|
|
4269
|
+
F(y(Xe), {
|
|
4270
|
+
"auth-function": () => e.canCreate()
|
|
4271
|
+
}, {
|
|
4272
|
+
default: h(() => [
|
|
4273
|
+
F(Ce, {
|
|
4274
|
+
label: y(o)("consumer_groups.list.empty_state.description")
|
|
4275
|
+
}, {
|
|
4276
|
+
default: h(() => [
|
|
4277
|
+
F(le, {
|
|
4278
|
+
appearance: "primary",
|
|
4279
|
+
"data-testid": "toolbar-add-consumer-group",
|
|
4280
|
+
icon: "plus",
|
|
4281
|
+
to: e.config.consumerId ? void 0 : e.config.createRoute,
|
|
4282
|
+
onClick: z[1] || (z[1] = () => e.config.consumerId ? Ve() : void 0)
|
|
4283
|
+
}, {
|
|
4284
|
+
default: h(() => [
|
|
4285
|
+
Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.add_to_group") : y(o)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
|
|
4286
|
+
]),
|
|
4287
|
+
_: 1
|
|
4288
|
+
}, 8, ["to"])
|
|
4289
|
+
]),
|
|
4290
|
+
_: 1
|
|
4291
|
+
}, 8, ["label"])
|
|
4292
|
+
]),
|
|
4293
|
+
_: 1
|
|
4294
|
+
}, 8, ["auth-function"])
|
|
4295
|
+
], 8, ["disabled"]))
|
|
4278
4296
|
]),
|
|
4279
4297
|
name: h(({ rowValue: W }) => [
|
|
4280
|
-
R("b", null,
|
|
4298
|
+
R("b", null, K(W ?? "-"), 1)
|
|
4281
4299
|
]),
|
|
4282
4300
|
consumers_count: h(({ rowValue: W }) => [
|
|
4283
|
-
Z(
|
|
4301
|
+
Z(K(W ?? "-"), 1)
|
|
4284
4302
|
]),
|
|
4285
4303
|
tags: h(({ rowValue: W }) => [
|
|
4286
|
-
(W == null ? void 0 : W.length) > 0 ? (m(), V(
|
|
4304
|
+
(W == null ? void 0 : W.length) > 0 ? (m(), V(sr, { key: 0 }, {
|
|
4287
4305
|
default: h(() => [
|
|
4288
|
-
(m(!0), j(ve, null, ye(W, (
|
|
4289
|
-
key:
|
|
4306
|
+
(m(!0), j(ve, null, ye(W, (Ne) => (m(), V(Ee, {
|
|
4307
|
+
key: Ne,
|
|
4290
4308
|
onClick: z[2] || (z[2] = rt(() => {
|
|
4291
4309
|
}, ["stop"]))
|
|
4292
4310
|
}, {
|
|
4293
4311
|
default: h(() => [
|
|
4294
|
-
Z(
|
|
4312
|
+
Z(K(Ne), 1)
|
|
4295
4313
|
]),
|
|
4296
4314
|
_: 2
|
|
4297
4315
|
}, 1024))), 128))
|
|
4298
4316
|
]),
|
|
4299
4317
|
_: 2
|
|
4300
|
-
}, 1024)) : (m(), j("span",
|
|
4318
|
+
}, 1024)) : (m(), j("span", sl, "-"))
|
|
4301
4319
|
]),
|
|
4302
4320
|
actions: h(({ row: W }) => [
|
|
4303
|
-
|
|
4304
|
-
default: h(({ copyToClipboard:
|
|
4305
|
-
|
|
4321
|
+
F(Nt, null, {
|
|
4322
|
+
default: h(({ copyToClipboard: Ne }) => [
|
|
4323
|
+
F(Ge, {
|
|
4306
4324
|
"data-testid": "action-entity-copy-id",
|
|
4307
|
-
onClick: (
|
|
4325
|
+
onClick: (ur) => pe(W, Ne)
|
|
4308
4326
|
}, {
|
|
4309
4327
|
default: h(() => [
|
|
4310
|
-
Z(
|
|
4328
|
+
Z(K(y(o)("consumer_groups.actions.copy_id")), 1)
|
|
4311
4329
|
]),
|
|
4312
4330
|
_: 2
|
|
4313
4331
|
}, 1032, ["onClick"])
|
|
4314
4332
|
]),
|
|
4315
4333
|
_: 2
|
|
4316
4334
|
}, 1024),
|
|
4317
|
-
|
|
4318
|
-
default: h(({ copyToClipboard:
|
|
4319
|
-
|
|
4335
|
+
F(Nt, null, {
|
|
4336
|
+
default: h(({ copyToClipboard: Ne }) => [
|
|
4337
|
+
F(Ge, {
|
|
4320
4338
|
"data-testid": "action-entity-copy-json",
|
|
4321
|
-
onClick: (
|
|
4339
|
+
onClick: (ur) => H(W, Ne)
|
|
4322
4340
|
}, {
|
|
4323
4341
|
default: h(() => [
|
|
4324
|
-
Z(
|
|
4342
|
+
Z(K(y(o)("consumer_groups.actions.copy_json")), 1)
|
|
4325
4343
|
]),
|
|
4326
4344
|
_: 2
|
|
4327
4345
|
}, 1032, ["onClick"])
|
|
4328
4346
|
]),
|
|
4329
4347
|
_: 2
|
|
4330
4348
|
}, 1024),
|
|
4331
|
-
|
|
4349
|
+
F(y(Xe), {
|
|
4332
4350
|
"auth-function": () => e.canRetrieve(W)
|
|
4333
4351
|
}, {
|
|
4334
4352
|
default: h(() => [
|
|
4335
|
-
|
|
4353
|
+
F(Ge, {
|
|
4336
4354
|
"data-testid": "action-entity-view",
|
|
4337
4355
|
"has-divider": "",
|
|
4338
|
-
item:
|
|
4356
|
+
item: B(W.id)
|
|
4339
4357
|
}, null, 8, ["item"])
|
|
4340
4358
|
]),
|
|
4341
4359
|
_: 2
|
|
4342
4360
|
}, 1032, ["auth-function"]),
|
|
4343
|
-
|
|
4361
|
+
F(y(Xe), {
|
|
4344
4362
|
"auth-function": () => e.canEdit(W)
|
|
4345
4363
|
}, {
|
|
4346
4364
|
default: h(() => [
|
|
4347
|
-
|
|
4365
|
+
F(Ge, {
|
|
4348
4366
|
"data-testid": "action-entity-edit",
|
|
4349
|
-
item:
|
|
4367
|
+
item: P(W.id)
|
|
4350
4368
|
}, null, 8, ["item"])
|
|
4351
4369
|
]),
|
|
4352
4370
|
_: 2
|
|
4353
4371
|
}, 1032, ["auth-function"]),
|
|
4354
|
-
|
|
4372
|
+
F(y(Xe), {
|
|
4355
4373
|
"auth-function": () => e.canDelete(W)
|
|
4356
4374
|
}, {
|
|
4357
4375
|
default: h(() => [
|
|
4358
|
-
|
|
4376
|
+
F(Ge, {
|
|
4359
4377
|
"data-testid": "action-entity-delete",
|
|
4360
4378
|
"has-divider": "",
|
|
4361
4379
|
"is-dangerous": "",
|
|
4362
4380
|
onClick: () => e.config.consumerId ? _e(W) : Q(W)
|
|
4363
4381
|
}, {
|
|
4364
4382
|
default: h(() => [
|
|
4365
|
-
Z(
|
|
4383
|
+
Z(K(e.config.consumerId ? y(o)("consumer_groups.actions.exit") : y(o)("consumer_groups.actions.delete")), 1)
|
|
4366
4384
|
]),
|
|
4367
4385
|
_: 2
|
|
4368
4386
|
}, 1032, ["onClick"])
|
|
@@ -4371,29 +4389,29 @@ const Kt = (e, n) => {
|
|
|
4371
4389
|
}, 1032, ["auth-function"])
|
|
4372
4390
|
]),
|
|
4373
4391
|
_: 1
|
|
4374
|
-
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
|
|
4375
|
-
|
|
4392
|
+
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4393
|
+
F(y(Ms), {
|
|
4376
4394
|
"action-pending": T.value,
|
|
4377
4395
|
"data-testid": "delete-consumer-group-modal",
|
|
4378
4396
|
description: y(o)("consumer_groups.delete.description"),
|
|
4379
4397
|
"entity-name": k.value && (k.value.name || k.value.id),
|
|
4380
4398
|
"entity-type": y(dn).ConsumerGroup,
|
|
4381
|
-
error:
|
|
4399
|
+
error: L.value,
|
|
4382
4400
|
title: y(o)("consumer_groups.delete.title"),
|
|
4383
4401
|
visible: x.value,
|
|
4384
4402
|
onCancel: X,
|
|
4385
4403
|
onProceed: ee
|
|
4386
4404
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4387
|
-
e.config.consumerId ? (m(), V(
|
|
4405
|
+
e.config.consumerId ? (m(), V(al, {
|
|
4388
4406
|
key: 0,
|
|
4389
4407
|
config: e.config,
|
|
4390
4408
|
"data-testid": "add-to-group-modal",
|
|
4391
4409
|
visible: ie.value,
|
|
4392
|
-
"onAdd:partialSuccess": z[4] || (z[4] = (W) =>
|
|
4393
|
-
"onAdd:success": z[5] || (z[5] = (W) =>
|
|
4410
|
+
"onAdd:partialSuccess": z[4] || (z[4] = (W) => U(W, !0)),
|
|
4411
|
+
"onAdd:success": z[5] || (z[5] = (W) => U(W)),
|
|
4394
4412
|
onCancel: _
|
|
4395
4413
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4396
|
-
e.config.consumerId && q.value ? (m(), V(
|
|
4414
|
+
e.config.consumerId && q.value ? (m(), V(lr, {
|
|
4397
4415
|
key: 1,
|
|
4398
4416
|
"data-testid": "exit-group-modal",
|
|
4399
4417
|
"is-visible": D.value,
|
|
@@ -4403,25 +4421,25 @@ const Kt = (e, n) => {
|
|
|
4403
4421
|
onProceed: ir
|
|
4404
4422
|
}, {
|
|
4405
4423
|
"body-content": h(() => [
|
|
4406
|
-
|
|
4424
|
+
F(y(r), {
|
|
4407
4425
|
class: "exit-modal-message",
|
|
4408
4426
|
keypath: e.config.consumerUsername ? "consumer_groups.consumers.exit.confirmation" : "consumer_groups.consumers.exit.confirmationNoUsername",
|
|
4409
4427
|
tag: "p"
|
|
4410
4428
|
}, Te({
|
|
4411
4429
|
consumerGroup: h(() => [
|
|
4412
|
-
R("strong", null,
|
|
4430
|
+
R("strong", null, K(q.value.name || q.value.id), 1)
|
|
4413
4431
|
]),
|
|
4414
4432
|
_: 2
|
|
4415
4433
|
}, [
|
|
4416
4434
|
e.config.consumerUsername ? {
|
|
4417
4435
|
name: "consumer",
|
|
4418
4436
|
fn: h(() => [
|
|
4419
|
-
R("strong", null,
|
|
4437
|
+
R("strong", null, K(e.config.consumerUsername), 1)
|
|
4420
4438
|
]),
|
|
4421
4439
|
key: "0"
|
|
4422
4440
|
} : void 0
|
|
4423
4441
|
]), 1032, ["keypath"]),
|
|
4424
|
-
R("p", null,
|
|
4442
|
+
R("p", null, K(y(o)("consumer_groups.consumers.exit.description")), 1)
|
|
4425
4443
|
]),
|
|
4426
4444
|
_: 1
|
|
4427
4445
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
@@ -4429,10 +4447,10 @@ const Kt = (e, n) => {
|
|
|
4429
4447
|
};
|
|
4430
4448
|
}
|
|
4431
4449
|
});
|
|
4432
|
-
const
|
|
4450
|
+
const Il = /* @__PURE__ */ Kt(ll, [["__scopeId", "data-v-0268eb9a"]]), ul = { class: "kong-ui-entities-consumer-group-form" }, cl = { class: "select-item-label" }, dl = {
|
|
4433
4451
|
key: 0,
|
|
4434
4452
|
class: "select-item-desc"
|
|
4435
|
-
},
|
|
4453
|
+
}, pl = /* @__PURE__ */ ae({
|
|
4436
4454
|
__name: "ConsumerGroupForm",
|
|
4437
4455
|
props: {
|
|
4438
4456
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4474,19 +4492,19 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4474
4492
|
searchKeys: ["username", "custom_id", "id"]
|
|
4475
4493
|
}), { axiosInstance: g } = Ft({
|
|
4476
4494
|
headers: (Ve = t.config) == null ? void 0 : Ve.requestHeaders
|
|
4477
|
-
}), { getMessageFromError: f } =
|
|
4495
|
+
}), { getMessageFromError: f } = Qs(), A = M(() => u.value.map((_) => ({
|
|
4478
4496
|
label: _.username || _.custom_id,
|
|
4479
4497
|
value: _.id,
|
|
4480
4498
|
selected: a.fields.consumers.includes(_.id),
|
|
4481
4499
|
data: _
|
|
4482
4500
|
// we need this to determine whether or not to show the description text
|
|
4483
4501
|
}))), v = M(() => {
|
|
4484
|
-
var _,
|
|
4485
|
-
return (
|
|
4486
|
-
}), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_,
|
|
4487
|
-
var D, ge, _e, ce,
|
|
4502
|
+
var _, U;
|
|
4503
|
+
return (U = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : U.edit;
|
|
4504
|
+
}), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), C = (_, U = "", re = "") => {
|
|
4505
|
+
var D, ge, _e, ce, Be, De;
|
|
4488
4506
|
let q = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
|
|
4489
|
-
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((
|
|
4507
|
+
return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Be = t.config) == null ? void 0 : Be.app) === "kongManager" && (q = q.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), q = q.replace(/{id}/gi, U || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (q = q.replace(/{consumerId}/gi, re)), q;
|
|
4490
4508
|
}, I = () => {
|
|
4491
4509
|
var _;
|
|
4492
4510
|
o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
|
|
@@ -4497,72 +4515,72 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4497
4515
|
}, H = async (_) => {
|
|
4498
4516
|
var re, q, D, ge, _e;
|
|
4499
4517
|
a.fields.name = ((re = _ == null ? void 0 : _.item) == null ? void 0 : re.name) || ((q = _ == null ? void 0 : _.consumer_group) == null ? void 0 : q.name) || (_ == null ? void 0 : _.name) || "";
|
|
4500
|
-
const
|
|
4501
|
-
if (a.fields.tags = (
|
|
4518
|
+
const U = ((D = _ == null ? void 0 : _.item) == null ? void 0 : D.tags) || (_ == null ? void 0 : _.consumer_group.tags) || (_ == null ? void 0 : _.tags) || [];
|
|
4519
|
+
if (a.fields.tags = (U == null ? void 0 : U.join(", ")) || "", "consumers" in _)
|
|
4502
4520
|
a.fields.consumers = ((ge = _ == null ? void 0 : _.consumers) == null ? void 0 : ge.map((ce) => ce.id)) || [];
|
|
4503
4521
|
else
|
|
4504
4522
|
try {
|
|
4505
4523
|
const { data: ce } = await g.get(C("getConsumers"));
|
|
4506
|
-
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((
|
|
4524
|
+
a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Be) => Be.id) : [];
|
|
4507
4525
|
} catch (ce) {
|
|
4508
4526
|
x(ce);
|
|
4509
4527
|
}
|
|
4510
4528
|
Object.assign(i, a.fields);
|
|
4511
|
-
}, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")),
|
|
4512
|
-
var _,
|
|
4529
|
+
}, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), B = () => {
|
|
4530
|
+
var _, U;
|
|
4513
4531
|
return {
|
|
4514
4532
|
name: a.fields.name,
|
|
4515
|
-
tags: (
|
|
4533
|
+
tags: (U = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : U.filter((re) => re !== "")
|
|
4516
4534
|
};
|
|
4517
|
-
},
|
|
4535
|
+
}, P = async (_, U = "") => await g.post(C("addConsumer", U, _), { consumer: _ }), k = async (_, U = "") => await g.delete(C("removeConsumer", U, _)), x = (_) => {
|
|
4518
4536
|
a.errorMessage = f(_), n("error", _);
|
|
4519
4537
|
}, T = (_ = t.consumerGroupId) => {
|
|
4520
4538
|
Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
|
|
4521
|
-
},
|
|
4539
|
+
}, L = (_, U, re = t.consumerGroupId) => {
|
|
4522
4540
|
const q = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
|
|
4523
4541
|
q ? x({
|
|
4524
4542
|
code: q.status,
|
|
4525
|
-
message:
|
|
4543
|
+
message: U
|
|
4526
4544
|
}) : T(re);
|
|
4527
4545
|
}, J = async () => {
|
|
4528
4546
|
let _ = "";
|
|
4529
4547
|
try {
|
|
4530
|
-
const { data:
|
|
4531
|
-
_ = "item" in
|
|
4532
|
-
} catch (
|
|
4533
|
-
x(
|
|
4548
|
+
const { data: U } = await g.post(C("create"), B());
|
|
4549
|
+
_ = "item" in U ? U.item.id : U.id;
|
|
4550
|
+
} catch (U) {
|
|
4551
|
+
x(U);
|
|
4534
4552
|
}
|
|
4535
4553
|
if (a.fields.consumers.length > 0 && _)
|
|
4536
4554
|
try {
|
|
4537
|
-
const
|
|
4538
|
-
|
|
4539
|
-
} catch (
|
|
4540
|
-
x(
|
|
4555
|
+
const U = a.fields.consumers.map((q) => P(q, _)), re = await Promise.allSettled(U);
|
|
4556
|
+
L(re, r("consumer_groups.errors.add_consumer"), _);
|
|
4557
|
+
} catch (U) {
|
|
4558
|
+
x(U);
|
|
4541
4559
|
}
|
|
4542
4560
|
else
|
|
4543
4561
|
a.fields.consumers.length === 0 && _ && T(_);
|
|
4544
4562
|
}, Q = async () => {
|
|
4545
4563
|
var re;
|
|
4546
4564
|
try {
|
|
4547
|
-
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(C("edit"),
|
|
4565
|
+
((re = t.config) == null ? void 0 : re.app) === "konnect" ? await g.put(C("edit"), B()) : await g.patch(C("edit"), B());
|
|
4548
4566
|
} catch (q) {
|
|
4549
4567
|
x(q);
|
|
4550
4568
|
}
|
|
4551
|
-
const _ = a.fields.consumers.filter((q) => !i.consumers.includes(q)),
|
|
4552
|
-
if (
|
|
4569
|
+
const _ = a.fields.consumers.filter((q) => !i.consumers.includes(q)), U = i.consumers.filter((q) => !a.fields.consumers.includes(q));
|
|
4570
|
+
if (U.length === 0 && _.length === 0)
|
|
4553
4571
|
T();
|
|
4554
4572
|
else {
|
|
4555
|
-
if (
|
|
4573
|
+
if (U.length > 0)
|
|
4556
4574
|
try {
|
|
4557
|
-
const q =
|
|
4558
|
-
|
|
4575
|
+
const q = U.map((ge) => k(ge)), D = await Promise.allSettled(q);
|
|
4576
|
+
L(D, r("consumer_groups.errors.remove_consumer"));
|
|
4559
4577
|
} catch (q) {
|
|
4560
4578
|
x(q);
|
|
4561
4579
|
}
|
|
4562
4580
|
if (_.length > 0)
|
|
4563
4581
|
try {
|
|
4564
|
-
const q = _.map((ge) =>
|
|
4565
|
-
|
|
4582
|
+
const q = _.map((ge) => P(ge)), D = await Promise.allSettled(q);
|
|
4583
|
+
L(D, r("consumer_groups.errors.add_consumer"));
|
|
4566
4584
|
} catch (q) {
|
|
4567
4585
|
x(q);
|
|
4568
4586
|
}
|
|
@@ -4576,10 +4594,10 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4576
4594
|
};
|
|
4577
4595
|
return Qe(async () => {
|
|
4578
4596
|
await d();
|
|
4579
|
-
}), (_,
|
|
4580
|
-
const re =
|
|
4581
|
-
return m(), j("div",
|
|
4582
|
-
|
|
4597
|
+
}), (_, U) => {
|
|
4598
|
+
const re = N("KInput"), q = N("KMultiselect");
|
|
4599
|
+
return m(), j("div", ul, [
|
|
4600
|
+
F(y(vs), {
|
|
4583
4601
|
"can-submit": S.value && b.value,
|
|
4584
4602
|
config: e.config,
|
|
4585
4603
|
"edit-id": e.consumerGroupId,
|
|
@@ -4587,20 +4605,20 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4587
4605
|
"fetch-url": v.value,
|
|
4588
4606
|
"is-readonly": a.readonly,
|
|
4589
4607
|
onCancel: I,
|
|
4590
|
-
"onFetch:error":
|
|
4608
|
+
"onFetch:error": U[3] || (U[3] = (D) => ne(D)),
|
|
4591
4609
|
"onFetch:success": H,
|
|
4592
|
-
onLoading:
|
|
4610
|
+
onLoading: U[4] || (U[4] = (D) => pe(D)),
|
|
4593
4611
|
onSubmit: X
|
|
4594
4612
|
}, {
|
|
4595
4613
|
default: h(() => [
|
|
4596
|
-
|
|
4614
|
+
F(y(un), {
|
|
4597
4615
|
description: y(r)("consumer_groups.form.general_info.description"),
|
|
4598
4616
|
title: y(r)("consumer_groups.form.general_info.title")
|
|
4599
4617
|
}, {
|
|
4600
4618
|
default: h(() => [
|
|
4601
|
-
|
|
4619
|
+
F(re, {
|
|
4602
4620
|
modelValue: a.fields.name,
|
|
4603
|
-
"onUpdate:modelValue":
|
|
4621
|
+
"onUpdate:modelValue": U[0] || (U[0] = (D) => a.fields.name = D),
|
|
4604
4622
|
modelModifiers: { trim: !0 },
|
|
4605
4623
|
autocomplete: "off",
|
|
4606
4624
|
"data-testid": "consumer-group-form-name",
|
|
@@ -4609,9 +4627,9 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4609
4627
|
required: "",
|
|
4610
4628
|
type: "text"
|
|
4611
4629
|
}, null, 8, ["modelValue", "label", "placeholder"]),
|
|
4612
|
-
|
|
4630
|
+
F(re, {
|
|
4613
4631
|
modelValue: a.fields.tags,
|
|
4614
|
-
"onUpdate:modelValue":
|
|
4632
|
+
"onUpdate:modelValue": U[1] || (U[1] = (D) => a.fields.tags = D),
|
|
4615
4633
|
modelModifiers: { trim: !0 },
|
|
4616
4634
|
autocomplete: "off",
|
|
4617
4635
|
"data-testid": "consumer-group-form-tags",
|
|
@@ -4627,15 +4645,15 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4627
4645
|
]),
|
|
4628
4646
|
_: 1
|
|
4629
4647
|
}, 8, ["description", "title"]),
|
|
4630
|
-
|
|
4648
|
+
F(y(un), {
|
|
4631
4649
|
description: y(r)("consumer_groups.form.consumers.description"),
|
|
4632
4650
|
"has-divider": "",
|
|
4633
4651
|
title: y(r)("consumer_groups.form.consumers.title")
|
|
4634
4652
|
}, {
|
|
4635
4653
|
default: h(() => [
|
|
4636
|
-
|
|
4654
|
+
F(q, {
|
|
4637
4655
|
modelValue: a.fields.consumers,
|
|
4638
|
-
"onUpdate:modelValue":
|
|
4656
|
+
"onUpdate:modelValue": U[2] || (U[2] = (D) => a.fields.consumers = D),
|
|
4639
4657
|
appearance: "select",
|
|
4640
4658
|
autosuggest: "",
|
|
4641
4659
|
"expand-selected": "",
|
|
@@ -4649,8 +4667,8 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4649
4667
|
"item-template": h(({ item: D }) => {
|
|
4650
4668
|
var ge, _e, ce;
|
|
4651
4669
|
return [
|
|
4652
|
-
R("div",
|
|
4653
|
-
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div",
|
|
4670
|
+
R("div", cl, K(D.label), 1),
|
|
4671
|
+
(ge = D == null ? void 0 : D.data) != null && ge.username && ((_e = D == null ? void 0 : D.data) != null && _e.custom_id) ? (m(), j("div", dl, K((ce = D == null ? void 0 : D.data) == null ? void 0 : ce.custom_id), 1)) : G("", !0)
|
|
4654
4672
|
];
|
|
4655
4673
|
}),
|
|
4656
4674
|
_: 1
|
|
@@ -4665,7 +4683,7 @@ const _l = /* @__PURE__ */ Kt(il, [["__scopeId", "data-v-80c4522c"]]), sl = { cl
|
|
|
4665
4683
|
};
|
|
4666
4684
|
}
|
|
4667
4685
|
});
|
|
4668
|
-
const
|
|
4686
|
+
const Al = /* @__PURE__ */ Kt(pl, [["__scopeId", "data-v-102d40d2"]]), fl = { class: "kong-ui-consumer-group-entity-config-card" }, Sl = /* @__PURE__ */ ae({
|
|
4669
4687
|
__name: "ConsumerGroupConfigCard",
|
|
4670
4688
|
props: {
|
|
4671
4689
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4701,8 +4719,8 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4701
4719
|
tooltip: t("consumer_groups.form.fields.tags.tooltip")
|
|
4702
4720
|
}
|
|
4703
4721
|
});
|
|
4704
|
-
return (a, i) => (m(), j("div",
|
|
4705
|
-
|
|
4722
|
+
return (a, i) => (m(), j("div", fl, [
|
|
4723
|
+
F(y(ms), {
|
|
4706
4724
|
config: e.config,
|
|
4707
4725
|
"config-card-doc": e.configCardDoc,
|
|
4708
4726
|
"config-schema": o.value,
|
|
@@ -4718,7 +4736,7 @@ const wl = /* @__PURE__ */ Kt(cl, [["__scopeId", "data-v-102d40d2"]]), dl = { cl
|
|
|
4718
4736
|
}
|
|
4719
4737
|
});
|
|
4720
4738
|
export {
|
|
4721
|
-
|
|
4722
|
-
|
|
4723
|
-
|
|
4739
|
+
Sl as ConsumerGroupConfigCard,
|
|
4740
|
+
Al as ConsumerGroupForm,
|
|
4741
|
+
Il as ConsumerGroupList
|
|
4724
4742
|
};
|