@kong-ui-public/entities-consumer-groups 3.2.2 → 3.2.3

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 xe, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as F, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as E, watch as $e, renderSlot as ne, unref as g, onBeforeMount as gt, resolveComponent as V, createSlots as Be, createVNode as j, createTextVNode as Y, renderList as ve, withModifiers as xt, withDirectives as Ne, vShow as je, Fragment as be, normalizeClass as Me, withKeys as wr, useSlots as jt, useCssVars as bn, inject as _r, onMounted as Sr, onUnmounted as xr, normalizeProps as Ar, guardReactiveProps as Ir, 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 F, createCommentVNode as J, pushScopeId as Je, popScopeId as We, createElementVNode as L, ref as E, 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 Sr, onUnmounted as xr, normalizeProps as Ar, guardReactiveProps as Ir, mergeProps as $r, Teleport as Tr, reactive as zt } from "vue";
2
2
  import { useRouter as Ot } from "vue-router";
3
3
  import { createI18n as Cn, i18nTComponent as kn } from "@kong-ui-public/i18n";
4
4
  import Gt from "axios";
@@ -8,7 +8,7 @@ const Ht = "24px", jr = (e, t) => {
8
8
  for (const [r, a] of t)
9
9
  n[r] = a;
10
10
  return n;
11
- }, Or = (e) => (Je("data-v-1d2a8d30"), e = e(), Ze(), e), Er = ["aria-hidden"], Mr = {
11
+ }, Or = (e) => (Je("data-v-f89f0eca"), e = e(), We(), e), Er = ["aria-hidden"], Mr = {
12
12
  key: 0,
13
13
  "data-testid": "kui-icon-svg-title"
14
14
  }, qr = /* @__PURE__ */ Or(() => /* @__PURE__ */ L("path", {
@@ -107,7 +107,7 @@ const Ht = "24px", jr = (e, t) => {
107
107
  _: 1
108
108
  }, 8, ["aria-hidden", "style"]));
109
109
  }
