@kong-ui-public/entities-consumer-groups 1.3.5 → 1.3.6-pr.928.9867d331.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as ae, ref as O, computed as M, watch as Se, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
1
+ import { defineComponent as ae, ref as O, computed as M, watch as xe, renderSlot as Y, createCommentVNode as G, unref as y, useSlots as ut, onBeforeMount as Qe, resolveComponent as q, openBlock as g, createBlock as V, createSlots as Te, withCtx as h, createElementVNode as R, createTextVNode as Z, toDisplayString as K, createVNode as F, createElementBlock as j, renderList as ye, Fragment as ve, normalizeClass as Fe, withModifiers as rt, withDirectives as et, vShow as tt, useCssVars as ur, resolveDynamicComponent as He, normalizeProps as cr, guardReactiveProps as dr, mergeProps as ht, onMounted as pr, onUnmounted as fr, normalizeStyle as mr, inject as gr, pushScopeId as yr, popScopeId as hr, reactive as Pt } from "vue";
2
2
  import { useRouter as wt } from "vue-router";
3
3
  import { createI18n as It, i18nTComponent as cn } from "@kong-ui-public/i18n";
4
4
  import vr from "axios";
@@ -108,7 +108,7 @@ function wr() {
108
108
  }
109
109
  const ct = {
110
110
  useI18n: wr
111
- }, Ie = "/api/runtime_groups/{controlPlaneId}", xe = "/{workspace}", $e = {
111
+ }, Ie = "/api/runtime_groups/{controlPlaneId}", Ae = "/{workspace}", $e = {
112
112
  list: {
113
113
  konnect: {
114
114
  all: `${Ie}/consumer_groups`,
@@ -116,9 +116,9 @@ const ct = {
116
116
  oneForConsumer: `${Ie}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
117
117
  },
118
118
  kongManager: {
119
- all: `${xe}/consumer_groups?counter=true`,
120
- forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
121
- oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
119
+ all: `${Ae}/consumer_groups?counter=true`,
120
+ forConsumer: `${Ae}/consumers/{consumerId}/consumer_groups`,
121
+ oneForConsumer: `${Ae}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
122
122
  }
123
123
  },
124
124
  form: {
@@ -131,17 +131,17 @@ const ct = {
131
131
  getConsumers: `${Ie}/consumer_groups/{id}/consumers`
132
132
  },
133
133
  kongManager: {
134
- consumersList: `${xe}/consumers`,
135
- create: `${xe}/consumer_groups`,
136
- edit: `${xe}/consumer_groups/{id}`,
137
- addConsumer: `${xe}/consumer_groups/{id}/consumers`,
138
- removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
139
- getConsumers: `${xe}/consumer_groups/{id}/consumers`
134
+ consumersList: `${Ae}/consumers`,
135
+ create: `${Ae}/consumer_groups`,
136
+ edit: `${Ae}/consumer_groups/{id}`,
137
+ addConsumer: `${Ae}/consumer_groups/{id}/consumers`,
138
+ removeConsumer: `${Ae}/consumer_groups/{id}/consumers/{consumerId}`,
139
+ getConsumers: `${Ae}/consumer_groups/{id}/consumers`
140
140
  }
141
141
  }
142
142
  };
143
143
  var dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(dn || {}), nt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(nt || {}), Oe = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Oe || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), be = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(be || {});
