@kong-ui-public/entities-consumers 2.0.2 → 2.0.4-pr.759.e20864b0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as ee, ref as N, computed as M, watch as ve, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as V, openBlock as m, createBlock as U, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as $, createVNode as E, createElementBlock as T, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Ne, normalizeProps as mr, guardReactiveProps as gr, mergeProps as lt, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Ft } from "vue";
1
+ import { defineComponent as ee, ref as F, computed as M, watch as ve, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as Ze, onBeforeMount as Xe, resolveComponent as V, openBlock as m, createBlock as U, createSlots as be, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as $, createVNode as E, createElementBlock as T, renderList as ce, Fragment as pe, normalizeClass as Ae, withModifiers as Ge, withDirectives as Ue, vShow as De, useCssVars as fr, resolveDynamicComponent as Fe, normalizeProps as mr, guardReactiveProps as gr, mergeProps as lt, onMounted as yr, onUnmounted as hr, normalizeStyle as ln, inject as vr, pushScopeId as un, popScopeId as cn, reactive as Nt } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as dn } from "@kong-ui-public/i18n";
4
4
  import br from "axios";
@@ -265,10 +265,10 @@ const xr = {
265
265
  fetch: "Could not fetch available items",
266
266
  invalid: "Please select a valid value"
267
267
  }