110
- }), Kr = /* @__PURE__ */ jr(Fr, [["__scopeId", "data-v-1d2a8d30"]]), Br = {
110
+ }), Kr = /* @__PURE__ */ jr(Fr, [["__scopeId", "data-v-f89f0eca"]]), Br = {
111
111
  list: {
112
112
  table_headers: {
113
113
  name: "Name",
@@ -266,7 +266,7 @@ function Pr() {
266
266
  }
267
267
  };
268
268
  }
269
- function Rr() {
269
+ function Vr() {
270
270
  return {
271
271
  debounce: (e, t) => {
272
272
  let n;
@@ -278,7 +278,7 @@ function Rr() {
278
278
  }
279
279
  };
280
280
  }
281
- const kt = "khcp-user-table-preferences", Vr = {
281
+ const kt = "khcp-user-table-preferences", Rr = {
282
282
  pageSize: 30,
283
283
  sortColumnKey: void 0,
284
284
  sortColumnOrder: void 0,
@@ -309,7 +309,7 @@ function Dr() {
309
309
  },
310
310
  getTablePreferences: (n) => {
311
311
  const r = t();
312
- return (r == null ? void 0 : r.get(n)) || void 0 || Vr;
312
+ return (r == null ? void 0 : r.get(n)) || void 0 || Rr;
313
313
  },
314
314
  deleteAllTablePreferences: () => {
315
315
  localStorage.removeItem(kt);
@@ -354,7 +354,7 @@ const zr = {
354
354
  noSearchResultsMessage: "Please adjust the criteria and try again.",
355
355
  noSearchResultsCtaText: "Clear"
356
356
  }
357
- }, Zr = {
357
+ }, Wr = {
358
358
  title: "Configuration",
359
359
  actions: {
360
360
  copy: "Copy JSON"
@@ -389,7 +389,7 @@ const zr = {
389
389
  entryTitle: "Entry {index}",
390
390
  structuredFormat: "Structured"
391
391
  }
392
- }, Wr = {
392
+ }, Zr = {
393
393
  filterButtonText: "Filter",
394
394
  fieldLabel: "Filter by:",
395
395
  inputPlaceholder: "Enter a value",
@@ -423,8 +423,8 @@ const zr = {
423
423
  deleteModal: Gr,
424
424
  baseForm: Hr,
425
425
  baseTable: Jr,
426
- baseConfigCard: Zr,
427
- filter: Wr,
426
+ baseConfigCard: Wr,
427
+ filter: Zr,
428
428
  debouncedFilter: Yr,
429
429
  errors: Qr,
430
430
  validationErrors: Xr,
@@ -487,8 +487,8 @@ function na(e, t, n, r = {
487
487
  searchKeys: ["id"]
488
488
  }) {
489
489
  n || (n = "1000");
490
- const { axiosInstance: a } = Et(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Rr(), s = o(async (h) => {
491
- await Z(h);
490
+ const { axiosInstance: a } = Et(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Vr(), s = o(async (h) => {
491
+ await W(h);
492
492
  }, 200), l = E(!1), u = E(""), p = E(""), c = E([]), y = E([]), f = E(void 0), S = g(t);
493
493
  let T = `${e.apiBaseUrl}${S}`;
494
494
  e.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
@@ -502,7 +502,7 @@ function na(e, t, n, r = {
502
502
  } finally {
503
503
  l.value = !1;
504
504
  }
505
- }, N = E(""), Z = async (h) => {
505
+ }, N = E(""), W = async (h) => {
506
506
  var _, d, A;
507
507
  if (N.value !== h)
508
508
  if (N.value = h || "", f.value === void 0)
@@ -683,13 +683,13 @@ const xn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
683
683
  if (!t)
684
684
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
685
685
  return t.shift(), t;
686
- }, Zt = (e) => e === "*" || e === "x" || e === "X", Wt = (e) => {
686
+ }, Wt = (e) => e === "*" || e === "x" || e === "X", Zt = (e) => {
687
687
  const t = parseInt(e, 10);
688
688
  return isNaN(t) ? e : t;
689
689
  }, la = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], ua = (e, t) => {
690
- if (Zt(e) || Zt(t))
690
+ if (Wt(e) || Wt(t))
691
691
  return 0;
692
- const [n, r] = la(Wt(e), Wt(t));
692
+ const [n, r] = la(Zt(e), Zt(t));
693
693
  return n > r ? 1 : n < r ? -1 : 0;
694
694
  }, Yt = (e, t) => {
695
695
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
@@ -822,7 +822,7 @@ const se = {
822
822
  setup(e) {
823
823
  const { i18n: { t } } = se.useI18n();
824
824
  return (n, r) => {
825
- const a = V("KButton");
825
+ const a = R("KButton");
826
826
  return m(), $("div", null, [
827
827
  j(a, {
828
828
  appearance: "tertiary",
@@ -848,7 +848,7 @@ const se = {
848
848
  setup(e) {
849
849
  const { i18n: { t } } = se.useI18n();
850
850
  return (n, r) => {
851
- const a = V("KBadge");
851
+ const a = R("KBadge");
852
852
  return m(), D(a, {
853
853
  appearance: e.status ? "success" : "neutral"
854
854
  }, {
@@ -1000,7 +1000,7 @@ const se = {
1000
1000
  }
1001
1001
  }), y = E(), { isTruncated: f } = se.useTruncationDetector(y);
1002
1002
  return (S, T) => {
1003
- const k = V("KLabel"), U = V("KBadge"), N = V("KCopy"), Z = V("KTooltip");
1003
+ const k = R("KLabel"), U = R("KBadge"), N = R("KCopy"), W = R("KTooltip");
1004
1004
  return m(), $("div", Aa, [
1005
1005
  L("div", {
1006
1006
  class: "config-card-details-label",
@@ -1093,7 +1093,7 @@ const se = {
1093
1093
  "is-array-item": "",
1094
1094
  item: h
1095
1095
  }, null, 8, ["index", "item"]))), 128))
1096
- ], 8, qa)) : (m(), D(Z, {
1096
+ ], 8, qa)) : (m(), D(W, {
1097
1097
  key: 4,
1098
1098
  text: g(f) ? e.item.value : ""
1099
1099
  }, {
@@ -1160,7 +1160,7 @@ const se = {
1160
1160
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
1161
1161
  });
1162
1162
  return (a, i) => {
1163
- const o = V("KBadge"), s = V("KCodeBlock");
1163
+ const o = R("KBadge"), s = R("KCodeBlock");
1164
1164
  return m(), $("div", Ba, [
1165
1165
  t.fetcherUrl ? (m(), $("div", La, [
1166
1166
  j(o, {
@@ -1201,14 +1201,14 @@ function Ua(e) {
1201
1201
  function Pa(e) {
1202
1202
  return Array.isArray(e) ? e : Nn(e) ? [] : [e];
1203
1203
  }
1204
- function Ra(e, t) {
1204
+ function Va(e, t) {
1205
1205
  var n, r, a, i;
1206
1206
  if (t)
1207
1207
  for (i = Object.keys(t), n = 0, r = i.length; n < r; n += 1)
1208
1208
  a = i[n], e[a] = t[a];
1209
1209
  return e;
1210
1210
  }
1211
- function Va(e, t) {
1211
+ function Ra(e, t) {
1212
1212
  var n = "", r;
1213
1213
  for (r = 0; r < t; r += 1)
1214
1214
  n += e;
@@ -1217,13 +1217,13 @@ function Va(e, t) {
1217
1217
  function Da(e) {
1218
1218
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1219
1219
  }
1220
- var za = Nn, Ga = Ua, Ha = Pa, Ja = Va, Za = Da, Wa = Ra, ie = {
1220
+ var za = Nn, Ga = Ua, Ha = Pa, Ja = Ra, Wa = Da, Za = Va, ie = {
1221
1221
  isNothing: za,
1222
1222
  isObject: Ga,
1223
1223
  toArray: Ha,
1224
1224
  repeat: Ja,
1225
- isNegativeZero: Za,
1226
- extend: Wa
1225
+ isNegativeZero: Wa,
1226
+ extend: Za
1227
1227
  };
1228
1228
  function jn(e, t) {
1229
1229
  var n = "", r = e.reason || "(unknown reason)";
@@ -1625,17 +1625,17 @@ var Un = new ce("tag:yaml.org,2002:float", {
1625
1625
  Ln,
1626
1626
  Un
1627
1627
  ]
1628
- }), Rn = Pn, Vn = new RegExp(
1628
+ }), Vn = Pn, Rn = new RegExp(
1629
1629
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1630
1630
  ), Dn = new RegExp(
1631
1631
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
1632
1632
  );
1633
1633
  function _o(e) {
1634
- return e === null ? !1 : Vn.exec(e) !== null || Dn.exec(e) !== null;
1634
+ return e === null ? !1 : Rn.exec(e) !== null || Dn.exec(e) !== null;
1635
1635
  }
1636
1636
  function So(e) {
1637
1637
  var t, n, r, a, i, o, s, l = 0, u = null, p, c, y;
1638
- if (t = Vn.exec(e), t === null && (t = Dn.exec(e)), t === null)
1638
+ if (t = Rn.exec(e), t === null && (t = Dn.exec(e)), t === null)
1639
1639
  throw new Error("Date resolve error");
1640
1640
  if (n = +t[1], r = +t[2] - 1, a = +t[3], !t[4])
1641
1641
  return new Date(Date.UTC(n, r, a));
@@ -1747,7 +1747,7 @@ function Ko(e) {
1747
1747
  r = o[t], a = Object.keys(r), i[t] = [a[0], r[a[0]]];
1748
1748
  return i;
1749
1749
  }
1750
- var Zn = new ce("tag:yaml.org,2002:pairs", {
1750
+ var Wn = new ce("tag:yaml.org,2002:pairs", {
1751
1751
  kind: "sequence",
1752
1752
  resolve: Fo,
1753
1753
  construct: Ko
@@ -1764,11 +1764,11 @@ function Lo(e) {
1764
1764
  function Uo(e) {
1765
1765
  return e !== null ? e : {};
1766
1766
  }
1767
- var Wn = new ce("tag:yaml.org,2002:set", {
1767
+ var Zn = new ce("tag:yaml.org,2002:set", {
1768
1768
  kind: "mapping",
1769
1769
  resolve: Lo,
1770
1770
  construct: Uo
1771
- }), qt = Rn.extend({
1771
+ }), qt = Vn.extend({
1772
1772
  implicit: [
1773
1773
  zn,
1774
1774
  Gn
@@ -1776,10 +1776,10 @@ var Wn = new ce("tag:yaml.org,2002:set", {
1776
1776
  explicit: [
1777
1777
  Hn,
1778
1778
  Jn,
1779
- Zn,
1780
- Wn
1779
+ Wn,
1780
+ Zn
1781
1781
  ]
1782
- }), qe = Object.prototype.hasOwnProperty, ct = 1, Yn = 2, Qn = 3, dt = 4, St = 1, Po = 2, tn = 3, Ro = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vo = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Xn = /^(?:!|!!|![a-z\-]+!)$/i, er = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1782
+ }), qe = Object.prototype.hasOwnProperty, ct = 1, Yn = 2, Qn = 3, dt = 4, St = 1, Po = 2, tn = 3, Vo = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ro = /[\x85\u2028\u2029]/, Do = /[,\[\]\{\}]/, Xn = /^(?:!|!!|![a-z\-]+!)$/i, er = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1783
1783
  function nn(e) {
1784
1784
  return Object.prototype.toString.call(e);
1785
1785
  }
@@ -1816,9 +1816,9 @@ function Jo(e) {
1816
1816
  );
1817
1817
  }
1818
1818
  var tr = new Array(256), nr = new Array(256);
1819
- for (var Re = 0; Re < 256; Re++)
1820
- tr[Re] = rn(Re) ? 1 : 0, nr[Re] = rn(Re);
1821
- function Zo(e, t) {
1819
+ for (var Ve = 0; Ve < 256; Ve++)
1820
+ tr[Ve] = rn(Ve) ? 1 : 0, nr[Ve] = rn(Ve);
1821
+ function Wo(e, t) {
1822
1822
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || qt, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1823
1823
  }
1824
1824
  function rr(e, t) {
@@ -1861,7 +1861,7 @@ function Ee(e, t, n, r) {
1861
1861
  for (a = 0, i = s.length; a < i; a += 1)
1862
1862
  o = s.charCodeAt(a), o === 9 || 32 <= o && o <= 1114111 || O(e, "expected valid JSON character");
1863
1863
  else
1864
- Ro.test(s) && O(e, "the stream contains non-printable characters");
1864
+ Vo.test(s) && O(e, "the stream contains non-printable characters");
1865
1865
  e.result += s;
1866
1866
  }
1867
1867
  }
@@ -1918,7 +1918,7 @@ function Kt(e, t) {
1918
1918
  t === 1 ? e.result += " " : t > 1 && (e.result += ie.repeat(`
1919
1919
  `, t - 1));
1920
1920
  }
1921
- function Wo(e, t, n) {
1921
+ function Zo(e, t, n) {
1922
1922
  var r, a, i, o, s, l, u, p, c = e.kind, y = e.result, f;
1923
1923
  if (f = e.input.charCodeAt(e.position), ye(f) || De(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (a = e.input.charCodeAt(e.position + 1), ye(a) || n && De(a)))
1924
1924
  return !1;
@@ -2135,7 +2135,7 @@ function Ge(e, t, n, r, a) {
2135
2135
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, i = o = s = dt === n || Qn === n, r && oe(e, !0, -1) && (u = !0, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)), l === 1)
2136
2136
  for (; ni(e) || ri(e); )
2137
2137
  oe(e, !0, -1) ? (u = !0, s = i, e.lineIndent > t ? l = 1 : e.lineIndent === t ? l = 0 : e.lineIndent < t && (l = -1)) : s = !1;
2138
- if (s && (s = u || a), (l === 1 || dt === n) && (ct === n || Yn === n ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (sn(e, k) || ti(e, k, T)) || Xo(e, T) ? p = !0 : (o && ei(e, T) || Yo(e, T) || Qo(e, T) ? p = !0 : ai(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Wo(e, T, ct === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && sn(e, k))), e.tag === null)
2138
+ if (s && (s = u || a), (l === 1 || dt === n) && (ct === n || Yn === n ? T = t : T = t + 1, k = e.position - e.lineStart, l === 1 ? s && (sn(e, k) || ti(e, k, T)) || Xo(e, T) ? p = !0 : (o && ei(e, T) || Yo(e, T) || Qo(e, T) ? p = !0 : ai(e) ? (p = !0, (e.tag !== null || e.anchor !== null) && O(e, "alias node should not have any properties")) : Zo(e, T, ct === n) && (p = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (p = s && sn(e, k))), e.tag === null)
2139
2139
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2140
2140
  else if (e.tag === "?") {
2141
2141
  for (e.result !== null && e.kind !== "scalar" && O(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
@@ -2178,7 +2178,7 @@ function oi(e) {
2178
2178
  }
2179
2179
  o !== 0 && Ft(e), qe.call(an, r) ? an[r](e, r, a) : pt(e, 'unknown document directive "' + r + '"');
2180
2180
  }
2181
- if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : i && O(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Vo.test(e.input.slice(t, e.position)) && pt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && vt(e)) {
2181
+ if (oe(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, oe(e, !0, -1)) : i && O(e, "directives end mark is expected"), Ge(e, e.lineIndent - 1, dt, !1, !0), oe(e, !0, -1), e.checkLineBreaks && Ro.test(e.input.slice(t, e.position)) && pt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && vt(e)) {
2182
2182
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, oe(e, !0, -1));
2183
2183
  return;
2184
2184
  }
@@ -2190,7 +2190,7 @@ function oi(e) {
2190
2190
  function ar(e, t) {
2191
2191
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2192
2192
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2193
- var n = new Zo(e, t), r = e.indexOf("\0");
2193
+ var n = new Wo(e, t), r = e.indexOf("\0");
2194
2194
  for (r !== -1 && (n.position = r, O(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2195
2195
  n.lineIndent += 1, n.position += 1;
2196
2196
  for (; n.position < n.length - 1; )
@@ -2325,13 +2325,13 @@ function fr(e) {
2325
2325
  var t = /^\n* /;
2326
2326
  return t.test(e);
2327
2327
  }
2328
- var mr = 1, Tt = 2, gr = 3, yr = 4, Ve = 5;
2328
+ var mr = 1, Tt = 2, gr = 3, yr = 4, Re = 5;
2329
2329
  function qi(e, t, n, r, a, i, o, s) {
2330
2330
  var l, u = 0, p = null, c = !1, y = !1, f = r !== -1, S = -1, T = Ei(et(e, 0)) && Mi(et(e, e.length - 1));
2331
2331
  if (t || o)
2332
2332
  for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2333
2333
  if (u = et(e, l), !at(u))
2334
- return Ve;
2334
+ return Re;
2335
2335
  T = T && cn(u, p, s), p = u;
2336
2336
  }
2337
2337
  else {
@@ -2340,12 +2340,12 @@ function qi(e, t, n, r, a, i, o, s) {
2340
2340
  c = !0, f && (y = y || // Foldable line = too long, and not more-indented.
2341
2341
  l - S - 1 > r && e[S + 1] !== " ", S = l);
2342
2342
  else if (!at(u))
2343
- return Ve;
2343
+ return Re;
2344
2344
  T = T && cn(u, p, s), p = u;
2345
2345
  }
2346
2346
  y = y || f && l - S - 1 > r && e[S + 1] !== " ";
2347
2347
  }
2348
- return !c && !y ? T && !o && !a(e) ? mr : i === rt ? Ve : Tt : n > 9 && fr(e) ? Ve : o ? i === rt ? Ve : Tt : y ? yr : gr;
2348
+ return !c && !y ? T && !o && !a(e) ? mr : i === rt ? Re : Tt : n > 9 && fr(e) ? Re : o ? i === rt ? Re : Tt : y ? yr : gr;
2349
2349
  }
2350
2350
  function Fi(e, t, n, r, a) {
2351
2351
  e.dump = function() {
@@ -2375,7 +2375,7 @@ function Fi(e, t, n, r, a) {
2375
2375
  return "|" + dn(t, e.indent) + pn(ln(t, i));
2376
2376
  case yr:
2377
2377
  return ">" + dn(t, e.indent) + pn(ln(Ki(t, o), i));
2378
- case Ve:
2378
+ case Re:
2379
2379
  return '"' + Bi(t) + '"';
2380
2380
  default:
2381
2381
  throw new fe("impossible error: invalid scalar style");
@@ -2494,7 +2494,7 @@ function Te(e, t, n, r, a, i, o) {
2494
2494
  }
2495
2495
  return !0;
2496
2496
  }
2497
- function Ri(e, t) {
2497
+ function Vi(e, t) {
2498
2498
  var n = [], r = [], a, i;
2499
2499
  for (Nt(e, n, r), a = 0, i = r.length; a < i; a += 1)
2500
2500
  t.duplicates.push(n[r[a]]);
@@ -2512,15 +2512,15 @@ function Nt(e, t, n) {
2512
2512
  for (r = Object.keys(e), a = 0, i = r.length; a < i; a += 1)
2513
2513
  Nt(e[r[a]], t, n);
2514
2514
  }
2515
- function Vi(e, t) {
2515
+ function Ri(e, t) {
2516
2516
  t = t || {};
2517
2517
  var n = new ji(t);
2518
- n.noRefs || Ri(e, n);
2518
+ n.noRefs || Vi(e, n);
2519
2519
  var r = e;
2520
2520
  return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Te(n, 0, r, !0, !0) ? n.dump + `
2521
2521
  ` : "";
2522
2522
  }
2523
- var Di = Vi, zi = {
2523
+ var Di = Ri, zi = {
2524
2524
  dump: Di
2525
2525
  };
2526
2526
  function Lt(e, t) {
@@ -2528,13 +2528,13 @@ function Lt(e, t) {
2528
2528
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2529
2529
  };
2530
2530
  }
2531
- var Gi = ce, Hi = On, Ji = Fn, Zi = Pn, Wi = Rn, Yi = qt, Qi = or.load, Xi = or.loadAll, es = zi.dump, ts = fe, ns = {
2531
+ var Gi = ce, Hi = On, Ji = Fn, Wi = Pn, Zi = Vn, Yi = qt, Qi = or.load, Xi = or.loadAll, es = zi.dump, ts = fe, ns = {
2532
2532
  binary: Hn,
2533
2533
  float: Un,
2534
2534
  map: qn,
2535
2535
  null: Kn,
2536
- pairs: Zn,
2537
- set: Wn,
2536
+ pairs: Wn,
2537
+ set: Zn,
2538
2538
  timestamp: zn,
2539
2539
  bool: Bn,
2540
2540
  int: Ln,
@@ -2546,8 +2546,8 @@ var Gi = ce, Hi = On, Ji = Fn, Zi = Pn, Wi = Rn, Yi = qt, Qi = or.load, Xi = or.
2546
2546
  Type: Gi,
2547
2547
  Schema: Hi,
2548
2548
  FAILSAFE_SCHEMA: Ji,
2549
- JSON_SCHEMA: Zi,
2550
- CORE_SCHEMA: Wi,
2549
+ JSON_SCHEMA: Wi,
2550
+ CORE_SCHEMA: Zi,
2551
2551
  DEFAULT_SCHEMA: Yi,
2552
2552
  load: Qi,
2553
2553
  loadAll: Xi,
@@ -2573,7 +2573,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2573
2573
  return Object.keys(r).length === 0 && r.constructor === Object ? "" : is.dump(r).trim();
2574
2574
  });
2575
2575
  return (r, a) => {
2576
- const i = V("KCodeBlock");
2576
+ const i = R("KCodeBlock");
2577
2577
  return m(), $("div", ss, [
2578
2578
  t.yamlRecord ? (m(), D(i, {
2579
2579
  key: 0,
@@ -2687,7 +2687,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2687
2687
  for (const [r, a] of t)
2688
2688
  n[r] = a;
2689
2689
  return n;
2690
- }, fs = (e) => (Je("data-v-1d2a8d30"), e = e(), Ze(), e), ms = ["aria-hidden"], gs = {
2690
+ }, fs = (e) => (Je("data-v-f89f0eca"), e = e(), We(), e), ms = ["aria-hidden"], gs = {
2691
2691
  key: 0,
2692
2692
  "data-testid": "kui-icon-svg-title"
2693
2693
  }, ys = /* @__PURE__ */ fs(() => /* @__PURE__ */ L("path", {
@@ -2786,7 +2786,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2786
2786
  _: 1
2787
2787
  }, 8, ["aria-hidden", "style"]));
2788
2788
  }
2789
- }), vs = /* @__PURE__ */ ot(hs, [["__scopeId", "data-v-1d2a8d30"]]), bs = (e) => (Je("data-v-929b4762"), e = e(), Ze(), e), Cs = ["aria-hidden"], ks = {
2789
+ }), vs = /* @__PURE__ */ ot(hs, [["__scopeId", "data-v-f89f0eca"]]), bs = (e) => (Je("data-v-04be5bd5"), e = e(), We(), e), Cs = ["aria-hidden"], ks = {
2790
2790
  key: 0,
2791
2791
  "data-testid": "kui-icon-svg-title"
2792
2792
  }, ws = /* @__PURE__ */ bs(() => /* @__PURE__ */ L("path", {
@@ -2885,7 +2885,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2885
2885
  _: 1
2886
2886
  }, 8, ["aria-hidden", "style"]));
2887
2887
  }
2888
- }), Ss = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-929b4762"]]), xs = (e) => (Je("data-v-219f8484"), e = e(), Ze(), e), As = ["aria-hidden"], Is = {
2888
+ }), Ss = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-04be5bd5"]]), xs = (e) => (Je("data-v-5cdeb7d0"), e = e(), We(), e), As = ["aria-hidden"], Is = {
2889
2889
  key: 0,
2890
2890
  "data-testid": "kui-icon-svg-title"
2891
2891
  }, $s = /* @__PURE__ */ xs(() => /* @__PURE__ */ L("path", {
@@ -2984,7 +2984,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2984
2984
  _: 1
2985
2985
  }, 8, ["aria-hidden", "style"]));
2986
2986
  }
2987
- }), Ns = /* @__PURE__ */ ot(Ts, [["__scopeId", "data-v-219f8484"]]), js = (e) => (Je("data-v-ed11facd"), e = e(), Ze(), e), Os = ["aria-hidden"], Es = {
2987
+ }), Ns = /* @__PURE__ */ ot(Ts, [["__scopeId", "data-v-5cdeb7d0"]]), js = (e) => (Je("data-v-8d5fae6f"), e = e(), We(), e), Os = ["aria-hidden"], Es = {
2988
2988
  key: 0,
2989
2989
  "data-testid": "kui-icon-svg-title"
2990
2990
  }, Ms = /* @__PURE__ */ js(() => /* @__PURE__ */ L("path", {
@@ -3083,7 +3083,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3083
3083
  _: 1
3084
3084
  }, 8, ["aria-hidden", "style"]));
3085
3085
  }
3086
- }), Fs = /* @__PURE__ */ ot(qs, [["__scopeId", "data-v-ed11facd"]]), Ks = (e) => (Je("data-v-cf4e7d0b"), e = e(), Ze(), e), Bs = ["aria-hidden"], Ls = {
3086
+ }), Fs = /* @__PURE__ */ ot(qs, [["__scopeId", "data-v-8d5fae6f"]]), Ks = (e) => (Je("data-v-032e3956"), e = e(), We(), e), Bs = ["aria-hidden"], Ls = {
3087
3087
  key: 0,
3088
3088
  "data-testid": "kui-icon-svg-title"
3089
3089
  }, Us = /* @__PURE__ */ Ks(() => /* @__PURE__ */ L("path", {
@@ -3182,7 +3182,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3182
3182
  _: 1
3183
3183
  }, 8, ["aria-hidden", "style"]));
3184
3184
  }
3185
- }), Rs = /* @__PURE__ */ ot(Ps, [["__scopeId", "data-v-cf4e7d0b"]]), Vs = {
3185
+ }), Vs = /* @__PURE__ */ ot(Ps, [["__scopeId", "data-v-032e3956"]]), Rs = {
3186
3186
  class: "config-card-title",
3187
3187
  "data-testid": "config-card-title"
3188
3188
  }, Ds = { class: "config-card-actions" }, zs = ["href"], Gs = { class: "config-card-details-section" }, Hs = /* @__PURE__ */ X({
@@ -3364,7 +3364,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3364
3364
  section: he.Plugin
3365
3365
  };
3366
3366
  }).filter((M) => !M.hidden);
3367
- }), Z = w(() => {
3367
+ }), W = w(() => {
3368
3368
  var d, A, B, x;
3369
3369
  return {
3370
3370
  basic: (d = U.value) == null ? void 0 : d.filter((G) => G.section === he.Basic),
@@ -3373,7 +3373,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3373
3373
  };
3374
3374
  }), h = w(() => {
3375
3375
  const d = [];
3376
- return Z.value.basic.length && d.push("basic"), Z.value.advanced.length && d.push("advanced"), Z.value.plugin.length && d.push("plugin"), d;
3376
+ return W.value.basic.length && d.push("basic"), W.value.advanced.length && d.push("advanced"), W.value.plugin.length && d.push("plugin"), d;
3377
3377
  }), _ = w(() => {
3378
3378
  var d, A;
3379
3379
  let B = `${a.config.apiBaseUrl}${a.fetchUrl}`;
@@ -3402,7 +3402,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3402
3402
  f.value = !1;
3403
3403
  }
3404
3404
  }), (d, A) => {
3405
- const B = V("KLabel"), x = V("KSelect"), G = V("KButton"), M = V("KSkeleton"), b = V("KEmptyState"), K = V("KCard");
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
@@ -3465,7 +3465,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3465
3465
  "fetcher-url": _.value,
3466
3466
  format: p.value,
3467
3467
  "prop-list-types": h.value,
3468
- "property-collections": Z.value,
3468
+ "property-collections": W.value,
3469
3469
  record: k.value
3470
3470
  }, Be({ _: 2 }, [
3471
3471
  ve(Object.keys(d.$slots), (q) => ({
@@ -3485,7 +3485,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3485
3485
  e.hideTitle ? void 0 : {
3486
3486
  name: "title",
3487
3487
  fn: v(() => [
3488
- L("span", Vs, [
3488
+ L("span", Rs, [
3489
3489
  ne(d.$slots, "title", {}, () => [
3490
3490
  Y(F(g(i)("baseConfigCard.title")), 1)
3491
3491
  ], !0)
@@ -3496,7 +3496,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3496
3496
  ]), 1032, ["title-tag"]);
3497
3497
  };
3498
3498
  }
3499
- }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-f40a683b"]]), Zs = ["novalidate"], Ws = {
3499
+ }), Js = /* @__PURE__ */ Ce(Hs, [["__scopeId", "data-v-f40a683b"]]), Ws = ["novalidate"], Zs = {
3500
3500
  class: "form-actions",
3501
3501
  "data-testid": "form-actions"
3502
3502
  }, Ys = /* @__PURE__ */ X({
@@ -3580,7 +3580,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3580
3580
  r("cancel");
3581
3581
  }, N = () => {
3582
3582
  y.value || r("submit");
3583
- }, Z = E([
3583
+ }, W = E([
3584
3584
  {
3585
3585
  title: o("baseForm.configuration.yaml"),
3586
3586
  hash: "#yaml"
@@ -3605,7 +3605,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3605
3605
  u.value = !1;
3606
3606
  }
3607
3607
  }), (h, _) => {
3608
- const d = V("KSkeleton"), A = V("KEmptyState"), B = V("KAlert"), x = V("KButton"), G = V("KTabs"), M = V("KSlideout");
3608
+ const d = R("KSkeleton"), A = R("KEmptyState"), B = R("KAlert"), x = R("KButton"), G = R("KTabs"), M = R("KSlideout");
3609
3609
  return m(), D(xe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3610
3610
  default: v(() => [
3611
3611
  u.value ? (m(), D(d, {
@@ -3636,7 +3636,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3636
3636
  "data-testid": "form-error",
3637
3637
  message: e.errorMessage
3638
3638
  }, null, 8, ["message"])) : J("", !0),
3639
- L("div", Ws, [
3639
+ L("div", Zs, [
3640
3640
  ne(h.$slots, "form-actions", {}, () => [
3641
3641
  j(x, {
3642
3642
  appearance: "tertiary",
@@ -3672,7 +3672,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3672
3672
  }, 8, ["disabled"])
3673
3673
  ], !0)
3674
3674
  ])
3675
- ], 40, Zs)),
3675
+ ], 40, Ws)),
3676
3676
  j(M, {
3677
3677
  "close-on-blur": !1,
3678
3678
  "data-testid": "form-view-configuration-slideout",
@@ -3686,7 +3686,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3686
3686
  L("div", null, F(g(o)("baseForm.configuration.message")), 1),
3687
3687
  j(G, {
3688
3688
  "data-testid": "form-view-configuration-slideout-tabs",
3689
- tabs: Z.value
3689
+ tabs: W.value
3690
3690
  }, {
3691
3691
  json: v(() => [
3692
3692
  j(Tn, {
@@ -3744,12 +3744,12 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3744
3744
  o && (o.disconnect(), o = void 0);
3745
3745
  }, l = () => {
3746
3746
  var k, U, N;
3747
- let Z = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3747
+ let W = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3748
3748
  if (n.value && "getComputedStyle" in window) {
3749
3749
  const h = window.getComputedStyle(n.value);
3750
- Z -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3750
+ W -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3751
3751
  }
3752
- p.value = ((U = r.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, c.value = Z, y.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
3752
+ p.value = ((U = r.value) == null ? void 0 : U.getBoundingClientRect().width) || 0, c.value = W, y.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
3753
3753
  }, u = E({}), p = E(0), c = E(0), y = E(""), f = w(() => [r.value, n.value]), S = $e(
3754
3754
  f,
3755
3755
  (k) => {
@@ -3770,7 +3770,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3770
3770
  }), xr(() => {
3771
3771
  S();
3772
3772
  }), (k, U) => {
3773
- const N = V("KTooltip");
3773
+ const N = R("KTooltip");
3774
3774
  return m(), $("span", {
3775
3775
  ref_key: "contentRef",
3776
3776
  ref: u,
@@ -3965,17 +3965,17 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3965
3965
  r("click:row", A);
3966
3966
  }), k = (d) => {
3967
3967
  r("sort", d);
3968
- }, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = E(N(o.value)), h = w(() => {
3968
+ }, { setTablePreferences: U, getTablePreferences: N } = Dr(), W = E(N(o.value)), h = w(() => {
3969
3969
  const d = N(o.value);
3970
3970
  return {
3971
3971
  ...n.initialFetcherParams,
3972
3972
  ...d
3973
3973
  };
3974
3974
  }), _ = (d) => {
3975
- Z.value = d, o.value && U(o.value, d);
3975
+ W.value = d, o.value && U(o.value, d);
3976
3976
  };
3977
3977
  return (d, A) => {
3978
- const B = V("KButton"), x = V("KDropdown"), G = V("KTable"), M = V("KCard");
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,
@@ -4009,7 +4009,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4009
4009
  "search-input": e.query,
4010
4010
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
4011
4011
  sortable: !e.disableSorting,
4012
- "table-preferences": Z.value,
4012
+ "table-preferences": W.value,
4013
4013
  onEmptyStateActionClick: f,
4014
4014
  "onRow:click": T.value,
4015
4015
  onSort: A[0] || (A[0] = (b) => k(b)),
@@ -4050,7 +4050,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4050
4050
  size: "small"
4051
4051
  }, {
4052
4052
  default: v(() => [
4053
- j(g(Rs))
4053
+ j(g(Vs))
4054
4054
  ]),
4055
4055
  _: 1
4056
4056
  })
@@ -4146,7 +4146,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4146
4146
  a("proceed");
4147
4147
  };
4148
4148
  return (l, u) => {
4149
- const p = V("KAlert"), c = V("KPrompt");
4149
+ const p = R("KAlert"), c = R("KPrompt");
4150
4150
  return m(), D(c, {
4151
4151
  "action-button-appearance": "danger",
4152
4152
  "action-button-disabled": e.actionPending,
@@ -4299,15 +4299,15 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4299
4299
  o.value = {
4300
4300
  ...o.value,
4301
4301
  [h]: ""
4302
- }, Z();
4302
+ }, W();
4303
4303
  }, N = () => {
4304
- o.value = {}, Z(!0);
4305
- }, Z = (h = !1) => {
4304
+ o.value = {}, W(!0);
4305
+ }, W = (h = !1) => {
4306
4306
  const _ = Object.keys(o.value).reduce((d, A) => (o.value[A] && (d[A] = `${o.value[A]}`), d), {});
4307
4307
  h && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
4308
4308
  };
4309
4309
  return (h, _) => {
4310
- const d = V("KInput"), A = V("KButton"), B = V("KSelect");
4310
+ const d = R("KInput"), A = R("KButton"), B = R("KSelect");
4311
4311
  return e.config.isExactMatch ? (m(), D(d, {
4312
4312
  key: 0,
4313
4313
  autocomplete: "off",
@@ -4400,7 +4400,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4400
4400
  appearance: "tertiary",
4401
4401
  "data-testid": "apply-filter",
4402
4402
  size: "small",
4403
- onClick: _[0] || (_[0] = (b) => Z(!0))
4403
+ onClick: _[0] || (_[0] = (b) => W(!0))
4404
4404
  }, {
4405
4405
  default: v(() => [
4406
4406
  Y(F(g(n)("filter.applyButtonText")), 1)
@@ -4572,7 +4572,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4572
4572
  ])
4573
4573
  ], 10, Ol));
4574
4574
  }
4575
- }), vn = /* @__PURE__ */ Ce(Kl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Ut, useDeleteUrlBuilder: Bl, useErrors: Ll, useExternalLinkCreator: lu, useFetchUrlBuilder: uu, useFetcher: Ul, useDebouncedFilter: vr, useStringHelpers: cu, useHelpers: du, useGatewayFeatureSupported: pu, useTruncationDetector: fu, useValidators: Pl } = se, Rl = { class: "add-to-group-form-container" }, Vl = { class: "add-to-group-cta-text" }, Dl = {
4575
+ }), vn = /* @__PURE__ */ Ce(Kl, [["__scopeId", "data-v-b1f74200"]]), { useAxios: Ut, useDeleteUrlBuilder: Bl, useErrors: Ll, useExternalLinkCreator: lu, useFetchUrlBuilder: uu, useFetcher: Ul, useDebouncedFilter: vr, useStringHelpers: cu, useHelpers: du, useGatewayFeatureSupported: pu, useTruncationDetector: fu, useValidators: Pl } = se, Vl = { class: "add-to-group-form-container" }, Rl = { class: "add-to-group-cta-text" }, Dl = {
4576
4576
  key: 0,
4577
4577
  class: "kong-ui-entity-add-to-groups-error"
4578
4578
  }, zl = { key: 0 }, Gl = /* @__PURE__ */ X({
@@ -4619,19 +4619,19 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4619
4619
  const K = T.value ? y.value.find((H) => H.id === b) : (q = u.value) == null ? void 0 : q.find((H) => H.id === b);
4620
4620
  return K ? K.name : b;
4621
4621
  }, N = () => {
4622
- _.value = "", Z.value = [], x.value = [], a("cancel");
4623
- }, Z = E([]), h = E(!1), _ = E(""), d = async () => {
4622
+ _.value = "", W.value = [], x.value = [], a("cancel");
4623
+ }, W = E([]), h = E(!1), _ = E(""), d = async () => {
4624
4624
  if (!o.value.length) {
4625
4625
  _.value = "", x.value = [], a("cancel");
4626
4626
  return;
4627
4627
  }
4628
- h.value = !0, _.value = "", Z.value = [], x.value = [];
4628
+ h.value = !0, _.value = "", W.value = [], x.value = [];
4629
4629
  try {
4630
4630
  const b = o.value.map((H) => B(H)), K = await Promise.allSettled(b);
4631
4631
  let q = !0;
4632
4632
  K.forEach((H) => {
4633
4633
  H.status !== "fulfilled" && (q = !1);
4634
- }), q ? (Z.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Z.value.length && a("add:partial-success", Z.value), o.value = [], G(K));
4634
+ }), q ? (W.value = [], x.value = [], a("add:success", o.value), o.value = []) : (W.value.length && a("add:partial-success", W.value), o.value = [], G(K));
4635
4635
  } catch {
4636
4636
  _.value = n("consumer_groups.errors.add"), a("error", _.value);
4637
4637
  } finally {
@@ -4647,7 +4647,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4647
4647
  };
4648
4648
  try {
4649
4649
  const q = await i.post(A.value, K);
4650
- return Z.value.push(b), q;
4650
+ return W.value.push(b), q;
4651
4651
  } catch (q) {
4652
4652
  let H = `${U(b)} - ${q.message}`;
4653
4653
  return q.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
@@ -4663,7 +4663,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4663
4663
  }, { immediate: !0, deep: !0 }), $e(() => r.visible, () => {
4664
4664
  r.visible && c();
4665
4665
  }, { immediate: !0 }), (b, K) => {
4666
- const q = V("KMultiselect"), H = V("KAlert"), te = V("KPrompt");
4666
+ const q = R("KMultiselect"), H = R("KAlert"), te = R("KPrompt");
4667
4667
  return m(), D(te, {
4668
4668
  "action-button-disabled": h.value,
4669
4669
  class: "kong-ui-entities-add-to-groups-modal",
@@ -4674,8 +4674,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4674
4674
  onProceed: d
4675
4675
  }, {
4676
4676
  default: v(() => [
4677
- L("div", Rl, [
4678
- L("p", Vl, F(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4677
+ L("div", Vl, [
4678
+ L("p", Rl, F(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4679
4679
  j(q, {
4680
4680
  modelValue: o.value,
4681
4681
  "onUpdate:modelValue": K[0] || (K[0] = (de) => o.value = de),
@@ -4696,7 +4696,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4696
4696
  default: v(() => [
4697
4697
  L("p", null, F(g(n)("consumer_groups.errors.add")), 1),
4698
4698
  x.value.length ? (m(), $("ul", zl, [
4699
- (m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, F(de), 1))), 128))
4699
+ (m(!0), $(be, null, ve(x.value, (de, Ze) => (m(), $("li", { key: Ze }, F(de), 1))), 128))
4700
4700
  ])) : J("", !0),
4701
4701
  L("div", null, F(_.value || f.value), 1)
4702
4702
  ]),
@@ -4714,7 +4714,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4714
4714
  for (const [r, a] of t)
4715
4715
  n[r] = a;
4716
4716
  return n;
4717
- }, Hl = /* @__PURE__ */ Pt(Gl, [["__scopeId", "data-v-bb0a8037"]]), Jl = { class: "kong-ui-entities-consumer-groups-list" }, Zl = { key: 1 }, Wl = /* @__PURE__ */ X({
4717
+ }, Hl = /* @__PURE__ */ Pt(Gl, [["__scopeId", "data-v-bb0a8037"]]), Jl = { class: "kong-ui-entities-consumer-groups-list" }, Wl = { key: 1 }, Zl = /* @__PURE__ */ X({
4718
4718
  __name: "ConsumerGroupList",
4719
4719
  props: {
4720
4720
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4760,8 +4760,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4760
4760
  },
4761
4761
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4762
4762
  setup(e, { emit: t }) {
4763
- var Vt;
4764
- const n = t, r = e, { i18nT: a, i18n: { t: i } } = yt.useI18n(), o = Ot(), { axiosInstance: s } = Ut((Vt = r.config) == null ? void 0 : Vt.axiosRequestConfig), l = E(1), u = w(() => !!r.config.consumerId), p = w(
4763
+ var Rt;
4764
+ const n = t, r = e, { i18nT: a, i18n: { t: i } } = yt.useI18n(), o = Ot(), { axiosInstance: s } = Ut((Rt = r.config) == null ? void 0 : Rt.axiosRequestConfig), l = E(1), u = w(() => !!r.config.consumerId), p = w(
4765
4765
  () => u.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
4766
4766
  ), c = w(() => r.config.app !== "kongManager" || !!r.config.disableSorting), y = {
4767
4767
  name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
@@ -4770,9 +4770,9 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4770
4770
  const f = y, S = (I) => ({
4771
4771
  "data-testid": I.username ?? I.custom_id ?? I.id
4772
4772
  }), T = w(() => {
4773
- var W, re, ge, we;
4773
+ var Z, re, ge, we;
4774
4774
  let I = `${r.config.apiBaseUrl}${Oe.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
4775
- return r.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), I;
4775
+ return r.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((Z = r.config) == null ? void 0 : Z.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), I;
4776
4776
  }), k = E(""), U = w(() => {
4777
4777
  const I = r.config.app === "konnect" || r.config.isExactMatch;
4778
4778
  return I ? {
@@ -4789,13 +4789,13 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4789
4789
  },
4790
4790
  schema: r.config.filterSchema
4791
4791
  };
4792
- }), N = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: Z, fetcherState: h } = Ul(r.config, T.value, N.value), _ = () => {
4792
+ }), N = w(() => u.value && !r.config.paginatedEndpoint ? "consumer_groups" : void 0), { fetcher: W, fetcherState: h } = Ul(r.config, T.value, N.value), _ = () => {
4793
4793
  k.value = "";
4794
4794
  }, d = () => {
4795
4795
  l.value++;
4796
- }, A = E(null), B = (I, W) => {
4796
+ }, A = E(null), B = (I, Z) => {
4797
4797
  const re = I.id;
4798
- if (!W(re)) {
4798
+ if (!Z(re)) {
4799
4799
  n("copy:error", {
4800
4800
  entity: I,
4801
4801
  field: "id",
@@ -4808,9 +4808,9 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4808
4808
  field: "id",
4809
4809
  message: i("consumer_groups.copy.success", { val: re })
4810
4810
  });
4811
- }, x = (I, W) => {
4811
+ }, x = (I, Z) => {
4812
4812
  const re = JSON.stringify(I);
4813
- if (!W(re)) {
4813
+ if (!Z(re)) {
4814
4814
  n("copy:error", {
4815
4815
  entity: I,
4816
4816
  message: i("consumer_groups.errors.copy")
@@ -4830,18 +4830,18 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4830
4830
  }), b = (I) => ({
4831
4831
  label: i("consumer_groups.actions.edit"),
4832
4832
  to: r.config.getEditRoute(I)
4833
- }), K = E(void 0), q = E(!1), H = E(!1), te = E(""), de = Bl(r.config, T.value), We = (I) => {
4833
+ }), K = E(void 0), q = E(!1), H = E(!1), te = E(""), de = Bl(r.config, T.value), Ze = (I) => {
4834
4834
  K.value = I, q.value = !0;
4835
4835
  }, bt = () => {
4836
4836
  q.value = !1;
4837
4837
  }, it = async () => {
4838
- var I, W, re;
4838
+ var I, Z, re;
4839
4839
  if ((I = K.value) != null && I.id) {
4840
4840
  H.value = !0;
4841
4841
  try {
4842
4842
  await s.delete(de(K.value.id)), H.value = !1, q.value = !1, l.value++, n("delete:success", K.value);
4843
4843
  } catch (ge) {
4844
- te.value = ((re = (W = ge.response) == null ? void 0 : W.data) == null ? void 0 : re.message) || ge.message || i("consumer_groups.errors.delete"), n("error", ge);
4844
+ te.value = ((re = (Z = ge.response) == null ? void 0 : Z.data) == null ? void 0 : re.message) || ge.message || i("consumer_groups.errors.delete"), n("error", ge);
4845
4845
  } finally {
4846
4846
  H.value = !1;
4847
4847
  }
@@ -4850,34 +4850,34 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4850
4850
  Le.value = !0;
4851
4851
  }, C = () => {
4852
4852
  Le.value = !1;
4853
- }, P = (I, W) => {
4854
- W || C(), l.value++, n("add:success", I);
4853
+ }, P = (I, Z) => {
4854
+ Z || C(), l.value++, n("add:success", I);
4855
4855
  }, ae = () => {
4856
4856
  u.value && Ye();
4857
- }, R = E(void 0), z = E(!1), me = E(""), ke = (I) => {
4858
- R.value = I, z.value = !0;
4857
+ }, V = E(void 0), z = E(!1), me = E(""), ke = (I) => {
4858
+ V.value = I, z.value = !0;
4859
4859
  }, le = () => {
4860
- z.value = !1, R.value = void 0;
4860
+ z.value = !1, V.value = void 0;
4861
4861
  }, Ue = w(() => {
4862
- var W, re, ge, we;
4862
+ var Z, re, ge, we;
4863
4863
  let I = `${r.config.apiBaseUrl}${Oe.list[r.config.app].oneForConsumer}`;
4864
- return r.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((W = r.config) == null ? void 0 : W.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), I;
4864
+ return r.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((Z = r.config) == null ? void 0 : Z.controlPlaneId) || "").replace(/{consumerId}/gi, ((re = r.config) == null ? void 0 : re.consumerId) || "") : r.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), I;
4865
4865
  }), Qe = E(!1), br = async () => {
4866
- if (R.value) {
4866
+ if (V.value) {
4867
4867
  Qe.value = !0;
4868
4868
  try {
4869
- const I = Ue.value.replace(/{consumerGroupId}/gi, R.value.id);
4870
- await s.delete(I), n("remove:success", R.value), le(), l.value++;
4869
+ const I = Ue.value.replace(/{consumerGroupId}/gi, V.value.id);
4870
+ await s.delete(I), n("remove:success", V.value), le(), l.value++;
4871
4871
  } catch (I) {
4872
4872
  me.value = I.message || i("consumer_groups.errors.delete"), n("error", I);
4873
4873
  } finally {
4874
4874
  Qe.value = !1;
4875
4875
  }
4876
4876
  }
4877
- }, Rt = E(!0);
4877
+ }, Vt = E(!0);
4878
4878
  $e(h, (I) => {
4879
- var W, re, ge, we;
4880
- if (Array.isArray((W = I == null ? void 0 : I.response) == null ? void 0 : W.data) && (Rt.value = I.response.data.length > 0), I.status === Fe.Error) {
4879
+ var Z, re, ge, we;
4880
+ if (Array.isArray((Z = I == null ? void 0 : I.response) == null ? void 0 : Z.data) && (Vt.value = I.response.data.length > 0), I.status === Fe.Error) {
4881
4881
  A.value = {
4882
4882
  title: i("consumer_groups.errors.general")
4883
4883
  }, (we = (ge = (re = I.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (A.value.message = I.error.response.data.message), n("error", I.error);
@@ -4893,8 +4893,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4893
4893
  });
4894
4894
  return gt(async () => {
4895
4895
  await r.canCreate() && (Ct.value.title = u.value ? i("consumer_groups.list.empty_state.title_for_consumer") : i("consumer_groups.list.empty_state.title"), Ct.value.ctaText = u.value ? i("consumer_groups.actions.add_to_group") : i("consumer_groups.actions.create"));
4896
- }), (I, W) => {
4897
- const re = V("KButton"), ge = V("KBadge"), we = V("KTruncate"), Xe = V("KDropdownItem"), Dt = V("KClipboardProvider"), Cr = V("KPrompt");
4896
+ }), (I, Z) => {
4897
+ const re = R("KButton"), ge = R("KBadge"), we = R("KTruncate"), Xe = R("KDropdownItem"), Dt = R("KClipboardProvider"), Cr = R("KPrompt");
4898
4898
  return m(), $("div", Jl, [
4899
4899
  j(g(il), {
4900
4900
  "cache-identifier": e.cacheIdentifier,
@@ -4904,7 +4904,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4904
4904
  "empty-state-options": Ct.value,
4905
4905
  "enable-entity-actions": "",
4906
4906
  "error-message": A.value,
4907
- fetcher: g(Z),
4907
+ fetcher: g(W),
4908
4908
  "fetcher-cache-key": l.value,
4909
4909
  "pagination-type": "offset",
4910
4910
  "preferences-storage-key": p.value,
@@ -4913,7 +4913,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4913
4913
  "table-headers": g(f),
4914
4914
  "use-action-outside": e.useActionOutside,
4915
4915
  onClearSearchInput: _,
4916
- "onClick:row": W[3] || (W[3] = (Q) => G(Q)),
4916
+ "onClick:row": Z[3] || (Z[3] = (Q) => G(Q)),
4917
4917
  onEmptyStateCtaClicked: ae,
4918
4918
  onSort: d
4919
4919
  }, {
@@ -4921,7 +4921,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4921
4921
  u.value ? J("", !0) : (m(), D(g(Al), {
4922
4922
  key: 0,
4923
4923
  modelValue: k.value,
4924
- "onUpdate:modelValue": W[0] || (W[0] = (Q) => k.value = Q),
4924
+ "onUpdate:modelValue": Z[0] || (Z[0] = (Q) => k.value = Q),
4925
4925
  config: U.value
4926
4926
  }, null, 8, ["modelValue", "config"]))
4927
4927
  ]),
@@ -4939,7 +4939,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4939
4939
  "data-testid": "toolbar-add-consumer-group",
4940
4940
  size: "large",
4941
4941
  to: e.config.consumerId ? void 0 : e.config.createRoute,
4942
- onClick: W[1] || (W[1] = () => e.config.consumerId ? Ye() : void 0)
4942
+ onClick: Z[1] || (Z[1] = () => e.config.consumerId ? Ye() : void 0)
4943
4943
  }, {
4944
4944
  default: v(() => [
4945
4945
  j(g(Kr)),
@@ -4947,7 +4947,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4947
4947
  ]),
4948
4948
  _: 1
4949
4949
  }, 8, ["to"]), [
4950
- [je, Rt.value]
4950
+ [je, Vt.value]
4951
4951
  ])
4952
4952
  ]),
4953
4953
  _: 1
@@ -4965,7 +4965,7 @@ const Ol = ["aria-labelledby"], El = { 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] = xt(() => {
4968
+ onClick: Z[2] || (Z[2] = xt(() => {
4969
4969
  }, ["stop"]))
4970
4970
  }, {
4971
4971
  default: v(() => [
@@ -4975,7 +4975,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4975
4975
  }, 1024))), 128))
4976
4976
  ]),
4977
4977
  _: 2
4978
- }, 1024)) : (m(), $("span", Zl, "-"))
4978
+ }, 1024)) : (m(), $("span", Wl, "-"))
4979
4979
  ]),
4980
4980
  actions: v(({ row: Q }) => [
4981
4981
  j(Dt, null, {
@@ -5037,7 +5037,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5037
5037
  danger: "",
5038
5038
  "data-testid": "action-entity-delete",
5039
5039
  "has-divider": "",
5040
- onClick: () => e.config.consumerId ? ke(Q) : We(Q)
5040
+ onClick: () => e.config.consumerId ? ke(Q) : Ze(Q)
5041
5041
  }, {
5042
5042
  default: v(() => [
5043
5043
  Y(F(e.config.consumerId ? g(i)("consumer_groups.actions.exit") : g(i)("consumer_groups.actions.delete")), 1)
@@ -5067,11 +5067,11 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5067
5067
  config: e.config,
5068
5068
  "data-testid": "add-to-group-modal",
5069
5069
  visible: Le.value,
5070
- "onAdd:partialSuccess": W[4] || (W[4] = (Q) => P(Q, !0)),
5071
- "onAdd:success": W[5] || (W[5] = (Q) => P(Q)),
5070
+ "onAdd:partialSuccess": Z[4] || (Z[4] = (Q) => P(Q, !0)),
5071
+ "onAdd:success": Z[5] || (Z[5] = (Q) => P(Q)),
5072
5072
  onCancel: C
5073
5073
  }, null, 8, ["config", "visible"])) : J("", !0),
5074
- e.config.consumerId && R.value ? (m(), D(Cr, {
5074
+ e.config.consumerId && V.value ? (m(), D(Cr, {
5075
5075
  key: 1,
5076
5076
  "action-button-appearance": "danger",
5077
5077
  "data-testid": "exit-group-modal",
@@ -5087,7 +5087,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5087
5087
  tag: "p"
5088
5088
  }, Be({
5089
5089
  consumerGroup: v(() => [
5090
- L("strong", null, F(R.value.name || R.value.id), 1)
5090
+ L("strong", null, F(V.value.name || V.value.id), 1)
5091
5091
  ]),
5092
5092
  _: 2
5093
5093
  }, [
@@ -5106,7 +5106,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5106
5106
  ]);
5107
5107
  };
5108
5108
  }
5109
- }), mu = /* @__PURE__ */ Pt(Wl, [["__scopeId", "data-v-a183d2c6"]]), Yl = { class: "kong-ui-entities-consumer-group-form" }, Ql = { class: "select-item-container" }, Xl = { class: "select-item-label" }, eu = {
5109
+ }), mu = /* @__PURE__ */ Pt(Zl, [["__scopeId", "data-v-a183d2c6"]]), Yl = { class: "kong-ui-entities-consumer-group-form" }, Ql = { class: "select-item-container" }, Xl = { class: "select-item-label" }, eu = {
5110
5110
  key: 0,
5111
5111
  class: "select-item-description"
5112
5112
  }, tu = /* @__PURE__ */ X({
@@ -5158,10 +5158,10 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5158
5158
  }))), U = w(() => {
5159
5159
  var C, P;
5160
5160
  return (P = Oe.form[(C = n.config) == null ? void 0 : C.app]) == null ? void 0 : P.edit;
5161
- }), N = w(() => n.consumerGroupId ? ut.Edit : ut.Create), Z = w(() => !!o.fields.name && !G.value), h = w(() => JSON.stringify(o.fields) !== JSON.stringify(s)), _ = (C, P = "", ae = "") => {
5161
+ }), N = w(() => n.consumerGroupId ? ut.Edit : ut.Create), W = w(() => !!o.fields.name && !G.value), h = w(() => JSON.stringify(o.fields) !== JSON.stringify(s)), _ = (C, P = "", ae = "") => {
5162
5162
  var z, me, ke, le, Ue, Qe;
5163
- let R = `${(z = n.config) == null ? void 0 : z.apiBaseUrl}${Oe.form[(me = n.config) == null ? void 0 : me.app][C]}`;
5164
- return ((ke = n.config) == null ? void 0 : ke.app) === "konnect" ? R = R.replace(/{controlPlaneId}/gi, ((le = n.config) == null ? void 0 : le.controlPlaneId) || "") : ((Ue = n.config) == null ? void 0 : Ue.app) === "kongManager" && (R = R.replace(/\/{workspace}/gi, (Qe = n.config) != null && Qe.workspace ? `/${n.config.workspace}` : "")), R = R.replace(/{id}/gi, P || n.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (R = R.replace(/{consumerId}/gi, ae)), R;
5163
+ let V = `${(z = n.config) == null ? void 0 : z.apiBaseUrl}${Oe.form[(me = n.config) == null ? void 0 : me.app][C]}`;
5164
+ return ((ke = n.config) == null ? void 0 : ke.app) === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((le = n.config) == null ? void 0 : le.controlPlaneId) || "") : ((Ue = n.config) == null ? void 0 : Ue.app) === "kongManager" && (V = V.replace(/\/{workspace}/gi, (Qe = n.config) != null && Qe.workspace ? `/${n.config.workspace}` : "")), V = V.replace(/{id}/gi, P || n.consumerGroupId), (C === "addConsumer" || C === "removeConsumer") && (V = V.replace(/{consumerId}/gi, ae)), V;
5165
5165
  }, d = () => {
5166
5166
  var C;
5167
5167
  i.push(((C = n.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
@@ -5170,8 +5170,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5170
5170
  }, B = (C) => {
5171
5171
  r("loading", C);
5172
5172
  }, x = async (C) => {
5173
- var ae, R, z, me, ke;
5174
- o.fields.name = ((ae = C == null ? void 0 : C.item) == null ? void 0 : ae.name) || ((R = C == null ? void 0 : C.consumer_group) == null ? void 0 : R.name) || (C == null ? void 0 : C.name) || "";
5173
+ var ae, V, z, me, ke;
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) || [];
5176
5176
  if (o.fields.tags = (P == null ? void 0 : P.join(", ")) || "", "consumers" in C)
5177
5177
  o.fields.consumers = ((me = C == null ? void 0 : C.consumers) == null ? void 0 : me.map((le) => le.id)) || [];
@@ -5194,9 +5194,9 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5194
5194
  }, H = (C = n.consumerGroupId) => {
5195
5195
  Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
5196
5196
  }, te = (C, P, ae = n.consumerGroupId) => {
5197
- const R = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5198
- R ? q({
5199
- code: R.status,
5197
+ const V = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5198
+ V ? q({
5199
+ code: V.status,
5200
5200
  message: P
5201
5201
  }) : H(ae);
5202
5202
  }, de = async () => {
@@ -5209,42 +5209,42 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5209
5209
  }
5210
5210
  if (o.fields.consumers.length > 0 && C)
5211
5211
  try {
5212
- const P = o.fields.consumers.map((R) => b(R, C)), ae = await Promise.allSettled(P);
5212
+ const P = o.fields.consumers.map((V) => b(V, C)), ae = await Promise.allSettled(P);
5213
5213
  te(ae, a("consumer_groups.errors.add_consumer"), C);
5214
5214
  } catch (P) {
5215
5215
  q(P);
5216
5216
  }
5217
5217
  else
5218
5218
  o.fields.consumers.length === 0 && C && H(C);
5219
- }, We = async () => {
5219
+ }, Ze = async () => {
5220
5220
  var ae;
5221
5221
  try {
5222
5222
  ((ae = n.config) == null ? void 0 : ae.app) === "konnect" ? await f.put(_("edit"), M.value) : await f.patch(_("edit"), M.value);
5223
- } catch (R) {
5224
- q(R);
5223
+ } catch (V) {
5224
+ q(V);
5225
5225
  }
5226
- const C = o.fields.consumers.filter((R) => !s.consumers.includes(R)), P = s.consumers.filter((R) => !o.fields.consumers.includes(R));
5226
+ const C = o.fields.consumers.filter((V) => !s.consumers.includes(V)), P = s.consumers.filter((V) => !o.fields.consumers.includes(V));
5227
5227
  if (P.length === 0 && C.length === 0)
5228
5228
  H();
5229
5229
  else {
5230
5230
  if (P.length > 0)
5231
5231
  try {
5232
- const R = P.map((me) => K(me)), z = await Promise.allSettled(R);
5232
+ const V = P.map((me) => K(me)), z = await Promise.allSettled(V);
5233
5233
  te(z, a("consumer_groups.errors.remove_consumer"));
5234
- } catch (R) {
5235
- q(R);
5234
+ } catch (V) {
5235
+ q(V);
5236
5236
  }
5237
5237
  if (C.length > 0)
5238
5238
  try {
5239
- const R = C.map((me) => b(me)), z = await Promise.allSettled(R);
5239
+ const V = C.map((me) => b(me)), z = await Promise.allSettled(V);
5240
5240
  te(z, a("consumer_groups.errors.add_consumer"));
5241
- } catch (R) {
5242
- q(R);
5241
+ } catch (V) {
5242
+ q(V);
5243
5243
  }
5244
5244
  }
5245
5245
  }, bt = async () => {
5246
5246
  try {
5247
- o.readonly = !0, N.value === ut.Create ? await de() : await We();
5247
+ o.readonly = !0, N.value === ut.Create ? await de() : await Ze();
5248
5248
  } finally {
5249
5249
  o.readonly = !1;
5250
5250
  }
@@ -5252,10 +5252,10 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5252
5252
  return gt(async () => {
5253
5253
  await c();
5254
5254
  }), (C, P) => {
5255
- const ae = V("KInput"), R = V("KMultiselect");
5255
+ const ae = R("KInput"), V = R("KMultiselect");
5256
5256
  return m(), $("div", Yl, [
5257
5257
  j(g(Qs), {
5258
- "can-submit": Z.value && h.value,
5258
+ "can-submit": W.value && h.value,
5259
5259
  config: e.config,
5260
5260
  "edit-id": e.consumerGroupId,
5261
5261
  "error-message": o.errorMessage || g(p) || G.value,
@@ -5309,7 +5309,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5309
5309
  title: g(a)("consumer_groups.form.consumers.title")
5310
5310
  }, {
5311
5311
  default: v(() => [
5312
- j(R, {
5312
+ j(V, {
5313
5313
  modelValue: o.fields.consumers,
5314
5314
  "onUpdate:modelValue": P[2] || (P[2] = (z) => o.fields.consumers = z),
5315
5315
  appearance: "select",