@kong-ui-public/entities-shared 3.7.2 → 3.7.3-pr.1565.87a417a3.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 { inject as Ln, ref as D, computed as k, unref as $, toValue as Bn, watch as Se, defineComponent as P, openBlock as m, createBlock as B, resolveDynamicComponent as se, normalizeClass as pe, withCtx as C, createElementBlock as A, createElementVNode as L, toDisplayString as F, createCommentVNode as q, Fragment as ue, renderList as le, resolveComponent as j, createVNode as M, createTextVNode as V, useCssVars as Lt, useSlots as tt, renderSlot as z, createSlots as we, normalizeProps as Rn, guardReactiveProps as Mn, mergeProps as Kn, normalizeStyle as $e, pushScopeId as Ie, popScopeId as Te, onBeforeMount as Bt, withModifiers as Ge, onMounted as Dn, onUnmounted as jn, withDirectives as ge, vShow as ye, withKeys as qn, Teleport as Un } from "vue";
1
+ import { inject as Ln, ref as D, computed as _, unref as $, toValue as Bn, watch as Se, defineComponent as P, openBlock as m, createBlock as B, resolveDynamicComponent as se, normalizeClass as pe, withCtx as C, createElementBlock as A, createElementVNode as L, toDisplayString as F, createCommentVNode as q, Fragment as ue, renderList as le, resolveComponent as j, createVNode as M, createTextVNode as V, useCssVars as Lt, useSlots as tt, renderSlot as z, createSlots as we, normalizeProps as Rn, guardReactiveProps as Mn, mergeProps as Kn, normalizeStyle as $e, pushScopeId as Ie, popScopeId as Te, onBeforeMount as Bt, withModifiers as Ge, onMounted as Dn, onUnmounted as jn, withDirectives as ge, vShow as ye, withKeys as qn, Teleport as Un } from "vue";
2
2
  import ut from "axios";
3
3
  import { createI18n as Pn, i18nTComponent as Hn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Vn } from "@kong/kongponents";