144
- function xt(e = {}) {
144
+ function At(e = {}) {
145
145
  return {
146
146
  axiosInstance: vr.create({
147
147
  withCredentials: !0,
@@ -162,12 +162,12 @@ function Ir() {
162
162
  }
163
163
  };
164
164
  }
165
- const ft = "khcp-user-table-preferences", xr = {
165
+ const ft = "khcp-user-table-preferences", Ar = {
166
166
  pageSize: 30,
167
167
  sortColumnKey: void 0,
168
168
  sortColumnOrder: void 0
169
169
  };
170
- function Ar() {
170
+ function Sr() {
171
171
  const e = (t) => {
172
172
  if (typeof t == "string")
173
173
  try {
@@ -191,14 +191,14 @@ function Ar() {
191
191
  },
192
192
  getTablePreferences: (t) => {
193
193
  const r = n();
194
- return (r == null ? void 0 : r.get(t)) || void 0 || xr;
194
+ return (r == null ? void 0 : r.get(t)) || void 0 || Ar;
195
195
  },
196
196
  deleteAllTablePreferences: () => {
197
197
  localStorage.removeItem(ft);
198
198
  }
199
199
  };
200
200
  }
201
- const Sr = {
201
+ const xr = {
202
202
  actions: {
203
203
  copyId: "Copy ID",
204
204
  copied_id: 'Copied "{id}" to the clipboard',
@@ -286,7 +286,7 @@ const Sr = {
286
286
  confirmText: "Yes, disable"
287
287
  }
288
288
  }, Nr = {
289
- global: Sr,
289
+ global: xr,
290
290
  deleteModal: Tr,
291
291
  baseForm: $r,
292
292
  baseTable: Mr,
@@ -296,7 +296,7 @@ const Sr = {
296
296
  errors: Kr,
297
297
  toggleModal: Fr
298
298
  };
299
- function At() {
299
+ function St() {
300
300
  const e = It("en-us", Nr);
301
301
  return {
302
302
  i18n: e,
@@ -326,48 +326,48 @@ function Br(e, n, t, r = {
326
326
  searchKeys: ["id"]
327
327
  }) {
328
328
  t || (t = "100");
329
- const { axiosInstance: o } = xt({
329
+ const { axiosInstance: o } = At({
330
330
  headers: e.requestHeaders
331
- }), { i18n: { t: a } } = At(), { debounce: i } = Ir(), s = i(async (x) => {
332
- await k(x);
331
+ }), { i18n: { t: a } } = St(), { debounce: i } = Ir(), s = i(async (A) => {
332
+ await k(A);
333
333
  }, 200), l = O(!1), c = O(""), d = O(""), u = O([]), m = O([]), f = O(void 0), I = y(n);
334
334
  let v = `${e.apiBaseUrl}${I}`;
335
335
  e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
336
- const { isValidUuid: p } = pn(), A = async () => {
336
+ const { isValidUuid: p } = pn(), S = async () => {
337
337
  try {
338
338
  l.value = !0;
339
- const { data: x } = await o.get(`${v}?size=${t}`);
340
- x != null && x.next || (f.value = r.fetchedItemsKey in x ? x[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in x ? x[r.fetchedItemsKey] : [], u.value = m.value;
339
+ const { data: A } = await o.get(`${v}?size=${t}`);
340
+ A != null && A.next || (f.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : []), m.value = r.fetchedItemsKey in A ? A[r.fetchedItemsKey] : [], u.value = m.value;
341
341
  } catch {
342
342
  u.value = [], c.value = a("debouncedFilter.errors.fetch");
343
343
  } finally {
344
344
  l.value = !1;
345
345
  }
346
- }, b = O(""), k = async (x) => {
346
+ }, b = O(""), k = async (A) => {
347
347
  var ne, pe, z;
348
- if (b.value !== x)
349
- if (b.value = x || "", f.value === void 0)
348
+ if (b.value !== A)
349
+ if (b.value = A || "", f.value === void 0)
350
350
  try {
351
351
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
352
352
  let w = v + "";
353
- x && (w += `/${x}`);
353
+ A && (w += `/${A}`);
354
354
  const { data: N } = await o.get(`${w}?size=${t}`);
355
355
  r.fetchedItemsKey in N ? u.value = N[r.fetchedItemsKey] : N != null && N.id ? u.value = [N] : u.value = [];
356
- } else if (x) {
356
+ } else if (A) {
357
357
  const w = [];
358
- p(x) && r.searchKeys.includes("id") ? w.push((async () => {
359
- const { data: C } = await o.get(`${v}/${x}`);
358
+ p(A) && r.searchKeys.includes("id") ? w.push((async () => {
359
+ const { data: C } = await o.get(`${v}/${A}`);
360
360
  return [C[r.fetchedItemsKey] ?? C];
361
361
  })()) : w.push(
362
362
  ...r.searchKeys.filter((C) => C !== "id").map(async (C) => {
363
- const { data: S } = await o.get(`${v}?${C}=${x}`);
364
- return S[r.fetchedItemsKey];
363
+ const { data: x } = await o.get(`${v}?${C}=${A}`);
364
+ return x[r.fetchedItemsKey];
365
365
  })
366
366
  );
367
367
  const N = await Promise.all(w), B = /* @__PURE__ */ new Set();
368
368
  u.value = [], (ne = N == null ? void 0 : N.forEach) == null || ne.call(N, (C) => {
369
- var S;
370
- (S = C == null ? void 0 : C.forEach) == null || S.call(C, (T) => {
369
+ var x;
370
+ (x = C == null ? void 0 : C.forEach) == null || x.call(C, (T) => {
371
371
  B.has(T.id) || (B.add(T.id), u.value.push(T));
372
372
  });
373
373
  });
@@ -379,12 +379,12 @@ function Br(e, n, t, r = {
379
379
  l.value = !1;
380
380
  }
381
381
  else
382
- l.value = !0, d.value = "", x ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
382
+ l.value = !0, d.value = "", A ? (u.value = (z = f.value) == null ? void 0 : z.filter((w) => {
383
383
  var N;
384
384
  let B = !1;
385
385
  for (const C of r.searchKeys) {
386
- const S = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
387
- S != null && S.includes(x.toLowerCase()) && (B = !0);
386
+ const x = typeof w[C] == "string" ? (N = w[C]) == null ? void 0 : N.toLowerCase() : w[C];
387
+ x != null && x.includes(A.toLowerCase()) && (B = !0);
388
388
  }
389
389
  return B;
390
390
  }), (!u.value || !u.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : u.value = f.value, l.value = !1;
@@ -395,7 +395,7 @@ function Br(e, n, t, r = {
395
395
  validationError: d,
396
396
  results: u,
397
397
  allRecords: f,
398
- loadItems: A,
398
+ loadItems: S,
399
399
  debouncedQueryChange: s
400
400
  };
401
401
  }
@@ -406,7 +406,7 @@ function Pr(e, n) {
406
406
  return r.value.search = "", (o) => `${r.value.href}/${o}`;
407
407
  }
408
408
  function Lr() {
409
- const { i18n: { t: e } } = At();
409
+ const { i18n: { t: e } } = St();
410
410
  return {
411
411
  getMessageFromError: (n) => {
412
412
  var t, r, o;
@@ -436,8 +436,8 @@ function Lr() {
436
436
  function qr(e) {
437
437
  const n = window.location.origin, t = n.endsWith("/") ? n : `${n}/`;
438
438
  try {
439
- const r = e.join("/"), o = `${t}${r}`, a = e.some((i) => i.trim() === "");
440
- if (!/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{2,256}\.[a-z]{2,4}\b([-a-zA-Z0-9@:%_\+.~#?&//=]*)/g.test(o) && !a && new URL(o))
439
+ const r = e.join("/"), o = `${t}${r}`;
440
+ if (!e.some((a) => a.trim() === "") && new URL(o))
441
441
  return `${t}${r}`;
442
442
  throw new Error("Invalid url");
443
443
  } catch (r) {
@@ -463,7 +463,7 @@ function fn(e, n) {
463
463
  };
464
464
  }
465
465
  function Ur(e, n, t = "data") {
466
- const r = y(n), { axiosInstance: o } = xt({
466
+ const r = y(n), { axiosInstance: o } = At({
467
467
  headers: e.requestHeaders
468
468
  }), a = fn(e, r), i = O({
469
469
  status: Oe.Idle
@@ -566,7 +566,7 @@ function Jr(e) {
566
566
  }
567
567
  function Wr(e) {
568
568
  const n = O(0), t = O(0), r = O(!1);
569
- return Se(e, (o) => {
569
+ return xe(e, (o) => {
570
570
  o && !r.value && (n.value = o.offsetWidth, t.value = o.scrollWidth, r.value = !0);
571
571
  }), {
572
572
  isTruncated: M(() => n.value < t.value)
@@ -589,7 +589,7 @@ function Zr() {
589
589
  };
590
590
  }
591
591
  const ue = {
592
- useAxios: xt,
592
+ useAxios: At,
593
593
  useDebouncedFilter: Br,
594
594
  useDeleteUrlBuilder: Pr,
595
595
  useErrors: Lr,
@@ -598,7 +598,7 @@ const ue = {
598
598
  useFetchUrlBuilder: fn,
599
599
  useHelpers: pn,
600
600
  useStringHelpers: Rr,
601
- useI18n: At,
601
+ useI18n: St,
602
602
  useGatewayFeatureSupported: Jr,
603
603
  useTruncationDetector: Wr,
604
604
  useToaster: Zr
@@ -712,7 +712,7 @@ const ue = {
712
712
  "data-testid": "copy-to-clipboard",
713
713
  role: "button",
714
714
  tabindex: "0",
715
- onClick: rt((A) => u(p), ["stop"])
715
+ onClick: rt((S) => u(p), ["stop"])
716
716
  }, [
717
717
  F(I, {
718
718
  class: "uuid-icon",
@@ -771,7 +771,7 @@ const ue = {
771
771
  e.isArrayItem ? (g(), j("legend", io, [
772
772
  R("b", null, K(s.value), 1)
773
773
  ])) : G("", !0),
774
- (g(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(St, {
774
+ (g(!0), j(ve, null, ye(Object.keys(i.value), (d, u) => (g(), V(xt, {
775
775
  key: `${o.value}-property-${u}`,
776
776
  item: {
777
777
  key: d,
@@ -837,11 +837,11 @@ const ue = {
837
837
  }, 8, ["appearance"]);
838
838
  };
839
839
  }
840
- }), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], xo = ["data-testid"], Ao = ["data-testid"], So = {
840
+ }), po = "#0044f4", fo = "#e0e4ea", mo = "#3a3f51", go = "1px", yo = "20px", ho = { class: "config-card-details-row" }, vo = ["data-testid"], bo = ["data-testid"], ko = ["data-testid"], Co = ["data-testid"], _o = { key: 1 }, wo = ["data-testid"], Io = ["data-testid"], Ao = ["data-testid"], So = ["data-testid"], xo = {
841
841
  name: "ConfigCardItem",
842
842
  components: { CopyUuid: yn, JsonCardItem: hn, StatusBadge: co, InternalLinkItem: uo }
843
843
  }, To = /* @__PURE__ */ ae({
844
- ...So,
844
+ ...xo,
845
845
  props: {
846
846
  item: {
847
847
  type: Object,
@@ -995,7 +995,7 @@ const ue = {
995
995
  }
996
996
  }), u = O(), { isTruncated: m } = ue.useTruncationDetector(u);
997
997
  return (f, I) => {
998
- const v = q("KLabel"), p = q("KBadge"), A = q("KMethodBadge"), b = q("KTooltip");
998
+ const v = q("KLabel"), p = q("KBadge"), S = q("KMethodBadge"), b = q("KTooltip");
999
999
  return g(), j("div", ho, [
1000
1000
  R("div", {
1001
1001
  class: "config-card-details-label",
@@ -1038,10 +1038,10 @@ const ue = {
1038
1038
  key: 0,
1039
1039
  "data-testid": `${e.item.key}-badge-tags`
1040
1040
  }, [
1041
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(p, {
1042
- key: `${e.item.key}-badge-tag-${x}`,
1041
+ (g(!0), j(ve, null, ye(e.item.value, (k, A) => (g(), V(p, {
1042
+ key: `${e.item.key}-badge-tag-${A}`,
1043
1043
  class: "config-badge",
1044
- "data-testid": `${e.item.key}-badge-tag-${x}`,
1044
+ "data-testid": `${e.item.key}-badge-tag-${A}`,
1045
1045
  "truncation-tooltip": k
1046
1046
  }, {
1047
1047
  default: h(() => [
@@ -1055,9 +1055,9 @@ const ue = {
1055
1055
  class: "copy-uuid-array",
1056
1056
  "data-testid": `${e.item.key}-copy-uuid-array`
1057
1057
  }, [
1058
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(y(yn), ht(d.value.childAttrs, {
1059
- key: `${e.item.key}-copy-uuid-${x}`,
1060
- "data-testid": `${e.item.key}-copy-uuid-${x}`,
1058
+ (g(!0), j(ve, null, ye(e.item.value, (k, A) => (g(), V(y(yn), ht(d.value.childAttrs, {
1059
+ key: `${e.item.key}-copy-uuid-${A}`,
1060
+ "data-testid": `${e.item.key}-copy-uuid-${A}`,
1061
1061
  uuid: k
1062
1062
  }), null, 16, ["data-testid", "uuid"]))), 128))
1063
1063
  ], 8, Io)) : d.value.additionalComponent === "KMethodBadge" ? (g(), j("div", {
@@ -1065,10 +1065,10 @@ const ue = {
1065
1065
  class: "method-badge-array",
1066
1066
  "data-testid": `${e.item.key}-badge-methods`
1067
1067
  }, [
1068
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(A, {
1069
- key: `${e.item.key}-badge-method-${x}`,
1068
+ (g(!0), j(ve, null, ye(e.item.value, (k, A) => (g(), V(S, {
1069
+ key: `${e.item.key}-badge-method-${A}`,
1070
1070
  class: "config-badge",
1071
- "data-testid": `${e.item.key}-badge-method-${x}`,
1071
+ "data-testid": `${e.item.key}-badge-method-${A}`,
1072
1072
  "is-rounded": "",
1073
1073
  label: k,
1074
1074
  method: y(kr).includes(k.toLowerCase()) ? k.toLowerCase() : "custom"
@@ -1078,18 +1078,18 @@ const ue = {
1078
1078
  ]),
1079
1079
  _: 2
1080
1080
  }, 1032, ["data-testid", "label", "method"]))), 128))
1081
- ], 8, xo)) : G("", !0),
1081
+ ], 8, Ao)) : G("", !0),
1082
1082
  d.value.additionalComponent === "JsonCardItem" ? (g(), j("div", {
1083
1083
  key: 3,
1084
1084
  "data-testid": `${t.item.key}-json-array-content`
1085
1085
  }, [
1086
- (g(!0), j(ve, null, ye(e.item.value, (k, x) => (g(), V(hn, {
1087
- key: `json-array-item-${x}`,
1088
- index: x,
1086
+ (g(!0), j(ve, null, ye(e.item.value, (k, A) => (g(), V(hn, {
1087
+ key: `json-array-item-${A}`,
1088
+ index: A,
1089
1089
  "is-array-item": "",
1090
1090
  item: k
1091
1091
  }, null, 8, ["index", "item"]))), 128))
1092
- ], 8, Ao)) : (g(), V(b, {
1092
+ ], 8, So)) : (g(), V(b, {
1093
1093
  key: 4,
1094
1094
  label: y(m) ? e.item.value : ""
1095
1095
  }, {
@@ -1114,7 +1114,7 @@ const ue = {
1114
1114
  ]);
1115
1115
  };
1116
1116
  }
1117
- }), St = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1117
+ }), xt = /* @__PURE__ */ Ce(To, [["__scopeId", "data-v-307ab96d"]]);
1118
1118
  /*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */
1119
1119
  function vn(e) {
1120
1120
  return typeof e > "u" || e === null;
@@ -1331,7 +1331,7 @@ function Jo() {
1331
1331
  function Wo(e) {
1332
1332
  return e === null;
1333
1333
  }
1334
- var xn = new de("tag:yaml.org,2002:null", {
1334
+ var An = new de("tag:yaml.org,2002:null", {
1335
1335
  kind: "scalar",
1336
1336
  resolve: Ho,
1337
1337
  construct: Jo,
@@ -1367,7 +1367,7 @@ function Zo(e) {
1367
1367
  function Qo(e) {
1368
1368
  return Object.prototype.toString.call(e) === "[object Boolean]";
1369
1369
  }
1370
- var An = new de("tag:yaml.org,2002:bool", {
1370
+ var Sn = new de("tag:yaml.org,2002:bool", {
1371
1371
  kind: "scalar",
1372
1372
  resolve: Yo,
1373
1373
  construct: Zo,
@@ -1458,7 +1458,7 @@ function ra(e) {
1458
1458
  function oa(e) {
1459
1459
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !se.isNegativeZero(e);
1460
1460
  }
1461
- var Sn = new de("tag:yaml.org,2002:int", {
1461
+ var xn = new de("tag:yaml.org,2002:int", {
1462
1462
  kind: "scalar",
1463
1463
  resolve: na,
1464
1464
  construct: ra,
@@ -1544,9 +1544,9 @@ var Tn = new de("tag:yaml.org,2002:float", {
1544
1544
  defaultStyle: "lowercase"
1545
1545
  }), $n = In.extend({
1546
1546
  implicit: [
1547
- xn,
1548
1547
  An,
1549
1548
  Sn,
1549
+ xn,
1550
1550
  Tn
1551
1551
  ]
1552
1552
  }), Mn = $n, jn = new RegExp(
@@ -1663,7 +1663,7 @@ function Ia(e) {
1663
1663
  }
1664
1664
  return !0;
1665
1665
  }
1666
- function xa(e) {
1666
+ function Aa(e) {
1667
1667
  if (e === null)
1668
1668
  return [];
1669
1669
  var n, t, r, o, a, i = e;
@@ -1674,14 +1674,14 @@ function xa(e) {
1674
1674
  var Bn = new de("tag:yaml.org,2002:pairs", {
1675
1675
  kind: "sequence",
1676
1676
  resolve: Ia,
1677
- construct: xa
1678
- }), Aa = Object.prototype.hasOwnProperty;
1679
- function Sa(e) {
1677
+ construct: Aa
1678
+ }), Sa = Object.prototype.hasOwnProperty;
1679
+ function xa(e) {
1680
1680
  if (e === null)
1681
1681
  return !0;
1682
1682
  var n, t = e;
1683
1683
  for (n in t)
1684
- if (Aa.call(t, n) && t[n] !== null)
1684
+ if (Sa.call(t, n) && t[n] !== null)
1685
1685
  return !1;
1686
1686
  return !0;
1687
1687
  }
@@ -1690,7 +1690,7 @@ function Ta(e) {
1690
1690
  }
1691
1691
  var Pn = new de("tag:yaml.org,2002:set", {
1692
1692
  kind: "mapping",
1693
- resolve: Sa,
1693
+ resolve: xa,
1694
1694
  construct: Ta
1695
1695
  }), $t = Mn.extend({
1696
1696
  implicit: [
@@ -1908,7 +1908,7 @@ function qa(e, n) {
1908
1908
  $(e, "unexpected end of the stream within a double quoted scalar");
1909
1909
  }
1910
1910
  function Ua(e, n) {
1911
- var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, A, b;
1911
+ var t = !0, r, o, a, i = e.tag, s, l = e.anchor, c, d, u, m, f, I = /* @__PURE__ */ Object.create(null), v, p, S, b;
1912
1912
  if (b = e.input.charCodeAt(e.position), b === 91)
1913
1913
  d = 93, f = !1, s = [];
1914
1914
  else if (b === 123)
@@ -1918,7 +1918,7 @@ function Ua(e, n) {
1918
1918
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), b = e.input.charCodeAt(++e.position); b !== 0; ) {
1919
1919
  if (oe(e, !0, n), b = e.input.charCodeAt(e.position), b === d)
1920
1920
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
1921
- t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = A = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), A = e.result), f ? Ue(e, s, I, p, v, A, r, o, a) : u ? s.push(Ue(e, null, I, p, v, A, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1921
+ t ? b === 44 && $(e, "expected the node content, but found ','") : $(e, "missed comma between flow collection entries"), p = v = S = null, u = m = !1, b === 63 && (c = e.input.charCodeAt(e.position + 1), he(c) && (u = m = !0, e.position++, oe(e, !0, n))), r = e.line, o = e.lineStart, a = e.position, Re(e, n, ot, !1, !0), p = e.tag, v = e.result, oe(e, !0, n), b = e.input.charCodeAt(e.position), (m || e.line === r) && b === 58 && (u = !0, b = e.input.charCodeAt(++e.position), oe(e, !0, n), Re(e, n, ot, !1, !0), S = e.result), f ? Ue(e, s, I, p, v, S, r, o, a) : u ? s.push(Ue(e, null, I, p, v, S, r, o, a)) : s.push(v), oe(e, !0, n), b = e.input.charCodeAt(e.position), b === 44 ? (t = !0, b = e.input.charCodeAt(++e.position)) : t = !1;
1922
1922
  }
1923
1923
  $(e, "unexpected end of the stream within a flow collection");
1924
1924
  }
@@ -1986,12 +1986,12 @@ function Qt(e, n) {
1986
1986
  return s ? (e.tag = r, e.anchor = o, e.kind = "sequence", e.result = a, !0) : !1;
1987
1987
  }
1988
1988
  function Va(e, n, t) {
1989
- var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, A = !1, b;
1989
+ var r, o, a, i, s, l, c = e.tag, d = e.anchor, u = {}, m = /* @__PURE__ */ Object.create(null), f = null, I = null, v = null, p = !1, S = !1, b;
1990
1990
  if (e.firstTabInLine !== -1)
1991
1991
  return !1;
1992
1992
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), b = e.input.charCodeAt(e.position); b !== 0; ) {
1993
1993
  if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, $(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), a = e.line, (b === 63 || b === 58) && he(r))
1994
- b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), A = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
1994
+ b === 63 ? (p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !0, o = !0) : p ? (p = !1, o = !0) : $(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, b = r;
1995
1995
  else {
1996
1996
  if (i = e.line, s = e.lineStart, l = e.position, !Re(e, t, Ln, !1, !0))
1997
1997
  break;
@@ -1999,12 +1999,12 @@ function Va(e, n, t) {
1999
1999
  for (b = e.input.charCodeAt(e.position); Ke(b); )
2000
2000
  b = e.input.charCodeAt(++e.position);
2001
2001
  if (b === 58)
2002
- b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), A = !0, p = !1, o = !1, f = e.tag, I = e.result;
2003
- else if (A)
2002
+ b = e.input.charCodeAt(++e.position), he(b) || $(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ue(e, u, m, f, I, null, i, s, l), f = I = v = null), S = !0, p = !1, o = !1, f = e.tag, I = e.result;
2003
+ else if (S)
2004
2004
  $(e, "can not read an implicit mapping pair; a colon is missed");
2005
2005
  else
2006
2006
  return e.tag = c, e.anchor = d, !0;
2007
- } else if (A)
2007
+ } else if (S)
2008
2008
  $(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2009
2009
  else
2010
2010
  return e.tag = c, e.anchor = d, !0;
@@ -2014,7 +2014,7 @@ function Va(e, n, t) {
2014
2014
  else if (e.lineIndent < n)
2015
2015
  break;
2016
2016
  }
2017
- return p && Ue(e, u, m, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2017
+ return p && Ue(e, u, m, f, I, null, i, s, l), S && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), S;
2018
2018
  }
2019
2019
  function Da(e) {
2020
2020
  var n, t = !1, r = !1, o, a, i;
@@ -2298,9 +2298,9 @@ function Ii(e, n, t, r, o) {
2298
2298
  case rr:
2299
2299
  return "|" + nn(n, e.indent) + rn(Xt(n, a));
2300
2300
  case or:
2301
- return ">" + nn(n, e.indent) + rn(Xt(xi(n, i), a));
2301
+ return ">" + nn(n, e.indent) + rn(Xt(Ai(n, i), a));
2302
2302
  case Le:
2303
- return '"' + Ai(n) + '"';
2303
+ return '"' + Si(n) + '"';
2304
2304
  default:
2305
2305
  throw new me("impossible error: invalid scalar style");
2306
2306
  }
@@ -2318,7 +2318,7 @@ function rn(e) {
2318
2318
  return e[e.length - 1] === `
2319
2319
  ` ? e.slice(0, -1) : e;
2320
2320
  }
2321
- function xi(e, n) {
2321
+ function Ai(e, n) {
2322
2322
  for (var t = /(\n+)([^\n]*)/g, r = function() {
2323
2323
  var c = e.indexOf(`
2324
2324
  `);
@@ -2341,27 +2341,27 @@ function on(e, n) {
2341
2341
  `, e.length - o > n && i > o ? l += e.slice(o, i) + `
2342
2342
  ` + e.slice(i + 1) : l += e.slice(o), l.slice(1);
2343
2343
  }
2344
- function Ai(e) {
2344
+ function Si(e) {
2345
2345
  for (var n = "", t = 0, r, o = 0; o < e.length; t >= 65536 ? o += 2 : o++)
2346
2346
  t = ze(e, o), r = fe[t], !r && Ze(t) ? (n += e[o], t >= 65536 && (n += e[o + 1])) : n += r || hi(t);
2347
2347
  return n;
2348
2348
  }
2349
- function Si(e, n, t) {
2349
+ function xi(e, n, t) {
2350
2350
  var r = "", o = e.tag, a, i, s;
2351
2351
  for (a = 0, i = t.length; a < i; a += 1)
2352
- s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Ae(e, n, s, !1, !1) || typeof s > "u" && Ae(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2352
+ s = t[a], e.replacer && (s = e.replacer.call(t, String(a), s)), (Se(e, n, s, !1, !1) || typeof s > "u" && Se(e, n, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2353
2353
  e.tag = o, e.dump = "[" + r + "]";
2354
2354
  }
2355
2355
  function an(e, n, t, r) {
2356
2356
  var o = "", a = e.tag, i, s, l;
2357
2357
  for (i = 0, s = t.length; i < s; i += 1)
2358
- l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Ae(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ae(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2358
+ l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (Se(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && Se(e, n + 1, null, !0, !0, !1, !0)) && ((!r || o !== "") && (o += kt(e, n)), e.dump && We === e.dump.charCodeAt(0) ? o += "-" : o += "- ", o += e.dump);
2359
2359
  e.tag = a, e.dump = o || "[]";
2360
2360
  }
2361
2361
  function Ti(e, n, t) {
2362
2362
  var r = "", o = e.tag, a = Object.keys(t), i, s, l, c, d;
2363
2363
  for (i = 0, s = a.length; i < s; i += 1)
2364
- d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Ae(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ae(e, n, c, !1, !1) && (d += e.dump, r += d));
2364
+ d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = a[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), Se(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Se(e, n, c, !1, !1) && (d += e.dump, r += d));
2365
2365
  e.tag = o, e.dump = "{" + r + "}";
2366
2366
  }
2367
2367
  function $i(e, n, t, r) {
@@ -2373,7 +2373,7 @@ function $i(e, n, t, r) {
2373
2373
  else if (e.sortKeys)
2374
2374
  throw new me("sortKeys must be a boolean or a function");
2375
2375
  for (s = 0, l = i.length; s < l; s += 1)
2376
- m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Ae(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Ae(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2376
+ m = "", (!r || o !== "") && (m += kt(e, n)), c = i[s], d = t[c], e.replacer && (d = e.replacer.call(t, c, d)), Se(e, n + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && We === e.dump.charCodeAt(0) ? m += "?" : m += "? "), m += e.dump, u && (m += kt(e, n)), Se(e, n + 1, d, !0, u) && (e.dump && We === e.dump.charCodeAt(0) ? m += ":" : m += ": ", m += e.dump, o += m));
2377
2377
  e.tag = a, e.dump = o || "{}";
2378
2378
  }
2379
2379
  function sn(e, n, t) {
@@ -2393,7 +2393,7 @@ function sn(e, n, t) {
2393
2393
  }
2394
2394
  return !1;
2395
2395
  }
2396
- function Ae(e, n, t, r, o, a, i) {
2396
+ function Se(e, n, t, r, o, a, i) {
2397
2397
  e.tag = null, e.dump = t, sn(e, t, !1) || sn(e, t, !0);
2398
2398
  var s = Jn.call(e.dump), l = r, c;
2399
2399
  r && (r = e.flowLevel < 0 || e.flowLevel > n);
@@ -2404,7 +2404,7 @@ function Ae(e, n, t, r, o, a, i) {
2404
2404
  if (d && m && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2405
2405
  r && Object.keys(e.dump).length !== 0 ? ($i(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Ti(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2406
2406
  else if (s === "[object Array]")
2407
- r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (Si(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2407
+ r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? an(e, n - 1, e.dump, o) : an(e, n, e.dump, o), m && (e.dump = "&ref_" + u + e.dump)) : (xi(e, n, e.dump), m && (e.dump = "&ref_" + u + " " + e.dump));
2408
2408
  else if (s === "[object String]")
2409
2409
  e.tag !== "?" && Ii(e, e.dump, n, a, l);
2410
2410
  else {
@@ -2441,7 +2441,7 @@ function ji(e, n) {
2441
2441
  var t = new bi(n);
2442
2442
  t.noRefs || Mi(e, t);
2443
2443
  var r = e;
2444
- return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Ae(t, 0, r, !0, !0) ? t.dump + `
2444
+ return t.replacer && (r = t.replacer.call({ "": r }, "", r)), Se(t, 0, r, !0, !0) ? t.dump + `
2445
2445
  ` : "";
2446
2446
  }
2447
2447
  var Ei = ji, Oi = {
@@ -2456,12 +2456,12 @@ var Ki = de, Fi = kn, Ni = In, Bi = $n, Pi = Mn, Li = $t, qi = Hn.load, Ui = Hn.
2456
2456
  binary: Fn,
2457
2457
  float: Tn,
2458
2458
  map: wn,
2459
- null: xn,
2459
+ null: An,
2460
2460
  pairs: Bn,
2461
2461
  set: Pn,
2462
2462
  timestamp: On,
2463
- bool: An,
2464
- int: Sn,
2463
+ bool: Sn,
2464
+ int: xn,
2465
2465
  merge: Kn,
2466
2466
  omap: Nn,
2467
2467
  seq: _n,
@@ -2521,7 +2521,7 @@ const Wi = {
2521
2521
  },
2522
2522
  setup(e) {
2523
2523
  const n = e, t = ut(), { i18n: { t: r } } = ue.useI18n(), o = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), a = O(""), i = O("");
2524
- return Se(() => n.format, (s) => {
2524
+ return xe(() => n.format, (s) => {
2525
2525
  s === "json" ? a.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = Ji.dump(n.record));
2526
2526
  }, { immediate: !0 }), (s, l) => {
2527
2527
  const c = q("KCodeBlock");
@@ -2533,7 +2533,7 @@ const Wi = {
2533
2533
  "data-testid": `config-card-details-${d}-props`
2534
2534
  }, [
2535
2535
  d !== "basic" ? (g(), j("div", Zi, K(d === "advanced" ? y(r)("baseConfigCard.sections.advanced") : y(r)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
2536
- (g(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(St, {
2536
+ (g(!0), j(ve, null, ye(e.propertyCollections[d], (u) => (g(), V(xt, {
2537
2537
  key: u.key,
2538
2538
  item: u
2539
2539
  }, Te({
@@ -2817,15 +2817,15 @@ const Wi = {
2817
2817
  // the last property displayed
2818
2818
  section: be.Basic
2819
2819
  }
2820
- }, f = O(!1), I = O(!1), v = O(""), p = O(), A = M(() => {
2820
+ }, f = O(!1), I = O(!1), v = O(""), p = O(), S = M(() => {
2821
2821
  var w, N, B;
2822
2822
  if (!p.value)
2823
2823
  return [];
2824
- const C = [], S = Object.keys(p.value).length;
2824
+ const C = [], x = Object.keys(p.value).length;
2825
2825
  for (const T in p.value) {
2826
2826
  const P = (N = (w = r.configSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = (B = m[T]) == null ? void 0 : B.order;
2827
- let Q = S;
2828
- (J || J === 0) && (Q = J === -1 ? S + 1 : J), P && (Q = P === -1 ? S + 1 : P), C.push([T, Q]);
2827
+ let Q = x;
2828
+ (J || J === 0) && (Q = J === -1 ? x + 1 : J), P && (Q = P === -1 ? x + 1 : P), C.push([T, Q]);
2829
2829
  }
2830
2830
  return C.sort(function(T, P) {
2831
2831
  return T[1] - P[1];
@@ -2846,15 +2846,15 @@ const Wi = {
2846
2846
  var w, N;
2847
2847
  if (!p.value || !r.pluginConfigKey)
2848
2848
  return [];
2849
- const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, S = [];
2849
+ const B = p.value[r.pluginConfigKey] || {}, C = Object.keys(B).length, x = [];
2850
2850
  for (const T in B) {
2851
2851
  const P = (N = (w = r.pluginConfigSchema) == null ? void 0 : w[T]) == null ? void 0 : N.order, J = B[T];
2852
2852
  let Q = J != null && J !== "" ? C - 1 : C;
2853
- P && (Q = P === -1 ? C + 1 : P), S.push([T, Q]);
2853
+ P && (Q = P === -1 ? C + 1 : P), x.push([T, Q]);
2854
2854
  }
2855
- return S.sort(function(T, P) {
2855
+ return x.sort(function(T, P) {
2856
2856
  return T[1] - P[1];
2857
- }), S.map((T) => {
2857
+ }), x.map((T) => {
2858
2858
  var P;
2859
2859
  const J = T[0], Q = B[J], X = ((P = r.pluginConfigSchema) == null ? void 0 : P[J]) || {};
2860
2860
  return {
@@ -2870,11 +2870,11 @@ const Wi = {
2870
2870
  }), k = M(() => {
2871
2871
  var w, N, B, C;
2872
2872
  return {
2873
- basic: (w = A.value) == null ? void 0 : w.filter((S) => S.section === be.Basic),
2874
- advanced: (N = A.value) == null ? void 0 : N.filter((S) => S.section === be.Advanced),
2875
- plugin: (C = b.value) == null ? void 0 : C.concat((B = A.value) == null ? void 0 : B.filter((S) => S.section === be.Plugin))
2873
+ basic: (w = S.value) == null ? void 0 : w.filter((x) => x.section === be.Basic),
2874
+ advanced: (N = S.value) == null ? void 0 : N.filter((x) => x.section === be.Advanced),
2875
+ plugin: (C = b.value) == null ? void 0 : C.concat((B = S.value) == null ? void 0 : B.filter((x) => x.section === be.Plugin))
2876
2876
  };
2877
- }), x = M(() => {
2877
+ }), A = M(() => {
2878
2878
  const w = [];
2879
2879
  return k.value.basic.length && w.push("basic"), k.value.advanced.length && w.push("advanced"), k.value.plugin.length && w.push("plugin"), w;
2880
2880
  }), ne = (w) => !!(w.tooltip || o[`${w.key}-label-tooltip`]), pe = M(() => {
@@ -2884,7 +2884,7 @@ const Wi = {
2884
2884
  }), z = (w) => {
2885
2885
  p.value && w(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2886
2886
  };
2887
- return Se(f, (w) => {
2887
+ return xe(f, (w) => {
2888
2888
  n("loading", w);
2889
2889
  }, { immediate: !0 }), Qe(async () => {
2890
2890
  I.value = !1, f.value = !0;
@@ -2907,7 +2907,7 @@ const Wi = {
2907
2907
  f.value = !1;
2908
2908
  }
2909
2909
  }), (w, N) => {
2910
- const B = q("KLabel"), C = q("KSelect"), S = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2910
+ const B = q("KLabel"), C = q("KSelect"), x = q("KButton"), T = q("KClipboardProvider"), P = q("KSkeleton"), J = q("KEmptyState"), Q = q("KCard");
2911
2911
  return g(), V(Q, { class: "kong-ui-entity-base-config-card" }, Te({
2912
2912
  actions: h(() => [
2913
2913
  R("div", cs, [
@@ -2929,7 +2929,7 @@ const Wi = {
2929
2929
  items: c,
2930
2930
  onChange: u
2931
2931
  })) : G("", !0),
2932
- r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(S, {
2932
+ r.config.jsonYamlEnabled && e.configCardDoc ? (g(), V(x, {
2933
2933
  key: 2,
2934
2934
  appearance: "btn-link",
2935
2935
  class: "book-icon",
@@ -2948,7 +2948,7 @@ const Wi = {
2948
2948
  })) : G("", !0),
2949
2949
  e.config.jsonYamlEnabled ? G("", !0) : (g(), V(T, { key: 3 }, {
2950
2950
  default: h(({ copyToClipboard: X }) => [
2951
- !f.value && !I.value ? (g(), V(S, {
2951
+ !f.value && !I.value ? (g(), V(x, {
2952
2952
  key: 0,
2953
2953
  appearance: "btn-link",
2954
2954
  "data-testid": "json-copy-button",
@@ -2983,7 +2983,7 @@ const Wi = {
2983
2983
  e.config.jsonYamlEnabled ? (g(), j("div", ps, [
2984
2984
  F(ts, {
2985
2985
  format: d.value,
2986
- "prop-list-types": x.value,
2986
+ "prop-list-types": A.value,
2987
2987
  "property-collections": k.value,
2988
2988
  record: p.value
2989
2989
  }, Te({ _: 2 }, [
@@ -2998,13 +2998,13 @@ const Wi = {
2998
2998
  }))
2999
2999
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3000
3000
  ])) : (g(), j("div", fs, [
3001
- (g(!0), j(ve, null, ye(x.value, (X) => (g(), j("div", {
3001
+ (g(!0), j(ve, null, ye(A.value, (X) => (g(), j("div", {
3002
3002
  key: `config-card-details-${X}-props`,
3003
3003
  class: Fe(`config-card-details-${X}-props`),
3004
3004
  "data-testid": `config-card-details-${X}-props`
3005
3005
  }, [
3006
3006
  X !== "basic" ? (g(), j("div", gs, K(X === "advanced" ? y(a)("baseConfigCard.sections.advanced") : y(a)("baseConfigCard.sections.plugin")), 1)) : G("", !0),
3007
- (g(!0), j(ve, null, ye(k.value[X], (ee) => (g(), V(St, {
3007
+ (g(!0), j(ve, null, ye(k.value[X], (ee) => (g(), V(xt, {
3008
3008
  key: ee.key,
3009
3009
  item: ee
3010
3010
  }, Te({
@@ -3102,11 +3102,11 @@ const Wi = {
3102
3102
  const r = e, o = wt(), { i18n: { t: a } } = ue.useI18n(), { getMessageFromError: i } = ue.useErrors(), { axiosInstance: s } = ue.useAxios({
3103
3103
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3104
3104
  }), l = O(!1), c = O(!1), d = O(""), u = M(() => r.canSubmit === !1 || r.isReadonly), m = M(() => {
3105
- var p, A;
3105
+ var p, S;
3106
3106
  if (!r.editId)
3107
3107
  return "";
3108
3108
  let b = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3109
- return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3109
+ return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), b = b.replace(/{id}/gi, r.editId), b;
3110
3110
  }), f = () => {
3111
3111
  r.config.cancelRoute ? o.push(r.config.cancelRoute) : I();
3112
3112
  }, I = () => {
@@ -3114,7 +3114,7 @@ const Wi = {
3114
3114
  }, v = () => {
3115
3115
  u.value || n("submit");
3116
3116
  };
3117
- return Se(() => l.value, (p) => {
3117
+ return xe(() => l.value, (p) => {
3118
3118
  n("loading", p);
3119
3119
  }, { immediate: !0 }), Qe(async () => {
3120
3120
  if (r.editId)
@@ -3123,13 +3123,13 @@ const Wi = {
3123
3123
  const { data: p } = await s.get(m.value);
3124
3124
  n("fetch:success", p);
3125
3125
  } catch (p) {
3126
- const A = i(p);
3127
- d.value = A.startsWith("code") ? a("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3126
+ const S = i(p);
3127
+ d.value = S.startsWith("code") ? a("baseForm.errors.edit") : S, c.value = !0, n("fetch:error", p);
3128
3128
  } finally {
3129
3129
  l.value = !1;
3130
3130
  }
3131
- }), (p, A) => {
3132
- const b = q("KSkeleton"), k = q("KEmptyState"), x = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3131
+ }), (p, S) => {
3132
+ const b = q("KSkeleton"), k = q("KEmptyState"), A = q("KAlert"), ne = q("KButton"), pe = q("KCard");
3133
3133
  return g(), V(pe, { class: "kong-ui-entity-base-form" }, {
3134
3134
  body: h(() => [
3135
3135
  l.value ? (g(), V(b, {
@@ -3153,7 +3153,7 @@ const Wi = {
3153
3153
  onSubmit: rt(v, ["prevent"])
3154
3154
  }, [
3155
3155
  Y(p.$slots, "default", {}, void 0, !0),
3156
- e.errorMessage ? (g(), V(x, {
3156
+ e.errorMessage ? (g(), V(A, {
3157
3157
  key: 0,
3158
3158
  "alert-message": e.errorMessage,
3159
3159
  appearance: "danger",
@@ -3215,16 +3215,16 @@ const Wi = {
3215
3215
  return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3216
3216
  }), o = M(() => {
3217
3217
  var v, p;
3218
- const A = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3219
- return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3218
+ const S = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3219
+ return S ? ((p = S[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3220
3220
  });
3221
3221
  let a;
3222
3222
  const i = () => {
3223
3223
  a && (a.disconnect(), a = void 0);
3224
3224
  }, s = () => {
3225
- var v, p, A;
3226
- c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3227
- }, l = O({}), c = O(0), d = O(0), u = O(""), m = M(() => [r.value, t.value]), f = Se(
3225
+ var v, p, S;
3226
+ c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3227
+ }, l = O({}), c = O(0), d = O(0), u = O(""), m = M(() => [r.value, t.value]), f = xe(
3228
3228
  m,
3229
3229
  (v) => {
3230
3230
  if (o.value && (i(), "ResizeObserver" in window && window)) {
@@ -3244,14 +3244,14 @@ const Wi = {
3244
3244
  }), fr(() => {
3245
3245
  f();
3246
3246
  }), (v, p) => {
3247
- const A = q("KTooltip");
3247
+ const S = q("KTooltip");
3248
3248
  return g(), j("span", {
3249
3249
  ref_key: "contentRef",
3250
3250
  ref: l,
3251
3251
  class: "content-wrapper"
3252
3252
  }, [
3253
3253
  o.value ? (g(), j("span", _s, [
3254
- F(A, {
3254
+ F(S, {
3255
3255
  label: I.value ? u.value : "",
3256
3256
  "max-width": "300",
3257
3257
  placement: "bottomStart"
@@ -3265,10 +3265,10 @@ const Wi = {
3265
3265
  ], 512);
3266
3266
  };
3267
3267
  }
3268
- }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), xs = { class: "toolbar-container" }, As = {
3268
+ }), Is = /* @__PURE__ */ Ce(ws, [["__scopeId", "data-v-e42a20c9"]]), As = { class: "toolbar-container" }, Ss = {
3269
3269
  key: 0,
3270
3270
  class: "toolbar-button-container"
3271
- }, Ss = ["data-testid"], Ts = /* @__PURE__ */ ae({
3271
+ }, xs = ["data-testid"], Ts = /* @__PURE__ */ ae({
3272
3272
  __name: "EntityBaseTable",
3273
3273
  props: {
3274
3274
  // table header configuration
@@ -3379,11 +3379,11 @@ const Wi = {
3379
3379
  setup(e, { emit: n }) {
3380
3380
  const t = e, { i18n: { t: r } } = ue.useI18n(), o = M(() => t.cacheIdentifier || t.preferencesStorageKey), a = (k) => k.hasData || !!t.query, i = M(() => {
3381
3381
  const k = [];
3382
- return Object.keys(t.tableHeaders).forEach((x) => {
3383
- const ne = t.tableHeaders[x];
3382
+ return Object.keys(t.tableHeaders).forEach((A) => {
3383
+ const ne = t.tableHeaders[A];
3384
3384
  k.push({
3385
- label: ne.label ?? x,
3386
- key: x,
3385
+ label: ne.label ?? A,
3386
+ key: A,
3387
3387
  sortable: ne.sortable ?? !1
3388
3388
  });
3389
3389
  }), t.enableEntityActions && k.push({
@@ -3395,27 +3395,27 @@ const Wi = {
3395
3395
  "data-testid": k.name,
3396
3396
  ...t.rowAttributes(k)
3397
3397
  }), l = O({}), c = (k) => {
3398
- var x;
3399
- return (x = l.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${k.id}"]`);
3398
+ var A;
3399
+ return (A = l.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${k.id}"]`);
3400
3400
  }, d = (k) => {
3401
- const x = {
3401
+ const A = {
3402
3402
  "data-testid": k.headerKey,
3403
3403
  ...t.cellAttributes(k)
3404
3404
  };
3405
- return k.colIndex === 0 && (x.style = {
3405
+ return k.colIndex === 0 && (A.style = {
3406
3406
  maxWidth: "250px",
3407
3407
  overflowX: "hidden",
3408
3408
  textOverflow: "ellipsis"
3409
- }), x;
3409
+ }), A;
3410
3410
  }, u = () => {
3411
3411
  n("empty-state-cta-clicked"), m();
3412
3412
  }, m = () => {
3413
3413
  n("clear-search-input");
3414
- }, f = M(() => t.disableRowClick ? void 0 : (k, x) => {
3415
- n("click:row", x);
3414
+ }, f = M(() => t.disableRowClick ? void 0 : (k, A) => {
3415
+ n("click:row", A);
3416
3416
  }), I = (k) => {
3417
3417
  n("sort", k);
3418
- }, { setTablePreferences: v, getTablePreferences: p } = Ar(), A = M(() => {
3418
+ }, { setTablePreferences: v, getTablePreferences: p } = Sr(), S = M(() => {
3419
3419
  const k = p(t.preferencesStorageKey);
3420
3420
  return {
3421
3421
  ...t.initialFetcherParams,
@@ -3424,7 +3424,7 @@ const Wi = {
3424
3424
  }), b = (k) => {
3425
3425
  t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3426
3426
  };
3427
- return (k, x) => {
3427
+ return (k, A) => {
3428
3428
  const ne = q("KIcon"), pe = q("KButton"), z = q("KDropdownMenu"), w = q("KTable"), N = q("KCard");
3429
3429
  return g(), V(N, {
3430
3430
  class: "kong-ui-entity-base-table",
@@ -3452,27 +3452,27 @@ const Wi = {
3452
3452
  "has-error": !!e.errorMessage,
3453
3453
  headers: i.value,
3454
3454
  "hide-pagination-when-optional": "",
3455
- "initial-fetcher-params": A.value,
3455
+ "initial-fetcher-params": S.value,
3456
3456
  "is-loading": e.isLoading,
3457
3457
  "pagination-type": e.paginationType,
3458
3458
  "row-attrs": s,
3459
3459
  "search-input": e.query,
3460
3460
  onKtableEmptyStateCtaClicked: u,
3461
3461
  "onRow:click": f.value,
3462
- onSort: x[0] || (x[0] = (B) => I(B)),
3462
+ onSort: A[0] || (A[0] = (B) => I(B)),
3463
3463
  "onUpdate:tablePreferences": b
3464
3464
  }, Te({
3465
3465
  toolbar: h(({ state: B }) => [
3466
- et(R("div", xs, [
3466
+ et(R("div", As, [
3467
3467
  Y(k.$slots, "toolbar-filter", {}, void 0, !0),
3468
- k.$slots["toolbar-button"] ? (g(), j("div", As, [
3468
+ k.$slots["toolbar-button"] ? (g(), j("div", Ss, [
3469
3469
  Y(k.$slots, "toolbar-button", {}, void 0, !0)
3470
3470
  ])) : G("", !0)
3471
3471
  ], 512), [
3472
3472
  [tt, a(B)]
3473
3473
  ])
3474
3474
  ]),
3475
- actions: h(({ row: B, rowKey: C, rowValue: S }) => [
3475
+ actions: h(({ row: B, rowKey: C, rowValue: x }) => [
3476
3476
  R("div", {
3477
3477
  class: "actions-container",
3478
3478
  "data-testid": B.name
@@ -3485,7 +3485,7 @@ const Wi = {
3485
3485
  Y(k.$slots, "actions", {
3486
3486
  row: B,
3487
3487
  rowKey: C,
3488
- rowValue: S
3488
+ rowValue: x
3489
3489
  }, void 0, !0)
3490
3490
  ]),
3491
3491
  default: h(() => [
@@ -3506,20 +3506,20 @@ const Wi = {
3506
3506
  ]),
3507
3507
  _: 2
3508
3508
  }, 1032, ["width"])
3509
- ], 8, Ss)
3509
+ ], 8, xs)
3510
3510
  ]),
3511
3511
  _: 2
3512
3512
  }, [
3513
3513
  ye(e.tableHeaders, (B, C) => ({
3514
3514
  name: C,
3515
- fn: h(({ row: S, rowKey: T, rowValue: P }) => [
3515
+ fn: h(({ row: x, rowKey: T, rowValue: P }) => [
3516
3516
  F(Is, {
3517
3517
  "key-name": String(C),
3518
- "row-el": c(S)
3518
+ "row-el": c(x)
3519
3519
  }, {
3520
3520
  default: h(() => [
3521
3521
  Y(k.$slots, C, {
3522
- row: S,
3522
+ row: x,
3523
3523
  rowKey: T,
3524
3524
  rowValue: P
3525
3525
  }, () => [
@@ -3700,19 +3700,19 @@ const Wi = {
3700
3700
  setup(e, { emit: n }) {
3701
3701
  const t = e, { i18n: { t: r } } = ue.useI18n(), o = O(!1), a = O({}), i = M(() => {
3702
3702
  const p = [];
3703
- return new URLSearchParams(t.modelValue).forEach((A, b) => {
3704
- A !== "" && p.push(b);
3703
+ return new URLSearchParams(t.modelValue).forEach((S, b) => {
3704
+ S !== "" && p.push(b);
3705
3705
  }), p;
3706
3706
  }), s = M(() => {
3707
3707
  const p = t.config.fields;
3708
- return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3709
- label: p[A].label || A,
3710
- value: A
3708
+ return Object.keys(p).filter((S) => p[S].searchable).map((S) => ({
3709
+ label: p[S].label || S,
3710
+ value: S
3711
3711
  }));
3712
3712
  });
3713
- Se(() => t.modelValue, (p) => {
3714
- a.value = {}, new URLSearchParams(p).forEach((A, b) => {
3715
- a.value[b] = A;
3713
+ xe(() => t.modelValue, (p) => {
3714
+ a.value = {}, new URLSearchParams(p).forEach((S, b) => {
3715
+ a.value[b] = S;
3716
3716
  });
3717
3717
  });
3718
3718
  const l = () => {
@@ -3720,14 +3720,14 @@ const Wi = {
3720
3720
  }, c = (p) => {
3721
3721
  n("update:modelValue", p);
3722
3722
  }, d = (p) => `filter-${p}`, u = (p) => {
3723
- var A, b;
3724
- return (((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3723
+ var S, b;
3724
+ return (((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.values) ?? []).map((k) => ({
3725
3725
  value: k,
3726
3726
  label: k
3727
3727
  }));
3728
3728
  }, m = (p) => {
3729
- var A, b;
3730
- return ((b = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : b.type) ?? "text";
3729
+ var S, b;
3730
+ return ((b = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : b.type) ?? "text";
3731
3731
  }, f = (p) => {
3732
3732
  a.value = {
3733
3733
  ...a.value,
@@ -3736,11 +3736,11 @@ const Wi = {
3736
3736
  }, I = () => {
3737
3737
  a.value = {}, v(!0);
3738
3738
  }, v = (p = !1) => {
3739
- const A = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3740
- p && (o.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3739
+ const S = Object.keys(a.value).reduce((b, k) => (a.value[k] && (b[k] = `${a.value[k]}`), b), {});
3740
+ p && (o.value = !1), n("update:modelValue", new URLSearchParams(S).toString());
3741
3741
  };
3742
- return (p, A) => {
3743
- const b = q("KInput"), k = q("KButton"), x = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3742
+ return (p, S) => {
3743
+ const b = q("KInput"), k = q("KButton"), A = q("KSelect"), ne = q("KMenuItem"), pe = q("KMenu");
3744
3744
  return e.config.isExactMatch ? (g(), V(b, {
3745
3745
  key: 0,
3746
3746
  autocomplete: "off",
@@ -3796,7 +3796,7 @@ const Wi = {
3796
3796
  class: "menu-item-label",
3797
3797
  for: d(z.value)
3798
3798
  }, K(y(r)("filter.fieldLabel")), 9, Ds),
3799
- ((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(x, {
3799
+ ((B = (N = e.config.schema) == null ? void 0 : N[z.value]) == null ? void 0 : B.type) === "select" ? (g(), V(A, {
3800
3800
  key: 0,
3801
3801
  id: d(z.value),
3802
3802
  modelValue: a.value[z.value],
@@ -3820,7 +3820,7 @@ const Wi = {
3820
3820
  appearance: "btn-link",
3821
3821
  "data-testid": "apply-filter",
3822
3822
  size: "small",
3823
- onClick: A[0] || (A[0] = (C) => v(!0))
3823
+ onClick: S[0] || (S[0] = (C) => v(!0))
3824
3824
  }, {
3825
3825
  default: h(() => [
3826
3826
  Z(K(y(r)("filter.applyButtonText")), 1)
@@ -3882,7 +3882,7 @@ const Wi = {
3882
3882
  },
3883
3883
  setup(e) {
3884
3884
  const n = e, t = O(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3885
- return Se(() => n.authFunction, async () => {
3885
+ return xe(() => n.authFunction, async () => {
3886
3886
  t.value = await n.authFunction();
3887
3887
  }, { immediate: !0 }), (o, a) => r.value ? Y(o.$slots, "default", {
3888
3888
  key: 0,
@@ -3948,7 +3948,7 @@ const Wi = {
3948
3948
  ])
3949
3949
  ], 2));
3950
3950
  }
3951
- }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: xl, useGatewayFeatureSupported: Al, useTruncationDetector: Sl } = ue;
3951
+ }), un = /* @__PURE__ */ Ce(Xs, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: Kt, useDeleteUrlBuilder: el, useErrors: tl, useExternalLinkCreator: _l, useFetchUrlBuilder: wl, useFetcher: nl, useDebouncedFilter: ar, useStringHelpers: Il, useHelpers: Al, useGatewayFeatureSupported: Sl, useTruncationDetector: xl } = ue;
3952
3952
  const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group-cta-text" }, al = {
3953
3953
  key: 0,
3954
3954
  class: "kong-ui-entity-add-to-groups-error"
@@ -3995,53 +3995,53 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
3995
3995
  // we need this to determine whether or not to show the description text
3996
3996
  }))), p = (C) => {
3997
3997
  var T;
3998
- const S = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
3999
- return S ? S.name : C;
4000
- }, A = () => {
4001
- x.value = "", b.value = [], w.value = [], n("cancel");
4002
- }, b = O([]), k = O(!1), x = O(""), ne = async () => {
3998
+ const x = I.value ? u.value.find((P) => P.id === C) : (T = l.value) == null ? void 0 : T.find((P) => P.id === C);
3999
+ return x ? x.name : C;
4000
+ }, S = () => {
4001
+ A.value = "", b.value = [], w.value = [], n("cancel");
4002
+ }, b = O([]), k = O(!1), A = O(""), ne = async () => {
4003
4003
  if (!a.value.length) {
4004
- x.value = "", w.value = [], n("cancel");
4004
+ A.value = "", w.value = [], n("cancel");
4005
4005
  return;
4006
4006
  }
4007
- k.value = !0, x.value = "", b.value = [], w.value = [];
4007
+ k.value = !0, A.value = "", b.value = [], w.value = [];
4008
4008
  try {
4009
- const C = a.value.map((P) => z(P)), S = await Promise.allSettled(C);
4009
+ const C = a.value.map((P) => z(P)), x = await Promise.allSettled(C);
4010
4010
  let T = !0;
4011
- S.forEach((P) => {
4011
+ x.forEach((P) => {
4012
4012
  P.status !== "fulfilled" && (T = !1);
4013
- }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(S));
4013
+ }), T ? (b.value = [], w.value = [], n("add:success", a.value), a.value = []) : (b.value.length && n("add:partial-success", b.value), a.value = [], N(x));
4014
4014
  } catch {
4015
- x.value = r("consumer_groups.errors.add"), n("error", x.value);
4015
+ A.value = r("consumer_groups.errors.add"), n("error", A.value);
4016
4016
  } finally {
4017
4017
  k.value = !1;
4018
4018
  }
4019
4019
  }, pe = M(() => {
4020
- var S, T, P, J;
4020
+ var x, T, P, J;
4021
4021
  let C = `${t.config.apiBaseUrl}${$e.list[t.config.app].forConsumer}`;
4022
- return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
4022
+ return t.config.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, ((x = t.config) == null ? void 0 : x.controlPlaneId) || "").replace(/{consumerId}/gi, ((T = t.config) == null ? void 0 : T.consumerId) || "") : t.config.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, (P = t.config) != null && P.workspace ? `/${t.config.workspace}` : "").replace(/{consumerId}/gi, ((J = t.config) == null ? void 0 : J.consumerId) || "")), C;
4023
4023
  }), z = async (C) => {
4024
- const S = {
4024
+ const x = {
4025
4025
  group: C
4026
4026
  };
4027
4027
  try {
4028
- const T = await o.post(pe.value, S);
4028
+ const T = await o.post(pe.value, x);
4029
4029
  return b.value.push(C), T;
4030
4030
  } catch (T) {
4031
4031
  let P = `${p(C)} - ${T.message}`;
4032
4032
  return T.response.status === 409 && (P = `${p(C)} - ${r("consumer_groups.errors.already_added")}`), Promise.reject(Error(P));
4033
4033
  }
4034
4034
  }, w = O([]), N = (C) => {
4035
- w.value = C.map((S) => {
4035
+ w.value = C.map((x) => {
4036
4036
  var T;
4037
- return (T = S.reason) == null ? void 0 : T.message;
4037
+ return (T = x.reason) == null ? void 0 : T.message;
4038
4038
  }).filter(Boolean);
4039
4039
  };
4040
- return Se(v, () => {
4040
+ return xe(v, () => {
4041
4041
  f.value++;
4042
4042
  }, { immediate: !0, deep: !0 }), Qe(async () => {
4043
4043
  await d();
4044
- }), (C, S) => {
4044
+ }), (C, x) => {
4045
4045
  const T = q("KMultiselect"), P = q("KAlert"), J = q("KPrompt");
4046
4046
  return g(), V(J, {
4047
4047
  "action-pending": k.value,
@@ -4049,7 +4049,7 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4049
4049
  "data-testid": "add-to-group-modal",
4050
4050
  "is-visible": e.visible,
4051
4051
  title: y(r)("consumer_groups.consumers.add.title"),
4052
- onCanceled: A,
4052
+ onCanceled: S,
4053
4053
  onProceed: ne
4054
4054
  }, {
4055
4055
  "body-content": h(() => [
@@ -4057,7 +4057,7 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4057
4057
  R("p", ol, K(y(r)("consumer_groups.consumers.add.ctaText")), 1),
4058
4058
  F(T, {
4059
4059
  modelValue: a.value,
4060
- "onUpdate:modelValue": S[0] || (S[0] = (Q) => a.value = Q),
4060
+ "onUpdate:modelValue": x[0] || (x[0] = (Q) => a.value = Q),
4061
4061
  autosuggest: "",
4062
4062
  "data-testid": "add-to-groups-multiselect",
4063
4063
  "dropdown-footer-text": I.value ? y(r)("consumer_groups.consumers.add.footer") : void 0,
@@ -4070,14 +4070,14 @@ const rl = { class: "add-to-group-form-container" }, ol = { class: "add-to-group
4070
4070
  width: "100%",
4071
4071
  onQueryChange: y(i)
4072
4072
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4073
- x.value || m.value || w.value.length ? (g(), j("div", al, [
4073
+ A.value || m.value || w.value.length ? (g(), j("div", al, [
4074
4074
  F(P, { appearance: "danger" }, {
4075
4075
  alertMessage: h(() => [
4076
4076
  R("p", null, K(y(r)("consumer_groups.errors.add")), 1),
4077
4077
  w.value.length ? (g(), j("ul", il, [
4078
4078
  (g(!0), j(ve, null, ye(w.value, (Q, X) => (g(), j("li", { key: X }, K(Q), 1))), 128))
4079
4079
  ])) : G("", !0),
4080
- R("div", null, K(x.value || m.value), 1)
4080
+ R("div", null, K(A.value || m.value), 1)
4081
4081
  ]),
4082
4082
  _: 1
4083
4083
  })
@@ -4164,9 +4164,9 @@ const Ft = (e, n) => {
4164
4164
  },
4165
4165
  schema: t.config.filterSchema
4166
4166
  };
4167
- }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: A, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4167
+ }), p = M(() => l.value ? "consumer_groups" : void 0), { fetcher: S, fetcherState: b } = nl(t.config, f.value, p.value), k = () => {
4168
4168
  I.value = "";
4169
- }, x = () => {
4169
+ }, A = () => {
4170
4170
  s.value++;
4171
4171
  }, ne = O(""), pe = (E, H) => {
4172
4172
  const le = E.id;
@@ -4205,16 +4205,16 @@ const Ft = (e, n) => {
4205
4205
  }), B = (E) => ({
4206
4206
  label: o("consumer_groups.actions.edit"),
4207
4207
  to: t.config.getEditRoute(E)
4208
- }), C = O(void 0), S = O(!1), T = O(!1), P = O(""), J = el(t.config, f.value), Q = (E) => {
4209
- C.value = E, S.value = !0;
4208
+ }), C = O(void 0), x = O(!1), T = O(!1), P = O(""), J = el(t.config, f.value), Q = (E) => {
4209
+ C.value = E, x.value = !0;
4210
4210
  }, X = () => {
4211
- S.value = !1;
4211
+ x.value = !1;
4212
4212
  }, ee = async () => {
4213
4213
  var E, H, le;
4214
4214
  if ((E = C.value) != null && E.id) {
4215
4215
  T.value = !0;
4216
4216
  try {
4217
- await i.delete(J(C.value.id)), T.value = !1, S.value = !1, s.value++, n("delete:success", C.value);
4217
+ await i.delete(J(C.value.id)), T.value = !1, x.value = !1, s.value++, n("delete:success", C.value);
4218
4218
  } catch (ke) {
4219
4219
  P.value = ((le = (H = ke.response) == null ? void 0 : H.data) == null ? void 0 : le.message) || ke.message || o("consumer_groups.errors.delete"), n("error", ke);
4220
4220
  } finally {
@@ -4250,7 +4250,7 @@ const Ft = (e, n) => {
4250
4250
  }
4251
4251
  }
4252
4252
  };
4253
- Se(b, (E) => {
4253
+ xe(b, (E) => {
4254
4254
  if (E.status === Oe.Error) {
4255
4255
  ne.value = o("consumer_groups.errors.general"), n("error", E.error);
4256
4256
  return;
@@ -4276,7 +4276,7 @@ const Ft = (e, n) => {
4276
4276
  "empty-state-options": pt.value,
4277
4277
  "enable-entity-actions": "",
4278
4278
  "error-message": ne.value,
4279
- fetcher: y(A),
4279
+ fetcher: y(S),
4280
4280
  "fetcher-cache-key": s.value,
4281
4281
  "pagination-type": "offset",
4282
4282
  "preferences-storage-key": "kong-ui-entities-consumer-groups-list",
@@ -4286,7 +4286,7 @@ const Ft = (e, n) => {
4286
4286
  onClearSearchInput: k,
4287
4287
  "onClick:row": H[3] || (H[3] = (W) => w(W)),
4288
4288
  onEmptyStateCtaClicked: re,
4289
- onSort: x
4289
+ onSort: A
4290
4290
  }, {
4291
4291
  "toolbar-filter": h(() => [
4292
4292
  l.value ? G("", !0) : (g(), V(y(Hs), {
@@ -4421,7 +4421,7 @@ const Ft = (e, n) => {
4421
4421
  "entity-type": y(dn).ConsumerGroup,
4422
4422
  error: P.value,
4423
4423
  title: y(o)("consumer_groups.delete.title"),
4424
- visible: S.value,
4424
+ visible: x.value,
4425
4425
  onCancel: X,
4426
4426
  onProceed: ee
4427
4427
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
@@ -4524,11 +4524,11 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4524
4524
  }))), v = M(() => {
4525
4525
  var _, L;
4526
4526
  return (L = $e.form[(_ = t.config) == null ? void 0 : _.app]) == null ? void 0 : L.edit;
4527
- }), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), A = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
4527
+ }), p = M(() => t.consumerGroupId ? nt.Edit : nt.Create), S = M(() => !!a.fields.name && !w.value), b = M(() => JSON.stringify(a.fields) !== JSON.stringify(i)), k = (_, L = "", re = "") => {
4528
4528
  var D, ge, _e, ce, Ne, De;
4529
4529
  let U = `${(D = t.config) == null ? void 0 : D.apiBaseUrl}${$e.form[(ge = t.config) == null ? void 0 : ge.app][_]}`;
4530
4530
  return ((_e = t.config) == null ? void 0 : _e.app) === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((ce = t.config) == null ? void 0 : ce.controlPlaneId) || "") : ((Ne = t.config) == null ? void 0 : Ne.app) === "kongManager" && (U = U.replace(/\/{workspace}/gi, (De = t.config) != null && De.workspace ? `/${t.config.workspace}` : "")), U = U.replace(/{id}/gi, L || t.consumerGroupId), (_ === "addConsumer" || _ === "removeConsumer") && (U = U.replace(/{consumerId}/gi, re)), U;
4531
- }, x = () => {
4531
+ }, A = () => {
4532
4532
  var _;
4533
4533
  o.push(((_ = t.config) == null ? void 0 : _.cancelRoute) || { name: "consumer-group-list" });
4534
4534
  }, ne = (_) => {
@@ -4546,7 +4546,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4546
4546
  const { data: ce } = await m.get(k("getConsumers"));
4547
4547
  a.fields.consumers = "consumers" in ce ? (_e = ce == null ? void 0 : ce.consumers) == null ? void 0 : _e.map((Ne) => Ne.id) : [];
4548
4548
  } catch (ce) {
4549
- S(ce);
4549
+ x(ce);
4550
4550
  }
4551
4551
  Object.assign(i, a.fields);
4552
4552
  }, w = M(() => /^[0-9a-zA-Z.\-_~]*$/.test(a.fields.name) ? "" : r("consumer_groups.form.validation_errors.name")), N = () => {
@@ -4555,13 +4555,13 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4555
4555
  name: a.fields.name,
4556
4556
  tags: (L = (_ = a.fields.tags.split(",")) == null ? void 0 : _.map((re) => String(re || "").trim())) == null ? void 0 : L.filter((re) => re !== "")
4557
4557
  };
4558
- }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), S = (_) => {
4558
+ }, B = async (_, L = "") => await m.post(k("addConsumer", L, _), { consumer: _ }), C = async (_, L = "") => await m.delete(k("removeConsumer", L, _)), x = (_) => {
4559
4559
  a.errorMessage = f(_), n("error", _);
4560
4560
  }, T = (_ = t.consumerGroupId) => {
4561
4561
  Object.assign(i, a.fields), n("update", { ...a.fields, id: _ });
4562
4562
  }, P = (_, L, re = t.consumerGroupId) => {
4563
4563
  const U = _ == null ? void 0 : _.find((D) => D.status !== "fulfilled");
4564
- U ? S({
4564
+ U ? x({
4565
4565
  code: U.status,
4566
4566
  message: L
4567
4567
  }) : T(re);
@@ -4571,14 +4571,14 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4571
4571
  const { data: L } = await m.post(k("create"), N());
4572
4572
  _ = "item" in L ? L.item.id : L.id;
4573
4573
  } catch (L) {
4574
- S(L);
4574
+ x(L);
4575
4575
  }
4576
4576
  if (a.fields.consumers.length > 0 && _)
4577
4577
  try {
4578
4578
  const L = a.fields.consumers.map((U) => B(U, _)), re = await Promise.allSettled(L);
4579
4579
  P(re, r("consumer_groups.errors.add_consumer"), _);
4580
4580
  } catch (L) {
4581
- S(L);
4581
+ x(L);
4582
4582
  }
4583
4583
  else
4584
4584
  a.fields.consumers.length === 0 && _ && T(_);
@@ -4587,7 +4587,7 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4587
4587
  try {
4588
4588
  ((re = t.config) == null ? void 0 : re.app) === "konnect" ? await m.put(k("edit"), N()) : await m.patch(k("edit"), N());
4589
4589
  } catch (U) {
4590
- S(U);
4590
+ x(U);
4591
4591
  }
4592
4592
  const _ = a.fields.consumers.filter((U) => !i.consumers.includes(U)), L = i.consumers.filter((U) => !a.fields.consumers.includes(U));
4593
4593
  if (L.length === 0 && _.length === 0)
@@ -4598,14 +4598,14 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4598
4598
  const U = L.map((ge) => C(ge)), D = await Promise.allSettled(U);
4599
4599
  P(D, r("consumer_groups.errors.remove_consumer"));
4600
4600
  } catch (U) {
4601
- S(U);
4601
+ x(U);
4602
4602
  }
4603
4603
  if (_.length > 0)
4604
4604
  try {
4605
4605
  const U = _.map((ge) => B(ge)), D = await Promise.allSettled(U);
4606
4606
  P(D, r("consumer_groups.errors.add_consumer"));
4607
4607
  } catch (U) {
4608
- S(U);
4608
+ x(U);
4609
4609
  }
4610
4610
  }
4611
4611
  }, X = async () => {
@@ -4621,13 +4621,13 @@ const Tl = /* @__PURE__ */ Ft(dl, [["__scopeId", "data-v-80c4522c"]]), pl = { cl
4621
4621
  const re = q("KInput"), U = q("KMultiselect");
4622
4622
  return g(), j("div", pl, [
4623
4623
  F(y(Cs), {
4624
- "can-submit": A.value && b.value,
4624
+ "can-submit": S.value && b.value,
4625
4625
  config: e.config,
4626
4626
  "edit-id": e.consumerGroupId,
4627
4627
  "error-message": a.errorMessage || y(c) || w.value,
4628
4628
  "fetch-url": v.value,
4629
4629
  "is-readonly": a.readonly,
4630
- onCancel: x,
4630
+ onCancel: A,
4631
4631
  "onFetch:error": L[3] || (L[3] = (D) => ne(D)),
4632
4632
  "onFetch:success": z,
4633
4633
  onLoading: L[4] || (L[4] = (D) => pe(D)),