@kong-ui-public/entities-consumers 2.2.4-pr.985.e37a05c6.0 → 2.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities-consumers.es.js +543 -546
- package/dist/entities-consumers.umd.js +15 -15
- package/dist/style.css +1 -1
- package/package.json +5 -5
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as
|
|
1
|
+
import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as ke, withCtx as y, createElementVNode as F, createTextVNode as W, toDisplayString as M, createVNode as K, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as ka, reactive as Nt } from "vue";
|
|
2
2
|
import { useRouter as gt } from "vue-router";
|
|
3
3
|
import { createI18n as yt, i18nTComponent as pn } from "@kong-ui-public/i18n";
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
const
|
|
4
|
+
import Ca from "axios";
|
|
5
|
+
import { MethodsArray as wa } from "@kong/kongponents";
|
|
6
|
+
const Ia = {
|
|
7
7
|
list: {
|
|
8
8
|
table_headers: {
|
|
9
9
|
username: "Username",
|
|
@@ -95,11 +95,11 @@ const _a = {
|
|
|
95
95
|
tooltip: "An optional set of strings associated with the Consumer for grouping and filtering."
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
},
|
|
99
|
-
consumers:
|
|
98
|
+
}, _a = {
|
|
99
|
+
consumers: Ia
|
|
100
100
|
};
|
|
101
101
|
function Aa() {
|
|
102
|
-
const e = yt("en-us",
|
|
102
|
+
const e = yt("en-us", _a);
|
|
103
103
|
return {
|
|
104
104
|
i18n: e,
|
|
105
105
|
i18nT: pn(e)
|
|
@@ -134,10 +134,10 @@ const Ze = {
|
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
|
-
var fn = /* @__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))(fn || {}), lt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(lt || {}),
|
|
137
|
+
var fn = /* @__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))(fn || {}), lt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(lt || {}), Ie = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Ie || {}), X = /* @__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))(X || {}), ce = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ce || {});
|
|
138
138
|
function ht(e = {}) {
|
|
139
139
|
return {
|
|
140
|
-
axiosInstance:
|
|
140
|
+
axiosInstance: Ca.create({
|
|
141
141
|
withCredentials: !0,
|
|
142
142
|
timeout: 3e4,
|
|
143
143
|
...e
|
|
@@ -199,10 +199,10 @@ const $a = {
|
|
|
199
199
|
copyToClipboard: "Copied successfully!",
|
|
200
200
|
copyToClipboardFailed: "Failed to copy to the clipboard"
|
|
201
201
|
}
|
|
202
|
-
},
|
|
202
|
+
}, Ma = {
|
|
203
203
|
message: "Are you sure you want to delete this {entityType}?",
|
|
204
204
|
messageWithName: "Are you sure you want to delete this {entityType} {entityName}?"
|
|
205
|
-
},
|
|
205
|
+
}, ja = {
|
|
206
206
|
actions: {
|
|
207
207
|
save: "Save",
|
|
208
208
|
cancel: "Cancel",
|
|
@@ -252,7 +252,7 @@ const $a = {
|
|
|
252
252
|
entryTitle: "Entry {index}",
|
|
253
253
|
structuredFormat: "Structured"
|
|
254
254
|
}
|
|
255
|
-
},
|
|
255
|
+
}, Ka = {
|
|
256
256
|
filterButtonText: "Filter",
|
|
257
257
|
fieldLabel: "Filter by:",
|
|
258
258
|
inputPlaceholder: "Enter a value",
|
|
@@ -260,7 +260,7 @@ const $a = {
|
|
|
260
260
|
applyButtonText: "Apply",
|
|
261
261
|
clearButtonText: "Clear",
|
|
262
262
|
clearAllButtonText: "Clear all filters"
|
|
263
|
-
},
|
|
263
|
+
}, Fa = {
|
|
264
264
|
errors: {
|
|
265
265
|
fetch: "Could not fetch available items",
|
|
266
266
|
invalid: "Please select a valid value"
|
|
@@ -281,12 +281,12 @@ const $a = {
|
|
|
281
281
|
}
|
|
282
282
|
}, qa = {
|
|
283
283
|
global: $a,
|
|
284
|
-
deleteModal:
|
|
285
|
-
baseForm:
|
|
284
|
+
deleteModal: Ma,
|
|
285
|
+
baseForm: ja,
|
|
286
286
|
baseTable: Oa,
|
|
287
287
|
baseConfigCard: Ea,
|
|
288
|
-
filter:
|
|
289
|
-
debouncedFilter:
|
|
288
|
+
filter: Ka,
|
|
289
|
+
debouncedFilter: Fa,
|
|
290
290
|
errors: Na,
|
|
291
291
|
toggleModal: Ba
|
|
292
292
|
};
|
|
@@ -349,44 +349,44 @@ function La(e, n, t, a = {
|
|
|
349
349
|
t || (t = "100");
|
|
350
350
|
const { axiosInstance: r } = ht({
|
|
351
351
|
headers: e.requestHeaders
|
|
352
|
-
}), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (
|
|
353
|
-
await q(
|
|
352
|
+
}), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (v) => {
|
|
353
|
+
await q(v);
|
|
354
354
|
}, 200), l = O(!1), u = O(""), d = O(""), c = O([]), h = O([]), f = O(void 0), A = g(n);
|
|
355
|
-
let
|
|
356
|
-
e.app === "konnect" ?
|
|
355
|
+
let k = `${e.apiBaseUrl}${A}`;
|
|
356
|
+
e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
|
|
357
357
|
const { isValidUuid: p } = mn(), S = async () => {
|
|
358
358
|
try {
|
|
359
359
|
l.value = !0;
|
|
360
|
-
const { data:
|
|
361
|
-
|
|
360
|
+
const { data: v } = await r.get(`${k}?size=${t}`);
|
|
361
|
+
v != null && v.next || (f.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in v ? v[a.fetchedItemsKey] : [], c.value = h.value;
|
|
362
362
|
} catch {
|
|
363
363
|
c.value = [], u.value = o("debouncedFilter.errors.fetch");
|
|
364
364
|
} finally {
|
|
365
365
|
l.value = !1;
|
|
366
366
|
}
|
|
367
|
-
},
|
|
367
|
+
}, I = O(""), q = async (v) => {
|
|
368
368
|
var w, N, U;
|
|
369
|
-
if (
|
|
370
|
-
if (
|
|
369
|
+
if (I.value !== v)
|
|
370
|
+
if (I.value = v || "", f.value === void 0)
|
|
371
371
|
try {
|
|
372
372
|
if (l.value = !0, u.value = "", d.value = "", e.app === "konnect") {
|
|
373
|
-
let b =
|
|
374
|
-
|
|
375
|
-
const { data:
|
|
376
|
-
a.fetchedItemsKey in
|
|
377
|
-
} else if (
|
|
373
|
+
let b = k + "";
|
|
374
|
+
v && (b += `/${v}`);
|
|
375
|
+
const { data: C } = await r.get(`${b}?size=${t}`);
|
|
376
|
+
a.fetchedItemsKey in C ? c.value = C[a.fetchedItemsKey] : C != null && C.id ? c.value = [C] : c.value = [];
|
|
377
|
+
} else if (v) {
|
|
378
378
|
const b = [];
|
|
379
|
-
p(
|
|
380
|
-
const { data: B } = await r.get(`${
|
|
379
|
+
p(v) && a.searchKeys.includes("id") ? b.push((async () => {
|
|
380
|
+
const { data: B } = await r.get(`${k}/${v}`);
|
|
381
381
|
return [B[a.fetchedItemsKey] ?? B];
|
|
382
382
|
})()) : b.push(
|
|
383
383
|
...a.searchKeys.filter((B) => B !== "id").map(async (B) => {
|
|
384
|
-
const { data: _ } = await r.get(`${
|
|
384
|
+
const { data: _ } = await r.get(`${k}?${B}=${v}`);
|
|
385
385
|
return _[a.fetchedItemsKey];
|
|
386
386
|
})
|
|
387
387
|
);
|
|
388
|
-
const
|
|
389
|
-
c.value = [], (w =
|
|
388
|
+
const C = await Promise.all(b), V = /* @__PURE__ */ new Set();
|
|
389
|
+
c.value = [], (w = C == null ? void 0 : C.forEach) == null || w.call(C, (B) => {
|
|
390
390
|
var _;
|
|
391
391
|
(_ = B == null ? void 0 : B.forEach) == null || _.call(B, (E) => {
|
|
392
392
|
V.has(E.id) || (V.add(E.id), c.value.push(E));
|
|
@@ -400,12 +400,12 @@ function La(e, n, t, a = {
|
|
|
400
400
|
l.value = !1;
|
|
401
401
|
}
|
|
402
402
|
else
|
|
403
|
-
l.value = !0, d.value = "",
|
|
404
|
-
var
|
|
403
|
+
l.value = !0, d.value = "", v ? (c.value = (U = f.value) == null ? void 0 : U.filter((b) => {
|
|
404
|
+
var C;
|
|
405
405
|
let V = !1;
|
|
406
406
|
for (const B of a.searchKeys) {
|
|
407
|
-
const _ = typeof b[B] == "string" ? (
|
|
408
|
-
_ != null && _.includes(
|
|
407
|
+
const _ = typeof b[B] == "string" ? (C = b[B]) == null ? void 0 : C.toLowerCase() : b[B];
|
|
408
|
+
_ != null && _.includes(v.toLowerCase()) && (V = !0);
|
|
409
409
|
}
|
|
410
410
|
return V;
|
|
411
411
|
}), (!c.value || !c.value.length) && (d.value = o("debouncedFilter.errors.invalid"))) : c.value = f.value, l.value = !1;
|
|
@@ -475,8 +475,8 @@ function gn(e, n) {
|
|
|
475
475
|
const { page: s, pageSize: l, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = i;
|
|
476
476
|
try {
|
|
477
477
|
let f = new URL(o.value.href);
|
|
478
|
-
return r.value && h ? (f.search = "", f = new URL(`${f.href}?filter[name][contains]=${h}`)) : (r.value || new URLSearchParams(h).forEach((A,
|
|
479
|
-
f.searchParams.append(
|
|
478
|
+
return r.value && h ? (f.search = "", f = new URL(`${f.href}?filter[name][contains]=${h}`)) : (r.value || new URLSearchParams(h).forEach((A, k) => {
|
|
479
|
+
f.searchParams.append(k, A);
|
|
480
480
|
}), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), u && s !== 1 && f.searchParams.append("offset", String(u)), f.href;
|
|
481
481
|
} catch (f) {
|
|
482
482
|
return console.error("RouteList(fetcher)", f), a.value;
|
|
@@ -487,11 +487,11 @@ function Ua(e, n, t = "data") {
|
|
|
487
487
|
const a = g(n), { axiosInstance: r } = ht({
|
|
488
488
|
headers: e.requestHeaders
|
|
489
489
|
}), o = gn(e, a), i = O({
|
|
490
|
-
status:
|
|
490
|
+
status: Ie.Idle
|
|
491
491
|
});
|
|
492
492
|
return { fetcher: async (s) => {
|
|
493
493
|
try {
|
|
494
|
-
i.value = { status:
|
|
494
|
+
i.value = { status: Ie.Loading };
|
|
495
495
|
const l = o(s), { data: u } = await r.get(l), d = t && t.replace(/[^\w-_]/gi, "");
|
|
496
496
|
let c;
|
|
497
497
|
u[d] && Array.isArray(u[d]) ? c = u[d] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
|
|
@@ -505,7 +505,7 @@ function Ua(e, n, t = "data") {
|
|
|
505
505
|
} : null
|
|
506
506
|
};
|
|
507
507
|
return i.value = {
|
|
508
|
-
status:
|
|
508
|
+
status: Ie.Idle,
|
|
509
509
|
response: h
|
|
510
510
|
}, h;
|
|
511
511
|
} catch (l) {
|
|
@@ -514,11 +514,11 @@ function Ua(e, n, t = "data") {
|
|
|
514
514
|
total: 0
|
|
515
515
|
};
|
|
516
516
|
return s.query && l.response.status === 404 ? (i.value = {
|
|
517
|
-
status:
|
|
517
|
+
status: Ie.NoResults,
|
|
518
518
|
response: u,
|
|
519
519
|
error: l
|
|
520
520
|
}, u) : (i.value = {
|
|
521
|
-
status:
|
|
521
|
+
status: Ie.Error,
|
|
522
522
|
response: u,
|
|
523
523
|
error: l
|
|
524
524
|
}, u);
|
|
@@ -622,10 +622,10 @@ const re = {
|
|
|
622
622
|
for (const [a, r] of n)
|
|
623
623
|
t[a] = r;
|
|
624
624
|
return t;
|
|
625
|
-
}, ar = (e) => (cn("data-v-
|
|
625
|
+
}, ar = (e) => (cn("data-v-641e0aee"), e = e(), dn(), e), rr = ["aria-hidden"], or = {
|
|
626
626
|
key: 0,
|
|
627
627
|
"data-testid": "kui-icon-svg-title"
|
|
628
|
-
}, ir = /* @__PURE__ */ ar(() => /* @__PURE__ */
|
|
628
|
+
}, ir = /* @__PURE__ */ ar(() => /* @__PURE__ */ F("path", {
|
|
629
629
|
d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
|
|
630
630
|
fill: "currentColor"
|
|
631
631
|
}, null, -1)), sr = /* @__PURE__ */ te({
|
|
@@ -714,14 +714,14 @@ const re = {
|
|
|
714
714
|
width: "100%",
|
|
715
715
|
xmlns: "http://www.w3.org/2000/svg"
|
|
716
716
|
}, [
|
|
717
|
-
e.title ? (m(), T("title", or,
|
|
717
|
+
e.title ? (m(), T("title", or, M(e.title), 1)) : G("", !0),
|
|
718
718
|
ir
|
|
719
719
|
], 8, rr))
|
|
720
720
|
]),
|
|
721
721
|
_: 1
|
|
722
722
|
}, 8, ["aria-hidden", "style"]));
|
|
723
723
|
}
|
|
724
|
-
}), lr = /* @__PURE__ */ nr(sr, [["__scopeId", "data-v-
|
|
724
|
+
}), lr = /* @__PURE__ */ nr(sr, [["__scopeId", "data-v-641e0aee"]]), ur = "16px", cr = { class: "kong-ui-copy-uuid" }, dr = ["onClick"], Dt = 15, pr = /* @__PURE__ */ te({
|
|
725
725
|
__name: "CopyUuid",
|
|
726
726
|
props: {
|
|
727
727
|
uuid: {
|
|
@@ -793,7 +793,7 @@ const re = {
|
|
|
793
793
|
}), i.value ? d(a("message.fail")) : n("error", t.uuid);
|
|
794
794
|
return;
|
|
795
795
|
}
|
|
796
|
-
const
|
|
796
|
+
const k = ((f = t.uuid) == null ? void 0 : f.length) > Dt, p = t.format === "hidden" || t.format === "redacted" ? a("message.success.prefix") : `"${((A = t.uuid) == null ? void 0 : A.substring(0, Dt)) + (k ? "..." : "")}"`;
|
|
797
797
|
typeof r == "function" && r({
|
|
798
798
|
type: "success",
|
|
799
799
|
message: `${p}${a("message.success.content")}`
|
|
@@ -804,27 +804,27 @@ const re = {
|
|
|
804
804
|
return m(), T("div", cr, [
|
|
805
805
|
e.format !== "hidden" ? (m(), R(Ee(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
|
|
806
806
|
default: y(() => [
|
|
807
|
-
|
|
807
|
+
F("div", {
|
|
808
808
|
class: Ae([
|
|
809
809
|
"uuid-container",
|
|
810
810
|
e.truncated ? "truncated-uuid" : null,
|
|
811
811
|
e.useMono ? "mono" : null
|
|
812
812
|
])
|
|
813
|
-
},
|
|
813
|
+
}, M(u.value), 3)
|
|
814
814
|
]),
|
|
815
815
|
_: 1
|
|
816
816
|
}, 16)) : G("", !0),
|
|
817
817
|
(m(), R(Ee(e.tooltip ? "KTooltip" : "div"), st(l.value, { class: "uuid-icon-wrapper" }), {
|
|
818
818
|
default: y(() => [
|
|
819
|
-
|
|
820
|
-
default: y(({ copyToClipboard:
|
|
821
|
-
|
|
819
|
+
K(A, null, {
|
|
820
|
+
default: y(({ copyToClipboard: k }) => [
|
|
821
|
+
F("span", {
|
|
822
822
|
"data-testid": "copy-to-clipboard",
|
|
823
823
|
role: "button",
|
|
824
824
|
tabindex: "0",
|
|
825
|
-
onClick: De((p) => c(
|
|
825
|
+
onClick: De((p) => c(k), ["stop"])
|
|
826
826
|
}, [
|
|
827
|
-
|
|
827
|
+
K(g(lr), {
|
|
828
828
|
class: "uuid-icon",
|
|
829
829
|
color: e.iconColor,
|
|
830
830
|
decorative: !!e.tooltip,
|
|
@@ -878,7 +878,7 @@ const re = {
|
|
|
878
878
|
}, {
|
|
879
879
|
default: y(() => [
|
|
880
880
|
e.isArrayItem ? (m(), T("legend", mr, [
|
|
881
|
-
|
|
881
|
+
F("b", null, M(s.value), 1)
|
|
882
882
|
])) : G("", !0),
|
|
883
883
|
(m(!0), T(fe, null, de(Object.keys(i.value), (d, c) => (m(), R(bt, {
|
|
884
884
|
key: `${r.value}-property-${c}`,
|
|
@@ -911,13 +911,13 @@ const re = {
|
|
|
911
911
|
return (t, a) => {
|
|
912
912
|
const r = P("KButton");
|
|
913
913
|
return m(), T("div", null, [
|
|
914
|
-
|
|
914
|
+
K(r, {
|
|
915
915
|
appearance: "tertiary",
|
|
916
916
|
class: "navigation-button",
|
|
917
917
|
onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
|
|
918
918
|
}, {
|
|
919
919
|
default: y(() => [
|
|
920
|
-
W(
|
|
920
|
+
W(M(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
|
|
921
921
|
]),
|
|
922
922
|
_: 1
|
|
923
923
|
})
|
|
@@ -940,17 +940,17 @@ const re = {
|
|
|
940
940
|
appearance: e.status ? "success" : "neutral"
|
|
941
941
|
}, {
|
|
942
942
|
default: y(() => [
|
|
943
|
-
W(
|
|
943
|
+
W(M(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
|
|
944
944
|
]),
|
|
945
945
|
_: 1
|
|
946
946
|
}, 8, ["appearance"]);
|
|
947
947
|
};
|
|
948
948
|
}
|
|
949
|
-
}), br = "#0044f4",
|
|
949
|
+
}), br = "#0044f4", kr = "#e0e4ea", Cr = "#3a3f51", wr = "1px", Ir = "20px", _r = { class: "config-card-details-row" }, Ar = ["data-testid"], Sr = ["data-testid"], xr = ["data-testid"], Tr = ["data-testid"], $r = { key: 1 }, Mr = ["data-testid"], jr = ["data-testid"], Or = ["data-testid"], Er = ["data-testid"], Kr = {
|
|
950
950
|
name: "ConfigCardItem",
|
|
951
951
|
components: { CopyUuid: vn, JsonCardItem: bn, StatusBadge: vr, InternalLinkItem: hr }
|
|
952
|
-
},
|
|
953
|
-
...
|
|
952
|
+
}, Fr = /* @__PURE__ */ te({
|
|
953
|
+
...Kr,
|
|
954
954
|
props: {
|
|
955
955
|
item: {
|
|
956
956
|
type: Object,
|
|
@@ -971,10 +971,10 @@ const re = {
|
|
|
971
971
|
setup(e, { emit: n }) {
|
|
972
972
|
const t = e;
|
|
973
973
|
ma((f) => ({
|
|
974
|
-
"
|
|
975
|
-
"
|
|
976
|
-
"
|
|
977
|
-
"
|
|
974
|
+
"23f3018c": u.value ? "none" : `solid ${g(wr)} ${g(kr)}`,
|
|
975
|
+
"3815ec6d": l.value && i.value ? "block" : "flex",
|
|
976
|
+
"1957f153": l.value && i.value ? "100%" : t.slim ? "50%" : "25%",
|
|
977
|
+
"195a372e": l.value && i.value ? "100%" : t.slim ? "50%" : "75%"
|
|
978
978
|
}));
|
|
979
979
|
const a = We(), { i18n: { t: r, formatUnixTimeStamp: o } } = re.useI18n(), i = $(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), s = $(() => !!(t.item.tooltip || a["label-tooltip"])), l = $(() => t.item.type === X.Json || t.item.type === X.JsonArray), u = $(() => t.item.type === X.JsonArray), d = $(() => {
|
|
980
980
|
switch (t.item.type) {
|
|
@@ -1104,27 +1104,27 @@ const re = {
|
|
|
1104
1104
|
}
|
|
1105
1105
|
}), c = O(), { isTruncated: h } = re.useTruncationDetector(c);
|
|
1106
1106
|
return (f, A) => {
|
|
1107
|
-
const
|
|
1108
|
-
return m(), T("div",
|
|
1109
|
-
|
|
1107
|
+
const k = P("KLabel"), p = P("KBadge"), S = P("KMethodBadge"), I = P("KTooltip");
|
|
1108
|
+
return m(), T("div", _r, [
|
|
1109
|
+
F("div", {
|
|
1110
1110
|
class: "config-card-details-label",
|
|
1111
1111
|
"data-testid": `${e.item.key}-label`
|
|
1112
1112
|
}, [
|
|
1113
1113
|
Y(f.$slots, "label", { item: e.item }, () => [
|
|
1114
|
-
|
|
1114
|
+
K(k, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
|
|
1115
1115
|
default: y(() => [
|
|
1116
|
-
W(
|
|
1116
|
+
W(M(e.item.label) + " ", 1)
|
|
1117
1117
|
]),
|
|
1118
1118
|
_: 2
|
|
1119
1119
|
}, [
|
|
1120
1120
|
s.value ? {
|
|
1121
1121
|
name: "tooltip",
|
|
1122
1122
|
fn: y(() => [
|
|
1123
|
-
|
|
1123
|
+
F("div", {
|
|
1124
1124
|
"data-testid": `${e.item.key}-label-tooltip`
|
|
1125
1125
|
}, [
|
|
1126
1126
|
Y(f.$slots, "label-tooltip", {}, () => [
|
|
1127
|
-
W(
|
|
1127
|
+
W(M(e.item.tooltip), 1)
|
|
1128
1128
|
], !0)
|
|
1129
1129
|
], 8, Sr)
|
|
1130
1130
|
]),
|
|
@@ -1133,7 +1133,7 @@ const re = {
|
|
|
1133
1133
|
]), 1024)
|
|
1134
1134
|
], !0)
|
|
1135
1135
|
], 8, Ar),
|
|
1136
|
-
|
|
1136
|
+
F("div", {
|
|
1137
1137
|
class: "config-card-details-value",
|
|
1138
1138
|
"data-testid": `${e.item.key}-property-value`
|
|
1139
1139
|
}, [
|
|
@@ -1147,66 +1147,67 @@ const re = {
|
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
"data-testid": `${e.item.key}-badge-tags`
|
|
1149
1149
|
}, [
|
|
1150
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1151
|
-
key: `${e.item.key}-badge-tag-${
|
|
1150
|
+
(m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(p, {
|
|
1151
|
+
key: `${e.item.key}-badge-tag-${v}`,
|
|
1152
1152
|
class: "config-badge",
|
|
1153
|
-
"data-testid": `${e.item.key}-badge-tag-${
|
|
1154
|
-
tooltip:
|
|
1155
|
-
"truncation-tooltip": ""
|
|
1153
|
+
"data-testid": `${e.item.key}-badge-tag-${v}`,
|
|
1154
|
+
"truncation-tooltip": q
|
|
1156
1155
|
}, {
|
|
1157
1156
|
default: y(() => [
|
|
1158
|
-
W(
|
|
1157
|
+
W(M(q), 1)
|
|
1159
1158
|
]),
|
|
1160
1159
|
_: 2
|
|
1161
|
-
}, 1032, ["data-testid", "tooltip"]))), 128))
|
|
1162
|
-
], 8,
|
|
1160
|
+
}, 1032, ["data-testid", "truncation-tooltip"]))), 128))
|
|
1161
|
+
], 8, Mr)) : G("", !0),
|
|
1163
1162
|
d.value.additionalComponent === "CopyUuid" ? (m(), T("div", {
|
|
1164
1163
|
key: 1,
|
|
1165
1164
|
class: "copy-uuid-array",
|
|
1166
1165
|
"data-testid": `${e.item.key}-copy-uuid-array`
|
|
1167
1166
|
}, [
|
|
1168
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1169
|
-
key: `${e.item.key}-copy-uuid-${
|
|
1170
|
-
"data-testid": `${e.item.key}-copy-uuid-${
|
|
1171
|
-
uuid:
|
|
1167
|
+
(m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(g(vn), st(d.value.childAttrs, {
|
|
1168
|
+
key: `${e.item.key}-copy-uuid-${v}`,
|
|
1169
|
+
"data-testid": `${e.item.key}-copy-uuid-${v}`,
|
|
1170
|
+
uuid: q
|
|
1172
1171
|
}), null, 16, ["data-testid", "uuid"]))), 128))
|
|
1173
|
-
], 8,
|
|
1172
|
+
], 8, jr)) : d.value.additionalComponent === "KMethodBadge" ? (m(), T("div", {
|
|
1174
1173
|
key: 2,
|
|
1175
1174
|
class: "method-badge-array",
|
|
1176
1175
|
"data-testid": `${e.item.key}-badge-methods`
|
|
1177
1176
|
}, [
|
|
1178
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1179
|
-
key: `${e.item.key}-badge-method-${
|
|
1180
|
-
appearance: Object.values(g(wa)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
|
|
1177
|
+
(m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(S, {
|
|
1178
|
+
key: `${e.item.key}-badge-method-${v}`,
|
|
1181
1179
|
class: "config-badge",
|
|
1182
|
-
"data-testid": `${e.item.key}-badge-method-${
|
|
1180
|
+
"data-testid": `${e.item.key}-badge-method-${v}`,
|
|
1181
|
+
"is-rounded": "",
|
|
1182
|
+
label: q,
|
|
1183
|
+
method: g(wa).includes(q.toLowerCase()) ? q.toLowerCase() : "custom"
|
|
1183
1184
|
}, {
|
|
1184
1185
|
default: y(() => [
|
|
1185
|
-
W(
|
|
1186
|
+
W(M(q), 1)
|
|
1186
1187
|
]),
|
|
1187
1188
|
_: 2
|
|
1188
|
-
}, 1032, ["
|
|
1189
|
+
}, 1032, ["data-testid", "label", "method"]))), 128))
|
|
1189
1190
|
], 8, Or)) : G("", !0),
|
|
1190
1191
|
d.value.additionalComponent === "JsonCardItem" ? (m(), T("div", {
|
|
1191
1192
|
key: 3,
|
|
1192
1193
|
"data-testid": `${t.item.key}-json-array-content`
|
|
1193
1194
|
}, [
|
|
1194
|
-
(m(!0), T(fe, null, de(e.item.value, (
|
|
1195
|
-
key: `json-array-item-${
|
|
1196
|
-
index:
|
|
1195
|
+
(m(!0), T(fe, null, de(e.item.value, (q, v) => (m(), R(bn, {
|
|
1196
|
+
key: `json-array-item-${v}`,
|
|
1197
|
+
index: v,
|
|
1197
1198
|
"is-array-item": "",
|
|
1198
|
-
item:
|
|
1199
|
+
item: q
|
|
1199
1200
|
}, null, 8, ["index", "item"]))), 128))
|
|
1200
|
-
], 8, Er)) : (m(), R(
|
|
1201
|
+
], 8, Er)) : (m(), R(I, {
|
|
1201
1202
|
key: 4,
|
|
1202
1203
|
label: g(h) ? e.item.value : ""
|
|
1203
1204
|
}, {
|
|
1204
1205
|
default: y(() => [
|
|
1205
|
-
|
|
1206
|
+
F("span", {
|
|
1206
1207
|
ref_key: "textContent",
|
|
1207
1208
|
ref: c,
|
|
1208
1209
|
class: Ae(["attrs-data-text", { truncated: e.truncated }])
|
|
1209
|
-
},
|
|
1210
|
+
}, M(d.value.text), 3)
|
|
1210
1211
|
]),
|
|
1211
1212
|
_: 1
|
|
1212
1213
|
}, 8, ["label"]))
|
|
@@ -1222,16 +1223,16 @@ const re = {
|
|
|
1222
1223
|
]);
|
|
1223
1224
|
};
|
|
1224
1225
|
}
|
|
1225
|
-
}), bt = /* @__PURE__ */ me(
|
|
1226
|
+
}), bt = /* @__PURE__ */ me(Fr, [["__scopeId", "data-v-e851fc7c"]]);
|
|
1226
1227
|
/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
|
|
1227
|
-
function
|
|
1228
|
+
function kn(e) {
|
|
1228
1229
|
return typeof e > "u" || e === null;
|
|
1229
1230
|
}
|
|
1230
1231
|
function Nr(e) {
|
|
1231
1232
|
return typeof e == "object" && e !== null;
|
|
1232
1233
|
}
|
|
1233
1234
|
function Br(e) {
|
|
1234
|
-
return Array.isArray(e) ? e :
|
|
1235
|
+
return Array.isArray(e) ? e : kn(e) ? [] : [e];
|
|
1235
1236
|
}
|
|
1236
1237
|
function qr(e, n) {
|
|
1237
1238
|
var t, a, r, o;
|
|
@@ -1249,7 +1250,7 @@ function Lr(e, n) {
|
|
|
1249
1250
|
function Pr(e) {
|
|
1250
1251
|
return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
|
|
1251
1252
|
}
|
|
1252
|
-
var Vr =
|
|
1253
|
+
var Vr = kn, Rr = Nr, Ur = Br, Dr = Lr, Gr = Pr, Hr = qr, ae = {
|
|
1253
1254
|
isNothing: Vr,
|
|
1254
1255
|
isObject: Rr,
|
|
1255
1256
|
toArray: Ur,
|
|
@@ -1257,19 +1258,19 @@ var Vr = Cn, Rr = Nr, Ur = Br, Dr = Lr, Gr = Pr, Hr = qr, ae = {
|
|
|
1257
1258
|
isNegativeZero: Gr,
|
|
1258
1259
|
extend: Hr
|
|
1259
1260
|
};
|
|
1260
|
-
function
|
|
1261
|
+
function Cn(e, n) {
|
|
1261
1262
|
var t = "", a = e.reason || "(unknown reason)";
|
|
1262
1263
|
return e.mark ? (e.mark.name && (t += 'in "' + e.mark.name + '" '), t += "(" + (e.mark.line + 1) + ":" + (e.mark.column + 1) + ")", !n && e.mark.snippet && (t += `
|
|
1263
1264
|
|
|
1264
1265
|
` + e.mark.snippet), a + " " + t) : a;
|
|
1265
1266
|
}
|
|
1266
1267
|
function Le(e, n) {
|
|
1267
|
-
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message =
|
|
1268
|
+
Error.call(this), this.name = "YAMLException", this.reason = e, this.mark = n, this.message = Cn(this, !1), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack || "";
|
|
1268
1269
|
}
|
|
1269
1270
|
Le.prototype = Object.create(Error.prototype);
|
|
1270
1271
|
Le.prototype.constructor = Le;
|
|
1271
1272
|
Le.prototype.toString = function(e) {
|
|
1272
|
-
return this.name + ": " +
|
|
1273
|
+
return this.name + ": " + Cn(this, e);
|
|
1273
1274
|
};
|
|
1274
1275
|
var se = Le;
|
|
1275
1276
|
function rt(e, n, t, a, r) {
|
|
@@ -1405,12 +1406,12 @@ ut.prototype.extend = function(e) {
|
|
|
1405
1406
|
var a = Object.create(ut.prototype);
|
|
1406
1407
|
return a.implicit = (this.implicit || []).concat(n), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Gt(a, "implicit"), a.compiledExplicit = Gt(a, "explicit"), a.compiledTypeMap = Xr(a.compiledImplicit, a.compiledExplicit), a;
|
|
1407
1408
|
};
|
|
1408
|
-
var wn = ut,
|
|
1409
|
+
var wn = ut, In = new oe("tag:yaml.org,2002:str", {
|
|
1409
1410
|
kind: "scalar",
|
|
1410
1411
|
construct: function(e) {
|
|
1411
1412
|
return e !== null ? e : "";
|
|
1412
1413
|
}
|
|
1413
|
-
}),
|
|
1414
|
+
}), _n = new oe("tag:yaml.org,2002:seq", {
|
|
1414
1415
|
kind: "sequence",
|
|
1415
1416
|
construct: function(e) {
|
|
1416
1417
|
return e !== null ? e : [];
|
|
@@ -1422,8 +1423,8 @@ var wn = ut, _n = new oe("tag:yaml.org,2002:str", {
|
|
|
1422
1423
|
}
|
|
1423
1424
|
}), Sn = new wn({
|
|
1424
1425
|
explicit: [
|
|
1425
|
-
_n,
|
|
1426
1426
|
In,
|
|
1427
|
+
_n,
|
|
1427
1428
|
An
|
|
1428
1429
|
]
|
|
1429
1430
|
});
|
|
@@ -1643,31 +1644,31 @@ function ho(e, n) {
|
|
|
1643
1644
|
function vo(e) {
|
|
1644
1645
|
return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ae.isNegativeZero(e));
|
|
1645
1646
|
}
|
|
1646
|
-
var
|
|
1647
|
+
var Mn = new oe("tag:yaml.org,2002:float", {
|
|
1647
1648
|
kind: "scalar",
|
|
1648
1649
|
resolve: mo,
|
|
1649
1650
|
construct: go,
|
|
1650
1651
|
predicate: vo,
|
|
1651
1652
|
represent: ho,
|
|
1652
1653
|
defaultStyle: "lowercase"
|
|
1653
|
-
}),
|
|
1654
|
+
}), jn = Sn.extend({
|
|
1654
1655
|
implicit: [
|
|
1655
1656
|
xn,
|
|
1656
1657
|
Tn,
|
|
1657
1658
|
$n,
|
|
1658
|
-
|
|
1659
|
+
Mn
|
|
1659
1660
|
]
|
|
1660
|
-
}), On =
|
|
1661
|
+
}), On = jn, En = new RegExp(
|
|
1661
1662
|
"^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
|
|
1662
|
-
),
|
|
1663
|
+
), Kn = new RegExp(
|
|
1663
1664
|
"^([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]))?))?$"
|
|
1664
1665
|
);
|
|
1665
1666
|
function bo(e) {
|
|
1666
|
-
return e === null ? !1 : En.exec(e) !== null ||
|
|
1667
|
+
return e === null ? !1 : En.exec(e) !== null || Kn.exec(e) !== null;
|
|
1667
1668
|
}
|
|
1668
|
-
function
|
|
1669
|
+
function ko(e) {
|
|
1669
1670
|
var n, t, a, r, o, i, s, l = 0, u = null, d, c, h;
|
|
1670
|
-
if (n = En.exec(e), n === null && (n =
|
|
1671
|
+
if (n = En.exec(e), n === null && (n = Kn.exec(e)), n === null)
|
|
1671
1672
|
throw new Error("Date resolve error");
|
|
1672
1673
|
if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
|
|
1673
1674
|
return new Date(Date.UTC(t, a, r));
|
|
@@ -1678,15 +1679,15 @@ function Co(e) {
|
|
|
1678
1679
|
}
|
|
1679
1680
|
return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), h = new Date(Date.UTC(t, a, r, o, i, s, l)), u && h.setTime(h.getTime() - u), h;
|
|
1680
1681
|
}
|
|
1681
|
-
function
|
|
1682
|
+
function Co(e) {
|
|
1682
1683
|
return e.toISOString();
|
|
1683
1684
|
}
|
|
1684
|
-
var
|
|
1685
|
+
var Fn = new oe("tag:yaml.org,2002:timestamp", {
|
|
1685
1686
|
kind: "scalar",
|
|
1686
1687
|
resolve: bo,
|
|
1687
|
-
construct:
|
|
1688
|
+
construct: ko,
|
|
1688
1689
|
instanceOf: Date,
|
|
1689
|
-
represent:
|
|
1690
|
+
represent: Co
|
|
1690
1691
|
});
|
|
1691
1692
|
function wo(e) {
|
|
1692
1693
|
return e === "<<" || e === null;
|
|
@@ -1694,12 +1695,12 @@ function wo(e) {
|
|
|
1694
1695
|
var Nn = new oe("tag:yaml.org,2002:merge", {
|
|
1695
1696
|
kind: "scalar",
|
|
1696
1697
|
resolve: wo
|
|
1697
|
-
}),
|
|
1698
|
+
}), kt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
1698
1699
|
\r`;
|
|
1699
|
-
function
|
|
1700
|
+
function Io(e) {
|
|
1700
1701
|
if (e === null)
|
|
1701
1702
|
return !1;
|
|
1702
|
-
var n, t, a = 0, r = e.length, o =
|
|
1703
|
+
var n, t, a = 0, r = e.length, o = kt;
|
|
1703
1704
|
for (t = 0; t < r; t++)
|
|
1704
1705
|
if (n = o.indexOf(e.charAt(t)), !(n > 64)) {
|
|
1705
1706
|
if (n < 0)
|
|
@@ -1708,14 +1709,14 @@ function _o(e) {
|
|
|
1708
1709
|
}
|
|
1709
1710
|
return a % 8 === 0;
|
|
1710
1711
|
}
|
|
1711
|
-
function
|
|
1712
|
-
var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, o =
|
|
1712
|
+
function _o(e) {
|
|
1713
|
+
var n, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, o = kt, i = 0, s = [];
|
|
1713
1714
|
for (n = 0; n < r; n++)
|
|
1714
1715
|
n % 4 === 0 && n && (s.push(i >> 16 & 255), s.push(i >> 8 & 255), s.push(i & 255)), i = i << 6 | o.indexOf(a.charAt(n));
|
|
1715
1716
|
return t = r % 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);
|
|
1716
1717
|
}
|
|
1717
1718
|
function Ao(e) {
|
|
1718
|
-
var n = "", t = 0, a, r, o = e.length, i =
|
|
1719
|
+
var n = "", t = 0, a, r, o = e.length, i = kt;
|
|
1719
1720
|
for (a = 0; a < o; a++)
|
|
1720
1721
|
a % 3 === 0 && a && (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]), t = (t << 8) + e[a];
|
|
1721
1722
|
return r = o % 3, r === 0 ? (n += i[t >> 18 & 63], n += i[t >> 12 & 63], n += i[t >> 6 & 63], n += i[t & 63]) : r === 2 ? (n += i[t >> 10 & 63], n += i[t >> 4 & 63], n += i[t << 2 & 63], n += i[64]) : r === 1 && (n += i[t >> 2 & 63], n += i[t << 4 & 63], n += i[64], n += i[64]), n;
|
|
@@ -1725,8 +1726,8 @@ function So(e) {
|
|
|
1725
1726
|
}
|
|
1726
1727
|
var Bn = new oe("tag:yaml.org,2002:binary", {
|
|
1727
1728
|
kind: "scalar",
|
|
1728
|
-
resolve:
|
|
1729
|
-
construct:
|
|
1729
|
+
resolve: Io,
|
|
1730
|
+
construct: _o,
|
|
1730
1731
|
predicate: So,
|
|
1731
1732
|
represent: Ao
|
|
1732
1733
|
}), xo = Object.prototype.hasOwnProperty, To = Object.prototype.toString;
|
|
@@ -1752,20 +1753,20 @@ function $o(e) {
|
|
|
1752
1753
|
}
|
|
1753
1754
|
return !0;
|
|
1754
1755
|
}
|
|
1755
|
-
function
|
|
1756
|
+
function Mo(e) {
|
|
1756
1757
|
return e !== null ? e : [];
|
|
1757
1758
|
}
|
|
1758
1759
|
var qn = new oe("tag:yaml.org,2002:omap", {
|
|
1759
1760
|
kind: "sequence",
|
|
1760
1761
|
resolve: $o,
|
|
1761
|
-
construct:
|
|
1762
|
-
}),
|
|
1762
|
+
construct: Mo
|
|
1763
|
+
}), jo = Object.prototype.toString;
|
|
1763
1764
|
function Oo(e) {
|
|
1764
1765
|
if (e === null)
|
|
1765
1766
|
return !0;
|
|
1766
1767
|
var n, t, a, r, o, i = e;
|
|
1767
1768
|
for (o = new Array(i.length), n = 0, t = i.length; n < t; n += 1) {
|
|
1768
|
-
if (a = i[n],
|
|
1769
|
+
if (a = i[n], jo.call(a) !== "[object Object]" || (r = Object.keys(a), r.length !== 1))
|
|
1769
1770
|
return !1;
|
|
1770
1771
|
o[n] = [r[0], a[r[0]]];
|
|
1771
1772
|
}
|
|
@@ -1783,13 +1784,13 @@ var Ln = new oe("tag:yaml.org,2002:pairs", {
|
|
|
1783
1784
|
kind: "sequence",
|
|
1784
1785
|
resolve: Oo,
|
|
1785
1786
|
construct: Eo
|
|
1786
|
-
}),
|
|
1787
|
-
function
|
|
1787
|
+
}), Ko = Object.prototype.hasOwnProperty;
|
|
1788
|
+
function Fo(e) {
|
|
1788
1789
|
if (e === null)
|
|
1789
1790
|
return !0;
|
|
1790
1791
|
var n, t = e;
|
|
1791
1792
|
for (n in t)
|
|
1792
|
-
if (
|
|
1793
|
+
if (Ko.call(t, n) && t[n] !== null)
|
|
1793
1794
|
return !1;
|
|
1794
1795
|
return !0;
|
|
1795
1796
|
}
|
|
@@ -1798,11 +1799,11 @@ function No(e) {
|
|
|
1798
1799
|
}
|
|
1799
1800
|
var Pn = new oe("tag:yaml.org,2002:set", {
|
|
1800
1801
|
kind: "mapping",
|
|
1801
|
-
resolve:
|
|
1802
|
+
resolve: Fo,
|
|
1802
1803
|
construct: No
|
|
1803
|
-
}),
|
|
1804
|
+
}), Ct = On.extend({
|
|
1804
1805
|
implicit: [
|
|
1805
|
-
|
|
1806
|
+
Fn,
|
|
1806
1807
|
Nn
|
|
1807
1808
|
],
|
|
1808
1809
|
explicit: [
|
|
@@ -1818,13 +1819,13 @@ function zt(e) {
|
|
|
1818
1819
|
function ye(e) {
|
|
1819
1820
|
return e === 10 || e === 13;
|
|
1820
1821
|
}
|
|
1821
|
-
function
|
|
1822
|
+
function _e(e) {
|
|
1822
1823
|
return e === 9 || e === 32;
|
|
1823
1824
|
}
|
|
1824
1825
|
function pe(e) {
|
|
1825
1826
|
return e === 9 || e === 32 || e === 10 || e === 13;
|
|
1826
1827
|
}
|
|
1827
|
-
function
|
|
1828
|
+
function je(e) {
|
|
1828
1829
|
return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
|
|
1829
1830
|
}
|
|
1830
1831
|
function Vo(e) {
|
|
@@ -1851,7 +1852,7 @@ var Gn = new Array(256), Hn = new Array(256);
|
|
|
1851
1852
|
for (var $e = 0; $e < 256; $e++)
|
|
1852
1853
|
Gn[$e] = Jt($e) ? 1 : 0, Hn[$e] = Jt($e);
|
|
1853
1854
|
function Go(e, n) {
|
|
1854
|
-
this.input = e, this.filename = n.filename || null, this.schema = n.schema ||
|
|
1855
|
+
this.input = e, this.filename = n.filename || null, this.schema = n.schema || Ct, 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 = [];
|
|
1855
1856
|
}
|
|
1856
1857
|
function zn(e, n) {
|
|
1857
1858
|
var t = {
|
|
@@ -1864,7 +1865,7 @@ function zn(e, n) {
|
|
|
1864
1865
|
};
|
|
1865
1866
|
return t.snippet = Jr(t), new se(n, t);
|
|
1866
1867
|
}
|
|
1867
|
-
function
|
|
1868
|
+
function j(e, n) {
|
|
1868
1869
|
throw zn(e, n);
|
|
1869
1870
|
}
|
|
1870
1871
|
function ze(e, n) {
|
|
@@ -1873,40 +1874,40 @@ function ze(e, n) {
|
|
|
1873
1874
|
var Yt = {
|
|
1874
1875
|
YAML: function(e, n, t) {
|
|
1875
1876
|
var a, r, o;
|
|
1876
|
-
e.version !== null &&
|
|
1877
|
+
e.version !== null && j(e, "duplication of %YAML directive"), t.length !== 1 && j(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && j(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), o = parseInt(a[2], 10), r !== 1 && j(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = o < 2, o !== 1 && o !== 2 && ze(e, "unsupported YAML version of the document");
|
|
1877
1878
|
},
|
|
1878
1879
|
TAG: function(e, n, t) {
|
|
1879
1880
|
var a, r;
|
|
1880
|
-
t.length !== 2 &&
|
|
1881
|
+
t.length !== 2 && j(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Un.test(a) || j(e, "ill-formed tag handle (first argument) of the TAG directive"), we.call(e.tagMap, a) && j(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Dn.test(r) || j(e, "ill-formed tag prefix (second argument) of the TAG directive");
|
|
1881
1882
|
try {
|
|
1882
1883
|
r = decodeURIComponent(r);
|
|
1883
1884
|
} catch {
|
|
1884
|
-
|
|
1885
|
+
j(e, "tag prefix is malformed: " + r);
|
|
1885
1886
|
}
|
|
1886
1887
|
e.tagMap[a] = r;
|
|
1887
1888
|
}
|
|
1888
1889
|
};
|
|
1889
|
-
function
|
|
1890
|
+
function Ce(e, n, t, a) {
|
|
1890
1891
|
var r, o, i, s;
|
|
1891
1892
|
if (n < t) {
|
|
1892
1893
|
if (s = e.input.slice(n, t), a)
|
|
1893
1894
|
for (r = 0, o = s.length; r < o; r += 1)
|
|
1894
|
-
i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 ||
|
|
1895
|
+
i = s.charCodeAt(r), i === 9 || 32 <= i && i <= 1114111 || j(e, "expected valid JSON character");
|
|
1895
1896
|
else
|
|
1896
|
-
qo.test(s) &&
|
|
1897
|
+
qo.test(s) && j(e, "the stream contains non-printable characters");
|
|
1897
1898
|
e.result += s;
|
|
1898
1899
|
}
|
|
1899
1900
|
}
|
|
1900
1901
|
function Wt(e, n, t, a) {
|
|
1901
1902
|
var r, o, i, s;
|
|
1902
|
-
for (ae.isObject(t) ||
|
|
1903
|
+
for (ae.isObject(t) || j(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), i = 0, s = r.length; i < s; i += 1)
|
|
1903
1904
|
o = r[i], we.call(n, o) || (n[o] = t[o], a[o] = !0);
|
|
1904
1905
|
}
|
|
1905
1906
|
function Oe(e, n, t, a, r, o, i, s, l) {
|
|
1906
1907
|
var u, d;
|
|
1907
1908
|
if (Array.isArray(r))
|
|
1908
1909
|
for (r = Array.prototype.slice.call(r), u = 0, d = r.length; u < d; u += 1)
|
|
1909
|
-
Array.isArray(r[u]) &&
|
|
1910
|
+
Array.isArray(r[u]) && j(e, "nested arrays are not supported inside keys"), typeof r == "object" && zt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
|
|
1910
1911
|
if (typeof r == "object" && zt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), n === null && (n = {}), a === "tag:yaml.org,2002:merge")
|
|
1911
1912
|
if (Array.isArray(o))
|
|
1912
1913
|
for (u = 0, d = o.length; u < d; u += 1)
|
|
@@ -1914,7 +1915,7 @@ function Oe(e, n, t, a, r, o, i, s, l) {
|
|
|
1914
1915
|
else
|
|
1915
1916
|
Wt(e, n, o, t);
|
|
1916
1917
|
else
|
|
1917
|
-
!e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position,
|
|
1918
|
+
!e.json && !we.call(t, r) && we.call(n, r) && (e.line = i || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, j(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(n, r, {
|
|
1918
1919
|
configurable: !0,
|
|
1919
1920
|
enumerable: !0,
|
|
1920
1921
|
writable: !0,
|
|
@@ -1924,11 +1925,11 @@ function Oe(e, n, t, a, r, o, i, s, l) {
|
|
|
1924
1925
|
}
|
|
1925
1926
|
function wt(e) {
|
|
1926
1927
|
var n;
|
|
1927
|
-
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) :
|
|
1928
|
+
n = e.input.charCodeAt(e.position), n === 10 ? e.position++ : n === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : j(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
|
|
1928
1929
|
}
|
|
1929
1930
|
function ne(e, n, t) {
|
|
1930
1931
|
for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
|
|
1931
|
-
for (;
|
|
1932
|
+
for (; _e(r); )
|
|
1932
1933
|
r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
|
|
1933
1934
|
if (n && r === 35)
|
|
1934
1935
|
do
|
|
@@ -1946,23 +1947,23 @@ function Qe(e) {
|
|
|
1946
1947
|
var n = e.position, t;
|
|
1947
1948
|
return t = e.input.charCodeAt(n), !!((t === 45 || t === 46) && t === e.input.charCodeAt(n + 1) && t === e.input.charCodeAt(n + 2) && (n += 3, t = e.input.charCodeAt(n), t === 0 || pe(t)));
|
|
1948
1949
|
}
|
|
1949
|
-
function
|
|
1950
|
+
function It(e, n) {
|
|
1950
1951
|
n === 1 ? e.result += " " : n > 1 && (e.result += ae.repeat(`
|
|
1951
1952
|
`, n - 1));
|
|
1952
1953
|
}
|
|
1953
1954
|
function Ho(e, n, t) {
|
|
1954
1955
|
var a, r, o, i, s, l, u, d, c = e.kind, h = e.result, f;
|
|
1955
|
-
if (f = e.input.charCodeAt(e.position), pe(f) ||
|
|
1956
|
+
if (f = e.input.charCodeAt(e.position), pe(f) || je(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) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r)))
|
|
1956
1957
|
return !1;
|
|
1957
1958
|
for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
|
|
1958
1959
|
if (f === 58) {
|
|
1959
|
-
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t &&
|
|
1960
|
+
if (r = e.input.charCodeAt(e.position + 1), pe(r) || t && je(r))
|
|
1960
1961
|
break;
|
|
1961
1962
|
} else if (f === 35) {
|
|
1962
1963
|
if (a = e.input.charCodeAt(e.position - 1), pe(a))
|
|
1963
1964
|
break;
|
|
1964
1965
|
} else {
|
|
1965
|
-
if (e.position === e.lineStart && Qe(e) || t &&
|
|
1966
|
+
if (e.position === e.lineStart && Qe(e) || t && je(f))
|
|
1966
1967
|
break;
|
|
1967
1968
|
if (ye(f))
|
|
1968
1969
|
if (l = e.line, u = e.lineStart, d = e.lineIndent, ne(e, !1, -1), e.lineIndent >= n) {
|
|
@@ -1973,9 +1974,9 @@ function Ho(e, n, t) {
|
|
|
1973
1974
|
break;
|
|
1974
1975
|
}
|
|
1975
1976
|
}
|
|
1976
|
-
s && (
|
|
1977
|
+
s && (Ce(e, o, i, !1), It(e, e.line - l), o = i = e.position, s = !1), _e(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
|
|
1977
1978
|
}
|
|
1978
|
-
return
|
|
1979
|
+
return Ce(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
|
|
1979
1980
|
}
|
|
1980
1981
|
function zo(e, n) {
|
|
1981
1982
|
var t, a, r;
|
|
@@ -1983,13 +1984,13 @@ function zo(e, n) {
|
|
|
1983
1984
|
return !1;
|
|
1984
1985
|
for (e.kind = "scalar", e.result = "", e.position++, a = r = e.position; (t = e.input.charCodeAt(e.position)) !== 0; )
|
|
1985
1986
|
if (t === 39)
|
|
1986
|
-
if (
|
|
1987
|
+
if (Ce(e, a, e.position, !0), t = e.input.charCodeAt(++e.position), t === 39)
|
|
1987
1988
|
a = e.position, e.position++, r = e.position;
|
|
1988
1989
|
else
|
|
1989
1990
|
return !0;
|
|
1990
1991
|
else
|
|
1991
|
-
ye(t) ? (
|
|
1992
|
-
|
|
1992
|
+
ye(t) ? (Ce(e, a, r, !0), It(e, ne(e, !1, n)), a = r = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
|
|
1993
|
+
j(e, "unexpected end of the stream within a single quoted scalar");
|
|
1993
1994
|
}
|
|
1994
1995
|
function Jo(e, n) {
|
|
1995
1996
|
var t, a, r, o, i, s;
|
|
@@ -1997,38 +1998,38 @@ function Jo(e, n) {
|
|
|
1997
1998
|
return !1;
|
|
1998
1999
|
for (e.kind = "scalar", e.result = "", e.position++, t = a = e.position; (s = e.input.charCodeAt(e.position)) !== 0; ) {
|
|
1999
2000
|
if (s === 34)
|
|
2000
|
-
return
|
|
2001
|
+
return Ce(e, t, e.position, !0), e.position++, !0;
|
|
2001
2002
|
if (s === 92) {
|
|
2002
|
-
if (
|
|
2003
|
+
if (Ce(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), ye(s))
|
|
2003
2004
|
ne(e, !1, n);
|
|
2004
2005
|
else if (s < 256 && Gn[s])
|
|
2005
2006
|
e.result += Hn[s], e.position++;
|
|
2006
2007
|
else if ((i = Ro(s)) > 0) {
|
|
2007
2008
|
for (r = i, o = 0; r > 0; r--)
|
|
2008
|
-
s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i :
|
|
2009
|
+
s = e.input.charCodeAt(++e.position), (i = Vo(s)) >= 0 ? o = (o << 4) + i : j(e, "expected hexadecimal character");
|
|
2009
2010
|
e.result += Do(o), e.position++;
|
|
2010
2011
|
} else
|
|
2011
|
-
|
|
2012
|
+
j(e, "unknown escape sequence");
|
|
2012
2013
|
t = a = e.position;
|
|
2013
2014
|
} else
|
|
2014
|
-
ye(s) ? (
|
|
2015
|
+
ye(s) ? (Ce(e, t, a, !0), It(e, ne(e, !1, n)), t = a = e.position) : e.position === e.lineStart && Qe(e) ? j(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
|
|
2015
2016
|
}
|
|
2016
|
-
|
|
2017
|
+
j(e, "unexpected end of the stream within a double quoted scalar");
|
|
2017
2018
|
}
|
|
2018
2019
|
function Yo(e, n) {
|
|
2019
|
-
var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null),
|
|
2020
|
-
if (
|
|
2020
|
+
var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), k, p, S, I;
|
|
2021
|
+
if (I = e.input.charCodeAt(e.position), I === 91)
|
|
2021
2022
|
d = 93, f = !1, s = [];
|
|
2022
|
-
else if (
|
|
2023
|
+
else if (I === 123)
|
|
2023
2024
|
d = 125, f = !0, s = {};
|
|
2024
2025
|
else
|
|
2025
2026
|
return !1;
|
|
2026
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = s),
|
|
2027
|
-
if (ne(e, !0, n),
|
|
2027
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = s), I = e.input.charCodeAt(++e.position); I !== 0; ) {
|
|
2028
|
+
if (ne(e, !0, n), I = e.input.charCodeAt(e.position), I === d)
|
|
2028
2029
|
return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
|
|
2029
|
-
t ?
|
|
2030
|
+
t ? I === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = k = S = null, c = h = !1, I === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Ke(e, n, Ge, !1, !0), p = e.tag, k = e.result, ne(e, !0, n), I = e.input.charCodeAt(e.position), (h || e.line === a) && I === 58 && (c = !0, I = e.input.charCodeAt(++e.position), ne(e, !0, n), Ke(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, k, S, a, r, o) : c ? s.push(Oe(e, null, A, p, k, S, a, r, o)) : s.push(k), ne(e, !0, n), I = e.input.charCodeAt(e.position), I === 44 ? (t = !0, I = e.input.charCodeAt(++e.position)) : t = !1;
|
|
2030
2031
|
}
|
|
2031
|
-
|
|
2032
|
+
j(e, "unexpected end of the stream within a flow collection");
|
|
2032
2033
|
}
|
|
2033
2034
|
function Wo(e, n) {
|
|
2034
2035
|
var t, a, r = it, o = !1, i = !1, s = n, l = 0, u = !1, d, c;
|
|
@@ -2040,15 +2041,15 @@ function Wo(e, n) {
|
|
|
2040
2041
|
return !1;
|
|
2041
2042
|
for (e.kind = "scalar", e.result = ""; c !== 0; )
|
|
2042
2043
|
if (c = e.input.charCodeAt(++e.position), c === 43 || c === 45)
|
|
2043
|
-
it === r ? r = c === 43 ? Ht : Bo :
|
|
2044
|
+
it === r ? r = c === 43 ? Ht : Bo : j(e, "repeat of a chomping mode identifier");
|
|
2044
2045
|
else if ((d = Uo(c)) >= 0)
|
|
2045
|
-
d === 0 ?
|
|
2046
|
+
d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
|
|
2046
2047
|
else
|
|
2047
2048
|
break;
|
|
2048
|
-
if (
|
|
2049
|
+
if (_e(c)) {
|
|
2049
2050
|
do
|
|
2050
2051
|
c = e.input.charCodeAt(++e.position);
|
|
2051
|
-
while (
|
|
2052
|
+
while (_e(c));
|
|
2052
2053
|
if (c === 35)
|
|
2053
2054
|
do
|
|
2054
2055
|
c = e.input.charCodeAt(++e.position);
|
|
@@ -2067,13 +2068,13 @@ function Wo(e, n) {
|
|
|
2067
2068
|
`);
|
|
2068
2069
|
break;
|
|
2069
2070
|
}
|
|
2070
|
-
for (a ?
|
|
2071
|
+
for (a ? _e(c) ? (u = !0, e.result += ae.repeat(`
|
|
2071
2072
|
`, o ? 1 + l : l)) : u ? (u = !1, e.result += ae.repeat(`
|
|
2072
2073
|
`, l + 1)) : l === 0 ? o && (e.result += " ") : e.result += ae.repeat(`
|
|
2073
2074
|
`, l) : e.result += ae.repeat(`
|
|
2074
2075
|
`, o ? 1 + l : l), o = !0, i = !0, l = 0, t = e.position; !ye(c) && c !== 0; )
|
|
2075
2076
|
c = e.input.charCodeAt(++e.position);
|
|
2076
|
-
|
|
2077
|
+
Ce(e, t, e.position, !1);
|
|
2077
2078
|
}
|
|
2078
2079
|
return !0;
|
|
2079
2080
|
}
|
|
@@ -2081,44 +2082,44 @@ function Zt(e, n) {
|
|
|
2081
2082
|
var t, a = e.tag, r = e.anchor, o = [], i, s = !1, l;
|
|
2082
2083
|
if (e.firstTabInLine !== -1)
|
|
2083
2084
|
return !1;
|
|
2084
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2085
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = o), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), !(l !== 45 || (i = e.input.charCodeAt(e.position + 1), !pe(i)))); ) {
|
|
2085
2086
|
if (s = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= n) {
|
|
2086
2087
|
o.push(null), l = e.input.charCodeAt(e.position);
|
|
2087
2088
|
continue;
|
|
2088
2089
|
}
|
|
2089
|
-
if (t = e.line,
|
|
2090
|
-
|
|
2090
|
+
if (t = e.line, Ke(e, n, Rn, !1, !0), o.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
|
|
2091
|
+
j(e, "bad indentation of a sequence entry");
|
|
2091
2092
|
else if (e.lineIndent < n)
|
|
2092
2093
|
break;
|
|
2093
2094
|
}
|
|
2094
2095
|
return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
|
|
2095
2096
|
}
|
|
2096
2097
|
function Zo(e, n, t) {
|
|
2097
|
-
var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null,
|
|
2098
|
+
var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, k = null, p = !1, S = !1, I;
|
|
2098
2099
|
if (e.firstTabInLine !== -1)
|
|
2099
2100
|
return !1;
|
|
2100
|
-
for (e.anchor !== null && (e.anchorMap[e.anchor] = c),
|
|
2101
|
-
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine,
|
|
2102
|
-
|
|
2101
|
+
for (e.anchor !== null && (e.anchorMap[e.anchor] = c), I = e.input.charCodeAt(e.position); I !== 0; ) {
|
|
2102
|
+
if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (I === 63 || I === 58) && pe(a))
|
|
2103
|
+
I === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, I = a;
|
|
2103
2104
|
else {
|
|
2104
|
-
if (i = e.line, s = e.lineStart, l = e.position, !
|
|
2105
|
+
if (i = e.line, s = e.lineStart, l = e.position, !Ke(e, t, Vn, !1, !0))
|
|
2105
2106
|
break;
|
|
2106
2107
|
if (e.line === o) {
|
|
2107
|
-
for (
|
|
2108
|
-
|
|
2109
|
-
if (
|
|
2110
|
-
|
|
2108
|
+
for (I = e.input.charCodeAt(e.position); _e(I); )
|
|
2109
|
+
I = e.input.charCodeAt(++e.position);
|
|
2110
|
+
if (I === 58)
|
|
2111
|
+
I = e.input.charCodeAt(++e.position), pe(I) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
|
|
2111
2112
|
else if (S)
|
|
2112
|
-
|
|
2113
|
+
j(e, "can not read an implicit mapping pair; a colon is missed");
|
|
2113
2114
|
else
|
|
2114
2115
|
return e.tag = u, e.anchor = d, !0;
|
|
2115
2116
|
} else if (S)
|
|
2116
|
-
|
|
2117
|
+
j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
|
|
2117
2118
|
else
|
|
2118
2119
|
return e.tag = u, e.anchor = d, !0;
|
|
2119
2120
|
}
|
|
2120
|
-
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position),
|
|
2121
|
-
|
|
2121
|
+
if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ke(e, n, He, !0, r) && (p ? A = e.result : k = e.result), p || (Oe(e, c, h, f, A, k, i, s, l), f = A = k = null), ne(e, !0, -1), I = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && I !== 0)
|
|
2122
|
+
j(e, "bad indentation of a mapping entry");
|
|
2122
2123
|
else if (e.lineIndent < n)
|
|
2123
2124
|
break;
|
|
2124
2125
|
}
|
|
@@ -2128,49 +2129,49 @@ function Qo(e) {
|
|
|
2128
2129
|
var n, t = !1, a = !1, r, o, i;
|
|
2129
2130
|
if (i = e.input.charCodeAt(e.position), i !== 33)
|
|
2130
2131
|
return !1;
|
|
2131
|
-
if (e.tag !== null &&
|
|
2132
|
+
if (e.tag !== null && j(e, "duplication of a tag property"), i = e.input.charCodeAt(++e.position), i === 60 ? (t = !0, i = e.input.charCodeAt(++e.position)) : i === 33 ? (a = !0, r = "!!", i = e.input.charCodeAt(++e.position)) : r = "!", n = e.position, t) {
|
|
2132
2133
|
do
|
|
2133
2134
|
i = e.input.charCodeAt(++e.position);
|
|
2134
2135
|
while (i !== 0 && i !== 62);
|
|
2135
|
-
e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) :
|
|
2136
|
+
e.position < e.length ? (o = e.input.slice(n, e.position), i = e.input.charCodeAt(++e.position)) : j(e, "unexpected end of the stream within a verbatim tag");
|
|
2136
2137
|
} else {
|
|
2137
2138
|
for (; i !== 0 && !pe(i); )
|
|
2138
|
-
i === 33 && (a ?
|
|
2139
|
-
o = e.input.slice(n, e.position), Po.test(o) &&
|
|
2139
|
+
i === 33 && (a ? j(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(n - 1, e.position + 1), Un.test(r) || j(e, "named tag handle cannot contain such characters"), a = !0, n = e.position + 1)), i = e.input.charCodeAt(++e.position);
|
|
2140
|
+
o = e.input.slice(n, e.position), Po.test(o) && j(e, "tag suffix cannot contain flow indicator characters");
|
|
2140
2141
|
}
|
|
2141
|
-
o && !Dn.test(o) &&
|
|
2142
|
+
o && !Dn.test(o) && j(e, "tag name cannot contain such characters: " + o);
|
|
2142
2143
|
try {
|
|
2143
2144
|
o = decodeURIComponent(o);
|
|
2144
2145
|
} catch {
|
|
2145
|
-
|
|
2146
|
+
j(e, "tag name is malformed: " + o);
|
|
2146
2147
|
}
|
|
2147
|
-
return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o :
|
|
2148
|
+
return t ? e.tag = o : we.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : j(e, 'undeclared tag handle "' + r + '"'), !0;
|
|
2148
2149
|
}
|
|
2149
2150
|
function Xo(e) {
|
|
2150
2151
|
var n, t;
|
|
2151
2152
|
if (t = e.input.charCodeAt(e.position), t !== 38)
|
|
2152
2153
|
return !1;
|
|
2153
|
-
for (e.anchor !== null &&
|
|
2154
|
+
for (e.anchor !== null && j(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), n = e.position; t !== 0 && !pe(t) && !je(t); )
|
|
2154
2155
|
t = e.input.charCodeAt(++e.position);
|
|
2155
|
-
return e.position === n &&
|
|
2156
|
+
return e.position === n && j(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(n, e.position), !0;
|
|
2156
2157
|
}
|
|
2157
2158
|
function ei(e) {
|
|
2158
2159
|
var n, t, a;
|
|
2159
2160
|
if (a = e.input.charCodeAt(e.position), a !== 42)
|
|
2160
2161
|
return !1;
|
|
2161
|
-
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !
|
|
2162
|
+
for (a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !pe(a) && !je(a); )
|
|
2162
2163
|
a = e.input.charCodeAt(++e.position);
|
|
2163
|
-
return e.position === n &&
|
|
2164
|
+
return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
|
|
2164
2165
|
}
|
|
2165
|
-
function
|
|
2166
|
-
var o, i, s, l = 1, u = !1, d = !1, c, h, f, A,
|
|
2166
|
+
function Ke(e, n, t, a, r) {
|
|
2167
|
+
var o, i, s, l = 1, u = !1, d = !1, c, h, f, A, k, p;
|
|
2167
2168
|
if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Rn === t, a && ne(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
|
|
2168
2169
|
for (; Qo(e) || Xo(e); )
|
|
2169
2170
|
ne(e, !0, -1) ? (u = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
|
|
2170
|
-
if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ?
|
|
2171
|
+
if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, k)) || Yo(e, k) ? d = !0 : (i && Wo(e, k) || zo(e, k) || Jo(e, k) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Ho(e, k, Ge === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Zt(e, p))), e.tag === null)
|
|
2171
2172
|
e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2172
2173
|
else if (e.tag === "?") {
|
|
2173
|
-
for (e.result !== null && e.kind !== "scalar" &&
|
|
2174
|
+
for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
|
|
2174
2175
|
if (A = e.implicitTypes[c], A.resolve(e.result)) {
|
|
2175
2176
|
e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
|
|
2176
2177
|
break;
|
|
@@ -2184,7 +2185,7 @@ function Fe(e, n, t, a, r) {
|
|
|
2184
2185
|
A = f[c];
|
|
2185
2186
|
break;
|
|
2186
2187
|
}
|
|
2187
|
-
A ||
|
|
2188
|
+
A || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
|
|
2188
2189
|
}
|
|
2189
2190
|
return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
|
|
2190
2191
|
}
|
|
@@ -2193,8 +2194,8 @@ function ti(e) {
|
|
|
2193
2194
|
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 && (ne(e, !0, -1), i = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || i !== 37)); ) {
|
|
2194
2195
|
for (o = !0, i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !pe(i); )
|
|
2195
2196
|
i = e.input.charCodeAt(++e.position);
|
|
2196
|
-
for (a = e.input.slice(t, e.position), r = [], a.length < 1 &&
|
|
2197
|
-
for (;
|
|
2197
|
+
for (a = e.input.slice(t, e.position), r = [], a.length < 1 && j(e, "directive name must not be less than one character in length"); i !== 0; ) {
|
|
2198
|
+
for (; _e(i); )
|
|
2198
2199
|
i = e.input.charCodeAt(++e.position);
|
|
2199
2200
|
if (i === 35) {
|
|
2200
2201
|
do
|
|
@@ -2210,12 +2211,12 @@ function ti(e) {
|
|
|
2210
2211
|
}
|
|
2211
2212
|
i !== 0 && wt(e), we.call(Yt, a) ? Yt[a](e, a, r) : ze(e, 'unknown document directive "' + a + '"');
|
|
2212
2213
|
}
|
|
2213
|
-
if (ne(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, ne(e, !0, -1)) : o &&
|
|
2214
|
+
if (ne(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, ne(e, !0, -1)) : o && j(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, He, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Lo.test(e.input.slice(n, e.position)) && ze(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Qe(e)) {
|
|
2214
2215
|
e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
|
|
2215
2216
|
return;
|
|
2216
2217
|
}
|
|
2217
2218
|
if (e.position < e.length - 1)
|
|
2218
|
-
|
|
2219
|
+
j(e, "end of the stream or a document separator is expected");
|
|
2219
2220
|
else
|
|
2220
2221
|
return;
|
|
2221
2222
|
}
|
|
@@ -2223,7 +2224,7 @@ function Jn(e, n) {
|
|
|
2223
2224
|
e = String(e), n = n || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
|
|
2224
2225
|
`), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
|
|
2225
2226
|
var t = new Go(e, n), a = e.indexOf("\0");
|
|
2226
|
-
for (a !== -1 && (t.position = a,
|
|
2227
|
+
for (a !== -1 && (t.position = a, j(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
|
|
2227
2228
|
t.lineIndent += 1, t.position += 1;
|
|
2228
2229
|
for (; t.position < t.length - 1; )
|
|
2229
2230
|
ti(t);
|
|
@@ -2248,7 +2249,7 @@ function ai(e, n) {
|
|
|
2248
2249
|
var ri = ni, oi = ai, Yn = {
|
|
2249
2250
|
loadAll: ri,
|
|
2250
2251
|
load: oi
|
|
2251
|
-
}, Wn = Object.prototype.toString, Zn = Object.prototype.hasOwnProperty,
|
|
2252
|
+
}, Wn = Object.prototype.toString, Zn = Object.prototype.hasOwnProperty, _t = 65279, ii = 9, Pe = 10, si = 13, li = 32, ui = 33, ci = 34, ct = 35, di = 37, pi = 38, fi = 39, mi = 42, Qn = 44, gi = 45, Je = 58, yi = 61, hi = 62, vi = 63, bi = 64, Xn = 91, ea = 93, ki = 96, ta = 123, Ci = 124, na = 125, ie = {};
|
|
2252
2253
|
ie[0] = "\\0";
|
|
2253
2254
|
ie[7] = "\\a";
|
|
2254
2255
|
ie[8] = "\\b";
|
|
@@ -2281,8 +2282,8 @@ var wi = [
|
|
|
2281
2282
|
"off",
|
|
2282
2283
|
"Off",
|
|
2283
2284
|
"OFF"
|
|
2284
|
-
],
|
|
2285
|
-
function
|
|
2285
|
+
], Ii = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
|
|
2286
|
+
function _i(e, n) {
|
|
2286
2287
|
var t, a, r, o, i, s, l;
|
|
2287
2288
|
if (n === null)
|
|
2288
2289
|
return {};
|
|
@@ -2304,7 +2305,7 @@ function Ai(e) {
|
|
|
2304
2305
|
}
|
|
2305
2306
|
var Si = 1, Ve = 2;
|
|
2306
2307
|
function xi(e) {
|
|
2307
|
-
this.schema = e.schema ||
|
|
2308
|
+
this.schema = e.schema || Ct, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ae.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = _i(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ve : Si, 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;
|
|
2308
2309
|
}
|
|
2309
2310
|
function Qt(e, n) {
|
|
2310
2311
|
for (var t = ae.repeat(" ", n), a = 0, r = -1, o = "", i, s = e.length; a < s; )
|
|
@@ -2328,10 +2329,10 @@ function Ye(e) {
|
|
|
2328
2329
|
return e === li || e === ii;
|
|
2329
2330
|
}
|
|
2330
2331
|
function Re(e) {
|
|
2331
|
-
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !==
|
|
2332
|
+
return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== _t || 65536 <= e && e <= 1114111;
|
|
2332
2333
|
}
|
|
2333
2334
|
function Xt(e) {
|
|
2334
|
-
return Re(e) && e !==
|
|
2335
|
+
return Re(e) && e !== _t && e !== si && e !== Pe;
|
|
2335
2336
|
}
|
|
2336
2337
|
function en(e, n, t) {
|
|
2337
2338
|
var a = Xt(e), r = a && !Ye(e);
|
|
@@ -2344,9 +2345,9 @@ function en(e, n, t) {
|
|
|
2344
2345
|
);
|
|
2345
2346
|
}
|
|
2346
2347
|
function $i(e) {
|
|
2347
|
-
return Re(e) && e !==
|
|
2348
|
+
return Re(e) && e !== _t && !Ye(e) && e !== gi && e !== vi && e !== Je && e !== Qn && e !== Xn && e !== ea && e !== ta && e !== na && e !== ct && e !== pi && e !== mi && e !== ui && e !== Ci && e !== yi && e !== hi && e !== fi && e !== ci && e !== di && e !== bi && e !== ki;
|
|
2348
2349
|
}
|
|
2349
|
-
function
|
|
2350
|
+
function Mi(e) {
|
|
2350
2351
|
return !Ye(e) && e !== Je;
|
|
2351
2352
|
}
|
|
2352
2353
|
function Ne(e, n) {
|
|
@@ -2357,14 +2358,14 @@ function aa(e) {
|
|
|
2357
2358
|
var n = /^\n* /;
|
|
2358
2359
|
return n.test(e);
|
|
2359
2360
|
}
|
|
2360
|
-
var ra = 1, pt = 2, oa = 3, ia = 4,
|
|
2361
|
-
function
|
|
2362
|
-
var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1,
|
|
2361
|
+
var ra = 1, pt = 2, oa = 3, ia = 4, Me = 5;
|
|
2362
|
+
function ji(e, n, t, a, r, o, i, s) {
|
|
2363
|
+
var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, k = $i(Ne(e, 0)) && Mi(Ne(e, e.length - 1));
|
|
2363
2364
|
if (n || i)
|
|
2364
2365
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
2365
2366
|
if (u = Ne(e, l), !Re(u))
|
|
2366
|
-
return
|
|
2367
|
-
|
|
2367
|
+
return Me;
|
|
2368
|
+
k = k && en(u, d, s), d = u;
|
|
2368
2369
|
}
|
|
2369
2370
|
else {
|
|
2370
2371
|
for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
|
|
@@ -2372,24 +2373,24 @@ function Mi(e, n, t, a, r, o, i, s) {
|
|
|
2372
2373
|
c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
|
|
2373
2374
|
l - A - 1 > a && e[A + 1] !== " ", A = l);
|
|
2374
2375
|
else if (!Re(u))
|
|
2375
|
-
return
|
|
2376
|
-
|
|
2376
|
+
return Me;
|
|
2377
|
+
k = k && en(u, d, s), d = u;
|
|
2377
2378
|
}
|
|
2378
2379
|
h = h || f && l - A - 1 > a && e[A + 1] !== " ";
|
|
2379
2380
|
}
|
|
2380
|
-
return !c && !h ?
|
|
2381
|
+
return !c && !h ? k && !i && !r(e) ? ra : o === Ve ? Me : pt : t > 9 && aa(e) ? Me : i ? o === Ve ? Me : pt : h ? ia : oa;
|
|
2381
2382
|
}
|
|
2382
2383
|
function Oi(e, n, t, a, r) {
|
|
2383
2384
|
e.dump = function() {
|
|
2384
2385
|
if (n.length === 0)
|
|
2385
2386
|
return e.quotingType === Ve ? '""' : "''";
|
|
2386
|
-
if (!e.noCompatMode && (wi.indexOf(n) !== -1 ||
|
|
2387
|
+
if (!e.noCompatMode && (wi.indexOf(n) !== -1 || Ii.test(n)))
|
|
2387
2388
|
return e.quotingType === Ve ? '"' + n + '"' : "'" + n + "'";
|
|
2388
2389
|
var o = e.indent * Math.max(1, t), i = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - o), s = a || e.flowLevel > -1 && t >= e.flowLevel;
|
|
2389
2390
|
function l(u) {
|
|
2390
2391
|
return Ti(e, u);
|
|
2391
2392
|
}
|
|
2392
|
-
switch (
|
|
2393
|
+
switch (ji(
|
|
2393
2394
|
n,
|
|
2394
2395
|
s,
|
|
2395
2396
|
e.indent,
|
|
@@ -2407,8 +2408,8 @@ function Oi(e, n, t, a, r) {
|
|
|
2407
2408
|
return "|" + tn(n, e.indent) + nn(Qt(n, o));
|
|
2408
2409
|
case ia:
|
|
2409
2410
|
return ">" + tn(n, e.indent) + nn(Qt(Ei(n, i), o));
|
|
2410
|
-
case
|
|
2411
|
-
return '"' +
|
|
2411
|
+
case Me:
|
|
2412
|
+
return '"' + Ki(n) + '"';
|
|
2412
2413
|
default:
|
|
2413
2414
|
throw new se("impossible error: invalid scalar style");
|
|
2414
2415
|
}
|
|
@@ -2449,12 +2450,12 @@ function an(e, n) {
|
|
|
2449
2450
|
`, e.length - r > n && i > r ? l += e.slice(r, i) + `
|
|
2450
2451
|
` + e.slice(i + 1) : l += e.slice(r), l.slice(1);
|
|
2451
2452
|
}
|
|
2452
|
-
function
|
|
2453
|
+
function Ki(e) {
|
|
2453
2454
|
for (var n = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
|
|
2454
2455
|
t = Ne(e, r), a = ie[t], !a && Re(t) ? (n += e[r], t >= 65536 && (n += e[r + 1])) : n += a || Ai(t);
|
|
2455
2456
|
return n;
|
|
2456
2457
|
}
|
|
2457
|
-
function
|
|
2458
|
+
function Fi(e, n, t) {
|
|
2458
2459
|
var a = "", r = e.tag, o, i, s;
|
|
2459
2460
|
for (o = 0, i = t.length; o < i; o += 1)
|
|
2460
2461
|
s = t[o], e.replacer && (s = e.replacer.call(t, String(o), s)), (be(e, n, s, !1, !1) || typeof s > "u" && be(e, n, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
|
|
@@ -2512,7 +2513,7 @@ function be(e, n, t, a, r, o, i) {
|
|
|
2512
2513
|
if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
|
|
2513
2514
|
a && Object.keys(e.dump).length !== 0 ? (Bi(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ni(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2514
2515
|
else if (s === "[object Array]")
|
|
2515
|
-
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (
|
|
2516
|
+
a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Fi(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
|
|
2516
2517
|
else if (s === "[object String]")
|
|
2517
2518
|
e.tag !== "?" && Oi(e, e.dump, n, o, l);
|
|
2518
2519
|
else {
|
|
@@ -2560,20 +2561,20 @@ function At(e, n) {
|
|
|
2560
2561
|
throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + n + " instead, which is now safe by default.");
|
|
2561
2562
|
};
|
|
2562
2563
|
}
|
|
2563
|
-
var Ri = oe, Ui = wn, Di = Sn, Gi =
|
|
2564
|
+
var Ri = oe, Ui = wn, Di = Sn, Gi = jn, Hi = On, zi = Ct, Ji = Yn.load, Yi = Yn.loadAll, Wi = Vi.dump, Zi = se, Qi = {
|
|
2564
2565
|
binary: Bn,
|
|
2565
|
-
float:
|
|
2566
|
+
float: Mn,
|
|
2566
2567
|
map: An,
|
|
2567
2568
|
null: xn,
|
|
2568
2569
|
pairs: Ln,
|
|
2569
2570
|
set: Pn,
|
|
2570
|
-
timestamp:
|
|
2571
|
+
timestamp: Fn,
|
|
2571
2572
|
bool: Tn,
|
|
2572
2573
|
int: $n,
|
|
2573
2574
|
merge: Nn,
|
|
2574
2575
|
omap: qn,
|
|
2575
|
-
seq:
|
|
2576
|
-
str:
|
|
2576
|
+
seq: _n,
|
|
2577
|
+
str: In
|
|
2577
2578
|
}, Xi = At("safeLoad", "load"), es = At("safeLoadAll", "loadAll"), ts = At("safeDump", "dump"), ns = {
|
|
2578
2579
|
Type: Ri,
|
|
2579
2580
|
Schema: Ui,
|
|
@@ -2643,11 +2644,11 @@ const as = {
|
|
|
2643
2644
|
class: Ae(`config-card-details-${d}-props`),
|
|
2644
2645
|
"data-testid": `config-card-details-${d}-props`
|
|
2645
2646
|
}, [
|
|
2646
|
-
d !== "basic" ? (m(), T("div", os,
|
|
2647
|
+
d !== "basic" ? (m(), T("div", os, M(d === "advanced" ? g(a)("baseConfigCard.sections.advanced") : g(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
2647
2648
|
(m(!0), T(fe, null, de(e.propertyCollections[d], (c) => (m(), R(bt, {
|
|
2648
2649
|
key: c.key,
|
|
2649
2650
|
item: c
|
|
2650
|
-
},
|
|
2651
|
+
}, ke({
|
|
2651
2652
|
label: y(() => [
|
|
2652
2653
|
Y(s.$slots, `${c.key}-label`, { row: c }, void 0, !0)
|
|
2653
2654
|
]),
|
|
@@ -2670,7 +2671,7 @@ const as = {
|
|
|
2670
2671
|
], 10, rs))), 128))
|
|
2671
2672
|
])) : G("", !0),
|
|
2672
2673
|
e.format === "json" ? (m(), T("div", is, [
|
|
2673
|
-
|
|
2674
|
+
K(u, {
|
|
2674
2675
|
id: "config-card-codeblock",
|
|
2675
2676
|
code: o.value,
|
|
2676
2677
|
language: "json",
|
|
@@ -2678,7 +2679,7 @@ const as = {
|
|
|
2678
2679
|
}, null, 8, ["code"])
|
|
2679
2680
|
])) : G("", !0),
|
|
2680
2681
|
e.format === "yaml" ? (m(), T("div", ss, [
|
|
2681
|
-
|
|
2682
|
+
K(u, {
|
|
2682
2683
|
id: "config-card-codeblock",
|
|
2683
2684
|
code: i.value,
|
|
2684
2685
|
language: "yaml",
|
|
@@ -2693,10 +2694,10 @@ const as = {
|
|
|
2693
2694
|
for (const [a, r] of n)
|
|
2694
2695
|
t[a] = r;
|
|
2695
2696
|
return t;
|
|
2696
|
-
}, ds = (e) => (cn("data-v-
|
|
2697
|
+
}, ds = (e) => (cn("data-v-a53b73fd"), e = e(), dn(), e), ps = ["aria-hidden"], fs = {
|
|
2697
2698
|
key: 0,
|
|
2698
2699
|
"data-testid": "kui-icon-svg-title"
|
|
2699
|
-
}, ms = /* @__PURE__ */ ds(() => /* @__PURE__ */
|
|
2700
|
+
}, ms = /* @__PURE__ */ ds(() => /* @__PURE__ */ F("path", {
|
|
2700
2701
|
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",
|
|
2701
2702
|
fill: "currentColor"
|
|
2702
2703
|
}, null, -1)), gs = /* @__PURE__ */ te({
|
|
@@ -2785,23 +2786,23 @@ const as = {
|
|
|
2785
2786
|
width: "100%",
|
|
2786
2787
|
xmlns: "http://www.w3.org/2000/svg"
|
|
2787
2788
|
}, [
|
|
2788
|
-
e.title ? (m(), T("title", fs,
|
|
2789
|
+
e.title ? (m(), T("title", fs, M(e.title), 1)) : G("", !0),
|
|
2789
2790
|
ms
|
|
2790
2791
|
], 8, ps))
|
|
2791
2792
|
]),
|
|
2792
2793
|
_: 1
|
|
2793
2794
|
}, 8, ["aria-hidden", "style"]));
|
|
2794
2795
|
}
|
|
2795
|
-
}), ys = /* @__PURE__ */ cs(gs, [["__scopeId", "data-v-
|
|
2796
|
+
}), ys = /* @__PURE__ */ cs(gs, [["__scopeId", "data-v-a53b73fd"]]), hs = { "data-testid": "config-card-title" }, vs = { class: "config-card-actions" }, bs = ["href"], ks = {
|
|
2796
2797
|
key: 2,
|
|
2797
2798
|
class: "config-card-details-section"
|
|
2798
|
-
},
|
|
2799
|
+
}, Cs = {
|
|
2799
2800
|
key: 3,
|
|
2800
2801
|
class: "config-card-details-section"
|
|
2801
|
-
}, ws = ["data-testid"],
|
|
2802
|
+
}, ws = ["data-testid"], Is = {
|
|
2802
2803
|
key: 0,
|
|
2803
2804
|
class: "config-card-prop-section-title"
|
|
2804
|
-
},
|
|
2805
|
+
}, _s = /* @__PURE__ */ te({
|
|
2805
2806
|
__name: "EntityBaseConfigCard",
|
|
2806
2807
|
props: {
|
|
2807
2808
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2928,13 +2929,13 @@ const as = {
|
|
|
2928
2929
|
// the last property displayed
|
|
2929
2930
|
section: ce.Basic
|
|
2930
2931
|
}
|
|
2931
|
-
}, f = O(!1), A = O(!1),
|
|
2932
|
-
var b,
|
|
2932
|
+
}, f = O(!1), A = O(!1), k = O(""), p = O(), S = $(() => {
|
|
2933
|
+
var b, C, V;
|
|
2933
2934
|
if (!p.value)
|
|
2934
2935
|
return [];
|
|
2935
2936
|
const B = [], _ = Object.keys(p.value).length;
|
|
2936
2937
|
for (const E in p.value) {
|
|
2937
|
-
const L = (
|
|
2938
|
+
const L = (C = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = (V = h[E]) == null ? void 0 : V.order;
|
|
2938
2939
|
let Z = _;
|
|
2939
2940
|
(D || D === 0) && (Z = D === -1 ? _ + 1 : D), L && (Z = L === -1 ? _ + 1 : L), B.push([E, Z]);
|
|
2940
2941
|
}
|
|
@@ -2953,13 +2954,13 @@ const as = {
|
|
|
2953
2954
|
section: Q.section ?? ((le == null ? void 0 : le.section) || ce.Advanced)
|
|
2954
2955
|
};
|
|
2955
2956
|
}).filter((E) => !E.hidden && E.key !== a.pluginConfigKey);
|
|
2956
|
-
}),
|
|
2957
|
-
var b,
|
|
2957
|
+
}), I = $(() => {
|
|
2958
|
+
var b, C;
|
|
2958
2959
|
if (!p.value || !a.pluginConfigKey)
|
|
2959
2960
|
return [];
|
|
2960
2961
|
const V = p.value[a.pluginConfigKey] || {}, B = Object.keys(V).length, _ = [];
|
|
2961
2962
|
for (const E in V) {
|
|
2962
|
-
const L = (
|
|
2963
|
+
const L = (C = (b = a.pluginConfigSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = V[E];
|
|
2963
2964
|
let Z = D != null && D !== "" ? B - 1 : B;
|
|
2964
2965
|
L && (Z = L === -1 ? B + 1 : L), _.push([E, Z]);
|
|
2965
2966
|
}
|
|
@@ -2979,19 +2980,19 @@ const as = {
|
|
|
2979
2980
|
};
|
|
2980
2981
|
}).filter((E) => !E.hidden);
|
|
2981
2982
|
}), q = $(() => {
|
|
2982
|
-
var b,
|
|
2983
|
+
var b, C, V, B;
|
|
2983
2984
|
return {
|
|
2984
2985
|
basic: (b = S.value) == null ? void 0 : b.filter((_) => _.section === ce.Basic),
|
|
2985
|
-
advanced: (
|
|
2986
|
-
plugin: (B =
|
|
2986
|
+
advanced: (C = S.value) == null ? void 0 : C.filter((_) => _.section === ce.Advanced),
|
|
2987
|
+
plugin: (B = I.value) == null ? void 0 : B.concat((V = S.value) == null ? void 0 : V.filter((_) => _.section === ce.Plugin))
|
|
2987
2988
|
};
|
|
2988
|
-
}),
|
|
2989
|
+
}), v = $(() => {
|
|
2989
2990
|
const b = [];
|
|
2990
2991
|
return q.value.basic.length && b.push("basic"), q.value.advanced.length && b.push("advanced"), q.value.plugin.length && b.push("plugin"), b;
|
|
2991
2992
|
}), w = (b) => !!(b.tooltip || r[`${b.key}-label-tooltip`]), N = $(() => {
|
|
2992
|
-
var b,
|
|
2993
|
+
var b, C;
|
|
2993
2994
|
let V = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
2994
|
-
return a.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((b = a.config) == null ? void 0 : b.controlPlaneId) || "") : a.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (
|
|
2995
|
+
return a.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((b = a.config) == null ? void 0 : b.controlPlaneId) || "") : a.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (C = a.config) != null && C.workspace ? `/${a.config.workspace}` : "")), V = V.replace(/{id}/gi, a.config.entityId), V;
|
|
2995
2996
|
}), U = (b) => {
|
|
2996
2997
|
p.value && b(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
|
|
2997
2998
|
};
|
|
@@ -3008,20 +3009,20 @@ const as = {
|
|
|
3008
3009
|
throw new Error(o("errors.dataKeyUndefined", { dataKey: a.dataKey }));
|
|
3009
3010
|
else
|
|
3010
3011
|
p.value = { ...b };
|
|
3011
|
-
Object.keys(a.configSchema).filter((
|
|
3012
|
-
p.value && typeof p.value[
|
|
3012
|
+
Object.keys(a.configSchema).filter((C) => a.configSchema[C].forceShow).forEach((C) => {
|
|
3013
|
+
p.value && typeof p.value[C] > "u" && (p.value[C] = null);
|
|
3013
3014
|
}), n("fetch:success", b);
|
|
3014
3015
|
} catch (b) {
|
|
3015
|
-
const
|
|
3016
|
-
|
|
3016
|
+
const C = i(b);
|
|
3017
|
+
k.value = C.startsWith("code") ? o("baseConfigCard.errors.load") : C, A.value = !0, n("fetch:error", b);
|
|
3017
3018
|
} finally {
|
|
3018
3019
|
f.value = !1;
|
|
3019
3020
|
}
|
|
3020
|
-
}), (b,
|
|
3021
|
+
}), (b, C) => {
|
|
3021
3022
|
const V = P("KLabel"), B = P("KSelect"), _ = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
|
|
3022
|
-
return m(), R(Z, { class: "kong-ui-entity-base-config-card" },
|
|
3023
|
+
return m(), R(Z, { class: "kong-ui-entity-base-config-card" }, ke({
|
|
3023
3024
|
actions: y(() => [
|
|
3024
|
-
|
|
3025
|
+
F("div", vs, [
|
|
3025
3026
|
Y(b.$slots, "actions", {}, void 0, !0),
|
|
3026
3027
|
e.config.jsonYamlEnabled ? (m(), R(V, {
|
|
3027
3028
|
key: 0,
|
|
@@ -3029,7 +3030,7 @@ const as = {
|
|
|
3029
3030
|
"data-testid": "config-format-select-label"
|
|
3030
3031
|
}, {
|
|
3031
3032
|
default: y(() => [
|
|
3032
|
-
W(
|
|
3033
|
+
W(M(e.label), 1)
|
|
3033
3034
|
]),
|
|
3034
3035
|
_: 1
|
|
3035
3036
|
})) : G("", !0),
|
|
@@ -3047,12 +3048,12 @@ const as = {
|
|
|
3047
3048
|
"data-testid": "book-icon"
|
|
3048
3049
|
}, {
|
|
3049
3050
|
default: y(() => [
|
|
3050
|
-
|
|
3051
|
+
F("a", {
|
|
3051
3052
|
href: e.configCardDoc,
|
|
3052
3053
|
rel: "noopener",
|
|
3053
3054
|
target: "_blank"
|
|
3054
3055
|
}, [
|
|
3055
|
-
|
|
3056
|
+
K(g(ys), { size: g(Ir) }, null, 8, ["size"])
|
|
3056
3057
|
], 8, bs)
|
|
3057
3058
|
]),
|
|
3058
3059
|
_: 1
|
|
@@ -3066,7 +3067,7 @@ const as = {
|
|
|
3066
3067
|
onClick: (Q) => U(z)
|
|
3067
3068
|
}, {
|
|
3068
3069
|
default: y(() => [
|
|
3069
|
-
W(
|
|
3070
|
+
W(M(g(o)("baseConfigCard.actions.copy")), 1)
|
|
3070
3071
|
]),
|
|
3071
3072
|
_: 2
|
|
3072
3073
|
}, 1032, ["onClick"])) : G("", !0)
|
|
@@ -3087,17 +3088,17 @@ const as = {
|
|
|
3087
3088
|
"is-error": ""
|
|
3088
3089
|
}, {
|
|
3089
3090
|
message: y(() => [
|
|
3090
|
-
|
|
3091
|
+
F("h3", null, M(k.value), 1)
|
|
3091
3092
|
]),
|
|
3092
3093
|
_: 1
|
|
3093
3094
|
})) : G("", !0),
|
|
3094
|
-
e.config.jsonYamlEnabled ? (m(), T("div",
|
|
3095
|
-
|
|
3095
|
+
e.config.jsonYamlEnabled ? (m(), T("div", ks, [
|
|
3096
|
+
K(us, {
|
|
3096
3097
|
format: d.value,
|
|
3097
|
-
"prop-list-types":
|
|
3098
|
+
"prop-list-types": v.value,
|
|
3098
3099
|
"property-collections": q.value,
|
|
3099
3100
|
record: p.value
|
|
3100
|
-
},
|
|
3101
|
+
}, ke({ _: 2 }, [
|
|
3101
3102
|
de(Object.keys(b.$slots), (z) => ({
|
|
3102
3103
|
name: z,
|
|
3103
3104
|
fn: y(({ row: Q, rowValue: le }) => [
|
|
@@ -3108,17 +3109,17 @@ const as = {
|
|
|
3108
3109
|
])
|
|
3109
3110
|
}))
|
|
3110
3111
|
]), 1032, ["format", "prop-list-types", "property-collections", "record"])
|
|
3111
|
-
])) : (m(), T("div",
|
|
3112
|
-
(m(!0), T(fe, null, de(
|
|
3112
|
+
])) : (m(), T("div", Cs, [
|
|
3113
|
+
(m(!0), T(fe, null, de(v.value, (z) => (m(), T("div", {
|
|
3113
3114
|
key: `config-card-details-${z}-props`,
|
|
3114
3115
|
class: Ae(`config-card-details-${z}-props`),
|
|
3115
3116
|
"data-testid": `config-card-details-${z}-props`
|
|
3116
3117
|
}, [
|
|
3117
|
-
z !== "basic" ? (m(), T("div",
|
|
3118
|
+
z !== "basic" ? (m(), T("div", Is, M(z === "advanced" ? g(o)("baseConfigCard.sections.advanced") : g(o)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
|
|
3118
3119
|
(m(!0), T(fe, null, de(q.value[z], (Q) => (m(), R(bt, {
|
|
3119
3120
|
key: Q.key,
|
|
3120
3121
|
item: Q
|
|
3121
|
-
},
|
|
3122
|
+
}, ke({
|
|
3122
3123
|
label: y(() => [
|
|
3123
3124
|
Y(b.$slots, `${Q.key}-label`, { row: Q }, void 0, !0)
|
|
3124
3125
|
]),
|
|
@@ -3146,9 +3147,9 @@ const as = {
|
|
|
3146
3147
|
e.hideTitle ? void 0 : {
|
|
3147
3148
|
name: "title",
|
|
3148
3149
|
fn: y(() => [
|
|
3149
|
-
|
|
3150
|
+
F("div", hs, [
|
|
3150
3151
|
Y(b.$slots, "title", {}, () => [
|
|
3151
|
-
W(
|
|
3152
|
+
W(M(g(o)("baseConfigCard.title")), 1)
|
|
3152
3153
|
], !0)
|
|
3153
3154
|
])
|
|
3154
3155
|
]),
|
|
@@ -3157,7 +3158,7 @@ const as = {
|
|
|
3157
3158
|
]), 1024);
|
|
3158
3159
|
};
|
|
3159
3160
|
}
|
|
3160
|
-
}), As = /* @__PURE__ */ me(
|
|
3161
|
+
}), As = /* @__PURE__ */ me(_s, [["__scopeId", "data-v-bea4df63"]]), Ss = ["onReset", "onSubmit"], xs = {
|
|
3161
3162
|
class: "form-actions",
|
|
3162
3163
|
"data-testid": "form-actions"
|
|
3163
3164
|
}, Ts = /* @__PURE__ */ te({
|
|
@@ -3216,13 +3217,13 @@ const as = {
|
|
|
3216
3217
|
var p, S;
|
|
3217
3218
|
if (!a.editId)
|
|
3218
3219
|
return "";
|
|
3219
|
-
let
|
|
3220
|
-
return a.config.app === "konnect" ?
|
|
3220
|
+
let I = `${a.config.apiBaseUrl}${a.fetchUrl}`;
|
|
3221
|
+
return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), I = I.replace(/{id}/gi, a.editId), I;
|
|
3221
3222
|
}), f = () => {
|
|
3222
3223
|
a.config.cancelRoute ? r.push(a.config.cancelRoute) : A();
|
|
3223
3224
|
}, A = () => {
|
|
3224
3225
|
n("cancel");
|
|
3225
|
-
},
|
|
3226
|
+
}, k = () => {
|
|
3226
3227
|
c.value || n("submit");
|
|
3227
3228
|
};
|
|
3228
3229
|
return he(() => l.value, (p) => {
|
|
@@ -3240,10 +3241,10 @@ const as = {
|
|
|
3240
3241
|
l.value = !1;
|
|
3241
3242
|
}
|
|
3242
3243
|
}), (p, S) => {
|
|
3243
|
-
const
|
|
3244
|
+
const I = P("KSkeleton"), q = P("KEmptyState"), v = P("KAlert"), w = P("KButton"), N = P("KCard");
|
|
3244
3245
|
return m(), R(N, { class: "kong-ui-entity-base-form" }, {
|
|
3245
3246
|
default: y(() => [
|
|
3246
|
-
l.value ? (m(), R(
|
|
3247
|
+
l.value ? (m(), R(I, {
|
|
3247
3248
|
key: 0,
|
|
3248
3249
|
type: "form"
|
|
3249
3250
|
})) : u.value ? (m(), R(q, {
|
|
@@ -3254,43 +3255,43 @@ const as = {
|
|
|
3254
3255
|
"is-error": !0
|
|
3255
3256
|
}, {
|
|
3256
3257
|
message: y(() => [
|
|
3257
|
-
|
|
3258
|
+
F("h3", null, M(d.value), 1)
|
|
3258
3259
|
]),
|
|
3259
3260
|
_: 1
|
|
3260
3261
|
}, 8, ["cta-text"])) : (m(), T("form", {
|
|
3261
3262
|
key: 2,
|
|
3262
3263
|
"data-testid": "form-content",
|
|
3263
3264
|
onReset: De(A, ["prevent"]),
|
|
3264
|
-
onSubmit: De(
|
|
3265
|
+
onSubmit: De(k, ["prevent"])
|
|
3265
3266
|
}, [
|
|
3266
3267
|
Y(p.$slots, "default", {}, void 0, !0),
|
|
3267
|
-
e.errorMessage ? (m(), R(
|
|
3268
|
+
e.errorMessage ? (m(), R(v, {
|
|
3268
3269
|
key: 0,
|
|
3269
3270
|
"alert-message": e.errorMessage,
|
|
3270
3271
|
appearance: "danger",
|
|
3271
3272
|
"data-testid": "form-error"
|
|
3272
3273
|
}, null, 8, ["alert-message"])) : G("", !0),
|
|
3273
|
-
|
|
3274
|
+
F("div", xs, [
|
|
3274
3275
|
Y(p.$slots, "form-actions", {}, () => [
|
|
3275
|
-
|
|
3276
|
+
K(w, {
|
|
3276
3277
|
appearance: "secondary",
|
|
3277
3278
|
"data-testid": "form-cancel",
|
|
3278
3279
|
disabled: e.isReadonly,
|
|
3279
3280
|
type: "reset"
|
|
3280
3281
|
}, {
|
|
3281
3282
|
default: y(() => [
|
|
3282
|
-
W(
|
|
3283
|
+
W(M(g(o)("baseForm.actions.cancel")), 1)
|
|
3283
3284
|
]),
|
|
3284
3285
|
_: 1
|
|
3285
3286
|
}, 8, ["disabled"]),
|
|
3286
|
-
|
|
3287
|
+
K(w, {
|
|
3287
3288
|
appearance: "primary",
|
|
3288
3289
|
"data-testid": "form-submit",
|
|
3289
3290
|
disabled: c.value,
|
|
3290
3291
|
type: "submit"
|
|
3291
3292
|
}, {
|
|
3292
3293
|
default: y(() => [
|
|
3293
|
-
W(
|
|
3294
|
+
W(M(g(o)("baseForm.actions.save")), 1)
|
|
3294
3295
|
]),
|
|
3295
3296
|
_: 1
|
|
3296
3297
|
}, 8, ["disabled"])
|
|
@@ -3302,10 +3303,10 @@ const as = {
|
|
|
3302
3303
|
});
|
|
3303
3304
|
};
|
|
3304
3305
|
}
|
|
3305
|
-
}), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]),
|
|
3306
|
+
}), $s = /* @__PURE__ */ me(Ts, [["__scopeId", "data-v-448d8512"]]), Ms = {
|
|
3306
3307
|
key: 0,
|
|
3307
3308
|
"data-testid": "first-col"
|
|
3308
|
-
},
|
|
3309
|
+
}, js = /* @__PURE__ */ te({
|
|
3309
3310
|
__name: "EntityBaseTableCell",
|
|
3310
3311
|
props: {
|
|
3311
3312
|
keyName: {
|
|
@@ -3319,32 +3320,32 @@ const as = {
|
|
|
3319
3320
|
},
|
|
3320
3321
|
setup(e) {
|
|
3321
3322
|
const n = e, t = $(() => {
|
|
3322
|
-
var
|
|
3323
|
-
return ((
|
|
3323
|
+
var k;
|
|
3324
|
+
return ((k = n.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${n.keyName}"]`)) || null;
|
|
3324
3325
|
}), a = $(() => {
|
|
3325
|
-
var
|
|
3326
|
-
return ((
|
|
3326
|
+
var k;
|
|
3327
|
+
return ((k = t.value) == null ? void 0 : k.querySelector('[data-testid="first-col"]')) || null;
|
|
3327
3328
|
}), r = $(() => {
|
|
3328
|
-
var
|
|
3329
|
-
const S = (
|
|
3329
|
+
var k, p;
|
|
3330
|
+
const S = (k = n.rowEl) == null ? void 0 : k.querySelectorAll("td");
|
|
3330
3331
|
return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
|
|
3331
3332
|
});
|
|
3332
3333
|
let o;
|
|
3333
3334
|
const i = () => {
|
|
3334
3335
|
o && (o.disconnect(), o = void 0);
|
|
3335
3336
|
}, s = () => {
|
|
3336
|
-
var
|
|
3337
|
-
u.value = ((
|
|
3337
|
+
var k, p, S;
|
|
3338
|
+
u.value = ((k = a.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, c.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
|
|
3338
3339
|
}, l = O({}), u = O(0), d = O(0), c = O(""), h = $(() => [a.value, t.value]), f = he(
|
|
3339
3340
|
h,
|
|
3340
|
-
(
|
|
3341
|
+
(k) => {
|
|
3341
3342
|
if (r.value && (i(), "ResizeObserver" in window && window)) {
|
|
3342
3343
|
o = new ResizeObserver((p) => {
|
|
3343
3344
|
window.requestAnimationFrame(() => {
|
|
3344
3345
|
!Array.isArray(p) || !p.length || s();
|
|
3345
3346
|
});
|
|
3346
3347
|
});
|
|
3347
|
-
for (const p of
|
|
3348
|
+
for (const p of k)
|
|
3348
3349
|
p && o.observe(p);
|
|
3349
3350
|
}
|
|
3350
3351
|
},
|
|
@@ -3354,32 +3355,32 @@ const as = {
|
|
|
3354
3355
|
s();
|
|
3355
3356
|
}), va(() => {
|
|
3356
3357
|
f();
|
|
3357
|
-
}), (
|
|
3358
|
+
}), (k, p) => {
|
|
3358
3359
|
const S = P("KTooltip");
|
|
3359
3360
|
return m(), T("span", {
|
|
3360
3361
|
ref_key: "contentRef",
|
|
3361
3362
|
ref: l,
|
|
3362
3363
|
class: "content-wrapper"
|
|
3363
3364
|
}, [
|
|
3364
|
-
r.value ? (m(), T("span",
|
|
3365
|
-
|
|
3365
|
+
r.value ? (m(), T("span", Ms, [
|
|
3366
|
+
K(S, {
|
|
3366
3367
|
label: A.value ? c.value : "",
|
|
3367
3368
|
"max-width": "300",
|
|
3368
3369
|
placement: "bottomStart"
|
|
3369
3370
|
}, {
|
|
3370
3371
|
default: y(() => [
|
|
3371
|
-
Y(
|
|
3372
|
+
Y(k.$slots, "default", {}, void 0, !0)
|
|
3372
3373
|
]),
|
|
3373
3374
|
_: 3
|
|
3374
3375
|
}, 8, ["label"])
|
|
3375
|
-
])) : Y(
|
|
3376
|
+
])) : Y(k.$slots, "default", { key: 1 }, void 0, !0)
|
|
3376
3377
|
], 512);
|
|
3377
3378
|
};
|
|
3378
3379
|
}
|
|
3379
|
-
}), Os = /* @__PURE__ */ me(
|
|
3380
|
+
}), Os = /* @__PURE__ */ me(js, [["__scopeId", "data-v-e42a20c9"]]), Es = { class: "toolbar-container" }, Ks = {
|
|
3380
3381
|
key: 0,
|
|
3381
3382
|
class: "toolbar-button-container"
|
|
3382
|
-
},
|
|
3383
|
+
}, Fs = ["data-testid"], Ns = /* @__PURE__ */ te({
|
|
3383
3384
|
__name: "EntityBaseTable",
|
|
3384
3385
|
props: {
|
|
3385
3386
|
// table header configuration
|
|
@@ -3490,42 +3491,42 @@ const as = {
|
|
|
3490
3491
|
emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
|
|
3491
3492
|
setup(e, { emit: n }) {
|
|
3492
3493
|
const t = e, { i18n: { t: a } } = re.useI18n(), r = $(() => {
|
|
3493
|
-
var
|
|
3494
|
+
var v, w;
|
|
3494
3495
|
return typeof t.errorMessage == "string" ? {
|
|
3495
3496
|
hasError: !!t.errorMessage,
|
|
3496
3497
|
title: t.errorMessage,
|
|
3497
3498
|
message: void 0
|
|
3498
3499
|
} : {
|
|
3499
3500
|
hasError: !!t.errorMessage,
|
|
3500
|
-
title: (
|
|
3501
|
+
title: (v = t.errorMessage) == null ? void 0 : v.title,
|
|
3501
3502
|
message: (w = t.errorMessage) == null ? void 0 : w.message
|
|
3502
3503
|
};
|
|
3503
|
-
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (
|
|
3504
|
-
const
|
|
3504
|
+
}), o = $(() => t.cacheIdentifier || t.preferencesStorageKey), i = (v) => v.hasData || !!t.query, s = $(() => {
|
|
3505
|
+
const v = [];
|
|
3505
3506
|
return Object.keys(t.tableHeaders).forEach((w) => {
|
|
3506
3507
|
const N = t.tableHeaders[w];
|
|
3507
|
-
|
|
3508
|
+
v.push({
|
|
3508
3509
|
label: N.label ?? w,
|
|
3509
3510
|
key: w,
|
|
3510
3511
|
sortable: N.sortable ?? !1
|
|
3511
3512
|
});
|
|
3512
|
-
}), t.enableEntityActions &&
|
|
3513
|
+
}), t.enableEntityActions && v.push({
|
|
3513
3514
|
key: "actions",
|
|
3514
3515
|
hideLabel: !0
|
|
3515
|
-
}),
|
|
3516
|
-
}), l = (
|
|
3517
|
-
"data-rowid":
|
|
3518
|
-
"data-testid":
|
|
3519
|
-
...t.rowAttributes(
|
|
3520
|
-
}), u = O({}), d = (
|
|
3516
|
+
}), v;
|
|
3517
|
+
}), l = (v) => ({
|
|
3518
|
+
"data-rowid": v.id,
|
|
3519
|
+
"data-testid": v.name,
|
|
3520
|
+
...t.rowAttributes(v)
|
|
3521
|
+
}), u = O({}), d = (v) => {
|
|
3521
3522
|
var w;
|
|
3522
|
-
return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${
|
|
3523
|
-
}, c = (
|
|
3523
|
+
return (w = u.value) == null ? void 0 : w.$el.querySelector(`[data-rowid="${v.id}"]`);
|
|
3524
|
+
}, c = (v) => {
|
|
3524
3525
|
const w = {
|
|
3525
|
-
"data-testid":
|
|
3526
|
-
...t.cellAttributes(
|
|
3526
|
+
"data-testid": v.headerKey,
|
|
3527
|
+
...t.cellAttributes(v)
|
|
3527
3528
|
};
|
|
3528
|
-
return
|
|
3529
|
+
return v.colIndex === 0 && (w.style = {
|
|
3529
3530
|
maxWidth: "250px",
|
|
3530
3531
|
overflowX: "hidden",
|
|
3531
3532
|
textOverflow: "ellipsis"
|
|
@@ -3534,27 +3535,27 @@ const as = {
|
|
|
3534
3535
|
n("empty-state-cta-clicked"), f();
|
|
3535
3536
|
}, f = () => {
|
|
3536
3537
|
n("clear-search-input");
|
|
3537
|
-
}, A = $(() => t.disableRowClick ? void 0 : (
|
|
3538
|
+
}, A = $(() => t.disableRowClick ? void 0 : (v, w) => {
|
|
3538
3539
|
n("click:row", w);
|
|
3539
|
-
}),
|
|
3540
|
-
n("sort",
|
|
3541
|
-
}, { setTablePreferences: p, getTablePreferences: S } = Ta(),
|
|
3542
|
-
const
|
|
3540
|
+
}), k = (v) => {
|
|
3541
|
+
n("sort", v);
|
|
3542
|
+
}, { setTablePreferences: p, getTablePreferences: S } = Ta(), I = $(() => {
|
|
3543
|
+
const v = S(t.preferencesStorageKey);
|
|
3543
3544
|
return {
|
|
3544
3545
|
...t.initialFetcherParams,
|
|
3545
|
-
...
|
|
3546
|
+
...v
|
|
3546
3547
|
};
|
|
3547
|
-
}), q = (
|
|
3548
|
-
t.preferencesStorageKey && p(t.preferencesStorageKey,
|
|
3548
|
+
}), q = (v) => {
|
|
3549
|
+
t.preferencesStorageKey && p(t.preferencesStorageKey, v);
|
|
3549
3550
|
};
|
|
3550
|
-
return (
|
|
3551
|
-
const N = P("KIcon"), U = P("KButton"), b = P("KDropdown"),
|
|
3551
|
+
return (v, w) => {
|
|
3552
|
+
const N = P("KIcon"), U = P("KButton"), b = P("KDropdown"), C = P("KTable"), V = P("KCard");
|
|
3552
3553
|
return m(), R(V, {
|
|
3553
3554
|
class: "kong-ui-entity-base-table",
|
|
3554
3555
|
title: e.title
|
|
3555
3556
|
}, {
|
|
3556
3557
|
default: y(() => [
|
|
3557
|
-
|
|
3558
|
+
K(C, {
|
|
3558
3559
|
ref_key: "tableRefs",
|
|
3559
3560
|
ref: u,
|
|
3560
3561
|
"cache-identifier": o.value,
|
|
@@ -3576,51 +3577,51 @@ const as = {
|
|
|
3576
3577
|
"has-error": r.value.hasError,
|
|
3577
3578
|
headers: s.value,
|
|
3578
3579
|
"hide-pagination-when-optional": "",
|
|
3579
|
-
"initial-fetcher-params":
|
|
3580
|
+
"initial-fetcher-params": I.value,
|
|
3580
3581
|
"is-loading": e.isLoading,
|
|
3581
3582
|
"pagination-type": e.paginationType,
|
|
3582
3583
|
"row-attrs": l,
|
|
3583
3584
|
"search-input": e.query,
|
|
3584
3585
|
onKtableEmptyStateCtaClicked: h,
|
|
3585
3586
|
"onRow:click": A.value,
|
|
3586
|
-
onSort: w[0] || (w[0] = (B) =>
|
|
3587
|
+
onSort: w[0] || (w[0] = (B) => k(B)),
|
|
3587
3588
|
"onUpdate:tablePreferences": q
|
|
3588
|
-
},
|
|
3589
|
+
}, ke({
|
|
3589
3590
|
toolbar: y(({ state: B }) => [
|
|
3590
|
-
Be(
|
|
3591
|
-
Y(
|
|
3592
|
-
|
|
3593
|
-
Y(
|
|
3591
|
+
Be(F("div", Es, [
|
|
3592
|
+
Y(v.$slots, "toolbar-filter", {}, void 0, !0),
|
|
3593
|
+
v.$slots["toolbar-button"] ? (m(), T("div", Ks, [
|
|
3594
|
+
Y(v.$slots, "toolbar-button", {}, void 0, !0)
|
|
3594
3595
|
])) : G("", !0)
|
|
3595
3596
|
], 512), [
|
|
3596
3597
|
[qe, i(B)]
|
|
3597
3598
|
])
|
|
3598
3599
|
]),
|
|
3599
3600
|
actions: y(({ row: B, rowKey: _, rowValue: E }) => [
|
|
3600
|
-
|
|
3601
|
+
F("div", {
|
|
3601
3602
|
class: "actions-container",
|
|
3602
3603
|
"data-testid": B.name
|
|
3603
3604
|
}, [
|
|
3604
|
-
|
|
3605
|
+
K(b, {
|
|
3605
3606
|
"kpop-attributes": { placement: "bottomEnd" },
|
|
3606
3607
|
width: e.dropdownMenuWidth
|
|
3607
3608
|
}, {
|
|
3608
3609
|
items: y(() => [
|
|
3609
|
-
Y(
|
|
3610
|
+
Y(v.$slots, "actions", {
|
|
3610
3611
|
row: B,
|
|
3611
3612
|
rowKey: _,
|
|
3612
3613
|
rowValue: E
|
|
3613
3614
|
}, void 0, !0)
|
|
3614
3615
|
]),
|
|
3615
3616
|
default: y(() => [
|
|
3616
|
-
|
|
3617
|
+
K(U, {
|
|
3617
3618
|
class: "actions-trigger",
|
|
3618
3619
|
"data-testid": "overflow-actions-button",
|
|
3619
3620
|
size: "small"
|
|
3620
3621
|
}, {
|
|
3621
3622
|
icon: y(() => [
|
|
3622
|
-
|
|
3623
|
-
color: g(
|
|
3623
|
+
K(N, {
|
|
3624
|
+
color: g(Cr),
|
|
3624
3625
|
icon: "more",
|
|
3625
3626
|
size: "16"
|
|
3626
3627
|
}, null, 8, ["color"])
|
|
@@ -3630,24 +3631,24 @@ const as = {
|
|
|
3630
3631
|
]),
|
|
3631
3632
|
_: 2
|
|
3632
3633
|
}, 1032, ["width"])
|
|
3633
|
-
], 8,
|
|
3634
|
+
], 8, Fs)
|
|
3634
3635
|
]),
|
|
3635
3636
|
_: 2
|
|
3636
3637
|
}, [
|
|
3637
3638
|
de(e.tableHeaders, (B, _) => ({
|
|
3638
3639
|
name: _,
|
|
3639
3640
|
fn: y(({ row: E, rowKey: L, rowValue: D }) => [
|
|
3640
|
-
|
|
3641
|
+
K(Os, {
|
|
3641
3642
|
"key-name": String(_),
|
|
3642
3643
|
"row-el": d(E)
|
|
3643
3644
|
}, {
|
|
3644
3645
|
default: y(() => [
|
|
3645
|
-
Y(
|
|
3646
|
+
Y(v.$slots, _, {
|
|
3646
3647
|
row: E,
|
|
3647
3648
|
rowKey: L,
|
|
3648
3649
|
rowValue: D
|
|
3649
3650
|
}, () => [
|
|
3650
|
-
W(
|
|
3651
|
+
W(M(D), 1)
|
|
3651
3652
|
], !0)
|
|
3652
3653
|
]),
|
|
3653
3654
|
_: 2
|
|
@@ -3725,34 +3726,34 @@ const as = {
|
|
|
3725
3726
|
}, {
|
|
3726
3727
|
"body-content": y(() => [
|
|
3727
3728
|
e.error ? (m(), T("div", qs, [
|
|
3728
|
-
|
|
3729
|
+
K(u, { appearance: "danger" }, {
|
|
3729
3730
|
alertMessage: y(() => [
|
|
3730
|
-
W(
|
|
3731
|
+
W(M(e.error), 1)
|
|
3731
3732
|
]),
|
|
3732
3733
|
_: 1
|
|
3733
3734
|
})
|
|
3734
3735
|
])) : G("", !0),
|
|
3735
|
-
|
|
3736
|
+
K(g(a), {
|
|
3736
3737
|
class: "message",
|
|
3737
3738
|
keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
|
|
3738
3739
|
tag: "p"
|
|
3739
|
-
},
|
|
3740
|
+
}, ke({
|
|
3740
3741
|
entityType: y(() => [
|
|
3741
|
-
W(
|
|
3742
|
+
W(M(t.entityType), 1)
|
|
3742
3743
|
]),
|
|
3743
3744
|
_: 2
|
|
3744
3745
|
}, [
|
|
3745
3746
|
t.entityName ? {
|
|
3746
3747
|
name: "entityName",
|
|
3747
3748
|
fn: y(() => [
|
|
3748
|
-
|
|
3749
|
+
F("strong", null, M(t.entityName), 1)
|
|
3749
3750
|
]),
|
|
3750
3751
|
key: "0"
|
|
3751
3752
|
} : void 0
|
|
3752
3753
|
]), 1032, ["keypath"]),
|
|
3753
3754
|
t.description || s.$slots.description ? (m(), T("div", Ls, [
|
|
3754
3755
|
Y(s.$slots, "description", {}, () => [
|
|
3755
|
-
|
|
3756
|
+
F("p", null, M(t.description), 1)
|
|
3756
3757
|
], !0)
|
|
3757
3758
|
])) : G("", !0)
|
|
3758
3759
|
]),
|
|
@@ -3784,15 +3785,15 @@ const as = {
|
|
|
3784
3785
|
},
|
|
3785
3786
|
setup(e) {
|
|
3786
3787
|
return (n, t) => (m(), T("svg", Rs, [
|
|
3787
|
-
|
|
3788
|
-
|
|
3788
|
+
F("mask", Us, [
|
|
3789
|
+
F("rect", {
|
|
3789
3790
|
fill: e.color,
|
|
3790
3791
|
height: "20",
|
|
3791
3792
|
width: "20"
|
|
3792
3793
|
}, null, 8, Ds)
|
|
3793
3794
|
]),
|
|
3794
|
-
|
|
3795
|
-
|
|
3795
|
+
F("g", Gs, [
|
|
3796
|
+
F("path", {
|
|
3796
3797
|
d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
|
|
3797
3798
|
fill: e.color
|
|
3798
3799
|
}, null, 8, Hs)
|
|
@@ -3824,8 +3825,8 @@ const as = {
|
|
|
3824
3825
|
setup(e, { emit: n }) {
|
|
3825
3826
|
const t = e, { i18n: { t: a } } = re.useI18n(), r = O(!1), o = O({}), i = $(() => {
|
|
3826
3827
|
const p = [];
|
|
3827
|
-
return new URLSearchParams(t.modelValue).forEach((S,
|
|
3828
|
-
S !== "" && p.push(
|
|
3828
|
+
return new URLSearchParams(t.modelValue).forEach((S, I) => {
|
|
3829
|
+
S !== "" && p.push(I);
|
|
3829
3830
|
}), p;
|
|
3830
3831
|
}), s = $(() => {
|
|
3831
3832
|
const p = t.config.fields;
|
|
@@ -3835,8 +3836,8 @@ const as = {
|
|
|
3835
3836
|
}));
|
|
3836
3837
|
});
|
|
3837
3838
|
he(() => t.modelValue, (p) => {
|
|
3838
|
-
o.value = {}, new URLSearchParams(p).forEach((S,
|
|
3839
|
-
o.value[
|
|
3839
|
+
o.value = {}, new URLSearchParams(p).forEach((S, I) => {
|
|
3840
|
+
o.value[I] = S;
|
|
3840
3841
|
});
|
|
3841
3842
|
});
|
|
3842
3843
|
const l = () => {
|
|
@@ -3844,28 +3845,28 @@ const as = {
|
|
|
3844
3845
|
}, u = (p) => {
|
|
3845
3846
|
n("update:modelValue", p);
|
|
3846
3847
|
}, d = (p) => `filter-${p}`, c = (p) => {
|
|
3847
|
-
var S,
|
|
3848
|
-
return (((
|
|
3848
|
+
var S, I;
|
|
3849
|
+
return (((I = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : I.values) ?? []).map((q) => ({
|
|
3849
3850
|
value: q,
|
|
3850
3851
|
label: q
|
|
3851
3852
|
}));
|
|
3852
3853
|
}, h = (p) => {
|
|
3853
|
-
var S,
|
|
3854
|
-
return ((
|
|
3854
|
+
var S, I;
|
|
3855
|
+
return ((I = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : I.type) ?? "text";
|
|
3855
3856
|
}, f = (p) => {
|
|
3856
3857
|
o.value = {
|
|
3857
3858
|
...o.value,
|
|
3858
3859
|
[p]: ""
|
|
3859
|
-
},
|
|
3860
|
+
}, k();
|
|
3860
3861
|
}, A = () => {
|
|
3861
|
-
o.value = {},
|
|
3862
|
-
},
|
|
3863
|
-
const S = Object.keys(o.value).reduce((
|
|
3862
|
+
o.value = {}, k(!0);
|
|
3863
|
+
}, k = (p = !1) => {
|
|
3864
|
+
const S = Object.keys(o.value).reduce((I, q) => (o.value[q] && (I[q] = `${o.value[q]}`), I), {});
|
|
3864
3865
|
p && (r.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
|
|
3865
3866
|
};
|
|
3866
3867
|
return (p, S) => {
|
|
3867
|
-
const
|
|
3868
|
-
return e.config.isExactMatch ? (m(), R(
|
|
3868
|
+
const I = P("KInput"), q = P("KButton"), v = P("KSelect"), w = P("KMenuItem"), N = P("KMenu");
|
|
3869
|
+
return e.config.isExactMatch ? (m(), R(I, {
|
|
3869
3870
|
key: 0,
|
|
3870
3871
|
autocomplete: "off",
|
|
3871
3872
|
class: "kong-ui-entity-filter-input",
|
|
@@ -3875,28 +3876,28 @@ const as = {
|
|
|
3875
3876
|
"onUpdate:modelValue": u
|
|
3876
3877
|
}, {
|
|
3877
3878
|
before: y(() => [
|
|
3878
|
-
|
|
3879
|
+
K(ln)
|
|
3879
3880
|
]),
|
|
3880
3881
|
_: 1
|
|
3881
3882
|
}, 8, ["model-value", "placeholder"])) : (m(), T("div", zs, [
|
|
3882
|
-
|
|
3883
|
+
K(q, {
|
|
3883
3884
|
appearance: "tertiary",
|
|
3884
3885
|
"data-testid": "filter-button",
|
|
3885
3886
|
onClick: l
|
|
3886
3887
|
}, {
|
|
3887
3888
|
default: y(() => [
|
|
3888
|
-
|
|
3889
|
-
W(" " +
|
|
3889
|
+
K(ln),
|
|
3890
|
+
W(" " + M(g(a)("filter.filterButtonText")) + " " + M(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
|
|
3890
3891
|
]),
|
|
3891
3892
|
_: 1
|
|
3892
3893
|
}),
|
|
3893
|
-
Be(
|
|
3894
|
+
Be(F("div", {
|
|
3894
3895
|
class: "kong-ui-entity-filter-backdrop",
|
|
3895
3896
|
onClick: l
|
|
3896
3897
|
}, null, 512), [
|
|
3897
3898
|
[qe, r.value]
|
|
3898
3899
|
]),
|
|
3899
|
-
Be(
|
|
3900
|
+
Be(K(N, { class: "kong-ui-entity-filter-menu" }, {
|
|
3900
3901
|
body: y(() => [
|
|
3901
3902
|
(m(!0), T(fe, null, de(s.value, (U, b) => (m(), R(w, {
|
|
3902
3903
|
key: U.value,
|
|
@@ -3905,22 +3906,22 @@ const as = {
|
|
|
3905
3906
|
"last-menu-item": b === s.value.length - 1
|
|
3906
3907
|
}, {
|
|
3907
3908
|
itemTitle: y(() => [
|
|
3908
|
-
|
|
3909
|
-
W(
|
|
3910
|
-
Be(
|
|
3909
|
+
F("span", Js, [
|
|
3910
|
+
W(M(U.label) + " ", 1),
|
|
3911
|
+
Be(F("span", Ys, null, 512), [
|
|
3911
3912
|
[qe, i.value.includes(U.value)]
|
|
3912
3913
|
])
|
|
3913
3914
|
])
|
|
3914
3915
|
]),
|
|
3915
3916
|
itemBody: y(() => {
|
|
3916
|
-
var
|
|
3917
|
+
var C, V;
|
|
3917
3918
|
return [
|
|
3918
|
-
|
|
3919
|
-
|
|
3919
|
+
F("div", Ws, [
|
|
3920
|
+
F("label", {
|
|
3920
3921
|
class: "menu-item-label",
|
|
3921
3922
|
for: d(U.value)
|
|
3922
|
-
},
|
|
3923
|
-
((V = (
|
|
3923
|
+
}, M(g(a)("filter.fieldLabel")), 9, Zs),
|
|
3924
|
+
((V = (C = e.config.schema) == null ? void 0 : C[U.value]) == null ? void 0 : V.type) === "select" ? (m(), R(v, {
|
|
3924
3925
|
key: 0,
|
|
3925
3926
|
id: d(U.value),
|
|
3926
3927
|
modelValue: o.value[U.value],
|
|
@@ -3928,7 +3929,7 @@ const as = {
|
|
|
3928
3929
|
appearance: "select",
|
|
3929
3930
|
items: c(U.value),
|
|
3930
3931
|
placeholder: g(a)("filter.selectPlaceholder")
|
|
3931
|
-
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(
|
|
3932
|
+
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), R(I, {
|
|
3932
3933
|
key: 1,
|
|
3933
3934
|
id: d(U.value),
|
|
3934
3935
|
modelValue: o.value[U.value],
|
|
@@ -3938,26 +3939,26 @@ const as = {
|
|
|
3938
3939
|
type: h(U.value)
|
|
3939
3940
|
}, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
|
|
3940
3941
|
]),
|
|
3941
|
-
|
|
3942
|
-
|
|
3942
|
+
F("div", Qs, [
|
|
3943
|
+
K(q, {
|
|
3943
3944
|
appearance: "tertiary",
|
|
3944
3945
|
"data-testid": "apply-filter",
|
|
3945
3946
|
size: "small",
|
|
3946
|
-
onClick: S[0] || (S[0] = (B) =>
|
|
3947
|
+
onClick: S[0] || (S[0] = (B) => k(!0))
|
|
3947
3948
|
}, {
|
|
3948
3949
|
default: y(() => [
|
|
3949
|
-
W(
|
|
3950
|
+
W(M(g(a)("filter.applyButtonText")), 1)
|
|
3950
3951
|
]),
|
|
3951
3952
|
_: 1
|
|
3952
3953
|
}),
|
|
3953
|
-
|
|
3954
|
+
K(q, {
|
|
3954
3955
|
appearance: "tertiary",
|
|
3955
3956
|
"data-testid": "clear-filter",
|
|
3956
3957
|
size: "small",
|
|
3957
3958
|
onClick: (B) => f(U.value)
|
|
3958
3959
|
}, {
|
|
3959
3960
|
default: y(() => [
|
|
3960
|
-
W(
|
|
3961
|
+
W(M(g(a)("filter.clearButtonText")), 1)
|
|
3961
3962
|
]),
|
|
3962
3963
|
_: 2
|
|
3963
3964
|
}, 1032, ["onClick"])
|
|
@@ -3968,14 +3969,14 @@ const as = {
|
|
|
3968
3969
|
}, 1032, ["data-testid", "last-menu-item"]))), 128))
|
|
3969
3970
|
]),
|
|
3970
3971
|
actionButton: y(() => [
|
|
3971
|
-
|
|
3972
|
-
|
|
3972
|
+
F("div", Xs, [
|
|
3973
|
+
K(q, {
|
|
3973
3974
|
appearance: "tertiary",
|
|
3974
3975
|
size: "small",
|
|
3975
3976
|
onClick: A
|
|
3976
3977
|
}, {
|
|
3977
3978
|
default: y(() => [
|
|
3978
|
-
W(
|
|
3979
|
+
W(M(g(a)("filter.clearAllButtonText")), 1)
|
|
3979
3980
|
]),
|
|
3980
3981
|
_: 1
|
|
3981
3982
|
})
|
|
@@ -4056,29 +4057,28 @@ const as = {
|
|
|
4056
4057
|
return (t, a) => (m(), T("fieldset", {
|
|
4057
4058
|
class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
|
|
4058
4059
|
}, [
|
|
4059
|
-
|
|
4060
|
+
F("div", nl, [
|
|
4060
4061
|
e.hideInfoHeader ? G("", !0) : (m(), T("div", {
|
|
4061
4062
|
key: 0,
|
|
4062
4063
|
class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
|
|
4063
4064
|
}, [
|
|
4064
|
-
e.title ? (m(), T("h4", al,
|
|
4065
|
+
e.title ? (m(), T("h4", al, M(e.title), 1)) : G("", !0),
|
|
4065
4066
|
e.description || g(n).description ? (m(), T("div", rl, [
|
|
4066
4067
|
Y(t.$slots, "description", {}, () => [
|
|
4067
|
-
|
|
4068
|
+
F("p", null, M(e.description), 1)
|
|
4068
4069
|
], !0)
|
|
4069
4070
|
])) : G("", !0),
|
|
4070
4071
|
g(n).footer ? (m(), T("div", ol, [
|
|
4071
4072
|
Y(t.$slots, "footer", {}, void 0, !0)
|
|
4072
4073
|
])) : G("", !0)
|
|
4073
4074
|
], 2)),
|
|
4074
|
-
|
|
4075
|
+
F("div", il, [
|
|
4075
4076
|
Y(t.$slots, "default", {}, void 0, !0)
|
|
4076
4077
|
])
|
|
4077
4078
|
])
|
|
4078
4079
|
], 2));
|
|
4079
4080
|
}
|
|
4080
|
-
}), ll = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator:
|
|
4081
|
-
const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer-form-cta" }, gl = { class: "select-item-label" }, yl = {
|
|
4081
|
+
}), ll = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: ul, useErrors: cl, useExternalLinkCreator: Kl, useFetchUrlBuilder: Fl, useFetcher: dl, useDebouncedFilter: pl, useStringHelpers: Nl, useHelpers: Bl, useGatewayFeatureSupported: ql, useTruncationDetector: Ll } = re, fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer-form-cta" }, gl = { class: "select-item-label" }, yl = {
|
|
4082
4082
|
key: 0,
|
|
4083
4083
|
class: "select-item-desc"
|
|
4084
4084
|
}, hl = {
|
|
@@ -4119,7 +4119,7 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4119
4119
|
fetchedItemsKey: "data",
|
|
4120
4120
|
searchKeys: ["username", "id"]
|
|
4121
4121
|
}
|
|
4122
|
-
), h = (_) => _, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0),
|
|
4122
|
+
), h = (_) => _, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), k = $(() => l.value === void 0), p = $(() => c.value.map((_) => ({
|
|
4123
4123
|
label: _.username || _.customId,
|
|
4124
4124
|
value: _.id,
|
|
4125
4125
|
selected: o.value.includes(_.id),
|
|
@@ -4127,26 +4127,26 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4127
4127
|
// we need this to determine whether or not to show the description text
|
|
4128
4128
|
}))), S = (_) => {
|
|
4129
4129
|
var L;
|
|
4130
|
-
const E =
|
|
4130
|
+
const E = k.value ? c.value.find((D) => D.id === _) : (L = l.value) == null ? void 0 : L.find((D) => D.id === _);
|
|
4131
4131
|
return E ? E.username || E.custom_id : _;
|
|
4132
|
-
},
|
|
4133
|
-
w.value = "", q.value = [],
|
|
4134
|
-
}, q = O([]),
|
|
4132
|
+
}, I = () => {
|
|
4133
|
+
w.value = "", q.value = [], C.value = [], n("cancel");
|
|
4134
|
+
}, q = O([]), v = O(!1), w = O(""), N = async () => {
|
|
4135
4135
|
if (!o.value.length) {
|
|
4136
|
-
w.value = "",
|
|
4136
|
+
w.value = "", C.value = [], n("cancel");
|
|
4137
4137
|
return;
|
|
4138
4138
|
}
|
|
4139
|
-
|
|
4139
|
+
v.value = !0, w.value = "", q.value = [], C.value = [];
|
|
4140
4140
|
try {
|
|
4141
4141
|
const _ = o.value.map((D) => b(D)), E = await Promise.allSettled(_);
|
|
4142
4142
|
let L = !0;
|
|
4143
4143
|
E.forEach((D) => {
|
|
4144
4144
|
D.status !== "fulfilled" && (L = !1);
|
|
4145
|
-
}), L ? (q.value = [],
|
|
4145
|
+
}), L ? (q.value = [], C.value = [], n("add:success", o.value), o.value = []) : (q.value.length && n("add:partial-success", q.value), o.value = [], V(E));
|
|
4146
4146
|
} catch {
|
|
4147
4147
|
w.value = a("consumers.errors.add"), n("error", w.value);
|
|
4148
4148
|
} finally {
|
|
4149
|
-
|
|
4149
|
+
v.value = !1;
|
|
4150
4150
|
}
|
|
4151
4151
|
}, U = $(() => {
|
|
4152
4152
|
var E, L, D, Z;
|
|
@@ -4163,8 +4163,8 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4163
4163
|
let D = `${S(_)} - ${L.message}`;
|
|
4164
4164
|
return L.response.status === 409 && (D = `${S(_)} - ${a("consumers.errors.already_added")}`), Promise.reject(Error(D));
|
|
4165
4165
|
}
|
|
4166
|
-
},
|
|
4167
|
-
|
|
4166
|
+
}, C = O([]), V = (_) => {
|
|
4167
|
+
C.value = _.map((E) => {
|
|
4168
4168
|
var L;
|
|
4169
4169
|
return (L = E.reason) == null ? void 0 : L.message;
|
|
4170
4170
|
}).filter(Boolean);
|
|
@@ -4176,46 +4176,46 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4176
4176
|
}, { immediate: !0 }), (_, E) => {
|
|
4177
4177
|
const L = P("KMultiselect"), D = P("KAlert"), Z = P("KPrompt");
|
|
4178
4178
|
return m(), R(Z, {
|
|
4179
|
-
"action-pending":
|
|
4179
|
+
"action-pending": v.value,
|
|
4180
4180
|
class: "kong-ui-entities-add-consumers-modal",
|
|
4181
4181
|
"data-testid": "add-consumer-modal",
|
|
4182
4182
|
"is-visible": e.visible,
|
|
4183
4183
|
title: g(a)("consumers.consumer_groups.add.title"),
|
|
4184
|
-
onCanceled:
|
|
4184
|
+
onCanceled: I,
|
|
4185
4185
|
onProceed: N
|
|
4186
4186
|
}, {
|
|
4187
4187
|
"body-content": y(() => [
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4188
|
+
F("div", fl, [
|
|
4189
|
+
F("p", ml, M(g(a)("consumers.consumer_groups.add.ctaText")), 1),
|
|
4190
|
+
K(L, {
|
|
4191
4191
|
modelValue: o.value,
|
|
4192
4192
|
"onUpdate:modelValue": E[0] || (E[0] = (z) => o.value = z),
|
|
4193
4193
|
autosuggest: "",
|
|
4194
4194
|
"data-testid": "add-consumers-multiselect",
|
|
4195
|
-
"dropdown-footer-text":
|
|
4195
|
+
"dropdown-footer-text": k.value ? g(a)("consumers.consumer_groups.add.footer") : void 0,
|
|
4196
4196
|
items: p.value,
|
|
4197
4197
|
label: g(a)("consumers.consumer_groups.add.consumers_label"),
|
|
4198
4198
|
loading: g(s),
|
|
4199
4199
|
placeholder: g(a)("consumers.consumer_groups.add.consumer_placeholder"),
|
|
4200
|
-
readonly:
|
|
4200
|
+
readonly: v.value,
|
|
4201
4201
|
required: "",
|
|
4202
4202
|
width: "100%",
|
|
4203
4203
|
onQueryChange: g(i)
|
|
4204
4204
|
}, {
|
|
4205
4205
|
"item-template": y(({ item: z }) => [
|
|
4206
|
-
|
|
4207
|
-
h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl,
|
|
4206
|
+
F("div", gl, M(z.label), 1),
|
|
4207
|
+
h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl, M(h(z).data.custom_id), 1)) : G("", !0)
|
|
4208
4208
|
]),
|
|
4209
4209
|
_: 1
|
|
4210
4210
|
}, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
|
|
4211
|
-
w.value || f.value ||
|
|
4212
|
-
|
|
4211
|
+
w.value || f.value || C.value.length ? (m(), T("div", hl, [
|
|
4212
|
+
K(D, { appearance: "danger" }, {
|
|
4213
4213
|
alertMessage: y(() => [
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
(m(!0), T(fe, null, de(
|
|
4214
|
+
F("p", null, M(g(a)("consumers.errors.add")), 1),
|
|
4215
|
+
C.value.length ? (m(), T("ul", vl, [
|
|
4216
|
+
(m(!0), T(fe, null, de(C.value, (z, Q) => (m(), T("li", { key: Q }, M(z), 1))), 128))
|
|
4217
4217
|
])) : G("", !0),
|
|
4218
|
-
|
|
4218
|
+
F("div", null, M(w.value || f.value), 1)
|
|
4219
4219
|
]),
|
|
4220
4220
|
_: 1
|
|
4221
4221
|
})
|
|
@@ -4226,13 +4226,12 @@ const fl = { class: "add-consumer-form-container" }, ml = { class: "add-consumer
|
|
|
4226
4226
|
}, 8, ["action-pending", "is-visible", "title"]);
|
|
4227
4227
|
};
|
|
4228
4228
|
}
|
|
4229
|
-
})
|
|
4230
|
-
const xt = (e, n) => {
|
|
4229
|
+
}), xt = (e, n) => {
|
|
4231
4230
|
const t = e.__vccOpts || e;
|
|
4232
4231
|
for (const [a, r] of n)
|
|
4233
4232
|
t[a] = r;
|
|
4234
4233
|
return t;
|
|
4235
|
-
},
|
|
4234
|
+
}, kl = /* @__PURE__ */ xt(bl, [["__scopeId", "data-v-68cc6403"]]), Cl = { class: "kong-ui-entities-consumers-list" }, wl = { key: 1 }, Il = /* @__PURE__ */ te({
|
|
4236
4235
|
__name: "ConsumerList",
|
|
4237
4236
|
props: {
|
|
4238
4237
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4278,9 +4277,9 @@ const xt = (e, n) => {
|
|
|
4278
4277
|
},
|
|
4279
4278
|
emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
|
|
4280
4279
|
setup(e, { emit: n }) {
|
|
4281
|
-
var
|
|
4280
|
+
var Kt;
|
|
4282
4281
|
const t = e, { i18nT: a, i18n: { t: r } } = Ze.useI18n(), o = gt(), { axiosInstance: i } = St({
|
|
4283
|
-
headers: (
|
|
4282
|
+
headers: (Kt = t.config) == null ? void 0 : Kt.requestHeaders
|
|
4284
4283
|
}), s = O(1), l = $(() => !!t.config.consumerGroupId), u = $(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
|
|
4285
4284
|
username: { label: r("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
|
|
4286
4285
|
custom_id: { label: r("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
|
|
@@ -4291,7 +4290,7 @@ const xt = (e, n) => {
|
|
|
4291
4290
|
var H, ee, ue, ge;
|
|
4292
4291
|
let x = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
|
|
4293
4292
|
return t.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((ee = t.config) == null ? void 0 : ee.consumerGroupId) || "") : t.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (ue = t.config) != null && ue.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((ge = t.config) == null ? void 0 : ge.consumerGroupId) || "")), x;
|
|
4294
|
-
}), A = O(""),
|
|
4293
|
+
}), A = O(""), k = $(() => {
|
|
4295
4294
|
const x = t.config.app === "konnect" || t.config.isExactMatch;
|
|
4296
4295
|
return x ? {
|
|
4297
4296
|
isExactMatch: x,
|
|
@@ -4304,9 +4303,9 @@ const xt = (e, n) => {
|
|
|
4304
4303
|
},
|
|
4305
4304
|
schema: t.config.filterSchema
|
|
4306
4305
|
};
|
|
4307
|
-
}), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState:
|
|
4306
|
+
}), p = $(() => l.value ? "consumers" : void 0), { fetcher: S, fetcherState: I } = dl(t.config, f.value, p.value), q = () => {
|
|
4308
4307
|
A.value = "";
|
|
4309
|
-
},
|
|
4308
|
+
}, v = () => {
|
|
4310
4309
|
s.value++;
|
|
4311
4310
|
}, w = (x) => x ?? "-", N = O(null), U = (x, H) => {
|
|
4312
4311
|
const ee = x.id;
|
|
@@ -4336,7 +4335,7 @@ const xt = (e, n) => {
|
|
|
4336
4335
|
entity: x,
|
|
4337
4336
|
message: r("consumers.copy.success_brief")
|
|
4338
4337
|
});
|
|
4339
|
-
},
|
|
4338
|
+
}, C = async (x) => {
|
|
4340
4339
|
var ee;
|
|
4341
4340
|
await ((ee = t.canRetrieve) == null ? void 0 : ee.call(t, x)) && o.push(t.config.getViewRoute(x.id));
|
|
4342
4341
|
}, V = (x) => ({
|
|
@@ -4365,13 +4364,13 @@ const xt = (e, n) => {
|
|
|
4365
4364
|
Xe.value = !0;
|
|
4366
4365
|
}, $t = () => {
|
|
4367
4366
|
Xe.value = !1;
|
|
4368
|
-
},
|
|
4367
|
+
}, Mt = (x, H) => {
|
|
4369
4368
|
H || $t(), s.value++, n("add:success", x);
|
|
4370
4369
|
}, sa = () => {
|
|
4371
4370
|
l.value && Tt();
|
|
4372
4371
|
}, ve = O(void 0), et = O(!1), la = O(""), ua = (x) => {
|
|
4373
4372
|
ve.value = x, et.value = !0;
|
|
4374
|
-
},
|
|
4373
|
+
}, jt = () => {
|
|
4375
4374
|
et.value = !1, ve.value = void 0;
|
|
4376
4375
|
}, ca = $(() => {
|
|
4377
4376
|
var H, ee, ue, ge;
|
|
@@ -4382,7 +4381,7 @@ const xt = (e, n) => {
|
|
|
4382
4381
|
Ot.value = !0;
|
|
4383
4382
|
try {
|
|
4384
4383
|
const x = ca.value.replace(/{consumerId}/gi, ve.value.id);
|
|
4385
|
-
await i.delete(x), n("remove:success", ve.value),
|
|
4384
|
+
await i.delete(x), n("remove:success", ve.value), jt(), s.value++;
|
|
4386
4385
|
} catch (x) {
|
|
4387
4386
|
la.value = x.message || r("consumers.errors.delete"), n("error", x);
|
|
4388
4387
|
} finally {
|
|
@@ -4390,9 +4389,9 @@ const xt = (e, n) => {
|
|
|
4390
4389
|
}
|
|
4391
4390
|
}
|
|
4392
4391
|
}, Et = O(!0);
|
|
4393
|
-
he(
|
|
4392
|
+
he(I, (x) => {
|
|
4394
4393
|
var H, ee, ue, ge;
|
|
4395
|
-
if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Et.value = x.response.data.length > 0), x.status ===
|
|
4394
|
+
if (Array.isArray((H = x == null ? void 0 : x.response) == null ? void 0 : H.data) && (Et.value = x.response.data.length > 0), x.status === Ie.Error) {
|
|
4396
4395
|
N.value = {
|
|
4397
4396
|
title: r("consumers.errors.general")
|
|
4398
4397
|
}, (ge = (ue = (ee = x.error) == null ? void 0 : ee.response) == null ? void 0 : ue.data) != null && ge.message && (N.value.message = x.error.response.data.message), n("error", x.error);
|
|
@@ -4409,9 +4408,9 @@ const xt = (e, n) => {
|
|
|
4409
4408
|
return mt(async () => {
|
|
4410
4409
|
await t.canCreate() && (tt.value.title = l.value ? r("consumers.list.empty_state.title_for_consumer_group") : r("consumers.list.empty_state.title"), tt.value.ctaText = l.value ? r("consumers.actions.add_consumer") : r("consumers.actions.create"));
|
|
4411
4410
|
}), (x, H) => {
|
|
4412
|
-
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"),
|
|
4413
|
-
return m(), T("div",
|
|
4414
|
-
|
|
4411
|
+
const ee = P("KButton"), ue = P("KBadge"), ge = P("KTruncate"), Fe = P("KDropdownItem"), Ft = P("KClipboardProvider"), pa = P("KPrompt");
|
|
4412
|
+
return m(), T("div", Cl, [
|
|
4413
|
+
K(g(Bs), {
|
|
4415
4414
|
"cache-identifier": e.cacheIdentifier,
|
|
4416
4415
|
"disable-pagination": l.value,
|
|
4417
4416
|
"disable-pagination-page-jump": "",
|
|
@@ -4428,28 +4427,28 @@ const xt = (e, n) => {
|
|
|
4428
4427
|
"table-headers": g(c),
|
|
4429
4428
|
"use-action-outside": e.useActionOutside,
|
|
4430
4429
|
onClearSearchInput: q,
|
|
4431
|
-
"onClick:row": H[3] || (H[3] = (J) =>
|
|
4430
|
+
"onClick:row": H[3] || (H[3] = (J) => C(J)),
|
|
4432
4431
|
onEmptyStateCtaClicked: sa,
|
|
4433
|
-
onSort:
|
|
4432
|
+
onSort: v
|
|
4434
4433
|
}, {
|
|
4435
4434
|
"toolbar-filter": y(() => [
|
|
4436
4435
|
l.value ? G("", !0) : (m(), R(g(tl), {
|
|
4437
4436
|
key: 0,
|
|
4438
4437
|
modelValue: A.value,
|
|
4439
4438
|
"onUpdate:modelValue": H[0] || (H[0] = (J) => A.value = J),
|
|
4440
|
-
config:
|
|
4439
|
+
config: k.value
|
|
4441
4440
|
}, null, 8, ["modelValue", "config"]))
|
|
4442
4441
|
]),
|
|
4443
4442
|
"toolbar-button": y(() => [
|
|
4444
|
-
(m(), R(
|
|
4443
|
+
(m(), R(ka, {
|
|
4445
4444
|
disabled: !e.useActionOutside,
|
|
4446
4445
|
to: "#kong-ui-app-page-header-action-button"
|
|
4447
4446
|
}, [
|
|
4448
|
-
|
|
4447
|
+
K(g(Ue), {
|
|
4449
4448
|
"auth-function": () => e.canCreate()
|
|
4450
4449
|
}, {
|
|
4451
4450
|
default: y(() => [
|
|
4452
|
-
Be(
|
|
4451
|
+
Be(K(ee, {
|
|
4453
4452
|
appearance: "primary",
|
|
4454
4453
|
"data-testid": "toolbar-add-consumer",
|
|
4455
4454
|
icon: "plus",
|
|
@@ -4457,7 +4456,7 @@ const xt = (e, n) => {
|
|
|
4457
4456
|
onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
|
|
4458
4457
|
}, {
|
|
4459
4458
|
default: y(() => [
|
|
4460
|
-
W(
|
|
4459
|
+
W(M(e.config.consumerGroupId ? g(r)("consumers.actions.add_consumer") : g(r)("consumers.list.toolbar_actions.new_consumer")), 1)
|
|
4461
4460
|
]),
|
|
4462
4461
|
_: 1
|
|
4463
4462
|
}, 8, ["to"]), [
|
|
@@ -4469,10 +4468,10 @@ const xt = (e, n) => {
|
|
|
4469
4468
|
], 8, ["disabled"]))
|
|
4470
4469
|
]),
|
|
4471
4470
|
username: y(({ rowValue: J }) => [
|
|
4472
|
-
|
|
4471
|
+
F("b", null, M(w(J)), 1)
|
|
4473
4472
|
]),
|
|
4474
4473
|
custom_id: y(({ rowValue: J }) => [
|
|
4475
|
-
W(
|
|
4474
|
+
W(M(w(J)), 1)
|
|
4476
4475
|
]),
|
|
4477
4476
|
tags: y(({ rowValue: J }) => [
|
|
4478
4477
|
J && J.length > 0 ? (m(), R(ge, { key: 0 }, {
|
|
@@ -4483,7 +4482,7 @@ const xt = (e, n) => {
|
|
|
4483
4482
|
}, ["stop"]))
|
|
4484
4483
|
}, {
|
|
4485
4484
|
default: y(() => [
|
|
4486
|
-
W(
|
|
4485
|
+
W(M(xe), 1)
|
|
4487
4486
|
]),
|
|
4488
4487
|
_: 2
|
|
4489
4488
|
}, 1024))), 128))
|
|
@@ -4492,39 +4491,39 @@ const xt = (e, n) => {
|
|
|
4492
4491
|
}, 1024)) : (m(), T("span", wl, "-"))
|
|
4493
4492
|
]),
|
|
4494
4493
|
actions: y(({ row: J }) => [
|
|
4495
|
-
|
|
4494
|
+
K(Ft, null, {
|
|
4496
4495
|
default: y(({ copyToClipboard: xe }) => [
|
|
4497
|
-
|
|
4496
|
+
K(Fe, {
|
|
4498
4497
|
"data-testid": "action-entity-copy-id",
|
|
4499
4498
|
onClick: (fa) => U(J, xe)
|
|
4500
4499
|
}, {
|
|
4501
4500
|
default: y(() => [
|
|
4502
|
-
W(
|
|
4501
|
+
W(M(g(r)("consumers.actions.copy_id")), 1)
|
|
4503
4502
|
]),
|
|
4504
4503
|
_: 2
|
|
4505
4504
|
}, 1032, ["onClick"])
|
|
4506
4505
|
]),
|
|
4507
4506
|
_: 2
|
|
4508
4507
|
}, 1024),
|
|
4509
|
-
|
|
4508
|
+
K(Ft, null, {
|
|
4510
4509
|
default: y(({ copyToClipboard: xe }) => [
|
|
4511
|
-
|
|
4510
|
+
K(Fe, {
|
|
4512
4511
|
"data-testid": "action-entity-copy-json",
|
|
4513
4512
|
onClick: (fa) => b(J, xe)
|
|
4514
4513
|
}, {
|
|
4515
4514
|
default: y(() => [
|
|
4516
|
-
W(
|
|
4515
|
+
W(M(g(r)("consumers.actions.copy_json")), 1)
|
|
4517
4516
|
]),
|
|
4518
4517
|
_: 2
|
|
4519
4518
|
}, 1032, ["onClick"])
|
|
4520
4519
|
]),
|
|
4521
4520
|
_: 2
|
|
4522
4521
|
}, 1024),
|
|
4523
|
-
|
|
4522
|
+
K(g(Ue), {
|
|
4524
4523
|
"auth-function": () => e.canRetrieve(J)
|
|
4525
4524
|
}, {
|
|
4526
4525
|
default: y(() => [
|
|
4527
|
-
|
|
4526
|
+
K(Fe, {
|
|
4528
4527
|
"data-testid": "action-entity-view",
|
|
4529
4528
|
"has-divider": "",
|
|
4530
4529
|
item: V(J.id)
|
|
@@ -4532,29 +4531,29 @@ const xt = (e, n) => {
|
|
|
4532
4531
|
]),
|
|
4533
4532
|
_: 2
|
|
4534
4533
|
}, 1032, ["auth-function"]),
|
|
4535
|
-
|
|
4534
|
+
K(g(Ue), {
|
|
4536
4535
|
"auth-function": () => e.canEdit(J)
|
|
4537
4536
|
}, {
|
|
4538
4537
|
default: y(() => [
|
|
4539
|
-
|
|
4538
|
+
K(Fe, {
|
|
4540
4539
|
"data-testid": "action-entity-edit",
|
|
4541
4540
|
item: B(J.id)
|
|
4542
4541
|
}, null, 8, ["item"])
|
|
4543
4542
|
]),
|
|
4544
4543
|
_: 2
|
|
4545
4544
|
}, 1032, ["auth-function"]),
|
|
4546
|
-
|
|
4545
|
+
K(g(Ue), {
|
|
4547
4546
|
"auth-function": () => e.canDelete(J)
|
|
4548
4547
|
}, {
|
|
4549
4548
|
default: y(() => [
|
|
4550
|
-
|
|
4549
|
+
K(Fe, {
|
|
4551
4550
|
danger: "",
|
|
4552
4551
|
"data-testid": "action-entity-delete",
|
|
4553
4552
|
"has-divider": "",
|
|
4554
4553
|
onClick: () => e.config.consumerGroupId ? ua(J) : z(J)
|
|
4555
4554
|
}, {
|
|
4556
4555
|
default: y(() => [
|
|
4557
|
-
W(
|
|
4556
|
+
W(M(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
|
|
4558
4557
|
]),
|
|
4559
4558
|
_: 2
|
|
4560
4559
|
}, 1032, ["onClick"])
|
|
@@ -4564,7 +4563,7 @@ const xt = (e, n) => {
|
|
|
4564
4563
|
]),
|
|
4565
4564
|
_: 1
|
|
4566
4565
|
}, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
4567
|
-
|
|
4566
|
+
K(g(Vs), {
|
|
4568
4567
|
"action-pending": L.value,
|
|
4569
4568
|
"data-testid": "delete-consumer-modal",
|
|
4570
4569
|
description: g(r)("consumers.delete.description"),
|
|
@@ -4576,13 +4575,13 @@ const xt = (e, n) => {
|
|
|
4576
4575
|
onCancel: Q,
|
|
4577
4576
|
onProceed: le
|
|
4578
4577
|
}, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
|
|
4579
|
-
e.config.consumerGroupId ? (m(), R(
|
|
4578
|
+
e.config.consumerGroupId ? (m(), R(kl, {
|
|
4580
4579
|
key: 0,
|
|
4581
4580
|
config: e.config,
|
|
4582
4581
|
"data-testid": "add-consumer-modal",
|
|
4583
4582
|
visible: Xe.value,
|
|
4584
|
-
"onAdd:partialSuccess": H[4] || (H[4] = (J) =>
|
|
4585
|
-
"onAdd:success": H[5] || (H[5] = (J) =>
|
|
4583
|
+
"onAdd:partialSuccess": H[4] || (H[4] = (J) => Mt(J, !0)),
|
|
4584
|
+
"onAdd:success": H[5] || (H[5] = (J) => Mt(J)),
|
|
4586
4585
|
onCancel: $t
|
|
4587
4586
|
}, null, 8, ["config", "visible"])) : G("", !0),
|
|
4588
4587
|
e.config.consumerGroupId && ve.value ? (m(), R(pa, {
|
|
@@ -4591,37 +4590,36 @@ const xt = (e, n) => {
|
|
|
4591
4590
|
"is-visible": et.value,
|
|
4592
4591
|
title: g(r)("consumers.consumer_groups.remove.title"),
|
|
4593
4592
|
type: "danger",
|
|
4594
|
-
onCanceled:
|
|
4593
|
+
onCanceled: jt,
|
|
4595
4594
|
onProceed: da
|
|
4596
4595
|
}, {
|
|
4597
4596
|
"body-content": y(() => [
|
|
4598
|
-
|
|
4597
|
+
K(g(a), {
|
|
4599
4598
|
class: "message",
|
|
4600
4599
|
keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
|
|
4601
4600
|
tag: "p"
|
|
4602
|
-
},
|
|
4601
|
+
}, ke({
|
|
4603
4602
|
consumer: y(() => [
|
|
4604
|
-
|
|
4603
|
+
F("strong", null, M(ve.value.username || ve.value.custom_id || ve.value.id), 1)
|
|
4605
4604
|
]),
|
|
4606
4605
|
_: 2
|
|
4607
4606
|
}, [
|
|
4608
4607
|
e.config.consumerGroupName ? {
|
|
4609
4608
|
name: "consumerGroup",
|
|
4610
4609
|
fn: y(() => [
|
|
4611
|
-
|
|
4610
|
+
F("strong", null, M(e.config.consumerGroupName), 1)
|
|
4612
4611
|
]),
|
|
4613
4612
|
key: "0"
|
|
4614
4613
|
} : void 0
|
|
4615
4614
|
]), 1032, ["keypath"]),
|
|
4616
|
-
|
|
4615
|
+
F("p", null, M(g(r)("consumers.consumer_groups.remove.description")), 1)
|
|
4617
4616
|
]),
|
|
4618
4617
|
_: 1
|
|
4619
4618
|
}, 8, ["is-visible", "title"])) : G("", !0)
|
|
4620
4619
|
]);
|
|
4621
4620
|
};
|
|
4622
4621
|
}
|
|
4623
|
-
})
|
|
4624
|
-
const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { class: "kong-ui-entities-consumer-form" }, Al = { class: "fields-group-title" }, Sl = { class: "fields-group-text" }, xl = /* @__PURE__ */ te({
|
|
4622
|
+
}), Pl = /* @__PURE__ */ xt(Il, [["__scopeId", "data-v-245027d1"]]), _l = { class: "kong-ui-entities-consumer-form" }, Al = { class: "fields-group-title" }, Sl = { class: "fields-group-text" }, xl = /* @__PURE__ */ te({
|
|
4625
4623
|
__name: "ConsumerForm",
|
|
4626
4624
|
props: {
|
|
4627
4625
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4639,9 +4637,9 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4639
4637
|
},
|
|
4640
4638
|
emits: ["update", "error", "loading"],
|
|
4641
4639
|
setup(e, { emit: n }) {
|
|
4642
|
-
var
|
|
4640
|
+
var v;
|
|
4643
4641
|
const t = e, { i18nT: a, i18n: { t: r } } = Ze.useI18n(), o = gt(), { axiosInstance: i } = St({
|
|
4644
|
-
headers: (
|
|
4642
|
+
headers: (v = t.config) == null ? void 0 : v.requestHeaders
|
|
4645
4643
|
}), { getMessageFromError: s } = cl(), l = Nt({
|
|
4646
4644
|
fields: {
|
|
4647
4645
|
username: "",
|
|
@@ -4665,15 +4663,15 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4665
4663
|
}, f = (w) => {
|
|
4666
4664
|
n("error", w);
|
|
4667
4665
|
}, A = (w) => {
|
|
4668
|
-
var U, b,
|
|
4666
|
+
var U, b, C;
|
|
4669
4667
|
l.fields.username = ((U = w == null ? void 0 : w.item) == null ? void 0 : U.username) || (w == null ? void 0 : w.username) || "", l.fields.customId = ((b = w == null ? void 0 : w.item) == null ? void 0 : b.custom_id) || (w == null ? void 0 : w.custom_id) || "";
|
|
4670
|
-
const N = ((
|
|
4668
|
+
const N = ((C = w == null ? void 0 : w.item) == null ? void 0 : C.tags) || (w == null ? void 0 : w.tags) || [];
|
|
4671
4669
|
l.fields.tags = (N == null ? void 0 : N.join(", ")) || "", Object.assign(u, l.fields);
|
|
4672
|
-
},
|
|
4673
|
-
var U, b,
|
|
4670
|
+
}, k = $(() => t.consumerId ? lt.Edit : lt.Create), p = (w) => {
|
|
4671
|
+
var U, b, C, V, B, _;
|
|
4674
4672
|
let N = `${(U = t.config) == null ? void 0 : U.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][w]}`;
|
|
4675
|
-
return ((
|
|
4676
|
-
}, S = $(() => !!l.fields.username || !!l.fields.customId),
|
|
4673
|
+
return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((V = t.config) == null ? void 0 : V.controlPlaneId) || "") : ((B = t.config) == null ? void 0 : B.app) === "kongManager" && (N = N.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), N = N.replace(/{id}/gi, t.consumerId), N;
|
|
4674
|
+
}, S = $(() => !!l.fields.username || !!l.fields.customId), I = $(() => JSON.stringify(l.fields) !== JSON.stringify(u)), q = async () => {
|
|
4677
4675
|
var w, N, U;
|
|
4678
4676
|
try {
|
|
4679
4677
|
l.readonly = !0;
|
|
@@ -4682,8 +4680,8 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4682
4680
|
custom_id: l.fields.customId || null,
|
|
4683
4681
|
tags: (N = (w = l.fields.tags.split(",")) == null ? void 0 : w.map((V) => String(V || "").trim())) == null ? void 0 : N.filter((V) => V !== "")
|
|
4684
4682
|
};
|
|
4685
|
-
let
|
|
4686
|
-
await i.post(p("validate"), b),
|
|
4683
|
+
let C;
|
|
4684
|
+
await i.post(p("validate"), b), k.value === "create" ? C = await i.post(p("create"), b) : k.value === "edit" && (C = ((U = t.config) == null ? void 0 : U.app) === "konnect" ? await i.put(p("edit"), b) : await i.patch(p("edit"), b)), A(C == null ? void 0 : C.data), n("update", C == null ? void 0 : C.data);
|
|
4687
4685
|
} catch (b) {
|
|
4688
4686
|
l.errorMessage = s(b), n("error", b);
|
|
4689
4687
|
} finally {
|
|
@@ -4692,37 +4690,37 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4692
4690
|
};
|
|
4693
4691
|
return (w, N) => {
|
|
4694
4692
|
const U = P("KInput"), b = P("KCard");
|
|
4695
|
-
return m(), T("div",
|
|
4696
|
-
|
|
4697
|
-
"can-submit": S.value &&
|
|
4693
|
+
return m(), T("div", _l, [
|
|
4694
|
+
K(g($s), {
|
|
4695
|
+
"can-submit": S.value && I.value,
|
|
4698
4696
|
config: e.config,
|
|
4699
4697
|
"edit-id": e.consumerId,
|
|
4700
4698
|
"error-message": l.errorMessage,
|
|
4701
4699
|
"fetch-url": d.value,
|
|
4702
4700
|
"is-readonly": l.readonly,
|
|
4703
4701
|
onCancel: c,
|
|
4704
|
-
"onFetch:error": N[3] || (N[3] = (
|
|
4702
|
+
"onFetch:error": N[3] || (N[3] = (C) => f(C)),
|
|
4705
4703
|
"onFetch:success": A,
|
|
4706
|
-
onLoading: N[4] || (N[4] = (
|
|
4704
|
+
onLoading: N[4] || (N[4] = (C) => h(C)),
|
|
4707
4705
|
onSubmit: q
|
|
4708
4706
|
}, {
|
|
4709
4707
|
default: y(() => [
|
|
4710
|
-
|
|
4711
|
-
|
|
4708
|
+
F("div", null, [
|
|
4709
|
+
K(g(ll), {
|
|
4712
4710
|
description: g(r)("consumers.form.info.description"),
|
|
4713
4711
|
"has-divider": "",
|
|
4714
4712
|
title: g(r)("consumers.form.info.title")
|
|
4715
4713
|
}, {
|
|
4716
4714
|
default: y(() => [
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4715
|
+
F("div", null, [
|
|
4716
|
+
F("h5", Al, M(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
|
|
4717
|
+
F("p", Sl, M(g(r)("consumers.form.consumer_identification.description")), 1)
|
|
4720
4718
|
]),
|
|
4721
|
-
|
|
4719
|
+
K(b, null, {
|
|
4722
4720
|
default: y(() => [
|
|
4723
|
-
|
|
4721
|
+
K(U, {
|
|
4724
4722
|
modelValue: l.fields.username,
|
|
4725
|
-
"onUpdate:modelValue": N[0] || (N[0] = (
|
|
4723
|
+
"onUpdate:modelValue": N[0] || (N[0] = (C) => l.fields.username = C),
|
|
4726
4724
|
modelModifiers: { trim: !0 },
|
|
4727
4725
|
autocomplete: "off",
|
|
4728
4726
|
class: "username-field",
|
|
@@ -4736,21 +4734,21 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4736
4734
|
type: "text"
|
|
4737
4735
|
}, {
|
|
4738
4736
|
"label-tooltip": y(() => [
|
|
4739
|
-
|
|
4737
|
+
K(g(a), {
|
|
4740
4738
|
keypath: "consumers.fields.username.tooltip",
|
|
4741
4739
|
scope: "global"
|
|
4742
4740
|
}, {
|
|
4743
4741
|
custom_id: y(() => [
|
|
4744
|
-
|
|
4742
|
+
F("code", null, M(g(r)("consumers.fields.username.custom_id")), 1)
|
|
4745
4743
|
]),
|
|
4746
4744
|
_: 1
|
|
4747
4745
|
})
|
|
4748
4746
|
]),
|
|
4749
4747
|
_: 1
|
|
4750
4748
|
}, 8, ["modelValue", "label", "placeholder", "readonly"]),
|
|
4751
|
-
|
|
4749
|
+
K(U, {
|
|
4752
4750
|
modelValue: l.fields.customId,
|
|
4753
|
-
"onUpdate:modelValue": N[1] || (N[1] = (
|
|
4751
|
+
"onUpdate:modelValue": N[1] || (N[1] = (C) => l.fields.customId = C),
|
|
4754
4752
|
modelModifiers: { trim: !0 },
|
|
4755
4753
|
autocomplete: "off",
|
|
4756
4754
|
"data-testid": "consumer-form-custom-id",
|
|
@@ -4763,12 +4761,12 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4763
4761
|
type: "text"
|
|
4764
4762
|
}, {
|
|
4765
4763
|
"label-tooltip": y(() => [
|
|
4766
|
-
|
|
4764
|
+
K(g(a), {
|
|
4767
4765
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
4768
4766
|
scope: "global"
|
|
4769
4767
|
}, {
|
|
4770
4768
|
username: y(() => [
|
|
4771
|
-
|
|
4769
|
+
F("code", null, M(g(r)("consumers.fields.custom_id.username")), 1)
|
|
4772
4770
|
]),
|
|
4773
4771
|
_: 1
|
|
4774
4772
|
})
|
|
@@ -4778,9 +4776,9 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4778
4776
|
]),
|
|
4779
4777
|
_: 1
|
|
4780
4778
|
}),
|
|
4781
|
-
|
|
4779
|
+
K(U, {
|
|
4782
4780
|
modelValue: l.fields.tags,
|
|
4783
|
-
"onUpdate:modelValue": N[2] || (N[2] = (
|
|
4781
|
+
"onUpdate:modelValue": N[2] || (N[2] = (C) => l.fields.tags = C),
|
|
4784
4782
|
modelModifiers: { trim: !0 },
|
|
4785
4783
|
autocomplete: "off",
|
|
4786
4784
|
"data-testid": "consumer-form-tags",
|
|
@@ -4804,8 +4802,7 @@ const Pl = /* @__PURE__ */ xt(_l, [["__scopeId", "data-v-245027d1"]]), Il = { cl
|
|
|
4804
4802
|
]);
|
|
4805
4803
|
};
|
|
4806
4804
|
}
|
|
4807
|
-
})
|
|
4808
|
-
const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { class: "kong-ui-consumer-entity-config-card" }, Rl = /* @__PURE__ */ te({
|
|
4805
|
+
}), Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { class: "kong-ui-consumer-entity-config-card" }, Rl = /* @__PURE__ */ te({
|
|
4809
4806
|
__name: "ConsumerConfigCard",
|
|
4810
4807
|
props: {
|
|
4811
4808
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -4858,7 +4855,7 @@ const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { cl
|
|
|
4858
4855
|
}
|
|
4859
4856
|
});
|
|
4860
4857
|
return (i, s) => (m(), T("div", Tl, [
|
|
4861
|
-
|
|
4858
|
+
K(g(As), {
|
|
4862
4859
|
config: e.config,
|
|
4863
4860
|
"config-card-doc": e.configCardDoc,
|
|
4864
4861
|
"config-schema": o.value,
|
|
@@ -4870,23 +4867,23 @@ const Vl = /* @__PURE__ */ xt(xl, [["__scopeId", "data-v-99612940"]]), Tl = { cl
|
|
|
4870
4867
|
onLoading: s[3] || (s[3] = (l) => i.$emit("loading", l))
|
|
4871
4868
|
}, {
|
|
4872
4869
|
"username-label-tooltip": y(() => [
|
|
4873
|
-
|
|
4870
|
+
K(g(a), {
|
|
4874
4871
|
keypath: "consumers.fields.username.tooltip",
|
|
4875
4872
|
scope: "global"
|
|
4876
4873
|
}, {
|
|
4877
4874
|
custom_id: y(() => [
|
|
4878
|
-
|
|
4875
|
+
F("code", null, M(g(t)("consumers.fields.username.custom_id")), 1)
|
|
4879
4876
|
]),
|
|
4880
4877
|
_: 1
|
|
4881
4878
|
})
|
|
4882
4879
|
]),
|
|
4883
4880
|
"custom_id-label-tooltip": y(() => [
|
|
4884
|
-
|
|
4881
|
+
K(g(a), {
|
|
4885
4882
|
keypath: "consumers.fields.custom_id.tooltip",
|
|
4886
4883
|
scope: "global"
|
|
4887
4884
|
}, {
|
|
4888
4885
|
username: y(() => [
|
|
4889
|
-
|
|
4886
|
+
F("code", null, M(g(t)("consumers.fields.custom_id.username")), 1)
|
|
4890
4887
|
]),
|
|
4891
4888
|
_: 1
|
|
4892
4889
|
})
|