@kong-ui-public/entities-keys 3.2.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 Q, computed as S, openBlock as f, createBlock as U, resolveDynamicComponent as we, normalizeStyle as Ve, withCtx as k, createElementBlock as A, toDisplayString as E, createCommentVNode as J, pushScopeId as De, popScopeId as Pe, createElementVNode as L, ref as M, watch as he, renderSlot as ee, unref as m, resolveComponent as R, createVNode as x, createTextVNode as G, useCssVars as rn, useSlots as bt, createSlots as Me, normalizeProps as oi, guardReactiveProps as li, Fragment as me, renderList as fe, mergeProps as si, normalizeClass as $e, onBeforeMount as lt, withModifiers as yt, withDirectives as Ie, vShow as xe, withKeys as ci, inject as ui, onMounted as di, onUnmounted as pi, Teleport as fi, reactive as Tt } from "vue";
1
+ import { defineComponent as Q, computed as S, openBlock as f, createBlock as U, resolveDynamicComponent as Ce, normalizeStyle as Ve, withCtx as k, createElementBlock as A, toDisplayString as E, createCommentVNode as J, pushScopeId as De, popScopeId as Pe, createElementVNode as L, ref as M, watch as he, renderSlot as ee, unref as m, resolveComponent as D, createVNode as x, createTextVNode as G, useCssVars as rn, useSlots as bt, createSlots as Me, normalizeProps as oi, guardReactiveProps as li, Fragment as me, renderList as fe, mergeProps as si, normalizeClass as $e, onBeforeMount as lt, withModifiers as yt, withDirectives as Ie, vShow as xe, withKeys as ci, inject as ui, onMounted as di, onUnmounted as pi, Teleport as fi, reactive as Tt } from "vue";
2
2
  import { useRouter as Ct } from "vue-router";
3
3
  import { createI18n as on, i18nTComponent as ln } from "@kong-ui-public/i18n";
4
4
  import Ot from "axios";
@@ -83,7 +83,7 @@ const Kt = "24px", mi = (e, t) => {
83
83
  lineHeight: "0",
84
84
  width: n.value
85
85
  }));
