@kong-ui-public/entities-consumers 2.2.6 → 2.2.7-pr.940.1b2ea2c1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as ke, withCtx as y, createElementVNode as K, createTextVNode as W, toDisplayString as j, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as ka, reactive as Nt } from "vue";
1
+ import { defineComponent as te, ref as O, computed as $, watch as he, renderSlot as Y, createCommentVNode as G, unref as g, useSlots as We, onBeforeMount as mt, resolveComponent as P, openBlock as m, createBlock as R, createSlots as ke, withCtx as h, createElementVNode as K, createTextVNode as W, toDisplayString as j, createVNode as F, createElementBlock as T, renderList as de, Fragment as fe, normalizeClass as Ae, withModifiers as De, withDirectives as Be, vShow as qe, useCssVars as ma, resolveDynamicComponent as Ee, normalizeProps as ga, guardReactiveProps as ya, mergeProps as st, onMounted as ha, onUnmounted as va, normalizeStyle as un, inject as ba, pushScopeId as cn, popScopeId as dn, Teleport as ka, reactive as Nt } from "vue";
2
2
  import { useRouter as gt } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as pn } from "@kong-ui-public/i18n";
4
4
  import Ca from "axios";
@@ -22,7 +22,10 @@ const Ia = {
22
22
  },
23
23
  title: "Consumers",
24
24
  search: {
25
- placeholder: "Filter by name"
25
+ placeholder: {
26
+ konnect: "Filter by name",
27
+ kongManager: "Filter by exact username or ID"
28
+ }
26
29
  },
27
30
  actions: {
28
31
  add_consumer: "Add Consumer",
@@ -351,14 +354,14 @@ function La(e, n, t, a = {
351
354
  headers: e.requestHeaders
352
355
  }), { i18n: { t: o } } = vt(), { debounce: i } = Sa(), s = i(async (_) => {
353
356
  await q(_);
354
- }, 200), l = O(!1), u = O(""), d = O(""), c = O([]), h = O([]), f = O(void 0), A = g(n);
357
+ }, 200), l = O(!1), u = O(""), d = O(""), c = O([]), y = O([]), f = O(void 0), A = g(n);
355
358
  let k = `${e.apiBaseUrl}${A}`;
356
359
  e.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
357
360
  const { isValidUuid: p } = mn(), S = async () => {
358
361
  try {
359
362
  l.value = !0;
360
363
  const { data: _ } = await r.get(`${k}?size=${t}`);
361
- _ != null && _.next || (f.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : []), h.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : [], c.value = h.value;
364
+ _ != null && _.next || (f.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : []), y.value = a.fetchedItemsKey in _ ? _[a.fetchedItemsKey] : [], c.value = y.value;
362
365
  } catch {
363
366
  c.value = [], u.value = o("debouncedFilter.errors.fetch");
364
367
  } finally {
@@ -393,7 +396,7 @@ function La(e, n, t, a = {
393
396
  });
394
397
  });
395
398
  } else
