@kong-ui-public/entities-consumer-groups 3.2.4 → 3.2.5-pr.1431.4668518d.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 X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as Se, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as q, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as O, watch as $e, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as R, createSlots as Be, createVNode as j, createTextVNode as Y, renderList as ve, withModifiers as St, withDirectives as Ne, vShow as je, Fragment as be, normalizeClass as Me, withKeys as wr, useSlots as jt, useCssVars as bn, inject as _r, onMounted as Ir, onUnmounted as Sr, normalizeProps as xr, guardReactiveProps as Ar, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
1
+ import { defineComponent as X, computed as w, openBlock as m, createBlock as D, resolveDynamicComponent as xe, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as q, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as O, watch as $e, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as R, createSlots as Be, createVNode as j, createTextVNode as Y, renderList as ve, withModifiers as xt, withDirectives as Ne, vShow as je, Fragment as be, normalizeClass as Me, withKeys as wr, useSlots as jt, useCssVars as bn, inject as _r, onMounted as Ir, onUnmounted as xr, normalizeProps as Sr, guardReactiveProps as Ar, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
2
2
  import { useRouter as Et } from "vue-router";
3
3
  import { createI18n as Cn, i18nTComponent as kn } from "@kong-ui-public/i18n";
4
4
  import Gt from "axios";
@@ -83,7 +83,7 @@ const Ht = "24px", jr = (e, t) => {
83
83
  lineHeight: "0",
84
84
  width: n.value
85
85
  }));
