@kong-ui-public/entities-shared 3.0.0 → 3.0.1-pr.1301.5fa1cc56.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,6 +1,6 @@
1
- import { inject as In, ref as B, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as fe, normalizeClass as ue, withCtx as x, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as R, createVNode as N, createTextVNode as V, useCssVars as Tt, useSlots as Ze, renderSlot as Y, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, onBeforeMount as Ft, withModifiers as Ve, onMounted as On, onUnmounted as $n, withDirectives as he, vShow as me, withKeys as Ln, Teleport as Nn } from "vue";
1
+ import { inject as In, ref as R, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as fe, normalizeClass as ue, withCtx as x, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as le, renderList as ie, resolveComponent as B, createVNode as N, createTextVNode as V, useCssVars as Tt, useSlots as Ze, renderSlot as Y, createSlots as _e, normalizeProps as En, guardReactiveProps as Tn, mergeProps as Fn, normalizeStyle as Fe, pushScopeId as Oe, popScopeId as $e, onBeforeMount as Ft, withModifiers as Ve, onMounted as On, onUnmounted as $n, withDirectives as he, vShow as me, withKeys as Ln, Teleport as Nn } from "vue";
2
2
  import ot from "axios";
3
- import { createI18n as Rn, i18nTComponent as Bn } from "@kong-ui-public/i18n";
3
+ import { createI18n as Bn, i18nTComponent as Rn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Kn } from "@kong/kongponents";
5
5
  import { useRouter as Mn } from "vue-router";
6
6
  var Dn = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(Dn || {}), jn = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(jn || {}), ve = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(ve || {}), P = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(P || {}), ne = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(ne || {});
@@ -191,10 +191,10 @@ const Vn = {
191
191
  toggleModal: er
192
192
  };
193
193
  function De() {
194
- const e = Rn("en-us", tr);
194
+ const e = Bn("en-us", tr);
195
195
  return {
196
196
  i18n: e,
197
- i18nT: Bn(e)
197
+ i18nT: Rn(e)
198
198
  // Translation component <i18n-t>
199
199
  };
200
200
  }
@@ -249,7 +249,7 @@ function nr(e, t, n, r = {
249
249
  n || (n = "1000");
250
250
  const { axiosInstance: i } = Qe(e.axiosRequestConfig), { i18n: { t: a } } = De(), { debounce: o } = qn(), l = o(async (m) => {
251
251
  await ee(m);
252
- }, 200), s = B(!1), u = B(""), d = B(""), c = B([]), p = B([]), f = B(void 0), b = I(t);
252
+ }, 200), s = R(!1), u = R(""), d = R(""), c = R([]), p = R([]), f = R(void 0), b = I(t);
253
253
  let v = `${e.apiBaseUrl}${b}`;
254
254
  e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