86
- return (a, r) => (f(), U(we(e.as), {
86
+ return (a, r) => (f(), U(Ce(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",
@@ -431,10 +431,10 @@ const $i = {
431
431
  fetch: "Could not fetch available items",
432
432
  invalid: "Please select a valid value"
433
433
  }
434
- }, qi = {
434
+ }, Fi = {
435
435
  unexpected: "An unexpected error has occurred",
436
436
  dataKeyUndefined: 'The data key "{dataKey}" does not exist in the response.'
437
- }, Fi = {
437
+ }, qi = {
438
438
  utf8Name: "The name can be any string containing characters, letters, numbers, or the following characters: ., -, _, or ~. Do not use spaces."
439
439
  }, Bi = {
440
440
  enable: {
@@ -455,8 +455,8 @@ const $i = {
455
455
  baseConfigCard: Ki,
456
456
  filter: Mi,
457
457
  debouncedFilter: Ei,
458
- errors: qi,
459
- validationErrors: Fi,
458
+ errors: Fi,
459
+ validationErrors: qi,
460
460
  toggleModal: Bi
461
461
  };
462
462
  function st() {
@@ -517,7 +517,7 @@ function Ui(e, t, n, i = {
517
517
  }) {
518
518
  n || (n = "1000");
519
519
  const { axiosInstance: a } = St(e.axiosRequestConfig), { i18n: { t: r } } = st(), { debounce: o } = xi(), l = o(async (h) => {
520
- await V(h);
520
+ await R(h);
521
521
  }, 200), c = M(!1), u = M(""), s = M(""), d = M([]), v = M([]), y = M(void 0), I = m(t);
522
522
  let N = `${e.apiBaseUrl}${I}`;
523
523
  e.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
@@ -531,28 +531,28 @@ function Ui(e, t, n, i = {
531
531
  } finally {
532
532
  c.value = !1;
533
533
  }
534
- }, g = M(""), V = async (h) => {
534
+ }, g = M(""), R = async (h) => {
535
535
  var w, p, C;
536
536
  if (g.value !== h)
537
537
  if (g.value = h || "", y.value === void 0)
538
538
  try {
539
539
  if (c.value = !0, u.value = "", s.value = "", e.app === "konnect") {
540
- let q = N + "";
541
- h && (q += `/${h}`);
542
- const { data: j } = await a.get(`${q}?size=${n}`);
540
+ let F = N + "";
541
+ h && (F += `/${h}`);
542
+ const { data: j } = await a.get(`${F}?size=${n}`);
543
543
  i.fetchedItemsKey in j ? d.value = j[i.fetchedItemsKey] : j != null && j.id ? d.value = [j] : d.value = [];
544
544
  } else if (h) {
545
- const q = [];
546
- _(h) && i.searchKeys.includes("id") ? q.push((async () => {
545
+ const F = [];
546
+ _(h) && i.searchKeys.includes("id") ? F.push((async () => {
547
547
  const { data: K } = await a.get(`${N}/${h}`);
548
548
  return [K[i.fetchedItemsKey] ?? K];
549
- })()) : q.push(
549
+ })()) : F.push(
550
550
  ...i.searchKeys.filter((K) => K !== "id").map(async (K) => {
551
551
  const { data: O } = await a.get(`${N}?${K}=${h}`);
552
552
  return O[i.fetchedItemsKey];
553
553
  })
554
554
  );
555
- const j = await Promise.all(q), P = /* @__PURE__ */ new Set();
555
+ const j = await Promise.all(F), P = /* @__PURE__ */ new Set();
556
556
  d.value = [], (w = j == null ? void 0 : j.forEach) == null || w.call(j, (K) => {
557
557
  var O;
558
558
  (O = K == null ? void 0 : K.forEach) == null || O.call(K, (z) => {
@@ -561,17 +561,17 @@ function Ui(e, t, n, i = {
561
561
  });
562
562
  } else
563
563
  d.value = v.value;
564
- } catch (q) {
565
- ((p = q == null ? void 0 : q.response) == null ? void 0 : p.status) === 404 ? s.value = r("debouncedFilter.errors.invalid") : (d.value = [], u.value = r("debouncedFilter.errors.fetch"));
564
+ } catch (F) {
565
+ ((p = F == null ? void 0 : F.response) == null ? void 0 : p.status) === 404 ? s.value = r("debouncedFilter.errors.invalid") : (d.value = [], u.value = r("debouncedFilter.errors.fetch"));
566
566
  } finally {
567
567
  c.value = !1;
568
568
  }
569
569
  else
570
- c.value = !0, s.value = "", h ? (d.value = (C = y.value) == null ? void 0 : C.filter((q) => {
570
+ c.value = !0, s.value = "", h ? (d.value = (C = y.value) == null ? void 0 : C.filter((F) => {
571
571
  var j;
572
572
  let P = !1;
573
573
  for (const K of i.searchKeys) {
574
- const O = typeof q[K] == "string" ? (j = q[K]) == null ? void 0 : j.toLowerCase() : q[K];
574
+ const O = typeof F[K] == "string" ? (j = F[K]) == null ? void 0 : j.toLowerCase() : F[K];
575
575
  O != null && O.includes(h.toLowerCase()) && (P = !0);
576
576
  }
577
577
  return P;
@@ -712,15 +712,15 @@ const dn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
712
712
  if (!t)
713
713
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
714
714
  return t.shift(), t;
715
- }, Et = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
715
+ }, Et = (e) => e === "*" || e === "x" || e === "X", Ft = (e) => {
716
716
  const t = parseInt(e, 10);
717
717
  return isNaN(t) ? e : t;
718
718
  }, Ji = (e, t) => typeof e != typeof t ? [String(e), String(t)] : [e, t], Hi = (e, t) => {
719
719
  if (Et(e) || Et(t))
720
720
  return 0;
721
- const [n, i] = Ji(qt(e), qt(t));
721
+ const [n, i] = Ji(Ft(e), Ft(t));
722
722
  return n > i ? 1 : n < i ? -1 : 0;
723
- }, Ft = (e, t) => {
723
+ }, qt = (e, t) => {
724
724
  for (let n = 0; n < Math.max(e.length, t.length); n++) {
725
725
  const i = Hi(e[n] || "0", t[n] || "0");
726
726
  if (i !== 0)
@@ -728,8 +728,8 @@ const dn = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
728
728
  }
729
729
  return 0;
730
730
  }, Wi = (e, t) => {
731
- const n = Mt(e), i = Mt(t), a = n.pop(), r = i.pop(), o = Ft(n, i);
732
- return o !== 0 ? o : a && r ? Ft(a.split("."), r.split(".")) : a || r ? a ? -1 : 1 : 0;
731
+ const n = Mt(e), i = Mt(t), a = n.pop(), r = i.pop(), o = qt(n, i);
732
+ return o !== 0 ? o : a && r ? qt(a.split("."), r.split(".")) : a || r ? a ? -1 : 1 : 0;
733
733
  }, Bt = (e, t, n) => {
734
734
  Zi(n);
735
735
  const i = Wi(e, t);
@@ -815,7 +815,7 @@ const ae = {
815
815
  var c;
816
816
  return t.isArrayItem ? (c = r.value) != null && c.name ? i(r.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
817
817
  });
818
- return (c, u) => (f(), U(we(e.isArrayItem ? "fieldset" : "div"), {
818
+ return (c, u) => (f(), U(Ce(e.isArrayItem ? "fieldset" : "div"), {
819
819
  class: $e(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
820
820
  }, {
821
821
  default: k(() => [
@@ -851,7 +851,7 @@ const ae = {
851
851
  setup(e) {
852
852
  const { i18n: { t } } = ae.useI18n();
853
853
  return (n, i) => {
854
- const a = R("KButton");
854
+ const a = D("KButton");
855
855
  return f(), A("div", null, [
856
856
  x(a, {
857
857
  appearance: "tertiary",
@@ -877,7 +877,7 @@ const ae = {
877
877
  setup(e) {
878
878
  const { i18n: { t } } = ae.useI18n();
879
879
  return (n, i) => {
880
- const a = R("KBadge");
880
+ const a = D("KBadge");
881
881
  return f(), U(a, {
882
882
  appearance: e.status ? "success" : "neutral"
883
883
  }, {
@@ -1029,7 +1029,7 @@ const ae = {
1029
1029
  }
1030
1030
  }), v = M(), { isTruncated: y } = ae.useTruncationDetector(v);
1031
1031
  return (I, N) => {
1032
- const _ = R("KLabel"), B = R("KBadge"), g = R("KCopy"), V = R("KTooltip");
1032
+ const _ = D("KLabel"), B = D("KBadge"), g = D("KCopy"), R = D("KTooltip");
1033
1033
  return f(), A("div", ca, [
1034
1034
  L("div", {
1035
1035
  class: "config-card-details-label",
@@ -1066,7 +1066,7 @@ const ae = {
1066
1066
  rowValue: e.item.value
1067
1067
  }, () => [
1068
1068
  l.value ? (f(), A("div", ya, [
1069
- (f(), U(we(d.value.tag), oi(li(d.value.attrs)), {
1069
+ (f(), U(Ce(d.value.tag), oi(li(d.value.attrs)), {
1070
1070
  default: k(() => [
1071
1071
  d.value.additionalComponent === "KBadge" ? (f(), A("div", {
1072
1072
  key: 0,
@@ -1122,7 +1122,7 @@ const ae = {
1122
1122
  "is-array-item": "",
1123
1123
  item: h
1124
1124
  }, null, 8, ["index", "item"]))), 128))
1125
- ], 8, va)) : (f(), U(V, {
1125
+ ], 8, va)) : (f(), U(R, {
1126
1126
  key: 4,
1127
1127
  text: m(y) ? e.item.value : ""
1128
1128
  }, {
@@ -1189,7 +1189,7 @@ const ae = {
1189
1189
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1190
1190
  });
1191
1191
  return (a, r) => {
1192
- const o = R("KBadge"), l = R("KCodeBlock");
1192
+ const o = D("KBadge"), l = D("KCodeBlock");
1193
1193
  return f(), A("div", Ca, [
1194
1194
  t.fetcherUrl ? (f(), A("div", wa, [
1195
1195
  x(o, {
@@ -1310,7 +1310,7 @@ function Ma(e, t) {
1310
1310
  `;
1311
1311
  return l.replace(/\n$/, "");
1312
1312
  }
1313
- var Ea = Ma, qa = [
1313
+ var Ea = Ma, Fa = [
1314
1314
  "kind",
1315
1315
  "multi",
1316
1316
  "resolve",
@@ -1321,7 +1321,7 @@ var Ea = Ma, qa = [
1321
1321
  "representName",
1322
1322
  "defaultStyle",
1323
1323
  "styleAliases"
1324
- ], Fa = [
1324
+ ], qa = [
1325
1325
  "scalar",
1326
1326
  "sequence",
1327
1327
  "mapping"
@@ -1336,13 +1336,13 @@ function Ba(e) {
1336
1336
  }
1337
1337
  function La(e, t) {
1338
1338
  if (t = t || {}, Object.keys(t).forEach(function(n) {
1339
- if (qa.indexOf(n) === -1)
1339
+ if (Fa.indexOf(n) === -1)
1340
1340
  throw new ce('Unknown option "' + n + '" is met in definition of "' + e + '" YAML type.');
1341
1341
  }), this.options = t, this.tag = e, this.kind = t.kind || null, this.resolve = t.resolve || function() {
1342
1342
  return !0;
1343
1343
  }, this.construct = t.construct || function(n) {
1344
1344
  return n;
1345
- }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ba(t.styleAliases || null), Fa.indexOf(this.kind) === -1)
1345
+ }, this.instanceOf = t.instanceOf || null, this.predicate = t.predicate || null, this.represent = t.represent || null, this.representName = t.representName || null, this.defaultStyle = t.defaultStyle || null, this.multi = t.multi || !1, this.styleAliases = Ba(t.styleAliases || null), qa.indexOf(this.kind) === -1)
1346
1346
  throw new ce('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1347
1347
  }
1348
1348
  var oe = La;
@@ -1793,7 +1793,7 @@ function Cr(e) {
1793
1793
  function wr(e) {
1794
1794
  return e !== null ? e : {};
1795
1795
  }
1796
- var qn = new oe("tag:yaml.org,2002:set", {
1796
+ var Fn = new oe("tag:yaml.org,2002:set", {
1797
1797
  kind: "mapping",
1798
1798
  resolve: Cr,
1799
1799
  construct: wr
@@ -1806,9 +1806,9 @@ var qn = new oe("tag:yaml.org,2002:set", {
1806
1806
  Kn,
1807
1807
  Mn,
1808
1808
  En,
1809
- qn
1809
+ Fn
1810
1810
  ]
1811
- }), Ne = Object.prototype.hasOwnProperty, nt = 1, Fn = 2, Bn = 3, it = 4, ft = 1, Sr = 2, Rt = 3, _r = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ir = /[\x85\u2028\u2029]/, xr = /[,\[\]\{\}]/, Ln = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1811
+ }), Ne = Object.prototype.hasOwnProperty, nt = 1, qn = 2, Bn = 3, it = 4, ft = 1, Sr = 2, Rt = 3, _r = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Ir = /[\x85\u2028\u2029]/, xr = /[,\[\]\{\}]/, Ln = /^(?:!|!!|![a-z\-]+!)$/i, Un = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1812
1812
  function Vt(e) {
1813
1813
  return Object.prototype.toString.call(e);
1814
1814
  }
@@ -1845,8 +1845,8 @@ function Nr(e) {
1845
1845
  );
1846
1846
  }
1847
1847
  var Rn = new Array(256), Vn = new Array(256);
1848
- for (var Fe = 0; Fe < 256; Fe++)
1849
- Rn[Fe] = Dt(Fe) ? 1 : 0, Vn[Fe] = Dt(Fe);
1848
+ for (var qe = 0; qe < 256; qe++)
1849
+ Rn[qe] = Dt(qe) ? 1 : 0, Vn[qe] = Dt(qe);
1850
1850
  function Tr(e, t) {
1851
1851
  this.input = e, this.filename = t.filename || null, this.schema = t.schema || It, this.onWarning = t.onWarning || null, this.legacy = t.legacy || !1, this.json = t.json || !1, this.listener = t.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
1852
1852
  }
@@ -2027,7 +2027,7 @@ function Er(e, t) {
2027
2027
  }
2028
2028
  T(e, "unexpected end of the stream within a flow collection");
2029
2029
  }
2030
- function qr(e, t) {
2030
+ function Fr(e, t) {
2031
2031
  var n, i, a = ft, r = !1, o = !1, l = t, c = 0, u = !1, s, d;
2032
2032
  if (d = e.input.charCodeAt(e.position), d === 124)
2033
2033
  i = !1;
@@ -2090,7 +2090,7 @@ function Jt(e, t) {
2090
2090
  }
2091
2091
  return l ? (e.tag = i, e.anchor = a, e.kind = "sequence", e.result = r, !0) : !1;
2092
2092
  }
2093
- function Fr(e, t, n) {
2093
+ function qr(e, t, n) {
2094
2094
  var i, a, r, o, l, c, u = e.tag, s = e.anchor, d = {}, v = /* @__PURE__ */ Object.create(null), y = null, I = null, N = null, _ = !1, B = !1, g;
2095
2095
  if (e.firstTabInLine !== -1)
2096
2096
  return !1;
@@ -2098,7 +2098,7 @@ function Fr(e, t, n) {
2098
2098
  if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), r = e.line, (g === 63 || g === 58) && pe(i))
2099
2099
  g === 63 ? (_ && (Ue(e, d, v, y, I, null, o, l, c), y = I = N = null), B = !0, _ = !0, a = !0) : _ ? (_ = !1, a = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, g = i;
2100
2100
  else {
2101
- if (o = e.line, l = e.lineStart, c = e.position, !Re(e, n, Fn, !1, !0))
2101
+ if (o = e.line, l = e.lineStart, c = e.position, !Re(e, n, qn, !1, !0))
2102
2102
  break;
2103
2103
  if (e.line === r) {
2104
2104
  for (g = e.input.charCodeAt(e.position); Ke(g); )
@@ -2164,7 +2164,7 @@ function Re(e, t, n, i, a) {
2164
2164
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, r = o = l = it === n || Bn === n, i && ne(e, !0, -1) && (u = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
2165
2165
  for (; Br(e) || Lr(e); )
2166
2166
  ne(e, !0, -1) ? (u = !0, l = r, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
2167
- if (l && (l = u || a), (c === 1 || it === n) && (nt === n || Fn === n ? N = t : N = t + 1, _ = e.position - e.lineStart, c === 1 ? l && (Jt(e, _) || Fr(e, _, N)) || Er(e, N) ? s = !0 : (o && qr(e, N) || Kr(e, N) || Mr(e, N) ? s = !0 : Ur(e) ? (s = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Or(e, N, nt === n) && (s = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (s = l && Jt(e, _))), e.tag === null)
2167
+ if (l && (l = u || a), (c === 1 || it === n) && (nt === n || qn === n ? N = t : N = t + 1, _ = e.position - e.lineStart, c === 1 ? l && (Jt(e, _) || qr(e, _, N)) || Er(e, N) ? s = !0 : (o && Fr(e, N) || Kr(e, N) || Mr(e, N) ? s = !0 : Ur(e) ? (s = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Or(e, N, nt === n) && (s = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (s = l && Jt(e, _))), e.tag === null)
2168
2168
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2169
2169
  else if (e.tag === "?") {
2170
2170
  for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), d = 0, v = e.implicitTypes.length; d < v; d += 1)
@@ -2454,19 +2454,19 @@ function Co(e) {
2454
2454
  function wo(e, t, n) {
2455
2455
  var i = "", a = e.tag, r, o, l;
2456
2456
  for (r = 0, o = n.length; r < o; r += 1)
2457
- l = n[r], e.replacer && (l = e.replacer.call(n, String(r), l)), (Ce(e, t, l, !1, !1) || typeof l > "u" && Ce(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2457
+ l = n[r], e.replacer && (l = e.replacer.call(n, String(r), l)), (we(e, t, l, !1, !1) || typeof l > "u" && we(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2458
2458
  e.tag = a, e.dump = "[" + i + "]";
2459
2459
  }
2460
2460
  function Xt(e, t, n, i) {
2461
2461
  var a = "", r = e.tag, o, l, c;
2462
2462
  for (o = 0, l = n.length; o < l; o += 1)
2463
- c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (Ce(e, t + 1, c, !0, !0, !1, !0) || typeof c > "u" && Ce(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += ht(e, t)), e.dump && We === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2463
+ c = n[o], e.replacer && (c = e.replacer.call(n, String(o), c)), (we(e, t + 1, c, !0, !0, !1, !0) || typeof c > "u" && we(e, t + 1, null, !0, !0, !1, !0)) && ((!i || a !== "") && (a += ht(e, t)), e.dump && We === e.dump.charCodeAt(0) ? a += "-" : a += "- ", a += e.dump);
2464
2464
  e.tag = r, e.dump = a || "[]";
2465
2465
  }
2466
2466
  function So(e, t, n) {
2467
2467
  var i = "", a = e.tag, r = Object.keys(n), o, l, c, u, s;
2468
2468
  for (o = 0, l = r.length; o < l; o += 1)
2469
- s = "", i !== "" && (s += ", "), e.condenseFlow && (s += '"'), c = r[o], u = n[c], e.replacer && (u = e.replacer.call(n, c, u)), Ce(e, t, c, !1, !1) && (e.dump.length > 1024 && (s += "? "), s += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ce(e, t, u, !1, !1) && (s += e.dump, i += s));
2469
+ s = "", i !== "" && (s += ", "), e.condenseFlow && (s += '"'), c = r[o], u = n[c], e.replacer && (u = e.replacer.call(n, c, u)), we(e, t, c, !1, !1) && (e.dump.length > 1024 && (s += "? "), s += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), we(e, t, u, !1, !1) && (s += e.dump, i += s));
2470
2470
  e.tag = a, e.dump = "{" + i + "}";
2471
2471
  }
2472
2472
  function _o(e, t, n, i) {
@@ -2478,7 +2478,7 @@ function _o(e, t, n, i) {
2478
2478
  else if (e.sortKeys)
2479
2479
  throw new ce("sortKeys must be a boolean or a function");
2480
2480
  for (l = 0, c = o.length; l < c; l += 1)
2481
- v = "", (!i || a !== "") && (v += ht(e, t)), u = o[l], s = n[u], e.replacer && (s = e.replacer.call(n, u, s)), Ce(e, t + 1, u, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && We === e.dump.charCodeAt(0) ? v += "?" : v += "? "), v += e.dump, d && (v += ht(e, t)), Ce(e, t + 1, s, !0, d) && (e.dump && We === e.dump.charCodeAt(0) ? v += ":" : v += ": ", v += e.dump, a += v));
2481
+ v = "", (!i || a !== "") && (v += ht(e, t)), u = o[l], s = n[u], e.replacer && (s = e.replacer.call(n, u, s)), we(e, t + 1, u, !0, !0, !0) && (d = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, d && (e.dump && We === e.dump.charCodeAt(0) ? v += "?" : v += "? "), v += e.dump, d && (v += ht(e, t)), we(e, t + 1, s, !0, d) && (e.dump && We === e.dump.charCodeAt(0) ? v += ":" : v += ": ", v += e.dump, a += v));
2482
2482
  e.tag = r, e.dump = a || "{}";
2483
2483
  }
2484
2484
  function en(e, t, n) {
@@ -2498,7 +2498,7 @@ function en(e, t, n) {
2498
2498
  }
2499
2499
  return !1;
2500
2500
  }
2501
- function Ce(e, t, n, i, a, r, o) {
2501
+ function we(e, t, n, i, a, r, o) {
2502
2502
  e.tag = null, e.dump = n, en(e, n, !1) || en(e, n, !0);
2503
2503
  var l = Jn.call(e.dump), c = i, u;
2504
2504
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
@@ -2546,7 +2546,7 @@ function xo(e, t) {
2546
2546
  var n = new yo(t);
2547
2547
  n.noRefs || Io(e, n);
2548
2548
  var i = e;
2549
- return n.replacer && (i = n.replacer.call({ "": i }, "", i)), Ce(n, 0, i, !0, !0) ? n.dump + `
2549
+ return n.replacer && (i = n.replacer.call({ "": i }, "", i)), we(n, 0, i, !0, !0) ? n.dump + `
2550
2550
  ` : "";
2551
2551
  }
2552
2552
  var Ao = xo, jo = {
@@ -2557,13 +2557,13 @@ function $t(e, t) {
2557
2557
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2558
2558
  };
2559
2559
  }
2560
- var $o = oe, No = vn, To = wn, Oo = An, Ko = jn, Mo = It, Eo = zn.load, qo = zn.loadAll, Fo = jo.dump, Bo = ce, Lo = {
2560
+ var $o = oe, No = vn, To = wn, Oo = An, Ko = jn, Mo = It, Eo = zn.load, Fo = zn.loadAll, qo = jo.dump, Bo = ce, Lo = {
2561
2561
  binary: Kn,
2562
2562
  float: xn,
2563
2563
  map: Cn,
2564
2564
  null: Sn,
2565
2565
  pairs: En,
2566
- set: qn,
2566
+ set: Fn,
2567
2567
  timestamp: Tn,
2568
2568
  bool: _n,
2569
2569
  int: In,
@@ -2579,8 +2579,8 @@ var $o = oe, No = vn, To = wn, Oo = An, Ko = jn, Mo = It, Eo = zn.load, qo = zn.
2579
2579
  CORE_SCHEMA: Ko,
2580
2580
  DEFAULT_SCHEMA: Mo,
2581
2581
  load: Eo,
2582
- loadAll: qo,
2583
- dump: Fo,
2582
+ loadAll: Fo,
2583
+ dump: qo,
2584
2584
  YAMLException: Bo,
2585
2585
  types: Lo,
2586
2586
  safeLoad: Uo,
@@ -2602,7 +2602,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
2602
2602
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : Do.dump(i).trim();
2603
2603
  });
2604
2604
  return (i, a) => {
2605
- const r = R("KCodeBlock");
2605
+ const r = D("KCodeBlock");
2606
2606
  return f(), A("div", Po, [
2607
2607
  t.yamlRecord ? (f(), U(r, {
2608
2608
  key: 0,
@@ -2791,7 +2791,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
2791
2791
  lineHeight: "0",
2792
2792
  width: n.value
2793
2793
  }));
2794
- return (a, r) => (f(), U(we(e.as), {
2794
+ return (a, r) => (f(), U(Ce(e.as), {
2795
2795
  "aria-hidden": e.decorative ? "true" : void 0,
2796
2796
  class: "kui-icon add-icon",
2797
2797
  "data-testid": "kui-icon-wrapper-add-icon",
@@ -2890,7 +2890,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
2890
2890
  lineHeight: "0",
2891
2891
  width: n.value
2892
2892
  }));
2893
- return (a, r) => (f(), U(we(e.as), {
2893
+ return (a, r) => (f(), U(Ce(e.as), {
2894
2894
  "aria-hidden": e.decorative ? "true" : void 0,
2895
2895
  class: "kui-icon book-icon",
2896
2896
  "data-testid": "kui-icon-wrapper-book-icon",
@@ -2989,7 +2989,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
2989
2989
  lineHeight: "0",
2990
2990
  width: n.value
2991
2991
  }));
2992
- return (a, r) => (f(), U(we(e.as), {
2992
+ return (a, r) => (f(), U(Ce(e.as), {
2993
2993
  "aria-hidden": e.decorative ? "true" : void 0,
2994
2994
  class: "kui-icon chevron-down-icon",
2995
2995
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
@@ -3088,7 +3088,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3088
3088
  lineHeight: "0",
3089
3089
  width: n.value
3090
3090
  }));
3091
- return (a, r) => (f(), U(we(e.as), {
3091
+ return (a, r) => (f(), U(Ce(e.as), {
3092
3092
  "aria-hidden": e.decorative ? "true" : void 0,
3093
3093
  class: "kui-icon close-icon",
3094
3094
  "data-testid": "kui-icon-wrapper-close-icon",
@@ -3187,7 +3187,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3187
3187
  lineHeight: "0",
3188
3188
  width: n.value
3189
3189
  }));
3190
- return (a, r) => (f(), U(we(e.as), {
3190
+ return (a, r) => (f(), U(Ce(e.as), {
3191
3191
  "aria-hidden": e.decorative ? "true" : void 0,
3192
3192
  class: "kui-icon more-icon",
3193
3193
  "data-testid": "kui-icon-wrapper-more-icon",
@@ -3344,12 +3344,12 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3344
3344
  section: se.Basic
3345
3345
  }
3346
3346
  }, y = M(!1), I = M(!1), N = M(""), _ = M({}), B = S(() => {
3347
- var p, C, q;
3347
+ var p, C, F;
3348
3348
  if (!_.value)
3349
3349
  return [];
3350
3350
  const j = [], P = Object.keys(_.value).length;
3351
3351
  for (const K in _.value) {
3352
- const O = (C = (p = a.configSchema) == null ? void 0 : p[K]) == null ? void 0 : C.order, z = (q = v[K]) == null ? void 0 : q.order;
3352
+ const O = (C = (p = a.configSchema) == null ? void 0 : p[K]) == null ? void 0 : C.order, z = (F = v[K]) == null ? void 0 : F.order;
3353
3353
  let W = P;
3354
3354
  (z || z === 0) && (W = z === -1 ? P + 1 : z), O && (W = O === -1 ? P + 1 : O), j.push([K, W]);
3355
3355
  }
@@ -3372,9 +3372,9 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3372
3372
  var p, C;
3373
3373
  if (!_.value || !a.pluginConfigKey)
3374
3374
  return [];
3375
- const q = _.value[a.pluginConfigKey] || {}, j = Object.keys(q).length, P = [];
3376
- for (const K in q) {
3377
- const O = (C = (p = a.pluginConfigSchema) == null ? void 0 : p[K]) == null ? void 0 : C.order, z = q[K];
3375
+ const F = _.value[a.pluginConfigKey] || {}, j = Object.keys(F).length, P = [];
3376
+ for (const K in F) {
3377
+ const O = (C = (p = a.pluginConfigSchema) == null ? void 0 : p[K]) == null ? void 0 : C.order, z = F[K];
3378
3378
  let W = z != null && z !== "" ? j - 1 : j;
3379
3379
  O && (W = O === -1 ? j + 1 : O), P.push([K, W]);
3380
3380
  }
@@ -3382,7 +3382,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3382
3382
  return K[1] - O[1];
3383
3383
  }), P.map((K) => {
3384
3384
  var O;
3385
- const z = K[0], W = q[z], ue = ((O = a.pluginConfigSchema) == null ? void 0 : O[z]) || {};
3385
+ const z = K[0], W = F[z], ue = ((O = a.pluginConfigSchema) == null ? void 0 : O[z]) || {};
3386
3386
  return {
3387
3387
  key: z,
3388
3388
  value: W,
@@ -3393,20 +3393,20 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3393
3393
  section: se.Plugin
3394
3394
  };
3395
3395
  }).filter((K) => !K.hidden);
3396
- }), V = S(() => {
3397
- var p, C, q, j;
3396
+ }), R = S(() => {
3397
+ var p, C, F, j;
3398
3398
  return {
3399
3399
  basic: (p = B.value) == null ? void 0 : p.filter((P) => P.section === se.Basic),
3400
3400
  advanced: (C = B.value) == null ? void 0 : C.filter((P) => P.section === se.Advanced),
3401
- plugin: (j = g.value) == null ? void 0 : j.concat((q = B.value) == null ? void 0 : q.filter((P) => P.section === se.Plugin))
3401
+ plugin: (j = g.value) == null ? void 0 : j.concat((F = B.value) == null ? void 0 : F.filter((P) => P.section === se.Plugin))
3402
3402
  };
3403
3403
  }), h = S(() => {
3404
3404
  const p = [];
3405
- return V.value.basic.length && p.push("basic"), V.value.advanced.length && p.push("advanced"), V.value.plugin.length && p.push("plugin"), p;
3405
+ return R.value.basic.length && p.push("basic"), R.value.advanced.length && p.push("advanced"), R.value.plugin.length && p.push("plugin"), p;
3406
3406
  }), w = S(() => {
3407
3407
  var p, C;
3408
- let q = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3409
- return a.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (C = a.config) != null && C.workspace ? `/${a.config.workspace}` : "")), q = q.replace(/{id}/gi, a.config.entityId), q;
3408
+ let F = `${a.config.apiBaseUrl}${a.fetchUrl}`;
3409
+ return a.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((p = a.config) == null ? void 0 : p.controlPlaneId) || "") : a.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (C = a.config) != null && C.workspace ? `/${a.config.workspace}` : "")), F = F.replace(/{id}/gi, a.config.entityId), F;
3410
3410
  });
3411
3411
  return he(y, (p) => {
3412
3412
  i("loading", p);
@@ -3431,7 +3431,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3431
3431
  y.value = !1;
3432
3432
  }
3433
3433
  }), (p, C) => {
3434
- const q = R("KLabel"), j = R("KSelect"), P = R("KButton"), K = R("KSkeleton"), O = R("KEmptyState"), z = R("KCard");
3434
+ const F = D("KLabel"), j = D("KSelect"), P = D("KButton"), K = D("KSkeleton"), O = D("KEmptyState"), z = D("KCard");
3435
3435
  return f(), U(z, {
3436
3436
  class: "kong-ui-entity-base-config-card",
3437
3437
  "title-tag": e.titleTag
@@ -3439,7 +3439,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3439
3439
  actions: k(() => [
3440
3440
  L("div", Al, [
3441
3441
  ee(p.$slots, "actions", {}, void 0, !0),
3442
- x(q, {
3442
+ x(F, {
3443
3443
  class: "config-format-select-label",
3444
3444
  "data-testid": "config-format-select-label"
3445
3445
  }, {
@@ -3494,7 +3494,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3494
3494
  "fetcher-url": w.value,
3495
3495
  format: s.value,
3496
3496
  "prop-list-types": h.value,
3497
- "property-collections": V.value,
3497
+ "property-collections": R.value,
3498
3498
  record: _.value
3499
3499
  }, Me({ _: 2 }, [
3500
3500
  fe(Object.keys(p.$slots), (W) => ({
@@ -3585,6 +3585,13 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3585
3585
  noValidate: {
3586
3586
  type: Boolean,
3587
3587
  default: !1
3588
+ },
3589
+ /**
3590
+ * Wrapper component to use at component's root level.
3591
+ */
3592
+ wrapperComponent: {
3593
+ type: String,
3594
+ default: "KCard"
3588
3595
  }
3589
3596
  },
3590
3597
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
@@ -3602,7 +3609,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3602
3609
  i("cancel");
3603
3610
  }, g = () => {
3604
3611
  v.value || i("submit");
3605
- }, V = M([
3612
+ }, R = M([
3606
3613
  {
3607
3614
  title: o("baseForm.configuration.yaml"),
3608
3615
  hash: "#yaml"
@@ -3627,8 +3634,8 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3627
3634
  u.value = !1;
3628
3635
  }
3629
3636
  }), (h, w) => {
3630
- const p = R("KSkeleton"), C = R("KEmptyState"), q = R("KAlert"), j = R("KButton"), P = R("KTabs"), K = R("KSlideout"), O = R("KCard");
3631
- return f(), U(O, { class: "kong-ui-entity-base-form" }, {
3637
+ const p = D("KSkeleton"), C = D("KEmptyState"), F = D("KAlert"), j = D("KButton"), P = D("KTabs"), K = D("KSlideout");
3638
+ return f(), U(Ce(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3632
3639
  default: k(() => [
3633
3640
  u.value ? (f(), U(p, {
3634
3641
  key: 0,
@@ -3652,7 +3659,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3652
3659
  onSubmit: yt(g, ["prevent"])
3653
3660
  }, [
3654
3661
  ee(h.$slots, "default", {}, void 0, !0),
3655
- e.errorMessage ? (f(), U(q, {
3662
+ e.errorMessage ? (f(), U(F, {
3656
3663
  key: 0,
3657
3664
  appearance: "danger",
3658
3665
  "data-testid": "form-error",
@@ -3663,7 +3670,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3663
3670
  x(j, {
3664
3671
  appearance: "tertiary",
3665
3672
  "data-testid": "form-view-configuration",
3666
- onClick: w[0] || (w[0] = (z) => N())
3673
+ onClick: w[0] || (w[0] = (O) => N())
3667
3674
  }, {
3668
3675
  default: k(() => [
3669
3676
  G(E(m(o)("baseForm.actions.viewConfiguration")), 1)
@@ -3702,13 +3709,13 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3702
3709
  "offset-top": 60,
3703
3710
  title: m(o)("baseForm.configuration.title"),
3704
3711
  visible: y.value,
3705
- onClose: w[1] || (w[1] = (z) => N())
3712
+ onClose: w[1] || (w[1] = (O) => N())
3706
3713
  }, {
3707
3714
  default: k(() => [
3708
3715
  L("div", null, E(m(o)("baseForm.configuration.message")), 1),
3709
3716
  x(P, {
3710
3717
  "data-testid": "form-view-configuration-slideout-tabs",
3711
- tabs: V.value
3718
+ tabs: R.value
3712
3719
  }, {
3713
3720
  json: k(() => [
3714
3721
  x(mn, {
@@ -3733,7 +3740,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3733
3740
  });
3734
3741
  };
3735
3742
  }
3736
- }), El = /* @__PURE__ */ ve(Ml, [["__scopeId", "data-v-3def74fe"]]), ql = ["data-truncate"], Fl = /* @__PURE__ */ Q({
3743
+ }), El = /* @__PURE__ */ ve(Ml, [["__scopeId", "data-v-fd05df8e"]]), Fl = ["data-truncate"], ql = /* @__PURE__ */ Q({
3737
3744
  __name: "EntityBaseTableCell",
3738
3745
  props: {
3739
3746
  keyName: {
@@ -3766,12 +3773,12 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3766
3773
  o && (o.disconnect(), o = void 0);
3767
3774
  }, c = () => {
3768
3775
  var _, B, g;
3769
- let V = ((_ = n.value) == null ? void 0 : _.clientWidth) || 0;
3776
+ let R = ((_ = n.value) == null ? void 0 : _.clientWidth) || 0;
3770
3777
  if (n.value && "getComputedStyle" in window) {
3771
3778
  const h = window.getComputedStyle(n.value);
3772
- V -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3779
+ R -= (parseFloat(h.paddingLeft) || 0) + (parseFloat(h.paddingRight) || 0);
3773
3780
  }
3774
- s.value = ((B = i.value) == null ? void 0 : B.getBoundingClientRect().width) || 0, d.value = V, v.value = ((g = u.value) == null ? void 0 : g.innerText) || "";
3781
+ s.value = ((B = i.value) == null ? void 0 : B.getBoundingClientRect().width) || 0, d.value = R, v.value = ((g = u.value) == null ? void 0 : g.innerText) || "";
3775
3782
  }, u = M({}), s = M(0), d = M(0), v = M(""), y = S(() => [i.value, n.value]), I = he(
3776
3783
  y,
3777
3784
  (_) => {
@@ -3792,7 +3799,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3792
3799
  }), pi(() => {
3793
3800
  I();
3794
3801
  }), (_, B) => {
3795
- const g = R("KTooltip");
3802
+ const g = D("KTooltip");
3796
3803
  return f(), A("span", {
3797
3804
  ref_key: "contentRef",
3798
3805
  ref: u,
@@ -3812,11 +3819,11 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3812
3819
  ]),
3813
3820
  _: 3
3814
3821
  }, 8, ["text"])
3815
- ], 8, ql)) : ee(_.$slots, "default", { key: 1 }, void 0, !0)
3822
+ ], 8, Fl)) : ee(_.$slots, "default", { key: 1 }, void 0, !0)
3816
3823
  ], 512);
3817
3824
  };
3818
3825
  }
3819
- }), Bl = /* @__PURE__ */ ve(Fl, [["__scopeId", "data-v-471ce76e"]]), Ll = { class: "toolbar-container" }, Ul = {
3826
+ }), Bl = /* @__PURE__ */ ve(ql, [["__scopeId", "data-v-471ce76e"]]), Ll = { class: "toolbar-container" }, Ul = {
3820
3827
  key: 0,
3821
3828
  class: "toolbar-button-container"
3822
3829
  }, Rl = ["data-testid"], Vl = /* @__PURE__ */ Q({
@@ -3951,11 +3958,11 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3951
3958
  }), o = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = (p) => p.hasData || !!n.query, c = S(() => {
3952
3959
  const p = [];
3953
3960
  return Object.keys(n.tableHeaders).forEach((C) => {
3954
- const q = n.tableHeaders[C];
3961
+ const F = n.tableHeaders[C];
3955
3962
  p.push({
3956
- label: q.label ?? C,
3963
+ label: F.label ?? C,
3957
3964
  key: C,
3958
- sortable: q.sortable ?? !1,
3965
+ sortable: F.sortable ?? !1,
3959
3966
  hidable: !0
3960
3967
  });
3961
3968
  }), n.enableEntityActions && p.push({
@@ -3987,17 +3994,17 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
3987
3994
  i("click:row", C);
3988
3995
  }), _ = (p) => {
3989
3996
  i("sort", p);
3990
- }, { setTablePreferences: B, getTablePreferences: g } = ji(), V = M(g(o.value)), h = S(() => {
3997
+ }, { setTablePreferences: B, getTablePreferences: g } = ji(), R = M(g(o.value)), h = S(() => {
3991
3998
  const p = g(o.value);
3992
3999
  return {
3993
4000
  ...n.initialFetcherParams,
3994
4001
  ...p
3995
4002
  };
3996
4003
  }), w = (p) => {
3997
- V.value = p, o.value && B(o.value, p);
4004
+ R.value = p, o.value && B(o.value, p);
3998
4005
  };
3999
4006
  return (p, C) => {
4000
- const q = R("KButton"), j = R("KDropdown"), P = R("KTable"), K = R("KCard");
4007
+ const F = D("KButton"), j = D("KDropdown"), P = D("KTable"), K = D("KCard");
4001
4008
  return f(), U(K, {
4002
4009
  class: "kong-ui-entity-base-table",
4003
4010
  title: e.title,
@@ -4031,7 +4038,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4031
4038
  "search-input": e.query,
4032
4039
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
4033
4040
  sortable: !e.disableSorting,
4034
- "table-preferences": V.value,
4041
+ "table-preferences": R.value,
4035
4042
  onEmptyStateActionClick: y,
4036
4043
  "onRow:click": N.value,
4037
4044
  onSort: C[0] || (C[0] = (O) => _(O)),
@@ -4064,7 +4071,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4064
4071
  }, void 0, !0)
4065
4072
  ]),
4066
4073
  default: k(() => [
4067
- x(q, {
4074
+ x(F, {
4068
4075
  appearance: "tertiary",
4069
4076
  class: "actions-trigger",
4070
4077
  "data-testid": "overflow-actions-button",
@@ -4168,7 +4175,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4168
4175
  a("proceed");
4169
4176
  };
4170
4177
  return (c, u) => {
4171
- const s = R("KAlert"), d = R("KPrompt");
4178
+ const s = D("KAlert"), d = D("KPrompt");
4172
4179
  return f(), U(d, {
4173
4180
  "action-button-appearance": "danger",
4174
4181
  "action-button-disabled": e.actionPending,
@@ -4321,15 +4328,15 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4321
4328
  o.value = {
4322
4329
  ...o.value,
4323
4330
  [h]: ""
4324
- }, V();
4331
+ }, R();
4325
4332
  }, g = () => {
4326
- o.value = {}, V(!0);
4327
- }, V = (h = !1) => {
4333
+ o.value = {}, R(!0);
4334
+ }, R = (h = !1) => {
4328
4335
  const w = Object.keys(o.value).reduce((p, C) => (o.value[C] && (p[C] = `${o.value[C]}`), p), {});
4329
4336
  h && (r.value = !1), a("update:modelValue", new URLSearchParams(w).toString());
4330
4337
  };
4331
4338
  return (h, w) => {
4332
- const p = R("KInput"), C = R("KButton"), q = R("KSelect");
4339
+ const p = D("KInput"), C = D("KButton"), F = D("KSelect");
4333
4340
  return e.config.isExactMatch ? (f(), U(p, {
4334
4341
  key: 0,
4335
4342
  autocomplete: "off",
@@ -4398,7 +4405,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4398
4405
  class: "menu-item-label",
4399
4406
  for: I(j.value)
4400
4407
  }, E(m(n)("filter.fieldLabel")), 9, rs),
4401
- ((K = (P = e.config.schema) == null ? void 0 : P[j.value]) == null ? void 0 : K.type) === "select" ? (f(), U(q, {
4408
+ ((K = (P = e.config.schema) == null ? void 0 : P[j.value]) == null ? void 0 : K.type) === "select" ? (f(), U(F, {
4402
4409
  key: 0,
4403
4410
  id: I(j.value),
4404
4411
  modelValue: o.value[j.value],
@@ -4422,7 +4429,7 @@ const Po = { class: "yaml-config" }, ii = /* @__PURE__ */ Q({
4422
4429
  appearance: "tertiary",
4423
4430
  "data-testid": "apply-filter",
4424
4431
  size: "small",
4425
- onClick: w[0] || (w[0] = (O) => V(!0))
4432
+ onClick: w[0] || (w[0] = (O) => R(!0))
4426
4433
  }, {
4427
4434
  default: k(() => [
4428
4435
  G(E(m(n)("filter.applyButtonText")), 1)
@@ -4569,7 +4576,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4569
4576
  key: 0,
4570
4577
  class: $e(["form-section-info", { sticky: e.stickyInfoHeader }])
4571
4578
  }, [
4572
- e.title ? (f(), U(we(e.titleTag), {
4579
+ e.title ? (f(), U(Ce(e.titleTag), {
4573
4580
  key: 0,
4574
4581
  id: m(n),
4575
4582
  class: "form-section-title"
@@ -4648,18 +4655,18 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4648
4655
  id: { label: a("keys.list.table_headers.id"), sortable: !0 }
4649
4656
  }, s = u, d = S(() => {
4650
4657
  var b, $, H, te;
4651
- let F = `${i.config.apiBaseUrl}${Ae.list[i.config.app][i.config.keySetId ? "forKeySet" : "all"]}`;
4652
- return i.config.app === "konnect" ? F = F.replace(/{controlPlaneId}/gi, ((b = i.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{keySetId}/gi, (($ = i.config) == null ? void 0 : $.keySetId) || "") : i.config.app === "kongManager" && (F = F.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, ((te = i.config) == null ? void 0 : te.keySetId) || "")), F;
4658
+ let q = `${i.config.apiBaseUrl}${Ae.list[i.config.app][i.config.keySetId ? "forKeySet" : "all"]}`;
4659
+ return i.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((b = i.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{keySetId}/gi, (($ = i.config) == null ? void 0 : $.keySetId) || "") : i.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, ((te = i.config) == null ? void 0 : te.keySetId) || "")), q;
4653
4660
  }), v = M(""), y = S(() => {
4654
- const F = i.config.app === "konnect" || i.config.isExactMatch;
4655
- if (F)
4661
+ const q = i.config.app === "konnect" || i.config.isExactMatch;
4662
+ if (q)
4656
4663
  return {
4657
- isExactMatch: F,
4664
+ isExactMatch: q,
4658
4665
  placeholder: a("keys.search.placeholder")
4659
4666
  };
4660
4667
  const b = { name: u.name };
4661
4668
  return {
4662
- isExactMatch: F,
4669
+ isExactMatch: q,
4663
4670
  fields: b,
4664
4671
  schema: i.config.filterSchema
4665
4672
  };
@@ -4667,54 +4674,54 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4667
4674
  v.value = "";
4668
4675
  }, B = () => {
4669
4676
  l.value++;
4670
- }, g = M(null), V = (F, b) => {
4671
- const $ = F.id;
4677
+ }, g = M(null), R = (q, b) => {
4678
+ const $ = q.id;
4672
4679
  if (!b($)) {
4673
- p(F, "id");
4680
+ p(q, "id");
4674
4681
  return;
4675
4682
  }
4676
- w(F, "id");
4677
- }, h = (F, b) => {
4678
- const $ = JSON.stringify(F);
4683
+ w(q, "id");
4684
+ }, h = (q, b) => {
4685
+ const $ = JSON.stringify(q);
4679
4686
  if (!b($)) {
4680
4687
  n("copy:error", {
4681
- entity: F,
4688
+ entity: q,
4682
4689
  message: a("keys.errors.copy")
4683
4690
  });
4684
4691
  return;
4685
4692
  }
4686
4693
  n("copy:success", {
4687
- entity: F,
4694
+ entity: q,
4688
4695
  message: a("keys.copy.success_brief")
4689
4696
  });
4690
- }, w = (F, b) => {
4697
+ }, w = (q, b) => {
4691
4698
  n("copy:success", {
4692
- entity: F,
4699
+ entity: q,
4693
4700
  field: b,
4694
- message: a("keys.copy.success", { val: F[b] })
4701
+ message: a("keys.copy.success", { val: q[b] })
4695
4702
  });
4696
- }, p = (F, b) => {
4703
+ }, p = (q, b) => {
4697
4704
  n("copy:error", {
4698
- entity: F,
4705
+ entity: q,
4699
4706
  field: b,
4700
4707
  message: a("keys.errors.copy")
4701
4708
  });
4702
- }, C = async (F) => {
4709
+ }, C = async (q) => {
4703
4710
  var $;
4704
- await (($ = i.canRetrieve) == null ? void 0 : $.call(i, F)) && r.push(i.config.getViewRoute(F.id));
4705
- }, q = (F) => ({
4711
+ await (($ = i.canRetrieve) == null ? void 0 : $.call(i, q)) && r.push(i.config.getViewRoute(q.id));
4712
+ }, F = (q) => ({
4706
4713
  label: a("keys.actions.view"),
4707
- to: i.config.getViewRoute(F)
4708
- }), j = (F) => ({
4714
+ to: i.config.getViewRoute(q)
4715
+ }), j = (q) => ({
4709
4716
  label: a("keys.actions.edit"),
4710
- to: i.config.getEditRoute(F)
4711
- }), P = M(void 0), K = M(!1), O = M(!1), z = M(""), W = Cs(i.config, d.value), ue = (F) => {
4712
- P.value = F, K.value = !0;
4717
+ to: i.config.getEditRoute(q)
4718
+ }), P = M(void 0), K = M(!1), O = M(!1), z = M(""), W = Cs(i.config, d.value), ue = (q) => {
4719
+ P.value = q, K.value = !0;
4713
4720
  }, de = () => {
4714
4721
  K.value = !1;
4715
4722
  }, ye = async () => {
4716
- var F, b, $;
4717
- if ((F = P.value) != null && F.id) {
4723
+ var q, b, $;
4724
+ if ((q = P.value) != null && q.id) {
4718
4725
  O.value = !0;
4719
4726
  try {
4720
4727
  await o.delete(W(P.value.id)), O.value = !1, K.value = !1, l.value++, n("delete:success", P.value);
@@ -4725,32 +4732,32 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4725
4732
  }
4726
4733
  }
4727
4734
  }, Ee = M(!0);
4728
- he(N, (F) => {
4735
+ he(N, (q) => {
4729
4736
  var b, $, H, te;
4730
- if (Array.isArray((b = F == null ? void 0 : F.response) == null ? void 0 : b.data) && (Ee.value = F.response.data.length > 0), F.status === Oe.Error) {
4737
+ if (Array.isArray((b = q == null ? void 0 : q.response) == null ? void 0 : b.data) && (Ee.value = q.response.data.length > 0), q.status === Oe.Error) {
4731
4738
  g.value = {
4732
4739
  title: a("keys.errors.general")
4733
- }, (te = (H = ($ = F.error) == null ? void 0 : $.response) == null ? void 0 : H.data) != null && te.message && (g.value.message = F.error.response.data.message), n("error", F.error);
4740
+ }, (te = (H = ($ = q.error) == null ? void 0 : $.response) == null ? void 0 : H.data) != null && te.message && (g.value.message = q.error.response.data.message), n("error", q.error);
4734
4741
  return;
4735
4742
  }
4736
4743
  g.value = null;
4737
4744
  });
4738
- const qe = M({
4745
+ const Fe = M({
4739
4746
  ctaPath: i.config.createRoute,
4740
4747
  ctaText: void 0,
4741
4748
  message: `${a("keys.list.empty_state.description")}${i.config.additionMessageForEmptyState ? ` ${i.config.additionMessageForEmptyState}` : ""}`,
4742
4749
  title: a("keys.title")
4743
4750
  });
4744
4751
  return lt(async () => {
4745
- await i.canCreate() && (qe.value.title = a("keys.list.empty_state.title"), qe.value.ctaText = a("keys.actions.create"));
4746
- }), (F, b) => {
4747
- const $ = R("KButton"), H = R("KCopy"), te = R("KBadge"), ge = R("KTruncate"), D = R("KDropdownItem"), Z = R("KClipboardProvider");
4752
+ await i.canCreate() && (Fe.value.title = a("keys.list.empty_state.title"), Fe.value.ctaText = a("keys.actions.create"));
4753
+ }), (q, b) => {
4754
+ const $ = D("KButton"), H = D("KCopy"), te = D("KBadge"), ge = D("KTruncate"), V = D("KDropdownItem"), Z = D("KClipboardProvider");
4748
4755
  return f(), A("div", xs, [
4749
4756
  x(m(Dl), {
4750
4757
  "cache-identifier": e.cacheIdentifier,
4751
4758
  "disable-pagination-page-jump": "",
4752
4759
  "disable-sorting": c.value,
4753
- "empty-state-options": qe.value,
4760
+ "empty-state-options": Fe.value,
4754
4761
  "enable-entity-actions": "",
4755
4762
  "error-message": g.value,
4756
4763
  fetcher: m(I),
@@ -4831,9 +4838,9 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4831
4838
  actions: k(({ row: X }) => [
4832
4839
  x(Z, null, {
4833
4840
  default: k(({ copyToClipboard: Te }) => [
4834
- x(D, {
4841
+ x(V, {
4835
4842
  "data-testid": "action-entity-copy-id",
4836
- onClick: (ri) => V(X, Te)
4843
+ onClick: (ri) => R(X, Te)
4837
4844
  }, {
4838
4845
  default: k(() => [
4839
4846
  G(E(m(a)("keys.actions.copy_id")), 1)
@@ -4845,7 +4852,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4845
4852
  }, 1024),
4846
4853
  x(Z, null, {
4847
4854
  default: k(({ copyToClipboard: Te }) => [
4848
- x(D, {
4855
+ x(V, {
4849
4856
  "data-testid": "action-entity-copy-json",
4850
4857
  onClick: (ri) => h(X, Te)
4851
4858
  }, {
@@ -4861,10 +4868,10 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4861
4868
  "auth-function": () => e.canRetrieve(X)
4862
4869
  }, {
4863
4870
  default: k(() => [
4864
- x(D, {
4871
+ x(V, {
4865
4872
  "data-testid": "action-entity-view",
4866
4873
  "has-divider": "",
4867
- item: q(X.id)
4874
+ item: F(X.id)
4868
4875
  }, null, 8, ["item"])
4869
4876
  ]),
4870
4877
  _: 2
@@ -4873,7 +4880,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4873
4880
  "auth-function": () => e.canEdit(X)
4874
4881
  }, {
4875
4882
  default: k(() => [
4876
- x(D, {
4883
+ x(V, {
4877
4884
  "data-testid": "action-entity-edit",
4878
4885
  item: j(X.id)
4879
4886
  }, null, 8, ["item"])
@@ -4884,7 +4891,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4884
4891
  "auth-function": () => e.canDelete(X)
4885
4892
  }, {
4886
4893
  default: k(() => [
4887
- x(D, {
4894
+ x(V, {
4888
4895
  danger: "",
4889
4896
  "data-testid": "action-entity-delete",
4890
4897
  "has-divider": "",
@@ -4925,7 +4932,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4925
4932
  key: 0,
4926
4933
  class: "invalid-key-set-message",
4927
4934
  "data-testid": "invalid-key-set-message"
4928
- }, Es = { "data-testid": "key-format-container" }, qs = /* @__PURE__ */ Q({
4935
+ }, Es = { "data-testid": "key-format-container" }, Fs = /* @__PURE__ */ Q({
4929
4936
  __name: "KeyForm",
4930
4937
  props: {
4931
4938
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4955,8 +4962,8 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
4955
4962
  },
4956
4963
  emits: ["update", "error", "loading"],
4957
4964
  setup(e, { emit: t }) {
4958
- var F;
4959
- const n = t, i = e, a = Ct(), { i18n: { t: r } } = wt.useI18n(), { getMessageFromError: o } = ws(), { axiosInstance: l } = Nt((F = i.config) == null ? void 0 : F.axiosRequestConfig), c = S(() => i.keySetId ? Ae.form[i.config.app].edit.forKeySet.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), u = S(() => i.keyId ? ze.Edit : ze.Create), s = Tt({
4965
+ var q;
4966
+ const n = t, i = e, a = Ct(), { i18n: { t: r } } = wt.useI18n(), { getMessageFromError: o } = ws(), { axiosInstance: l } = Nt((q = i.config) == null ? void 0 : q.axiosRequestConfig), c = S(() => i.keySetId ? Ae.form[i.config.app].edit.forKeySet.replace(/{keySetId}/gi, i.keySetId) : Ae.form[i.config.app].edit.all), u = S(() => i.keyId ? ze.Edit : ze.Create), s = Tt({
4960
4967
  fields: {
4961
4968
  name: "",
4962
4969
  tags: "",
@@ -5000,7 +5007,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5000
5007
  var $, H;
5001
5008
  let b = `${i.config.apiBaseUrl}${Ae.form[i.config.app][u.value][i.keySetId ? "forKeySet" : "all"]}`;
5002
5009
  return i.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (($ = i.config) == null ? void 0 : $.controlPlaneId) || "") : i.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (H = i.config) != null && H.workspace ? `/${i.config.workspace}` : "")), b = b.replace(/{id}/gi, i.keyId).replace(/{keySetId}/gi, i.keySetId || ""), b;
5003
- }), V = S(() => {
5010
+ }), R = S(() => {
5004
5011
  var b, $, H;
5005
5012
  return {
5006
5013
  kid: s.fields.key_id,
@@ -5014,13 +5021,13 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5014
5021
  var b, $, H, te, ge;
5015
5022
  try {
5016
5023
  s.isReadonly = !0;
5017
- let D;
5018
- if (u.value === "create" ? D = await l.post(g.value, V.value) : u.value === "edit" && (D = ((b = i.config) == null ? void 0 : b.app) === "konnect" ? await l.put(g.value, V.value) : await l.patch(g.value, V.value)), D) {
5019
- const { data: Z } = D;
5020
- s.fields.key_id = (Z == null ? void 0 : Z.kid) || "", s.fields.name = (Z == null ? void 0 : Z.name) || "", s.fields.tags = (($ = Z == null ? void 0 : Z.tags) == null ? void 0 : $.join(", ")) || "", s.fields.key_set = ((H = Z == null ? void 0 : Z.set) == null ? void 0 : H.id) || "", s.fields.key_format = Z != null && Z.pem ? "pem" : "jwk", s.fields.jwk = (Z == null ? void 0 : Z.jwk) || "", s.fields.private_key = ((te = Z == null ? void 0 : Z.pem) == null ? void 0 : te.private_key) || "", s.fields.public_key = ((ge = Z == null ? void 0 : Z.pem) == null ? void 0 : ge.public_key) || "", Object.assign(d, s.fields), n("update", D == null ? void 0 : D.data);
5024
+ let V;
5025
+ if (u.value === "create" ? V = await l.post(g.value, R.value) : u.value === "edit" && (V = ((b = i.config) == null ? void 0 : b.app) === "konnect" ? await l.put(g.value, R.value) : await l.patch(g.value, R.value)), V) {
5026
+ const { data: Z } = V;
5027
+ s.fields.key_id = (Z == null ? void 0 : Z.kid) || "", s.fields.name = (Z == null ? void 0 : Z.name) || "", s.fields.tags = (($ = Z == null ? void 0 : Z.tags) == null ? void 0 : $.join(", ")) || "", s.fields.key_set = ((H = Z == null ? void 0 : Z.set) == null ? void 0 : H.id) || "", s.fields.key_format = Z != null && Z.pem ? "pem" : "jwk", s.fields.jwk = (Z == null ? void 0 : Z.jwk) || "", s.fields.private_key = ((te = Z == null ? void 0 : Z.pem) == null ? void 0 : te.private_key) || "", s.fields.public_key = ((ge = Z == null ? void 0 : Z.pem) == null ? void 0 : ge.public_key) || "", Object.assign(d, s.fields), n("update", V == null ? void 0 : V.data);
5021
5028
  }
5022
- } catch (D) {
5023
- s.errorMessage = o(D), n("error", D);
5029
+ } catch (V) {
5030
+ s.errorMessage = o(V), n("error", V);
5024
5031
  } finally {
5025
5032
  s.isReadonly = !1;
5026
5033
  }
@@ -5028,7 +5035,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5028
5035
  debouncedQueryChange: w,
5029
5036
  loading: p,
5030
5037
  allRecords: C,
5031
- error: q,
5038
+ error: F,
5032
5039
  validationError: j,
5033
5040
  loadItems: P,
5034
5041
  results: K
@@ -5037,10 +5044,10 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5037
5044
  searchKeys: ["id", "name"]
5038
5045
  }), O = (b) => {
5039
5046
  (!b || b !== s.fields.key_set && b !== d.key_set) && w(b);
5040
- }, z = S(() => q.value ? r("keys.errors.key_sets.fetch") : ""), W = S(() => j.value ? r("keys.errors.key_sets.invalid") : ""), ue = M(0), de = S(() => C.value === void 0), ye = S(() => {
5047
+ }, z = S(() => F.value ? r("keys.errors.key_sets.fetch") : ""), W = S(() => j.value ? r("keys.errors.key_sets.invalid") : ""), ue = M(0), de = S(() => C.value === void 0), ye = S(() => {
5041
5048
  if (de.value)
5042
5049
  return i.config.app === "konnect" ? r("keys.form.fields.key_set.footer") : void 0;
5043
- }), Ee = M(/* @__PURE__ */ new Set()), qe = S(() => Array.from(Ee.value).map(($) => ({
5050
+ }), Ee = M(/* @__PURE__ */ new Set()), Fe = S(() => Array.from(Ee.value).map(($) => ({
5044
5051
  name: $.name || "",
5045
5052
  // can't use name for label or it tries to search => 404
5046
5053
  label: "",
@@ -5055,12 +5062,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5055
5062
  };
5056
5063
  return he(K, (b) => {
5057
5064
  Qe(b);
5058
- }, { immediate: !0, deep: !0 }), he(qe, () => {
5065
+ }, { immediate: !0, deep: !0 }), he(Fe, () => {
5059
5066
  ue.value++;
5060
5067
  }, { immediate: !0, deep: !0 }), lt(async () => {
5061
5068
  await P();
5062
5069
  }), (b, $) => {
5063
- const H = R("KInput"), te = R("KSelect"), ge = R("KTextArea");
5070
+ const H = D("KInput"), te = D("KSelect"), ge = D("KTextArea");
5064
5071
  return f(), A("div", $s, [
5065
5072
  x(m(El), {
5066
5073
  "can-submit": N.value,
@@ -5068,12 +5075,12 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5068
5075
  "edit-id": e.keyId,
5069
5076
  "error-message": s.errorMessage || z.value,
5070
5077
  "fetch-url": c.value,
5071
- "form-fields": V.value,
5078
+ "form-fields": R.value,
5072
5079
  "is-readonly": s.isReadonly,
5073
5080
  onCancel: B,
5074
- "onFetch:error": $[8] || ($[8] = (D) => b.$emit("error", D)),
5081
+ "onFetch:error": $[8] || ($[8] = (V) => b.$emit("error", V)),
5075
5082
  "onFetch:success": _,
5076
- onLoading: $[9] || ($[9] = (D) => b.$emit("loading", D)),
5083
+ onLoading: $[9] || ($[9] = (V) => b.$emit("loading", V)),
5077
5084
  onSubmit: h
5078
5085
  }, {
5079
5086
  default: k(() => [
@@ -5084,7 +5091,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5084
5091
  default: k(() => [
5085
5092
  x(H, {
5086
5093
  modelValue: s.fields.key_id,
5087
- "onUpdate:modelValue": $[0] || ($[0] = (D) => s.fields.key_id = D),
5094
+ "onUpdate:modelValue": $[0] || ($[0] = (V) => s.fields.key_id = V),
5088
5095
  modelModifiers: { trim: !0 },
5089
5096
  autocomplete: "off",
5090
5097
  "data-testid": "key-form-id",
@@ -5098,7 +5105,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5098
5105
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
5099
5106
  x(H, {
5100
5107
  modelValue: s.fields.name,
5101
- "onUpdate:modelValue": $[1] || ($[1] = (D) => s.fields.name = D),
5108
+ "onUpdate:modelValue": $[1] || ($[1] = (V) => s.fields.name = V),
5102
5109
  modelModifiers: { trim: !0 },
5103
5110
  autocomplete: "off",
5104
5111
  "data-testid": "key-form-name",
@@ -5109,13 +5116,13 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5109
5116
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
5110
5117
  x(te, {
5111
5118
  modelValue: s.fields.key_set,
5112
- "onUpdate:modelValue": $[2] || ($[2] = (D) => s.fields.key_set = D),
5119
+ "onUpdate:modelValue": $[2] || ($[2] = (V) => s.fields.key_set = V),
5113
5120
  clearable: I.value,
5114
5121
  "data-testid": "key-form-key-set",
5115
5122
  "dropdown-footer-text": ye.value,
5116
5123
  "enable-filtering": "",
5117
5124
  "filter-function": () => !0,
5118
- items: qe.value,
5125
+ items: Fe.value,
5119
5126
  label: m(r)("keys.form.fields.key_set.label"),
5120
5127
  loading: m(p),
5121
5128
  placeholder: m(r)("keys.form.fields.key_set.placeholder"),
@@ -5129,13 +5136,13 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5129
5136
  empty: k(() => [
5130
5137
  L("div", Ns, E(m(r)("keys.search.no_results")), 1)
5131
5138
  ]),
5132
- "selected-item-template": k(({ item: D }) => [
5133
- L("div", null, E(D.name), 1)
5139
+ "selected-item-template": k(({ item: V }) => [
5140
+ L("div", null, E(V.name), 1)
5134
5141
  ]),
5135
- "item-template": k(({ item: D }) => [
5142
+ "item-template": k(({ item: V }) => [
5136
5143
  L("div", Ts, [
5137
- L("div", Os, E(D.name), 1),
5138
- L("div", Ks, E(D.value), 1)
5144
+ L("div", Os, E(V.name), 1),
5145
+ L("div", Ks, E(V.value), 1)
5139
5146
  ])
5140
5147
  ]),
5141
5148
  _: 1
@@ -5143,7 +5150,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5143
5150
  W.value ? (f(), A("p", Ms, E(W.value), 1)) : J("", !0),
5144
5151
  x(H, {
5145
5152
  modelValue: s.fields.tags,
5146
- "onUpdate:modelValue": $[3] || ($[3] = (D) => s.fields.tags = D),
5153
+ "onUpdate:modelValue": $[3] || ($[3] = (V) => s.fields.tags = V),
5147
5154
  modelModifiers: { trim: !0 },
5148
5155
  autocomplete: "off",
5149
5156
  "data-testid": "key-form-tags",
@@ -5166,7 +5173,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5166
5173
  L("div", Es, [
5167
5174
  x(te, {
5168
5175
  modelValue: s.fields.key_format,
5169
- "onUpdate:modelValue": $[4] || ($[4] = (D) => s.fields.key_format = D),
5176
+ "onUpdate:modelValue": $[4] || ($[4] = (V) => s.fields.key_format = V),
5170
5177
  "data-testid": "key-form-key-format",
5171
5178
  items: v,
5172
5179
  label: m(r)("keys.form.fields.key_format.label"),
@@ -5178,7 +5185,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5178
5185
  s.fields.key_format === "jwk" ? (f(), U(ge, {
5179
5186
  key: 0,
5180
5187
  modelValue: s.fields.jwk,
5181
- "onUpdate:modelValue": $[5] || ($[5] = (D) => s.fields.jwk = D),
5188
+ "onUpdate:modelValue": $[5] || ($[5] = (V) => s.fields.jwk = V),
5182
5189
  modelModifiers: { trim: !0 },
5183
5190
  class: "key-form-textarea",
5184
5191
  "data-testid": "key-form-jwk",
@@ -5191,7 +5198,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5191
5198
  s.fields.key_format === "pem" ? (f(), U(ge, {
5192
5199
  key: 1,
5193
5200
  modelValue: s.fields.private_key,
5194
- "onUpdate:modelValue": $[6] || ($[6] = (D) => s.fields.private_key = D),
5201
+ "onUpdate:modelValue": $[6] || ($[6] = (V) => s.fields.private_key = V),
5195
5202
  modelModifiers: { trim: !0 },
5196
5203
  class: "key-form-textarea",
5197
5204
  "data-testid": "key-form-private-key",
@@ -5203,7 +5210,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5203
5210
  s.fields.key_format === "pem" ? (f(), U(ge, {
5204
5211
  key: 2,
5205
5212
  modelValue: s.fields.public_key,
5206
- "onUpdate:modelValue": $[7] || ($[7] = (D) => s.fields.public_key = D),
5213
+ "onUpdate:modelValue": $[7] || ($[7] = (V) => s.fields.public_key = V),
5207
5214
  modelModifiers: { trim: !0 },
5208
5215
  class: "key-form-textarea",
5209
5216
  "data-testid": "key-form-public-key",
@@ -5221,7 +5228,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5221
5228
  ]);
5222
5229
  };
5223
5230
  }
5224
- }), Gs = /* @__PURE__ */ ai(qs, [["__scopeId", "data-v-e3c278d7"]]), Fs = { class: "kong-ui-entities-keys-entity-config-card" }, Bs = { key: 2 }, Qs = /* @__PURE__ */ Q({
5231
+ }), Gs = /* @__PURE__ */ ai(Fs, [["__scopeId", "data-v-e3c278d7"]]), qs = { class: "kong-ui-entities-keys-entity-config-card" }, Bs = { key: 2 }, Qs = /* @__PURE__ */ Q({
5225
5232
  __name: "KeyConfigCard",
5226
5233
  props: {
5227
5234
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5260,15 +5267,15 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5260
5267
  var g;
5261
5268
  return (g = Ae.form[i.config.app]) == null ? void 0 : g.getKeySet;
5262
5269
  }), u = M(), s = M({}), d = M(i.keySetId || ""), v = M(""), y = M(!1), I = async (g) => {
5263
- var V;
5264
- u.value = g, d.value = (V = g == null ? void 0 : g.set) == null ? void 0 : V.id, n("fetch:success", g), N(g);
5270
+ var R;
5271
+ u.value = g, d.value = (R = g == null ? void 0 : g.set) == null ? void 0 : R.id, n("fetch:success", g), N(g);
5265
5272
  };
5266
5273
  he(d, async () => {
5267
- var V, h;
5274
+ var R, h;
5268
5275
  if (!d.value)
5269
5276
  return;
5270
5277
  let g = `${i.config.apiBaseUrl}${c.value}`;
5271
- i.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((V = i.config) == null ? void 0 : V.controlPlaneId) || "").replace(/{keySetId}/gi, d.value || "") : i.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (h = i.config) != null && h.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, d.value || ""));
5278
+ i.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((R = i.config) == null ? void 0 : R.controlPlaneId) || "").replace(/{keySetId}/gi, d.value || "") : i.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (h = i.config) != null && h.workspace ? `/${i.config.workspace}` : "").replace(/{keySetId}/gi, d.value || ""));
5272
5279
  try {
5273
5280
  y.value = !0;
5274
5281
  const { data: w } = await a.get(g);
@@ -5280,7 +5287,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5280
5287
  }
5281
5288
  }, { immediate: !0 });
5282
5289
  const N = (g) => {
5283
- var V, h;
5290
+ var R, h;
5284
5291
  try {
5285
5292
  if (g.jwk) {
5286
5293
  const w = JSON.parse(g.jwk);
@@ -5292,7 +5299,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5292
5299
  });
5293
5300
  } else
5294
5301
  s.value = {
5295
- "pem.public_key": (V = g == null ? void 0 : g.pem) == null ? void 0 : V.public_key,
5302
+ "pem.public_key": (R = g == null ? void 0 : g.pem) == null ? void 0 : R.public_key,
5296
5303
  "pem.private_key": (h = g == null ? void 0 : g.pem) == null ? void 0 : h.private_key
5297
5304
  };
5298
5305
  } catch (w) {
@@ -5331,19 +5338,19 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5331
5338
  type: Y.Json
5332
5339
  }
5333
5340
  });
5334
- return (g, V) => {
5341
+ return (g, R) => {
5335
5342
  var w, p;
5336
- const h = R("KSkeleton");
5337
- return f(), A("div", Fs, [
5343
+ const h = D("KSkeleton");
5344
+ return f(), A("div", qs, [
5338
5345
  x(m(Tl), {
5339
5346
  config: e.config,
5340
5347
  "config-card-doc": e.configCardDoc,
5341
5348
  "config-schema": _.value,
5342
5349
  "fetch-url": l.value,
5343
5350
  "hide-title": e.hideTitle,
5344
- "onFetch:error": V[0] || (V[0] = (C) => g.$emit("fetch:error", C)),
5351
+ "onFetch:error": R[0] || (R[0] = (C) => g.$emit("fetch:error", C)),
5345
5352
  "onFetch:success": I,
5346
- onLoading: V[1] || (V[1] = (C) => g.$emit("loading", C))
5353
+ onLoading: R[1] || (R[1] = (C) => g.$emit("loading", C))
5347
5354
  }, Me({
5348
5355
  set: k(({ row: C }) => [
5349
5356
  y.value ? (f(), U(h, {
@@ -5357,7 +5364,7 @@ const ms = ["aria-labelledby"], gs = { class: "form-section-wrapper" }, hs = {
5357
5364
  value: v.value,
5358
5365
  type: m(Y).LinkInternal
5359
5366
  },
5360
- onClick: (q) => g.$emit("navigation-click", C.value.id, "key-sets")
5367
+ onClick: (F) => g.$emit("navigation-click", C.value.id, "key-sets")
5361
5368
  }, null, 8, ["item", "onClick"])) : (f(), A("div", Bs, E("–")))
5362
5369
  ]),
5363
5370
  _: 2