@kong-ui-public/entities-consumer-groups 3.2.1-pr.1431.724700.0 → 3.2.1

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 Te, normalizeStyle as He, withCtx as v, createElementBlock as $, toDisplayString as K, createCommentVNode as J, pushScopeId as Je, popScopeId as Ze, createElementVNode as L, ref as M, watch as Ae, 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 Ir, 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 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";
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";
@@ -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(Te(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",
@@ -100,7 +100,7 @@ const Ht = "24px", jr = (e, t) => {
100
100
  width: "100%",
101
101
  xmlns: "http://www.w3.org/2000/svg"
102
102
  }, [
103
- e.title ? (m(), $("title", Mr, K(e.title), 1)) : J("", !0),
103
+ e.title ? (m(), $("title", Mr, F(e.title), 1)) : J("", !0),
104
104
  qr
105
105
  ], 8, Er))
106
106
  ]),
@@ -209,12 +209,12 @@ function Ur() {
209
209
  }
210
210
  const yt = {
211
211
  useI18n: Ur
212
- }, xe = "/v2/control-planes/{controlPlaneId}/core-entities", Ie = "/{workspace}", Oe = {
212
+ }, Ae = "/v2/control-planes/{controlPlaneId}/core-entities", Ie = "/{workspace}", Oe = {
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: `${Ae}/consumer_groups`,
216
+ forConsumer: `${Ae}/consumers/{consumerId}/consumer_groups`,
217
+ oneForConsumer: `${Ae}/consumers/{consumerId}/consumer_groups/{consumerGroupId}`
218
218
  },