86
- return (a, i) => (m(), D(Se(e.as), {
86
+ return (a, i) => (m(), D(xe(e.as), {
87
87
  "aria-hidden": e.decorative ? "true" : void 0,
88
88
  class: "kui-icon add-icon",
89
89
  "data-testid": "kui-icon-wrapper-add-icon",
@@ -209,12 +209,12 @@ function Ur() {
209
209
  }
210
210
  const yt = {
211
211
  useI18n: Ur
212
- }, xe = "/v2/control-planes/{controlPlaneId}/core-entities", Ae = "/{workspace}", Ee = {
212
+ }, Se = "/v2/control-planes/{controlPlaneId}/core-entities", Ae = "/{workspace}", Ee = {
213
213
  list: {
214
214
  konnect: {
215
- all: `${xe}/consumer_groups`,
216
- forConsumer: `${xe}/consumers/{consumerId}/consumer_groups`,
217
- oneForConsumer: `${xe}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
215
+ all: `${Se}/consumer_groups`,
216
+ forConsumer: `${Se}/consumers/{consumerId}/consumer_groups`,
217
+ oneForConsumer: `${Se}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
218
218
  },
219
219
  kongManager: {
220
220
  all: `${Ae}/consumer_groups?counter=true`,
@@ -224,12 +224,12 @@ const yt = {
224
224
  },
225
225
  form: {
226
226
  konnect: {
227
- consumersList: `${xe}/consumers`,
228
- create: `${xe}/consumer_groups`,
229
- edit: `${xe}/consumer_groups/{id}`,
230
- addConsumer: `${xe}/consumer_groups/{id}/consumers`,
231
- removeConsumer: `${xe}/consumer_groups/{id}/consumers/{consumerId}`,
232
- getConsumers: `${xe}/consumer_groups/{id}/consumers`
227
+ consumersList: `${Se}/consumers`,
228
+ create: `${Se}/consumer_groups`,
229
+ edit: `${Se}/consumer_groups/{id}`,
230
+ addConsumer: `${Se}/consumer_groups/{id}/consumers`,
231
+ removeConsumer: `${Se}/consumer_groups/{id}/consumers/{consumerId}`,
232
+ getConsumers: `${Se}/consumer_groups/{id}/consumers`
233
233
  },
234
234
  kongManager: {
235
235
  consumersList: `${Ae}/consumers`,
@@ -503,15 +503,15 @@ function na(e, t, n, r = {
503
503
  l.value = !1;
504
504
  }
505
505
  }, N = O(""), Z = async (h) => {
506
- var _, d, x;
506
+ var _, d, S;
507
507
  if (N.value !== h)
508
508
  if (N.value = h || "", f.value === void 0)
509
509
  try {
510
510
  if (l.value = !0, u.value = "", p.value = "", e.app === "konnect") {
511
511
  let B = T + "";
512
512
  h && (B += `/${h}`);
513
- const { data: S } = await a.get(`${B}?size=${n}`);
514
- r.fetchedItemsKey in S ? c.value = S[r.fetchedItemsKey] : S != null && S.id ? c.value = [S] : c.value = [];
513
+ const { data: x } = await a.get(`${B}?size=${n}`);
514
+ r.fetchedItemsKey in x ? c.value = x[r.fetchedItemsKey] : x != null && x.id ? c.value = [x] : c.value = [];
515
515
  } else if (h) {
516
516
  const B = [];
517
517
  k(h) && r.searchKeys.includes("id") ? B.push((async () => {
@@ -523,8 +523,8 @@ function na(e, t, n, r = {
523
523
  return b[r.fetchedItemsKey];
524
524
  })
525
525
  );
526
- const S = await Promise.all(B), G = /* @__PURE__ */ new Set();
527
- c.value = [], (_ = S == null ? void 0 : S.forEach) == null || _.call(S, (M) => {
526
+ const x = await Promise.all(B), G = /* @__PURE__ */ new Set();
527
+ c.value = [], (_ = x == null ? void 0 : x.forEach) == null || _.call(x, (M) => {
528
528
  var b;
529
529
  (b = M == null ? void 0 : M.forEach) == null || b.call(M, (K) => {
530
530
  G.has(K.id) || (G.add(K.id), c.value.push(K));
@@ -538,11 +538,11 @@ function na(e, t, n, r = {
538
538
  l.value = !1;
539
539
  }
540
540
  else
541
- l.value = !0, p.value = "", h ? (c.value = (x = f.value) == null ? void 0 : x.filter((B) => {
542
- var S;
541
+ l.value = !0, p.value = "", h ? (c.value = (S = f.value) == null ? void 0 : S.filter((B) => {
542
+ var x;
543
543
  let G = !1;
544
544
  for (const M of r.searchKeys) {
545
- const b = typeof B[M] == "string" ? (S = B[M]) == null ? void 0 : S.toLowerCase() : B[M];
545
+ const b = typeof B[M] == "string" ? (x = B[M]) == null ? void 0 : x.toLowerCase() : B[M];
546
546
  b != null && b.includes(h.toLowerCase()) && (G = !0);
547
547
  }
548
548
  return G;
@@ -676,10 +676,10 @@ function sa() {
676
676
  convertKeyToTitle: e
677
677
  };
678
678
  }
679
- const Sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Jt = (e) => {
679
+ const xn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i, Jt = (e) => {
680
680
  if (typeof e != "string")
681
681
  throw new TypeError("Invalid argument expected string");
682
- const t = e.match(Sn);
682
+ const t = e.match(xn);
683
683
  if (!t)
684
684
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
685
685
  return t.shift(), t;
@@ -704,20 +704,20 @@ const Sn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
704
704
  }, Qt = (e, t, n) => {
705
705
  da(n);
706
706
  const r = ca(e, t);
707
- return xn[n].includes(r);
708
- }, xn = {
707
+ return Sn[n].includes(r);
708
+ }, Sn = {
709
709
  ">": [1],
710
710
  ">=": [0, 1],
711
711
  "=": [0],
712
712
  "<=": [-1, 0],
713
713
  "<": [-1],
714
714
  "!=": [-1, 1]
715
- }, Xt = Object.keys(xn), da = (e) => {
715
+ }, Xt = Object.keys(Sn), da = (e) => {
716
716
  if (typeof e != "string")
717
717
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
718
718
  if (Xt.indexOf(e) === -1)
719
719
  throw new Error(`Invalid operator, expected one of ${Xt.join("|")}`);
720
- }, pa = (e) => typeof e == "string" && /^[v\d]/.test(e) && Sn.test(e);
720
+ }, pa = (e) => typeof e == "string" && /^[v\d]/.test(e) && xn.test(e);
721
721
  function fa(e) {
722
722
  const { gatewayInfo: t, supportedRange: n } = e;
723
723
  if (!t)
@@ -786,7 +786,7 @@ const se = {
786
786
  var l;
787
787
  return t.isArrayItem ? (l = i.value) != null && l.name ? r(i.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
788
788
  });
789
- return (l, u) => (m(), D(Se(e.isArrayItem ? "fieldset" : "div"), {
789
+ return (l, u) => (m(), D(xe(e.isArrayItem ? "fieldset" : "div"), {
790
790
  class: Me(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
791
791
  }, {
792
792
  default: v(() => [
@@ -859,7 +859,7 @@ const se = {
859
859
  }, 8, ["appearance"]);
860
860
  };
861
861
  }
862
- }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Ia = "1px", Sa = "20px", xa = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Ea = ["data-testid"], Oa = ["data-testid"], Ma = ["data-testid"], Fa = ["data-testid"], qa = {
862
+ }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Ia = "1px", xa = "20px", Sa = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Ea = ["data-testid"], Oa = ["data-testid"], Ma = ["data-testid"], Fa = ["data-testid"], qa = {
863
863
  name: "ConfigCardItem",
864
864
  components: { JsonCardItem: An, StatusBadge: Ca, InternalLinkItem: ba }
865
865
  }, Ka = /* @__PURE__ */ X({
@@ -1001,7 +1001,7 @@ const se = {
1001
1001
  }), y = O(), { isTruncated: f } = se.useTruncationDetector(y);
1002
1002
  return (I, T) => {
1003
1003
  const k = R("KLabel"), U = R("KBadge"), N = R("KCopy"), Z = R("KTooltip");
1004
- return m(), $("div", xa, [
1004
+ return m(), $("div", Sa, [
1005
1005
  L("div", {
1006
1006
  class: "config-card-details-label",
1007
1007
  "data-testid": `${e.item.key}-label`
@@ -1037,7 +1037,7 @@ const se = {
1037
1037
  rowValue: e.item.value
1038
1038
  }, () => [
1039
1039
  s.value ? (m(), $("div", ja, [
1040
- (m(), D(Se(c.value.tag), xr(Ar(c.value.attrs)), {
1040
+ (m(), D(xe(c.value.tag), Sr(Ar(c.value.attrs)), {
1041
1041
  default: v(() => [
1042
1042
  c.value.additionalComponent === "KBadge" ? (m(), $("div", {
1043
1043
  key: 0,
@@ -1346,10 +1346,10 @@ function ro() {
1346
1346
  arguments[t].forEach(r);
1347
1347
  return e;
1348
1348
  }
1349
- function xt(e) {
1349
+ function St(e) {
1350
1350
  return this.extend(e);
1351
1351
  }
1352
- xt.prototype.extend = function(e) {
1352
+ St.prototype.extend = function(e) {
1353
1353
  var t = [], n = [];
1354
1354
  if (e instanceof ce)
1355
1355
  n.push(e);
@@ -1370,10 +1370,10 @@ xt.prototype.extend = function(e) {
1370
1370
  if (!(a instanceof ce))
1371
1371
  throw new fe("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1372
1372
  });
1373
- var r = Object.create(xt.prototype);
1373
+ var r = Object.create(St.prototype);
1374
1374
  return r.implicit = (this.implicit || []).concat(t), r.explicit = (this.explicit || []).concat(n), r.compiledImplicit = en(r, "implicit"), r.compiledExplicit = en(r, "explicit"), r.compiledTypeMap = ro(r.compiledImplicit, r.compiledExplicit), r;
1375
1375
  };
1376
- var En = xt, On = new ce("tag:yaml.org,2002:str", {
1376
+ var En = St, On = new ce("tag:yaml.org,2002:str", {
1377
1377
  kind: "scalar",
1378
1378
  construct: function(e) {
1379
1379
  return e !== null ? e : "";
@@ -1646,7 +1646,7 @@ function Io(e) {
1646
1646
  }
1647
1647
  return t[9] && (p = +t[10], c = +(t[11] || 0), u = (p * 60 + c) * 6e4, t[9] === "-" && (u = -u)), y = new Date(Date.UTC(n, r, a, i, o, s, l)), u && y.setTime(y.getTime() - u), y;
1648
1648
  }
1649
- function So(e) {
1649
+ function xo(e) {
1650
1650
  return e.toISOString();
1651
1651
  }
1652
1652
  var zn = new ce("tag:yaml.org,2002:timestamp", {
@@ -1654,14 +1654,14 @@ var zn = new ce("tag:yaml.org,2002:timestamp", {
1654
1654
  resolve: _o,
1655
1655
  construct: Io,
1656
1656
  instanceOf: Date,
1657
- represent: So
1657
+ represent: xo
1658
1658
  });
1659
- function xo(e) {
1659
+ function So(e) {
1660
1660
  return e === "<<" || e === null;
1661
1661
  }
1662
1662
  var Gn = new ce("tag:yaml.org,2002:merge", {
1663
1663
  kind: "scalar",
1664
- resolve: xo
1664
+ resolve: So
1665
1665
  }), Mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1666
1666
  \r`;
1667
1667
  function Ao(e) {
@@ -2216,7 +2216,7 @@ function si(e, t) {
2216
2216
  var li = ii, ui = si, or = {
2217
2217
  loadAll: li,
2218
2218
  load: ui
2219
- }, ir = Object.prototype.toString, sr = Object.prototype.hasOwnProperty, Bt = 65279, ci = 9, nt = 10, di = 13, pi = 32, fi = 33, mi = 34, At = 35, gi = 37, yi = 38, hi = 39, vi = 42, lr = 44, bi = 45, ft = 58, Ci = 61, ki = 62, wi = 63, _i = 64, ur = 91, cr = 93, Ii = 96, dr = 123, Si = 124, pr = 125, pe = {};
2219
+ }, ir = Object.prototype.toString, sr = Object.prototype.hasOwnProperty, Bt = 65279, ci = 9, nt = 10, di = 13, pi = 32, fi = 33, mi = 34, At = 35, gi = 37, yi = 38, hi = 39, vi = 42, lr = 44, bi = 45, ft = 58, Ci = 61, ki = 62, wi = 63, _i = 64, ur = 91, cr = 93, Ii = 96, dr = 123, xi = 124, pr = 125, pe = {};
2220
2220
  pe[0] = "\\0";
2221
2221
  pe[7] = "\\a";
2222
2222
  pe[8] = "\\b";
@@ -2232,7 +2232,7 @@ pe[133] = "\\N";
2232
2232
  pe[160] = "\\_";
2233
2233
  pe[8232] = "\\L";
2234
2234
  pe[8233] = "\\P";
2235
- var xi = [
2235
+ var Si = [
2236
2236
  "y",
2237
2237
  "Y",
2238
2238
  "yes",
@@ -2312,7 +2312,7 @@ function cn(e, t, n) {
2312
2312
  );
2313
2313
  }
2314
2314
  function Oi(e) {
2315
- return at(e) && e !== Bt && !mt(e) && e !== bi && e !== wi && e !== ft && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr && e !== At && e !== yi && e !== vi && e !== fi && e !== Si && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Ii;
2315
+ return at(e) && e !== Bt && !mt(e) && e !== bi && e !== wi && e !== ft && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr && e !== At && e !== yi && e !== vi && e !== fi && e !== xi && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Ii;
2316
2316
  }
2317
2317
  function Mi(e) {
2318
2318
  return !mt(e) && e !== ft;
@@ -2351,7 +2351,7 @@ function qi(e, t, n, r, a) {
2351
2351
  e.dump = function() {
2352
2352
  if (t.length === 0)
2353
2353
  return e.quotingType === rt ? '""' : "''";
2354
- if (!e.noCompatMode && (xi.indexOf(t) !== -1 || Ai.test(t)))
2354
+ if (!e.noCompatMode && (Si.indexOf(t) !== -1 || Ai.test(t)))
2355
2355
  return e.quotingType === rt ? '"' + t + '"' : "'" + t + "'";
2356
2356
  var i = e.indent * Math.max(1, n), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - i), s = r || e.flowLevel > -1 && n >= e.flowLevel;
2357
2357
  function l(u) {
@@ -2762,7 +2762,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2762
2762
  lineHeight: "0",
2763
2763
  width: n.value
2764
2764
  }));
2765
- return (a, i) => (m(), D(Se(e.as), {
2765
+ return (a, i) => (m(), D(xe(e.as), {
2766
2766
  "aria-hidden": e.decorative ? "true" : void 0,
2767
2767
  class: "kui-icon add-icon",
2768
2768
  "data-testid": "kui-icon-wrapper-add-icon",
@@ -2861,7 +2861,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2861
2861
  lineHeight: "0",
2862
2862
  width: n.value
2863
2863
  }));
2864
- return (a, i) => (m(), D(Se(e.as), {
2864
+ return (a, i) => (m(), D(xe(e.as), {
2865
2865
  "aria-hidden": e.decorative ? "true" : void 0,
2866
2866
  class: "kui-icon book-icon",
2867
2867
  "data-testid": "kui-icon-wrapper-book-icon",
@@ -2885,10 +2885,10 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2885
2885
  _: 1
2886
2886
  }, 8, ["aria-hidden", "style"]));
2887
2887
  }
2888
- }), Is = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-9af646cc"]]), Ss = (e) => (Je("data-v-84c4811e"), e = e(), Ze(), e), xs = ["aria-hidden"], As = {
2888
+ }), Is = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-9af646cc"]]), xs = (e) => (Je("data-v-84c4811e"), e = e(), Ze(), e), Ss = ["aria-hidden"], As = {
2889
2889
  key: 0,
2890
2890
  "data-testid": "kui-icon-svg-title"
2891
- }, $s = /* @__PURE__ */ Ss(() => /* @__PURE__ */ L("path", {
2891
+ }, $s = /* @__PURE__ */ xs(() => /* @__PURE__ */ L("path", {
2892
2892
  d: "M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",
2893
2893
  fill: "currentColor"
2894
2894
  }, null, -1)), Ts = /* @__PURE__ */ X({
@@ -2960,7 +2960,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2960
2960
  lineHeight: "0",
2961
2961
  width: n.value
2962
2962
  }));
2963
- return (a, i) => (m(), D(Se(e.as), {
2963
+ return (a, i) => (m(), D(xe(e.as), {
2964
2964
  "aria-hidden": e.decorative ? "true" : void 0,
2965
2965
  class: "kui-icon chevron-down-icon",
2966
2966
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
@@ -2979,7 +2979,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2979
2979
  }, [
2980
2980
  e.title ? (m(), $("title", As, q(e.title), 1)) : J("", !0),
2981
2981
  $s
2982
- ], 8, xs))
2982
+ ], 8, Ss))
2983
2983
  ]),
2984
2984
  _: 1
2985
2985
  }, 8, ["aria-hidden", "style"]));
@@ -3059,7 +3059,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3059
3059
  lineHeight: "0",
3060
3060
  width: n.value
3061
3061
  }));
3062
- return (a, i) => (m(), D(Se(e.as), {
3062
+ return (a, i) => (m(), D(xe(e.as), {
3063
3063
  "aria-hidden": e.decorative ? "true" : void 0,
3064
3064
  class: "kui-icon close-icon",
3065
3065
  "data-testid": "kui-icon-wrapper-close-icon",
@@ -3158,7 +3158,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3158
3158
  lineHeight: "0",
3159
3159
  width: n.value
3160
3160
  }));
3161
- return (a, i) => (m(), D(Se(e.as), {
3161
+ return (a, i) => (m(), D(xe(e.as), {
3162
3162
  "aria-hidden": e.decorative ? "true" : void 0,
3163
3163
  class: "kui-icon more-icon",
3164
3164
  "data-testid": "kui-icon-wrapper-more-icon",
@@ -3315,18 +3315,18 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3315
3315
  section: he.Basic
3316
3316
  }
3317
3317
  }, f = O(!1), I = O(!1), T = O(""), k = O({}), U = w(() => {
3318
- var d, x, B;
3318
+ var d, S, B;
3319
3319
  if (!k.value)
3320
3320
  return [];
3321
- const S = [], G = Object.keys(k.value).length;
3321
+ const x = [], G = Object.keys(k.value).length;
3322
3322
  for (const M in k.value) {
3323
- const b = (x = (d = a.configSchema) == null ? void 0 : d[M]) == null ? void 0 : x.order, K = (B = y[M]) == null ? void 0 : B.order;
3323
+ const b = (S = (d = a.configSchema) == null ? void 0 : d[M]) == null ? void 0 : S.order, K = (B = y[M]) == null ? void 0 : B.order;
3324
3324
  let F = G;
3325
- (K || K === 0) && (F = K === -1 ? G + 1 : K), b && (F = b === -1 ? G + 1 : b), S.push([M, F]);
3325
+ (K || K === 0) && (F = K === -1 ? G + 1 : K), b && (F = b === -1 ? G + 1 : b), x.push([M, F]);
3326
3326
  }
3327
- return S.sort(function(M, b) {
3327
+ return x.sort(function(M, b) {
3328
3328
  return M[1] - b[1];
3329
- }), S.map((M) => {
3329
+ }), x.map((M) => {
3330
3330
  var b, K;
3331
3331
  const F = M[0], H = (b = k.value) == null ? void 0 : b[F], te = ((K = a.configSchema) == null ? void 0 : K[F]) || {}, de = y[F];
3332
3332
  return {
@@ -3340,14 +3340,14 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3340
3340
  };
3341
3341
  }).filter((M) => !M.hidden && M.key !== a.pluginConfigKey);
3342
3342
  }), N = w(() => {
3343
- var d, x;
3343
+ var d, S;
3344
3344
  if (!k.value || !a.pluginConfigKey)
3345
3345
  return [];
3346
- const B = k.value[a.pluginConfigKey] || {}, S = Object.keys(B).length, G = [];
3346
+ const B = k.value[a.pluginConfigKey] || {}, x = Object.keys(B).length, G = [];
3347
3347
  for (const M in B) {
3348
- const b = (x = (d = a.pluginConfigSchema) == null ? void 0 : d[M]) == null ? void 0 : x.order, K = B[M];
3349
- let F = K != null && K !== "" ? S - 1 : S;
3350
- b && (F = b === -1 ? S + 1 : b), G.push([M, F]);
3348
+ const b = (S = (d = a.pluginConfigSchema) == null ? void 0 : d[M]) == null ? void 0 : S.order, K = B[M];
3349
+ let F = K != null && K !== "" ? x - 1 : x;
3350
+ b && (F = b === -1 ? x + 1 : b), G.push([M, F]);
3351
3351
  }
3352
3352
  return G.sort(function(M, b) {
3353
3353
  return M[1] - b[1];
@@ -3365,19 +3365,19 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3365
3365
  };
3366
3366
  }).filter((M) => !M.hidden);
3367
3367
  }), Z = w(() => {
3368
- var d, x, B, S;
3368
+ var d, S, B, x;
3369
3369
  return {
3370
3370
  basic: (d = U.value) == null ? void 0 : d.filter((G) => G.section === he.Basic),
3371
- advanced: (x = U.value) == null ? void 0 : x.filter((G) => G.section === he.Advanced),
3372
- plugin: (S = N.value) == null ? void 0 : S.concat((B = U.value) == null ? void 0 : B.filter((G) => G.section === he.Plugin))
3371
+ advanced: (S = U.value) == null ? void 0 : S.filter((G) => G.section === he.Advanced),
3372
+ plugin: (x = N.value) == null ? void 0 : x.concat((B = U.value) == null ? void 0 : B.filter((G) => G.section === he.Plugin))
3373
3373
  };
3374
3374
  }), h = w(() => {
3375
3375
  const d = [];
3376
3376
  return Z.value.basic.length && d.push("basic"), Z.value.advanced.length && d.push("advanced"), Z.value.plugin.length && d.push("plugin"), d;
3377
3377
  }), _ = w(() => {
3378
- var d, x;
3378
+ var d, S;
3379
3379
  let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3380
- return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (x = a.config) != null && x.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3380
+ return a.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((d = a.config) == null ? void 0 : d.controlPlaneId) || "") : a.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (S = a.config) != null && S.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3381
3381
  });
3382
3382
  return $e(f, (d) => {
3383
3383
  r("loading", d);
@@ -3392,17 +3392,17 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3392
3392
  throw new Error(i("errors.dataKeyUndefined", { dataKey: a.dataKey }));
3393
3393
  else
3394
3394
  k.value = { ...d };
3395
- Object.keys(a.configSchema).filter((x) => a.configSchema[x].forceShow).forEach((x) => {
3396
- k.value && typeof k.value[x] > "u" && (k.value[x] = null);
3395
+ Object.keys(a.configSchema).filter((S) => a.configSchema[S].forceShow).forEach((S) => {
3396
+ k.value && typeof k.value[S] > "u" && (k.value[S] = null);
3397
3397
  }), r("fetch:success", d);
3398
3398
  } catch (d) {
3399
- const x = o(d);
3400
- T.value = x.startsWith("code") ? i("baseConfigCard.errors.load") : x, I.value = !0, r("fetch:error", d);
3399
+ const S = o(d);
3400
+ T.value = S.startsWith("code") ? i("baseConfigCard.errors.load") : S, I.value = !0, r("fetch:error", d);
3401
3401
  } finally {
3402
3402
  f.value = !1;
3403
3403
  }
3404
- }), (d, x) => {
3405
- const B = R("KLabel"), S = R("KSelect"), G = R("KButton"), M = R("KSkeleton"), b = R("KEmptyState"), K = R("KCard");
3404
+ }), (d, S) => {
3405
+ const B = R("KLabel"), x = R("KSelect"), G = R("KButton"), M = R("KSkeleton"), b = R("KEmptyState"), K = R("KCard");
3406
3406
  return m(), D(K, {
3407
3407
  class: "kong-ui-entity-base-config-card",
3408
3408
  "title-tag": e.titleTag
@@ -3419,7 +3419,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3419
3419
  ]),
3420
3420
  _: 1
3421
3421
  }),
3422
- j(S, {
3422
+ j(x, {
3423
3423
  "data-testid": "select-config-format",
3424
3424
  items: u,
3425
3425
  onChange: c
@@ -3436,7 +3436,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3436
3436
  rel: "noopener",
3437
3437
  target: "_blank"
3438
3438
  }, [
3439
- j(g(Is), { size: g(Sa) }, null, 8, ["size"])
3439
+ j(g(Is), { size: g(xa) }, null, 8, ["size"])
3440
3440
  ], 8, zs)
3441
3441
  ]),
3442
3442
  _: 1
@@ -3605,13 +3605,13 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3605
3605
  u.value = !1;
3606
3606
  }
3607
3607
  }), (h, _) => {
3608
- const d = R("KSkeleton"), x = R("KEmptyState"), B = R("KAlert"), S = R("KButton"), G = R("KTabs"), M = R("KSlideout");
3609
- return m(), D(Se(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3608
+ const d = R("KSkeleton"), S = R("KEmptyState"), B = R("KAlert"), x = R("KButton"), G = R("KTabs"), M = R("KSlideout");
3609
+ return m(), D(xe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3610
3610
  default: v(() => [
3611
3611
  u.value ? (m(), D(d, {
3612
3612
  key: 0,
3613
3613
  type: "form"
3614
- })) : p.value ? (m(), D(x, {
3614
+ })) : p.value ? (m(), D(S, {
3615
3615
  key: 1,
3616
3616
  "action-button-text": g(o)("baseForm.actions.back"),
3617
3617
  "data-testid": "form-fetch-error",
@@ -3626,8 +3626,8 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3626
3626
  key: 2,
3627
3627
  "data-testid": "form-content",
3628
3628
  novalidate: a.noValidate,
3629
- onReset: St(U, ["prevent"]),
3630
- onSubmit: St(N, ["prevent"])
3629
+ onReset: xt(U, ["prevent"]),
3630
+ onSubmit: xt(N, ["prevent"])
3631
3631
  }, [
3632
3632
  ne(h.$slots, "default", {}, void 0, !0),
3633
3633
  e.errorMessage ? (m(), D(B, {
@@ -3638,7 +3638,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3638
3638
  }, null, 8, ["message"])) : J("", !0),
3639
3639
  L("div", Ws, [
3640
3640
  ne(h.$slots, "form-actions", {}, () => [
3641
- j(S, {
3641
+ j(x, {
3642
3642
  appearance: "tertiary",
3643
3643
  "data-testid": "form-view-configuration",
3644
3644
  onClick: _[0] || (_[0] = (b) => T())
@@ -3648,7 +3648,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3648
3648
  ]),
3649
3649
  _: 1
3650
3650
  }),
3651
- j(S, {
3651
+ j(x, {
3652
3652
  appearance: "secondary",
3653
3653
  "data-testid": "form-cancel",
3654
3654
  disabled: e.isReadonly,
@@ -3659,7 +3659,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3659
3659
  ]),
3660
3660
  _: 1
3661
3661
  }, 8, ["disabled"]),
3662
- j(S, {
3662
+ j(x, {
3663
3663
  appearance: "primary",
3664
3664
  "data-testid": "form-submit",
3665
3665
  disabled: y.value,
@@ -3767,7 +3767,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3767
3767
  ), T = w(() => i.value ? p.value > c.value : !1);
3768
3768
  return Ir(() => {
3769
3769
  l();
3770
- }), Sr(() => {
3770
+ }), xr(() => {
3771
3771
  I();
3772
3772
  }), (k, U) => {
3773
3773
  const N = R("KTooltip");
@@ -3782,7 +3782,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3782
3782
  }, [
3783
3783
  j(N, {
3784
3784
  "max-width": "300",
3785
- placement: "bottomStart",
3785
+ placement: "bottom-start",
3786
3786
  text: T.value ? y.value : ""
3787
3787
  }, {
3788
3788
  default: v(() => [
@@ -3794,7 +3794,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3794
3794
  ], 512);
3795
3795
  };
3796
3796
  }
3797
- }), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-471ce76e"]]), nl = { class: "toolbar-container" }, rl = {
3797
+ }), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-760084ce"]]), nl = { class: "toolbar-container" }, rl = {
3798
3798
  key: 0,
3799
3799
  class: "toolbar-button-container"
3800
3800
  }, al = ["data-testid"], ol = /* @__PURE__ */ X({
@@ -3916,7 +3916,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3916
3916
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3917
3917
  setup(e, { emit: t }) {
3918
3918
  const n = e, r = t, { i18n: { t: a } } = se.useI18n(), i = w(() => {
3919
- var d, x;
3919
+ var d, S;
3920
3920
  return typeof n.errorMessage == "string" ? {
3921
3921
  hasError: !!n.errorMessage,
3922
3922
  title: n.errorMessage,
@@ -3924,15 +3924,15 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3924
3924
  } : {
3925
3925
  hasError: !!n.errorMessage,
3926
3926
  title: (d = n.errorMessage) == null ? void 0 : d.title,
3927
- message: (x = n.errorMessage) == null ? void 0 : x.message
3927
+ message: (S = n.errorMessage) == null ? void 0 : S.message
3928
3928
  };
3929
3929
  }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), s = (d) => d.hasData || !!n.query, l = w(() => {
3930
3930
  const d = [];
3931
- return Object.keys(n.tableHeaders).forEach((x) => {
3932
- const B = n.tableHeaders[x];
3931
+ return Object.keys(n.tableHeaders).forEach((S) => {
3932
+ const B = n.tableHeaders[S];
3933
3933
  d.push({
3934
- label: B.label ?? x,
3935
- key: x,
3934
+ label: B.label ?? S,
3935
+ key: S,
3936
3936
  sortable: B.sortable ?? !1,
3937
3937
  hidable: !0
3938
3938
  });
@@ -3945,24 +3945,24 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3945
3945
  "data-testid": d.name,
3946
3946
  ...n.rowAttributes(d)
3947
3947
  }), p = O({}), c = (d) => {
3948
- var x;
3949
- return (x = p.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${d.id}"]`);
3948
+ var S;
3949
+ return (S = p.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${d.id}"]`);
3950
3950
  }, y = (d) => {
3951
- const x = {
3951
+ const S = {
3952
3952
  "data-testid": d.headerKey,
3953
3953
  ...n.cellAttributes(d)
3954
3954
  };
3955
- return d.colIndex === 0 && (x.style = {
3955
+ return d.colIndex === 0 && (S.style = {
3956
3956
  maxWidth: "250px",
3957
3957
  overflowX: "hidden",
3958
3958
  textOverflow: "ellipsis"
3959
- }), x;
3959
+ }), S;
3960
3960
  }, f = () => {
3961
3961
  r("empty-state-cta-clicked"), I();
3962
3962
  }, I = () => {
3963
3963
  r("clear-search-input");
3964
- }, T = w(() => n.disableRowClick ? void 0 : (d, x) => {
3965
- r("click:row", x);
3964
+ }, T = w(() => n.disableRowClick ? void 0 : (d, S) => {
3965
+ r("click:row", S);
3966
3966
  }), k = (d) => {
3967
3967
  r("sort", d);
3968
3968
  }, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = O(N(o.value)), h = w(() => {
@@ -3974,8 +3974,8 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3974
3974
  }), _ = (d) => {
3975
3975
  Z.value = d, o.value && U(o.value, d);
3976
3976
  };
3977
- return (d, x) => {
3978
- const B = R("KButton"), S = R("KDropdown"), G = R("KTable"), M = R("KCard");
3977
+ return (d, S) => {
3978
+ const B = R("KButton"), x = R("KDropdown"), G = R("KTable"), M = R("KCard");
3979
3979
  return m(), D(M, {
3980
3980
  class: "kong-ui-entity-base-table",
3981
3981
  title: e.title,
@@ -4012,7 +4012,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4012
4012
  "table-preferences": Z.value,
4013
4013
  onEmptyStateActionClick: f,
4014
4014
  "onRow:click": T.value,
4015
- onSort: x[0] || (x[0] = (b) => k(b)),
4015
+ onSort: S[0] || (S[0] = (b) => k(b)),
4016
4016
  "onUpdate:tablePreferences": _
4017
4017
  }, Be({
4018
4018
  toolbar: v(({ state: b }) => [
@@ -4030,8 +4030,8 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4030
4030
  class: "actions-container",
4031
4031
  "data-testid": b.name
4032
4032
  }, [
4033
- j(S, {
4034
- "kpop-attributes": { placement: "bottomEnd" },
4033
+ j(x, {
4034
+ "kpop-attributes": { placement: "bottom-end" },
4035
4035
  width: e.dropdownMenuWidth
4036
4036
  }, {
4037
4037
  items: v(() => [
@@ -4095,7 +4095,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4095
4095
  }, 8, ["title", "title-tag"]);
4096
4096
  };
4097
4097
  }
4098
- }), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-67bd29c7"]]), sl = {
4098
+ }), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-940ccab7"]]), sl = {
4099
4099
  key: 0,
4100
4100
  class: "kong-ui-entity-delete-error"
4101
4101
  }, ll = {
@@ -4237,7 +4237,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4237
4237
  }), yl = {
4238
4238
  key: 1,
4239
4239
  class: "kong-ui-entity-filter"
4240
- }, hl = { class: "kong-ui-entity-filter-menu" }, vl = ["data-testid"], bl = ["onClick", "onKeydown"], Cl = { class: "menu-item-indicator" }, kl = { class: "menu-item-body" }, wl = ["for"], _l = { class: "menu-item-buttons" }, Il = { class: "filter-clear-button-container" }, Sl = /* @__PURE__ */ X({
4240
+ }, hl = { class: "kong-ui-entity-filter-menu" }, vl = ["data-testid"], bl = ["onClick", "onKeydown"], Cl = { class: "menu-item-indicator" }, kl = { class: "menu-item-body" }, wl = ["for"], _l = { class: "menu-item-buttons" }, Il = { class: "filter-clear-button-container" }, xl = /* @__PURE__ */ X({
4241
4241
  __name: "EntityFilter",
4242
4242
  props: {
4243
4243
  // filter config, either exact match or fuzzy match
@@ -4288,9 +4288,9 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4288
4288
  y("");
4289
4289
  }, I = (h) => `filter-${h}`, T = (h) => {
4290
4290
  var _, d;
4291
- return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((x) => ({
4292
- value: x,
4293
- label: x
4291
+ return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((S) => ({
4292
+ value: S,
4293
+ label: S
4294
4294
  }));
4295
4295
  }, k = (h) => {
4296
4296
  var _, d;
@@ -4303,11 +4303,11 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4303
4303
  }, N = () => {
4304
4304
  o.value = {}, Z(!0);
4305
4305
  }, Z = (h = !1) => {
4306
- const _ = Object.keys(o.value).reduce((d, x) => (o.value[x] && (d[x] = `${o.value[x]}`), d), {});
4306
+ const _ = Object.keys(o.value).reduce((d, S) => (o.value[S] && (d[S] = `${o.value[S]}`), d), {});
4307
4307
  h && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
4308
4308
  };
4309
4309
  return (h, _) => {
4310
- const d = R("KInput"), x = R("KButton"), B = R("KSelect");
4310
+ const d = R("KInput"), S = R("KButton"), B = R("KSelect");
4311
4311
  return e.config.isExactMatch ? (m(), D(d, {
4312
4312
  key: 0,
4313
4313
  autocomplete: "off",
@@ -4330,7 +4330,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4330
4330
  ]),
4331
4331
  _: 1
4332
4332
  }, 8, ["model-value", "placeholder"])) : (m(), $("div", yl, [
4333
- j(x, {
4333
+ j(S, {
4334
4334
  appearance: "tertiary",
4335
4335
  "data-testid": "filter-button",
4336
4336
  onClick: p
@@ -4348,55 +4348,55 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4348
4348
  [je, i.value]
4349
4349
  ]),
4350
4350
  Ne(L("div", hl, [
4351
- (m(!0), $(be, null, ve(u.value, (S) => {
4351
+ (m(!0), $(be, null, ve(u.value, (x) => {
4352
4352
  var G, M;
4353
4353
  return m(), $("div", {
4354
- key: S.value,
4354
+ key: x.value,
4355
4355
  class: "kong-ui-entity-filter-menu-item",
4356
- "data-testid": S.value
4356
+ "data-testid": x.value
4357
4357
  }, [
4358
4358
  L("span", {
4359
- class: Me(["menu-item-title", { expanded: s.value.has(S.value) }]),
4359
+ class: Me(["menu-item-title", { expanded: s.value.has(x.value) }]),
4360
4360
  role: "button",
4361
4361
  tabindex: "0",
4362
- onClick: (b) => c(S.value),
4363
- onKeydown: wr((b) => c(S.value), ["enter"])
4362
+ onClick: (b) => c(x.value),
4363
+ onKeydown: wr((b) => c(x.value), ["enter"])
4364
4364
  }, [
4365
- Y(q(S.label) + " ", 1),
4365
+ Y(q(x.label) + " ", 1),
4366
4366
  Ne(L("span", Cl, null, 512), [
4367
- [je, l.value.includes(S.value)]
4367
+ [je, l.value.includes(x.value)]
4368
4368
  ]),
4369
4369
  j(g(Ns), {
4370
- class: Me(["menu-item-expand-icon", { expanded: s.value.has(S.value) }]),
4370
+ class: Me(["menu-item-expand-icon", { expanded: s.value.has(x.value) }]),
4371
4371
  color: g(_a)
4372
4372
  }, null, 8, ["class", "color"])
4373
4373
  ], 42, bl),
4374
4374
  Ne(L("div", kl, [
4375
4375
  L("label", {
4376
4376
  class: "menu-item-label",
4377
- for: I(S.value)
4377
+ for: I(x.value)
4378
4378
  }, q(g(n)("filter.fieldLabel")), 9, wl),
4379
- ((M = (G = e.config.schema) == null ? void 0 : G[S.value]) == null ? void 0 : M.type) === "select" ? (m(), D(B, {
4379
+ ((M = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : M.type) === "select" ? (m(), D(B, {
4380
4380
  key: 0,
4381
- id: I(S.value),
4382
- modelValue: o.value[S.value],
4383
- "onUpdate:modelValue": (b) => o.value[S.value] = b,
4384
- items: T(S.value),
4381
+ id: I(x.value),
4382
+ modelValue: o.value[x.value],
4383
+ "onUpdate:modelValue": (b) => o.value[x.value] = b,
4384
+ items: T(x.value),
4385
4385
  placeholder: g(n)("filter.selectPlaceholder")
4386
4386
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), D(d, {
4387
4387
  key: 1,
4388
- id: I(S.value),
4389
- modelValue: o.value[S.value],
4390
- "onUpdate:modelValue": (b) => o.value[S.value] = b,
4388
+ id: I(x.value),
4389
+ modelValue: o.value[x.value],
4390
+ "onUpdate:modelValue": (b) => o.value[x.value] = b,
4391
4391
  autocomplete: "off",
4392
4392
  placeholder: g(n)("filter.inputPlaceholder"),
4393
- type: k(S.value)
4393
+ type: k(x.value)
4394
4394
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4395
4395
  ], 512), [
4396
- [je, s.value.has(S.value)]
4396
+ [je, s.value.has(x.value)]
4397
4397
  ]),
4398
4398
  Ne(L("div", _l, [
4399
- j(x, {
4399
+ j(S, {
4400
4400
  appearance: "tertiary",
4401
4401
  "data-testid": "apply-filter",
4402
4402
  size: "small",
@@ -4407,11 +4407,11 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4407
4407
  ]),
4408
4408
  _: 1
4409
4409
  }),
4410
- j(x, {
4410
+ j(S, {
4411
4411
  appearance: "tertiary",
4412
4412
  "data-testid": "clear-filter",
4413
4413
  size: "small",
4414
- onClick: (b) => U(S.value)
4414
+ onClick: (b) => U(x.value)
4415
4415
  }, {
4416
4416
  default: v(() => [
4417
4417
  Y(q(g(n)("filter.clearButtonText")), 1)
@@ -4419,12 +4419,12 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4419
4419
  _: 2
4420
4420
  }, 1032, ["onClick"])
4421
4421
  ], 512), [
4422
- [je, s.value.has(S.value)]
4422
+ [je, s.value.has(x.value)]
4423
4423
  ])
4424
4424
  ], 8, vl);
4425
4425
  }), 128)),
4426
4426
  L("div", Il, [
4427
- j(x, {
4427
+ j(S, {
4428
4428
  appearance: "tertiary",
4429
4429
  size: "small",
4430
4430
  onClick: N
@@ -4441,7 +4441,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4441
4441
  ]));
4442
4442
  };
4443
4443
  }
4444
- }), xl = /* @__PURE__ */ Ce(Sl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
4444
+ }), Sl = /* @__PURE__ */ Ce(xl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
4445
4445
  __name: "PermissionsWrapper",
4446
4446
  props: {
4447
4447
  /**
@@ -4547,7 +4547,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4547
4547
  key: 0,
4548
4548
  class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
4549
4549
  }, [
4550
- e.title ? (m(), D(Se(e.titleTag), {
4550
+ e.title ? (m(), D(xe(e.titleTag), {
4551
4551
  key: 0,
4552
4552
  id: g(n),
4553
4553
  class: "form-section-title"
@@ -4619,25 +4619,25 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4619
4619
  const K = T.value ? y.value.find((H) => H.id === b) : (F = u.value) == null ? void 0 : F.find((H) => H.id === b);
4620
4620
  return K ? K.name : b;
4621
4621
  }, N = () => {
4622
- _.value = "", Z.value = [], S.value = [], a("cancel");
4622
+ _.value = "", Z.value = [], x.value = [], a("cancel");
4623
4623
  }, Z = O([]), h = O(!1), _ = O(""), d = async () => {
4624
4624
  if (!o.value.length) {
4625
- _.value = "", S.value = [], a("cancel");
4625
+ _.value = "", x.value = [], a("cancel");
4626
4626
  return;
4627
4627
  }
4628
- h.value = !0, _.value = "", Z.value = [], S.value = [];
4628
+ h.value = !0, _.value = "", Z.value = [], x.value = [];
4629
4629
  try {
4630
4630
  const b = o.value.map((H) => B(H)), K = await Promise.allSettled(b);
4631
4631
  let F = !0;
4632
4632
  K.forEach((H) => {
4633
4633
  H.status !== "fulfilled" && (F = !1);
4634
- }), F ? (Z.value = [], S.value = [], a("add:success", o.value), o.value = []) : (Z.value.length && a("add:partial-success", Z.value), o.value = [], G(K));
4634
+ }), F ? (Z.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Z.value.length && a("add:partial-success", Z.value), o.value = [], G(K));
4635
4635
  } catch {
4636
4636
  _.value = n("consumer_groups.errors.add"), a("error", _.value);
4637
4637
  } finally {
4638
4638
  h.value = !1;
4639
4639
  }
4640
- }, x = w(() => {
4640
+ }, S = w(() => {
4641
4641
  var K, F, H, te;
4642
4642
  let b = `${r.config.apiBaseUrl}${Ee.list[r.config.app].forConsumer}`;
4643
4643
  return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerId}/gi, ((F = r.config) == null ? void 0 : F.consumerId) || "") : r.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = r.config) != null && H.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((te = r.config) == null ? void 0 : te.consumerId) || "")), b;
@@ -4646,14 +4646,14 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4646
4646
  group: b
4647
4647
  };
4648
4648
  try {
4649
- const F = await i.post(x.value, K);
4649
+ const F = await i.post(S.value, K);
4650
4650
  return Z.value.push(b), F;
4651
4651
  } catch (F) {
4652
4652
  let H = `${U(b)} - ${F.message}`;
4653
4653
  return F.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
4654
4654
  }
4655
- }, S = O([]), G = (b) => {
4656
- S.value = b.map((K) => {
4655
+ }, x = O([]), G = (b) => {
4656
+ x.value = b.map((K) => {
4657
4657
  var F;
4658
4658
  return (F = K.reason) == null ? void 0 : F.message;
4659
4659
  }).filter(Boolean);
@@ -4691,12 +4691,12 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4691
4691
  width: "100%",
4692
4692
  onQueryChange: g(s)
4693
4693
  }, null, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4694
- _.value || f.value || S.value.length ? (m(), $("div", Dl, [
4694
+ _.value || f.value || x.value.length ? (m(), $("div", Dl, [
4695
4695
  j(H, { appearance: "danger" }, {
4696
4696
  default: v(() => [
4697
4697
  L("p", null, q(g(n)("consumer_groups.errors.add")), 1),
4698
- S.value.length ? (m(), $("ul", zl, [
4699
- (m(!0), $(be, null, ve(S.value, (de, We) => (m(), $("li", { key: We }, q(de), 1))), 128))
4698
+ x.value.length ? (m(), $("ul", zl, [
4699
+ (m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, q(de), 1))), 128))
4700
4700
  ])) : J("", !0),
4701
4701
  L("div", null, q(_.value || f.value), 1)
4702
4702
  ]),
@@ -4793,7 +4793,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4793
4793
  k.value = "";
4794
4794
  }, d = () => {
4795
4795
  l.value++;
4796
- }, x = O(null), B = (A, W) => {
4796
+ }, S = O(null), B = (A, W) => {
4797
4797
  const re = A.id;
4798
4798
  if (!W(re)) {
4799
4799
  n("copy:error", {
@@ -4808,7 +4808,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4808
4808
  field: "id",
4809
4809
  message: i("consumer_groups.copy.success", { val: re })
4810
4810
  });
4811
- }, S = (A, W) => {
4811
+ }, x = (A, W) => {
4812
4812
  const re = JSON.stringify(A);
4813
4813
  if (!W(re)) {
4814
4814
  n("copy:error", {
@@ -4878,12 +4878,12 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4878
4878
  $e(h, (A) => {
4879
4879
  var W, re, ge, we;
4880
4880
  if (Array.isArray((W = A == null ? void 0 : A.response) == null ? void 0 : W.data) && (Vt.value = A.response.data.length > 0), A.status === qe.Error) {
4881
- x.value = {
4881
+ S.value = {
4882
4882
  title: i("consumer_groups.errors.general")
4883
- }, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (x.value.message = A.error.response.data.message), n("error", A.error);
4883
+ }, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (S.value.message = A.error.response.data.message), n("error", A.error);
4884
4884
  return;
4885
4885
  }
4886
- x.value = null;
4886
+ S.value = null;
4887
4887
  });
4888
4888
  const Ct = O({
4889
4889
  ctaPath: u.value ? void 0 : r.config.createRoute,
@@ -4903,7 +4903,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4903
4903
  "disable-sorting": c.value,
4904
4904
  "empty-state-options": Ct.value,
4905
4905
  "enable-entity-actions": "",
4906
- "error-message": x.value,
4906
+ "error-message": S.value,
4907
4907
  fetcher: g(Z),
4908
4908
  "fetcher-cache-key": l.value,
4909
4909
  "pagination-type": "offset",
@@ -4918,7 +4918,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4918
4918
  onSort: d
4919
4919
  }, {
4920
4920
  "toolbar-filter": v(() => [
4921
- u.value ? J("", !0) : (m(), D(g(xl), {
4921
+ u.value ? J("", !0) : (m(), D(g(Sl), {
4922
4922
  key: 0,
4923
4923
  modelValue: k.value,
4924
4924
  "onUpdate:modelValue": W[0] || (W[0] = (Q) => k.value = Q),
@@ -4965,7 +4965,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4965
4965
  default: v(() => [
4966
4966
  (m(!0), $(be, null, ve(Q, (Pe) => (m(), D(ge, {
4967
4967
  key: Pe,
4968
- onClick: W[2] || (W[2] = St(() => {
4968
+ onClick: W[2] || (W[2] = xt(() => {
4969
4969
  }, ["stop"]))
4970
4970
  }, {
4971
4971
  default: v(() => [
@@ -4996,7 +4996,7 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
4996
4996
  default: v(({ copyToClipboard: Pe }) => [
4997
4997
  j(Xe, {
4998
4998
  "data-testid": "action-entity-copy-json",
4999
- onClick: (kr) => S(Q, Pe)
4999
+ onClick: (kr) => x(Q, Pe)
5000
5000
  }, {
5001
5001
  default: v(() => [
5002
5002
  Y(q(g(i)("consumer_groups.actions.copy_json")), 1)
@@ -5165,11 +5165,11 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
5165
5165
  }, d = () => {
5166
5166
  var C;
5167
5167
  i.push(((C = n.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
5168
- }, x = (C) => {
5168
+ }, S = (C) => {
5169
5169
  r("error", C);
5170
5170
  }, B = (C) => {
5171
5171
  r("loading", C);
5172
- }, S = async (C) => {
5172
+ }, x = async (C) => {
5173
5173
  var ae, V, z, me, ke;
5174
5174
  o.fields.name = ((ae = C == null ? void 0 : C.item) == null ? void 0 : ae.name) || ((V = C == null ? void 0 : C.consumer_group) == null ? void 0 : V.name) || (C == null ? void 0 : C.name) || "";
5175
5175
  const P = ((z = C == null ? void 0 : C.item) == null ? void 0 : z.tags) || (C == null ? void 0 : C.consumer_group.tags) || (C == null ? void 0 : C.tags) || [];
@@ -5263,8 +5263,8 @@ const El = ["aria-labelledby"], Ol = { class: "form-section-wrapper" }, Ml = {
5263
5263
  "form-fields": M.value,
5264
5264
  "is-readonly": o.readonly,
5265
5265
  onCancel: d,
5266
- "onFetch:error": P[3] || (P[3] = (z) => x(z)),
5267
- "onFetch:success": S,
5266
+ "onFetch:error": P[3] || (P[3] = (z) => S(z)),
5267
+ "onFetch:success": x,
5268
5268
  onLoading: P[4] || (P[4] = (z) => B(z)),
5269
5269
  onSubmit: bt
5270
5270
  }, {