@@ -252,10 +252,10 @@ function ur(e, t, n, r = {
252
252
  n || (n = "1000");
253
253
  const { axiosInstance: i } = nt(e.axiosRequestConfig), { i18n: { t: o } } = Pe(), { debounce: a } = Jn(), l = a(async (N) => {
254
254
  await x(N);
255
- }, 200), c = D(!1), u = D(""), d = D(""), s = D([]), h = D([]), f = D(void 0), y = k(() => {
255
+ }, 200), c = D(!1), u = D(""), d = D(""), s = D([]), h = D([]), f = D(void 0), y = _(() => {
256
256
  const N = `${e.apiBaseUrl}${$(t)}`;
257
257
  return e.app === "konnect" ? N.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? N.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : N;
258
- }), { isValidUuid: g } = Mt(), _ = async () => {
258
+ }), { isValidUuid: g } = Mt(), k = async () => {
259
259
  try {
260
260
  c.value = !0;
261
261
  const { data: N } = await i.get(`${y.value}?size=${n}`);
@@ -319,12 +319,12 @@ function ur(e, t, n, r = {
319
319
  validationError: d,
320
320
  results: s,
321
321
  allRecords: f,
322
- loadItems: _,
322
+ loadItems: k,
323
323
  debouncedQueryChange: l
324
324
  };
325
325
  }
326
326
  function dr(e, t) {
327
- const n = $(t), r = k(
327
+ const n = $(t), r = _(
328
328
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
329
329
  );
330
330
  return r.value.search = "", (i) => `${r.value.href}/${i}`;
@@ -371,9 +371,9 @@ function pr(e) {
371
371
  }
372
372
  }
373
373
  function Kt(e, t) {
374
- const n = D($(e)), r = D($(t)), i = k(
374
+ const n = D($(e)), r = D($(t)), i = _(
375
375
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
376
- ), o = k(
376
+ ), o = _(
377
377
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
378
378
  );
379
379
  return (a) => {
@@ -405,7 +405,7 @@ function hr(e, t, n) {
405
405
  const f = h.data, y = u && u.replace(/[^\w-_]/gi, "");
406
406
  let g;
407
407
  f[y] ? g = Array.isArray(f[y]) ? f[y] : [f[y]] : Array.isArray(f) ? g = f : g = Object.keys(f).length ? [f] : [];
408
- const _ = {
408
+ const k = {
409
409
  data: g,
410
410
  total: g.length,
411
411
  ...f.offset ? {
@@ -416,8 +416,8 @@ function hr(e, t, n) {
416
416
  };
417
417
  return a.value = {
418
418
  status: xe.Idle,
419
- response: _
420
- }, _;
419
+ response: k
420
+ }, k;
421
421
  } catch (s) {
422
422
  const h = {
423
423
  data: [],
@@ -497,15 +497,15 @@ function Cr(e) {
497
497
  const [a, l] = o;
498
498
  return !(a && mt(i, a, "<") || l && mt(i, l, ">"));
499
499
  }
500
- function _r(e) {
500
+ function kr(e) {
501
501
  const t = D(0), n = D(0), r = D(!1);
502
502
  return Se(e, (o) => {
503
503
  o && !r.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, r.value = !0);
504
504
  }), {
505
- isTruncated: k(() => t.value < n.value)
505
+ isTruncated: _(() => t.value < n.value)
506
506
  };
507
507
  }
508
- function kr() {
508
+ function _r() {
509
509
  const { i18n: { t: e } } = Pe();
510
510
  return {
511
511
  utf8Name: (n) => /^[\p{N}\p{L}.\-_~]*$/u.test(n) ? "" : e("validationErrors.utf8Name")
@@ -523,8 +523,8 @@ const Y = {
523
523
  useStringHelpers: mr,
524
524
  useI18n: Pe,
525
525
  useGatewayFeatureSupported: Cr,
526
- useTruncationDetector: _r,
527
- useValidators: kr
526
+ useTruncationDetector: kr,
527
+ useValidators: _r
528
528
  }, wr = {
529
529
  key: 0,
530
530
  class: "config-card-fieldset-title"
@@ -545,10 +545,10 @@ const Y = {
545
545
  }
546
546
  },
547
547
  setup(e) {
548
- const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = k(() => t.item.key ?? "json-array-item"), o = k(() => t.item.value ?? t.item), a = k(() => {
548
+ const t = e, { i18n: { t: n } } = Y.useI18n(), { convertKeyToTitle: r } = Y.useStringHelpers(), i = _(() => t.item.key ?? "json-array-item"), o = _(() => t.item.value ?? t.item), a = _(() => {
549
549
  const c = JSON.parse(JSON.stringify(o.value));
550
550
  return t.isArrayItem && delete c.name, c;
551
- }), l = k(() => {
551
+ }), l = _(() => {
552
552
  var c;
553
553
  return t.isArrayItem ? (c = o.value) != null && c.name ? r(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
554
554
  });
@@ -654,7 +654,7 @@ const Y = {
654
654
  aa41a894: u.value && l.value ? "100%" : n.slim ? "50%" : "25%",
655
655
  aa3d1cde: u.value && l.value ? "100%" : n.slim ? "50%" : "75%"
656
656
  }));
657
- const n = e, r = t, i = tt(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = k(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = k(() => !!(n.item.tooltip || i["label-tooltip"])), u = k(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = k(() => n.item.type === H.JsonArray), s = k(() => {
657
+ const n = e, r = t, i = tt(), { i18n: { t: o, formatUnixTimeStamp: a } } = Y.useI18n(), l = _(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), c = _(() => !!(n.item.tooltip || i["label-tooltip"])), u = _(() => n.item.type === H.Json || n.item.type === H.JsonArray), d = _(() => n.item.type === H.JsonArray), s = _(() => {
658
658
  switch (n.item.type) {
659
659
  case H.ID:
660
660
  return {
@@ -777,14 +777,14 @@ const Y = {
777
777
  }
778
778
  }), h = D(), { isTruncated: f } = Y.useTruncationDetector(h);
779
779
  return (y, g) => {
780
- const _ = j("KLabel"), O = j("KBadge"), x = j("KCopy"), N = j("KTooltip");
780
+ const k = j("KLabel"), O = j("KBadge"), x = j("KCopy"), N = j("KTooltip");
781
781
  return m(), A("div", Rr, [
782
782
  L("div", {
783
783
  class: "config-card-details-label",
784
784
  "data-testid": `${e.item.key}-label`
785
785
  }, [
786
786
  z(y.$slots, "label", { item: e.item }, () => [
787
- M(_, { "tooltip-attributes": { maxWidth: "500px" } }, we({
787
+ M(k, { "tooltip-attributes": { maxWidth: "500px" } }, we({
788
788
  default: C(() => [
789
789
  V(F(e.item.label) + " ", 1)
790
790
  ]),
@@ -929,7 +929,7 @@ const Y = {
929
929
  Lt((i) => ({
930
930
  "454fa8c4": `${r.value}ch`
931
931
  }));
932
- const t = e, n = k(() => t.entityRecord), r = k(() => {
932
+ const t = e, n = _(() => t.entityRecord), r = _(() => {
933
933
  var a;
934
934
  if (!t.fetcherUrl)
935
935
  return 0;
@@ -1241,10 +1241,10 @@ function xi(e) {
1241
1241
  function Ci(e) {
1242
1242
  return 48 <= e && e <= 55;
1243
1243
  }
1244
- function _i(e) {
1244
+ function ki(e) {
1245
1245
  return 48 <= e && e <= 57;
1246
1246
  }
1247
- function ki(e) {
1247
+ function _i(e) {
1248
1248
  if (e === null) return !1;
1249
1249
  var t = e.length, n = 0, r = !1, i;
1250
1250
  if (!t) return !1;
@@ -1278,7 +1278,7 @@ function ki(e) {
1278
1278
  if (i === "_") return !1;
1279
1279
  for (; n < t; n++)
1280
1280
  if (i = e[n], i !== "_") {
1281
- if (!_i(e.charCodeAt(n)))
1281
+ if (!ki(e.charCodeAt(n)))
1282
1282
  return !1;
1283
1283
  r = !0;
1284
1284
  }
@@ -1299,7 +1299,7 @@ function Ai(e) {
1299
1299
  }
1300
1300
  var Xt = new X("tag:yaml.org,2002:int", {
1301
1301
  kind: "scalar",
1302
- resolve: ki,
1302
+ resolve: _i,
1303
1303
  construct: wi,
1304
1304
  predicate: Ai,
1305
1305
  represent: {
@@ -1541,7 +1541,7 @@ function ve(e) {
1541
1541
  function re(e) {
1542
1542
  return e === 9 || e === 32 || e === 10 || e === 13;
1543
1543
  }
1544
- function _e(e) {
1544
+ function ke(e) {
1545
1545
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1546
1546
  }
1547
1547
  function eo(e) {
@@ -1613,12 +1613,12 @@ function fe(e, t, n, r) {
1613
1613
  e.result += l;
1614
1614
  }
1615
1615
  }
1616
- function _t(e, t, n, r) {
1616
+ function kt(e, t, n, r) {
1617
1617
  var i, o, a, l;
1618
1618
  for (Z.isObject(n) || w(e, "cannot merge mappings; the provided source object is unacceptable"), i = Object.keys(n), a = 0, l = i.length; a < l; a += 1)
1619
1619
  o = i[a], he.call(t, o) || (t[o] = n[o], r[o] = !0);
1620
1620
  }
1621
- function ke(e, t, n, r, i, o, a, l, c) {
1621
+ function _e(e, t, n, r, i, o, a, l, c) {
1622
1622
  var u, d;
1623
1623
  if (Array.isArray(i))
1624
1624
  for (i = Array.prototype.slice.call(i), u = 0, d = i.length; u < d; u += 1)
@@ -1626,9 +1626,9 @@ function ke(e, t, n, r, i, o, a, l, c) {
1626
1626
  if (typeof i == "object" && bt(i) === "[object Object]" && (i = "[object Object]"), i = String(i), t === null && (t = {}), r === "tag:yaml.org,2002:merge")
1627
1627
  if (Array.isArray(o))
1628
1628
  for (u = 0, d = o.length; u < d; u += 1)
1629
- _t(e, t, o[u], n);
1629
+ kt(e, t, o[u], n);
1630
1630
  else
1631
- _t(e, t, o, n);
1631
+ kt(e, t, o, n);
1632
1632
  else
1633
1633
  !e.json && !he.call(n, i) && he.call(t, i) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = c || e.position, w(e, "duplicated mapping key")), i === "__proto__" ? Object.defineProperty(t, i, {
1634
1634
  configurable: !0,
@@ -1668,17 +1668,17 @@ function at(e, t) {
1668
1668
  }
1669
1669
  function oo(e, t, n) {
1670
1670
  var r, i, o, a, l, c, u, d, s = e.kind, h = e.result, f;
1671
- if (f = e.input.charCodeAt(e.position), re(f) || _e(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), re(i) || n && _e(i)))
1671
+ if (f = e.input.charCodeAt(e.position), re(f) || ke(f) || f === 35 || f === 38 || f === 42 || f === 33 || f === 124 || f === 62 || f === 39 || f === 34 || f === 37 || f === 64 || f === 96 || (f === 63 || f === 45) && (i = e.input.charCodeAt(e.position + 1), re(i) || n && ke(i)))
1672
1672
  return !1;
1673
1673
  for (e.kind = "scalar", e.result = "", o = a = e.position, l = !1; f !== 0; ) {
1674
1674
  if (f === 58) {
1675
- if (i = e.input.charCodeAt(e.position + 1), re(i) || n && _e(i))
1675
+ if (i = e.input.charCodeAt(e.position + 1), re(i) || n && ke(i))
1676
1676
  break;
1677
1677
  } else if (f === 35) {
1678
1678
  if (r = e.input.charCodeAt(e.position - 1), re(r))
1679
1679
  break;
1680
1680
  } else {
1681
- if (e.position === e.lineStart && He(e) || n && _e(f))
1681
+ if (e.position === e.lineStart && He(e) || n && ke(f))
1682
1682
  break;
1683
1683
  if (ce(f))
1684
1684
  if (c = e.line, u = e.lineStart, d = e.lineIndent, G(e, !1, -1), e.lineIndent >= t) {
@@ -1730,7 +1730,7 @@ function lo(e, t) {
1730
1730
  w(e, "unexpected end of the stream within a double quoted scalar");
1731
1731
  }
1732
1732
  function co(e, t) {
1733
- var n = !0, r, i, o, a = e.tag, l, c = e.anchor, u, d, s, h, f, y = /* @__PURE__ */ Object.create(null), g, _, O, x;
1733
+ var n = !0, r, i, o, a = e.tag, l, c = e.anchor, u, d, s, h, f, y = /* @__PURE__ */ Object.create(null), g, k, O, x;
1734
1734
  if (x = e.input.charCodeAt(e.position), x === 91)
1735
1735
  d = 93, f = !1, l = [];
1736
1736
  else if (x === 123)
@@ -1740,7 +1740,7 @@ function co(e, t) {
1740
1740
  for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
1741
1741
  if (G(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
1742
1742
  return e.position++, e.tag = a, e.anchor = c, e.kind = f ? "mapping" : "sequence", e.result = l, !0;
1743
- n ? x === 44 && w(e, "expected the node content, but found ','") : w(e, "missed comma between flow collection entries"), _ = g = O = null, s = h = !1, x === 63 && (u = e.input.charCodeAt(e.position + 1), re(u) && (s = h = !0, e.position++, G(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ae(e, t, Me, !1, !0), _ = e.tag, g = e.result, G(e, !0, t), x = e.input.charCodeAt(e.position), (h || e.line === r) && x === 58 && (s = !0, x = e.input.charCodeAt(++e.position), G(e, !0, t), Ae(e, t, Me, !1, !0), O = e.result), f ? ke(e, l, y, _, g, O, r, i, o) : s ? l.push(ke(e, null, y, _, g, O, r, i, o)) : l.push(g), G(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1743
+ n ? x === 44 && w(e, "expected the node content, but found ','") : w(e, "missed comma between flow collection entries"), k = g = O = null, s = h = !1, x === 63 && (u = e.input.charCodeAt(e.position + 1), re(u) && (s = h = !0, e.position++, G(e, !0, t))), r = e.line, i = e.lineStart, o = e.position, Ae(e, t, Me, !1, !0), k = e.tag, g = e.result, G(e, !0, t), x = e.input.charCodeAt(e.position), (h || e.line === r) && x === 58 && (s = !0, x = e.input.charCodeAt(++e.position), G(e, !0, t), Ae(e, t, Me, !1, !0), O = e.result), f ? _e(e, l, y, k, g, O, r, i, o) : s ? l.push(_e(e, null, y, k, g, O, r, i, o)) : l.push(g), G(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1744
1744
  }
1745
1745
  w(e, "unexpected end of the stream within a flow collection");
1746
1746
  }
@@ -1791,7 +1791,7 @@ function so(e, t) {
1791
1791
  }
1792
1792
  return !0;
1793
1793
  }
1794
- function kt(e, t) {
1794
+ function _t(e, t) {
1795
1795
  var n, r = e.tag, i = e.anchor, o = [], a, l = !1, c;
1796
1796
  if (e.firstTabInLine !== -1) return !1;
1797
1797
  for (e.anchor !== null && (e.anchorMap[e.anchor] = o), c = e.input.charCodeAt(e.position); c !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), !(c !== 45 || (a = e.input.charCodeAt(e.position + 1), !re(a)))); ) {
@@ -1807,11 +1807,11 @@ function kt(e, t) {
1807
1807
  return l ? (e.tag = r, e.anchor = i, e.kind = "sequence", e.result = o, !0) : !1;
1808
1808
  }
1809
1809
  function uo(e, t, n) {
1810
- var r, i, o, a, l, c, u = e.tag, d = e.anchor, s = {}, h = /* @__PURE__ */ Object.create(null), f = null, y = null, g = null, _ = !1, O = !1, x;
1810
+ var r, i, o, a, l, c, u = e.tag, d = e.anchor, s = {}, h = /* @__PURE__ */ Object.create(null), f = null, y = null, g = null, k = !1, O = !1, x;
1811
1811
  if (e.firstTabInLine !== -1) return !1;
1812
1812
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), x = e.input.charCodeAt(e.position); x !== 0; ) {
1813
- if (!_ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && re(r))
1814
- x === 63 ? (_ && (ke(e, s, h, f, y, null, a, l, c), f = y = g = null), O = !0, _ = !0, i = !0) : _ ? (_ = !1, i = !0) : w(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = r;
1813
+ if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, w(e, "tab characters must not be used in indentation")), r = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && re(r))
1814
+ x === 63 ? (k && (_e(e, s, h, f, y, null, a, l, c), f = y = g = null), O = !0, k = !0, i = !0) : k ? (k = !1, i = !0) : w(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = r;
1815
1815
  else {
1816
1816
  if (a = e.line, l = e.lineStart, c = e.position, !Ae(e, n, fn, !1, !0))
1817
1817
  break;
@@ -1819,7 +1819,7 @@ function uo(e, t, n) {
1819
1819
  for (x = e.input.charCodeAt(e.position); ve(x); )
1820
1820
  x = e.input.charCodeAt(++e.position);
1821
1821
  if (x === 58)
1822
- x = e.input.charCodeAt(++e.position), re(x) || w(e, "a whitespace character is expected after the key-value separator within a block mapping"), _ && (ke(e, s, h, f, y, null, a, l, c), f = y = g = null), O = !0, _ = !1, i = !1, f = e.tag, y = e.result;
1822
+ x = e.input.charCodeAt(++e.position), re(x) || w(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (_e(e, s, h, f, y, null, a, l, c), f = y = g = null), O = !0, k = !1, i = !1, f = e.tag, y = e.result;
1823
1823
  else if (O)
1824
1824
  w(e, "can not read an implicit mapping pair; a colon is missed");
1825
1825
  else
@@ -1829,12 +1829,12 @@ function uo(e, t, n) {
1829
1829
  else
1830
1830
  return e.tag = u, e.anchor = d, !0;
1831
1831
  }
1832
- if ((e.line === o || e.lineIndent > t) && (_ && (a = e.line, l = e.lineStart, c = e.position), Ae(e, t, Ke, !0, i) && (_ ? y = e.result : g = e.result), _ || (ke(e, s, h, f, y, g, a, l, c), f = y = g = null), G(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1832
+ if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, c = e.position), Ae(e, t, Ke, !0, i) && (k ? y = e.result : g = e.result), k || (_e(e, s, h, f, y, g, a, l, c), f = y = g = null), G(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1833
1833
  w(e, "bad indentation of a mapping entry");
1834
1834
  else if (e.lineIndent < t)
1835
1835
  break;
1836
1836
  }
1837
- return _ && ke(e, s, h, f, y, null, a, l, c), O && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = s), O;
1837
+ return k && _e(e, s, h, f, y, null, a, l, c), O && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = s), O;
1838
1838
  }
1839
1839
  function fo(e) {
1840
1840
  var t, n = !1, r = !1, i, o, a;
@@ -1860,23 +1860,23 @@ function fo(e) {
1860
1860
  function po(e) {
1861
1861
  var t, n;
1862
1862
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
1863
- for (e.anchor !== null && w(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) && !_e(n); )
1863
+ for (e.anchor !== null && w(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !re(n) && !ke(n); )
1864
1864
  n = e.input.charCodeAt(++e.position);
1865
1865
  return e.position === t && w(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
1866
1866
  }
1867
1867
  function ho(e) {
1868
1868
  var t, n, r;
1869
1869
  if (r = e.input.charCodeAt(e.position), r !== 42) return !1;
1870
- for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !re(r) && !_e(r); )
1870
+ for (r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !re(r) && !ke(r); )
1871
1871
  r = e.input.charCodeAt(++e.position);
1872
1872
  return e.position === t && w(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), he.call(e.anchorMap, n) || w(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], G(e, !0, -1), !0;
1873
1873
  }
1874
1874
  function Ae(e, t, n, r, i) {
1875
- var o, a, l, c = 1, u = !1, d = !1, s, h, f, y, g, _;
1875
+ var o, a, l, c = 1, u = !1, d = !1, s, h, f, y, g, k;
1876
1876
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ke === n || pn === n, r && G(e, !0, -1) && (u = !0, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)), c === 1)
1877
1877
  for (; fo(e) || po(e); )
1878
1878
  G(e, !0, -1) ? (u = !0, l = o, e.lineIndent > t ? c = 1 : e.lineIndent === t ? c = 0 : e.lineIndent < t && (c = -1)) : l = !1;
1879
- if (l && (l = u || i), (c === 1 || Ke === n) && (Me === n || fn === n ? g = t : g = t + 1, _ = e.position - e.lineStart, c === 1 ? l && (kt(e, _) || uo(e, _, g)) || co(e, g) ? d = !0 : (a && so(e, g) || ao(e, g) || lo(e, g) ? d = !0 : ho(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && w(e, "alias node should not have any properties")) : oo(e, g, Me === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (d = l && kt(e, _))), e.tag === null)
1879
+ if (l && (l = u || i), (c === 1 || Ke === n) && (Me === n || fn === n ? g = t : g = t + 1, k = e.position - e.lineStart, c === 1 ? l && (_t(e, k) || uo(e, k, g)) || co(e, g) ? d = !0 : (a && so(e, g) || ao(e, g) || lo(e, g) ? d = !0 : ho(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && w(e, "alias node should not have any properties")) : oo(e, g, Me === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : c === 0 && (d = l && _t(e, k))), e.tag === null)
1880
1880
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1881
1881
  else if (e.tag === "?") {
1882
1882
  for (e.result !== null && e.kind !== "scalar" && w(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), s = 0, h = e.implicitTypes.length; s < h; s += 1)
@@ -1956,7 +1956,7 @@ function yo(e, t) {
1956
1956
  var vo = go, bo = yo, xn = {
1957
1957
  loadAll: vo,
1958
1958
  load: bo
1959
- }, Cn = Object.prototype.toString, _n = Object.prototype.hasOwnProperty, lt = 65279, xo = 9, Ne = 10, Co = 13, _o = 32, ko = 33, wo = 34, Ze = 35, Ao = 37, So = 38, $o = 39, Io = 42, kn = 44, To = 45, je = 58, Eo = 61, Fo = 62, Oo = 63, No = 64, wn = 91, An = 93, Lo = 96, Sn = 123, Bo = 124, $n = 125, ee = {};
1959
+ }, Cn = Object.prototype.toString, kn = Object.prototype.hasOwnProperty, lt = 65279, xo = 9, Ne = 10, Co = 13, ko = 32, _o = 33, wo = 34, Ze = 35, Ao = 37, So = 38, $o = 39, Io = 42, _n = 44, To = 45, je = 58, Eo = 61, Fo = 62, Oo = 63, No = 64, wn = 91, An = 93, Lo = 96, Sn = 123, Bo = 124, $n = 125, ee = {};
1960
1960
  ee[0] = "\\0";
1961
1961
  ee[7] = "\\a";
1962
1962
  ee[8] = "\\b";
@@ -1994,7 +1994,7 @@ function Ko(e, t) {
1994
1994
  var n, r, i, o, a, l, c;
1995
1995
  if (t === null) return {};
1996
1996
  for (n = {}, r = Object.keys(t), i = 0, o = r.length; i < o; i += 1)
1997
- a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), c = e.compiledTypeMap.fallback[a], c && _n.call(c.styleAliases, l) && (l = c.styleAliases[l]), n[a] = l;
1997
+ a = r[i], l = String(t[a]), a.slice(0, 2) === "!!" && (a = "tag:yaml.org,2002:" + a.slice(2)), c = e.compiledTypeMap.fallback[a], c && kn.call(c.styleAliases, l) && (l = c.styleAliases[l]), n[a] = l;
1998
1998
  return n;
1999
1999
  }
2000
2000
  function Do(e) {
@@ -2032,7 +2032,7 @@ function Uo(e, t) {
2032
2032
  return !1;
2033
2033
  }
2034
2034
  function qe(e) {
2035
- return e === _o || e === xo;
2035
+ return e === ko || e === xo;
2036
2036
  }
2037
2037
  function Be(e) {
2038
2038
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== lt || 65536 <= e && e <= 1114111;
@@ -2047,11 +2047,11 @@ function St(e, t, n) {
2047
2047
  (n ? (
2048
2048
  // c = flow-in
2049
2049
  r
2050
- ) : r && e !== kn && e !== wn && e !== An && e !== Sn && e !== $n) && e !== Ze && !(t === je && !i) || At(t) && !qe(t) && e === Ze || t === je && i
2050
+ ) : r && e !== _n && e !== wn && e !== An && e !== Sn && e !== $n) && e !== Ze && !(t === je && !i) || At(t) && !qe(t) && e === Ze || t === je && i
2051
2051
  );
2052
2052
  }
2053
2053
  function Po(e) {
2054
- return Be(e) && e !== lt && !qe(e) && e !== To && e !== Oo && e !== je && e !== kn && e !== wn && e !== An && e !== Sn && e !== $n && e !== Ze && e !== So && e !== Io && e !== ko && e !== Bo && e !== Eo && e !== Fo && e !== $o && e !== wo && e !== Ao && e !== No && e !== Lo;
2054
+ return Be(e) && e !== lt && !qe(e) && e !== To && e !== Oo && e !== je && e !== _n && e !== wn && e !== An && e !== Sn && e !== $n && e !== Ze && e !== So && e !== Io && e !== _o && e !== Bo && e !== Eo && e !== Fo && e !== $o && e !== wo && e !== Ao && e !== No && e !== Lo;
2055
2055
  }
2056
2056
  function Ho(e) {
2057
2057
  return !qe(e) && e !== je;
@@ -2197,7 +2197,7 @@ function Ft(e, t, n) {
2197
2197
  if (n ? l.multi && l.representName ? e.tag = l.representName(t) : e.tag = l.tag : e.tag = "?", l.represent) {
2198
2198
  if (c = e.styleMap[l.tag] || l.defaultStyle, Cn.call(l.represent) === "[object Function]")
2199
2199
  r = l.represent(t, c);
2200
- else if (_n.call(l.represent, c))
2200
+ else if (kn.call(l.represent, c))
2201
2201
  r = l.represent[c](t, c);
2202
2202
  else
2203
2203
  throw new ne("!<" + l.tag + '> tag resolver accepts not "' + c + '" style');
@@ -2307,7 +2307,7 @@ const ya = { class: "yaml-config" }, On = /* @__PURE__ */ P({
2307
2307
  }
2308
2308
  },
2309
2309
  setup(e) {
2310
- const t = e, n = k(() => {
2310
+ const t = e, n = _(() => {
2311
2311
  const r = Object.fromEntries(Object.entries(t.entityRecord).filter(([, i]) => i !== null && i !== "" && (Array.isArray(i) ? i.length !== 0 : !0)));
2312
2312
  return Object.keys(r).length === 0 && r.constructor === Object ? "" : ga.dump(r).trim();
2313
2313
  });
@@ -2382,14 +2382,14 @@ ${d}${c} = [
2382
2382
  for (const [u, d] of Object.entries(l))
2383
2383
  Array.isArray(d) ? c += i(d, u) : typeof d == "object" ? c += r(d, u) : c += n(d, u);
2384
2384
  return c;
2385
- }, a = k(() => {
2386
- var s, h, f, y, g, _, O;
2385
+ }, a = _(() => {
2386
+ var s, h, f, y, g, k, O;
2387
2387
  const l = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x != null)), c = t.entityRecord.config ? Object.fromEntries(Object.entries((s = t.entityRecord) == null ? void 0 : s.config).filter(([, x]) => x != null)) : void 0;
2388
2388
  if (c && (l.config = c), Object.keys(l).length === 0)
2389
2389
  return "";
2390
2390
  delete l.id;
2391
2391
  let u = "", d = "";
2392
- if ((h = l.service) != null && h.id ? (d = "service", delete l.service) : (f = l.route) != null && f.id ? (d = "route", delete l.route) : (y = l.consumer) != null && y.id ? (d = "consumer", delete l.consumer) : (g = l.consumer_group) != null && g.id ? (d = "consumer_group", delete l.consumer_group) : (_ = l.certificate) != null && _.id ? (d = "certificate", delete l.certificate) : (O = l.key_set) != null && O.id && (d = "key_set", delete l.key_set), t.entityType === "plugin") {
2392
+ if ((h = l.service) != null && h.id ? (d = "service", delete l.service) : (f = l.route) != null && f.id ? (d = "route", delete l.route) : (y = l.consumer) != null && y.id ? (d = "consumer", delete l.consumer) : (g = l.consumer_group) != null && g.id ? (d = "consumer_group", delete l.consumer_group) : (k = l.certificate) != null && k.id ? (d = "certificate", delete l.certificate) : (O = l.key_set) != null && O.id && (d = "key_set", delete l.key_set), t.entityType === "plugin") {
2393
2393
  const x = (l.name + "").replace(/-/g, "_");
2394
2394
  delete l.name, u += `resource "konnect_gateway_plugin_${x}" "my_${x}" {`;
2395
2395
  } else
@@ -2422,7 +2422,7 @@ ${te}${d} = {
2422
2422
  }, xa = ["data-testid"], Ca = {
2423
2423
  key: 0,
2424
2424
  class: "config-card-prop-section-title"
2425
- }, _a = /* @__PURE__ */ P({
2425
+ }, ka = /* @__PURE__ */ P({
2426
2426
  __name: "ConfigCardDisplay",
2427
2427
  props: {
2428
2428
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2466,7 +2466,7 @@ ${te}${d} = {
2466
2466
  }
2467
2467
  },
2468
2468
  setup(e) {
2469
- const t = e, n = tt(), { i18n: { t: r } } = Y.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = k(() => {
2469
+ const t = e, n = tt(), { i18n: { t: r } } = Y.useI18n(), i = (a) => !!(a.tooltip || n[`${a.key}-label-tooltip`]), o = _(() => {
2470
2470
  if (!t.record)
2471
2471
  return t.record;
2472
2472
  const a = JSON.parse(JSON.stringify(t.record));
@@ -2523,7 +2523,7 @@ ${te}${d} = {
2523
2523
  }, null, 8, ["entity-record", "entity-type"])) : q("", !0)
2524
2524
  ], 64));
2525
2525
  }
2526
- }), ka = /* @__PURE__ */ ae(_a, [["__scopeId", "data-v-d15be7fe"]]), oe = "24px", Ee = (e, t) => {
2526
+ }), _a = /* @__PURE__ */ ae(ka, [["__scopeId", "data-v-d15be7fe"]]), oe = "24px", Ee = (e, t) => {
2527
2527
  const n = e.__vccOpts || e;
2528
2528
  for (const [r, i] of t)
2529
2529
  n[r] = i;
@@ -2586,7 +2586,7 @@ ${te}${d} = {
2586
2586
  }
2587
2587
  },
2588
2588
  setup(e) {
2589
- const t = e, n = k(() => {
2589
+ const t = e, n = _(() => {
2590
2590
  if (typeof t.size == "number" && t.size > 0)
2591
2591
  return `${t.size}px`;
2592
2592
  if (typeof t.size == "string") {
@@ -2595,7 +2595,7 @@ ${te}${d} = {
2595
2595
  return `${o}px`;
2596
2596
  }
2597
2597
  return oe;
2598
- }), r = k(() => ({
2598
+ }), r = _(() => ({
2599
2599
  boxSizing: "border-box",
2600
2600
  color: t.color,
2601
2601
  display: t.display,
@@ -2686,7 +2686,7 @@ ${te}${d} = {
2686
2686
  }
2687
2687
  },
2688
2688
  setup(e) {
2689
- const t = e, n = k(() => {
2689
+ const t = e, n = _(() => {
2690
2690
  if (typeof t.size == "number" && t.size > 0)
2691
2691
  return `${t.size}px`;
2692
2692
  if (typeof t.size == "string") {
@@ -2695,7 +2695,7 @@ ${te}${d} = {
2695
2695
  return `${o}px`;
2696
2696
  }
2697
2697
  return oe;
2698
- }), r = k(() => ({
2698
+ }), r = _(() => ({
2699
2699
  boxSizing: "border-box",
2700
2700
  color: t.color,
2701
2701
  display: t.display,
@@ -2786,7 +2786,7 @@ ${te}${d} = {
2786
2786
  }
2787
2787
  },
2788
2788
  setup(e) {
2789
- const t = e, n = k(() => {
2789
+ const t = e, n = _(() => {
2790
2790
  if (typeof t.size == "number" && t.size > 0)
2791
2791
  return `${t.size}px`;
2792
2792
  if (typeof t.size == "string") {
@@ -2795,7 +2795,7 @@ ${te}${d} = {
2795
2795
  return `${o}px`;
2796
2796
  }
2797
2797
  return oe;
2798
- }), r = k(() => ({
2798
+ }), r = _(() => ({
2799
2799
  boxSizing: "border-box",
2800
2800
  color: t.color,
2801
2801
  display: t.display,
@@ -2886,7 +2886,7 @@ ${te}${d} = {
2886
2886
  }
2887
2887
  },
2888
2888
  setup(e) {
2889
- const t = e, n = k(() => {
2889
+ const t = e, n = _(() => {
2890
2890
  if (typeof t.size == "number" && t.size > 0)
2891
2891
  return `${t.size}px`;
2892
2892
  if (typeof t.size == "string") {
@@ -2895,7 +2895,7 @@ ${te}${d} = {
2895
2895
  return `${o}px`;
2896
2896
  }
2897
2897
  return oe;
2898
- }), r = k(() => ({
2898
+ }), r = _(() => ({
2899
2899
  boxSizing: "border-box",
2900
2900
  color: t.color,
2901
2901
  display: t.display,
@@ -2986,7 +2986,7 @@ ${te}${d} = {
2986
2986
  }
2987
2987
  },
2988
2988
  setup(e) {
2989
- const t = e, n = k(() => {
2989
+ const t = e, n = _(() => {
2990
2990
  if (typeof t.size == "number" && t.size > 0)
2991
2991
  return `${t.size}px`;
2992
2992
  if (typeof t.size == "string") {
@@ -2995,7 +2995,7 @@ ${te}${d} = {
2995
2995
  return `${o}px`;
2996
2996
  }
2997
2997
  return oe;
2998
- }), r = k(() => ({
2998
+ }), r = _(() => ({
2999
2999
  boxSizing: "border-box",
3000
3000
  color: t.color,
3001
3001
  display: t.display,
@@ -3086,7 +3086,7 @@ ${te}${d} = {
3086
3086
  }
3087
3087
  },
3088
3088
  setup(e) {
3089
- const t = e, n = k(() => {
3089
+ const t = e, n = _(() => {
3090
3090
  if (typeof t.size == "number" && t.size > 0)
3091
3091
  return `${t.size}px`;
3092
3092
  if (typeof t.size == "string") {
@@ -3095,7 +3095,7 @@ ${te}${d} = {
3095
3095
  return `${o}px`;
3096
3096
  }
3097
3097
  return oe;
3098
- }), r = k(() => ({
3098
+ }), r = _(() => ({
3099
3099
  boxSizing: "border-box",
3100
3100
  color: t.color,
3101
3101
  display: t.display,
@@ -3281,7 +3281,7 @@ ${te}${d} = {
3281
3281
  // the last property displayed
3282
3282
  section: ie.Basic
3283
3283
  }
3284
- }, h = D(!1), f = D(!1), y = D(""), g = D({}), _ = k(() => {
3284
+ }, h = D(!1), f = D(!1), y = D(""), g = D({}), k = _(() => {
3285
3285
  var E, I, K;
3286
3286
  if (!g.value)
3287
3287
  return [];
@@ -3306,7 +3306,7 @@ ${te}${d} = {
3306
3306
  section: U.section ?? ((J == null ? void 0 : J.section) || ie.Advanced)
3307
3307
  };
3308
3308
  }).filter((R) => !R.hidden && R.key !== r.pluginConfigKey);
3309
- }), O = k(() => {
3309
+ }), O = _(() => {
3310
3310
  var I, K;
3311
3311
  if (!g.value || !r.pluginConfigKey)
3312
3312
  return [];
@@ -3331,17 +3331,17 @@ ${te}${d} = {
3331
3331
  section: ie.Plugin
3332
3332
  };
3333
3333
  }).filter((R) => !R.hidden);
3334
- }), x = k(() => {
3334
+ }), x = _(() => {
3335
3335
  var p, b, E, I;
3336
3336
  return {
3337
- basic: (p = _.value) == null ? void 0 : p.filter((K) => K.section === ie.Basic),
3338
- advanced: (b = _.value) == null ? void 0 : b.filter((K) => K.section === ie.Advanced),
3339
- plugin: (I = O.value) == null ? void 0 : I.concat((E = _.value) == null ? void 0 : E.filter((K) => K.section === ie.Plugin))
3337
+ basic: (p = k.value) == null ? void 0 : p.filter((K) => K.section === ie.Basic),
3338
+ advanced: (b = k.value) == null ? void 0 : b.filter((K) => K.section === ie.Advanced),
3339
+ plugin: (I = O.value) == null ? void 0 : I.concat((E = k.value) == null ? void 0 : E.filter((K) => K.section === ie.Plugin))
3340
3340
  };
3341
- }), N = k(() => {
3341
+ }), N = _(() => {
3342
3342
  const p = [];
3343
3343
  return x.value.basic.length && p.push("basic"), x.value.advanced.length && p.push("advanced"), x.value.plugin.length && p.push("plugin"), p;
3344
- }), v = k(() => {
3344
+ }), v = _(() => {
3345
3345
  var b, E;
3346
3346
  let p = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3347
3347
  return r.config.app === "konnect" ? p = p.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (p = p.replace(/\/{workspace}/gi, (E = r.config) != null && E.workspace ? `/${r.config.workspace}` : "")), p = p.replace(/{id}/gi, r.config.entityId), p;
@@ -3427,7 +3427,7 @@ ${te}${d} = {
3427
3427
  _: 1
3428
3428
  })) : q("", !0),
3429
3429
  L("div", sl, [
3430
- M(ka, {
3430
+ M(_a, {
3431
3431
  config: e.config,
3432
3432
  "entity-type": e.entityType,
3433
3433
  "fetcher-url": v.value,
@@ -3552,15 +3552,15 @@ ${te}${d} = {
3552
3552
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3553
3553
  setup(e, { emit: t }) {
3554
3554
  var N;
3555
- const n = t, r = e, i = zn(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((N = r.config) == null ? void 0 : N.axiosRequestConfig), c = D(!1), u = D(!1), d = D(""), s = k(() => r.canSubmit === !1 || r.isReadonly), h = D(!1), f = k(() => {
3555
+ const n = t, r = e, i = zn(), { i18n: { t: o } } = Y.useI18n(), { getMessageFromError: a } = Y.useErrors(), { axiosInstance: l } = Y.useAxios((N = r.config) == null ? void 0 : N.axiosRequestConfig), c = D(!1), u = D(!1), d = D(""), s = _(() => r.canSubmit === !1 || r.isReadonly), h = D(!1), f = _(() => {
3556
3556
  var S, p;
3557
3557
  let v = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3558
3558
  return r.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((S = r.config) == null ? void 0 : S.controlPlaneId) || "") : r.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (p = r.config) != null && p.workspace ? `/${r.config.workspace}` : "")), r.editId ? (v = v.replace(/{id}/gi, r.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3559
3559
  }), y = () => {
3560
3560
  h.value = !h.value;
3561
3561
  }, g = () => {
3562
- r.config.cancelRoute ? i.push(r.config.cancelRoute) : _();
3563
- }, _ = () => {
3562
+ r.config.cancelRoute ? i.push(r.config.cancelRoute) : k();
3563
+ }, k = () => {
3564
3564
  n("cancel");
3565
3565
  }, O = () => {
3566
3566
  s.value || n("submit");
@@ -3613,7 +3613,7 @@ ${te}${d} = {
3613
3613
  key: 2,
3614
3614
  "data-testid": "form-content",
3615
3615
  novalidate: r.noValidate,
3616
- onReset: Ge(_, ["prevent"]),
3616
+ onReset: Ge(k, ["prevent"]),
3617
3617
  onSubmit: Ge(O, ["prevent"])
3618
3618
  }, [
3619
3619
  z(v.$slots, "default", {}, void 0, !0),
@@ -3627,17 +3627,17 @@ ${te}${d} = {
3627
3627
  z(v.$slots, "form-actions", {}, () => [
3628
3628
  M(I, {
3629
3629
  appearance: "tertiary",
3630
- "data-testid": "form-view-configuration",
3630
+ "data-testid": `${e.entityType}-form-view-configuration`,
3631
3631
  onClick: S[0] || (S[0] = (T) => y())
3632
3632
  }, {
3633
3633
  default: C(() => [
3634
3634
  V(F($(o)("baseForm.actions.viewConfiguration")), 1)
3635
3635
  ]),
3636
3636
  _: 1
3637
- }),
3637
+ }, 8, ["data-testid"]),
3638
3638
  M(I, {
3639
3639
  appearance: "secondary",
3640
- "data-testid": "form-cancel",
3640
+ "data-testid": `${e.entityType}-form-cancel`,
3641
3641
  disabled: e.isReadonly,
3642
3642
  type: "reset"
3643
3643
  }, {
@@ -3645,10 +3645,10 @@ ${te}${d} = {
3645
3645
  V(F($(o)("baseForm.actions.cancel")), 1)
3646
3646
  ]),
3647
3647
  _: 1
3648
- }, 8, ["disabled"]),
3648
+ }, 8, ["data-testid", "disabled"]),
3649
3649
  M(I, {
3650
3650
  appearance: "primary",
3651
- "data-testid": "form-submit",
3651
+ "data-testid": `${e.entityType}-form-submit`,
3652
3652
  disabled: s.value,
3653
3653
  type: "submit"
3654
3654
  }, {
@@ -3656,7 +3656,7 @@ ${te}${d} = {
3656
3656
  V(F($(o)("baseForm.actions.save")), 1)
3657
3657
  ]),
3658
3658
  _: 1
3659
- }, 8, ["disabled"])
3659
+ }, 8, ["data-testid", "disabled"])
3660
3660
  ], !0)
3661
3661
  ])
3662
3662
  ], 40, dl)),
@@ -3704,7 +3704,7 @@ ${te}${d} = {
3704
3704
  });
3705
3705
  };
3706
3706
  }
3707
- }), lc = /* @__PURE__ */ ae(pl, [["__scopeId", "data-v-073c33c8"]]), hl = ["data-truncate"], ml = /* @__PURE__ */ P({
3707
+ }), lc = /* @__PURE__ */ ae(pl, [["__scopeId", "data-v-649b0737"]]), hl = ["data-truncate"], ml = /* @__PURE__ */ P({
3708
3708
  __name: "EntityBaseTableCell",
3709
3709
  props: {
3710
3710
  keyName: {
@@ -3721,48 +3721,48 @@ ${te}${d} = {
3721
3721
  }
3722
3722
  },
3723
3723
  setup(e) {
3724
- const t = e, n = k(() => {
3725
- var _;
3726
- return ((_ = t.rowEl) == null ? void 0 : _.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3727
- }), r = k(() => {
3728
- var _;
3729
- return ((_ = n.value) == null ? void 0 : _.querySelector('[data-truncate="true"]')) || null;
3730
- }), i = k(() => {
3724
+ const t = e, n = _(() => {
3725
+ var k;
3726
+ return ((k = t.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3727
+ }), r = _(() => {
3728
+ var k;
3729
+ return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
3730
+ }), i = _(() => {
3731
3731
  var O, x;
3732
- const _ = (O = t.rowEl) == null ? void 0 : O.querySelectorAll("td");
3733
- return _ ? ((x = _[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
3734
- }), o = k(() => i.value || t.tooltip);
3732
+ const k = (O = t.rowEl) == null ? void 0 : O.querySelectorAll("td");
3733
+ return k ? ((x = k[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
3734
+ }), o = _(() => i.value || t.tooltip);
3735
3735
  let a;
3736
3736
  const l = () => {
3737
3737
  a && (a.disconnect(), a = void 0);
3738
3738
  }, c = () => {
3739
3739
  var O, x, N;
3740
- let _ = ((O = n.value) == null ? void 0 : O.clientWidth) || 0;
3740
+ let k = ((O = n.value) == null ? void 0 : O.clientWidth) || 0;
3741
3741
  if (n.value && "getComputedStyle" in window) {
3742
3742
  const v = window.getComputedStyle(n.value);
3743
- _ -= (parseFloat(v.paddingLeft) || 0) + (parseFloat(v.paddingRight) || 0);
3743
+ k -= (parseFloat(v.paddingLeft) || 0) + (parseFloat(v.paddingRight) || 0);
3744
3744
  }
3745
- d.value = ((x = r.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, s.value = _, h.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
3746
- }, u = D({}), d = D(0), s = D(0), h = D(""), f = k(() => [r.value, n.value]), y = Se(
3745
+ d.value = ((x = r.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, s.value = k, h.value = ((N = u.value) == null ? void 0 : N.innerText) || "";
3746
+ }, u = D({}), d = D(0), s = D(0), h = D(""), f = _(() => [r.value, n.value]), y = Se(
3747
3747
  f,
3748
- (_) => {
3748
+ (k) => {
3749
3749
  if (o.value && (l(), "ResizeObserver" in window && window)) {
3750
3750
  a = new ResizeObserver((O) => {
3751
3751
  window.requestAnimationFrame(() => {
3752
3752
  !Array.isArray(O) || !O.length || c();
3753
3753
  });
3754
3754
  });
3755
- for (const O of _)
3755
+ for (const O of k)
3756
3756
  O && a.observe(O);
3757
3757
  }
3758
3758
  },
3759
3759
  { immediate: !0, flush: "post", deep: !0 }
3760
- ), g = k(() => o.value ? d.value > s.value : !1);
3760
+ ), g = _(() => o.value ? d.value > s.value : !1);
3761
3761
  return Dn(() => {
3762
3762
  c();
3763
3763
  }), jn(() => {
3764
3764
  y();
3765
- }), (_, O) => {
3765
+ }), (k, O) => {
3766
3766
  const x = j("KTooltip");
3767
3767
  return m(), A("span", {
3768
3768
  ref_key: "contentRef",
@@ -3779,11 +3779,11 @@ ${te}${d} = {
3779
3779
  text: g.value ? h.value : ""
3780
3780
  }, {
3781
3781
  default: C(() => [
3782
- z(_.$slots, "default", {}, void 0, !0)
3782
+ z(k.$slots, "default", {}, void 0, !0)
3783
3783
  ]),
3784
3784
  _: 3
3785
3785
  }, 8, ["text"])
3786
- ], 8, hl)) : z(_.$slots, "default", { key: 1 }, void 0, !0)
3786
+ ], 8, hl)) : z(k.$slots, "default", { key: 1 }, void 0, !0)
3787
3787
  ], 512);
3788
3788
  };
3789
3789
  }
@@ -3908,7 +3908,7 @@ ${te}${d} = {
3908
3908
  },
3909
3909
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3910
3910
  setup(e, { emit: t }) {
3911
- const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), o = k(() => {
3911
+ const n = e, r = t, { i18n: { t: i } } = Y.useI18n(), o = _(() => {
3912
3912
  var p, b;
3913
3913
  return typeof n.errorMessage == "string" ? {
3914
3914
  hasError: !!n.errorMessage,
@@ -3919,7 +3919,7 @@ ${te}${d} = {
3919
3919
  title: (p = n.errorMessage) == null ? void 0 : p.title,
3920
3920
  message: (b = n.errorMessage) == null ? void 0 : b.message
3921
3921
  };
3922
- }), a = k(() => n.cacheIdentifier || n.preferencesStorageKey), l = (p) => p.hasData || !!n.query, c = k(() => {
3922
+ }), a = _(() => n.cacheIdentifier || n.preferencesStorageKey), l = (p) => p.hasData || !!n.query, c = _(() => {
3923
3923
  const p = [];
3924
3924
  return Object.keys(n.tableHeaders).forEach((E) => {
3925
3925
  const I = n.tableHeaders[E];
@@ -3954,11 +3954,11 @@ ${te}${d} = {
3954
3954
  r("empty-state-cta-clicked"), y();
3955
3955
  }, y = () => {
3956
3956
  r("clear-search-input");
3957
- }, g = k(() => n.disableRowClick ? void 0 : (p, b) => {
3957
+ }, g = _(() => n.disableRowClick ? void 0 : (p, b) => {
3958
3958
  r("click:row", b);
3959
- }), _ = (p) => {
3959
+ }), k = (p) => {
3960
3960
  r("sort", p);
3961
- }, { setTablePreferences: O, getTablePreferences: x } = Qn(), N = D(x(a.value)), v = k(() => {
3961
+ }, { setTablePreferences: O, getTablePreferences: x } = Qn(), N = D(x(a.value)), v = _(() => {
3962
3962
  const p = x(a.value);
3963
3963
  return {
3964
3964
  ...n.initialFetcherParams,
@@ -4007,7 +4007,7 @@ ${te}${d} = {
4007
4007
  "table-preferences": N.value,
4008
4008
  onEmptyStateActionClick: f,
4009
4009
  "onRow:click": g.value,
4010
- onSort: b[0] || (b[0] = (T) => _(T)),
4010
+ onSort: b[0] || (b[0] = (T) => k(T)),
4011
4011
  "onUpdate:tablePreferences": S
4012
4012
  }, we({
4013
4013
  toolbar: C(({ state: T }) => [
@@ -4093,10 +4093,10 @@ ${te}${d} = {
4093
4093
  }), cc = /* @__PURE__ */ ae(xl, [["__scopeId", "data-v-71b4425a"]]), Cl = {
4094
4094
  key: 0,
4095
4095
  class: "kong-ui-entity-delete-error"
4096
- }, _l = {
4096
+ }, kl = {
4097
4097
  key: 1,
4098
4098
  class: "description"
4099
- }, kl = /* @__PURE__ */ P({
4099
+ }, _l = /* @__PURE__ */ P({
4100
4100
  __name: "EntityDeleteModal",
4101
4101
  props: {
4102
4102
  visible: {
@@ -4135,7 +4135,7 @@ ${te}${d} = {
4135
4135
  },
4136
4136
  emits: ["cancel", "proceed"],
4137
4137
  setup(e, { emit: t }) {
4138
- const { i18nT: n } = Y.useI18n(), r = e, i = t, o = k(() => r.needConfirm ? r.entityName : ""), a = () => {
4138
+ const { i18nT: n } = Y.useI18n(), r = e, i = t, o = _(() => r.needConfirm ? r.entityName : ""), a = () => {
4139
4139
  i("cancel");
4140
4140
  }, l = () => {
4141
4141
  i("proceed");
@@ -4180,7 +4180,7 @@ ${te}${d} = {
4180
4180
  key: "0"
4181
4181
  } : void 0
4182
4182
  ]), 1032, ["keypath"]),
4183
- r.description || c.$slots.description ? (m(), A("div", _l, [
4183
+ r.description || c.$slots.description ? (m(), A("div", kl, [
4184
4184
  z(c.$slots, "description", {}, () => [
4185
4185
  L("p", null, F(r.description), 1)
4186
4186
  ], !0)
@@ -4190,7 +4190,7 @@ ${te}${d} = {
4190
4190
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
4191
4191
  };
4192
4192
  }
4193
- }), sc = /* @__PURE__ */ ae(kl, [["__scopeId", "data-v-4361d622"]]), wl = {
4193
+ }), sc = /* @__PURE__ */ ae(_l, [["__scopeId", "data-v-4361d622"]]), wl = {
4194
4194
  fill: "none",
4195
4195
  height: "20",
4196
4196
  viewBox: "0 0 20 20",
@@ -4252,12 +4252,12 @@ ${te}${d} = {
4252
4252
  },
4253
4253
  emits: ["update:modelValue"],
4254
4254
  setup(e, { emit: t }) {
4255
- const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, o = D(!1), a = D({}), l = D(/* @__PURE__ */ new Set()), c = k(() => {
4255
+ const { i18n: { t: n } } = Y.useI18n(), r = e, i = t, o = D(!1), a = D({}), l = D(/* @__PURE__ */ new Set()), c = _(() => {
4256
4256
  const v = [];
4257
4257
  return new URLSearchParams(r.modelValue).forEach((S, p) => {
4258
4258
  S !== "" && v.push(p);
4259
4259
  }), v;
4260
- }), u = k(() => {
4260
+ }), u = _(() => {
4261
4261
  const v = r.config.fields;
4262
4262
  return Object.keys(v).filter((S) => {
4263
4263
  var p;
@@ -4287,7 +4287,7 @@ ${te}${d} = {
4287
4287
  value: b,
4288
4288
  label: b
4289
4289
  }));
4290
- }, _ = (v) => {
4290
+ }, k = (v) => {
4291
4291
  var S, p;
4292
4292
  return ((p = (S = r.config.schema) == null ? void 0 : S[v]) == null ? void 0 : p.type) ?? "text";
4293
4293
  }, O = (v) => {
@@ -4385,7 +4385,7 @@ ${te}${d} = {
4385
4385
  "onUpdate:modelValue": (T) => a.value[I.value] = T,
4386
4386
  autocomplete: "off",
4387
4387
  placeholder: $(n)("filter.inputPlaceholder"),
4388
- type: _(I.value)
4388
+ type: k(I.value)
4389
4389
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4390
4390
  ], 512), [
4391
4391
  [ye, l.value.has(I.value)]
@@ -4468,9 +4468,9 @@ ${te}${d} = {
4468
4468
  },
4469
4469
  emits: ["cancel", "proceed"],
4470
4470
  setup(e, { emit: t }) {
4471
- const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, o = t, a = D(!1), l = k(
4471
+ const { i18n: { t: n }, i18nT: r } = Y.useI18n(), i = e, o = t, a = D(!1), l = _(
4472
4472
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4473
- ), c = k(
4473
+ ), c = _(
4474
4474
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4475
4475
  ), u = () => o("cancel"), d = async () => {
4476
4476
  if (i.onConfirm) {
@@ -4537,7 +4537,7 @@ ${te}${d} = {
4537
4537
  }
4538
4538
  },
4539
4539
  setup(e) {
4540
- const t = e, n = D(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4540
+ const t = e, n = D(void 0), r = _(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4541
4541
  return Se(() => t.authFunction, async () => {
4542
4542
  n.value = await t.authFunction();
4543
4543
  }, { immediate: !0 }), (i, o) => r.value ? z(i.$slots, "default", {
@@ -4676,10 +4676,10 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, zl = {
4676
4676
  }
4677
4677
  },
4678
4678
  setup(e) {
4679
- const t = e, n = D(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), o = i("global.actions.copyId"), a = D(o), l = k(() => t.entityLinkData.deleted ?? !1), c = k(() => {
4679
+ const t = e, n = D(), { isTruncated: r } = Y.useTruncationDetector(n), { i18n: { t: i } } = Y.useI18n(), o = i("global.actions.copyId"), a = D(o), l = _(() => t.entityLinkData.deleted ?? !1), c = _(() => {
4680
4680
  var s;
4681
4681
  return (s = t.entityLinkData.id) != null && s.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4682
- }), u = k(() => {
4682
+ }), u = _(() => {
4683
4683
  var s;
4684
4684
  return `${(s = c.value) == null ? void 0 : s.toString().slice(0, 5)} (deleted)`;
4685
4685
  }), d = async (s) => {
@@ -4722,10 +4722,10 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, zl = {
4722
4722
  }, {
4723
4723
  default: C(() => [
4724
4724
  M(g, null, {
4725
- default: C(({ copyToClipboard: _ }) => [
4725
+ default: C(({ copyToClipboard: k }) => [
4726
4726
  L("span", {
4727
4727
  class: "entity-link-copy-id",
4728
- onClick: Ge((O) => d(_), ["stop"])
4728
+ onClick: Ge((O) => d(k), ["stop"])
4729
4729
  }, [
4730
4730
  M($(Xa), {
4731
4731
  class: "copy-icon",
@@ -4743,9 +4743,9 @@ const Hl = ["aria-labelledby"], Vl = { class: "form-section-wrapper" }, zl = {
4743
4743
  ]);
4744
4744
  };
4745
4745
  }
4746
- }), hc = /* @__PURE__ */ ae(ec, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: mc, useDeleteUrlBuilder: gc, useErrors: yc, useExternalLinkCreator: vc, useFetchUrlBuilder: bc, useFetcher: xc, useDebouncedFilter: Cc, useStringHelpers: _c, useHelpers: kc, useGatewayFeatureSupported: wc, useTruncationDetector: Ac, useValidators: Sc } = Y;
4746
+ }), hc = /* @__PURE__ */ ae(ec, [["__scopeId", "data-v-60e3ef7c"]]), { useAxios: mc, useDeleteUrlBuilder: gc, useErrors: yc, useExternalLinkCreator: vc, useFetchUrlBuilder: bc, useFetcher: xc, useDebouncedFilter: Cc, useStringHelpers: kc, useHelpers: _c, useGatewayFeatureSupported: wc, useTruncationDetector: Ac, useValidators: Sc } = Y;
4747
4747
  export {
4748
- ka as ConfigCardDisplay,
4748
+ _a as ConfigCardDisplay,
4749
4749
  Ut as ConfigCardItem,
4750
4750
  ie as ConfigurationSchemaSection,
4751
4751
  H as ConfigurationSchemaType,
@@ -4775,8 +4775,8 @@ export {
4775
4775
  bc as useFetchUrlBuilder,
4776
4776
  xc as useFetcher,
4777
4777
  wc as useGatewayFeatureSupported,
4778
- kc as useHelpers,
4779
- _c as useStringHelpers,
4778
+ _c as useHelpers,
4779
+ kc as useStringHelpers,
4780
4780
  Ac as useTruncationDetector,
4781
4781
  Sc as useValidators
4782
4782
  };