219
219
  kongManager: {
220
220
  all: `${Ie}/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: `${Ae}/consumers`,
228
+ create: `${Ae}/consumer_groups`,
229
+ edit: `${Ae}/consumer_groups/{id}`,
230
+ addConsumer: `${Ae}/consumer_groups/{id}/consumers`,
231
+ removeConsumer: `${Ae}/consumer_groups/{id}/consumers/{consumerId}`,
232
+ getConsumers: `${Ae}/consumer_groups/{id}/consumers`
233
233
  },
234
234
  kongManager: {
235
235
  consumersList: `${Ie}/consumers`,
@@ -489,7 +489,7 @@ function na(e, t, n, r = {
489
489
  n || (n = "1000");
490
490
  const { axiosInstance: a } = Et(e.axiosRequestConfig), { i18n: { t: i } } = ht(), { debounce: o } = Rr(), s = o(async (h) => {
491
491
  await Z(h);
492
- }, 200), l = M(!1), u = M(""), p = M(""), c = M([]), y = M([]), f = M(void 0), S = g(t);
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}` : ""));
495
495
  const { isValidUuid: k } = _n(), U = async () => {
@@ -502,8 +502,8 @@ function na(e, t, n, r = {
502
502
  } finally {
503
503
  l.value = !1;
504
504
  }
505
- }, N = M(""), Z = async (h) => {
506
- var _, d, I;
505
+ }, N = E(""), Z = async (h) => {
506
+ var _, d, A;
507
507
  if (N.value !== h)
508
508
  if (N.value = h || "", f.value === void 0)
509
509
  try {
@@ -515,19 +515,19 @@ function na(e, t, n, r = {
515
515
  } else if (h) {
516
516
  const B = [];
517
517
  k(h) && r.searchKeys.includes("id") ? B.push((async () => {
518
- const { data: q } = await a.get(`${T}/${h}`);
519
- return [q[r.fetchedItemsKey] ?? q];
518
+ const { data: M } = await a.get(`${T}/${h}`);
519
+ return [M[r.fetchedItemsKey] ?? M];
520
520
  })()) : B.push(
521
- ...r.searchKeys.filter((q) => q !== "id").map(async (q) => {
522
- const { data: b } = await a.get(`${T}?${q}=${h}`);
521
+ ...r.searchKeys.filter((M) => M !== "id").map(async (M) => {
522
+ const { data: b } = await a.get(`${T}?${M}=${h}`);
523
523
  return b[r.fetchedItemsKey];
524
524
  })
525
525
  );
526
526
  const x = await Promise.all(B), G = /* @__PURE__ */ new Set();
527
- c.value = [], (_ = x == null ? void 0 : x.forEach) == null || _.call(x, (q) => {
527
+ c.value = [], (_ = x == null ? void 0 : x.forEach) == null || _.call(x, (M) => {
528
528
  var b;
529
- (b = q == null ? void 0 : q.forEach) == null || b.call(q, (E) => {
530
- G.has(E.id) || (G.add(E.id), c.value.push(E));
529
+ (b = M == null ? void 0 : M.forEach) == null || b.call(M, (K) => {
530
+ G.has(K.id) || (G.add(K.id), c.value.push(K));
531
531
  });
532
532
  });
533
533
  } else
@@ -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 = (I = f.value) == null ? void 0 : I.filter((B) => {
541
+ l.value = !0, p.value = "", h ? (c.value = (A = f.value) == null ? void 0 : A.filter((B) => {
542
542
  var x;
543
543
  let G = !1;
544
- for (const q of r.searchKeys) {
545
- const b = typeof B[q] == "string" ? (x = B[q]) == null ? void 0 : x.toLowerCase() : B[q];
544
+ for (const M of r.searchKeys) {
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;
@@ -606,7 +606,7 @@ function oa(e) {
606
606
  }
607
607
  }
608
608
  function Sn(e, t) {
609
- const n = M(g(e)), r = M(g(t)), a = w(
609
+ const n = E(g(e)), r = E(g(t)), a = w(
610
610
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
611
611
  ), i = w(
612
612
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -624,7 +624,7 @@ function Sn(e, t) {
624
624
  };
625
625
  }
626
626
  function ia(e, t, n = "data") {
627
- const r = g(t), { axiosInstance: a } = Et(e.axiosRequestConfig), i = Sn(e, r), o = M({
627
+ const r = g(t), { axiosInstance: a } = Et(e.axiosRequestConfig), i = Sn(e, r), o = E({
628
628
  status: Fe.Idle
629
629
  });
630
630
  return { fetcher: async (s) => {
@@ -704,15 +704,15 @@ const xn = /^[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 In[n].includes(r);
708
- }, In = {
707
+ return An[n].includes(r);
708
+ }, An = {
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(In), da = (e) => {
715
+ }, Xt = Object.keys(An), 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)
@@ -732,8 +732,8 @@ function fa(e) {
732
732
  return !(o && Qt(a, o, "<") || s && Qt(a, s, ">"));
733
733
  }
734
734
  function ma(e) {
735
- const t = M(0), n = M(0), r = M(!1);
736
- return Ae(e, (a) => {
735
+ const t = E(0), n = E(0), r = E(!1);
736
+ return $e(e, (a) => {
737
737
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
738
738
  }), {
739
739
  isTruncated: w(() => t.value < n.value)
@@ -786,12 +786,12 @@ 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(Te(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(() => [
793
793
  e.isArrayItem ? (m(), $("legend", ya, [
794
- L("b", null, K(s.value), 1)
794
+ L("b", null, F(s.value), 1)
795
795
  ])) : J("", !0),
796
796
  (m(!0), $(be, null, ve(Object.keys(o.value), (p, c) => (m(), D($n, {
797
797
  key: `${a.value}-property-${c}`,
@@ -810,7 +810,7 @@ const se = {
810
810
  for (const [r, a] of t)
811
811
  n[r] = a;
812
812
  return n;
813
- }, An = /* @__PURE__ */ Ce(ha, [["__scopeId", "data-v-68ca83ec"]]), va = /* @__PURE__ */ X({
813
+ }, In = /* @__PURE__ */ Ce(ha, [["__scopeId", "data-v-68ca83ec"]]), va = /* @__PURE__ */ X({
814
814
  __name: "InternalLinkItem",
815
815
  props: {
816
816
  item: {
@@ -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 = R("KButton");
825
+ const a = V("KButton");
826
826
  return m(), $("div", null, [
827
827
  j(a, {
828
828
  appearance: "tertiary",
@@ -830,7 +830,7 @@ const se = {
830
830
  onClick: r[0] || (r[0] = (i) => n.$emit("navigation-click", e.item))
831
831
  }, {
832
832
  default: v(() => [
833
- Y(K(e.item.value || g(t)("baseConfigCard.commonFields.link")), 1)
833
+ Y(F(e.item.value || g(t)("baseConfigCard.commonFields.link")), 1)
834
834
  ]),
835
835
  _: 1
836
836
  })
@@ -848,20 +848,20 @@ const se = {
848
848
  setup(e) {
849
849
  const { i18n: { t } } = se.useI18n();
850
850
  return (n, r) => {
851
- const a = R("KBadge");
851
+ const a = V("KBadge");
852
852
  return m(), D(a, {
853
853
  appearance: e.status ? "success" : "neutral"
854
854
  }, {
855
855
  default: v(() => [
856
- Y(K(e.status ? g(t)("baseConfigCard.statusBadge.enabledLabel") : g(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
856
+ Y(F(e.status ? g(t)("baseConfigCard.statusBadge.enabledLabel") : g(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
857
857
  ]),
858
858
  _: 1
859
859
  }, 8, ["appearance"]);
860
860
  };
861
861
  }
862
- }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Sa = "1px", xa = "20px", Ia = { class: "config-card-details-row" }, Aa = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Oa = ["data-testid"], Ea = ["data-testid"], Ma = ["data-testid"], qa = ["data-testid"], Fa = {
862
+ }), ka = "#0044f4", wa = "#e0e4ea", _a = "#afb7c5", Sa = "1px", xa = "20px", Aa = { class: "config-card-details-row" }, Ia = ["data-testid"], $a = ["data-testid"], Ta = ["data-testid"], Na = ["data-testid"], ja = { key: 1 }, Oa = ["data-testid"], Ea = ["data-testid"], Ma = ["data-testid"], qa = ["data-testid"], Fa = {
863
863
  name: "ConfigCardItem",
864
- components: { JsonCardItem: An, StatusBadge: Ca, InternalLinkItem: ba }
864
+ components: { JsonCardItem: In, StatusBadge: Ca, InternalLinkItem: ba }
865
865
  }, Ka = /* @__PURE__ */ X({
866
866
  ...Fa,
867
867
  props: {
@@ -998,10 +998,10 @@ const se = {
998
998
  text: n.item.value
999
999
  };
1000
1000
  }
1001
- }), y = M(), { isTruncated: f } = se.useTruncationDetector(y);
1001
+ }), y = E(), { isTruncated: f } = se.useTruncationDetector(y);
1002
1002
  return (S, T) => {
1003
- const k = R("KLabel"), U = R("KBadge"), N = R("KCopy"), Z = R("KTooltip");
1004
- return m(), $("div", Ia, [
1003
+ const k = V("KLabel"), U = V("KBadge"), N = V("KCopy"), Z = V("KTooltip");
1004
+ return m(), $("div", Aa, [
1005
1005
  L("div", {
1006
1006
  class: "config-card-details-label",
1007
1007
  "data-testid": `${e.item.key}-label`
@@ -1009,7 +1009,7 @@ const se = {
1009
1009
  ne(S.$slots, "label", { item: e.item }, () => [
1010
1010
  j(k, { "tooltip-attributes": { maxWidth: "500px" } }, Be({
1011
1011
  default: v(() => [
1012
- Y(K(e.item.label) + " ", 1)
1012
+ Y(F(e.item.label) + " ", 1)
1013
1013
  ]),
1014
1014
  _: 2
1015
1015
  }, [
@@ -1020,7 +1020,7 @@ const se = {
1020
1020
  "data-testid": `${e.item.key}-label-tooltip`
1021
1021
  }, [
1022
1022
  ne(S.$slots, "label-tooltip", {}, () => [
1023
- Y(K(e.item.tooltip), 1)
1023
+ Y(F(e.item.tooltip), 1)
1024
1024
  ], !0)
1025
1025
  ], 8, $a)
1026
1026
  ]),
@@ -1028,7 +1028,7 @@ const se = {
1028
1028
  } : void 0
1029
1029
  ]), 1024)
1030
1030
  ], !0)
1031
- ], 8, Aa),
1031
+ ], 8, Ia),
1032
1032
  L("div", {
1033
1033
  class: "config-card-details-value",
1034
1034
  "data-testid": `${e.item.key}-property-value`
@@ -1037,7 +1037,7 @@ const se = {
1037
1037
  rowValue: e.item.value
1038
1038
  }, () => [
1039
1039
  s.value ? (m(), $("div", ja, [
1040
- (m(), D(Te(c.value.tag), Ir(Ar(c.value.attrs)), {
1040
+ (m(), D(xe(c.value.tag), Ar(Ir(c.value.attrs)), {
1041
1041
  default: v(() => [
1042
1042
  c.value.additionalComponent === "KBadge" ? (m(), $("div", {
1043
1043
  key: 0,
@@ -1051,7 +1051,7 @@ const se = {
1051
1051
  "truncation-tooltip": ""
1052
1052
  }, {
1053
1053
  default: v(() => [
1054
- Y(K(h), 1)
1054
+ Y(F(h), 1)
1055
1055
  ]),
1056
1056
  _: 2
1057
1057
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -1078,7 +1078,7 @@ const se = {
1078
1078
  "data-testid": `${e.item.key}-badge-method-${_}`
1079
1079
  }, {
1080
1080
  default: v(() => [
1081
- Y(K(h), 1)
1081
+ Y(F(h), 1)
1082
1082
  ]),
1083
1083
  _: 2
1084
1084
  }, 1032, ["appearance", "data-testid"]))), 128))
@@ -1087,7 +1087,7 @@ const se = {
1087
1087
  key: 3,
1088
1088
  "data-testid": `${n.item.key}-json-array-content`
1089
1089
  }, [
1090
- (m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(An, {
1090
+ (m(!0), $(be, null, ve(e.item.value, (h, _) => (m(), D(In, {
1091
1091
  key: `json-array-item-${_}`,
1092
1092
  index: _,
1093
1093
  "is-array-item": "",
@@ -1102,7 +1102,7 @@ const se = {
1102
1102
  ref_key: "textContent",
1103
1103
  ref: y,
1104
1104
  class: Me(["attrs-data-text", { truncated: e.truncated }])
1105
- }, K(c.value.text), 3)
1105
+ }, F(c.value.text), 3)
1106
1106
  ]),
1107
1107
  _: 1
1108
1108
  }, 8, ["text"]))
@@ -1160,14 +1160,14 @@ 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 = R("KBadge"), s = R("KCodeBlock");
1163
+ const o = V("KBadge"), s = V("KCodeBlock");
1164
1164
  return m(), $("div", Ba, [
1165
1165
  t.fetcherUrl ? (m(), $("div", La, [
1166
1166
  j(o, {
1167
1167
  appearance: t.requestMethod
1168
1168
  }, {
1169
1169
  default: v(() => [
1170
- Y(K(t.requestMethod), 1)
1170
+ Y(F(t.requestMethod), 1)
1171
1171
  ]),
1172
1172
  _: 1
1173
1173
  }, 8, ["appearance"]),
@@ -1346,10 +1346,10 @@ function ro() {
1346
1346
  arguments[t].forEach(r);
1347
1347
  return e;
1348
1348
  }
1349
- function It(e) {
1349
+ function At(e) {
1350
1350
  return this.extend(e);
1351
1351
  }
1352
- It.prototype.extend = function(e) {
1352
+ At.prototype.extend = function(e) {
1353
1353
  var t = [], n = [];
1354
1354
  if (e instanceof ce)
1355
1355
  n.push(e);
@@ -1370,10 +1370,10 @@ It.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(It.prototype);
1373
+ var r = Object.create(At.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 On = It, En = new ce("tag:yaml.org,2002:str", {
1376
+ var On = At, En = new ce("tag:yaml.org,2002:str", {
1377
1377
  kind: "scalar",
1378
1378
  construct: function(e) {
1379
1379
  return e !== null ? e : "";
@@ -1656,15 +1656,15 @@ var zn = new ce("tag:yaml.org,2002:timestamp", {
1656
1656
  instanceOf: Date,
1657
1657
  represent: xo
1658
1658
  });
1659
- function Io(e) {
1659
+ function Ao(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: Io
1664
+ resolve: Ao
1665
1665
  }), Mt = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1666
1666
  \r`;
1667
- function Ao(e) {
1667
+ function Io(e) {
1668
1668
  if (e === null)
1669
1669
  return !1;
1670
1670
  var t, n, r = 0, a = e.length, i = Mt;
@@ -1693,7 +1693,7 @@ function No(e) {
1693
1693
  }
1694
1694
  var Hn = new ce("tag:yaml.org,2002:binary", {
1695
1695
  kind: "scalar",
1696
- resolve: Ao,
1696
+ resolve: Io,
1697
1697
  construct: $o,
1698
1698
  predicate: No,
1699
1699
  represent: To
@@ -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, Si = 96, dr = 123, xi = 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, It = 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, Si = 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 Ii = [
2235
+ var Ai = [
2236
2236
  "y",
2237
2237
  "Y",
2238
2238
  "yes",
@@ -2249,7 +2249,7 @@ var Ii = [
2249
2249
  "off",
2250
2250
  "Off",
2251
2251
  "OFF"
2252
- ], Ai = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2252
+ ], Ii = /^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;
2253
2253
  function $i(e, t) {
2254
2254
  var n, r, a, i, o, s, l;
2255
2255
  if (t === null)
@@ -2308,11 +2308,11 @@ function cn(e, t, n) {
2308
2308
  (n ? (
2309
2309
  // c = flow-in
2310
2310
  r
2311
- ) : r && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr) && e !== At && !(t === ft && !a) || un(t) && !mt(t) && e === At || t === ft && a
2311
+ ) : r && e !== lr && e !== ur && e !== cr && e !== dr && e !== pr) && e !== It && !(t === ft && !a) || un(t) && !mt(t) && e === It || t === ft && a
2312
2312
  );
2313
2313
  }
2314
2314
  function Ei(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 !== xi && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Si;
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 !== It && e !== yi && e !== vi && e !== fi && e !== xi && e !== Ci && e !== ki && e !== hi && e !== mi && e !== gi && e !== _i && e !== Si;
2316
2316
  }
2317
2317
  function Mi(e) {
2318
2318
  return !mt(e) && e !== ft;
@@ -2351,7 +2351,7 @@ function Fi(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 && (Ii.indexOf(t) !== -1 || Ai.test(t)))
2354
+ if (!e.noCompatMode && (Ai.indexOf(t) !== -1 || Ii.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) {
@@ -2425,19 +2425,19 @@ function Bi(e) {
2425
2425
  function Li(e, t, n) {
2426
2426
  var r = "", a = e.tag, i, o, s;
2427
2427
  for (i = 0, o = n.length; i < o; i += 1)
2428
- s = n[i], e.replacer && (s = e.replacer.call(n, String(i), s)), ($e(e, t, s, !1, !1) || typeof s > "u" && $e(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2428
+ s = n[i], e.replacer && (s = e.replacer.call(n, String(i), s)), (Te(e, t, s, !1, !1) || typeof s > "u" && Te(e, t, null, !1, !1)) && (r !== "" && (r += "," + (e.condenseFlow ? "" : " ")), r += e.dump);
2429
2429
  e.tag = a, e.dump = "[" + r + "]";
2430
2430
  }
2431
2431
  function mn(e, t, n, r) {
2432
2432
  var a = "", i = e.tag, o, s, l;
2433
2433
  for (o = 0, s = n.length; o < s; o += 1)
2434
- l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), ($e(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && $e(e, t + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += $t(e, t)), e.dump && nt === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2434
+ l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (Te(e, t + 1, l, !0, !0, !1, !0) || typeof l > "u" && Te(e, t + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += $t(e, t)), e.dump && nt === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2435
2435
  e.tag = i, e.dump = a || "[]";
2436
2436
  }
2437
2437
  function Ui(e, t, n) {
2438
2438
  var r = "", a = e.tag, i = Object.keys(n), o, s, l, u, p;
2439
2439
  for (o = 0, s = i.length; o < s; o += 1)
2440
- p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), $e(e, t, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), $e(e, t, u, !1, !1) && (p += e.dump, r += p));
2440
+ p = "", r !== "" && (p += ", "), e.condenseFlow && (p += '"'), l = i[o], u = n[l], e.replacer && (u = e.replacer.call(n, l, u)), Te(e, t, l, !1, !1) && (e.dump.length > 1024 && (p += "? "), p += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Te(e, t, u, !1, !1) && (p += e.dump, r += p));
2441
2441
  e.tag = a, e.dump = "{" + r + "}";
2442
2442
  }
2443
2443
  function Pi(e, t, n, r) {
@@ -2449,7 +2449,7 @@ function Pi(e, t, n, r) {
2449
2449
  else if (e.sortKeys)
2450
2450
  throw new fe("sortKeys must be a boolean or a function");
2451
2451
  for (s = 0, l = o.length; s < l; s += 1)
2452
- y = "", (!r || a !== "") && (y += $t(e, t)), u = o[s], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)), $e(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && nt === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += $t(e, t)), $e(e, t + 1, p, !0, c) && (e.dump && nt === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
2452
+ y = "", (!r || a !== "") && (y += $t(e, t)), u = o[s], p = n[u], e.replacer && (p = e.replacer.call(n, u, p)), Te(e, t + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && nt === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += $t(e, t)), Te(e, t + 1, p, !0, c) && (e.dump && nt === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, a += y));
2453
2453
  e.tag = i, e.dump = a || "{}";
2454
2454
  }
2455
2455
  function gn(e, t, n) {
@@ -2469,7 +2469,7 @@ function gn(e, t, n) {
2469
2469
  }
2470
2470
  return !1;
2471
2471
  }
2472
- function $e(e, t, n, r, a, i, o) {
2472
+ function Te(e, t, n, r, a, i, o) {
2473
2473
  e.tag = null, e.dump = n, gn(e, n, !1) || gn(e, n, !0);
2474
2474
  var s = ir.call(e.dump), l = r, u;
2475
2475
  r && (r = e.flowLevel < 0 || e.flowLevel > t);
@@ -2517,7 +2517,7 @@ function Vi(e, t) {
2517
2517
  var n = new ji(t);
2518
2518
  n.noRefs || Ri(e, n);
2519
2519
  var r = e;
2520
- return n.replacer && (r = n.replacer.call({ "": r }, "", r)), $e(n, 0, r, !0, !0) ? n.dump + `
2520
+ return n.replacer && (r = n.replacer.call({ "": r }, "", r)), Te(n, 0, r, !0, !0) ? n.dump + `
2521
2521
  ` : "";
2522
2522
  }
2523
2523
  var Di = Vi, zi = {
@@ -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 = R("KCodeBlock");
2576
+ const i = V("KCodeBlock");
2577
2577
  return m(), $("div", ss, [
2578
2578
  t.yamlRecord ? (m(), D(i, {
2579
2579
  key: 0,
@@ -2643,7 +2643,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2643
2643
  class: Me(`config-card-details-${l}-props`),
2644
2644
  "data-testid": `config-card-details-${l}-props`
2645
2645
  }, [
2646
- l !== "basic" ? (m(), $("div", cs, K(l === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2646
+ l !== "basic" ? (m(), $("div", cs, F(l === "advanced" ? g(r)("baseConfigCard.sections.advanced") : g(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2647
2647
  (m(!0), $(be, null, ve(e.propertyCollections[l], (u) => (m(), D($n, {
2648
2648
  key: u.key,
2649
2649
  item: 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(Te(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",
@@ -2779,7 +2779,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2779
2779
  width: "100%",
2780
2780
  xmlns: "http://www.w3.org/2000/svg"
2781
2781
  }, [
2782
- e.title ? (m(), $("title", gs, K(e.title), 1)) : J("", !0),
2782
+ e.title ? (m(), $("title", gs, F(e.title), 1)) : J("", !0),
2783
2783
  ys
2784
2784
  ], 8, ms))
2785
2785
  ]),
@@ -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(Te(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",
@@ -2878,14 +2878,14 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2878
2878
  width: "100%",
2879
2879
  xmlns: "http://www.w3.org/2000/svg"
2880
2880
  }, [
2881
- e.title ? (m(), $("title", ks, K(e.title), 1)) : J("", !0),
2881
+ e.title ? (m(), $("title", ks, F(e.title), 1)) : J("", !0),
2882
2882
  ws
2883
2883
  ], 8, Cs))
2884
2884
  ]),
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), Is = ["aria-hidden"], As = {
2888
+ }), Ss = /* @__PURE__ */ ot(_s, [["__scopeId", "data-v-929b4762"]]), xs = (e) => (Je("data-v-219f8484"), e = e(), Ze(), 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", {
@@ -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(Te(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",
@@ -2977,9 +2977,9 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
2977
2977
  width: "100%",
2978
2978
  xmlns: "http://www.w3.org/2000/svg"
2979
2979
  }, [
2980
- e.title ? (m(), $("title", As, K(e.title), 1)) : J("", !0),
2980
+ e.title ? (m(), $("title", Is, F(e.title), 1)) : J("", !0),
2981
2981
  $s
2982
- ], 8, Is))
2982
+ ], 8, As))
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(Te(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",
@@ -3076,7 +3076,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3076
3076
  width: "100%",
3077
3077
  xmlns: "http://www.w3.org/2000/svg"
3078
3078
  }, [
3079
- e.title ? (m(), $("title", Es, K(e.title), 1)) : J("", !0),
3079
+ e.title ? (m(), $("title", Es, F(e.title), 1)) : J("", !0),
3080
3080
  Ms
3081
3081
  ], 8, Os))
3082
3082
  ]),
@@ -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(Te(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",
@@ -3175,7 +3175,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3175
3175
  width: "100%",
3176
3176
  xmlns: "http://www.w3.org/2000/svg"
3177
3177
  }, [
3178
- e.title ? (m(), $("title", Ls, K(e.title), 1)) : J("", !0),
3178
+ e.title ? (m(), $("title", Ls, F(e.title), 1)) : J("", !0),
3179
3179
  Us
3180
3180
  ], 8, Bs))
3181
3181
  ]),
@@ -3278,7 +3278,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3278
3278
  label: "YAML",
3279
3279
  value: "yaml"
3280
3280
  }
3281
- ], p = M("structured"), c = (d) => {
3281
+ ], p = E("structured"), c = (d) => {
3282
3282
  p.value = d == null ? void 0 : d.value;
3283
3283
  }, y = {
3284
3284
  id: {
@@ -3314,72 +3314,72 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3314
3314
  // the last property displayed
3315
3315
  section: he.Basic
3316
3316
  }
3317
- }, f = M(!1), S = M(!1), T = M(""), k = M({}), U = w(() => {
3318
- var d, I, B;
3317
+ }, f = E(!1), S = E(!1), T = E(""), k = E({}), U = w(() => {
3318
+ var d, A, B;
3319
3319
  if (!k.value)
3320
3320
  return [];
3321
3321
  const x = [], G = Object.keys(k.value).length;
3322
- for (const q in k.value) {
3323
- const b = (I = (d = a.configSchema) == null ? void 0 : d[q]) == null ? void 0 : I.order, E = (B = y[q]) == null ? void 0 : B.order;
3324
- let F = G;
3325
- (E || E === 0) && (F = E === -1 ? G + 1 : E), b && (F = b === -1 ? G + 1 : b), x.push([q, F]);
3322
+ for (const M in k.value) {
3323
+ const b = (A = (d = a.configSchema) == null ? void 0 : d[M]) == null ? void 0 : A.order, K = (B = y[M]) == null ? void 0 : B.order;
3324
+ let q = G;
3325
+ (K || K === 0) && (q = K === -1 ? G + 1 : K), b && (q = b === -1 ? G + 1 : b), x.push([M, q]);
3326
3326
  }
3327
- return x.sort(function(q, b) {
3328
- return q[1] - b[1];
3329
- }), x.map((q) => {
3330
- var b, E;
3331
- const F = q[0], H = (b = k.value) == null ? void 0 : b[F], te = ((E = a.configSchema) == null ? void 0 : E[F]) || {}, de = y[F];
3327
+ return x.sort(function(M, b) {
3328
+ return M[1] - b[1];
3329
+ }), x.map((M) => {
3330
+ var b, K;
3331
+ const q = M[0], H = (b = k.value) == null ? void 0 : b[q], te = ((K = a.configSchema) == null ? void 0 : K[q]) || {}, de = y[q];
3332
3332
  return {
3333
- key: F,
3333
+ key: q,
3334
3334
  value: H,
3335
3335
  hidden: te.hidden || !1,
3336
3336
  type: te.type ?? ((de == null ? void 0 : de.type) || ee.Text),
3337
- label: te.label ?? ((de == null ? void 0 : de.label) || s(F)),
3337
+ label: te.label ?? ((de == null ? void 0 : de.label) || s(q)),
3338
3338
  tooltip: te.tooltip ?? ((de == null ? void 0 : de.tooltip) || void 0),
3339
3339
  section: te.section ?? ((de == null ? void 0 : de.section) || he.Advanced)
3340
3340
  };
3341
- }).filter((q) => !q.hidden && q.key !== a.pluginConfigKey);
3341
+ }).filter((M) => !M.hidden && M.key !== a.pluginConfigKey);
3342
3342
  }), N = w(() => {
3343
- var d, I;
3343
+ var d, A;
3344
3344
  if (!k.value || !a.pluginConfigKey)
3345
3345
  return [];
3346
3346
  const B = k.value[a.pluginConfigKey] || {}, x = Object.keys(B).length, G = [];
3347
- for (const q in B) {
3348
- const b = (I = (d = a.pluginConfigSchema) == null ? void 0 : d[q]) == null ? void 0 : I.order, E = B[q];
3349
- let F = E != null && E !== "" ? x - 1 : x;
3350
- b && (F = b === -1 ? x + 1 : b), G.push([q, F]);
3347
+ for (const M in B) {
3348
+ const b = (A = (d = a.pluginConfigSchema) == null ? void 0 : d[M]) == null ? void 0 : A.order, K = B[M];
3349
+ let q = K != null && K !== "" ? x - 1 : x;
3350
+ b && (q = b === -1 ? x + 1 : b), G.push([M, q]);
3351
3351
  }
3352
- return G.sort(function(q, b) {
3353
- return q[1] - b[1];
3354
- }), G.map((q) => {
3352
+ return G.sort(function(M, b) {
3353
+ return M[1] - b[1];
3354
+ }), G.map((M) => {
3355
3355
  var b;
3356
- const E = q[0], F = B[E], H = ((b = a.pluginConfigSchema) == null ? void 0 : b[E]) || {};
3356
+ const K = M[0], q = B[K], H = ((b = a.pluginConfigSchema) == null ? void 0 : b[K]) || {};
3357
3357
  return {
3358
- key: E,
3359
- value: F,
3358
+ key: K,
3359
+ value: q,
3360
3360
  hidden: H.hidden || !1,
3361
3361
  type: H.type ?? ee.Text,
3362
- label: H.label ?? s(E),
3362
+ label: H.label ?? s(K),
3363
3363
  tooltip: H.tooltip ?? void 0,
3364
3364
  section: he.Plugin
3365
3365
  };
3366
- }).filter((q) => !q.hidden);
3366
+ }).filter((M) => !M.hidden);
3367
3367
  }), Z = w(() => {
3368
- var d, I, B, x;
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),
3371
- advanced: (I = U.value) == null ? void 0 : I.filter((G) => G.section === he.Advanced),
3371
+ advanced: (A = U.value) == null ? void 0 : A.filter((G) => G.section === he.Advanced),
3372
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, I;
3378
+ var d, A;
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, (I = a.config) != null && I.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, (A = a.config) != null && A.workspace ? `/${a.config.workspace}` : "")), B = B.replace(/{id}/gi, a.config.entityId), B;
3381
3381
  });
3382
- return Ae(f, (d) => {
3382
+ return $e(f, (d) => {
3383
3383
  r("loading", d);
3384
3384
  }, { immediate: !0 }), gt(async () => {
3385
3385
  S.value = !1, f.value = !0;
@@ -3392,18 +3392,18 @@ 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((I) => a.configSchema[I].forceShow).forEach((I) => {
3396
- k.value && typeof k.value[I] > "u" && (k.value[I] = null);
3395
+ Object.keys(a.configSchema).filter((A) => a.configSchema[A].forceShow).forEach((A) => {
3396
+ k.value && typeof k.value[A] > "u" && (k.value[A] = null);
3397
3397
  }), r("fetch:success", d);
3398
3398
  } catch (d) {
3399
- const I = o(d);
3400
- T.value = I.startsWith("code") ? i("baseConfigCard.errors.load") : I, S.value = !0, r("fetch:error", d);
3399
+ const A = o(d);
3400
+ T.value = A.startsWith("code") ? i("baseConfigCard.errors.load") : A, S.value = !0, r("fetch:error", d);
3401
3401
  } finally {
3402
3402
  f.value = !1;
3403
3403
  }
3404
- }), (d, I) => {
3405
- const B = R("KLabel"), x = R("KSelect"), G = R("KButton"), q = R("KSkeleton"), b = R("KEmptyState"), E = R("KCard");
3406
- return m(), D(E, {
3404
+ }), (d, A) => {
3405
+ const B = V("KLabel"), x = V("KSelect"), G = V("KButton"), M = V("KSkeleton"), b = V("KEmptyState"), K = V("KCard");
3406
+ return m(), D(K, {
3407
3407
  class: "kong-ui-entity-base-config-card",
3408
3408
  "title-tag": e.titleTag
3409
3409
  }, Be({
@@ -3415,7 +3415,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3415
3415
  "data-testid": "config-format-select-label"
3416
3416
  }, {
3417
3417
  default: v(() => [
3418
- Y(K(e.label), 1)
3418
+ Y(F(e.label), 1)
3419
3419
  ]),
3420
3420
  _: 1
3421
3421
  }),
@@ -3444,7 +3444,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3444
3444
  ])
3445
3445
  ]),
3446
3446
  default: v(() => [
3447
- f.value ? (m(), D(q, {
3447
+ f.value ? (m(), D(M, {
3448
3448
  key: 0,
3449
3449
  "data-testid": "config-card-loader",
3450
3450
  "table-columns": 2,
@@ -3455,7 +3455,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3455
3455
  "icon-variant": "error"
3456
3456
  }, {
3457
3457
  default: v(() => [
3458
- L("h3", null, K(T.value), 1)
3458
+ L("h3", null, F(T.value), 1)
3459
3459
  ]),
3460
3460
  _: 1
3461
3461
  })) : J("", !0),
@@ -3468,10 +3468,10 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3468
3468
  "property-collections": Z.value,
3469
3469
  record: k.value
3470
3470
  }, Be({ _: 2 }, [
3471
- ve(Object.keys(d.$slots), (F) => ({
3472
- name: F,
3471
+ ve(Object.keys(d.$slots), (q) => ({
3472
+ name: q,
3473
3473
  fn: v(({ row: H, rowValue: te }) => [
3474
- ne(d.$slots, F, {
3474
+ ne(d.$slots, q, {
3475
3475
  row: H,
3476
3476
  rowValue: te
3477
3477
  }, void 0, !0)
@@ -3487,7 +3487,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3487
3487
  fn: v(() => [
3488
3488
  L("span", Vs, [
3489
3489
  ne(d.$slots, "title", {}, () => [
3490
- Y(K(g(i)("baseConfigCard.title")), 1)
3490
+ Y(F(g(i)("baseConfigCard.title")), 1)
3491
3491
  ], !0)
3492
3492
  ])
3493
3493
  ]),
@@ -3556,12 +3556,19 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3556
3556
  noValidate: {
3557
3557
  type: Boolean,
3558
3558
  default: !1
3559
+ },
3560
+ /**
3561
+ * Wrapper component to use at component's root level.
3562
+ */
3563
+ wrapperComponent: {
3564
+ type: String,
3565
+ default: "KCard"
3559
3566
  }
3560
3567
  },
3561
3568
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3562
3569
  setup(e, { emit: t }) {
3563
3570
  var n;
3564
- const r = t, a = e, i = Ot(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = M(!1), p = M(!1), c = M(""), y = w(() => a.canSubmit === !1 || a.isReadonly), f = M(!1), S = w(() => {
3571
+ const r = t, a = e, i = Ot(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios((n = a.config) == null ? void 0 : n.axiosRequestConfig), u = E(!1), p = E(!1), c = E(""), y = w(() => a.canSubmit === !1 || a.isReadonly), f = E(!1), S = w(() => {
3565
3572
  var h, _;
3566
3573
  let d = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3567
3574
  return a.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((h = a.config) == null ? void 0 : h.controlPlaneId) || "") : a.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (_ = a.config) != null && _.workspace ? `/${a.config.workspace}` : "")), a.editId ? (d = d.replace(/{id}/gi, a.editId), d) : (d = d.replace(/\/{id}/gi, ""), d);
@@ -3573,7 +3580,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3573
3580
  r("cancel");
3574
3581
  }, N = () => {
3575
3582
  y.value || r("submit");
3576
- }, Z = M([
3583
+ }, Z = E([
3577
3584
  {
3578
3585
  title: o("baseForm.configuration.yaml"),
3579
3586
  hash: "#yaml"
@@ -3583,7 +3590,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3583
3590
  hash: "#json"
3584
3591
  }
3585
3592
  ]);
3586
- return Ae(() => u.value, (h) => {
3593
+ return $e(() => u.value, (h) => {
3587
3594
  r("loading", h);
3588
3595
  }, { immediate: !0 }), gt(async () => {
3589
3596
  if (a.editId)
@@ -3598,13 +3605,13 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3598
3605
  u.value = !1;
3599
3606
  }
3600
3607
  }), (h, _) => {
3601
- const d = R("KSkeleton"), I = R("KEmptyState"), B = R("KAlert"), x = R("KButton"), G = R("KTabs"), q = R("KSlideout"), b = R("KCard");
3602
- return m(), D(b, { class: "kong-ui-entity-base-form" }, {
3608
+ const d = V("KSkeleton"), A = V("KEmptyState"), B = V("KAlert"), x = V("KButton"), G = V("KTabs"), M = V("KSlideout");
3609
+ return m(), D(xe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3603
3610
  default: v(() => [
3604
3611
  u.value ? (m(), D(d, {
3605
3612
  key: 0,
3606
3613
  type: "form"
3607
- })) : p.value ? (m(), D(I, {
3614
+ })) : p.value ? (m(), D(A, {
3608
3615
  key: 1,
3609
3616
  "action-button-text": g(o)("baseForm.actions.back"),
3610
3617
  "data-testid": "form-fetch-error",
@@ -3612,7 +3619,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3612
3619
  onClickAction: k
3613
3620
  }, {
3614
3621
  default: v(() => [
3615
- L("h3", null, K(c.value), 1)
3622
+ L("h3", null, F(c.value), 1)
3616
3623
  ]),
3617
3624
  _: 1
3618
3625
  }, 8, ["action-button-text"])) : (m(), $("form", {
@@ -3634,10 +3641,10 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3634
3641
  j(x, {
3635
3642
  appearance: "tertiary",
3636
3643
  "data-testid": "form-view-configuration",
3637
- onClick: _[0] || (_[0] = (E) => T())
3644
+ onClick: _[0] || (_[0] = (b) => T())
3638
3645
  }, {
3639
3646
  default: v(() => [
3640
- Y(K(g(o)("baseForm.actions.viewConfiguration")), 1)
3647
+ Y(F(g(o)("baseForm.actions.viewConfiguration")), 1)
3641
3648
  ]),
3642
3649
  _: 1
3643
3650
  }),
@@ -3648,7 +3655,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3648
3655
  type: "reset"
3649
3656
  }, {
3650
3657
  default: v(() => [
3651
- Y(K(g(o)("baseForm.actions.cancel")), 1)
3658
+ Y(F(g(o)("baseForm.actions.cancel")), 1)
3652
3659
  ]),
3653
3660
  _: 1
3654
3661
  }, 8, ["disabled"]),
@@ -3659,24 +3666,24 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3659
3666
  type: "submit"
3660
3667
  }, {
3661
3668
  default: v(() => [
3662
- Y(K(g(o)("baseForm.actions.save")), 1)
3669
+ Y(F(g(o)("baseForm.actions.save")), 1)
3663
3670
  ]),
3664
3671
  _: 1
3665
3672
  }, 8, ["disabled"])
3666
3673
  ], !0)
3667
3674
  ])
3668
3675
  ], 40, Zs)),
3669
- j(q, {
3676
+ j(M, {
3670
3677
  "close-on-blur": !1,
3671
3678
  "data-testid": "form-view-configuration-slideout",
3672
3679
  "has-overlay": !1,
3673
3680
  "offset-top": 60,
3674
3681
  title: g(o)("baseForm.configuration.title"),
3675
3682
  visible: f.value,
3676
- onClose: _[1] || (_[1] = (E) => T())
3683
+ onClose: _[1] || (_[1] = (b) => T())
3677
3684
  }, {
3678
3685
  default: v(() => [
3679
- L("div", null, K(g(o)("baseForm.configuration.message")), 1),
3686
+ L("div", null, F(g(o)("baseForm.configuration.message")), 1),
3680
3687
  j(G, {
3681
3688
  "data-testid": "form-view-configuration-slideout-tabs",
3682
3689
  tabs: Z.value
@@ -3704,7 +3711,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3704
3711
  });
3705
3712
  };
3706
3713
  }
3707
- }), Qs = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-3def74fe"]]), Xs = ["data-truncate"], el = /* @__PURE__ */ X({
3714
+ }), Qs = /* @__PURE__ */ Ce(Ys, [["__scopeId", "data-v-fd05df8e"]]), Xs = ["data-truncate"], el = /* @__PURE__ */ X({
3708
3715
  __name: "EntityBaseTableCell",
3709
3716
  props: {
3710
3717
  keyName: {
@@ -3743,7 +3750,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3743
3750
  Z -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3744
3751
  }
3745
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) || "";
3746
- }, u = M({}), p = M(0), c = M(0), y = M(""), f = w(() => [r.value, n.value]), S = Ae(
3753
+ }, u = E({}), p = E(0), c = E(0), y = E(""), f = w(() => [r.value, n.value]), S = $e(
3747
3754
  f,
3748
3755
  (k) => {
3749
3756
  if (i.value && (s(), "ResizeObserver" in window && window)) {
@@ -3763,7 +3770,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3763
3770
  }), xr(() => {
3764
3771
  S();
3765
3772
  }), (k, U) => {
3766
- const N = R("KTooltip");
3773
+ const N = V("KTooltip");
3767
3774
  return m(), $("span", {
3768
3775
  ref_key: "contentRef",
3769
3776
  ref: u,
@@ -3775,7 +3782,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3775
3782
  }, [
3776
3783
  j(N, {
3777
3784
  "max-width": "300",
3778
- placement: "bottom-start",
3785
+ placement: "bottomStart",
3779
3786
  text: T.value ? y.value : ""
3780
3787
  }, {
3781
3788
  default: v(() => [
@@ -3787,7 +3794,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3787
3794
  ], 512);
3788
3795
  };
3789
3796
  }
3790
- }), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-760084ce"]]), nl = { class: "toolbar-container" }, rl = {
3797
+ }), tl = /* @__PURE__ */ Ce(el, [["__scopeId", "data-v-471ce76e"]]), nl = { class: "toolbar-container" }, rl = {
3791
3798
  key: 0,
3792
3799
  class: "toolbar-button-container"
3793
3800
  }, al = ["data-testid"], ol = /* @__PURE__ */ X({
@@ -3909,7 +3916,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3909
3916
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3910
3917
  setup(e, { emit: t }) {
3911
3918
  const n = e, r = t, { i18n: { t: a } } = se.useI18n(), i = w(() => {
3912
- var d, I;
3919
+ var d, A;
3913
3920
  return typeof n.errorMessage == "string" ? {
3914
3921
  hasError: !!n.errorMessage,
3915
3922
  title: n.errorMessage,
@@ -3917,15 +3924,15 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3917
3924
  } : {
3918
3925
  hasError: !!n.errorMessage,
3919
3926
  title: (d = n.errorMessage) == null ? void 0 : d.title,
3920
- message: (I = n.errorMessage) == null ? void 0 : I.message
3927
+ message: (A = n.errorMessage) == null ? void 0 : A.message
3921
3928
  };
3922
3929
  }), o = w(() => n.cacheIdentifier || n.preferencesStorageKey), s = (d) => d.hasData || !!n.query, l = w(() => {
3923
3930
  const d = [];
3924
- return Object.keys(n.tableHeaders).forEach((I) => {
3925
- const B = n.tableHeaders[I];
3931
+ return Object.keys(n.tableHeaders).forEach((A) => {
3932
+ const B = n.tableHeaders[A];
3926
3933
  d.push({
3927
- label: B.label ?? I,
3928
- key: I,
3934
+ label: B.label ?? A,
3935
+ key: A,
3929
3936
  sortable: B.sortable ?? !1,
3930
3937
  hidable: !0
3931
3938
  });
@@ -3937,28 +3944,28 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3937
3944
  "data-rowid": d.id,
3938
3945
  "data-testid": d.name,
3939
3946
  ...n.rowAttributes(d)
3940
- }), p = M({}), c = (d) => {
3941
- var I;
3942
- return (I = p.value) == null ? void 0 : I.$el.querySelector(`[data-rowid="${d.id}"]`);
3947
+ }), p = E({}), c = (d) => {
3948
+ var A;
3949
+ return (A = p.value) == null ? void 0 : A.$el.querySelector(`[data-rowid="${d.id}"]`);
3943
3950
  }, y = (d) => {
3944
- const I = {
3951
+ const A = {
3945
3952
  "data-testid": d.headerKey,
3946
3953
  ...n.cellAttributes(d)
3947
3954
  };
3948
- return d.colIndex === 0 && (I.style = {
3955
+ return d.colIndex === 0 && (A.style = {
3949
3956
  maxWidth: "250px",
3950
3957
  overflowX: "hidden",
3951
3958
  textOverflow: "ellipsis"
3952
- }), I;
3959
+ }), A;
3953
3960
  }, f = () => {
3954
3961
  r("empty-state-cta-clicked"), S();
3955
3962
  }, S = () => {
3956
3963
  r("clear-search-input");
3957
- }, T = w(() => n.disableRowClick ? void 0 : (d, I) => {
3958
- r("click:row", I);
3964
+ }, T = w(() => n.disableRowClick ? void 0 : (d, A) => {
3965
+ r("click:row", A);
3959
3966
  }), k = (d) => {
3960
3967
  r("sort", d);
3961
- }, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = M(N(o.value)), h = w(() => {
3968
+ }, { setTablePreferences: U, getTablePreferences: N } = Dr(), Z = E(N(o.value)), h = w(() => {
3962
3969
  const d = N(o.value);
3963
3970
  return {
3964
3971
  ...n.initialFetcherParams,
@@ -3967,9 +3974,9 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
3967
3974
  }), _ = (d) => {
3968
3975
  Z.value = d, o.value && U(o.value, d);
3969
3976
  };
3970
- return (d, I) => {
3971
- const B = R("KButton"), x = R("KDropdown"), G = R("KTable"), q = R("KCard");
3972
- return m(), D(q, {
3977
+ return (d, A) => {
3978
+ const B = V("KButton"), x = V("KDropdown"), G = V("KTable"), M = V("KCard");
3979
+ return m(), D(M, {
3973
3980
  class: "kong-ui-entity-base-table",
3974
3981
  title: e.title,
3975
3982
  "title-tag": e.titleTag
@@ -4005,7 +4012,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4005
4012
  "table-preferences": Z.value,
4006
4013
  onEmptyStateActionClick: f,
4007
4014
  "onRow:click": T.value,
4008
- onSort: I[0] || (I[0] = (b) => k(b)),
4015
+ onSort: A[0] || (A[0] = (b) => k(b)),
4009
4016
  "onUpdate:tablePreferences": _
4010
4017
  }, Be({
4011
4018
  toolbar: v(({ state: b }) => [
@@ -4018,20 +4025,20 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4018
4025
  [je, s(b)]
4019
4026
  ])
4020
4027
  ]),
4021
- actions: v(({ row: b, rowKey: E, rowValue: F }) => [
4028
+ actions: v(({ row: b, rowKey: K, rowValue: q }) => [
4022
4029
  L("div", {
4023
4030
  class: "actions-container",
4024
4031
  "data-testid": b.name
4025
4032
  }, [
4026
4033
  j(x, {
4027
- "kpop-attributes": { placement: "bottom-end" },
4034
+ "kpop-attributes": { placement: "bottomEnd" },
4028
4035
  width: e.dropdownMenuWidth
4029
4036
  }, {
4030
4037
  items: v(() => [
4031
4038
  ne(d.$slots, "actions", {
4032
4039
  row: b,
4033
- rowKey: E,
4034
- rowValue: F
4040
+ rowKey: K,
4041
+ rowValue: q
4035
4042
  }, void 0, !0)
4036
4043
  ]),
4037
4044
  default: v(() => [
@@ -4054,21 +4061,21 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4054
4061
  ]),
4055
4062
  _: 2
4056
4063
  }, [
4057
- ve(e.tableHeaders, (b, E) => ({
4058
- name: E,
4059
- fn: v(({ row: F, rowKey: H, rowValue: te }) => [
4064
+ ve(e.tableHeaders, (b, K) => ({
4065
+ name: K,
4066
+ fn: v(({ row: q, rowKey: H, rowValue: te }) => [
4060
4067
  j(tl, {
4061
- "key-name": String(E),
4062
- "row-el": c(F),
4068
+ "key-name": String(K),
4069
+ "row-el": c(q),
4063
4070
  tooltip: b.tooltip
4064
4071
  }, {
4065
4072
  default: v(() => [
4066
- ne(d.$slots, E, {
4067
- row: F,
4073
+ ne(d.$slots, K, {
4074
+ row: q,
4068
4075
  rowKey: H,
4069
4076
  rowValue: te
4070
4077
  }, () => [
4071
- Y(K(te), 1)
4078
+ Y(F(te), 1)
4072
4079
  ], !0)
4073
4080
  ]),
4074
4081
  _: 2
@@ -4088,7 +4095,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4088
4095
  }, 8, ["title", "title-tag"]);
4089
4096
  };
4090
4097
  }
4091
- }), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-940ccab7"]]), sl = {
4098
+ }), il = /* @__PURE__ */ Ce(ol, [["__scopeId", "data-v-67bd29c7"]]), sl = {
4092
4099
  key: 0,
4093
4100
  class: "kong-ui-entity-delete-error"
4094
4101
  }, ll = {
@@ -4139,7 +4146,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4139
4146
  a("proceed");
4140
4147
  };
4141
4148
  return (l, u) => {
4142
- const p = R("KAlert"), c = R("KPrompt");
4149
+ const p = V("KAlert"), c = V("KPrompt");
4143
4150
  return m(), D(c, {
4144
4151
  "action-button-appearance": "danger",
4145
4152
  "action-button-disabled": e.actionPending,
@@ -4155,7 +4162,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4155
4162
  e.error ? (m(), $("div", sl, [
4156
4163
  j(p, { appearance: "danger" }, {
4157
4164
  default: v(() => [
4158
- Y(K(e.error), 1)
4165
+ Y(F(e.error), 1)
4159
4166
  ]),
4160
4167
  _: 1
4161
4168
  })
@@ -4166,21 +4173,21 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4166
4173
  tag: "p"
4167
4174
  }, Be({
4168
4175
  entityType: v(() => [
4169
- Y(K(r.entityType), 1)
4176
+ Y(F(r.entityType), 1)
4170
4177
  ]),
4171
4178
  _: 2
4172
4179
  }, [
4173
4180
  r.entityName ? {
4174
4181
  name: "entityName",
4175
4182
  fn: v(() => [
4176
- L("strong", null, K(r.entityName), 1)
4183
+ L("strong", null, F(r.entityName), 1)
4177
4184
  ]),
4178
4185
  key: "0"
4179
4186
  } : void 0
4180
4187
  ]), 1032, ["keypath"]),
4181
4188
  r.description || l.$slots.description ? (m(), $("div", ll, [
4182
4189
  ne(l.$slots, "description", {}, () => [
4183
- L("p", null, K(r.description), 1)
4190
+ L("p", null, F(r.description), 1)
4184
4191
  ], !0)
4185
4192
  ])) : J("", !0)
4186
4193
  ]),
@@ -4250,7 +4257,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4250
4257
  },
4251
4258
  emits: ["update:modelValue"],
4252
4259
  setup(e, { emit: t }) {
4253
- const { i18n: { t: n } } = se.useI18n(), r = e, a = t, i = M(!1), o = M({}), s = M(/* @__PURE__ */ new Set()), l = w(() => {
4260
+ const { i18n: { t: n } } = se.useI18n(), r = e, a = t, i = E(!1), o = E({}), s = E(/* @__PURE__ */ new Set()), l = w(() => {
4254
4261
  const h = [];
4255
4262
  return new URLSearchParams(r.modelValue).forEach((_, d) => {
4256
4263
  _ !== "" && h.push(d);
@@ -4266,7 +4273,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4266
4273
  expanded: !1
4267
4274
  }));
4268
4275
  });
4269
- Ae(() => r.modelValue, (h) => {
4276
+ $e(() => r.modelValue, (h) => {
4270
4277
  o.value = {}, new URLSearchParams(h).forEach((_, d) => {
4271
4278
  o.value[d] = _;
4272
4279
  });
@@ -4281,9 +4288,9 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4281
4288
  y("");
4282
4289
  }, S = (h) => `filter-${h}`, T = (h) => {
4283
4290
  var _, d;
4284
- return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((I) => ({
4285
- value: I,
4286
- label: I
4291
+ return (((d = (_ = r.config.schema) == null ? void 0 : _[h]) == null ? void 0 : d.values) ?? []).map((A) => ({
4292
+ value: A,
4293
+ label: A
4287
4294
  }));
4288
4295
  }, k = (h) => {
4289
4296
  var _, d;
@@ -4296,11 +4303,11 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4296
4303
  }, N = () => {
4297
4304
  o.value = {}, Z(!0);
4298
4305
  }, Z = (h = !1) => {
4299
- const _ = Object.keys(o.value).reduce((d, I) => (o.value[I] && (d[I] = `${o.value[I]}`), d), {});
4306
+ const _ = Object.keys(o.value).reduce((d, A) => (o.value[A] && (d[A] = `${o.value[A]}`), d), {});
4300
4307
  h && (i.value = !1), a("update:modelValue", new URLSearchParams(_).toString());
4301
4308
  };
4302
4309
  return (h, _) => {
4303
- const d = R("KInput"), I = R("KButton"), B = R("KSelect");
4310
+ const d = V("KInput"), A = V("KButton"), B = V("KSelect");
4304
4311
  return e.config.isExactMatch ? (m(), D(d, {
4305
4312
  key: 0,
4306
4313
  autocomplete: "off",
@@ -4323,14 +4330,14 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4323
4330
  ]),
4324
4331
  _: 1
4325
4332
  }, 8, ["model-value", "placeholder"])) : (m(), $("div", yl, [
4326
- j(I, {
4333
+ j(A, {
4327
4334
  appearance: "tertiary",
4328
4335
  "data-testid": "filter-button",
4329
4336
  onClick: p
4330
4337
  }, {
4331
4338
  default: v(() => [
4332
4339
  j(yn),
4333
- Y(" " + K(g(n)("filter.filterButtonText")) + " " + K(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4340
+ Y(" " + F(g(n)("filter.filterButtonText")) + " " + F(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4334
4341
  ]),
4335
4342
  _: 1
4336
4343
  }),
@@ -4342,7 +4349,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4342
4349
  ]),
4343
4350
  Ne(L("div", hl, [
4344
4351
  (m(!0), $(be, null, ve(u.value, (x) => {
4345
- var G, q;
4352
+ var G, M;
4346
4353
  return m(), $("div", {
4347
4354
  key: x.value,
4348
4355
  class: "kong-ui-entity-filter-menu-item",
@@ -4355,7 +4362,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4355
4362
  onClick: (b) => c(x.value),
4356
4363
  onKeydown: wr((b) => c(x.value), ["enter"])
4357
4364
  }, [
4358
- Y(K(x.label) + " ", 1),
4365
+ Y(F(x.label) + " ", 1),
4359
4366
  Ne(L("span", Cl, null, 512), [
4360
4367
  [je, l.value.includes(x.value)]
4361
4368
  ]),
@@ -4368,8 +4375,8 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4368
4375
  L("label", {
4369
4376
  class: "menu-item-label",
4370
4377
  for: S(x.value)
4371
- }, K(g(n)("filter.fieldLabel")), 9, wl),
4372
- ((q = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : q.type) === "select" ? (m(), D(B, {
4378
+ }, F(g(n)("filter.fieldLabel")), 9, wl),
4379
+ ((M = (G = e.config.schema) == null ? void 0 : G[x.value]) == null ? void 0 : M.type) === "select" ? (m(), D(B, {
4373
4380
  key: 0,
4374
4381
  id: S(x.value),
4375
4382
  modelValue: o.value[x.value],
@@ -4389,25 +4396,25 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4389
4396
  [je, s.value.has(x.value)]
4390
4397
  ]),
4391
4398
  Ne(L("div", _l, [
4392
- j(I, {
4399
+ j(A, {
4393
4400
  appearance: "tertiary",
4394
4401
  "data-testid": "apply-filter",
4395
4402
  size: "small",
4396
4403
  onClick: _[0] || (_[0] = (b) => Z(!0))
4397
4404
  }, {
4398
4405
  default: v(() => [
4399
- Y(K(g(n)("filter.applyButtonText")), 1)
4406
+ Y(F(g(n)("filter.applyButtonText")), 1)
4400
4407
  ]),
4401
4408
  _: 1
4402
4409
  }),
4403
- j(I, {
4410
+ j(A, {
4404
4411
  appearance: "tertiary",
4405
4412
  "data-testid": "clear-filter",
4406
4413
  size: "small",
4407
4414
  onClick: (b) => U(x.value)
4408
4415
  }, {
4409
4416
  default: v(() => [
4410
- Y(K(g(n)("filter.clearButtonText")), 1)
4417
+ Y(F(g(n)("filter.clearButtonText")), 1)
4411
4418
  ]),
4412
4419
  _: 2
4413
4420
  }, 1032, ["onClick"])
@@ -4417,13 +4424,13 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4417
4424
  ], 8, vl);
4418
4425
  }), 128)),
4419
4426
  L("div", Sl, [
4420
- j(I, {
4427
+ j(A, {
4421
4428
  appearance: "tertiary",
4422
4429
  size: "small",
4423
4430
  onClick: N
4424
4431
  }, {
4425
4432
  default: v(() => [
4426
- Y(K(g(n)("filter.clearAllButtonText")), 1)
4433
+ Y(F(g(n)("filter.clearAllButtonText")), 1)
4427
4434
  ]),
4428
4435
  _: 1
4429
4436
  })
@@ -4434,7 +4441,7 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4434
4441
  ]));
4435
4442
  };
4436
4443
  }
4437
- }), Il = /* @__PURE__ */ Ce(xl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
4444
+ }), Al = /* @__PURE__ */ Ce(xl, [["__scopeId", "data-v-94990087"]]), st = /* @__PURE__ */ X({
4438
4445
  __name: "PermissionsWrapper",
4439
4446
  props: {
4440
4447
  /**
@@ -4456,8 +4463,8 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4456
4463
  }
4457
4464
  },
4458
4465
  setup(e) {
4459
- const t = e, n = M(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4460
- return Ae(() => t.authFunction, async () => {
4466
+ const t = e, n = E(void 0), r = w(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4467
+ return $e(() => t.authFunction, async () => {
4461
4468
  n.value = await t.authFunction();
4462
4469
  }, { immediate: !0 }), (a, i) => r.value ? ne(a.$slots, "default", {
4463
4470
  key: 0,
@@ -4466,11 +4473,11 @@ const ss = { class: "yaml-config" }, hr = /* @__PURE__ */ X({
4466
4473
  }
4467
4474
  });
4468
4475
  let lt;
4469
- const Al = new Uint8Array(16);
4476
+ const Il = new Uint8Array(16);
4470
4477
  function $l() {
4471
4478
  if (!lt && (lt = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !lt))
4472
4479
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4473
- return lt(Al);
4480
+ return lt(Il);
4474
4481
  }
4475
4482
  const ue = [];
4476
4483
  for (let e = 0; e < 256; ++e)
@@ -4540,19 +4547,19 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4540
4547
  key: 0,
4541
4548
  class: Me(["form-section-info", { sticky: e.stickyInfoHeader }])
4542
4549
  }, [
4543
- e.title ? (m(), D(Te(e.titleTag), {
4550
+ e.title ? (m(), D(xe(e.titleTag), {
4544
4551
  key: 0,
4545
4552
  id: g(n),
4546
4553
  class: "form-section-title"
4547
4554
  }, {
4548
4555
  default: v(() => [
4549
- Y(K(e.title), 1)
4556
+ Y(F(e.title), 1)
4550
4557
  ]),
4551
4558
  _: 1
4552
4559
  }, 8, ["id"])) : J("", !0),
4553
4560
  e.description || g(t).description ? (m(), $("div", Ml, [
4554
4561
  ne(r.$slots, "description", {}, () => [
4555
- L("p", null, K(e.description), 1)
4562
+ L("p", null, F(e.description), 1)
4556
4563
  ], !0)
4557
4564
  ])) : J("", !0),
4558
4565
  g(t).footer ? (m(), $("div", ql, [
@@ -4585,8 +4592,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4585
4592
  },
4586
4593
  emits: ["cancel", "add:success", "add:partial-success", "error"],
4587
4594
  setup(e, { emit: t }) {
4588
- var q;
4589
- const { i18n: { t: n } } = yt.useI18n(), r = e, a = t, { axiosInstance: i } = Ut((q = r.config) == null ? void 0 : q.axiosRequestConfig), o = M([]), {
4595
+ var M;
4596
+ const { i18n: { t: n } } = yt.useI18n(), r = e, a = t, { axiosInstance: i } = Ut((M = r.config) == null ? void 0 : M.axiosRequestConfig), o = E([]), {
4590
4597
  debouncedQueryChange: s,
4591
4598
  loading: l,
4592
4599
  allRecords: u,
@@ -4601,62 +4608,62 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4601
4608
  fetchedItemsKey: "data",
4602
4609
  searchKeys: ["name", "id"]
4603
4610
  }
4604
- ), f = w(() => p.value ? n("consumer_groups.errors.general") : ""), S = M(0), T = w(() => u.value === void 0), k = w(() => y.value.map((b) => ({
4611
+ ), f = w(() => p.value ? n("consumer_groups.errors.general") : ""), S = E(0), T = w(() => u.value === void 0), k = w(() => y.value.map((b) => ({
4605
4612
  label: b.name,
4606
4613
  value: b.id,
4607
4614
  selected: o.value.includes(b.id),
4608
4615
  data: b
4609
4616
  // we need this to determine whether or not to show the description text
4610
4617
  }))), U = (b) => {
4611
- var F;
4612
- const E = T.value ? y.value.find((H) => H.id === b) : (F = u.value) == null ? void 0 : F.find((H) => H.id === b);
4613
- return E ? E.name : b;
4618
+ var q;
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
+ return K ? K.name : b;
4614
4621
  }, N = () => {
4615
4622
  _.value = "", Z.value = [], x.value = [], a("cancel");
4616
- }, Z = M([]), h = M(!1), _ = M(""), d = async () => {
4623
+ }, Z = E([]), h = E(!1), _ = E(""), d = async () => {
4617
4624
  if (!o.value.length) {
4618
4625
  _.value = "", x.value = [], a("cancel");
4619
4626
  return;
4620
4627
  }
4621
4628
  h.value = !0, _.value = "", Z.value = [], x.value = [];
4622
4629
  try {
4623
- const b = o.value.map((H) => B(H)), E = await Promise.allSettled(b);
4624
- let F = !0;
4625
- E.forEach((H) => {
4626
- H.status !== "fulfilled" && (F = !1);
4627
- }), F ? (Z.value = [], x.value = [], a("add:success", o.value), o.value = []) : (Z.value.length && a("add:partial-success", Z.value), o.value = [], G(E));
4630
+ const b = o.value.map((H) => B(H)), K = await Promise.allSettled(b);
4631
+ let q = !0;
4632
+ K.forEach((H) => {
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));
4628
4635
  } catch {
4629
4636
  _.value = n("consumer_groups.errors.add"), a("error", _.value);
4630
4637
  } finally {
4631
4638
  h.value = !1;
4632
4639
  }
4633
- }, I = w(() => {
4634
- var E, F, H, te;
4640
+ }, A = w(() => {
4641
+ var K, q, H, te;
4635
4642
  let b = `${r.config.apiBaseUrl}${Oe.list[r.config.app].forConsumer}`;
4636
- return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((E = r.config) == null ? void 0 : E.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;
4643
+ return r.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((K = r.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{consumerId}/gi, ((q = r.config) == null ? void 0 : q.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;
4637
4644
  }), B = async (b) => {
4638
- const E = {
4645
+ const K = {
4639
4646
  group: b
4640
4647
  };
4641
4648
  try {
4642
- const F = await i.post(I.value, E);
4643
- return Z.value.push(b), F;
4644
- } catch (F) {
4645
- let H = `${U(b)} - ${F.message}`;
4646
- return F.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
4649
+ const q = await i.post(A.value, K);
4650
+ return Z.value.push(b), q;
4651
+ } catch (q) {
4652
+ let H = `${U(b)} - ${q.message}`;
4653
+ return q.response.status === 409 && (H = `${U(b)} - ${n("consumer_groups.errors.already_added")}`), Promise.reject(Error(H));
4647
4654
  }
4648
- }, x = M([]), G = (b) => {
4649
- x.value = b.map((E) => {
4650
- var F;
4651
- return (F = E.reason) == null ? void 0 : F.message;
4655
+ }, x = E([]), G = (b) => {
4656
+ x.value = b.map((K) => {
4657
+ var q;
4658
+ return (q = K.reason) == null ? void 0 : q.message;
4652
4659
  }).filter(Boolean);
4653
4660
  };
4654
- return Ae(k, () => {
4661
+ return $e(k, () => {
4655
4662
  S.value++;
4656
- }, { immediate: !0, deep: !0 }), Ae(() => r.visible, () => {
4663
+ }, { immediate: !0, deep: !0 }), $e(() => r.visible, () => {
4657
4664
  r.visible && c();
4658
- }, { immediate: !0 }), (b, E) => {
4659
- const F = R("KMultiselect"), H = R("KAlert"), te = R("KPrompt");
4665
+ }, { immediate: !0 }), (b, K) => {
4666
+ const q = V("KMultiselect"), H = V("KAlert"), te = V("KPrompt");
4660
4667
  return m(), D(te, {
4661
4668
  "action-button-disabled": h.value,
4662
4669
  class: "kong-ui-entities-add-to-groups-modal",
@@ -4668,10 +4675,10 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4668
4675
  }, {
4669
4676
  default: v(() => [
4670
4677
  L("div", Rl, [
4671
- L("p", Vl, K(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4672
- j(F, {
4678
+ L("p", Vl, F(g(n)("consumer_groups.consumers.add.ctaText")), 1),
4679
+ j(q, {
4673
4680
  modelValue: o.value,
4674
- "onUpdate:modelValue": E[0] || (E[0] = (de) => o.value = de),
4681
+ "onUpdate:modelValue": K[0] || (K[0] = (de) => o.value = de),
4675
4682
  autosuggest: "",
4676
4683
  "data-testid": "add-to-groups-multiselect",
4677
4684
  "dropdown-footer-text": T.value ? g(n)("consumer_groups.consumers.add.footer") : void 0,
@@ -4687,11 +4694,11 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4687
4694
  _.value || f.value || x.value.length ? (m(), $("div", Dl, [
4688
4695
  j(H, { appearance: "danger" }, {
4689
4696
  default: v(() => [
4690
- L("p", null, K(g(n)("consumer_groups.errors.add")), 1),
4697
+ L("p", null, F(g(n)("consumer_groups.errors.add")), 1),
4691
4698
  x.value.length ? (m(), $("ul", zl, [
4692
- (m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, K(de), 1))), 128))
4699
+ (m(!0), $(be, null, ve(x.value, (de, We) => (m(), $("li", { key: We }, F(de), 1))), 128))
4693
4700
  ])) : J("", !0),
4694
- L("div", null, K(_.value || f.value), 1)
4701
+ L("div", null, F(_.value || f.value), 1)
4695
4702
  ]),
4696
4703
  _: 1
4697
4704
  })
@@ -4754,29 +4761,29 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4754
4761
  emits: ["error", "copy:success", "copy:error", "delete:success", "add:success", "remove:success"],
4755
4762
  setup(e, { emit: t }) {
4756
4763
  var Vt;
4757
- 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 = M(1), u = w(() => !!r.config.consumerId), p = w(
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(
4758
4765
  () => u.value ? "kong-ui-entities-consumer-groups-list-in-consumer-page" : "kong-ui-entities-consumer-groups-list"
4759
4766
  ), c = w(() => r.config.app !== "kongManager" || !!r.config.disableSorting), y = {
4760
4767
  name: { label: i("consumer_groups.list.table_headers.name"), searchable: !0, sortable: !0 }
4761
4768
  };
4762
4769
  r.config.app === "kongManager" && (y.consumers_count = { label: i("consumer_groups.list.table_headers.consumers_count"), searchable: !1, sortable: !1 }), y.tags = { label: i("consumer_groups.list.table_headers.tags"), sortable: !1 };
4763
- const f = y, S = (A) => ({
4764
- "data-testid": A.username ?? A.custom_id ?? A.id
4770
+ const f = y, S = (I) => ({
4771
+ "data-testid": I.username ?? I.custom_id ?? I.id
4765
4772
  }), T = w(() => {
4766
4773
  var W, re, ge, we;
4767
- let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app][u.value ? "forConsumer" : "all"]}`;
4768
- return r.config.app === "konnect" ? A = A.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" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4769
- }), k = M(""), U = w(() => {
4770
- const A = r.config.app === "konnect" || r.config.isExactMatch;
4771
- return A ? {
4772
- isExactMatch: A,
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;
4776
+ }), k = E(""), U = w(() => {
4777
+ const I = r.config.app === "konnect" || r.config.isExactMatch;
4778
+ return I ? {
4779
+ isExactMatch: I,
4773
4780
  fields: {
4774
4781
  username: y.name,
4775
4782
  id: { label: i("consumer_groups.list.table_headers.id") }
4776
4783
  },
4777
4784
  placeholder: i("consumer_groups.search.placeholder")
4778
4785
  } : {
4779
- isExactMatch: A,
4786
+ isExactMatch: I,
4780
4787
  fields: {
4781
4788
  name: y.name
4782
4789
  },
@@ -4786,99 +4793,99 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4786
4793
  k.value = "";
4787
4794
  }, d = () => {
4788
4795
  l.value++;
4789
- }, I = M(null), B = (A, W) => {
4790
- const re = A.id;
4796
+ }, A = E(null), B = (I, W) => {
4797
+ const re = I.id;
4791
4798
  if (!W(re)) {
4792
4799
  n("copy:error", {
4793
- entity: A,
4800
+ entity: I,
4794
4801
  field: "id",
4795
4802
  message: i("consumer_groups.errors.copy")
4796
4803
  });
4797
4804
  return;
4798
4805
  }
4799
4806
  n("copy:success", {
4800
- entity: A,
4807
+ entity: I,
4801
4808
  field: "id",
4802
4809
  message: i("consumer_groups.copy.success", { val: re })
4803
4810
  });
4804
- }, x = (A, W) => {
4805
- const re = JSON.stringify(A);
4811
+ }, x = (I, W) => {
4812
+ const re = JSON.stringify(I);
4806
4813
  if (!W(re)) {
4807
4814
  n("copy:error", {
4808
- entity: A,
4815
+ entity: I,
4809
4816
  message: i("consumer_groups.errors.copy")
4810
4817
  });
4811
4818
  return;
4812
4819
  }
4813
4820
  n("copy:success", {
4814
- entity: A,
4821
+ entity: I,
4815
4822
  message: i("consumer_groups.copy.success_brief")
4816
4823
  });
4817
- }, G = async (A) => {
4824
+ }, G = async (I) => {
4818
4825
  var re;
4819
- await ((re = r.canRetrieve) == null ? void 0 : re.call(r, A)) && o.push(r.config.getViewRoute(A.id));
4820
- }, q = (A) => ({
4826
+ await ((re = r.canRetrieve) == null ? void 0 : re.call(r, I)) && o.push(r.config.getViewRoute(I.id));
4827
+ }, M = (I) => ({
4821
4828
  label: i("consumer_groups.actions.view"),
4822
- to: r.config.getViewRoute(A)
4823
- }), b = (A) => ({
4829
+ to: r.config.getViewRoute(I)
4830
+ }), b = (I) => ({
4824
4831
  label: i("consumer_groups.actions.edit"),
4825
- to: r.config.getEditRoute(A)
4826
- }), E = M(void 0), F = M(!1), H = M(!1), te = M(""), de = Bl(r.config, T.value), We = (A) => {
4827
- E.value = A, F.value = !0;
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) => {
4834
+ K.value = I, q.value = !0;
4828
4835
  }, bt = () => {
4829
- F.value = !1;
4836
+ q.value = !1;
4830
4837
  }, it = async () => {
4831
- var A, W, re;
4832
- if ((A = E.value) != null && A.id) {
4838
+ var I, W, re;
4839
+ if ((I = K.value) != null && I.id) {
4833
4840
  H.value = !0;
4834
4841
  try {
4835
- await s.delete(de(E.value.id)), H.value = !1, F.value = !1, l.value++, n("delete:success", E.value);
4842
+ await s.delete(de(K.value.id)), H.value = !1, q.value = !1, l.value++, n("delete:success", K.value);
4836
4843
  } catch (ge) {
4837
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);
4838
4845
  } finally {
4839
4846
  H.value = !1;
4840
4847
  }
4841
4848
  }
4842
- }, Le = M(!1), Ye = () => {
4849
+ }, Le = E(!1), Ye = () => {
4843
4850
  Le.value = !0;
4844
4851
  }, C = () => {
4845
4852
  Le.value = !1;
4846
- }, P = (A, W) => {
4847
- W || C(), l.value++, n("add:success", A);
4853
+ }, P = (I, W) => {
4854
+ W || C(), l.value++, n("add:success", I);
4848
4855
  }, ae = () => {
4849
4856
  u.value && Ye();
4850
- }, V = M(void 0), z = M(!1), me = M(""), ke = (A) => {
4851
- V.value = A, z.value = !0;
4857
+ }, R = E(void 0), z = E(!1), me = E(""), ke = (I) => {
4858
+ R.value = I, z.value = !0;
4852
4859
  }, le = () => {
4853
- z.value = !1, V.value = void 0;
4860
+ z.value = !1, R.value = void 0;
4854
4861
  }, Ue = w(() => {
4855
4862
  var W, re, ge, we;
4856
- let A = `${r.config.apiBaseUrl}${Oe.list[r.config.app].oneForConsumer}`;
4857
- return r.config.app === "konnect" ? A = A.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" && (A = A.replace(/\/{workspace}/gi, (ge = r.config) != null && ge.workspace ? `/${r.config.workspace}` : "").replace(/{consumerId}/gi, ((we = r.config) == null ? void 0 : we.consumerId) || "")), A;
4858
- }), Qe = M(!1), br = async () => {
4859
- if (V.value) {
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;
4865
+ }), Qe = E(!1), br = async () => {
4866
+ if (R.value) {
4860
4867
  Qe.value = !0;
4861
4868
  try {
4862
- const A = Ue.value.replace(/{consumerGroupId}/gi, V.value.id);
4863
- await s.delete(A), n("remove:success", V.value), le(), l.value++;
4864
- } catch (A) {
4865
- me.value = A.message || i("consumer_groups.errors.delete"), n("error", A);
4869
+ const I = Ue.value.replace(/{consumerGroupId}/gi, R.value.id);
4870
+ await s.delete(I), n("remove:success", R.value), le(), l.value++;
4871
+ } catch (I) {
4872
+ me.value = I.message || i("consumer_groups.errors.delete"), n("error", I);
4866
4873
  } finally {
4867
4874
  Qe.value = !1;
4868
4875
  }
4869
4876
  }
4870
- }, Rt = M(!0);
4871
- Ae(h, (A) => {
4877
+ }, Rt = E(!0);
4878
+ $e(h, (I) => {
4872
4879
  var W, re, ge, we;
4873
- if (Array.isArray((W = A == null ? void 0 : A.response) == null ? void 0 : W.data) && (Rt.value = A.response.data.length > 0), A.status === Fe.Error) {
4874
- I.value = {
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) {
4881
+ A.value = {
4875
4882
  title: i("consumer_groups.errors.general")
4876
- }, (we = (ge = (re = A.error) == null ? void 0 : re.response) == null ? void 0 : ge.data) != null && we.message && (I.value.message = A.error.response.data.message), n("error", A.error);
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);
4877
4884
  return;
4878
4885
  }
4879
- I.value = null;
4886
+ A.value = null;
4880
4887
  });
4881
- const Ct = M({
4888
+ const Ct = E({
4882
4889
  ctaPath: u.value ? void 0 : r.config.createRoute,
4883
4890
  ctaText: void 0,
4884
4891
  message: `${i("consumer_groups.list.empty_state.description")}${r.config.additionMessageForEmptyState ? ` ${r.config.additionMessageForEmptyState}` : ""}`,
@@ -4886,8 +4893,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4886
4893
  });
4887
4894
  return gt(async () => {
4888
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"));
4889
- }), (A, W) => {
4890
- const re = R("KButton"), ge = R("KBadge"), we = R("KTruncate"), Xe = R("KDropdownItem"), Dt = R("KClipboardProvider"), Cr = R("KPrompt");
4896
+ }), (I, W) => {
4897
+ const re = V("KButton"), ge = V("KBadge"), we = V("KTruncate"), Xe = V("KDropdownItem"), Dt = V("KClipboardProvider"), Cr = V("KPrompt");
4891
4898
  return m(), $("div", Jl, [
4892
4899
  j(g(il), {
4893
4900
  "cache-identifier": e.cacheIdentifier,
@@ -4896,7 +4903,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4896
4903
  "disable-sorting": c.value,
4897
4904
  "empty-state-options": Ct.value,
4898
4905
  "enable-entity-actions": "",
4899
- "error-message": I.value,
4906
+ "error-message": A.value,
4900
4907
  fetcher: g(Z),
4901
4908
  "fetcher-cache-key": l.value,
4902
4909
  "pagination-type": "offset",
@@ -4911,7 +4918,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4911
4918
  onSort: d
4912
4919
  }, {
4913
4920
  "toolbar-filter": v(() => [
4914
- u.value ? J("", !0) : (m(), D(g(Il), {
4921
+ u.value ? J("", !0) : (m(), D(g(Al), {
4915
4922
  key: 0,
4916
4923
  modelValue: k.value,
4917
4924
  "onUpdate:modelValue": W[0] || (W[0] = (Q) => k.value = Q),
@@ -4936,7 +4943,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4936
4943
  }, {
4937
4944
  default: v(() => [
4938
4945
  j(g(Kr)),
4939
- Y(" " + K(e.config.consumerId ? g(i)("consumer_groups.actions.add_to_group") : g(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4946
+ Y(" " + F(e.config.consumerId ? g(i)("consumer_groups.actions.add_to_group") : g(i)("consumer_groups.list.toolbar_actions.new_consumer_group")), 1)
4940
4947
  ]),
4941
4948
  _: 1
4942
4949
  }, 8, ["to"]), [
@@ -4948,10 +4955,10 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4948
4955
  ], 8, ["disabled"]))
4949
4956
  ]),
4950
4957
  name: v(({ rowValue: Q }) => [
4951
- L("b", null, K(Q ?? "-"), 1)
4958
+ L("b", null, F(Q ?? "-"), 1)
4952
4959
  ]),
4953
4960
  consumers_count: v(({ rowValue: Q }) => [
4954
- Y(K(Q ?? "-"), 1)
4961
+ Y(F(Q ?? "-"), 1)
4955
4962
  ]),
4956
4963
  tags: v(({ rowValue: Q }) => [
4957
4964
  (Q == null ? void 0 : Q.length) > 0 ? (m(), D(we, { key: 0 }, {
@@ -4962,7 +4969,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4962
4969
  }, ["stop"]))
4963
4970
  }, {
4964
4971
  default: v(() => [
4965
- Y(K(Pe), 1)
4972
+ Y(F(Pe), 1)
4966
4973
  ]),
4967
4974
  _: 2
4968
4975
  }, 1024))), 128))
@@ -4978,7 +4985,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4978
4985
  onClick: (kr) => B(Q, Pe)
4979
4986
  }, {
4980
4987
  default: v(() => [
4981
- Y(K(g(i)("consumer_groups.actions.copy_id")), 1)
4988
+ Y(F(g(i)("consumer_groups.actions.copy_id")), 1)
4982
4989
  ]),
4983
4990
  _: 2
4984
4991
  }, 1032, ["onClick"])
@@ -4992,7 +4999,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
4992
4999
  onClick: (kr) => x(Q, Pe)
4993
5000
  }, {
4994
5001
  default: v(() => [
4995
- Y(K(g(i)("consumer_groups.actions.copy_json")), 1)
5002
+ Y(F(g(i)("consumer_groups.actions.copy_json")), 1)
4996
5003
  ]),
4997
5004
  _: 2
4998
5005
  }, 1032, ["onClick"])
@@ -5006,7 +5013,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5006
5013
  j(Xe, {
5007
5014
  "data-testid": "action-entity-view",
5008
5015
  "has-divider": "",
5009
- item: q(Q.id)
5016
+ item: M(Q.id)
5010
5017
  }, null, 8, ["item"])
5011
5018
  ]),
5012
5019
  _: 2
@@ -5033,7 +5040,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5033
5040
  onClick: () => e.config.consumerId ? ke(Q) : We(Q)
5034
5041
  }, {
5035
5042
  default: v(() => [
5036
- Y(K(e.config.consumerId ? g(i)("consumer_groups.actions.exit") : g(i)("consumer_groups.actions.delete")), 1)
5043
+ Y(F(e.config.consumerId ? g(i)("consumer_groups.actions.exit") : g(i)("consumer_groups.actions.delete")), 1)
5037
5044
  ]),
5038
5045
  _: 2
5039
5046
  }, 1032, ["onClick"])
@@ -5047,11 +5054,11 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5047
5054
  "action-pending": H.value,
5048
5055
  "data-testid": "delete-consumer-group-modal",
5049
5056
  description: g(i)("consumer_groups.delete.description"),
5050
- "entity-name": E.value && (E.value.name || E.value.id),
5057
+ "entity-name": K.value && (K.value.name || K.value.id),
5051
5058
  "entity-type": g(wn).ConsumerGroup,
5052
5059
  error: te.value,
5053
5060
  title: g(i)("consumer_groups.delete.title"),
5054
- visible: F.value,
5061
+ visible: q.value,
5055
5062
  onCancel: bt,
5056
5063
  onProceed: it
5057
5064
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
@@ -5064,7 +5071,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5064
5071
  "onAdd:success": W[5] || (W[5] = (Q) => P(Q)),
5065
5072
  onCancel: C
5066
5073
  }, null, 8, ["config", "visible"])) : J("", !0),
5067
- e.config.consumerId && V.value ? (m(), D(Cr, {
5074
+ e.config.consumerId && R.value ? (m(), D(Cr, {
5068
5075
  key: 1,
5069
5076
  "action-button-appearance": "danger",
5070
5077
  "data-testid": "exit-group-modal",
@@ -5080,19 +5087,19 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5080
5087
  tag: "p"
5081
5088
  }, Be({
5082
5089
  consumerGroup: v(() => [
5083
- L("strong", null, K(V.value.name || V.value.id), 1)
5090
+ L("strong", null, F(R.value.name || R.value.id), 1)
5084
5091
  ]),
5085
5092
  _: 2
5086
5093
  }, [
5087
5094
  e.config.consumerUsername ? {
5088
5095
  name: "consumer",
5089
5096
  fn: v(() => [
5090
- L("strong", null, K(e.config.consumerUsername), 1)
5097
+ L("strong", null, F(e.config.consumerUsername), 1)
5091
5098
  ]),
5092
5099
  key: "0"
5093
5100
  } : void 0
5094
5101
  ]), 1032, ["keypath"]),
5095
- L("p", null, K(g(i)("consumer_groups.consumers.exit.description")), 1)
5102
+ L("p", null, F(g(i)("consumer_groups.consumers.exit.description")), 1)
5096
5103
  ]),
5097
5104
  _: 1
5098
5105
  }, 8, ["title", "visible"])) : J("", !0)
@@ -5153,18 +5160,18 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5153
5160
  return (P = Oe.form[(C = n.config) == null ? void 0 : C.app]) == null ? void 0 : P.edit;
5154
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 = "") => {
5155
5162
  var z, me, ke, le, Ue, Qe;
5156
- let V = `${(z = n.config) == null ? void 0 : z.apiBaseUrl}${Oe.form[(me = n.config) == null ? void 0 : me.app][C]}`;
5157
- 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;
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;
5158
5165
  }, d = () => {
5159
5166
  var C;
5160
5167
  i.push(((C = n.config) == null ? void 0 : C.cancelRoute) || { name: "consumer-group-list" });
5161
- }, I = (C) => {
5168
+ }, A = (C) => {
5162
5169
  r("error", C);
5163
5170
  }, B = (C) => {
5164
5171
  r("loading", C);
5165
5172
  }, x = async (C) => {
5166
- var ae, V, z, me, ke;
5167
- 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) || "";
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) || "";
5168
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) || [];
5169
5176
  if (o.fields.tags = (P == null ? void 0 : P.join(", ")) || "", "consumers" in C)
5170
5177
  o.fields.consumers = ((me = C == null ? void 0 : C.consumers) == null ? void 0 : me.map((le) => le.id)) || [];
@@ -5173,66 +5180,66 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5173
5180
  const { data: le } = await f.get(_("getConsumers"));
5174
5181
  o.fields.consumers = "consumers" in le ? (ke = le == null ? void 0 : le.consumers) == null ? void 0 : ke.map((Ue) => Ue.id) : [];
5175
5182
  } catch (le) {
5176
- F(le);
5183
+ q(le);
5177
5184
  }
5178
5185
  Object.assign(s, o.fields);
5179
- }, G = w(() => T.utf8Name(o.fields.name)), q = w(() => {
5186
+ }, G = w(() => T.utf8Name(o.fields.name)), M = w(() => {
5180
5187
  var C, P;
5181
5188
  return {
5182
5189
  name: o.fields.name,
5183
5190
  tags: (P = (C = o.fields.tags.split(",")) == null ? void 0 : C.map((ae) => String(ae || "").trim())) == null ? void 0 : P.filter((ae) => ae !== "")
5184
5191
  };
5185
- }), b = async (C, P = "") => await f.post(_("addConsumer", P, C), { consumer: C }), E = async (C, P = "") => await f.delete(_("removeConsumer", P, C)), F = (C) => {
5192
+ }), b = async (C, P = "") => await f.post(_("addConsumer", P, C), { consumer: C }), K = async (C, P = "") => await f.delete(_("removeConsumer", P, C)), q = (C) => {
5186
5193
  o.errorMessage = S(C), r("error", C);
5187
5194
  }, H = (C = n.consumerGroupId) => {
5188
5195
  Object.assign(s, o.fields), r("update", { ...o.fields, id: C });
5189
5196
  }, te = (C, P, ae = n.consumerGroupId) => {
5190
- const V = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5191
- V ? F({
5192
- code: V.status,
5197
+ const R = C == null ? void 0 : C.find((z) => z.status !== "fulfilled");
5198
+ R ? q({
5199
+ code: R.status,
5193
5200
  message: P
5194
5201
  }) : H(ae);
5195
5202
  }, de = async () => {
5196
5203
  let C = "";
5197
5204
  try {
5198
- const { data: P } = await f.post(_("create"), q.value);
5205
+ const { data: P } = await f.post(_("create"), M.value);
5199
5206
  C = "item" in P ? P.item.id : P.id;
5200
5207
  } catch (P) {
5201
- F(P);
5208
+ q(P);
5202
5209
  }
5203
5210
  if (o.fields.consumers.length > 0 && C)
5204
5211
  try {
5205
- const P = o.fields.consumers.map((V) => b(V, C)), ae = await Promise.allSettled(P);
5212
+ const P = o.fields.consumers.map((R) => b(R, C)), ae = await Promise.allSettled(P);
5206
5213
  te(ae, a("consumer_groups.errors.add_consumer"), C);
5207
5214
  } catch (P) {
5208
- F(P);
5215
+ q(P);
5209
5216
  }
5210
5217
  else
5211
5218
  o.fields.consumers.length === 0 && C && H(C);
5212
5219
  }, We = async () => {
5213
5220
  var ae;
5214
5221
  try {
5215
- ((ae = n.config) == null ? void 0 : ae.app) === "konnect" ? await f.put(_("edit"), q.value) : await f.patch(_("edit"), q.value);
5216
- } catch (V) {
5217
- F(V);
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);
5218
5225
  }
5219
- const C = o.fields.consumers.filter((V) => !s.consumers.includes(V)), P = s.consumers.filter((V) => !o.fields.consumers.includes(V));
5226
+ const C = o.fields.consumers.filter((R) => !s.consumers.includes(R)), P = s.consumers.filter((R) => !o.fields.consumers.includes(R));
5220
5227
  if (P.length === 0 && C.length === 0)
5221
5228
  H();
5222
5229
  else {
5223
5230
  if (P.length > 0)
5224
5231
  try {
5225
- const V = P.map((me) => E(me)), z = await Promise.allSettled(V);
5232
+ const R = P.map((me) => K(me)), z = await Promise.allSettled(R);
5226
5233
  te(z, a("consumer_groups.errors.remove_consumer"));
5227
- } catch (V) {
5228
- F(V);
5234
+ } catch (R) {
5235
+ q(R);
5229
5236
  }
5230
5237
  if (C.length > 0)
5231
5238
  try {
5232
- const V = C.map((me) => b(me)), z = await Promise.allSettled(V);
5239
+ const R = C.map((me) => b(me)), z = await Promise.allSettled(R);
5233
5240
  te(z, a("consumer_groups.errors.add_consumer"));
5234
- } catch (V) {
5235
- F(V);
5241
+ } catch (R) {
5242
+ q(R);
5236
5243
  }
5237
5244
  }
5238
5245
  }, bt = async () => {
@@ -5245,7 +5252,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5245
5252
  return gt(async () => {
5246
5253
  await c();
5247
5254
  }), (C, P) => {
5248
- const ae = R("KInput"), V = R("KMultiselect");
5255
+ const ae = V("KInput"), R = V("KMultiselect");
5249
5256
  return m(), $("div", Yl, [
5250
5257
  j(g(Qs), {
5251
5258
  "can-submit": Z.value && h.value,
@@ -5253,10 +5260,10 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5253
5260
  "edit-id": e.consumerGroupId,
5254
5261
  "error-message": o.errorMessage || g(p) || G.value,
5255
5262
  "fetch-url": U.value,
5256
- "form-fields": q.value,
5263
+ "form-fields": M.value,
5257
5264
  "is-readonly": o.readonly,
5258
5265
  onCancel: d,
5259
- "onFetch:error": P[3] || (P[3] = (z) => I(z)),
5266
+ "onFetch:error": P[3] || (P[3] = (z) => A(z)),
5260
5267
  "onFetch:success": x,
5261
5268
  onLoading: P[4] || (P[4] = (z) => B(z)),
5262
5269
  onSubmit: bt
@@ -5302,7 +5309,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5302
5309
  title: g(a)("consumer_groups.form.consumers.title")
5303
5310
  }, {
5304
5311
  default: v(() => [
5305
- j(V, {
5312
+ j(R, {
5306
5313
  modelValue: o.fields.consumers,
5307
5314
  "onUpdate:modelValue": P[2] || (P[2] = (z) => o.fields.consumers = z),
5308
5315
  appearance: "select",
@@ -5318,8 +5325,8 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5318
5325
  var me, ke, le;
5319
5326
  return [
5320
5327
  L("div", Ql, [
5321
- L("div", Xl, K(z.label), 1),
5322
- (me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div", eu, K((le = z == null ? void 0 : z.data) == null ? void 0 : le.custom_id), 1)) : J("", !0)
5328
+ L("div", Xl, F(z.label), 1),
5329
+ (me = z == null ? void 0 : z.data) != null && me.username && ((ke = z == null ? void 0 : z.data) != null && ke.custom_id) ? (m(), $("div", eu, F((le = z == null ? void 0 : z.data) == null ? void 0 : le.custom_id), 1)) : J("", !0)
5323
5330
  ])
5324
5331
  ];
5325
5332
  }),
@@ -5361,7 +5368,7 @@ const Ol = ["aria-labelledby"], El = { class: "form-section-wrapper" }, Ml = {
5361
5368
  },
5362
5369
  emits: ["loading", "fetch:error", "fetch:success"],
5363
5370
  setup(e) {
5364
- const t = e, { i18n: { t: n } } = yt.useI18n(), r = w(() => Oe.form[t.config.app].edit), a = M({
5371
+ const t = e, { i18n: { t: n } } = yt.useI18n(), r = w(() => Oe.form[t.config.app].edit), a = E({
5365
5372
  id: {},
5366
5373
  name: {},
5367
5374
  created_at: {},