396
- c.value = h.value;
399
+ c.value = y.value;
397
400
  } catch (b) {
398
401
  ((N = b == null ? void 0 : b.response) == null ? void 0 : N.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (c.value = [], u.value = o("debouncedFilter.errors.fetch"));
399
402
  } finally {
@@ -472,10 +475,10 @@ function gn(e, n) {
472
475
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
473
476
  );
474
477
  return (i) => {
475
- const { page: s, pageSize: l, offset: u, sortColumnKey: d, sortColumnOrder: c, query: h } = i;
478
+ const { page: s, pageSize: l, offset: u, sortColumnKey: d, sortColumnOrder: c, query: y } = i;
476
479
  try {
477
480
  let f = new URL(o.value.href);
478
- return r.value && h ? (f.search = "", f = new URL(`${f.href}?filter[name][contains]=${h}`)) : (r.value || new URLSearchParams(h).forEach((A, k) => {
481
+ return r.value && y ? (f.search = "", f = t.value.app === "konnect" ? new URL(`${f.href}?filter[name][contains]=${y}`) : new URL(`${f.href}/${y}/`)) : (r.value || new URLSearchParams(y).forEach((A, k) => {
479
482
  f.searchParams.append(k, A);
480
483
  }), d && f.searchParams.append("sort_by", d), c === "desc" && f.searchParams.append("sort_desc", "1"), f.searchParams.append("size", String(l))), u && s !== 1 && f.searchParams.append("offset", String(u)), f.href;
481
484
  } catch (f) {
@@ -495,7 +498,7 @@ function Ua(e, n, t = "data") {
495
498
  const l = o(s), { data: u } = await r.get(l), d = t && t.replace(/[^\w-_]/gi, "");
496
499
  let c;
497
500
  u[d] && Array.isArray(u[d]) ? c = u[d] : Array.isArray(u) ? c = u : c = Object.keys(u).length ? [u] : [];
498
- const h = {
501
+ const y = {
499
502
  data: c,
500
503
  total: c.length,
501
504
  ...u.offset ? {
@@ -506,8 +509,8 @@ function Ua(e, n, t = "data") {
506
509
  };
507
510
  return i.value = {
508
511
  status: Ie.Idle,
509
- response: h
510
- }, h;
512
+ response: y
513
+ }, y;
511
514
  } catch (l) {
512
515
  const u = {
513
516
  data: [],
@@ -703,7 +706,7 @@ const re = {
703
706
  "data-testid": "kui-icon-wrapper-copy-icon",
704
707
  style: un(a.value)
705
708
  }, {
706
- default: y(() => [
709
+ default: h(() => [
707
710
  (m(), T("svg", {
708
711
  "aria-hidden": e.decorative ? "true" : void 0,
709
712
  "data-testid": "kui-icon-svg-copy-icon",
@@ -778,15 +781,15 @@ const re = {
778
781
  maxWidth: "500px",
779
782
  placement: "bottomStart"
780
783
  } : {}), u = $(() => {
781
- var h;
782
- return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(h = t.uuid) == null ? void 0 : h.substring(0, 5)}` : t.uuid;
783
- }), d = (h) => {
784
- s.value = h, setTimeout(() => {
784
+ var y;
785
+ return t.format === "redacted" ? "*****" : t.format === "deleted" ? `*${(y = t.uuid) == null ? void 0 : y.substring(0, 5)}` : t.uuid;
786
+ }), d = (y) => {
787
+ s.value = y, setTimeout(() => {
785
788
  s.value = t.tooltip;
786
789
  }, 1800);
787
- }, c = (h) => {
790
+ }, c = (y) => {
788
791
  var f, A;
789
- if (!h(t.uuid)) {
792
+ if (!y(t.uuid)) {
790
793
  typeof r == "function" && r({
791
794
  type: "error",
792
795
  message: a("message.fail")
@@ -799,11 +802,11 @@ const re = {
799
802
  message: `${p}${a("message.success.content")}`
800
803
  }), i.value ? d(t.successTooltip) : n("success", t.uuid);
801
804
  };
802
- return (h, f) => {
805
+ return (y, f) => {
803
806
  const A = P("KClipboardProvider");
804
807
  return m(), T("div", cr, [
805
808
  e.format !== "hidden" ? (m(), R(Ee(e.idTooltip ? "KTooltip" : "div"), st({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
806
- default: y(() => [
809
+ default: h(() => [
807
810
  K("div", {
808
811
  class: Ae([
809
812
  "uuid-container",
@@ -815,9 +818,9 @@ const re = {
815
818
  _: 1
816
819
  }, 16)) : G("", !0),
817
820
  (m(), R(Ee(e.tooltip ? "KTooltip" : "div"), st(l.value, { class: "uuid-icon-wrapper" }), {
818
- default: y(() => [
821
+ default: h(() => [
819
822
  F(A, null, {
820
- default: y(({ copyToClipboard: k }) => [
823
+ default: h(({ copyToClipboard: k }) => [
821
824
  K("span", {
822
825
  "data-testid": "copy-to-clipboard",
823
826
  role: "button",
@@ -876,7 +879,7 @@ const re = {
876
879
  return (l, u) => (m(), R(Ee(e.isArrayItem ? "fieldset" : "div"), {
877
880
  class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
878
881
  }, {
879
- default: y(() => [
882
+ default: h(() => [
880
883
  e.isArrayItem ? (m(), T("legend", mr, [
881
884
  K("b", null, j(s.value), 1)
882
885
  ])) : G("", !0),
@@ -916,7 +919,7 @@ const re = {
916
919
  class: "navigation-button",
917
920
  onClick: a[0] || (a[0] = (o) => t.$emit("navigation-click", e.item))
918
921
  }, {
919
- default: y(() => [
922
+ default: h(() => [
920
923
  W(j(e.item.value || g(n)("baseConfigCard.commonFields.link")), 1)
921
924
  ]),
922
925
  _: 1
@@ -939,7 +942,7 @@ const re = {
939
942
  return m(), R(r, {
940
943
  appearance: e.status ? "success" : "neutral"
941
944
  }, {
942
- default: y(() => [
945
+ default: h(() => [
943
946
  W(j(e.status ? g(n)("baseConfigCard.statusBadge.enabledLabel") : g(n)("baseConfigCard.statusBadge.disabledLabel")), 1)
944
947
  ]),
945
948
  _: 1
@@ -1102,7 +1105,7 @@ const re = {
1102
1105
  text: t.item.value
1103
1106
  };
1104
1107
  }
1105
- }), c = O(), { isTruncated: h } = re.useTruncationDetector(c);
1108
+ }), c = O(), { isTruncated: y } = re.useTruncationDetector(c);
1106
1109
  return (f, A) => {
1107
1110
  const k = P("KLabel"), p = P("KBadge"), S = P("KTooltip");
1108
1111
  return m(), T("div", _r, [
@@ -1112,14 +1115,14 @@ const re = {
1112
1115
  }, [
1113
1116
  Y(f.$slots, "label", { item: e.item }, () => [
1114
1117
  F(k, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
1115
- default: y(() => [
1118
+ default: h(() => [
1116
1119
  W(j(e.item.label) + " ", 1)
1117
1120
  ]),
1118
1121
  _: 2
1119
1122
  }, [
1120
1123
  s.value ? {
1121
1124
  name: "tooltip",
1122
- fn: y(() => [
1125
+ fn: h(() => [
1123
1126
  K("div", {
1124
1127
  "data-testid": `${e.item.key}-label-tooltip`
1125
1128
  }, [
@@ -1142,7 +1145,7 @@ const re = {
1142
1145
  }, () => [
1143
1146
  i.value ? (m(), T("div", $r, [
1144
1147
  (m(), R(Ee(d.value.tag), ga(ya(d.value.attrs)), {
1145
- default: y(() => [
1148
+ default: h(() => [
1146
1149
  d.value.additionalComponent === "KBadge" ? (m(), T("div", {
1147
1150
  key: 0,
1148
1151
  "data-testid": `${e.item.key}-badge-tags`
@@ -1154,7 +1157,7 @@ const re = {
1154
1157
  tooltip: v,
1155
1158
  "truncation-tooltip": ""
1156
1159
  }, {
1157
- default: y(() => [
1160
+ default: h(() => [
1158
1161
  W(j(v), 1)
1159
1162
  ]),
1160
1163
  _: 2
@@ -1181,7 +1184,7 @@ const re = {
1181
1184
  class: "config-badge",
1182
1185
  "data-testid": `${e.item.key}-badge-method-${q}`
1183
1186
  }, {
1184
- default: y(() => [
1187
+ default: h(() => [
1185
1188
  W(j(v), 1)
1186
1189
  ]),
1187
1190
  _: 2
@@ -1199,9 +1202,9 @@ const re = {
1199
1202
  }, null, 8, ["index", "item"]))), 128))
1200
1203
  ], 8, Er)) : (m(), R(S, {
1201
1204
  key: 4,
1202
- label: g(h) ? e.item.value : ""
1205
+ label: g(y) ? e.item.value : ""
1203
1206
  }, {
1204
- default: y(() => [
1207
+ default: h(() => [
1205
1208
  K("span", {
1206
1209
  ref_key: "textContent",
1207
1210
  ref: c,
@@ -1666,7 +1669,7 @@ function bo(e) {
1666
1669
  return e === null ? !1 : En.exec(e) !== null || Fn.exec(e) !== null;
1667
1670
  }
1668
1671
  function ko(e) {
1669
- var n, t, a, r, o, i, s, l = 0, u = null, d, c, h;
1672
+ var n, t, a, r, o, i, s, l = 0, u = null, d, c, y;
1670
1673
  if (n = En.exec(e), n === null && (n = Fn.exec(e)), n === null)
1671
1674
  throw new Error("Date resolve error");
1672
1675
  if (t = +n[1], a = +n[2] - 1, r = +n[3], !n[4])
@@ -1676,7 +1679,7 @@ function ko(e) {
1676
1679
  l += "0";
1677
1680
  l = +l;
1678
1681
  }
1679
- return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), h = new Date(Date.UTC(t, a, r, o, i, s, l)), u && h.setTime(h.getTime() - u), h;
1682
+ return n[9] && (d = +n[10], c = +(n[11] || 0), u = (d * 60 + c) * 6e4, n[9] === "-" && (u = -u)), y = new Date(Date.UTC(t, a, r, o, i, s, l)), u && y.setTime(y.getTime() - u), y;
1680
1683
  }
1681
1684
  function Co(e) {
1682
1685
  return e.toISOString();
@@ -1951,7 +1954,7 @@ function It(e, n) {
1951
1954
  `, n - 1));
1952
1955
  }
1953
1956
  function Ho(e, n, t) {
1954
- var a, r, o, i, s, l, u, d, c = e.kind, h = e.result, f;
1957
+ var a, r, o, i, s, l, u, d, c = e.kind, y = e.result, f;
1955
1958
  if (f = e.input.charCodeAt(e.position), pe(f) || Me(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) && (r = e.input.charCodeAt(e.position + 1), pe(r) || t && Me(r)))
1956
1959
  return !1;
1957
1960
  for (e.kind = "scalar", e.result = "", o = i = e.position, s = !1; f !== 0; ) {
@@ -1975,7 +1978,7 @@ function Ho(e, n, t) {
1975
1978
  }
1976
1979
  s && (Ce(e, o, i, !1), It(e, e.line - l), o = i = e.position, s = !1), _e(f) || (i = e.position + 1), f = e.input.charCodeAt(++e.position);
1977
1980
  }
1978
- return Ce(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = h, !1);
1981
+ return Ce(e, o, i, !1), e.result ? !0 : (e.kind = c, e.result = y, !1);
1979
1982
  }
1980
1983
  function zo(e, n) {
1981
1984
  var t, a, r;
@@ -2016,7 +2019,7 @@ function Jo(e, n) {
2016
2019
  M(e, "unexpected end of the stream within a double quoted scalar");
2017
2020
  }
2018
2021
  function Yo(e, n) {
2019
- var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, h, f, A = /* @__PURE__ */ Object.create(null), k, p, S, v;
2022
+ var t = !0, a, r, o, i = e.tag, s, l = e.anchor, u, d, c, y, f, A = /* @__PURE__ */ Object.create(null), k, p, S, v;
2020
2023
  if (v = e.input.charCodeAt(e.position), v === 91)
2021
2024
  d = 93, f = !1, s = [];
2022
2025
  else if (v === 123)
@@ -2026,7 +2029,7 @@ function Yo(e, n) {
2026
2029
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), v = e.input.charCodeAt(++e.position); v !== 0; ) {
2027
2030
  if (ne(e, !0, n), v = e.input.charCodeAt(e.position), v === d)
2028
2031
  return e.position++, e.tag = i, e.anchor = l, e.kind = f ? "mapping" : "sequence", e.result = s, !0;
2029
- t ? v === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), p = k = S = null, c = h = !1, v === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = h = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, k = e.result, ne(e, !0, n), v = e.input.charCodeAt(e.position), (h || e.line === a) && v === 58 && (c = !0, v = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, k, S, a, r, o) : c ? s.push(Oe(e, null, A, p, k, S, a, r, o)) : s.push(k), ne(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (t = !0, v = e.input.charCodeAt(++e.position)) : t = !1;
2032
+ t ? v === 44 && M(e, "expected the node content, but found ','") : M(e, "missed comma between flow collection entries"), p = k = S = null, c = y = !1, v === 63 && (u = e.input.charCodeAt(e.position + 1), pe(u) && (c = y = !0, e.position++, ne(e, !0, n))), a = e.line, r = e.lineStart, o = e.position, Fe(e, n, Ge, !1, !0), p = e.tag, k = e.result, ne(e, !0, n), v = e.input.charCodeAt(e.position), (y || e.line === a) && v === 58 && (c = !0, v = e.input.charCodeAt(++e.position), ne(e, !0, n), Fe(e, n, Ge, !1, !0), S = e.result), f ? Oe(e, s, A, p, k, S, a, r, o) : c ? s.push(Oe(e, null, A, p, k, S, a, r, o)) : s.push(k), ne(e, !0, n), v = e.input.charCodeAt(e.position), v === 44 ? (t = !0, v = e.input.charCodeAt(++e.position)) : t = !1;
2030
2033
  }
2031
2034
  M(e, "unexpected end of the stream within a flow collection");
2032
2035
  }
@@ -2094,12 +2097,12 @@ function Zt(e, n) {
2094
2097
  return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
2095
2098
  }
2096
2099
  function Zo(e, n, t) {
2097
- var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, h = /* @__PURE__ */ Object.create(null), f = null, A = null, k = null, p = !1, S = !1, v;
2100
+ var a, r, o, i, s, l, u = e.tag, d = e.anchor, c = {}, y = /* @__PURE__ */ Object.create(null), f = null, A = null, k = null, p = !1, S = !1, v;
2098
2101
  if (e.firstTabInLine !== -1)
2099
2102
  return !1;
2100
2103
  for (e.anchor !== null && (e.anchorMap[e.anchor] = c), v = e.input.charCodeAt(e.position); v !== 0; ) {
2101
2104
  if (!p && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, M(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), o = e.line, (v === 63 || v === 58) && pe(a))
2102
- v === 63 ? (p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = a;
2105
+ v === 63 ? (p && (Oe(e, c, y, f, A, null, i, s, l), f = A = k = null), S = !0, p = !0, r = !0) : p ? (p = !1, r = !0) : M(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, v = a;
2103
2106
  else {
2104
2107
  if (i = e.line, s = e.lineStart, l = e.position, !Fe(e, t, Vn, !1, !0))
2105
2108
  break;
@@ -2107,7 +2110,7 @@ function Zo(e, n, t) {
2107
2110
  for (v = e.input.charCodeAt(e.position); _e(v); )
2108
2111
  v = e.input.charCodeAt(++e.position);
2109
2112
  if (v === 58)
2110
- v = e.input.charCodeAt(++e.position), pe(v) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, h, f, A, null, i, s, l), f = A = k = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
2113
+ v = e.input.charCodeAt(++e.position), pe(v) || M(e, "a whitespace character is expected after the key-value separator within a block mapping"), p && (Oe(e, c, y, f, A, null, i, s, l), f = A = k = null), S = !0, p = !1, r = !1, f = e.tag, A = e.result;
2111
2114
  else if (S)
2112
2115
  M(e, "can not read an implicit mapping pair; a colon is missed");
2113
2116
  else
@@ -2117,12 +2120,12 @@ function Zo(e, n, t) {
2117
2120
  else
2118
2121
  return e.tag = u, e.anchor = d, !0;
2119
2122
  }
2120
- if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : k = e.result), p || (Oe(e, c, h, f, A, k, i, s, l), f = A = k = null), ne(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && v !== 0)
2123
+ if ((e.line === o || e.lineIndent > n) && (p && (i = e.line, s = e.lineStart, l = e.position), Fe(e, n, He, !0, r) && (p ? A = e.result : k = e.result), p || (Oe(e, c, y, f, A, k, i, s, l), f = A = k = null), ne(e, !0, -1), v = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > n) && v !== 0)
2121
2124
  M(e, "bad indentation of a mapping entry");
2122
2125
  else if (e.lineIndent < n)
2123
2126
  break;
2124
2127
  }
2125
- return p && Oe(e, c, h, f, A, null, i, s, l), S && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), S;
2128
+ return p && Oe(e, c, y, f, A, null, i, s, l), S && (e.tag = u, e.anchor = d, e.kind = "mapping", e.result = c), S;
2126
2129
  }
2127
2130
  function Qo(e) {
2128
2131
  var n, t = !1, a = !1, r, o, i;
@@ -2163,14 +2166,14 @@ function ei(e) {
2163
2166
  return e.position === n && M(e, "name of an alias node must contain at least one character"), t = e.input.slice(n, e.position), we.call(e.anchorMap, t) || M(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
2164
2167
  }
2165
2168
  function Fe(e, n, t, a, r) {
2166
- var o, i, s, l = 1, u = !1, d = !1, c, h, f, A, k, p;
2169
+ var o, i, s, l = 1, u = !1, d = !1, c, y, f, A, k, p;
2167
2170
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = i = s = He === t || Rn === t, a && ne(e, !0, -1) && (u = !0, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)), l === 1)
2168
2171
  for (; Qo(e) || Xo(e); )
2169
2172
  ne(e, !0, -1) ? (u = !0, s = o, e.lineIndent > n ? l = 1 : e.lineIndent === n ? l = 0 : e.lineIndent < n && (l = -1)) : s = !1;
2170
2173
  if (s && (s = u || r), (l === 1 || He === t) && (Ge === t || Vn === t ? k = n : k = n + 1, p = e.position - e.lineStart, l === 1 ? s && (Zt(e, p) || Zo(e, p, k)) || Yo(e, k) ? d = !0 : (i && Wo(e, k) || zo(e, k) || Jo(e, k) ? d = !0 : ei(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && M(e, "alias node should not have any properties")) : Ho(e, k, Ge === t) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (d = s && Zt(e, p))), e.tag === null)
2171
2174
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2172
2175
  else if (e.tag === "?") {
2173
- for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, h = e.implicitTypes.length; c < h; c += 1)
2176
+ for (e.result !== null && e.kind !== "scalar" && M(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), c = 0, y = e.implicitTypes.length; c < y; c += 1)
2174
2177
  if (A = e.implicitTypes[c], A.resolve(e.result)) {
2175
2178
  e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2176
2179
  break;
@@ -2179,7 +2182,7 @@ function Fe(e, n, t, a, r) {
2179
2182
  if (we.call(e.typeMap[e.kind || "fallback"], e.tag))
2180
2183
  A = e.typeMap[e.kind || "fallback"][e.tag];
2181
2184
  else
2182
- for (A = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, h = f.length; c < h; c += 1)
2185
+ for (A = null, f = e.typeMap.multi[e.kind || "fallback"], c = 0, y = f.length; c < y; c += 1)
2183
2186
  if (e.tag.slice(0, f[c].tag.length) === f[c].tag) {
2184
2187
  A = f[c];
2185
2188
  break;
@@ -2359,7 +2362,7 @@ function aa(e) {
2359
2362
  }
2360
2363
  var ra = 1, pt = 2, oa = 3, ia = 4, je = 5;
2361
2364
  function Mi(e, n, t, a, r, o, i, s) {
2362
- var l, u = 0, d = null, c = !1, h = !1, f = a !== -1, A = -1, k = $i(Ne(e, 0)) && ji(Ne(e, e.length - 1));
2365
+ var l, u = 0, d = null, c = !1, y = !1, f = a !== -1, A = -1, k = $i(Ne(e, 0)) && ji(Ne(e, e.length - 1));
2363
2366
  if (n || i)
2364
2367
  for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2365
2368
  if (u = Ne(e, l), !Re(u))
@@ -2369,15 +2372,15 @@ function Mi(e, n, t, a, r, o, i, s) {
2369
2372
  else {
2370
2373
  for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2371
2374
  if (u = Ne(e, l), u === Pe)
2372
- c = !0, f && (h = h || // Foldable line = too long, and not more-indented.
2375
+ c = !0, f && (y = y || // Foldable line = too long, and not more-indented.
2373
2376
  l - A - 1 > a && e[A + 1] !== " ", A = l);
2374
2377
  else if (!Re(u))
2375
2378
  return je;
2376
2379
  k = k && en(u, d, s), d = u;
2377
2380
  }
2378
- h = h || f && l - A - 1 > a && e[A + 1] !== " ";
2381
+ y = y || f && l - A - 1 > a && e[A + 1] !== " ";
2379
2382
  }
2380
- return !c && !h ? k && !i && !r(e) ? ra : o === Ve ? je : pt : t > 9 && aa(e) ? je : i ? o === Ve ? je : pt : h ? ia : oa;
2383
+ return !c && !y ? k && !i && !r(e) ? ra : o === Ve ? je : pt : t > 9 && aa(e) ? je : i ? o === Ve ? je : pt : y ? ia : oa;
2381
2384
  }
2382
2385
  function Oi(e, n, t, a, r) {
2383
2386
  e.dump = function() {
@@ -2473,7 +2476,7 @@ function Ni(e, n, t) {
2473
2476
  e.tag = r, e.dump = "{" + a + "}";
2474
2477
  }
2475
2478
  function Bi(e, n, t, a) {
2476
- var r = "", o = e.tag, i = Object.keys(t), s, l, u, d, c, h;
2479
+ var r = "", o = e.tag, i = Object.keys(t), s, l, u, d, c, y;
2477
2480
  if (e.sortKeys === !0)
2478
2481
  i.sort();
2479
2482
  else if (typeof e.sortKeys == "function")
@@ -2481,7 +2484,7 @@ function Bi(e, n, t, a) {
2481
2484
  else if (e.sortKeys)
2482
2485
  throw new se("sortKeys must be a boolean or a function");
2483
2486
  for (s = 0, l = i.length; s < l; s += 1)
2484
- h = "", (!a || r !== "") && (h += dt(e, n)), u = i[s], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), be(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Pe === e.dump.charCodeAt(0) ? h += "?" : h += "? "), h += e.dump, c && (h += dt(e, n)), be(e, n + 1, d, !0, c) && (e.dump && Pe === e.dump.charCodeAt(0) ? h += ":" : h += ": ", h += e.dump, r += h));
2487
+ y = "", (!a || r !== "") && (y += dt(e, n)), u = i[s], d = t[u], e.replacer && (d = e.replacer.call(t, u, d)), be(e, n + 1, u, !0, !0, !0) && (c = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, c && (e.dump && Pe === e.dump.charCodeAt(0) ? y += "?" : y += "? "), y += e.dump, c && (y += dt(e, n)), be(e, n + 1, d, !0, c) && (e.dump && Pe === e.dump.charCodeAt(0) ? y += ":" : y += ": ", y += e.dump, r += y));
2485
2488
  e.tag = o, e.dump = r || "{}";
2486
2489
  }
2487
2490
  function on(e, n, t) {
@@ -2505,14 +2508,14 @@ function be(e, n, t, a, r, o, i) {
2505
2508
  e.tag = null, e.dump = t, on(e, t, !1) || on(e, t, !0);
2506
2509
  var s = Wn.call(e.dump), l = a, u;
2507
2510
  a && (a = e.flowLevel < 0 || e.flowLevel > n);
2508
- var d = s === "[object Object]" || s === "[object Array]", c, h;
2509
- if (d && (c = e.duplicates.indexOf(t), h = c !== -1), (e.tag !== null && e.tag !== "?" || h || e.indent !== 2 && n > 0) && (r = !1), h && e.usedDuplicates[c])
2511
+ var d = s === "[object Object]" || s === "[object Array]", c, y;
2512
+ if (d && (c = e.duplicates.indexOf(t), y = c !== -1), (e.tag !== null && e.tag !== "?" || y || e.indent !== 2 && n > 0) && (r = !1), y && e.usedDuplicates[c])
2510
2513
  e.dump = "*ref_" + c;
2511
2514
  else {
2512
- if (d && h && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
2513
- a && Object.keys(e.dump).length !== 0 ? (Bi(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ni(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2515
+ if (d && y && !e.usedDuplicates[c] && (e.usedDuplicates[c] = !0), s === "[object Object]")
2516
+ a && Object.keys(e.dump).length !== 0 ? (Bi(e, n, e.dump, r), y && (e.dump = "&ref_" + c + e.dump)) : (Ni(e, n, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
2514
2517
  else if (s === "[object Array]")
2515
- a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), h && (e.dump = "&ref_" + c + e.dump)) : (Ki(e, n, e.dump), h && (e.dump = "&ref_" + c + " " + e.dump));
2518
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !i && n > 0 ? rn(e, n - 1, e.dump, r) : rn(e, n, e.dump, r), y && (e.dump = "&ref_" + c + e.dump)) : (Ki(e, n, e.dump), y && (e.dump = "&ref_" + c + " " + e.dump));
2516
2519
  else if (s === "[object String]")
2517
2520
  e.tag !== "?" && Oi(e, e.dump, n, o, l);
2518
2521
  else {
@@ -2648,20 +2651,20 @@ const as = {
2648
2651
  key: c.key,
2649
2652
  item: c
2650
2653
  }, ke({
2651
- label: y(() => [
2654
+ label: h(() => [
2652
2655
  Y(s.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2653
2656
  ]),
2654
- [c.key]: y(({ rowValue: h }) => [
2657
+ [c.key]: h(({ rowValue: y }) => [
2655
2658
  Y(s.$slots, c.key, {
2656
2659
  row: c,
2657
- rowValue: h
2660
+ rowValue: y
2658
2661
  }, void 0, !0)
2659
2662
  ]),
2660
2663
  _: 2
2661
2664
  }, [
2662
2665
  r(c) ? {
2663
2666
  name: "label-tooltip",
2664
- fn: y(() => [
2667
+ fn: h(() => [
2665
2668
  Y(s.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2666
2669
  ]),
2667
2670
  key: "0"
@@ -2774,7 +2777,7 @@ const as = {
2774
2777
  "data-testid": "kui-icon-wrapper-book-icon",
2775
2778
  style: un(a.value)
2776
2779
  }, {
2777
- default: y(() => [
2780
+ default: h(() => [
2778
2781
  (m(), T("svg", {
2779
2782
  "aria-hidden": e.decorative ? "true" : void 0,
2780
2783
  "data-testid": "kui-icon-svg-book-icon",
@@ -2894,7 +2897,7 @@ const as = {
2894
2897
  }
2895
2898
  ], d = O("structured"), c = (b) => {
2896
2899
  d.value = b == null ? void 0 : b.value;
2897
- }, h = {
2900
+ }, y = {
2898
2901
  id: {
2899
2902
  type: X.ID,
2900
2903
  label: o("baseConfigCard.commonFields.id_label"),
@@ -2934,7 +2937,7 @@ const as = {
2934
2937
  return [];
2935
2938
  const B = [], I = Object.keys(p.value).length;
2936
2939
  for (const E in p.value) {
2937
- const L = (C = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = (V = h[E]) == null ? void 0 : V.order;
2940
+ const L = (C = (b = a.configSchema) == null ? void 0 : b[E]) == null ? void 0 : C.order, D = (V = y[E]) == null ? void 0 : V.order;
2938
2941
  let Z = I;
2939
2942
  (D || D === 0) && (Z = D === -1 ? I + 1 : D), L && (Z = L === -1 ? I + 1 : L), B.push([E, Z]);
2940
2943
  }
@@ -2942,7 +2945,7 @@ const as = {
2942
2945
  return E[1] - L[1];
2943
2946
  }), B.map((E) => {
2944
2947
  var L, D;
2945
- const Z = E[0], z = (L = p.value) == null ? void 0 : L[Z], Q = ((D = a.configSchema) == null ? void 0 : D[Z]) || {}, le = h[Z];
2948
+ const Z = E[0], z = (L = p.value) == null ? void 0 : L[Z], Q = ((D = a.configSchema) == null ? void 0 : D[Z]) || {}, le = y[Z];
2946
2949
  return {
2947
2950
  key: Z,
2948
2951
  value: z,
@@ -3020,7 +3023,7 @@ const as = {
3020
3023
  }), (b, C) => {
3021
3024
  const V = P("KLabel"), B = P("KSelect"), I = P("KButton"), E = P("KClipboardProvider"), L = P("KSkeleton"), D = P("KEmptyState"), Z = P("KCard");
3022
3025
  return m(), R(Z, { class: "kong-ui-entity-base-config-card" }, ke({
3023
- actions: y(() => [
3026
+ actions: h(() => [
3024
3027
  K("div", vs, [
3025
3028
  Y(b.$slots, "actions", {}, void 0, !0),
3026
3029
  e.config.jsonYamlEnabled ? (m(), R(V, {
@@ -3028,7 +3031,7 @@ const as = {
3028
3031
  class: "config-format-select-label",
3029
3032
  "data-testid": "config-format-select-label"
3030
3033
  }, {
3031
- default: y(() => [
3034
+ default: h(() => [
3032
3035
  W(j(e.label), 1)
3033
3036
  ]),
3034
3037
  _: 1
@@ -3046,7 +3049,7 @@ const as = {
3046
3049
  class: "book-icon",
3047
3050
  "data-testid": "book-icon"
3048
3051
  }, {
3049
- default: y(() => [
3052
+ default: h(() => [
3050
3053
  K("a", {
3051
3054
  href: e.configCardDoc,
3052
3055
  rel: "noopener",
@@ -3058,14 +3061,14 @@ const as = {
3058
3061
  _: 1
3059
3062
  })) : G("", !0),
3060
3063
  e.config.jsonYamlEnabled ? G("", !0) : (m(), R(E, { key: 3 }, {
3061
- default: y(({ copyToClipboard: z }) => [
3064
+ default: h(({ copyToClipboard: z }) => [
3062
3065
  !f.value && !A.value ? (m(), R(I, {
3063
3066
  key: 0,
3064
3067
  appearance: "tertiary",
3065
3068
  "data-testid": "json-copy-button",
3066
3069
  onClick: (Q) => U(z)
3067
3070
  }, {
3068
- default: y(() => [
3071
+ default: h(() => [
3069
3072
  W(j(g(o)("baseConfigCard.actions.copy")), 1)
3070
3073
  ]),
3071
3074
  _: 2
@@ -3075,7 +3078,7 @@ const as = {
3075
3078
  }))
3076
3079
  ])
3077
3080
  ]),
3078
- default: y(() => [
3081
+ default: h(() => [
3079
3082
  f.value ? (m(), R(L, {
3080
3083
  key: 0,
3081
3084
  "data-testid": "config-card-loader",
@@ -3086,7 +3089,7 @@ const as = {
3086
3089
  "data-testid": "config-card-fetch-error",
3087
3090
  "is-error": ""
3088
3091
  }, {
3089
- message: y(() => [
3092
+ message: h(() => [
3090
3093
  K("h3", null, j(k.value), 1)
3091
3094
  ]),
3092
3095
  _: 1
@@ -3100,7 +3103,7 @@ const as = {
3100
3103
  }, ke({ _: 2 }, [
3101
3104
  de(Object.keys(b.$slots), (z) => ({
3102
3105
  name: z,
3103
- fn: y(({ row: Q, rowValue: le }) => [
3106
+ fn: h(({ row: Q, rowValue: le }) => [
3104
3107
  Y(b.$slots, z, {
3105
3108
  row: Q,
3106
3109
  rowValue: le
@@ -3119,10 +3122,10 @@ const as = {
3119
3122
  key: Q.key,
3120
3123
  item: Q
3121
3124
  }, ke({
3122
- label: y(() => [
3125
+ label: h(() => [
3123
3126
  Y(b.$slots, `${Q.key}-label`, { row: Q }, void 0, !0)
3124
3127
  ]),
3125
- [Q.key]: y(({ rowValue: le }) => [
3128
+ [Q.key]: h(({ rowValue: le }) => [
3126
3129
  Y(b.$slots, Q.key, {
3127
3130
  row: Q,
3128
3131
  rowValue: le
@@ -3132,7 +3135,7 @@ const as = {
3132
3135
  }, [
3133
3136
  w(Q) ? {
3134
3137
  name: "label-tooltip",
3135
- fn: y(() => [
3138
+ fn: h(() => [
3136
3139
  Y(b.$slots, `${Q.key}-label-tooltip`, { row: Q }, void 0, !0)
3137
3140
  ]),
3138
3141
  key: "0"
@@ -3145,7 +3148,7 @@ const as = {
3145
3148
  }, [
3146
3149
  e.hideTitle ? void 0 : {
3147
3150
  name: "title",
3148
- fn: y(() => [
3151
+ fn: h(() => [
3149
3152
  K("div", hs, [
3150
3153
  Y(b.$slots, "title", {}, () => [
3151
3154
  W(j(g(o)("baseConfigCard.title")), 1)
@@ -3212,7 +3215,7 @@ const as = {
3212
3215
  var t;
3213
3216
  const a = e, r = gt(), { i18n: { t: o } } = re.useI18n(), { getMessageFromError: i } = re.useErrors(), { axiosInstance: s } = re.useAxios({
3214
3217
  headers: (t = a.config) == null ? void 0 : t.requestHeaders
3215
- }), l = O(!1), u = O(!1), d = O(""), c = $(() => a.canSubmit === !1 || a.isReadonly), h = $(() => {
3218
+ }), l = O(!1), u = O(!1), d = O(""), c = $(() => a.canSubmit === !1 || a.isReadonly), y = $(() => {
3216
3219
  var p, S;
3217
3220
  if (!a.editId)
3218
3221
  return "";
@@ -3231,7 +3234,7 @@ const as = {
3231
3234
  if (a.editId)
3232
3235
  try {
3233
3236
  u.value = !1, l.value = !0;
3234
- const { data: p } = await s.get(h.value);
3237
+ const { data: p } = await s.get(y.value);
3235
3238
  n("fetch:success", p);
3236
3239
  } catch (p) {
3237
3240
  const S = i(p);
@@ -3242,7 +3245,7 @@ const as = {
3242
3245
  }), (p, S) => {
3243
3246
  const v = P("KSkeleton"), q = P("KEmptyState"), _ = P("KAlert"), w = P("KButton"), N = P("KCard");
3244
3247
  return m(), R(N, { class: "kong-ui-entity-base-form" }, {
3245
- default: y(() => [
3248
+ default: h(() => [
3246
3249
  l.value ? (m(), R(v, {
3247
3250
  key: 0,
3248
3251
  type: "form"
@@ -3253,7 +3256,7 @@ const as = {
3253
3256
  "handle-click": f,
3254
3257
  "is-error": !0
3255
3258
  }, {
3256
- message: y(() => [
3259
+ message: h(() => [
3257
3260
  K("h3", null, j(d.value), 1)
3258
3261
  ]),
3259
3262
  _: 1
@@ -3278,7 +3281,7 @@ const as = {
3278
3281
  disabled: e.isReadonly,
3279
3282
  type: "reset"
3280
3283
  }, {
3281
- default: y(() => [
3284
+ default: h(() => [
3282
3285
  W(j(g(o)("baseForm.actions.cancel")), 1)
3283
3286
  ]),
3284
3287
  _: 1
@@ -3289,7 +3292,7 @@ const as = {
3289
3292
  disabled: c.value,
3290
3293
  type: "submit"
3291
3294
  }, {
3292
- default: y(() => [
3295
+ default: h(() => [
3293
3296
  W(j(g(o)("baseForm.actions.save")), 1)
3294
3297
  ]),
3295
3298
  _: 1
@@ -3335,8 +3338,8 @@ const as = {
3335
3338
  }, s = () => {
3336
3339
  var k, p, S;
3337
3340
  u.value = ((k = a.value) == null ? void 0 : k.getBoundingClientRect().width) || 0, d.value = ((p = t.value) == null ? void 0 : p.clientWidth) || 0, c.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3338
- }, l = O({}), u = O(0), d = O(0), c = O(""), h = $(() => [a.value, t.value]), f = he(
3339
- h,
3341
+ }, l = O({}), u = O(0), d = O(0), c = O(""), y = $(() => [a.value, t.value]), f = he(
3342
+ y,
3340
3343
  (k) => {
3341
3344
  if (r.value && (i(), "ResizeObserver" in window && window)) {
3342
3345
  o = new ResizeObserver((p) => {
@@ -3367,7 +3370,7 @@ const as = {
3367
3370
  "max-width": "300",
3368
3371
  placement: "bottomStart"
3369
3372
  }, {
3370
- default: y(() => [
3373
+ default: h(() => [
3371
3374
  Y(k.$slots, "default", {}, void 0, !0)
3372
3375
  ]),
3373
3376
  _: 3
@@ -3530,7 +3533,7 @@ const as = {
3530
3533
  overflowX: "hidden",
3531
3534
  textOverflow: "ellipsis"
3532
3535
  }), w;
3533
- }, h = () => {
3536
+ }, y = () => {
3534
3537
  n("empty-state-cta-clicked"), f();
3535
3538
  }, f = () => {
3536
3539
  n("clear-search-input");
@@ -3553,7 +3556,7 @@ const as = {
3553
3556
  class: "kong-ui-entity-base-table",
3554
3557
  title: e.title
3555
3558
  }, {
3556
- default: y(() => [
3559
+ default: h(() => [
3557
3560
  F(C, {
3558
3561
  ref_key: "tableRefs",
3559
3562
  ref: u,
@@ -3581,12 +3584,12 @@ const as = {
3581
3584
  "pagination-type": e.paginationType,
3582
3585
  "row-attrs": l,
3583
3586
  "search-input": e.query,
3584
- onKtableEmptyStateCtaClicked: h,
3587
+ onKtableEmptyStateCtaClicked: y,
3585
3588
  "onRow:click": A.value,
3586
3589
  onSort: w[0] || (w[0] = (B) => k(B)),
3587
3590
  "onUpdate:tablePreferences": q
3588
3591
  }, ke({
3589
- toolbar: y(({ state: B }) => [
3592
+ toolbar: h(({ state: B }) => [
3590
3593
  Be(K("div", Es, [
3591
3594
  Y(_.$slots, "toolbar-filter", {}, void 0, !0),
3592
3595
  _.$slots["toolbar-button"] ? (m(), T("div", Fs, [
@@ -3596,7 +3599,7 @@ const as = {
3596
3599
  [qe, i(B)]
3597
3600
  ])
3598
3601
  ]),
3599
- actions: y(({ row: B, rowKey: I, rowValue: E }) => [
3602
+ actions: h(({ row: B, rowKey: I, rowValue: E }) => [
3600
3603
  K("div", {
3601
3604
  class: "actions-container",
3602
3605
  "data-testid": B.name
@@ -3605,20 +3608,20 @@ const as = {
3605
3608
  "kpop-attributes": { placement: "bottomEnd" },
3606
3609
  width: e.dropdownMenuWidth
3607
3610
  }, {
3608
- items: y(() => [
3611
+ items: h(() => [
3609
3612
  Y(_.$slots, "actions", {
3610
3613
  row: B,
3611
3614
  rowKey: I,
3612
3615
  rowValue: E
3613
3616
  }, void 0, !0)
3614
3617
  ]),
3615
- default: y(() => [
3618
+ default: h(() => [
3616
3619
  F(U, {
3617
3620
  class: "actions-trigger",
3618
3621
  "data-testid": "overflow-actions-button",
3619
3622
  size: "small"
3620
3623
  }, {
3621
- icon: y(() => [
3624
+ icon: h(() => [
3622
3625
  F(N, {
3623
3626
  color: g(Cr),
3624
3627
  icon: "more",
@@ -3636,12 +3639,12 @@ const as = {
3636
3639
  }, [
3637
3640
  de(e.tableHeaders, (B, I) => ({
3638
3641
  name: I,
3639
- fn: y(({ row: E, rowKey: L, rowValue: D }) => [
3642
+ fn: h(({ row: E, rowKey: L, rowValue: D }) => [
3640
3643
  F(Os, {
3641
3644
  "key-name": String(I),
3642
3645
  "row-el": d(E)
3643
3646
  }, {
3644
- default: y(() => [
3647
+ default: h(() => [
3645
3648
  Y(_.$slots, I, {
3646
3649
  row: E,
3647
3650
  rowKey: L,
@@ -3723,10 +3726,10 @@ const as = {
3723
3726
  onCanceled: o,
3724
3727
  onProceed: i
3725
3728
  }, {
3726
- "body-content": y(() => [
3729
+ "body-content": h(() => [
3727
3730
  e.error ? (m(), T("div", qs, [
3728
3731
  F(u, { appearance: "danger" }, {
3729
- alertMessage: y(() => [
3732
+ alertMessage: h(() => [
3730
3733
  W(j(e.error), 1)
3731
3734
  ]),
3732
3735
  _: 1
@@ -3737,14 +3740,14 @@ const as = {
3737
3740
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3738
3741
  tag: "p"
3739
3742
  }, ke({
3740
- entityType: y(() => [
3743
+ entityType: h(() => [
3741
3744
  W(j(t.entityType), 1)
3742
3745
  ]),
3743
3746
  _: 2
3744
3747
  }, [
3745
3748
  t.entityName ? {
3746
3749
  name: "entityName",
3747
- fn: y(() => [
3750
+ fn: h(() => [
3748
3751
  K("strong", null, j(t.entityName), 1)
3749
3752
  ]),
3750
3753
  key: "0"
@@ -3849,7 +3852,7 @@ const as = {
3849
3852
  value: q,
3850
3853
  label: q
3851
3854
  }));
3852
- }, h = (p) => {
3855
+ }, y = (p) => {
3853
3856
  var S, v;
3854
3857
  return ((v = (S = t.config.schema) == null ? void 0 : S[p]) == null ? void 0 : v.type) ?? "text";
3855
3858
  }, f = (p) => {
@@ -3874,7 +3877,7 @@ const as = {
3874
3877
  placeholder: e.config.placeholder,
3875
3878
  "onUpdate:modelValue": u
3876
3879
  }, {
3877
- before: y(() => [
3880
+ before: h(() => [
3878
3881
  F(ln)
3879
3882
  ]),
3880
3883
  _: 1
@@ -3884,7 +3887,7 @@ const as = {
3884
3887
  "data-testid": "filter-button",
3885
3888
  onClick: l
3886
3889
  }, {
3887
- default: y(() => [
3890
+ default: h(() => [
3888
3891
  F(ln),
3889
3892
  W(" " + j(g(a)("filter.filterButtonText")) + " " + j(i.value.length > 0 ? `(${i.value.length})` : ""), 1)
3890
3893
  ]),
@@ -3897,14 +3900,14 @@ const as = {
3897
3900
  [qe, r.value]
3898
3901
  ]),
3899
3902
  Be(F(N, { class: "kong-ui-entity-filter-menu" }, {
3900
- body: y(() => [
3903
+ body: h(() => [
3901
3904
  (m(!0), T(fe, null, de(s.value, (U, b) => (m(), R(w, {
3902
3905
  key: U.value,
3903
3906
  "data-testid": U.value,
3904
3907
  expandable: "",
3905
3908
  "last-menu-item": b === s.value.length - 1
3906
3909
  }, {
3907
- itemTitle: y(() => [
3910
+ itemTitle: h(() => [
3908
3911
  K("span", Js, [
3909
3912
  W(j(U.label) + " ", 1),
3910
3913
  Be(K("span", Ys, null, 512), [
@@ -3912,7 +3915,7 @@ const as = {
3912
3915
  ])
3913
3916
  ])
3914
3917
  ]),
3915
- itemBody: y(() => {
3918
+ itemBody: h(() => {
3916
3919
  var C, V;
3917
3920
  return [
3918
3921
  K("div", Ws, [
@@ -3935,7 +3938,7 @@ const as = {
3935
3938
  "onUpdate:modelValue": (B) => o.value[U.value] = B,
3936
3939
  autocomplete: "off",
3937
3940
  placeholder: g(a)("filter.inputPlaceholder"),
3938
- type: h(U.value)
3941
+ type: y(U.value)
3939
3942
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
3940
3943
  ]),
3941
3944
  K("div", Qs, [
@@ -3945,7 +3948,7 @@ const as = {
3945
3948
  size: "small",
3946
3949
  onClick: S[0] || (S[0] = (B) => k(!0))
3947
3950
  }, {
3948
- default: y(() => [
3951
+ default: h(() => [
3949
3952
  W(j(g(a)("filter.applyButtonText")), 1)
3950
3953
  ]),
3951
3954
  _: 1
@@ -3956,7 +3959,7 @@ const as = {
3956
3959
  size: "small",
3957
3960
  onClick: (B) => f(U.value)
3958
3961
  }, {
3959
- default: y(() => [
3962
+ default: h(() => [
3960
3963
  W(j(g(a)("filter.clearButtonText")), 1)
3961
3964
  ]),
3962
3965
  _: 2
@@ -3967,14 +3970,14 @@ const as = {
3967
3970
  _: 2
3968
3971
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
3969
3972
  ]),
3970
- actionButton: y(() => [
3973
+ actionButton: h(() => [
3971
3974
  K("div", Xs, [
3972
3975
  F(q, {
3973
3976
  appearance: "tertiary",
3974
3977
  size: "small",
3975
3978
  onClick: A
3976
3979
  }, {
3977
- default: y(() => [
3980
+ default: h(() => [
3978
3981
  W(j(g(a)("filter.clearAllButtonText")), 1)
3979
3982
  ]),
3980
3983
  _: 1
@@ -4118,7 +4121,7 @@ const as = {
4118
4121
  fetchedItemsKey: "data",
4119
4122
  searchKeys: ["username", "id"]
4120
4123
  }
4121
- ), h = (I) => I, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), k = $(() => l.value === void 0), p = $(() => c.value.map((I) => ({
4124
+ ), y = (I) => I, f = $(() => u.value ? a("consumers.errors.general") : ""), A = O(0), k = $(() => l.value === void 0), p = $(() => c.value.map((I) => ({
4122
4125
  label: I.username || I.customId,
4123
4126
  value: I.id,
4124
4127
  selected: o.value.includes(I.id),
@@ -4183,7 +4186,7 @@ const as = {
4183
4186
  onCanceled: v,
4184
4187
  onProceed: N
4185
4188
  }, {
4186
- "body-content": y(() => [
4189
+ "body-content": h(() => [
4187
4190
  K("div", fl, [
4188
4191
  K("p", ml, j(g(a)("consumers.consumer_groups.add.ctaText")), 1),
4189
4192
  F(L, {
@@ -4201,15 +4204,15 @@ const as = {
4201
4204
  width: "100%",
4202
4205
  onQueryChange: g(i)
4203
4206
  }, {
4204
- "item-template": y(({ item: z }) => [
4207
+ "item-template": h(({ item: z }) => [
4205
4208
  K("div", gl, j(z.label), 1),
4206
- h(z).data.username && h(z).data.custom_id ? (m(), T("div", yl, j(h(z).data.custom_id), 1)) : G("", !0)
4209
+ y(z).data.username && y(z).data.custom_id ? (m(), T("div", yl, j(y(z).data.custom_id), 1)) : G("", !0)
4207
4210
  ]),
4208
4211
  _: 1
4209
4212
  }, 8, ["modelValue", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly", "onQueryChange"]),
4210
4213
  w.value || f.value || C.value.length ? (m(), T("div", hl, [
4211
4214
  F(D, { appearance: "danger" }, {
4212
- alertMessage: y(() => [
4215
+ alertMessage: h(() => [
4213
4216
  K("p", null, j(g(a)("consumers.errors.add")), 1),
4214
4217
  C.value.length ? (m(), T("ul", vl, [
4215
4218
  (m(!0), T(fe, null, de(C.value, (z, Q) => (m(), T("li", { key: Q }, j(z), 1))), 128))
@@ -4283,7 +4286,7 @@ const as = {
4283
4286
  username: { label: r("consumers.list.table_headers.username"), searchable: !0, sortable: !0 },
4284
4287
  custom_id: { label: r("consumers.list.table_headers.custom_id"), searchable: !0, sortable: !0 },
4285
4288
  tags: { label: r("consumers.list.table_headers.tags"), sortable: !1 }
4286
- }, c = d, h = (x) => ({
4289
+ }, c = d, y = (x) => ({
4287
4290
  "data-testid": x.username ?? x.custom_id ?? x.id
4288
4291
  }), f = $(() => {
4289
4292
  var H, ee, ue, ge;
@@ -4293,7 +4296,7 @@ const as = {
4293
4296
  const x = t.config.app === "konnect" || t.config.isExactMatch;
4294
4297
  return x ? {
4295
4298
  isExactMatch: x,
4296
- placeholder: r("consumers.search.placeholder")
4299
+ placeholder: r(`consumers.search.placeholder.${t.config.app}`)
4297
4300
  } : {
4298
4301
  isExactMatch: x,
4299
4302
  fields: {
@@ -4422,7 +4425,7 @@ const as = {
4422
4425
  "pagination-type": "offset",
4423
4426
  "preferences-storage-key": "kong-ui-entities-consumers-list",
4424
4427
  query: A.value,
4425
- "row-attributes": h,
4428
+ "row-attributes": y,
4426
4429
  "table-headers": g(c),
4427
4430
  "use-action-outside": e.useActionOutside,
4428
4431
  onClearSearchInput: q,
@@ -4430,7 +4433,7 @@ const as = {
4430
4433
  onEmptyStateCtaClicked: sa,
4431
4434
  onSort: _
4432
4435
  }, {
4433
- "toolbar-filter": y(() => [
4436
+ "toolbar-filter": h(() => [
4434
4437
  l.value ? G("", !0) : (m(), R(g(tl), {
4435
4438
  key: 0,
4436
4439
  modelValue: A.value,
@@ -4438,7 +4441,7 @@ const as = {
4438
4441
  config: k.value
4439
4442
  }, null, 8, ["modelValue", "config"]))
4440
4443
  ]),
4441
- "toolbar-button": y(() => [
4444
+ "toolbar-button": h(() => [
4442
4445
  (m(), R(ka, {
4443
4446
  disabled: !e.useActionOutside,
4444
4447
  to: "#kong-ui-app-page-header-action-button"
@@ -4446,7 +4449,7 @@ const as = {
4446
4449
  F(g(Ue), {
4447
4450
  "auth-function": () => e.canCreate()
4448
4451
  }, {
4449
- default: y(() => [
4452
+ default: h(() => [
4450
4453
  Be(F(ee, {
4451
4454
  appearance: "primary",
4452
4455
  "data-testid": "toolbar-add-consumer",
@@ -4454,7 +4457,7 @@ const as = {
4454
4457
  to: e.config.consumerGroupId ? void 0 : e.config.createRoute,
4455
4458
  onClick: H[1] || (H[1] = () => e.config.consumerGroupId ? Tt() : void 0)
4456
4459
  }, {
4457
- default: y(() => [
4460
+ default: h(() => [
4458
4461
  W(j(e.config.consumerGroupId ? g(r)("consumers.actions.add_consumer") : g(r)("consumers.list.toolbar_actions.new_consumer")), 1)
4459
4462
  ]),
4460
4463
  _: 1
@@ -4466,21 +4469,21 @@ const as = {
4466
4469
  }, 8, ["auth-function"])
4467
4470
  ], 8, ["disabled"]))
4468
4471
  ]),
4469
- username: y(({ rowValue: J }) => [
4472
+ username: h(({ rowValue: J }) => [
4470
4473
  K("b", null, j(w(J)), 1)
4471
4474
  ]),
4472
- custom_id: y(({ rowValue: J }) => [
4475
+ custom_id: h(({ rowValue: J }) => [
4473
4476
  W(j(w(J)), 1)
4474
4477
  ]),
4475
- tags: y(({ rowValue: J }) => [
4478
+ tags: h(({ rowValue: J }) => [
4476
4479
  J && J.length > 0 ? (m(), R(ge, { key: 0 }, {
4477
- default: y(() => [
4480
+ default: h(() => [
4478
4481
  (m(!0), T(fe, null, de(J, (xe) => (m(), R(ue, {
4479
4482
  key: xe,
4480
4483
  onClick: H[2] || (H[2] = De(() => {
4481
4484
  }, ["stop"]))
4482
4485
  }, {
4483
- default: y(() => [
4486
+ default: h(() => [
4484
4487
  W(j(xe), 1)
4485
4488
  ]),
4486
4489
  _: 2
@@ -4489,14 +4492,14 @@ const as = {
4489
4492
  _: 2
4490
4493
  }, 1024)) : (m(), T("span", wl, "-"))
4491
4494
  ]),
4492
- actions: y(({ row: J }) => [
4495
+ actions: h(({ row: J }) => [
4493
4496
  F(Kt, null, {
4494
- default: y(({ copyToClipboard: xe }) => [
4497
+ default: h(({ copyToClipboard: xe }) => [
4495
4498
  F(Ke, {
4496
4499
  "data-testid": "action-entity-copy-id",
4497
4500
  onClick: (fa) => U(J, xe)
4498
4501
  }, {
4499
- default: y(() => [
4502
+ default: h(() => [
4500
4503
  W(j(g(r)("consumers.actions.copy_id")), 1)
4501
4504
  ]),
4502
4505
  _: 2
@@ -4505,12 +4508,12 @@ const as = {
4505
4508
  _: 2
4506
4509
  }, 1024),
4507
4510
  F(Kt, null, {
4508
- default: y(({ copyToClipboard: xe }) => [
4511
+ default: h(({ copyToClipboard: xe }) => [
4509
4512
  F(Ke, {
4510
4513
  "data-testid": "action-entity-copy-json",
4511
4514
  onClick: (fa) => b(J, xe)
4512
4515
  }, {
4513
- default: y(() => [
4516
+ default: h(() => [
4514
4517
  W(j(g(r)("consumers.actions.copy_json")), 1)
4515
4518
  ]),
4516
4519
  _: 2
@@ -4521,7 +4524,7 @@ const as = {
4521
4524
  F(g(Ue), {
4522
4525
  "auth-function": () => e.canRetrieve(J)
4523
4526
  }, {
4524
- default: y(() => [
4527
+ default: h(() => [
4525
4528
  F(Ke, {
4526
4529
  "data-testid": "action-entity-view",
4527
4530
  "has-divider": "",
@@ -4533,7 +4536,7 @@ const as = {
4533
4536
  F(g(Ue), {
4534
4537
  "auth-function": () => e.canEdit(J)
4535
4538
  }, {
4536
- default: y(() => [
4539
+ default: h(() => [
4537
4540
  F(Ke, {
4538
4541
  "data-testid": "action-entity-edit",
4539
4542
  item: B(J.id)
@@ -4544,14 +4547,14 @@ const as = {
4544
4547
  F(g(Ue), {
4545
4548
  "auth-function": () => e.canDelete(J)
4546
4549
  }, {
4547
- default: y(() => [
4550
+ default: h(() => [
4548
4551
  F(Ke, {
4549
4552
  danger: "",
4550
4553
  "data-testid": "action-entity-delete",
4551
4554
  "has-divider": "",
4552
4555
  onClick: () => e.config.consumerGroupId ? ua(J) : z(J)
4553
4556
  }, {
4554
- default: y(() => [
4557
+ default: h(() => [
4555
4558
  W(j(e.config.consumerGroupId ? g(r)("consumers.actions.remove") : g(r)("consumers.actions.delete")), 1)
4556
4559
  ]),
4557
4560
  _: 2
@@ -4592,20 +4595,20 @@ const as = {
4592
4595
  onCanceled: Mt,
4593
4596
  onProceed: da
4594
4597
  }, {
4595
- "body-content": y(() => [
4598
+ "body-content": h(() => [
4596
4599
  F(g(a), {
4597
4600
  class: "message",
4598
4601
  keypath: e.config.consumerGroupName ? "consumers.consumer_groups.remove.confirmation" : "consumers.consumer_groups.remove.confirmationNoCG",
4599
4602
  tag: "p"
4600
4603
  }, ke({
4601
- consumer: y(() => [
4604
+ consumer: h(() => [
4602
4605
  K("strong", null, j(ve.value.username || ve.value.custom_id || ve.value.id), 1)
4603
4606
  ]),
4604
4607
  _: 2
4605
4608
  }, [
4606
4609
  e.config.consumerGroupName ? {
4607
4610
  name: "consumerGroup",
4608
- fn: y(() => [
4611
+ fn: h(() => [
4609
4612
  K("strong", null, j(e.config.consumerGroupName), 1)
4610
4613
  ]),
4611
4614
  key: "0"
@@ -4618,7 +4621,7 @@ const as = {
4618
4621
  ]);
4619
4622
  };
4620
4623
  }
4621
- }), Pl = /* @__PURE__ */ xt(Il, [["__scopeId", "data-v-245027d1"]]), _l = { class: "kong-ui-entities-consumer-form" }, Al = { class: "fields-group-title" }, Sl = { class: "fields-group-text" }, xl = /* @__PURE__ */ te({
4624
+ }), Pl = /* @__PURE__ */ xt(Il, [["__scopeId", "data-v-38535d5a"]]), _l = { class: "kong-ui-entities-consumer-form" }, Al = { class: "fields-group-title" }, Sl = { class: "fields-group-text" }, xl = /* @__PURE__ */ te({
4622
4625
  __name: "ConsumerForm",
4623
4626
  props: {
4624
4627
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4657,7 +4660,7 @@ const as = {
4657
4660
  }), c = () => {
4658
4661
  var w;
4659
4662
  o.push(((w = t.config) == null ? void 0 : w.cancelRoute) || { name: "consumer-list" });
4660
- }, h = (w) => {
4663
+ }, y = (w) => {
4661
4664
  n("loading", w);
4662
4665
  }, f = (w) => {
4663
4666
  n("error", w);
@@ -4700,23 +4703,23 @@ const as = {
4700
4703
  onCancel: c,
4701
4704
  "onFetch:error": N[3] || (N[3] = (C) => f(C)),
4702
4705
  "onFetch:success": A,
4703
- onLoading: N[4] || (N[4] = (C) => h(C)),
4706
+ onLoading: N[4] || (N[4] = (C) => y(C)),
4704
4707
  onSubmit: q
4705
4708
  }, {
4706
- default: y(() => [
4709
+ default: h(() => [
4707
4710
  K("div", null, [
4708
4711
  F(g(ll), {
4709
4712
  description: g(r)("consumers.form.info.description"),
4710
4713
  "has-divider": "",
4711
4714
  title: g(r)("consumers.form.info.title")
4712
4715
  }, {
4713
- default: y(() => [
4716
+ default: h(() => [
4714
4717
  K("div", null, [
4715
4718
  K("h5", Al, j(g(r)("consumers.form.consumer_identification.title")) + "* ", 1),
4716
4719
  K("p", Sl, j(g(r)("consumers.form.consumer_identification.description")), 1)
4717
4720
  ]),
4718
4721
  F(b, null, {
4719
- default: y(() => [
4722
+ default: h(() => [
4720
4723
  F(U, {
4721
4724
  modelValue: l.fields.username,
4722
4725
  "onUpdate:modelValue": N[0] || (N[0] = (C) => l.fields.username = C),
@@ -4732,12 +4735,12 @@ const as = {
4732
4735
  readonly: l.readonly,
4733
4736
  type: "text"
4734
4737
  }, {
4735
- "label-tooltip": y(() => [
4738
+ "label-tooltip": h(() => [
4736
4739
  F(g(a), {
4737
4740
  keypath: "consumers.fields.username.tooltip",
4738
4741
  scope: "global"
4739
4742
  }, {
4740
- custom_id: y(() => [
4743
+ custom_id: h(() => [
4741
4744
  K("code", null, j(g(r)("consumers.fields.username.custom_id")), 1)
4742
4745
  ]),
4743
4746
  _: 1
@@ -4759,12 +4762,12 @@ const as = {
4759
4762
  readonly: l.readonly,
4760
4763
  type: "text"
4761
4764
  }, {
4762
- "label-tooltip": y(() => [
4765
+ "label-tooltip": h(() => [
4763
4766
  F(g(a), {
4764
4767
  keypath: "consumers.fields.custom_id.tooltip",
4765
4768
  scope: "global"
4766
4769
  }, {
4767
- username: y(() => [
4770
+ username: h(() => [
4768
4771
  K("code", null, j(g(r)("consumers.fields.custom_id.username")), 1)
4769
4772
  ]),
4770
4773
  _: 1
@@ -4865,23 +4868,23 @@ const as = {
4865
4868
  "onFetch:success": s[2] || (s[2] = (l) => i.$emit("fetch:success", l)),
4866
4869
  onLoading: s[3] || (s[3] = (l) => i.$emit("loading", l))
4867
4870
  }, {
4868
- "username-label-tooltip": y(() => [
4871
+ "username-label-tooltip": h(() => [
4869
4872
  F(g(a), {
4870
4873
  keypath: "consumers.fields.username.tooltip",
4871
4874
  scope: "global"
4872
4875
  }, {
4873
- custom_id: y(() => [
4876
+ custom_id: h(() => [
4874
4877
  K("code", null, j(g(t)("consumers.fields.username.custom_id")), 1)
4875
4878
  ]),
4876
4879
  _: 1
4877
4880
  })
4878
4881
  ]),
4879
- "custom_id-label-tooltip": y(() => [
4882
+ "custom_id-label-tooltip": h(() => [
4880
4883
  F(g(a), {
4881
4884
  keypath: "consumers.fields.custom_id.tooltip",
4882
4885
  scope: "global"
4883
4886
  }, {
4884
- username: y(() => [
4887
+ username: h(() => [
4885
4888
  K("code", null, j(g(t)("consumers.fields.custom_id.username")), 1)
4886
4889
  ]),
4887
4890
  _: 1