255
255
  const { isValidUuid: A } = Ot(), M = async () => {
@@ -262,7 +262,7 @@ function nr(e, t, n, r = {
262
262
  } finally {
263
263
  s.value = !1;
264
264
  }
265
- }, E = B(""), ee = async (m) => {
265
+ }, E = R(""), ee = async (m) => {
266
266
  var y, g, $;
267
267
  if (E.value !== m)
268
268
  if (E.value = m || "", f.value === void 0)
@@ -366,7 +366,7 @@ function ar(e) {
366
366
  }
367
367
  }
368
368
  function $t(e, t) {
369
- const n = B(I(e)), r = B(I(t)), i = k(
369
+ const n = R(I(e)), r = R(I(t)), i = k(
370
370
  () => !!(n.value.app === "konnect" || n.value.isExactMatch)
371
371
  ), a = k(
372
372
  () => r.value.startsWith("/") ? new URL(`${window.location.origin}${r.value}`) : new URL(r.value)
@@ -384,7 +384,7 @@ function $t(e, t) {
384
384
  };
385
385
  }
386
386
  function or(e, t, n = "data") {
387
- const r = I(t), { axiosInstance: i } = Qe(e.axiosRequestConfig), a = $t(e, r), o = B({
387
+ const r = I(t), { axiosInstance: i } = Qe(e.axiosRequestConfig), a = $t(e, r), o = R({
388
388
  status: ve.Idle
389
389
  });
390
390
  return { fetcher: async (s) => {
@@ -492,7 +492,7 @@ function pr(e) {
492
492
  return !(o && dt(i, o, "<") || l && dt(i, l, ">"));
493
493
  }
494
494
  function hr(e) {
495
- const t = B(0), n = B(0), r = B(!1);
495
+ const t = R(0), n = R(0), r = R(!1);
496
496
  return Ae(e, (a) => {
497
497
  a && !r.value && (t.value = a.offsetWidth, n.value = a.scrollWidth, r.value = !0);
498
498
  }), {
@@ -553,7 +553,7 @@ const z = {
553
553
  e.isArrayItem ? (h(), S("legend", gr, [
554
554
  L("b", null, O(l.value), 1)
555
555
  ])) : D("", !0),
556
- (h(!0), S(le, null, ie(Object.keys(o.value), (d, c) => (h(), K(Bt, {
556
+ (h(!0), S(le, null, ie(Object.keys(o.value), (d, c) => (h(), K(Rt, {
557
557
  key: `${i.value}-property-${c}`,
558
558
  item: {
559
559
  key: d,
@@ -570,7 +570,7 @@ const z = {
570
570
  for (const [r, i] of t)
571
571
  n[r] = i;
572
572
  return n;
573
- }, Rt = /* @__PURE__ */ re(yr, [["__scopeId", "data-v-68ca83ec"]]), vr = /* @__PURE__ */ H({
573
+ }, Bt = /* @__PURE__ */ re(yr, [["__scopeId", "data-v-68ca83ec"]]), vr = /* @__PURE__ */ H({
574
574
  __name: "InternalLinkItem",
575
575
  props: {
576
576
  item: {
@@ -582,7 +582,7 @@ const z = {
582
582
  setup(e) {
583
583
  const { i18n: { t } } = z.useI18n();
584
584
  return (n, r) => {
585
- const i = R("KButton");
585
+ const i = B("KButton");
586
586
  return h(), S("div", null, [
587
587
  N(i, {
588
588
  appearance: "tertiary",
@@ -608,7 +608,7 @@ const z = {
608
608
  setup(e) {
609
609
  const { i18n: { t } } = z.useI18n();
610
610
  return (n, r) => {
611
- const i = R("KBadge");
611
+ const i = B("KBadge");
612
612
  return h(), K(i, {
613
613
  appearance: e.status ? "success" : "neutral"
614
614
  }, {
@@ -619,9 +619,9 @@ const z = {
619
619
  }, 8, ["appearance"]);
620
620
  };
621
621
  }
622
- }), Cr = "#0044f4", _r = "#e0e4ea", kr = "#3a3f51", Ar = "#afb7c5", wr = "#0044f4", Sr = "1px", Ir = "16px", Er = "20px", Tr = { class: "config-card-details-row" }, Fr = ["data-testid"], Or = ["data-testid"], $r = ["data-testid"], Lr = ["data-testid"], Nr = { key: 1 }, Rr = ["data-testid"], Br = ["data-testid"], Kr = ["data-testid"], Mr = ["data-testid"], Dr = {
622
+ }), Cr = "#0044f4", _r = "#e0e4ea", kr = "#3a3f51", Ar = "#afb7c5", wr = "#0044f4", Sr = "1px", Ir = "16px", Er = "20px", Tr = { class: "config-card-details-row" }, Fr = ["data-testid"], Or = ["data-testid"], $r = ["data-testid"], Lr = ["data-testid"], Nr = { key: 1 }, Br = ["data-testid"], Rr = ["data-testid"], Kr = ["data-testid"], Mr = ["data-testid"], Dr = {
623
623
  name: "ConfigCardItem",
624
- components: { JsonCardItem: Rt, StatusBadge: xr, InternalLinkItem: br }
624
+ components: { JsonCardItem: Bt, StatusBadge: xr, InternalLinkItem: br }
625
625
  }, jr = /* @__PURE__ */ H({
626
626
  ...Dr,
627
627
  props: {
@@ -758,9 +758,9 @@ const z = {
758
758
  text: n.item.value
759
759
  };
760
760
  }
761
- }), p = B(), { isTruncated: f } = z.useTruncationDetector(p);
761
+ }), p = R(), { isTruncated: f } = z.useTruncationDetector(p);
762
762
  return (b, v) => {
763
- const A = R("KLabel"), M = R("KBadge"), E = R("KCopy"), ee = R("KTooltip");
763
+ const A = B("KLabel"), M = B("KBadge"), E = B("KCopy"), ee = B("KTooltip");
764
764
  return h(), S("div", Tr, [
765
765
  L("div", {
766
766
  class: "config-card-details-label",
@@ -815,7 +815,7 @@ const z = {
815
815
  ]),
816
816
  _: 2
817
817
  }, 1032, ["data-testid", "tooltip"]))), 128))
818
- ], 8, Rr)) : D("", !0),
818
+ ], 8, Br)) : D("", !0),
819
819
  c.value.additionalComponent === "KCopy" ? (h(), S("div", {
820
820
  key: 1,
821
821
  class: "copy-uuid-array",
@@ -826,7 +826,7 @@ const z = {
826
826
  "data-testid": `${e.item.key}-copy-uuid-${y}`,
827
827
  text: m
828
828
  }), null, 16, ["data-testid", "text"]))), 128))
829
- ], 8, Br)) : c.value.additionalComponent === "KMethodBadge" ? (h(), S("div", {
829
+ ], 8, Rr)) : c.value.additionalComponent === "KMethodBadge" ? (h(), S("div", {
830
830
  key: 2,
831
831
  class: "method-badge-array",
832
832
  "data-testid": `${e.item.key}-badge-methods`
@@ -847,7 +847,7 @@ const z = {
847
847
  key: 3,
848
848
  "data-testid": `${n.item.key}-json-array-content`
849
849
  }, [
850
- (h(!0), S(le, null, ie(e.item.value, (m, y) => (h(), K(Rt, {
850
+ (h(!0), S(le, null, ie(e.item.value, (m, y) => (h(), K(Bt, {
851
851
  key: `json-array-item-${y}`,
852
852
  index: y,
853
853
  "is-array-item": "",
@@ -878,7 +878,7 @@ const z = {
878
878
  ]);
879
879
  };
880
880
  }
881
- }), Bt = /* @__PURE__ */ re(jr, [["__scopeId", "data-v-d056663c"]]), Ur = { class: "json-config" }, qr = {
881
+ }), Rt = /* @__PURE__ */ re(jr, [["__scopeId", "data-v-d056663c"]]), Ur = { class: "json-config" }, qr = {
882
882
  key: 0,
883
883
  class: "json-endpoint"
884
884
  }, Kt = /* @__PURE__ */ H({
@@ -920,7 +920,7 @@ const z = {
920
920
  return i.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? i[i.length - 1] : i[i.length - 2]).length;
921
921
  });
922
922
  return (i, a) => {
923
- const o = R("KBadge"), l = R("KCodeBlock");
923
+ const o = B("KBadge"), l = B("KCodeBlock");
924
924
  return h(), S("div", Ur, [
925
925
  t.fetcherUrl ? (h(), S("div", qr, [
926
926
  N(o, {
@@ -1458,7 +1458,7 @@ var tn = new Z("tag:yaml.org,2002:binary", {
1458
1458
  predicate: $i,
1459
1459
  represent: Oi
1460
1460
  }), Li = Object.prototype.hasOwnProperty, Ni = Object.prototype.toString;
1461
- function Ri(e) {
1461
+ function Bi(e) {
1462
1462
  if (e === null)
1463
1463
  return !0;
1464
1464
  var t = [], n, r, i, a, o, l = e;
@@ -1480,13 +1480,13 @@ function Ri(e) {
1480
1480
  }
1481
1481
  return !0;
1482
1482
  }
1483
- function Bi(e) {
1483
+ function Ri(e) {
1484
1484
  return e !== null ? e : [];
1485
1485
  }
1486
1486
  var nn = new Z("tag:yaml.org,2002:omap", {
1487
1487
  kind: "sequence",
1488
- resolve: Ri,
1489
- construct: Bi
1488
+ resolve: Bi,
1489
+ construct: Ri
1490
1490
  }), Ki = Object.prototype.toString;
1491
1491
  function Mi(e) {
1492
1492
  if (e === null)
@@ -1539,7 +1539,7 @@ var an = new Z("tag:yaml.org,2002:set", {
1539
1539
  rn,
1540
1540
  an
1541
1541
  ]
1542
- }), de = Object.prototype.hasOwnProperty, Ne = 1, on = 2, ln = 3, Re = 4, He = 1, Pi = 2, ht = 3, Hi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vi = /[\x85\u2028\u2029]/, Yi = /[,\[\]\{\}]/, sn = /^(?:!|!!|![a-z\-]+!)$/i, cn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1542
+ }), de = Object.prototype.hasOwnProperty, Ne = 1, on = 2, ln = 3, Be = 4, He = 1, Pi = 2, ht = 3, Hi = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, Vi = /[\x85\u2028\u2029]/, Yi = /[,\[\]\{\}]/, sn = /^(?:!|!!|![a-z\-]+!)$/i, cn = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1543
1543
  function mt(e) {
1544
1544
  return Object.prototype.toString.call(e);
1545
1545
  }
@@ -1595,13 +1595,13 @@ function fn(e, t) {
1595
1595
  function C(e, t) {
1596
1596
  throw fn(e, t);
1597
1597
  }
1598
- function Be(e, t) {
1598
+ function Re(e, t) {
1599
1599
  e.onWarning && e.onWarning.call(null, fn(e, t));
1600
1600
  }
1601
1601
  var yt = {
1602
1602
  YAML: function(t, n, r) {
1603
1603
  var i, a, o;
1604
- t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Be(t, "unsupported YAML version of the document");
1604
+ t.version !== null && C(t, "duplication of %YAML directive"), r.length !== 1 && C(t, "YAML directive accepts exactly one argument"), i = /^([0-9]+)\.([0-9]+)$/.exec(r[0]), i === null && C(t, "ill-formed argument of the YAML directive"), a = parseInt(i[1], 10), o = parseInt(i[2], 10), a !== 1 && C(t, "unacceptable YAML version of the document"), t.version = r[0], t.checkLineBreaks = o < 2, o !== 1 && o !== 2 && Re(t, "unsupported YAML version of the document");
1605
1605
  },
1606
1606
  TAG: function(t, n, r) {
1607
1607
  var i, a;
@@ -1668,7 +1668,7 @@ function W(e, t, n) {
1668
1668
  else
1669
1669
  break;
1670
1670
  }
1671
- return n !== -1 && r !== 0 && e.lineIndent < n && Be(e, "deficient indentation"), r;
1671
+ return n !== -1 && r !== 0 && e.lineIndent < n && Re(e, "deficient indentation"), r;
1672
1672
  }
1673
1673
  function je(e) {
1674
1674
  var t = e.position, n;
@@ -1845,7 +1845,7 @@ function ra(e, t, n) {
1845
1845
  else
1846
1846
  return e.tag = u, e.anchor = d, !0;
1847
1847
  }
1848
- if ((e.line === a || e.lineIndent > t) && (A && (o = e.line, l = e.lineStart, s = e.position), ke(e, t, Re, !0, i) && (A ? b = e.result : v = e.result), A || (Ce(e, c, p, f, b, v, o, l, s), f = b = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
1848
+ if ((e.line === a || e.lineIndent > t) && (A && (o = e.line, l = e.lineStart, s = e.position), ke(e, t, Be, !0, i) && (A ? b = e.result : v = e.result), A || (Ce(e, c, p, f, b, v, o, l, s), f = b = v = null), W(e, !0, -1), E = e.input.charCodeAt(e.position)), (e.line === a || e.lineIndent > t) && E !== 0)
1849
1849
  C(e, "bad indentation of a mapping entry");
1850
1850
  else if (e.lineIndent < t)
1851
1851
  break;
@@ -1892,10 +1892,10 @@ function oa(e) {
1892
1892
  }
1893
1893
  function ke(e, t, n, r, i) {
1894
1894
  var a, o, l, s = 1, u = !1, d = !1, c, p, f, b, v, A;
1895
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Re === n || ln === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1895
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, a = o = l = Be === n || ln === n, r && W(e, !0, -1) && (u = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
1896
1896
  for (; ia(e) || aa(e); )
1897
1897
  W(e, !0, -1) ? (u = !0, l = a, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
1898
- if (l && (l = u || i), (s === 1 || Re === n) && (Ne === n || on === n ? v = t : v = t + 1, A = e.position - e.lineStart, s === 1 ? l && (bt(e, A) || ra(e, A, v)) || ta(e, v) ? d = !0 : (o && na(e, v) || Xi(e, v) || ea(e, v) ? d = !0 : oa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : Qi(e, v, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && bt(e, A))), e.tag === null)
1898
+ if (l && (l = u || i), (s === 1 || Be === n) && (Ne === n || on === n ? v = t : v = t + 1, A = e.position - e.lineStart, s === 1 ? l && (bt(e, A) || ra(e, A, v)) || ta(e, v) ? d = !0 : (o && na(e, v) || Xi(e, v) || ea(e, v) ? d = !0 : oa(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && C(e, "alias node should not have any properties")) : Qi(e, v, Ne === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && bt(e, A))), e.tag === null)
1899
1899
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
1900
1900
  else if (e.tag === "?") {
1901
1901
  for (e.result !== null && e.kind !== "scalar" && C(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, p = e.implicitTypes.length; c < p; c += 1)
@@ -1936,9 +1936,9 @@ function la(e) {
1936
1936
  o = e.input.charCodeAt(++e.position);
1937
1937
  i.push(e.input.slice(n, e.position));
1938
1938
  }
1939
- o !== 0 && tt(e), de.call(yt, r) ? yt[r](e, r, i) : Be(e, 'unknown document directive "' + r + '"');
1939
+ o !== 0 && tt(e), de.call(yt, r) ? yt[r](e, r, i) : Re(e, 'unknown document directive "' + r + '"');
1940
1940
  }
1941
- if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), ke(e, e.lineIndent - 1, Re, !1, !0), W(e, !0, -1), e.checkLineBreaks && Vi.test(e.input.slice(t, e.position)) && Be(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && je(e)) {
1941
+ if (W(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, W(e, !0, -1)) : a && C(e, "directives end mark is expected"), ke(e, e.lineIndent - 1, Be, !1, !0), W(e, !0, -1), e.checkLineBreaks && Vi.test(e.input.slice(t, e.position)) && Re(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && je(e)) {
1942
1942
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, W(e, !0, -1));
1943
1943
  return;
1944
1944
  }
@@ -2071,10 +2071,10 @@ function _t(e, t, n) {
2071
2071
  ) : r && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn) && e !== ze && !(t === Ke && !i) || Ct(t) && !Me(t) && e === ze || t === Ke && i
2072
2072
  );
2073
2073
  }
2074
- function Ra(e) {
2074
+ function Ba(e) {
2075
2075
  return Te(e) && e !== rt && !Me(e) && e !== Ca && e !== Aa && e !== Ke && e !== yn && e !== vn && e !== bn && e !== xn && e !== Cn && e !== ze && e !== va && e !== xa && e !== ma && e !== Ia && e !== _a && e !== ka && e !== ba && e !== ga && e !== ya && e !== wa && e !== Sa;
2076
2076
  }
2077
- function Ba(e) {
2077
+ function Ra(e) {
2078
2078
  return !Me(e) && e !== Ke;
2079
2079
  }
2080
2080
  function we(e, t) {
@@ -2087,7 +2087,7 @@ function _n(e) {
2087
2087
  }
2088
2088
  var kn = 1, Je = 2, An = 3, wn = 4, be = 5;
2089
2089
  function Ka(e, t, n, r, i, a, o, l) {
2090
- var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, v = Ra(we(e, 0)) && Ba(we(e, e.length - 1));
2090
+ var s, u = 0, d = null, c = !1, p = !1, f = r !== -1, b = -1, v = Ba(we(e, 0)) && Ra(we(e, e.length - 1));
2091
2091
  if (t || o)
2092
2092
  for (s = 0; s < e.length; u >= 65536 ? s += 2 : s++) {
2093
2093
  if (u = we(e, s), !Te(u))
@@ -2335,7 +2335,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2335
2335
  return Object.keys(r).length === 0 && r.constructor === Object ? "" : so.dump(r).trim();
2336
2336
  });
2337
2337
  return (r, i) => {
2338
- const a = R("KCodeBlock");
2338
+ const a = B("KCodeBlock");
2339
2339
  return h(), S("div", co, [
2340
2340
  t.yamlRecord ? (h(), K(a, {
2341
2341
  key: 0,
@@ -2406,7 +2406,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2406
2406
  "data-testid": `config-card-details-${s}-props`
2407
2407
  }, [
2408
2408
  s !== "basic" ? (h(), S("div", po, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2409
- (h(!0), S(le, null, ie(e.propertyCollections[s], (u) => (h(), K(Bt, {
2409
+ (h(!0), S(le, null, ie(e.propertyCollections[s], (u) => (h(), K(Rt, {
2410
2410
  key: u.key,
2411
2411
  item: u
2412
2412
  }, _e({
@@ -2746,7 +2746,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2746
2746
  _: 1
2747
2747
  }, 8, ["aria-hidden", "style"]));
2748
2748
  }
2749
- }), Lo = /* @__PURE__ */ Le($o, [["__scopeId", "data-v-b2c75f11"]]), No = (e) => (Oe("data-v-f8cd1668"), e = e(), $e(), e), Ro = ["aria-hidden"], Bo = {
2749
+ }), Lo = /* @__PURE__ */ Le($o, [["__scopeId", "data-v-b2c75f11"]]), No = (e) => (Oe("data-v-f8cd1668"), e = e(), $e(), e), Bo = ["aria-hidden"], Ro = {
2750
2750
  key: 0,
2751
2751
  "data-testid": "kui-icon-svg-title"
2752
2752
  }, Ko = /* @__PURE__ */ No(() => /* @__PURE__ */ L("path", {
@@ -2838,9 +2838,9 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
2838
2838
  width: "100%",
2839
2839
  xmlns: "http://www.w3.org/2000/svg"
2840
2840
  }, [
2841
- e.title ? (h(), S("title", Bo, O(e.title), 1)) : D("", !0),
2841
+ e.title ? (h(), S("title", Ro, O(e.title), 1)) : D("", !0),
2842
2842
  Ko
2843
- ], 8, Ro))
2843
+ ], 8, Bo))
2844
2844
  ]),
2845
2845
  _: 1
2846
2846
  }, 8, ["aria-hidden", "style"]));
@@ -3040,7 +3040,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3040
3040
  label: "YAML",
3041
3041
  value: "yaml"
3042
3042
  }
3043
- ], u = B("structured"), d = (g) => {
3043
+ ], u = R("structured"), d = (g) => {
3044
3044
  u.value = g == null ? void 0 : g.value;
3045
3045
  }, c = {
3046
3046
  id: {
@@ -3076,7 +3076,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3076
3076
  // the last property displayed
3077
3077
  section: ne.Basic
3078
3078
  }
3079
- }, p = B(!1), f = B(!1), b = B(""), v = B({}), A = k(() => {
3079
+ }, p = R(!1), f = R(!1), b = R(""), v = R({}), A = k(() => {
3080
3080
  var F, _, j;
3081
3081
  if (!v.value)
3082
3082
  return [];
@@ -3164,7 +3164,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3164
3164
  p.value = !1;
3165
3165
  }
3166
3166
  }), (g, $) => {
3167
- const F = R("KLabel"), _ = R("KSelect"), j = R("KButton"), T = R("KSkeleton"), w = R("KEmptyState"), U = R("KCard");
3167
+ const F = B("KLabel"), _ = B("KSelect"), j = B("KButton"), T = B("KSkeleton"), w = B("KEmptyState"), U = B("KCard");
3168
3168
  return h(), K(U, {
3169
3169
  class: "kong-ui-entity-base-config-card",
3170
3170
  "title-tag": e.titleTag
@@ -3258,10 +3258,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3258
3258
  ]), 1032, ["title-tag"]);
3259
3259
  };
3260
3260
  }
3261
- }), Dl = /* @__PURE__ */ re(Go, [["__scopeId", "data-v-f40a683b"]]), Zo = {
3261
+ }), jl = /* @__PURE__ */ re(Go, [["__scopeId", "data-v-f40a683b"]]), Zo = ["novalidate"], Qo = {
3262
3262
  class: "form-actions",
3263
3263
  "data-testid": "form-actions"
3264
- }, Qo = /* @__PURE__ */ H({
3264
+ }, Xo = /* @__PURE__ */ H({
3265
3265
  __name: "EntityBaseForm",
3266
3266
  props: {
3267
3267
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3311,12 +3311,19 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3311
3311
  formFields: {
3312
3312
  type: Object,
3313
3313
  required: !0
3314
+ },
3315
+ /**
3316
+ * Set true to disable the form validation upon submission.
3317
+ */
3318
+ noValidate: {
3319
+ type: Boolean,
3320
+ default: !1
3314
3321
  }
3315
3322
  },
3316
3323
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3317
3324
  setup(e, { emit: t }) {
3318
3325
  var ee;
3319
- const n = t, r = e, i = Mn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((ee = r.config) == null ? void 0 : ee.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = k(() => r.canSubmit === !1 || r.isReadonly), p = B(!1), f = k(() => {
3326
+ const n = t, r = e, i = Mn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((ee = r.config) == null ? void 0 : ee.axiosRequestConfig), s = R(!1), u = R(!1), d = R(""), c = k(() => r.canSubmit === !1 || r.isReadonly), p = R(!1), f = k(() => {
3320
3327
  var y, g;
3321
3328
  let m = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3322
3329
  return r.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (m = m.replace(/{id}/gi, r.editId), m) : (m = m.replace(/\/{id}/gi, ""), m);
@@ -3328,7 +3335,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3328
3335
  n("cancel");
3329
3336
  }, M = () => {
3330
3337
  c.value || n("submit");
3331
- }, E = B([
3338
+ }, E = R([
3332
3339
  {
3333
3340
  title: a("baseForm.configuration.yaml"),
3334
3341
  hash: "#yaml"
@@ -3353,7 +3360,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3353
3360
  s.value = !1;
3354
3361
  }
3355
3362
  }), (m, y) => {
3356
- const g = R("KSkeleton"), $ = R("KEmptyState"), F = R("KAlert"), _ = R("KButton"), j = R("KTabs"), T = R("KSlideout"), w = R("KCard");
3363
+ const g = B("KSkeleton"), $ = B("KEmptyState"), F = B("KAlert"), _ = B("KButton"), j = B("KTabs"), T = B("KSlideout"), w = B("KCard");
3357
3364
  return h(), K(w, { class: "kong-ui-entity-base-form" }, {
3358
3365
  default: x(() => [
3359
3366
  s.value ? (h(), K(g, {
@@ -3373,6 +3380,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3373
3380
  }, 8, ["action-button-text"])) : (h(), S("form", {
3374
3381
  key: 2,
3375
3382
  "data-testid": "form-content",
3383
+ novalidate: r.noValidate,
3376
3384
  onReset: Ve(A, ["prevent"]),
3377
3385
  onSubmit: Ve(M, ["prevent"])
3378
3386
  }, [
@@ -3383,7 +3391,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3383
3391
  "data-testid": "form-error",
3384
3392
  message: e.errorMessage
3385
3393
  }, null, 8, ["message"])) : D("", !0),
3386
- L("div", Zo, [
3394
+ L("div", Qo, [
3387
3395
  Y(m.$slots, "form-actions", {}, () => [
3388
3396
  N(_, {
3389
3397
  appearance: "tertiary",
@@ -3419,7 +3427,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3419
3427
  }, 8, ["disabled"])
3420
3428
  ], !0)
3421
3429
  ])
3422
- ], 32)),
3430
+ ], 40, Zo)),
3423
3431
  N(T, {
3424
3432
  "close-on-blur": !1,
3425
3433
  "data-testid": "form-view-configuration-slideout",
@@ -3458,10 +3466,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3458
3466
  });
3459
3467
  };
3460
3468
  }
3461
- }), jl = /* @__PURE__ */ re(Qo, [["__scopeId", "data-v-46e6a6e5"]]), Xo = {
3469
+ }), Ul = /* @__PURE__ */ re(Xo, [["__scopeId", "data-v-3def74fe"]]), el = {
3462
3470
  key: 0,
3463
3471
  "data-testid": "first-col"
3464
- }, el = /* @__PURE__ */ H({
3472
+ }, tl = /* @__PURE__ */ H({
3465
3473
  __name: "EntityBaseTableCell",
3466
3474
  props: {
3467
3475
  keyName: {
@@ -3491,7 +3499,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3491
3499
  }, l = () => {
3492
3500
  var v, A, M;
3493
3501
  u.value = ((v = r.value) == null ? void 0 : v.getBoundingClientRect().width) || 0, d.value = ((A = n.value) == null ? void 0 : A.clientWidth) || 0, c.value = ((M = s.value) == null ? void 0 : M.innerText) || "";
3494
- }, s = B({}), u = B(0), d = B(0), c = B(""), p = k(() => [r.value, n.value]), f = Ae(
3502
+ }, s = R({}), u = R(0), d = R(0), c = R(""), p = k(() => [r.value, n.value]), f = Ae(
3495
3503
  p,
3496
3504
  (v) => {
3497
3505
  if (i.value && (o(), "ResizeObserver" in window && window)) {
@@ -3511,13 +3519,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3511
3519
  }), $n(() => {
3512
3520
  f();
3513
3521
  }), (v, A) => {
3514
- const M = R("KTooltip");
3522
+ const M = B("KTooltip");
3515
3523
  return h(), S("span", {
3516
3524
  ref_key: "contentRef",
3517
3525
  ref: s,
3518
3526
  class: "content-wrapper"
3519
3527
  }, [
3520
- i.value ? (h(), S("span", Xo, [
3528
+ i.value ? (h(), S("span", el, [
3521
3529
  N(M, {
3522
3530
  "max-width": "300",
3523
3531
  placement: "bottomStart",
@@ -3532,10 +3540,10 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3532
3540
  ], 512);
3533
3541
  };
3534
3542
  }
3535
- }), tl = /* @__PURE__ */ re(el, [["__scopeId", "data-v-c4379fd4"]]), nl = { class: "toolbar-container" }, rl = {
3543
+ }), nl = /* @__PURE__ */ re(tl, [["__scopeId", "data-v-c4379fd4"]]), rl = { class: "toolbar-container" }, il = {
3536
3544
  key: 0,
3537
3545
  class: "toolbar-button-container"
3538
- }, il = ["data-testid"], al = /* @__PURE__ */ H({
3546
+ }, al = ["data-testid"], ol = /* @__PURE__ */ H({
3539
3547
  __name: "EntityBaseTable",
3540
3548
  props: {
3541
3549
  // table header configuration
@@ -3677,7 +3685,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3677
3685
  "data-rowid": y.id,
3678
3686
  "data-testid": y.name,
3679
3687
  ...n.rowAttributes(y)
3680
- }), d = B({}), c = (y) => {
3688
+ }), d = R({}), c = (y) => {
3681
3689
  var g;
3682
3690
  return (g = d.value) == null ? void 0 : g.$el.querySelector(`[data-rowid="${y.id}"]`);
3683
3691
  }, p = (y) => {
@@ -3708,7 +3716,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3708
3716
  n.preferencesStorageKey && M(n.preferencesStorageKey, y);
3709
3717
  };
3710
3718
  return (y, g) => {
3711
- const $ = R("KIcon"), F = R("KButton"), _ = R("KDropdown"), j = R("KTable"), T = R("KCard");
3719
+ const $ = B("KIcon"), F = B("KButton"), _ = B("KDropdown"), j = B("KTable"), T = B("KCard");
3712
3720
  return h(), K(T, {
3713
3721
  class: "kong-ui-entity-base-table",
3714
3722
  title: e.title,
@@ -3746,9 +3754,9 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3746
3754
  "onUpdate:tablePreferences": m
3747
3755
  }, _e({
3748
3756
  toolbar: x(({ state: w }) => [
3749
- he(L("div", nl, [
3757
+ he(L("div", rl, [
3750
3758
  Y(y.$slots, "toolbar-filter", {}, void 0, !0),
3751
- y.$slots["toolbar-button"] ? (h(), S("div", rl, [
3759
+ y.$slots["toolbar-button"] ? (h(), S("div", il, [
3752
3760
  Y(y.$slots, "toolbar-button", {}, void 0, !0)
3753
3761
  ])) : D("", !0)
3754
3762
  ], 512), [
@@ -3789,14 +3797,14 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3789
3797
  ]),
3790
3798
  _: 2
3791
3799
  }, 1032, ["width"])
3792
- ], 8, il)
3800
+ ], 8, al)
3793
3801
  ]),
3794
3802
  _: 2
3795
3803
  }, [
3796
3804
  ie(e.tableHeaders, (w, U) => ({
3797
3805
  name: U,
3798
3806
  fn: x(({ row: q, rowKey: J, rowValue: pe }) => [
3799
- N(tl, {
3807
+ N(nl, {
3800
3808
  "key-name": String(U),
3801
3809
  "row-el": c(q)
3802
3810
  }, {
@@ -3826,13 +3834,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3826
3834
  }, 8, ["title", "title-tag"]);
3827
3835
  };
3828
3836
  }
3829
- }), Ul = /* @__PURE__ */ re(al, [["__scopeId", "data-v-99908c24"]]), ol = {
3837
+ }), ql = /* @__PURE__ */ re(ol, [["__scopeId", "data-v-99908c24"]]), ll = {
3830
3838
  key: 0,
3831
3839
  class: "kong-ui-entity-delete-error"
3832
- }, ll = {
3840
+ }, sl = {
3833
3841
  key: 1,
3834
3842
  class: "description"
3835
- }, sl = /* @__PURE__ */ H({
3843
+ }, cl = /* @__PURE__ */ H({
3836
3844
  __name: "EntityDeleteModal",
3837
3845
  props: {
3838
3846
  visible: {
@@ -3877,7 +3885,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3877
3885
  i("proceed");
3878
3886
  };
3879
3887
  return (s, u) => {
3880
- const d = R("KAlert"), c = R("KPrompt");
3888
+ const d = B("KAlert"), c = B("KPrompt");
3881
3889
  return h(), K(c, {
3882
3890
  "action-button-appearance": "danger",
3883
3891
  "action-button-disabled": e.actionPending,
@@ -3890,7 +3898,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3890
3898
  onProceed: l
3891
3899
  }, {
3892
3900
  default: x(() => [
3893
- e.error ? (h(), S("div", ol, [
3901
+ e.error ? (h(), S("div", ll, [
3894
3902
  N(d, { appearance: "danger" }, {
3895
3903
  default: x(() => [
3896
3904
  V(O(e.error), 1)
@@ -3916,7 +3924,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3916
3924
  key: "0"
3917
3925
  } : void 0
3918
3926
  ]), 1032, ["keypath"]),
3919
- r.description || s.$slots.description ? (h(), S("div", ll, [
3927
+ r.description || s.$slots.description ? (h(), S("div", sl, [
3920
3928
  Y(s.$slots, "description", {}, () => [
3921
3929
  L("p", null, O(r.description), 1)
3922
3930
  ], !0)
@@ -3926,13 +3934,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3926
3934
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
3927
3935
  };
3928
3936
  }
3929
- }), ql = /* @__PURE__ */ re(sl, [["__scopeId", "data-v-4361d622"]]), cl = {
3937
+ }), Pl = /* @__PURE__ */ re(cl, [["__scopeId", "data-v-4361d622"]]), ul = {
3930
3938
  fill: "none",
3931
3939
  height: "20",
3932
3940
  viewBox: "0 0 20 20",
3933
3941
  width: "20",
3934
3942
  xmlns: "http://www.w3.org/2000/svg"
3935
- }, ul = {
3943
+ }, dl = {
3936
3944
  id: "mask0_180_20349",
3937
3945
  height: "20",
3938
3946
  maskUnits: "userSpaceOnUse",
@@ -3940,7 +3948,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3940
3948
  width: "20",
3941
3949
  x: "0",
3942
3950
  y: "0"
3943
- }, dl = ["fill"], fl = { mask: "url(#mask0_180_20349)" }, pl = ["fill"], Et = /* @__PURE__ */ H({
3951
+ }, fl = ["fill"], pl = { mask: "url(#mask0_180_20349)" }, hl = ["fill"], Et = /* @__PURE__ */ H({
3944
3952
  __name: "IconFilter",
3945
3953
  props: {
3946
3954
  color: {
@@ -3949,26 +3957,26 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3949
3957
  }
3950
3958
  },
3951
3959
  setup(e) {
3952
- return (t, n) => (h(), S("svg", cl, [
3953
- L("mask", ul, [
3960
+ return (t, n) => (h(), S("svg", ul, [
3961
+ L("mask", dl, [
3954
3962
  L("rect", {
3955
3963
  fill: e.color,
3956
3964
  height: "20",
3957
3965
  width: "20"
3958
- }, null, 8, dl)
3966
+ }, null, 8, fl)
3959
3967
  ]),
3960
- L("g", fl, [
3968
+ L("g", pl, [
3961
3969
  L("path", {
3962
3970
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
3963
3971
  fill: e.color
3964
- }, null, 8, pl)
3972
+ }, null, 8, hl)
3965
3973
  ])
3966
3974
  ]));
3967
3975
  }
3968
- }), hl = {
3976
+ }), ml = {
3969
3977
  key: 1,
3970
3978
  class: "kong-ui-entity-filter"
3971
- }, ml = { class: "kong-ui-entity-filter-menu" }, gl = ["data-testid"], yl = ["onClick", "onKeydown"], vl = { class: "menu-item-indicator" }, bl = { class: "menu-item-body" }, xl = ["for"], Cl = { class: "menu-item-buttons" }, _l = { class: "filter-clear-button-container" }, kl = /* @__PURE__ */ H({
3979
+ }, gl = { class: "kong-ui-entity-filter-menu" }, yl = ["data-testid"], vl = ["onClick", "onKeydown"], bl = { class: "menu-item-indicator" }, xl = { class: "menu-item-body" }, Cl = ["for"], _l = { class: "menu-item-buttons" }, kl = { class: "filter-clear-button-container" }, Al = /* @__PURE__ */ H({
3972
3980
  __name: "EntityFilter",
3973
3981
  props: {
3974
3982
  // filter config, either exact match or fuzzy match
@@ -3988,7 +3996,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
3988
3996
  },
3989
3997
  emits: ["update:modelValue"],
3990
3998
  setup(e, { emit: t }) {
3991
- const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = k(() => {
3999
+ const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = R(!1), o = R({}), l = R(/* @__PURE__ */ new Set()), s = k(() => {
3992
4000
  const m = [];
3993
4001
  return new URLSearchParams(r.modelValue).forEach((y, g) => {
3994
4002
  y !== "" && m.push(g);
@@ -4035,7 +4043,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4035
4043
  m && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4036
4044
  };
4037
4045
  return (m, y) => {
4038
- const g = R("KInput"), $ = R("KButton"), F = R("KSelect");
4046
+ const g = B("KInput"), $ = B("KButton"), F = B("KSelect");
4039
4047
  return e.config.isExactMatch ? (h(), K(g, {
4040
4048
  key: 0,
4041
4049
  autocomplete: "off",
@@ -4057,7 +4065,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4057
4065
  ])
4058
4066
  ]),
4059
4067
  _: 1
4060
- }, 8, ["model-value", "placeholder"])) : (h(), S("div", hl, [
4068
+ }, 8, ["model-value", "placeholder"])) : (h(), S("div", ml, [
4061
4069
  N($, {
4062
4070
  appearance: "tertiary",
4063
4071
  "data-testid": "filter-button",
@@ -4075,7 +4083,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4075
4083
  }, null, 512), [
4076
4084
  [me, a.value]
4077
4085
  ]),
4078
- he(L("div", ml, [
4086
+ he(L("div", gl, [
4079
4087
  (h(!0), S(le, null, ie(u.value, (_) => {
4080
4088
  var j, T;
4081
4089
  return h(), S("div", {
@@ -4091,19 +4099,19 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4091
4099
  onKeydown: Ln((w) => c(_.value), ["enter"])
4092
4100
  }, [
4093
4101
  V(O(_.label) + " ", 1),
4094
- he(L("span", vl, null, 512), [
4102
+ he(L("span", bl, null, 512), [
4095
4103
  [me, s.value.includes(_.value)]
4096
4104
  ]),
4097
4105
  N(I(Lo), {
4098
4106
  class: ue(["menu-item-expand-icon", { expanded: l.value.has(_.value) }]),
4099
4107
  color: I(Ar)
4100
4108
  }, null, 8, ["class", "color"])
4101
- ], 42, yl),
4102
- he(L("div", bl, [
4109
+ ], 42, vl),
4110
+ he(L("div", xl, [
4103
4111
  L("label", {
4104
4112
  class: "menu-item-label",
4105
4113
  for: b(_.value)
4106
- }, O(I(n)("filter.fieldLabel")), 9, xl),
4114
+ }, O(I(n)("filter.fieldLabel")), 9, Cl),
4107
4115
  ((T = (j = e.config.schema) == null ? void 0 : j[_.value]) == null ? void 0 : T.type) === "select" ? (h(), K(F, {
4108
4116
  key: 0,
4109
4117
  id: b(_.value),
@@ -4123,7 +4131,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4123
4131
  ], 512), [
4124
4132
  [me, l.value.has(_.value)]
4125
4133
  ]),
4126
- he(L("div", Cl, [
4134
+ he(L("div", _l, [
4127
4135
  N($, {
4128
4136
  appearance: "tertiary",
4129
4137
  "data-testid": "apply-filter",
@@ -4149,9 +4157,9 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4149
4157
  ], 512), [
4150
4158
  [me, l.value.has(_.value)]
4151
4159
  ])
4152
- ], 8, gl);
4160
+ ], 8, yl);
4153
4161
  }), 128)),
4154
- L("div", _l, [
4162
+ L("div", kl, [
4155
4163
  N($, {
4156
4164
  appearance: "tertiary",
4157
4165
  size: "small",
@@ -4169,7 +4177,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4169
4177
  ]));
4170
4178
  };
4171
4179
  }
4172
- }), Pl = /* @__PURE__ */ re(kl, [["__scopeId", "data-v-8cfadde3"]]), Hl = /* @__PURE__ */ H({
4180
+ }), Hl = /* @__PURE__ */ re(Al, [["__scopeId", "data-v-8cfadde3"]]), Vl = /* @__PURE__ */ H({
4173
4181
  __name: "EntityToggleModal",
4174
4182
  props: {
4175
4183
  visible: {
@@ -4201,7 +4209,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4201
4209
  },
4202
4210
  emits: ["cancel", "proceed"],
4203
4211
  setup(e, { emit: t }) {
4204
- const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = B(!1), l = k(
4212
+ const { i18n: { t: n }, i18nT: r } = z.useI18n(), i = e, a = t, o = R(!1), l = k(
4205
4213
  () => i.action === "enable" ? n("toggleModal.enable.title", { entityType: i.entityType }) : n("toggleModal.disable.title", { entityType: i.entityType })
4206
4214
  ), s = k(
4207
4215
  () => i.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
@@ -4218,7 +4226,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4218
4226
  }
4219
4227
  };
4220
4228
  return (c, p) => {
4221
- const f = R("KPrompt");
4229
+ const f = B("KPrompt");
4222
4230
  return h(), K(Nn, { to: "body" }, [
4223
4231
  N(f, {
4224
4232
  "action-button-disabled": o.value,
@@ -4248,7 +4256,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4248
4256
  ]);
4249
4257
  };
4250
4258
  }
4251
- }), Vl = /* @__PURE__ */ H({
4259
+ }), Yl = /* @__PURE__ */ H({
4252
4260
  __name: "PermissionsWrapper",
4253
4261
  props: {
4254
4262
  /**
@@ -4270,7 +4278,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4270
4278
  }
4271
4279
  },
4272
4280
  setup(e) {
4273
- const t = e, n = B(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4281
+ const t = e, n = R(void 0), r = k(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4274
4282
  return Ae(() => t.authFunction, async () => {
4275
4283
  n.value = await t.authFunction();
4276
4284
  }, { immediate: !0 }), (i, a) => r.value ? Y(i.$slots, "default", {
@@ -4278,13 +4286,13 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4278
4286
  isAllowed: n.value
4279
4287
  }) : D("", !0);
4280
4288
  }
4281
- }), Al = { class: "form-section-wrapper" }, wl = {
4289
+ }), wl = { class: "form-section-wrapper" }, Sl = {
4282
4290
  key: 1,
4283
4291
  class: "form-section-description"
4284
- }, Sl = {
4292
+ }, Il = {
4285
4293
  key: 2,
4286
4294
  class: "form-section-footer"
4287
- }, Il = { class: "form-section-content" }, El = /* @__PURE__ */ H({
4295
+ }, El = { class: "form-section-content" }, Tl = /* @__PURE__ */ H({
4288
4296
  __name: "EntityFormSection",
4289
4297
  props: {
4290
4298
  title: {
@@ -4317,7 +4325,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4317
4325
  return (n, r) => (h(), S("fieldset", {
4318
4326
  class: ue(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4319
4327
  }, [
4320
- L("div", Al, [
4328
+ L("div", wl, [
4321
4329
  e.hideInfoHeader ? D("", !0) : (h(), S("div", {
4322
4330
  key: 0,
4323
4331
  class: ue(["form-section-info", { sticky: e.stickyInfoHeader }])
@@ -4331,28 +4339,28 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4331
4339
  ]),
4332
4340
  _: 1
4333
4341
  })) : D("", !0),
4334
- e.description || I(t).description ? (h(), S("div", wl, [
4342
+ e.description || I(t).description ? (h(), S("div", Sl, [
4335
4343
  Y(n.$slots, "description", {}, () => [
4336
4344
  L("p", null, O(e.description), 1)
4337
4345
  ], !0)
4338
4346
  ])) : D("", !0),
4339
- I(t).footer ? (h(), S("div", Sl, [
4347
+ I(t).footer ? (h(), S("div", Il, [
4340
4348
  Y(n.$slots, "footer", {}, void 0, !0)
4341
4349
  ])) : D("", !0)
4342
4350
  ], 2)),
4343
- L("div", Il, [
4351
+ L("div", El, [
4344
4352
  Y(n.$slots, "default", {}, void 0, !0)
4345
4353
  ])
4346
4354
  ])
4347
4355
  ], 2));
4348
4356
  }
4349
- }), Yl = /* @__PURE__ */ re(El, [["__scopeId", "data-v-4bb31634"]]), Tl = {
4357
+ }), zl = /* @__PURE__ */ re(Tl, [["__scopeId", "data-v-4bb31634"]]), Fl = {
4350
4358
  class: "kong-ui-public-entity-link",
4351
4359
  "data-testid": "entity-link-parent"
4352
- }, Fl = {
4360
+ }, Ol = {
4353
4361
  key: 0,
4354
4362
  class: "deleted-entity"
4355
- }, Ol = { key: 1 }, $l = ["onClick"], Ll = /* @__PURE__ */ H({
4363
+ }, $l = { key: 1 }, Ll = ["onClick"], Nl = /* @__PURE__ */ H({
4356
4364
  __name: "EntityLink",
4357
4365
  props: {
4358
4366
  entityLinkData: {
@@ -4376,15 +4384,15 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4376
4384
  }
4377
4385
  },
4378
4386
  setup(e) {
4379
- const t = e, n = B(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = B(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), u = k(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (c) => {
4387
+ const t = e, n = R(), { isTruncated: r } = z.useTruncationDetector(n), { i18n: { t: i } } = z.useI18n(), a = i("global.actions.copyId"), o = R(a), l = k(() => t.entityLinkData.deleted ?? !1), s = k(() => t.entityLinkData.id.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id), u = k(() => `${s.value.toString().slice(0, 5)} (deleted)`), d = async (c) => {
4380
4388
  await c(s.value || "") && (o.value = i("global.actions.copyToClipboard"), setTimeout(() => {
4381
4389
  o.value = a;
4382
4390
  }, 1800));
4383
4391
  };
4384
4392
  return (c, p) => {
4385
- const f = R("KTooltip"), b = R("KExternalLink"), v = R("KClipboardProvider");
4386
- return h(), S("div", Tl, [
4387
- l.value ? (h(), S("div", Fl, O(u.value), 1)) : s.value ? s.value ? (h(), K(b, {
4393
+ const f = B("KTooltip"), b = B("KExternalLink"), v = B("KClipboardProvider");
4394
+ return h(), S("div", Fl, [
4395
+ l.value ? (h(), S("div", Ol, O(u.value), 1)) : s.value ? s.value ? (h(), K(b, {
4388
4396
  key: 2,
4389
4397
  class: "entity-link",
4390
4398
  "hide-icon": !e.newWindow,
@@ -4406,7 +4414,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4406
4414
  }, 8, ["text"])
4407
4415
  ]),
4408
4416
  _: 1
4409
- }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div", Ol, O(" – "))),
4417
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div", $l, O(" – "))),
4410
4418
  s.value && e.allowCopy ? (h(), K(f, {
4411
4419
  key: o.value,
4412
4420
  class: "copy-uuid-tooltip",
@@ -4427,7 +4435,7 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4427
4435
  "data-testid": "copy-id",
4428
4436
  size: I(Ir)
4429
4437
  }, null, 8, ["color", "size"])
4430
- ], 8, $l)
4438
+ ], 8, Ll)
4431
4439
  ]),
4432
4440
  _: 1
4433
4441
  })
@@ -4437,37 +4445,37 @@ const co = { class: "yaml-config" }, Sn = /* @__PURE__ */ H({
4437
4445
  ]);
4438
4446
  };
4439
4447
  }
4440
- }), zl = /* @__PURE__ */ re(Ll, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: Wl, useDeleteUrlBuilder: Jl, useErrors: Gl, useExternalLinkCreator: Zl, useFetchUrlBuilder: Ql, useFetcher: Xl, useDebouncedFilter: es, useStringHelpers: ts, useHelpers: ns, useGatewayFeatureSupported: rs, useTruncationDetector: is, useValidators: as } = z;
4448
+ }), Wl = /* @__PURE__ */ re(Nl, [["__scopeId", "data-v-ff8e5179"]]), { useAxios: Jl, useDeleteUrlBuilder: Gl, useErrors: Zl, useExternalLinkCreator: Ql, useFetchUrlBuilder: Xl, useFetcher: es, useDebouncedFilter: ts, useStringHelpers: ns, useHelpers: rs, useGatewayFeatureSupported: is, useTruncationDetector: as, useValidators: os } = z;
4441
4449
  export {
4442
4450
  mo as ConfigCardDisplay,
4443
- Bt as ConfigCardItem,
4451
+ Rt as ConfigCardItem,
4444
4452
  ne as ConfigurationSchemaSection,
4445
4453
  P as ConfigurationSchemaType,
4446
- Dl as EntityBaseConfigCard,
4447
- jl as EntityBaseForm,
4454
+ jl as EntityBaseConfigCard,
4455
+ Ul as EntityBaseForm,
4448
4456
  jn as EntityBaseFormType,
4449
- Ul as EntityBaseTable,
4450
- ql as EntityDeleteModal,
4451
- Pl as EntityFilter,
4452
- Yl as EntityFormSection,
4453
- zl as EntityLink,
4454
- Hl as EntityToggleModal,
4457
+ ql as EntityBaseTable,
4458
+ Pl as EntityDeleteModal,
4459
+ Hl as EntityFilter,
4460
+ zl as EntityFormSection,
4461
+ Wl as EntityLink,
4462
+ Vl as EntityToggleModal,
4455
4463
  Dn as EntityTypes,
4456
4464
  ve as FetcherStatus,
4457
4465
  br as InternalLinkItem,
4458
4466
  Kt as JsonCodeBlock,
4459
- Vl as PermissionsWrapper,
4467
+ Yl as PermissionsWrapper,
4460
4468
  Sn as YamlCodeBlock,
4461
- Wl as useAxios,
4462
- es as useDebouncedFilter,
4463
- Jl as useDeleteUrlBuilder,
4464
- Gl as useErrors,
4465
- Zl as useExternalLinkCreator,
4466
- Ql as useFetchUrlBuilder,
4467
- Xl as useFetcher,
4468
- rs as useGatewayFeatureSupported,
4469
- ns as useHelpers,
4470
- ts as useStringHelpers,
4471
- is as useTruncationDetector,
4472
- as as useValidators
4469
+ Jl as useAxios,
4470
+ ts as useDebouncedFilter,
4471
+ Gl as useDeleteUrlBuilder,
4472
+ Zl as useErrors,
4473
+ Ql as useExternalLinkCreator,
4474
+ Xl as useFetchUrlBuilder,
4475
+ es as useFetcher,
4476
+ is as useGatewayFeatureSupported,
4477
+ rs as useHelpers,
4478
+ ns as useStringHelpers,
4479
+ as as useTruncationDetector,
4480
+ os as useValidators
4473
4481
  };