268
- }, Nr = {
268
+ }, Fr = {
269
269
  unexpected: "An unexpected error has occurred",
270
270
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
271
- }, Fr = {
271
+ }, Nr = {
272
272
  enable: {
273
273
  title: "Enable {entityType}",
274
274
  message: "Are you sure you want to enable the {entityType} {entityName}?",
@@ -287,8 +287,8 @@ const xr = {
287
287
  baseConfigCard: Mr,
288
288
  filter: Or,
289
289
  debouncedFilter: Er,
290
- errors: Nr,
291
- toggleModal: Fr
290
+ errors: Fr,
291
+ toggleModal: Nr
292
292
  };
293
293
  function vt() {
294
294
  const e = yt("en-us", Kr);
@@ -351,60 +351,60 @@ function Br(e, n, t, r = {
351
351
  headers: e.requestHeaders
352
352
  }), { i18n: { t: o } } = vt(), { debounce: i } = Ir(), s = i(async (S) => {
353
353
  await k(S);
354
- }, 200), l = N(!1), c = N(""), d = N(""), u = N([]), h = N([]), f = N(void 0), I = g(n);
355
- let b = `${e.apiBaseUrl}${I}`;
356
- e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
- const { isValidUuid: p } = fn(), A = async () => {
354
+ }, 200), l = F(!1), c = F(""), d = F(""), u = F([]), h = F([]), f = F(void 0), A = g(n);
355
+ let v = `${e.apiBaseUrl}${A}`;
356
+ e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
+ const { isValidUuid: p } = fn(), I = async () => {
358
358
  try {
359
359
  l.value = !0;
360
- const { data: S } = await a.get(`${b}?size=${t}`);
360
+ const { data: S } = await a.get(`${v}?size=${t}`);
361
361
  S != null && S.next || (f.value = r.fetchedItemsKey in S ? S[r.fetchedItemsKey] : []), h.value = r.fetchedItemsKey in S ? S[r.fetchedItemsKey] : [], u.value = h.value;
362
362
  } catch {
363
363
  u.value = [], c.value = o("debouncedFilter.errors.fetch");
364
364
  } finally {
365
365
  l.value = !1;
366
366
  }
367
- }, w = N(""), k = async (S) => {
367
+ }, w = F(""), k = async (S) => {
368
368
  var x, P, R;
369
369
  if (w.value !== S)
370
370
  if (w.value = S || "", f.value === void 0)
371
371
  try {
372
372
  if (l.value = !0, c.value = "", d.value = "", e.app === "konnect") {
373
- let v = b + "";
374
- S && (v += `/${S}`);
375
- const { data: C } = await a.get(`${v}?size=${t}`);
373
+ let b = v + "";
374
+ S && (b += `/${S}`);
375
+ const { data: C } = await a.get(`${b}?size=${t}`);
376
376
  r.fetchedItemsKey in C ? u.value = C[r.fetchedItemsKey] : C != null && C.id ? u.value = [C] : u.value = [];
377
377
  } else if (S) {
378
- const v = [];
379
- p(S) && r.searchKeys.includes("id") ? v.push((async () => {
380
- const { data: q } = await a.get(`${b}/${S}`);
378
+ const b = [];
379
+ p(S) && r.searchKeys.includes("id") ? b.push((async () => {
380
+ const { data: q } = await a.get(`${v}/${S}`);
381
381
  return [q[r.fetchedItemsKey] ?? q];
382
- })()) : v.push(
382
+ })()) : b.push(
383
383
  ...r.searchKeys.filter((q) => q !== "id").map(async (q) => {
384
- const { data: _ } = await a.get(`${b}?${q}=${S}`);
384
+ const { data: _ } = await a.get(`${v}?${q}=${S}`);
385
385
  return _[r.fetchedItemsKey];
386
386
  })
387
387
  );
388
- const C = await Promise.all(v), B = /* @__PURE__ */ new Set();
388
+ const C = await Promise.all(b), B = /* @__PURE__ */ new Set();
389
389
  u.value = [], (x = C == null ? void 0 : C.forEach) == null || x.call(C, (q) => {
390
390
  var _;
391
- (_ = q == null ? void 0 : q.forEach) == null || _.call(q, (F) => {
392
- B.has(F.id) || (B.add(F.id), u.value.push(F));
391
+ (_ = q == null ? void 0 : q.forEach) == null || _.call(q, (N) => {
392
+ B.has(N.id) || (B.add(N.id), u.value.push(N));
393
393
  });
394
394
  });
395
395
  } else
396
396
  u.value = h.value;
397
- } catch (v) {
398
- ((P = v == null ? void 0 : v.response) == null ? void 0 : P.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
397
+ } catch (b) {
398
+ ((P = b == null ? void 0 : b.response) == null ? void 0 : P.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
399
399
  } finally {
400
400
  l.value = !1;
401
401
  }
402
402
  else
403
- l.value = !0, d.value = "", S ? (u.value = (R = f.value) == null ? void 0 : R.filter((v) => {
403
+ l.value = !0, d.value = "", S ? (u.value = (R = f.value) == null ? void 0 : R.filter((b) => {
404
404
  var C;
405
405
  let B = !1;
406
406
  for (const q of r.searchKeys) {
407
- const _ = typeof v[q] == "string" ? (C = v[q]) == null ? void 0 : C.toLowerCase() : v[q];
407
+ const _ = typeof b[q] == "string" ? (C = b[q]) == null ? void 0 : C.toLowerCase() : b[q];
408
408
  _ != null && _.includes(S.toLowerCase()) && (B = !0);
409
409
  }
410
410
  return B;
@@ -416,7 +416,7 @@ function Br(e, n, t, r = {
416
416
  validationError: d,
417
417
  results: u,
418
418
  allRecords: f,
419
- loadItems: A,
419
+ loadItems: I,
420
420
  debouncedQueryChange: s
421
421
  };
422
422
  }
@@ -466,7 +466,7 @@ function Pr(e) {
466
466
  }
467
467
  }
468
468
  function mn(e, n) {
469
- const t = N(g(e)), r = N(g(n)), a = M(
469
+ const t = F(g(e)), r = F(g(n)), a = M(
470
470
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
471
471
  ), o = M(
472
472
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -475,8 +475,8 @@ function mn(e, n) {
475
475
  const { page: s, pageSize: l, offset: c, sortColumnKey: d, sortColumnOrder: u, query: h } = i;
476
476
  try {
477
477
  let f = new URL(o.value.href);
478
- return a.value && h ? (f.search = "", f = new URL(`${f.href}/${h}/`)) : (a.value || new URLSearchParams(h).forEach((I, b) => {
479
- f.searchParams.append(b, I);
478
+ return a.value && h ? (f.search = "", f = new URL(`${f.href}/${h}/`)) : (a.value || new URLSearchParams(h).forEach((A, v) => {
479
+ f.searchParams.append(v, A);
480
480
  }), d && f.searchParams.append("sort_by", d), u === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), c && s !== 1 && f.searchParams.append("offset", String(c)), f.href;
481
481
  } catch (f) {
482
482
  return console.error("RouteList(fetcher)", f), r.value;
@@ -486,7 +486,7 @@ function mn(e, n) {
486
486
  function Vr(e, n, t = "data") {
487
487
  const r = g(n), { axiosInstance: a } = ht({
488
488
  headers: e.requestHeaders
489
- }), o = mn(e, r), i = N({
489
+ }), o = mn(e, r), i = F({
490
490
  status: _e.Idle
491
491
  });
492
492
  return { fetcher: async (s) => {
@@ -588,7 +588,7 @@ function Jr(e) {
588
588
  return !(i && Pt(a, i, "<") || s && Pt(a, s, ">"));
589
589
  }
590
590
  function Yr(e) {
591
- const n = N(0), t = N(0), r = N(!1);
591
+ const n = F(0), t = F(0), r = F(!1);
592
592
  return ve(e, (a) => {
593
593
  a && !r.value && (n.value = a.offsetWidth, t.value = a.scrollWidth, r.value = !0);
594
594
  }), {
@@ -697,7 +697,7 @@ const ae = {
697
697
  lineHeight: "0",
698
698
  width: t.value
699
699
  }));
700
- return (a, o) => (m(), U(Ne(e.as), {
700
+ return (a, o) => (m(), U(Fe(e.as), {
701
701
  "aria-hidden": e.decorative ? "true" : void 0,
702
702
  class: "kui-icon copy-icon",
703
703
  "data-testid": "kui-icon-wrapper-copy-icon",
@@ -772,7 +772,7 @@ const ae = {
772
772
  placement: "bottomStart"
773
773
  } : {
774
774
  title: t.uuid
775
- }), i = M(() => !!(t.tooltip && t.successTooltip)), s = N(t.tooltip), l = M(() => t.tooltip ? {
775
+ }), i = M(() => !!(t.tooltip && t.successTooltip)), s = F(t.tooltip), l = M(() => t.tooltip ? {
776
776
  label: s.value,
777
777
  positionFixed: !0,
778
778
  maxWidth: "500px",
@@ -785,7 +785,7 @@ const ae = {
785
785
  s.value = t.tooltip;
786
786
  }, 1800);
787
787
  }, u = (h) => {
788
- var f, I;
788
+ var f, A;
789
789
  if (!h(t.uuid)) {
790
790
  typeof a == "function" && a({
791
791
  type: "error",
@@ -793,16 +793,16 @@ const ae = {
793
793
  }), i.value ? d(r("message.fail")) : n("error", t.uuid);
794
794
  return;
795
795
  }
796
- const b = ((f = t.uuid) == null ? void 0 : f.length) > Ut, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((I = t.uuid) == null ? void 0 : I.substring(0, Ut)) + (b ? "..." : "")}"`;
796
+ const v = ((f = t.uuid) == null ? void 0 : f.length) > Ut, p = t.format === "hidden" || t.format === "redacted" ? r("message.success.prefix") : `"${((A = t.uuid) == null ? void 0 : A.substring(0, Ut)) + (v ? "..." : "")}"`;
797
797
  typeof a == "function" && a({
798
798
  type: "success",
799
799
  message: `${p}${r("message.success.content")}`
800
800
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
801
801
  };
802
802
  return (h, f) => {
803
- const I = V("KClipboardProvider");
803
+ const A = V("KClipboardProvider");
804
804
  return m(), T("div", la, [
805
- e.format !== "hidden" ? (m(), U(Ne(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
805
+ e.format !== "hidden" ? (m(), U(Fe(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
806
806
  default: y(() => [
807
807
  K("div", {
808
808
  class: Ae([
@@ -814,15 +814,15 @@ const ae = {
814
814
  ]),
815
815
  _: 1
816
816
  }, 16)) : G("", !0),
817
- (m(), U(Ne(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
817
+ (m(), U(Fe(e.tooltip ? "KTooltip" : "div"), lt(l.value, { class: "uuid-icon-wrapper" }), {
818
818
  default: y(() => [
819
- E(I, null, {
820
- default: y(({ copyToClipboard: b }) => [
819
+ E(A, null, {
820
+ default: y(({ copyToClipboard: v }) => [
821
821
  K("span", {
822
822
  "data-testid": "copy-to-clipboard",
823
823
  role: "button",
824
824
  tabindex: "0",
825
- onClick: Ge((p) => u(b), ["stop"])
825
+ onClick: Ge((p) => u(v), ["stop"])
826
826
  }, [
827
827
  E(g(ia), {
828
828
  class: "uuid-icon",
@@ -873,7 +873,7 @@ const ae = {
873
873
  var l;
874
874
  return n.isArrayItem ? (l = o.value) != null && l.name ? r(o.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: n.index }) : "";
875
875
  });
876
- return (l, c) => (m(), U(Ne(e.isArrayItem ? "fieldset" : "div"), {
876
+ return (l, c) => (m(), U(Fe(e.isArrayItem ? "fieldset" : "div"), {
877
877
  class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
878
878
  }, {
879
879
  default: y(() => [
@@ -1102,16 +1102,16 @@ const ae = {
1102
1102
  text: t.item.value
1103
1103
  };
1104
1104
  }
1105
- }), u = N(), { isTruncated: h } = ae.useTruncationDetector(u);
1106
- return (f, I) => {
1107
- const b = V("KLabel"), p = V("KBadge"), A = V("KMethodBadge"), w = V("KTooltip");
1105
+ }), u = F(), { isTruncated: h } = ae.useTruncationDetector(u);
1106
+ return (f, A) => {
1107
+ const v = V("KLabel"), p = V("KBadge"), I = V("KMethodBadge"), w = V("KTooltip");
1108
1108
  return m(), T("div", wa, [
1109
1109
  K("div", {
1110
1110
  class: "config-card-details-label",
1111
1111
  "data-testid": `${e.item.key}-label`
1112
1112
  }, [
1113
1113
  Y(f.$slots, "label", { item: e.item }, () => [
1114
- E(b, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1114
+ E(v, { "tooltip-attributes": { maxWidth: "500px" } }, be({
1115
1115
  default: y(() => [
1116
1116
  W($(e.item.label) + " ", 1)
1117
1117
  ]),
@@ -1141,7 +1141,7 @@ const ae = {
1141
1141
  rowValue: e.item.value
1142
1142
  }, () => [
1143
1143
  i.value ? (m(), T("div", xa, [
1144
- (m(), U(Ne(d.value.tag), mr(gr(d.value.attrs)), {
1144
+ (m(), U(Fe(d.value.tag), mr(gr(d.value.attrs)), {
1145
1145
  default: y(() => [
1146
1146
  d.value.additionalComponent === "KBadge" ? (m(), T("div", {
1147
1147
  key: 0,
@@ -1174,7 +1174,7 @@ const ae = {
1174
1174
  class: "method-badge-array",
1175
1175
  "data-testid": `${e.item.key}-badge-methods`
1176
1176
  }, [
1177
- (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(A, {
1177
+ (m(!0), T(pe, null, ce(e.item.value, (k, S) => (m(), U(I, {
1178
1178
  key: `${e.item.key}-badge-method-${S}`,
1179
1179
  class: "config-badge",
1180
1180
  "data-testid": `${e.item.key}-badge-method-${S}`,
@@ -1228,10 +1228,10 @@ const ae = {
1228
1228
  function bn(e) {
1229
1229
  return typeof e > "u" || e === null;
1230
1230
  }
1231
- function Na(e) {
1231
+ function Fa(e) {
1232
1232
  return typeof e == "object" && e !== null;
1233
1233
  }
1234
- function Fa(e) {
1234
+ function Na(e) {
1235
1235
  return Array.isArray(e) ? e : bn(e) ? [] : [e];
1236
1236
  }
1237
1237
  function Ka(e, n) {
@@ -1250,7 +1250,7 @@ function Ba(e, n) {
1250
1250
  function qa(e) {
1251
1251
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1252
1252
  }
1253
- var La = bn, Pa = Na, Va = Fa, Ra = Ba, Ua = qa, Da = Ka, ne = {
1253
+ var La = bn, Pa = Fa, Va = Na, Ra = Ba, Ua = qa, Da = Ka, ne = {
1254
1254
  isNothing: La,
1255
1255
  isObject: Pa,
1256
1256
  toArray: Va,
@@ -1682,7 +1682,7 @@ function vo(e) {
1682
1682
  function bo(e) {
1683
1683
  return e.toISOString();
1684
1684
  }
1685
- var Nn = new oe("tag:yaml.org,2002:timestamp", {
1685
+ var Fn = new oe("tag:yaml.org,2002:timestamp", {
1686
1686
  kind: "scalar",
1687
1687
  resolve: ho,
1688
1688
  construct: vo,
@@ -1692,7 +1692,7 @@ var Nn = new oe("tag:yaml.org,2002:timestamp", {
1692
1692
  function Co(e) {
1693
1693
  return e === "<<" || e === null;
1694
1694
  }
1695
- var Fn = new oe("tag:yaml.org,2002:merge", {
1695
+ var Nn = new oe("tag:yaml.org,2002:merge", {
1696
1696
  kind: "scalar",
1697
1697
  resolve: Co
1698
1698
  }), Ct = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1794,17 +1794,17 @@ function Eo(e) {
1794
1794
  return !1;
1795
1795
  return !0;
1796
1796
  }
1797
- function No(e) {
1797
+ function Fo(e) {
1798
1798
  return e !== null ? e : {};
1799
1799
  }
1800
1800
  var Ln = new oe("tag:yaml.org,2002:set", {
1801
1801
  kind: "mapping",
1802
1802
  resolve: Eo,
1803
- construct: No
1803
+ construct: Fo
1804
1804
  }), kt = Mn.extend({
1805
1805
  implicit: [
1806
- Nn,
1807
- Fn
1806
+ Fn,
1807
+ Nn
1808
1808
  ],
1809
1809
  explicit: [
1810
1810
  Kn,
@@ -1812,7 +1812,7 @@ var Ln = new oe("tag:yaml.org,2002:set", {
1812
1812
  qn,
1813
1813
  Ln
1814
1814
  ]
1815
- }), ke = Object.prototype.hasOwnProperty, ze = 1, Pn = 2, Vn = 3, He = 4, st = 1, Fo = 2, Gt = 3, Ko = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1815
+ }), ke = Object.prototype.hasOwnProperty, ze = 1, Pn = 2, Vn = 3, He = 4, st = 1, No = 2, Gt = 3, Ko = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Bo = /[\x85\u2028\u2029]/, qo = /[,\[\]\{\}]/, Rn = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1816
1816
  function zt(e) {
1817
1817
  return Object.prototype.toString.call(e);
1818
1818
  }
@@ -2017,7 +2017,7 @@ function zo(e, n) {
2017
2017
  j(e, "unexpected end of the stream within a double quoted scalar");
2018
2018
  }
2019
2019
  function Ho(e, n) {
2020
- var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, h, f, I = /* @__PURE__ */ Object.create(null), b, p, A, w;
2020
+ var t = !0, r, a, o, i = e.tag, s, l = e.anchor, c, d, u, h, f, A = /* @__PURE__ */ Object.create(null), v, p, I, w;
2021
2021
  if (w = e.input.charCodeAt(e.position), w === 91)
2022
2022
  d = 93, f = !1, s = [];
2023
2023
  else if (w === 123)
@@ -2027,7 +2027,7 @@ function Ho(e, n) {
2027
2027
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), w = e.input.charCodeAt(++e.position); w !== 0; ) {
2028
2028
  if (te(e, !0, n), w = e.input.charCodeAt(e.position), w === d)
2029
2029
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
2030
- t ? w === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = b = A = null, u = h = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, te(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Fe(e, n, ze, !1, !0), p = e.tag, b = e.result, te(e, !0, n), w = e.input.charCodeAt(e.position), (h || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), te(e, !0, n), Fe(e, n, ze, !1, !0), A = e.result), f ? Ee(e, s, I, p, b, A, r, a, o) : u ? s.push(Ee(e, null, I, p, b, A, r, a, o)) : s.push(b), te(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
2030
+ t ? w === 44 && j(e, "expected the node content, but found ','") : j(e, "missed comma between flow collection entries"), p = v = I = null, u = h = !1, w === 63 && (c = e.input.charCodeAt(e.position + 1), de(c) && (u = h = !0, e.position++, te(e, !0, n))), r = e.line, a = e.lineStart, o = e.position, Ne(e, n, ze, !1, !0), p = e.tag, v = e.result, te(e, !0, n), w = e.input.charCodeAt(e.position), (h || e.line === r) && w === 58 && (u = !0, w = e.input.charCodeAt(++e.position), te(e, !0, n), Ne(e, n, ze, !1, !0), I = e.result), f ? Ee(e, s, A, p, v, I, r, a, o) : u ? s.push(Ee(e, null, A, p, v, I, r, a, o)) : s.push(v), te(e, !0, n), w = e.input.charCodeAt(e.position), w === 44 ? (t = !0, w = e.input.charCodeAt(++e.position)) : t = !1;
2031
2031
  }
2032
2032
  j(e, "unexpected end of the stream within a flow collection");
2033
2033
  }
@@ -2041,7 +2041,7 @@ function Jo(e, n) {
2041
2041
  return !1;
2042
2042
  for (e.kind = "scalar", e.result = ""; u !== 0; )
2043
2043
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
2044
- st === a ? a = u === 43 ? Gt : Fo : j(e, "repeat of a chomping mode identifier");
2044
+ st === a ? a = u === 43 ? Gt : No : j(e, "repeat of a chomping mode identifier");
2045
2045
  else if ((d = Vo(u)) >= 0)
2046
2046
  d === 0 ? j(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : i ? j(e, "repeat of an indentation width identifier") : (s = n + d - 1, i = !0);
2047
2047
  else
@@ -2087,7 +2087,7 @@ function Wt(e, n) {
2087
2087
  o.push(null), l = e.input.charCodeAt(e.position);
2088
2088
  continue;
2089
2089
  }
2090
- if (t = e.line, Fe(e, n, Vn, !1, !0), o.push(e.result), te(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2090
+ if (t = e.line, Ne(e, n, Vn, !1, !0), o.push(e.result), te(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > n) && l !== 0)
2091
2091
  j(e, "bad indentation of a sequence entry");
2092
2092
  else if (e.lineIndent < n)
2093
2093
  break;
@@ -2095,35 +2095,35 @@ function Wt(e, n) {
2095
2095
  return s ? (e.tag = r, e.anchor = a, e.kind = "sequence", e.result = o, !0) : !1;
2096
2096
  }
2097
2097
  function Yo(e, n, t) {
2098
- var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, I = null, b = null, p = !1, A = !1, w;
2098
+ var r, a, o, i, s, l, c = e.tag, d = e.anchor, u = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, v = null, p = !1, I = !1, w;
2099
2099
  if (e.firstTabInLine !== -1)
2100
2100
  return !1;
2101
2101
  for (e.anchor !== null && (e.anchorMap[e.anchor] = u), w = e.input.charCodeAt(e.position); w !== 0; ) {
2102
2102
  if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, j(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (w === 63 || w === 58) && de(r))
2103
- w === 63 ? (p && (Ee(e, u, h, f, I, null, i, s, l), f = I = b = null), A = !0, p = !0, a = !0) : p ? (p = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
2103
+ w === 63 ? (p && (Ee(e, u, h, f, A, null, i, s, l), f = A = v = null), I = !0, p = !0, a = !0) : p ? (p = !1, a = !0) : j(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, w = r;
2104
2104
  else {
2105
- if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Pn, !1, !0))
2105
+ if (i = e.line, s = e.lineStart, l = e.position, !Ne(e, t, Pn, !1, !0))
2106
2106
  break;
2107
2107
  if (e.line === o) {
2108
2108
  for (w = e.input.charCodeAt(e.position); Ie(w); )
2109
2109
  w = e.input.charCodeAt(++e.position);
2110
2110
  if (w === 58)
2111
- w = e.input.charCodeAt(++e.position), de(w) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, h, f, I, null, i, s, l), f = I = b = null), A = !0, p = !1, a = !1, f = e.tag, I = e.result;
2112
- else if (A)
2111
+ w = e.input.charCodeAt(++e.position), de(w) || j(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Ee(e, u, h, f, A, null, i, s, l), f = A = v = null), I = !0, p = !1, a = !1, f = e.tag, A = e.result;
2112
+ else if (I)
2113
2113
  j(e, "can not read an implicit mapping pair; a colon is missed");
2114
2114
  else
2115
2115
  return e.tag = c, e.anchor = d, !0;
2116
- } else if (A)
2116
+ } else if (I)
2117
2117
  j(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2118
2118
  else
2119
2119
  return e.tag = c, e.anchor = d, !0;
2120
2120
  }
2121
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, a) && (p ? I = e.result : b = e.result), p || (Ee(e, u, h, f, I, b, i, s, l), f = I = b = null), te(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2121
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Ne(e, n, He, !0, a) && (p ? A = e.result : v = e.result), p || (Ee(e, u, h, f, A, v, i, s, l), f = A = v = null), te(e, !0, -1), w = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && w !== 0)
2122
2122
  j(e, "bad indentation of a mapping entry");
2123
2123
  else if (e.lineIndent < n)
2124
2124
  break;
2125
2125
  }
2126
- return p && Ee(e, u, h, f, I, null, i, s, l), A && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), A;
2126
+ return p && Ee(e, u, h, f, A, null, i, s, l), I && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), I;
2127
2127
  }
2128
2128
  function Wo(e) {
2129
2129
  var n, t = !1, r = !1, a, o, i;
@@ -2163,29 +2163,29 @@ function Xo(e) {
2163
2163
  r = e.input.charCodeAt(++e.position);
2164
2164
  return e.position === n && j(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), ke.call(e.anchorMap, t) || j(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], te(e, !0, -1), !0;
2165
2165
  }
2166
- function Fe(e, n, t, r, a) {
2167
- var o, i, s, l = 1, c = !1, d = !1, u, h, f, I, b, p;
2166
+ function Ne(e, n, t, r, a) {
2167
+ var o, i, s, l = 1, c = !1, d = !1, u, h, f, A, v, p;
2168
2168
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Vn === t, r && te(e, !0, -1) && (c = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2169
2169
  for (; Wo(e) || Zo(e); )
2170
2170
  te(e, !0, -1) ? (c = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2171
- if (s && (s = c || a), (l === 1 || He === t) && (ze === t || Pn === t ? b = n : b = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, b)) || Ho(e, b) ? d = !0 : (i && Jo(e, b) || Go(e, b) || zo(e, b) ? d = !0 : Xo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, b, ze === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2171
+ if (s && (s = c || a), (l === 1 || He === t) && (ze === t || Pn === t ? v = n : v = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Wt(e, p) || Yo(e, p, v)) || Ho(e, v) ? d = !0 : (i && Jo(e, v) || Go(e, v) || zo(e, v) ? d = !0 : Xo(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && j(e, "alias node should not have any properties")) : Do(e, v, ze === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Wt(e, p))), e.tag === null)
2172
2172
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2173
2173
  else if (e.tag === "?") {
2174
2174
  for (e.result !== null && e.kind !== "scalar" && j(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, h = e.implicitTypes.length; u < h; u += 1)
2175
- if (I = e.implicitTypes[u], I.resolve(e.result)) {
2176
- e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2175
+ if (A = e.implicitTypes[u], A.resolve(e.result)) {
2176
+ e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2177
2177
  break;
2178
2178
  }
2179
2179
  } else if (e.tag !== "!") {
2180
2180
  if (ke.call(e.typeMap[e.kind || "fallback"], e.tag))
2181
- I = e.typeMap[e.kind || "fallback"][e.tag];
2181
+ A = e.typeMap[e.kind || "fallback"][e.tag];
2182
2182
  else
2183
- for (I = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, h = f.length; u < h; u += 1)
2183
+ for (A = null, f = e.typeMap.multi[e.kind || "fallback"], u = 0, h = f.length; u < h; u += 1)
2184
2184
  if (e.tag.slice(0, f[u].tag.length) === f[u].tag) {
2185
- I = f[u];
2185
+ A = f[u];
2186
2186
  break;
2187
2187
  }
2188
- I || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2188
+ A || j(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && j(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : j(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2189
2189
  }
2190
2190
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2191
2191
  }
@@ -2211,7 +2211,7 @@ function Qo(e) {
2211
2211
  }
2212
2212
  i !== 0 && wt(e), ke.call(Jt, r) ? Jt[r](e, r, a) : Je(e, 'unknown document directive "' + r + '"');
2213
2213
  }
2214
- if (te(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Fe(e, e.lineIndent - 1, He, !1, !0), te(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
2214
+ if (te(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, te(e, !0, -1)) : o && j(e, "directives end mark is expected"), Ne(e, e.lineIndent - 1, He, !1, !0), te(e, !0, -1), e.checkLineBreaks && Bo.test(e.input.slice(n, e.position)) && Je(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && et(e)) {
2215
2215
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, te(e, !0, -1));
2216
2216
  return;
2217
2217
  }
@@ -2360,25 +2360,25 @@ function nr(e) {
2360
2360
  }
2361
2361
  var rr = 1, ft = 2, ar = 3, or = 4, Me = 5;
2362
2362
  function $i(e, n, t, r, a, o, i, s) {
2363
- var l, c = 0, d = null, u = !1, h = !1, f = r !== -1, I = -1, b = xi(Be(e, 0)) && Ti(Be(e, e.length - 1));
2363
+ var l, c = 0, d = null, u = !1, h = !1, f = r !== -1, A = -1, v = xi(Be(e, 0)) && Ti(Be(e, e.length - 1));
2364
2364
  if (n || i)
2365
2365
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2366
2366
  if (c = Be(e, l), !Ve(c))
2367
2367
  return Me;
2368
- b = b && Qt(c, d, s), d = c;
2368
+ v = v && Qt(c, d, s), d = c;
2369
2369
  }
2370
2370
  else {
2371
2371
  for (l = 0; l < e.length; c >= 65536 ? l += 2 : l++) {
2372
2372
  if (c = Be(e, l), c === Le)
2373
2373
  u = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2374
- l - I - 1 > r && e[I + 1] !== " ", I = l);
2374
+ l - A - 1 > r && e[A + 1] !== " ", A = l);
2375
2375
  else if (!Ve(c))
2376
2376
  return Me;
2377
- b = b && Qt(c, d, s), d = c;
2377
+ v = v && Qt(c, d, s), d = c;
2378
2378
  }
2379
- h = h || f && l - I - 1 > r && e[I + 1] !== " ";
2379
+ h = h || f && l - A - 1 > r && e[A + 1] !== " ";
2380
2380
  }
2381
- return !u && !h ? b && !i && !a(e) ? rr : o === Pe ? Me : ft : t > 9 && nr(e) ? Me : i ? o === Pe ? Me : ft : h ? or : ar;
2381
+ return !u && !h ? v && !i && !a(e) ? rr : o === Pe ? Me : ft : t > 9 && nr(e) ? Me : i ? o === Pe ? Me : ft : h ? or : ar;
2382
2382
  }
2383
2383
  function ji(e, n, t, r, a) {
2384
2384
  e.dump = function() {
@@ -2467,13 +2467,13 @@ function rn(e, n, t, r) {
2467
2467
  l = t[i], e.replacer && (l = e.replacer.call(t, String(i), l)), (he(e, n + 1, l, !0, !0, !1, !0) || typeof l > "u" && he(e, n + 1, null, !0, !0, !1, !0)) && ((!r || a !== "") && (a += pt(e, n)), e.dump && Le === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2468
2468
  e.tag = o, e.dump = a || "[]";
2469
2469
  }
2470
- function Ni(e, n, t) {
2470
+ function Fi(e, n, t) {
2471
2471
  var r = "", a = e.tag, o = Object.keys(t), i, s, l, c, d;
2472
2472
  for (i = 0, s = o.length; i < s; i += 1)
2473
2473
  d = "", r !== "" && (d += ", "), e.condenseFlow && (d += '"'), l = o[i], c = t[l], e.replacer && (c = e.replacer.call(t, l, c)), he(e, n, l, !1, !1) && (e.dump.length > 1024 && (d += "? "), d += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), he(e, n, c, !1, !1) && (d += e.dump, r += d));
2474
2474
  e.tag = a, e.dump = "{" + r + "}";
2475
2475
  }
2476
- function Fi(e, n, t, r) {
2476
+ function Ni(e, n, t, r) {
2477
2477
  var a = "", o = e.tag, i = Object.keys(t), s, l, c, d, u, h;
2478
2478
  if (e.sortKeys === !0)
2479
2479
  i.sort();
@@ -2511,7 +2511,7 @@ function he(e, n, t, r, a, o, i) {
2511
2511
  e.dump = "*ref_" + u;
2512
2512
  else {
2513
2513
  if (d && h && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), s === "[object Object]")
2514
- r && Object.keys(e.dump).length !== 0 ? (Fi(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Ni(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2514
+ r && Object.keys(e.dump).length !== 0 ? (Ni(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Fi(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2515
2515
  else if (s === "[object Array]")
2516
2516
  r && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, a) : rn(e, n, e.dump, a), h && (e.dump = "&ref_" + u + e.dump)) : (Ei(e, n, e.dump), h && (e.dump = "&ref_" + u + " " + e.dump));
2517
2517
  else if (s === "[object String]")
@@ -2568,10 +2568,10 @@ var Pi = oe, Vi = kn, Ri = An, Ui = jn, Di = Mn, Gi = kt, zi = Jn.load, Hi = Jn.
2568
2568
  null: Sn,
2569
2569
  pairs: qn,
2570
2570
  set: Ln,
2571
- timestamp: Nn,
2571
+ timestamp: Fn,
2572
2572
  bool: xn,
2573
2573
  int: Tn,
2574
- merge: Fn,
2574
+ merge: Nn,
2575
2575
  omap: Bn,
2576
2576
  seq: _n,
2577
2577
  str: wn
@@ -2629,7 +2629,7 @@ const ts = {
2629
2629
  }
2630
2630
  },
2631
2631
  setup(e) {
2632
- const n = e, t = Ze(), { i18n: { t: r } } = ae.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = N(""), i = N("");
2632
+ const n = e, t = Ze(), { i18n: { t: r } } = ae.useI18n(), a = (s) => !!(s.tooltip || t[`${s.key}-label-tooltip`]), o = F(""), i = F("");
2633
2633
  return ve(() => n.format, (s) => {
2634
2634
  s === "json" ? o.value = JSON.stringify(n.record, null, 2) : s === "yaml" && (i.value = es.dump(n.record));
2635
2635
  }, { immediate: !0 }), (s, l) => {
@@ -2766,7 +2766,7 @@ const ts = {
2766
2766
  lineHeight: "0",
2767
2767
  width: t.value
2768
2768
  }));
2769
- return (a, o) => (m(), U(Ne(e.as), {
2769
+ return (a, o) => (m(), U(Fe(e.as), {
2770
2770
  "aria-hidden": e.decorative ? "true" : void 0,
2771
2771
  class: "kui-icon book-icon",
2772
2772
  "data-testid": "kui-icon-wrapper-book-icon",
@@ -2890,8 +2890,8 @@ const ts = {
2890
2890
  label: "YAML",
2891
2891
  value: "yaml"
2892
2892
  }
2893
- ], d = N("structured"), u = (v) => {
2894
- d.value = v == null ? void 0 : v.value;
2893
+ ], d = F("structured"), u = (b) => {
2894
+ d.value = b == null ? void 0 : b.value;
2895
2895
  }, h = {
2896
2896
  id: {
2897
2897
  type: Q.ID,
@@ -2926,21 +2926,21 @@ const ts = {
2926
2926
  // the last property displayed
2927
2927
  section: ue.Basic
2928
2928
  }
2929
- }, f = N(!1), I = N(!1), b = N(""), p = N(), A = M(() => {
2930
- var v, C, B;
2929
+ }, f = F(!1), A = F(!1), v = F(""), p = F(), I = M(() => {
2930
+ var b, C, B;
2931
2931
  if (!p.value)
2932
2932
  return [];
2933
2933
  const q = [], _ = Object.keys(p.value).length;
2934
- for (const F in p.value) {
2935
- const L = (C = (v = r.configSchema) == null ? void 0 : v[F]) == null ? void 0 : C.order, D = (B = h[F]) == null ? void 0 : B.order;
2934
+ for (const N in p.value) {
2935
+ const L = (C = (b = r.configSchema) == null ? void 0 : b[N]) == null ? void 0 : C.order, D = (B = h[N]) == null ? void 0 : B.order;
2936
2936
  let Z = _;
2937
- (D || D === 0) && (Z = D === -1 ? _ + 1 : D), L && (Z = L === -1 ? _ + 1 : L), q.push([F, Z]);
2937
+ (D || D === 0) && (Z = D === -1 ? _ + 1 : D), L && (Z = L === -1 ? _ + 1 : L), q.push([N, Z]);
2938
2938
  }
2939
- return q.sort(function(F, L) {
2940
- return F[1] - L[1];
2941
- }), q.map((F) => {
2939
+ return q.sort(function(N, L) {
2940
+ return N[1] - L[1];
2941
+ }), q.map((N) => {
2942
2942
  var L, D;
2943
- const Z = F[0], z = (L = p.value) == null ? void 0 : L[Z], X = ((D = r.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2943
+ const Z = N[0], z = (L = p.value) == null ? void 0 : L[Z], X = ((D = r.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2944
2944
  return {
2945
2945
  key: Z,
2946
2946
  value: z,
@@ -2950,22 +2950,22 @@ const ts = {
2950
2950
  tooltip: X.tooltip ?? ((le == null ? void 0 : le.tooltip) || void 0),
2951
2951
  section: X.section ?? ((le == null ? void 0 : le.section) || ue.Advanced)
2952
2952
  };
2953
- }).filter((F) => !F.hidden && F.key !== r.pluginConfigKey);
2953
+ }).filter((N) => !N.hidden && N.key !== r.pluginConfigKey);
2954
2954
  }), w = M(() => {
2955
- var v, C;
2955
+ var b, C;
2956
2956
  if (!p.value || !r.pluginConfigKey)
2957
2957
  return [];
2958
2958
  const B = p.value[r.pluginConfigKey] || {}, q = Object.keys(B).length, _ = [];
2959
- for (const F in B) {
2960
- const L = (C = (v = r.pluginConfigSchema) == null ? void 0 : v[F]) == null ? void 0 : C.order, D = B[F];
2959
+ for (const N in B) {
2960
+ const L = (C = (b = r.pluginConfigSchema) == null ? void 0 : b[N]) == null ? void 0 : C.order, D = B[N];
2961
2961
  let Z = D != null && D !== "" ? q - 1 : q;
2962
- L && (Z = L === -1 ? q + 1 : L), _.push([F, Z]);
2962
+ L && (Z = L === -1 ? q + 1 : L), _.push([N, Z]);
2963
2963
  }
2964
- return _.sort(function(F, L) {
2965
- return F[1] - L[1];
2966
- }), _.map((F) => {
2964
+ return _.sort(function(N, L) {
2965
+ return N[1] - L[1];
2966
+ }), _.map((N) => {
2967
2967
  var L;
2968
- const D = F[0], Z = B[D], z = ((L = r.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2968
+ const D = N[0], Z = B[D], z = ((L = r.pluginConfigSchema) == null ? void 0 : L[D]) || {};
2969
2969
  return {
2970
2970
  key: D,
2971
2971
  value: Z,
@@ -2975,52 +2975,52 @@ const ts = {
2975
2975
  tooltip: z.tooltip ?? void 0,
2976
2976
  section: ue.Plugin
2977
2977
  };
2978
- }).filter((F) => !F.hidden);
2978
+ }).filter((N) => !N.hidden);
2979
2979
  }), k = M(() => {
2980
- var v, C, B, q;
2980
+ var b, C, B, q;
2981
2981
  return {
2982
- basic: (v = A.value) == null ? void 0 : v.filter((_) => _.section === ue.Basic),
2983
- advanced: (C = A.value) == null ? void 0 : C.filter((_) => _.section === ue.Advanced),
2984
- plugin: (q = w.value) == null ? void 0 : q.concat((B = A.value) == null ? void 0 : B.filter((_) => _.section === ue.Plugin))
2982
+ basic: (b = I.value) == null ? void 0 : b.filter((_) => _.section === ue.Basic),
2983
+ advanced: (C = I.value) == null ? void 0 : C.filter((_) => _.section === ue.Advanced),
2984
+ plugin: (q = w.value) == null ? void 0 : q.concat((B = I.value) == null ? void 0 : B.filter((_) => _.section === ue.Plugin))
2985
2985
  };
2986
2986
  }), S = M(() => {
2987
- const v = [];
2988
- return k.value.basic.length && v.push("basic"), k.value.advanced.length && v.push("advanced"), k.value.plugin.length && v.push("plugin"), v;
2989
- }), x = (v) => !!(v.tooltip || a[`${v.key}-label-tooltip`]), P = M(() => {
2990
- var v, C;
2987
+ const b = [];
2988
+ return k.value.basic.length && b.push("basic"), k.value.advanced.length && b.push("advanced"), k.value.plugin.length && b.push("plugin"), b;
2989
+ }), x = (b) => !!(b.tooltip || a[`${b.key}-label-tooltip`]), P = M(() => {
2990
+ var b, C;
2991
2991
  let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
2992
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2993
- }), R = (v) => {
2994
- p.value && v(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2992
+ return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (C = r.config) != null && C.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
2993
+ }), R = (b) => {
2994
+ p.value && b(JSON.stringify(p.value)) ? n("copy:success", p.value) : n("copy:error");
2995
2995
  };
2996
- return ve(f, (v) => {
2997
- n("loading", v);
2996
+ return ve(f, (b) => {
2997
+ n("loading", b);
2998
2998
  }, { immediate: !0 }), Xe(async () => {
2999
- I.value = !1, f.value = !0;
2999
+ A.value = !1, f.value = !0;
3000
3000
  try {
3001
- const { data: v } = await l.get(P.value);
3001
+ const { data: b } = await l.get(P.value);
3002
3002
  if (r.dataKey)
3003
- if (typeof v[r.dataKey] < "u")
3004
- p.value = { ...v[r.dataKey] };
3003
+ if (typeof b[r.dataKey] < "u")
3004
+ p.value = { ...b[r.dataKey] };
3005
3005
  else
3006
3006
  throw new Error(o("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3007
3007
  else
3008
- p.value = { ...v };
3008
+ p.value = { ...b };
3009
3009
  Object.keys(r.configSchema).filter((C) => r.configSchema[C].forceShow).forEach((C) => {
3010
3010
  p.value && typeof p.value[C] > "u" && (p.value[C] = null);
3011
- }), n("fetch:success", v);
3012
- } catch (v) {
3013
- const C = i(v);
3014
- b.value = C.startsWith("code") ? o("baseConfigCard.errors.load") : C, I.value = !0, n("fetch:error", v);
3011
+ }), n("fetch:success", b);
3012
+ } catch (b) {
3013
+ const C = i(b);
3014
+ v.value = C.startsWith("code") ? o("baseConfigCard.errors.load") : C, A.value = !0, n("fetch:error", b);
3015
3015
  } finally {
3016
3016
  f.value = !1;
3017
3017
  }
3018
- }), (v, C) => {
3019
- const B = V("KLabel"), q = V("KSelect"), _ = V("KButton"), F = V("KClipboardProvider"), L = V("KSkeleton"), D = V("KEmptyState"), Z = V("KCard");
3018
+ }), (b, C) => {
3019
+ const B = V("KLabel"), q = V("KSelect"), _ = V("KButton"), N = V("KClipboardProvider"), L = V("KSkeleton"), D = V("KEmptyState"), Z = V("KCard");
3020
3020
  return m(), U(Z, { class: "kong-ui-entity-base-config-card" }, be({
3021
3021
  actions: y(() => [
3022
3022
  K("div", ys, [
3023
- Y(v.$slots, "actions", {}, void 0, !0),
3023
+ Y(b.$slots, "actions", {}, void 0, !0),
3024
3024
  e.config.jsonYamlEnabled ? (m(), U(B, {
3025
3025
  key: 0,
3026
3026
  class: "config-format-select-label",
@@ -3055,9 +3055,9 @@ const ts = {
3055
3055
  ]),
3056
3056
  _: 1
3057
3057
  })) : G("", !0),
3058
- e.config.jsonYamlEnabled ? G("", !0) : (m(), U(F, { key: 3 }, {
3058
+ e.config.jsonYamlEnabled ? G("", !0) : (m(), U(N, { key: 3 }, {
3059
3059
  default: y(({ copyToClipboard: z }) => [
3060
- !f.value && !I.value ? (m(), U(_, {
3060
+ !f.value && !A.value ? (m(), U(_, {
3061
3061
  key: 0,
3062
3062
  appearance: "tertiary",
3063
3063
  "data-testid": "json-copy-button",
@@ -3079,13 +3079,13 @@ const ts = {
3079
3079
  "data-testid": "config-card-loader",
3080
3080
  "table-columns": 2,
3081
3081
  type: "table"
3082
- })) : I.value ? (m(), U(D, {
3082
+ })) : A.value ? (m(), U(D, {
3083
3083
  key: 1,
3084
3084
  "data-testid": "config-card-fetch-error",
3085
3085
  "is-error": ""
3086
3086
  }, {
3087
3087
  message: y(() => [
3088
- K("h3", null, $(b.value), 1)
3088
+ K("h3", null, $(v.value), 1)
3089
3089
  ]),
3090
3090
  _: 1
3091
3091
  })) : G("", !0),
@@ -3096,10 +3096,10 @@ const ts = {
3096
3096
  "property-collections": k.value,
3097
3097
  record: p.value
3098
3098
  }, be({ _: 2 }, [
3099
- ce(Object.keys(v.$slots), (z) => ({
3099
+ ce(Object.keys(b.$slots), (z) => ({
3100
3100
  name: z,
3101
3101
  fn: y(({ row: X, rowValue: le }) => [
3102
- Y(v.$slots, z, {
3102
+ Y(b.$slots, z, {
3103
3103
  row: X,
3104
3104
  rowValue: le
3105
3105
  }, void 0, !0)
@@ -3118,10 +3118,10 @@ const ts = {
3118
3118
  item: X
3119
3119
  }, be({
3120
3120
  label: y(() => [
3121
- Y(v.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3121
+ Y(b.$slots, `${X.key}-label`, { row: X }, void 0, !0)
3122
3122
  ]),
3123
3123
  [X.key]: y(({ rowValue: le }) => [
3124
- Y(v.$slots, X.key, {
3124
+ Y(b.$slots, X.key, {
3125
3125
  row: X,
3126
3126
  rowValue: le
3127
3127
  }, void 0, !0)
@@ -3131,7 +3131,7 @@ const ts = {
3131
3131
  x(X) ? {
3132
3132
  name: "label-tooltip",
3133
3133
  fn: y(() => [
3134
- Y(v.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3134
+ Y(b.$slots, `${X.key}-label-tooltip`, { row: X }, void 0, !0)
3135
3135
  ]),
3136
3136
  key: "0"
3137
3137
  } : void 0
@@ -3145,7 +3145,7 @@ const ts = {
3145
3145
  name: "title",
3146
3146
  fn: y(() => [
3147
3147
  K("div", gs, [
3148
- Y(v.$slots, "title", {}, () => [
3148
+ Y(b.$slots, "title", {}, () => [
3149
3149
  W($(g(o)("baseConfigCard.title")), 1)
3150
3150
  ], !0)
3151
3151
  ])
@@ -3210,17 +3210,17 @@ const ts = {
3210
3210
  var t;
3211
3211
  const r = e, a = gt(), { i18n: { t: o } } = ae.useI18n(), { getMessageFromError: i } = ae.useErrors(), { axiosInstance: s } = ae.useAxios({
3212
3212
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3213
- }), l = N(!1), c = N(!1), d = N(""), u = M(() => r.canSubmit === !1 || r.isReadonly), h = M(() => {
3214
- var p, A;
3213
+ }), l = F(!1), c = F(!1), d = F(""), u = M(() => r.canSubmit === !1 || r.isReadonly), h = M(() => {
3214
+ var p, I;
3215
3215
  if (!r.editId)
3216
3216
  return "";
3217
3217
  let w = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3218
- return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (A = r.config) != null && A.workspace ? `/${r.config.workspace}` : "")), w = w.replace(/{id}/gi, r.editId), w;
3218
+ return r.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((p = r.config) == null ? void 0 : p.controlPlaneId) || "") : r.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (I = r.config) != null && I.workspace ? `/${r.config.workspace}` : "")), w = w.replace(/{id}/gi, r.editId), w;
3219
3219
  }), f = () => {
3220
- r.config.cancelRoute ? a.push(r.config.cancelRoute) : I();
3221
- }, I = () => {
3220
+ r.config.cancelRoute ? a.push(r.config.cancelRoute) : A();
3221
+ }, A = () => {
3222
3222
  n("cancel");
3223
- }, b = () => {
3223
+ }, v = () => {
3224
3224
  u.value || n("submit");
3225
3225
  };
3226
3226
  return ve(() => l.value, (p) => {
@@ -3232,12 +3232,12 @@ const ts = {
3232
3232
  const { data: p } = await s.get(h.value);
3233
3233
  n("fetch:success", p);
3234
3234
  } catch (p) {
3235
- const A = i(p);
3236
- d.value = A.startsWith("code") ? o("baseForm.errors.edit") : A, c.value = !0, n("fetch:error", p);
3235
+ const I = i(p);
3236
+ d.value = I.startsWith("code") ? o("baseForm.errors.edit") : I, c.value = !0, n("fetch:error", p);
3237
3237
  } finally {
3238
3238
  l.value = !1;
3239
3239
  }
3240
- }), (p, A) => {
3240
+ }), (p, I) => {
3241
3241
  const w = V("KSkeleton"), k = V("KEmptyState"), S = V("KAlert"), x = V("KButton"), P = V("KCard");
3242
3242
  return m(), U(P, { class: "kong-ui-entity-base-form" }, {
3243
3243
  body: y(() => [
@@ -3258,8 +3258,8 @@ const ts = {
3258
3258
  }, 8, ["cta-text"])) : (m(), T("form", {
3259
3259
  key: 2,
3260
3260
  "data-testid": "form-content",
3261
- onReset: Ge(I, ["prevent"]),
3262
- onSubmit: Ge(b, ["prevent"])
3261
+ onReset: Ge(A, ["prevent"]),
3262
+ onSubmit: Ge(v, ["prevent"])
3263
3263
  }, [
3264
3264
  Y(p.$slots, "default", {}, void 0, !0),
3265
3265
  e.errorMessage ? (m(), U(S, {
@@ -3317,67 +3317,67 @@ const ts = {
3317
3317
  },
3318
3318
  setup(e) {
3319
3319
  const n = e, t = M(() => {
3320
- var b;
3321
- return ((b = n.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3320
+ var v;
3321
+ return ((v = n.rowEl) == null ? void 0 : v.querySelector(`[data-testid="${n.keyName}"]`)) || null;
3322
3322
  }), r = M(() => {
3323
- var b;
3324
- return ((b = t.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
3323
+ var v;
3324
+ return ((v = t.value) == null ? void 0 : v.querySelector('[data-testid="first-col"]')) || null;
3325
3325
  }), a = M(() => {
3326
- var b, p;
3327
- const A = (b = n.rowEl) == null ? void 0 : b.querySelectorAll("td");
3328
- return A ? ((p = A[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3326
+ var v, p;
3327
+ const I = (v = n.rowEl) == null ? void 0 : v.querySelectorAll("td");
3328
+ return I ? ((p = I[0]) == null ? void 0 : p.getAttribute("data-testid")) === n.keyName : !1;
3329
3329
  });
3330
3330
  let o;
3331
3331
  const i = () => {
3332
3332
  o && (o.disconnect(), o = void 0);
3333
3333
  }, s = () => {
3334
- var b, p, A;
3335
- c.value = ((b = r.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((A = l.value) == null ? void 0 : A.innerText) || "";
3336
- }, l = N({}), c = N(0), d = N(0), u = N(""), h = M(() => [r.value, t.value]), f = ve(
3334
+ var v, p, I;
3335
+ c.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, u.value = ((I = l.value) == null ? void 0 : I.innerText) || "";
3336
+ }, l = F({}), c = F(0), d = F(0), u = F(""), h = M(() => [r.value, t.value]), f = ve(
3337
3337
  h,
3338
- (b) => {
3338
+ (v) => {
3339
3339
  if (a.value && (i(), "ResizeObserver" in window && window)) {
3340
3340
  o = new ResizeObserver((p) => {
3341
3341
  window.requestAnimationFrame(() => {
3342
3342
  !Array.isArray(p) || !p.length || s();
3343
3343
  });
3344
3344
  });
3345
- for (const p of b)
3345
+ for (const p of v)
3346
3346
  p && o.observe(p);
3347
3347
  }
3348
3348
  },
3349
3349
  { immediate: !0, flush: "post", deep: !0 }
3350
- ), I = M(() => a.value ? c.value > d.value : !1);
3350
+ ), A = M(() => a.value ? c.value > d.value : !1);
3351
3351
  return yr(() => {
3352
3352
  s();
3353
3353
  }), hr(() => {
3354
3354
  f();
3355
- }), (b, p) => {
3356
- const A = V("KTooltip");
3355
+ }), (v, p) => {
3356
+ const I = V("KTooltip");
3357
3357
  return m(), T("span", {
3358
3358
  ref_key: "contentRef",
3359
3359
  ref: l,
3360
3360
  class: "content-wrapper"
3361
3361
  }, [
3362
3362
  a.value ? (m(), T("span", Ts, [
3363
- E(A, {
3364
- label: I.value ? u.value : "",
3363
+ E(I, {
3364
+ label: A.value ? u.value : "",
3365
3365
  "max-width": "300",
3366
3366
  placement: "bottomStart"
3367
3367
  }, {
3368
3368
  default: y(() => [
3369
- Y(b.$slots, "default", {}, void 0, !0)
3369
+ Y(v.$slots, "default", {}, void 0, !0)
3370
3370
  ]),
3371
3371
  _: 3
3372
3372
  }, 8, ["label"])
3373
- ])) : Y(b.$slots, "default", { key: 1 }, void 0, !0)
3373
+ ])) : Y(v.$slots, "default", { key: 1 }, void 0, !0)
3374
3374
  ], 512);
3375
3375
  };
3376
3376
  }
3377
3377
  }), js = /* @__PURE__ */ me($s, [["__scopeId", "data-v-e42a20c9"]]), Ms = { class: "toolbar-container" }, Os = {
3378
3378
  key: 0,
3379
3379
  class: "toolbar-button-container"
3380
- }, Es = ["data-testid"], Ns = /* @__PURE__ */ ee({
3380
+ }, Es = ["data-testid"], Fs = /* @__PURE__ */ ee({
3381
3381
  __name: "EntityBaseTable",
3382
3382
  props: {
3383
3383
  // table header configuration
@@ -3503,7 +3503,7 @@ const ts = {
3503
3503
  "data-rowid": k.id,
3504
3504
  "data-testid": k.name,
3505
3505
  ...t.rowAttributes(k)
3506
- }), l = N({}), c = (k) => {
3506
+ }), l = F({}), c = (k) => {
3507
3507
  var S;
3508
3508
  return (S = l.value) == null ? void 0 : S.$el.querySelector(`[data-rowid="${k.id}"]`);
3509
3509
  }, d = (k) => {
@@ -3522,25 +3522,25 @@ const ts = {
3522
3522
  n("clear-search-input");
3523
3523
  }, f = M(() => t.disableRowClick ? void 0 : (k, S) => {
3524
3524
  n("click:row", S);
3525
- }), I = (k) => {
3525
+ }), A = (k) => {
3526
3526
  n("sort", k);
3527
- }, { setTablePreferences: b, getTablePreferences: p } = Sr(), A = M(() => {
3527
+ }, { setTablePreferences: v, getTablePreferences: p } = Sr(), I = M(() => {
3528
3528
  const k = p(t.preferencesStorageKey);
3529
3529
  return {
3530
3530
  ...t.initialFetcherParams,
3531
3531
  ...k
3532
3532
  };
3533
3533
  }), w = (k) => {
3534
- t.preferencesStorageKey && b(t.preferencesStorageKey, k);
3534
+ t.preferencesStorageKey && v(t.preferencesStorageKey, k);
3535
3535
  };
3536
3536
  return (k, S) => {
3537
- const x = V("KIcon"), P = V("KButton"), R = V("KDropdown"), v = V("KTable"), C = V("KCard");
3537
+ const x = V("KIcon"), P = V("KButton"), R = V("KDropdown"), b = V("KTable"), C = V("KCard");
3538
3538
  return m(), U(C, {
3539
3539
  class: "kong-ui-entity-base-table",
3540
3540
  title: e.title
3541
3541
  }, {
3542
3542
  body: y(() => [
3543
- E(v, {
3543
+ E(b, {
3544
3544
  ref_key: "tableRefs",
3545
3545
  ref: l,
3546
3546
  "cache-identifier": a.value,
@@ -3561,14 +3561,14 @@ const ts = {
3561
3561
  "has-error": !!e.errorMessage,
3562
3562
  headers: i.value,
3563
3563
  "hide-pagination-when-optional": "",
3564
- "initial-fetcher-params": A.value,
3564
+ "initial-fetcher-params": I.value,
3565
3565
  "is-loading": e.isLoading,
3566
3566
  "pagination-type": e.paginationType,
3567
3567
  "row-attrs": s,
3568
3568
  "search-input": e.query,
3569
3569
  onKtableEmptyStateCtaClicked: u,
3570
3570
  "onRow:click": f.value,
3571
- onSort: S[0] || (S[0] = (B) => I(B)),
3571
+ onSort: S[0] || (S[0] = (B) => A(B)),
3572
3572
  "onUpdate:tablePreferences": w
3573
3573
  }, be({
3574
3574
  toolbar: y(({ state: B }) => [
@@ -3621,7 +3621,7 @@ const ts = {
3621
3621
  }, [
3622
3622
  ce(e.tableHeaders, (B, q) => ({
3623
3623
  name: q,
3624
- fn: y(({ row: _, rowKey: F, rowValue: L }) => [
3624
+ fn: y(({ row: _, rowKey: N, rowValue: L }) => [
3625
3625
  E(js, {
3626
3626
  "key-name": String(q),
3627
3627
  "row-el": c(_)
@@ -3629,7 +3629,7 @@ const ts = {
3629
3629
  default: y(() => [
3630
3630
  Y(k.$slots, q, {
3631
3631
  row: _,
3632
- rowKey: F,
3632
+ rowKey: N,
3633
3633
  rowValue: L
3634
3634
  }, () => [
3635
3635
  W($(L), 1)
@@ -3645,7 +3645,7 @@ const ts = {
3645
3645
  }, 8, ["title"]);
3646
3646
  };
3647
3647
  }
3648
- }), Fs = /* @__PURE__ */ me(Ns, [["__scopeId", "data-v-86d2d2a3"]]), Ks = {
3648
+ }), Ns = /* @__PURE__ */ me(Fs, [["__scopeId", "data-v-86d2d2a3"]]), Ks = {
3649
3649
  key: 0,
3650
3650
  class: "kong-ui-entity-delete-error"
3651
3651
  }, Bs = {
@@ -3807,21 +3807,21 @@ const ts = {
3807
3807
  },
3808
3808
  emits: ["update:modelValue"],
3809
3809
  setup(e, { emit: n }) {
3810
- const t = e, { i18n: { t: r } } = ae.useI18n(), a = N(!1), o = N({}), i = M(() => {
3810
+ const t = e, { i18n: { t: r } } = ae.useI18n(), a = F(!1), o = F({}), i = M(() => {
3811
3811
  const p = [];
3812
- return new URLSearchParams(t.modelValue).forEach((A, w) => {
3813
- A !== "" && p.push(w);
3812
+ return new URLSearchParams(t.modelValue).forEach((I, w) => {
3813
+ I !== "" && p.push(w);
3814
3814
  }), p;
3815
3815
  }), s = M(() => {
3816
3816
  const p = t.config.fields;
3817
- return Object.keys(p).filter((A) => p[A].searchable).map((A) => ({
3818
- label: p[A].label || A,
3819
- value: A
3817
+ return Object.keys(p).filter((I) => p[I].searchable).map((I) => ({
3818
+ label: p[I].label || I,
3819
+ value: I
3820
3820
  }));
3821
3821
  });
3822
3822
  ve(() => t.modelValue, (p) => {
3823
- o.value = {}, new URLSearchParams(p).forEach((A, w) => {
3824
- o.value[w] = A;
3823
+ o.value = {}, new URLSearchParams(p).forEach((I, w) => {
3824
+ o.value[w] = I;
3825
3825
  });
3826
3826
  });
3827
3827
  const l = () => {
@@ -3829,26 +3829,26 @@ const ts = {
3829
3829
  }, c = (p) => {
3830
3830
  n("update:modelValue", p);
3831
3831
  }, d = (p) => `filter-${p}`, u = (p) => {
3832
- var A, w;
3833
- return (((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.values) ?? []).map((k) => ({
3832
+ var I, w;
3833
+ return (((w = (I = t.config.schema) == null ? void 0 : I[p]) == null ? void 0 : w.values) ?? []).map((k) => ({
3834
3834
  value: k,
3835
3835
  label: k
3836
3836
  }));
3837
3837
  }, h = (p) => {
3838
- var A, w;
3839
- return ((w = (A = t.config.schema) == null ? void 0 : A[p]) == null ? void 0 : w.type) ?? "text";
3838
+ var I, w;
3839
+ return ((w = (I = t.config.schema) == null ? void 0 : I[p]) == null ? void 0 : w.type) ?? "text";
3840
3840
  }, f = (p) => {
3841
3841
  o.value = {
3842
3842
  ...o.value,
3843
3843
  [p]: ""
3844
- }, b();
3845
- }, I = () => {
3846
- o.value = {}, b(!0);
3847
- }, b = (p = !1) => {
3848
- const A = Object.keys(o.value).reduce((w, k) => (o.value[k] && (w[k] = `${o.value[k]}`), w), {});
3849
- p && (a.value = !1), n("update:modelValue", new URLSearchParams(A).toString());
3844
+ }, v();
3845
+ }, A = () => {
3846
+ o.value = {}, v(!0);
3847
+ }, v = (p = !1) => {
3848
+ const I = Object.keys(o.value).reduce((w, k) => (o.value[k] && (w[k] = `${o.value[k]}`), w), {});
3849
+ p && (a.value = !1), n("update:modelValue", new URLSearchParams(I).toString());
3850
3850
  };
3851
- return (p, A) => {
3851
+ return (p, I) => {
3852
3852
  const w = V("KInput"), k = V("KButton"), S = V("KSelect"), x = V("KMenuItem"), P = V("KMenu");
3853
3853
  return e.config.isExactMatch ? (m(), U(w, {
3854
3854
  key: 0,
@@ -3883,11 +3883,11 @@ const ts = {
3883
3883
  ]),
3884
3884
  Ue(E(P, { class: "kong-ui-entity-filter-menu" }, {
3885
3885
  body: y(() => [
3886
- (m(!0), T(pe, null, ce(s.value, (R, v) => (m(), U(x, {
3886
+ (m(!0), T(pe, null, ce(s.value, (R, b) => (m(), U(x, {
3887
3887
  key: R.value,
3888
3888
  "data-testid": R.value,
3889
3889
  expandable: "",
3890
- "last-menu-item": v === s.value.length - 1
3890
+ "last-menu-item": b === s.value.length - 1
3891
3891
  }, {
3892
3892
  itemTitle: y(() => [
3893
3893
  K("span", zs, [
@@ -3928,7 +3928,7 @@ const ts = {
3928
3928
  appearance: "tertiary",
3929
3929
  "data-testid": "apply-filter",
3930
3930
  size: "small",
3931
- onClick: A[0] || (A[0] = (q) => b(!0))
3931
+ onClick: I[0] || (I[0] = (q) => v(!0))
3932
3932
  }, {
3933
3933
  default: y(() => [
3934
3934
  W($(g(r)("filter.applyButtonText")), 1)
@@ -3956,7 +3956,7 @@ const ts = {
3956
3956
  K("div", Zs, [
3957
3957
  E(k, {
3958
3958
  size: "small",
3959
- onClick: I
3959
+ onClick: A
3960
3960
  }, {
3961
3961
  default: y(() => [
3962
3962
  W($(g(r)("filter.clearAllButtonText")), 1)
@@ -3994,7 +3994,7 @@ const ts = {
3994
3994
  }
3995
3995
  },
3996
3996
  setup(e) {
3997
- const n = e, t = N(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3997
+ const n = e, t = F(void 0), r = M(() => t.value === !0 || t.value !== void 0 && n.forceShow === !0);
3998
3998
  return ve(() => n.authFunction, async () => {
3999
3999
  t.value = await n.authFunction();
4000
4000
  }, { immediate: !0 }), (a, o) => r.value ? Y(a.$slots, "default", {
@@ -4061,7 +4061,7 @@ const ts = {
4061
4061
  ])
4062
4062
  ], 2));
4063
4063
  }
4064
- }), il = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: sl, useErrors: ll, useExternalLinkCreator: Ol, useFetchUrlBuilder: El, useFetcher: ul, useDebouncedFilter: cl, useStringHelpers: Nl, useHelpers: Fl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = ae;
4064
+ }), il = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-8b6dc312"]]), { useAxios: St, useDeleteUrlBuilder: sl, useErrors: ll, useExternalLinkCreator: Ol, useFetchUrlBuilder: El, useFetcher: ul, useDebouncedFilter: cl, useStringHelpers: Fl, useHelpers: Nl, useGatewayFeatureSupported: Kl, useTruncationDetector: Bl } = ae;
4065
4065
  const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer-form-cta" }, fl = { class: "select-item-label" }, ml = {
4066
4066
  key: 0,
4067
4067
  class: "select-item-desc"
@@ -4088,7 +4088,7 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4088
4088
  var q;
4089
4089
  const t = e, { i18n: { t: r } } = Qe.useI18n(), { axiosInstance: a } = St({
4090
4090
  headers: (q = t.config) == null ? void 0 : q.requestHeaders
4091
- }), o = N([]), {
4091
+ }), o = F([]), {
4092
4092
  debouncedQueryChange: i,
4093
4093
  loading: s,
4094
4094
  allRecords: l,
@@ -4103,61 +4103,61 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4103
4103
  fetchedItemsKey: "data",
4104
4104
  searchKeys: ["username", "id"]
4105
4105
  }
4106
- ), h = (_) => _, f = M(() => c.value ? r("consumers.errors.general") : ""), I = N(0), b = M(() => l.value === void 0), p = M(() => u.value.map((_) => ({
4106
+ ), h = (_) => _, f = M(() => c.value ? r("consumers.errors.general") : ""), A = F(0), v = M(() => l.value === void 0), p = M(() => u.value.map((_) => ({
4107
4107
  label: _.username || _.customId,
4108
4108
  value: _.id,
4109
4109
  selected: o.value.includes(_.id),
4110
4110
  data: _
4111
4111
  // we need this to determine whether or not to show the description text
4112
- }))), A = (_) => {
4112
+ }))), I = (_) => {
4113
4113
  var L;
4114
- const F = b.value ? u.value.find((D) => D.id === _) : (L = l.value) == null ? void 0 : L.find((D) => D.id === _);
4115
- return F ? F.username || F.custom_id : _;
4114
+ const N = v.value ? u.value.find((D) => D.id === _) : (L = l.value) == null ? void 0 : L.find((D) => D.id === _);
4115
+ return N ? N.username || N.custom_id : _;
4116
4116
  }, w = () => {
4117
4117
  x.value = "", k.value = [], C.value = [], n("cancel");
4118
- }, k = N([]), S = N(!1), x = N(""), P = async () => {
4118
+ }, k = F([]), S = F(!1), x = F(""), P = async () => {
4119
4119
  if (!o.value.length) {
4120
4120
  x.value = "", C.value = [], n("cancel");
4121
4121
  return;
4122
4122
  }
4123
4123
  S.value = !0, x.value = "", k.value = [], C.value = [];
4124
4124
  try {
4125
- const _ = o.value.map((D) => v(D)), F = await Promise.allSettled(_);
4125
+ const _ = o.value.map((D) => b(D)), N = await Promise.allSettled(_);
4126
4126
  let L = !0;
4127
- F.forEach((D) => {
4127
+ N.forEach((D) => {
4128
4128
  D.status !== "fulfilled" && (L = !1);
4129
- }), L ? (k.value = [], C.value = [], n("add:success", o.value), o.value = []) : (k.value.length && n("add:partial-success", k.value), o.value = [], B(F));
4129
+ }), L ? (k.value = [], C.value = [], n("add:success", o.value), o.value = []) : (k.value.length && n("add:partial-success", k.value), o.value = [], B(N));
4130
4130
  } catch {
4131
4131
  x.value = r("consumers.errors.add"), n("error", x.value);
4132
4132
  } finally {
4133
4133
  S.value = !1;
4134
4134
  }
4135
4135
  }, R = M(() => {
4136
- var F, L, D, Z;
4136
+ var N, L, D, Z;
4137
4137
  let _ = `${t.config.apiBaseUrl}${Se.list[t.config.app].forConsumerGroup}`;
4138
- return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((F = t.config) == null ? void 0 : F.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), _;
4139
- }), v = async (_) => {
4140
- const F = {
4138
+ return t.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((N = t.config) == null ? void 0 : N.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((L = t.config) == null ? void 0 : L.consumerGroupId) || "") : t.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((Z = t.config) == null ? void 0 : Z.consumerGroupId) || "")), _;
4139
+ }), b = async (_) => {
4140
+ const N = {
4141
4141
  consumer: _
4142
4142
  };
4143
4143
  try {
4144
- const L = await a.post(R.value, F);
4144
+ const L = await a.post(R.value, N);
4145
4145
  return k.value.push(_), L;
4146
4146
  } catch (L) {
4147
- let D = `${A(_)} - ${L.message}`;
4148
- return L.response.status === 409 && (D = `${A(_)} - ${r("consumers.errors.already_added")}`), Promise.reject(Error(D));
4147
+ let D = `${I(_)} - ${L.message}`;
4148
+ return L.response.status === 409 && (D = `${I(_)} - ${r("consumers.errors.already_added")}`), Promise.reject(Error(D));
4149
4149
  }
4150
- }, C = N([]), B = (_) => {
4151
- C.value = _.map((F) => {
4150
+ }, C = F([]), B = (_) => {
4151
+ C.value = _.map((N) => {
4152
4152
  var L;
4153
- return (L = F.reason) == null ? void 0 : L.message;
4153
+ return (L = N.reason) == null ? void 0 : L.message;
4154
4154
  }).filter(Boolean);
4155
4155
  };
4156
4156
  return ve(p, () => {
4157
- I.value++;
4157
+ A.value++;
4158
4158
  }, { immediate: !0, deep: !0 }), Xe(async () => {
4159
4159
  await d();
4160
- }), (_, F) => {
4160
+ }), (_, N) => {
4161
4161
  const L = V("KMultiselect"), D = V("KAlert"), Z = V("KPrompt");
4162
4162
  return m(), U(Z, {
4163
4163
  "action-pending": S.value,
@@ -4173,10 +4173,10 @@ const dl = { class: "add-consumer-form-container" }, pl = { class: "add-consumer
4173
4173
  K("p", pl, $(g(r)("consumers.consumer_groups.add.ctaText")), 1),
4174
4174
  E(L, {
4175
4175
  modelValue: o.value,
4176
- "onUpdate:modelValue": F[0] || (F[0] = (z) => o.value = z),
4176
+ "onUpdate:modelValue": N[0] || (N[0] = (z) => o.value = z),
4177
4177
  autosuggest: "",
4178
4178
  "data-testid": "add-consumers-multiselect",
4179
- "dropdown-footer-text": b.value ? g(r)("consumers.consumer_groups.add.footer") : void 0,
4179
+ "dropdown-footer-text": v.value ? g(r)("consumers.consumer_groups.add.footer") : void 0,
4180
4180
  items: p.value,
4181
4181
  label: g(r)("consumers.consumer_groups.add.consumers_label"),
4182
4182
  loading: g(s),
@@ -4260,17 +4260,19 @@ const xt = (e, n) => {
4260
4260
  var Et;
4261
4261
  const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4262
4262
  headers: (Et = t.config) == null ? void 0 : Et.requestHeaders
4263
- }), s = N(1), l = M(() => !!t.config.consumerGroupId), c = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), d = {
4263
+ }), s = F(1), l = M(() => !!t.config.consumerGroupId), c = M(
4264
+ () => l.value ? "kong-ui-entities-consumers-list-in-group-page" : "kong-ui-entities-consumers-list"
4265
+ ), d = M(() => t.config.app !== "kongManager" || !!t.config.disableSorting), u = {
4264
4266
  username: { label: a("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4265
4267
  custom_id: { label: a("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4266
4268
  tags: { label: a("consumers.list.table_headers.tags"), sortable: !1 }
4267
- }, u = d, h = (O) => ({
4269
+ }, h = u, f = (O) => ({
4268
4270
  "data-testid": O.username ?? O.custom_id ?? O.id
4269
- }), f = M(() => {
4271
+ }), A = M(() => {
4270
4272
  var H, re, fe, we;
4271
4273
  let O = `${t.config.apiBaseUrl}${Se.list[t.config.app][l.value ? "forConsumerGroup" : "all"]}`;
4272
4274
  return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4273
- }), I = N(""), b = M(() => {
4275
+ }), v = F(""), p = M(() => {
4274
4276
  const O = t.config.app === "konnect" || t.config.isExactMatch;
4275
4277
  return O ? {
4276
4278
  isExactMatch: O,
@@ -4278,16 +4280,16 @@ const xt = (e, n) => {
4278
4280
  } : {
4279
4281
  isExactMatch: O,
4280
4282
  fields: {
4281
- username: d.username,
4282
- custom_id: d.custom_id
4283
+ username: u.username,
4284
+ custom_id: u.custom_id
4283
4285
  },
4284
4286
  schema: t.config.filterSchema
4285
4287
  };
4286
- }), p = M(() => l.value ? "consumers" : void 0), { fetcher: A, fetcherState: w } = ul(t.config, f.value, p.value), k = () => {
4287
- I.value = "";
4288
+ }), { fetcher: I, fetcherState: w } = ul(t.config, A.value), k = () => {
4289
+ v.value = "";
4288
4290
  }, S = () => {
4289
4291
  s.value++;
4290
- }, x = (O) => O ?? "-", P = N(""), R = (O, H) => {
4292
+ }, x = (O) => O ?? "-", P = F(""), R = (O, H) => {
4291
4293
  const re = O.id;
4292
4294
  if (!H(re)) {
4293
4295
  n("copy:error", {
@@ -4302,7 +4304,7 @@ const xt = (e, n) => {
4302
4304
  field: "id",
4303
4305
  message: a("consumers.copy.success", { val: re })
4304
4306
  });
4305
- }, v = (O, H) => {
4307
+ }, b = (O, H) => {
4306
4308
  const re = JSON.stringify(O);
4307
4309
  if (!H(re)) {
4308
4310
  n("copy:error", {
@@ -4324,23 +4326,23 @@ const xt = (e, n) => {
4324
4326
  }), q = (O) => ({
4325
4327
  label: a("consumers.actions.edit"),
4326
4328
  to: t.config.getEditRoute(O)
4327
- }), _ = N(void 0), F = N(!1), L = N(!1), D = N(""), Z = sl(t.config, f.value), z = (O) => {
4328
- _.value = O, F.value = !0;
4329
+ }), _ = F(void 0), N = F(!1), L = F(!1), D = F(""), Z = sl(t.config, A.value), z = (O) => {
4330
+ _.value = O, N.value = !0;
4329
4331
  }, X = () => {
4330
- F.value = !1;
4332
+ N.value = !1;
4331
4333
  }, le = async () => {
4332
4334
  var O, H, re;
4333
4335
  if ((O = _.value) != null && O.id) {
4334
4336
  L.value = !0;
4335
4337
  try {
4336
- await i.delete(Z(_.value.id)), L.value = !1, F.value = !1, s.value++, n("delete:success", _.value);
4338
+ await i.delete(Z(_.value.id)), L.value = !1, N.value = !1, s.value++, n("delete:success", _.value);
4337
4339
  } catch (fe) {
4338
4340
  D.value = ((re = (H = fe.response) == null ? void 0 : H.data) == null ? void 0 : re.message) || fe.message || a("consumers.errors.delete"), n("error", fe);
4339
4341
  } finally {
4340
4342
  L.value = !1;
4341
4343
  }
4342
4344
  }
4343
- }, tt = N(!1), Tt = () => {
4345
+ }, tt = F(!1), Tt = () => {
4344
4346
  tt.value = !0;
4345
4347
  }, $t = () => {
4346
4348
  tt.value = !1;
@@ -4348,7 +4350,7 @@ const xt = (e, n) => {
4348
4350
  H || $t(), s.value++, n("add:success", O);
4349
4351
  }, ir = () => {
4350
4352
  l.value && Tt();
4351
- }, ye = N(void 0), nt = N(!1), sr = N(""), lr = (O) => {
4353
+ }, ye = F(void 0), nt = F(!1), sr = F(""), lr = (O) => {
4352
4354
  ye.value = O, nt.value = !0;
4353
4355
  }, Mt = () => {
4354
4356
  nt.value = !1, ye.value = void 0;
@@ -4356,7 +4358,7 @@ const xt = (e, n) => {
4356
4358
  var H, re, fe, we;
4357
4359
  let O = `${t.config.apiBaseUrl}${Se.list[t.config.app].oneForConsumerGroup}`;
4358
4360
  return t.config.app === "konnect" ? O = O.replace(/{controlPlaneId}/gi, ((H = t.config) == null ? void 0 : H.controlPlaneId) || "").replace(/{consumerGroupId}/gi, ((re = t.config) == null ? void 0 : re.consumerGroupId) || "") : t.config.app === "kongManager" && (O = O.replace(/\/{workspace}/gi, (fe = t.config) != null && fe.workspace ? `/${t.config.workspace}` : "").replace(/{consumerGroupId}/gi, ((we = t.config) == null ? void 0 : we.consumerGroupId) || "")), O;
4359
- }), Ot = N(!1), cr = async () => {
4361
+ }), Ot = F(!1), cr = async () => {
4360
4362
  if (ye.value) {
4361
4363
  Ot.value = !0;
4362
4364
  try {
@@ -4376,7 +4378,7 @@ const xt = (e, n) => {
4376
4378
  }
4377
4379
  P.value = "";
4378
4380
  });
4379
- const rt = N({
4381
+ const rt = F({
4380
4382
  ctaPath: l.value ? void 0 : t.config.createRoute,
4381
4383
  ctaText: void 0,
4382
4384
  message: a("consumers.list.empty_state.description"),
@@ -4385,23 +4387,22 @@ const xt = (e, n) => {
4385
4387
  return Xe(async () => {
4386
4388
  await t.canCreate() && (rt.value.title = l.value ? a("consumers.list.empty_state.title_for_consumer_group") : a("consumers.list.empty_state.title"), rt.value.ctaText = l.value ? a("consumers.actions.add_consumer") : a("consumers.actions.create"));
4387
4389
  }), (O, H) => {
4388
- const re = V("KButton"), fe = V("KBadge"), we = V("KTruncate"), Ke = V("KDropdownItem"), Nt = V("KClipboardProvider"), dr = V("KPrompt");
4390
+ const re = V("KButton"), fe = V("KBadge"), we = V("KTruncate"), Ke = V("KDropdownItem"), Ft = V("KClipboardProvider"), dr = V("KPrompt");
4389
4391
  return m(), T("div", bl, [
4390
- E(g(Fs), {
4392
+ E(g(Ns), {
4391
4393
  "cache-identifier": e.cacheIdentifier,
4392
- "disable-pagination": l.value,
4393
4394
  "disable-pagination-page-jump": "",
4394
- "disable-sorting": c.value,
4395
+ "disable-sorting": d.value,
4395
4396
  "empty-state-options": rt.value,
4396
4397
  "enable-entity-actions": "",
4397
4398
  "error-message": P.value,
4398
- fetcher: g(A),
4399
+ fetcher: g(I),
4399
4400
  "fetcher-cache-key": s.value,
4400
4401
  "pagination-type": "offset",
4401
- "preferences-storage-key": "kong-ui-entities-consumers-list",
4402
- query: I.value,
4403
- "row-attributes": h,
4404
- "table-headers": g(u),
4402
+ "preferences-storage-key": c.value,
4403
+ query: v.value,
4404
+ "row-attributes": f,
4405
+ "table-headers": g(h),
4405
4406
  onClearSearchInput: k,
4406
4407
  "onClick:row": H[3] || (H[3] = (J) => C(J)),
4407
4408
  onEmptyStateCtaClicked: ir,
@@ -4410,9 +4411,9 @@ const xt = (e, n) => {
4410
4411
  "toolbar-filter": y(() => [
4411
4412
  l.value ? G("", !0) : (m(), U(g(Qs), {
4412
4413
  key: 0,
4413
- modelValue: I.value,
4414
- "onUpdate:modelValue": H[0] || (H[0] = (J) => I.value = J),
4415
- config: b.value
4414
+ modelValue: v.value,
4415
+ "onUpdate:modelValue": H[0] || (H[0] = (J) => v.value = J),
4416
+ config: p.value
4416
4417
  }, null, 8, ["modelValue", "config"]))
4417
4418
  ]),
4418
4419
  "toolbar-button": y(() => [
@@ -4460,7 +4461,7 @@ const xt = (e, n) => {
4460
4461
  }, 1024)) : (m(), T("span", Cl, "-"))
4461
4462
  ]),
4462
4463
  actions: y(({ row: J }) => [
4463
- E(Nt, null, {
4464
+ E(Ft, null, {
4464
4465
  default: y(({ copyToClipboard: xe }) => [
4465
4466
  E(Ke, {
4466
4467
  "data-testid": "action-entity-copy-id",
@@ -4474,11 +4475,11 @@ const xt = (e, n) => {
4474
4475
  ]),
4475
4476
  _: 2
4476
4477
  }, 1024),
4477
- E(Nt, null, {
4478
+ E(Ft, null, {
4478
4479
  default: y(({ copyToClipboard: xe }) => [
4479
4480
  E(Ke, {
4480
4481
  "data-testid": "action-entity-copy-json",
4481
- onClick: (pr) => v(J, xe)
4482
+ onClick: (pr) => b(J, xe)
4482
4483
  }, {
4483
4484
  default: y(() => [
4484
4485
  W($(g(a)("consumers.actions.copy_json")), 1)
@@ -4531,7 +4532,7 @@ const xt = (e, n) => {
4531
4532
  }, 1032, ["auth-function"])
4532
4533
  ]),
4533
4534
  _: 1
4534
- }, 8, ["cache-identifier", "disable-pagination", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
4535
+ }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "preferences-storage-key", "query", "table-headers"]),
4535
4536
  E(g(Ls), {
4536
4537
  "action-pending": L.value,
4537
4538
  "data-testid": "delete-consumer-modal",
@@ -4540,7 +4541,7 @@ const xt = (e, n) => {
4540
4541
  "entity-type": g(pn).Consumer,
4541
4542
  error: D.value,
4542
4543
  title: g(a)("consumers.delete.title"),
4543
- visible: F.value,
4544
+ visible: N.value,
4544
4545
  onCancel: X,
4545
4546
  onProceed: le
4546
4547
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"]),
@@ -4589,7 +4590,7 @@ const xt = (e, n) => {
4589
4590
  };
4590
4591
  }
4591
4592
  });
4592
- const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { class: "kong-ui-entities-consumer-form" }, _l = { class: "fields-group-title" }, Il = { class: "fields-group-text" }, Al = /* @__PURE__ */ ee({
4593
+ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-ed25485a"]]), wl = { class: "kong-ui-entities-consumer-form" }, _l = { class: "fields-group-title" }, Il = { class: "fields-group-text" }, Al = /* @__PURE__ */ ee({
4593
4594
  __name: "ConsumerForm",
4594
4595
  props: {
4595
4596
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4610,7 +4611,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4610
4611
  var S;
4611
4612
  const t = e, { i18nT: r, i18n: { t: a } } = Qe.useI18n(), o = gt(), { axiosInstance: i } = St({
4612
4613
  headers: (S = t.config) == null ? void 0 : S.requestHeaders
4613
- }), { getMessageFromError: s } = ll(), l = Ft({
4614
+ }), { getMessageFromError: s } = ll(), l = Nt({
4614
4615
  fields: {
4615
4616
  username: "",
4616
4617
  customId: "",
@@ -4618,7 +4619,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4618
4619
  },
4619
4620
  readonly: !1,
4620
4621
  errorMessage: ""
4621
- }), c = Ft({
4622
+ }), c = Nt({
4622
4623
  username: "",
4623
4624
  customId: "",
4624
4625
  tags: ""
@@ -4632,37 +4633,37 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4632
4633
  n("loading", x);
4633
4634
  }, f = (x) => {
4634
4635
  n("error", x);
4635
- }, I = (x) => {
4636
- var R, v, C;
4637
- l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((v = x == null ? void 0 : x.item) == null ? void 0 : v.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4636
+ }, A = (x) => {
4637
+ var R, b, C;
4638
+ l.fields.username = ((R = x == null ? void 0 : x.item) == null ? void 0 : R.username) || (x == null ? void 0 : x.username) || "", l.fields.customId = ((b = x == null ? void 0 : x.item) == null ? void 0 : b.custom_id) || (x == null ? void 0 : x.custom_id) || "";
4638
4639
  const P = ((C = x == null ? void 0 : x.item) == null ? void 0 : C.tags) || (x == null ? void 0 : x.tags) || [];
4639
4640
  l.fields.tags = (P == null ? void 0 : P.join(", ")) || "", Object.assign(c, l.fields);
4640
- }, b = M(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4641
- var R, v, C, B, q, _;
4642
- let P = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(v = t.config) == null ? void 0 : v.app][x]}`;
4641
+ }, v = M(() => t.consumerId ? ut.Edit : ut.Create), p = (x) => {
4642
+ var R, b, C, B, q, _;
4643
+ let P = `${(R = t.config) == null ? void 0 : R.apiBaseUrl}${Se.form[(b = t.config) == null ? void 0 : b.app][x]}`;
4643
4644
  return ((C = t.config) == null ? void 0 : C.app) === "konnect" ? P = P.replace(/{controlPlaneId}/gi, ((B = t.config) == null ? void 0 : B.controlPlaneId) || "") : ((q = t.config) == null ? void 0 : q.app) === "kongManager" && (P = P.replace(/\/{workspace}/gi, (_ = t.config) != null && _.workspace ? `/${t.config.workspace}` : "")), P = P.replace(/{id}/gi, t.consumerId), P;
4644
- }, A = M(() => !!l.fields.username || !!l.fields.customId), w = M(() => JSON.stringify(l.fields) !== JSON.stringify(c)), k = async () => {
4645
+ }, I = M(() => !!l.fields.username || !!l.fields.customId), w = M(() => JSON.stringify(l.fields) !== JSON.stringify(c)), k = async () => {
4645
4646
  var x, P, R;
4646
4647
  try {
4647
4648
  l.readonly = !0;
4648
- const v = {
4649
+ const b = {
4649
4650
  username: l.fields.username || null,
4650
4651
  custom_id: l.fields.customId || null,
4651
4652
  tags: (P = (x = l.fields.tags.split(",")) == null ? void 0 : x.map((B) => String(B || "").trim())) == null ? void 0 : P.filter((B) => B !== "")
4652
4653
  };
4653
4654
  let C;
4654
- await i.post(p("validate"), v), b.value === "create" ? C = await i.post(p("create"), v) : b.value === "edit" && (C = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), v) : await i.patch(p("edit"), v)), I(C == null ? void 0 : C.data), n("update", C == null ? void 0 : C.data);
4655
- } catch (v) {
4656
- l.errorMessage = s(v), n("error", v);
4655
+ await i.post(p("validate"), b), v.value === "create" ? C = await i.post(p("create"), b) : v.value === "edit" && (C = ((R = t.config) == null ? void 0 : R.app) === "konnect" ? await i.put(p("edit"), b) : await i.patch(p("edit"), b)), A(C == null ? void 0 : C.data), n("update", C == null ? void 0 : C.data);
4656
+ } catch (b) {
4657
+ l.errorMessage = s(b), n("error", b);
4657
4658
  } finally {
4658
4659
  l.readonly = !1;
4659
4660
  }
4660
4661
  };
4661
4662
  return (x, P) => {
4662
- const R = V("KInput"), v = V("KCard");
4663
+ const R = V("KInput"), b = V("KCard");
4663
4664
  return m(), T("div", wl, [
4664
4665
  E(g(xs), {
4665
- "can-submit": A.value && w.value,
4666
+ "can-submit": I.value && w.value,
4666
4667
  config: e.config,
4667
4668
  "edit-id": e.consumerId,
4668
4669
  "error-message": l.errorMessage,
@@ -4670,7 +4671,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4670
4671
  "is-readonly": l.readonly,
4671
4672
  onCancel: u,
4672
4673
  "onFetch:error": P[3] || (P[3] = (C) => f(C)),
4673
- "onFetch:success": I,
4674
+ "onFetch:success": A,
4674
4675
  onLoading: P[4] || (P[4] = (C) => h(C)),
4675
4676
  onSubmit: k
4676
4677
  }, {
@@ -4686,7 +4687,7 @@ const ql = /* @__PURE__ */ xt(kl, [["__scopeId", "data-v-b084add6"]]), wl = { cl
4686
4687
  K("h5", _l, $(g(a)("consumers.form.consumer_identification.title")) + "* ", 1),
4687
4688
  K("p", Il, $(g(a)("consumers.form.consumer_identification.description")), 1)
4688
4689
  ]),
4689
- E(v, null, {
4690
+ E(b, null, {
4690
4691
  body: y(() => [
4691
4692
  E(R, {
4692
4693
  modelValue: l.fields.username,
@@ -4800,7 +4801,7 @@ const Ll = /* @__PURE__ */ xt(Al, [["__scopeId", "data-v-335659fc"]]), Sl = { cl
4800
4801
  },
4801
4802
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
4802
4803
  setup(e) {
4803
- const n = e, { i18n: { t }, i18nT: r } = Qe.useI18n(), a = M(() => Se.form[n.config.app].edit), o = N({
4804
+ const n = e, { i18n: { t }, i18nT: r } = Qe.useI18n(), a = M(() => Se.form[n.config.app].edit), o = F({
4804
4805
  id: {},
4805
4806
  username: {
4806
4807
  section: ue.Basic,