@kong-ui-public/entities-shared 3.30.1 → 3.30.2-pr.2484.4c241d5fa.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,10 +1,10 @@
1
- import { inject as jt, ref as R, computed as E, unref as T, toValue as me, watch as ve, toRef as qn, provide as Dt, defineComponent as J, createBlock as N, openBlock as m, resolveDynamicComponent as je, normalizeClass as de, withCtx as w, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as F, Fragment as ce, renderList as se, resolveComponent as D, createVNode as M, createTextVNode as U, useCssVars as Pt, useId as Hn, useSlots as De, renderSlot as j, createSlots as _e, normalizeProps as Vn, guardReactiveProps as Yn, mergeProps as Wn, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ut, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn, warn as zn } from "vue";
1
+ import { inject as jt, ref as R, computed as E, unref as T, toValue as me, watch as ve, toRef as qn, provide as Dt, defineComponent as J, createBlock as N, openBlock as m, resolveDynamicComponent as je, normalizeClass as de, withCtx as _, createElementBlock as $, createCommentVNode as K, createElementVNode as O, toDisplayString as F, Fragment as ce, renderList as se, resolveComponent as D, createVNode as M, createTextVNode as U, useCssVars as Pt, useId as Hn, useSlots as De, renderSlot as j, createSlots as _e, normalizeProps as Vn, guardReactiveProps as Yn, mergeProps as Wn, onMounted as tt, onBeforeMount as nt, withModifiers as Le, Teleport as Ut, onUnmounted as Jn, withDirectives as be, vShow as xe, withKeys as Gn, warn as zn } from "vue";
2
2
  import ft from "axios";
3
3
  import { createI18n as Qn, i18nTComponent as Zn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Xn, KButton as pt, KTruncate as ei, KBadge as ti } from "@kong/kongponents";
5
5
  import { BookIcon as qt, AddIcon as Ht, CloseIcon as ni, ChevronDownIcon as ii, CopyIcon as ri } from "@kong/icons";
6
6
  import { useRouter as ai } from "vue-router";
7
- var oi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.RedisConfiguration = "redis_configuration", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(it || {});
7
+ var oi = /* @__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.Secret = "secret", e.RedisConfiguration = "redis configuration", e))(oi || {}), li = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(li || {}), pe = /* @__PURE__ */ ((e) => (e[e.InitialLoad = 0] = "InitialLoad", e[e.Loading = 1] = "Loading", e[e.Idle = 2] = "Idle", e[e.NoResults = 3] = "NoResults", e[e.NoRecords = 4] = "NoRecords", e[e.Error = 5] = "Error", e))(pe || {}), it = /* @__PURE__ */ ((e) => (e.CaCertificate = "ca_certificate", e.Certificate = "certificate", e.Consumer = "consumer", e.ConsumerGroup = "consumer_group", e.GatewayService = "service", e.Key = "key", e.KeySet = "set", e.Plugin = "plugin", e.Route = "route", e.SNI = "sni", e.Upstream = "upstream", e.Target = "target", e.Vault = "vault", e.Partial = "partial", e.BackendCluster = "backend_cluster", e.VirtualCluster = "virtual_cluster", e.Listener = "listener", e.Policy = "policy", e.Other = "other", e))(it || {});
8
8
  const Pe = Object.values(it);
9
9
  var V = /* @__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.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(V || {}), le = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(le || {});
10
10
  const mt = [
@@ -284,20 +284,20 @@ function wi(e, t, n, i = {
284
284
  if (p.value === void 0)
285
285
  try {
286
286
  if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
287
- const _ = `${y.value}/${L}`, { data: f } = await r.get(`${_}?size=${n}`);
287
+ const w = `${y.value}/${L}`, { data: f } = await r.get(`${w}?size=${n}`);
288
288
  i.fetchedItemsKey in f ? u.value = f[i.fetchedItemsKey] : f != null && f[i.exactMatchKey ?? "id"] ? u.value = [f] : u.value = [];
289
289
  } else {
290
- const _ = [];
291
- v(L) && i.searchKeys.includes("id") ? _.push((async () => {
290
+ const w = [];
291
+ v(L) && i.searchKeys.includes("id") ? w.push((async () => {
292
292
  const { data: C } = await r.get(`${y.value}/${L}`);
293
293
  return [C[i.fetchedItemsKey] ?? C];
294
- })()) : _.push(
294
+ })()) : w.push(
295
295
  ...i.searchKeys.filter((C) => C !== "id").map(async (C) => {
296
296
  const { data: k } = await r.get(`${y.value}?${C}=${L}`);
297
297
  return k[i.fetchedItemsKey];
298
298
  })
299
299
  );
300
- const f = await Promise.all(_), h = /* @__PURE__ */ new Set();
300
+ const f = await Promise.all(w), h = /* @__PURE__ */ new Set();
301
301
  u.value = [], (q = f == null ? void 0 : f.forEach) == null || q.call(f, (C) => {
302
302
  var k;
303
303
  (k = C == null ? void 0 : C.forEach) == null || k.call(C, (H) => {
@@ -305,17 +305,17 @@ function wi(e, t, n, i = {
305
305
  });
306
306
  });
307
307
  }
308
- } catch (_) {
309
- ((ne = _ == null ? void 0 : _.response) == null ? void 0 : ne.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
308
+ } catch (w) {
309
+ ((ne = w == null ? void 0 : w.response) == null ? void 0 : ne.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
310
310
  } finally {
311
311
  s.value = !1;
312
312
  }
313
313
  else
314
- s.value = !0, d.value = "", u.value = (A = p.value) == null ? void 0 : A.filter((_) => {
314
+ s.value = !0, d.value = "", u.value = (A = p.value) == null ? void 0 : A.filter((w) => {
315
315
  var h;
316
316
  let f = !1;
317
317
  for (const C of i.searchKeys) {
318
- const k = typeof _[C] == "string" ? (h = _[C]) == null ? void 0 : h.toLowerCase() : _[C];
318
+ const k = typeof w[C] == "string" ? (h = w[C]) == null ? void 0 : h.toLowerCase() : w[C];
319
319
  k != null && k.includes(L.toLowerCase()) && (f = !0);
320
320
  }
321
321
  return f;
@@ -645,7 +645,7 @@ const Y = {
645
645
  return (s, c) => (m(), N(je(e.isArrayItem ? "fieldset" : "div"), {
646
646
  class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
647
647
  }, {
648
- default: w(() => [
648
+ default: _(() => [
649
649
  e.isArrayItem ? (m(), $("legend", Pi, [
650
650
  O("b", null, F(l.value), 1)
651
651
  ])) : K("", !0),
@@ -685,7 +685,7 @@ const Y = {
685
685
  class: "navigation-button",
686
686
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
687
687
  }, {
688
- default: w(() => [
688
+ default: _(() => [
689
689
  U(F(e.item.value || T(t)("baseConfigCard.commonFields.link")), 1)
690
690
  ]),
691
691
  _: 1
@@ -708,7 +708,7 @@ const Y = {
708
708
  return m(), N(r, {
709
709
  appearance: e.status ? "success" : "neutral"
710
710
  }, {
711
- default: w(() => [
711
+ default: _(() => [
712
712
  U(F(e.status ? T(t)("baseConfigCard.statusBadge.enabledLabel") : T(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
713
713
  ]),
714
714
  _: 1
@@ -880,19 +880,19 @@ const Y = {
880
880
  }
881
881
  }), b = R(), S = R(), { isTruncated: x } = Y.useTruncationDetector(b), { isTruncated: L } = Y.useTruncationDetector(S);
882
882
  return (q, ne) => {
883
- const A = D("KTooltip"), _ = D("KLabel"), f = D("KBadge"), h = D("KCopy");
883
+ const A = D("KTooltip"), w = D("KLabel"), f = D("KBadge"), h = D("KCopy");
884
884
  return m(), $("div", Xi, [
885
885
  O("div", {
886
886
  class: "config-card-details-label",
887
887
  "data-testid": `${e.item.key}-label`
888
888
  }, [
889
889
  j(q.$slots, "label", { item: e.item }, () => [
890
- M(_, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
891
- default: w(() => [
890
+ M(w, { "tooltip-attributes": { maxWidth: "500px" } }, _e({
891
+ default: _(() => [
892
892
  M(A, {
893
893
  text: T(x) ? e.item.label : ""
894
894
  }, {
895
- default: w(() => [
895
+ default: _(() => [
896
896
  O("span", {
897
897
  ref_key: "labelContent",
898
898
  ref: b,
@@ -906,7 +906,7 @@ const Y = {
906
906
  }, [
907
907
  d.value ? {
908
908
  name: "tooltip",
909
- fn: w(() => [
909
+ fn: _(() => [
910
910
  O("div", {
911
911
  "data-testid": `${e.item.key}-label-tooltip`
912
912
  }, [
@@ -929,7 +929,7 @@ const Y = {
929
929
  }, () => [
930
930
  c.value ? (m(), $("div", rr, [
931
931
  (m(), N(je(v.value.tag), Vn(Yn(v.value.attrs)), {
932
- default: w(() => [
932
+ default: _(() => [
933
933
  v.value.additionalComponent === "KBadge" ? (m(), $("div", {
934
934
  key: 0,
935
935
  "data-testid": `${e.item.key}-badge-tags`
@@ -941,7 +941,7 @@ const Y = {
941
941
  tooltip: C,
942
942
  "truncation-tooltip": ""
943
943
  }, {
944
- default: w(() => [
944
+ default: _(() => [
945
945
  U(F(C), 1)
946
946
  ]),
947
947
  _: 2
@@ -967,7 +967,7 @@ const Y = {
967
967
  class: "config-badge",
968
968
  "data-testid": `${e.item.key}-badge-method-${k}`
969
969
  }, {
970
- default: w(() => [
970
+ default: _(() => [
971
971
  U(F(C), 1)
972
972
  ]),
973
973
  _: 2
@@ -986,7 +986,7 @@ const Y = {
986
986
  key: 4,
987
987
  text: T(L) ? e.item.value : ""
988
988
  }, {
989
- default: w(() => [
989
+ default: _(() => [
990
990
  O("span", {
991
991
  ref_key: "textContent",
992
992
  ref: S,
@@ -1055,7 +1055,7 @@ const Y = {
1055
1055
  M(a, {
1056
1056
  appearance: t.requestMethod
1057
1057
  }, {
1058
- default: w(() => [
1058
+ default: _(() => [
1059
1059
  U(F(t.requestMethod), 1)
1060
1060
  ]),
1061
1061
  _: 1
@@ -2611,10 +2611,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2611
2611
  key: c.key,
2612
2612
  item: c
2613
2613
  }, _e({
2614
- label: w(() => [
2614
+ label: _(() => [
2615
2615
  j(a.$slots, `${c.key}-label`, { row: c }, void 0, !0)
2616
2616
  ]),
2617
- [c.key]: w(({ rowValue: d }) => [
2617
+ [c.key]: _(({ rowValue: d }) => [
2618
2618
  j(a.$slots, c.key, {
2619
2619
  row: c,
2620
2620
  rowValue: d
@@ -2624,7 +2624,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2624
2624
  }, [
2625
2625
  r(c) ? {
2626
2626
  name: "label-tooltip",
2627
- fn: w(() => [
2627
+ fn: _(() => [
2628
2628
  j(a.$slots, `${c.key}-label-tooltip`, { row: c }, void 0, !0)
2629
2629
  ]),
2630
2630
  key: "0"
@@ -2756,10 +2756,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2756
2756
  },
2757
2757
  emits: ["loading", "fetch:success", "fetch:error"],
2758
2758
  setup(e, { emit: t }) {
2759
- var _;
2759
+ var w;
2760
2760
  const n = t, i = e, { i18n: { t: r } } = Y.useI18n(), { getMessageFromError: o } = Y.useErrors(), { convertKeyToTitle: a } = Y.useStringHelpers();
2761
2761
  Y.useSubSchema(i.pluginConfigKey);
2762
- const { axiosInstance: l } = Y.useAxios((_ = i.config) == null ? void 0 : _.axiosRequestConfig), s = [
2762
+ const { axiosInstance: l } = Y.useAxios((w = i.config) == null ? void 0 : w.axiosRequestConfig), s = [
2763
2763
  {
2764
2764
  label: r("baseConfigCard.general.structuredFormat"),
2765
2765
  value: "structured",
@@ -2924,14 +2924,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2924
2924
  class: "kong-ui-entity-base-config-card",
2925
2925
  "title-tag": e.titleTag
2926
2926
  }, _e({
2927
- actions: w(() => [
2927
+ actions: _(() => [
2928
2928
  O("div", Uo, [
2929
2929
  j(f.$slots, "actions", {}, void 0, !0),
2930
2930
  M(C, {
2931
2931
  class: "config-format-select-label",
2932
2932
  "data-testid": "config-format-select-label"
2933
2933
  }, {
2934
- default: w(() => [
2934
+ default: _(() => [
2935
2935
  U(F(e.label), 1)
2936
2936
  ]),
2937
2937
  _: 1
@@ -2949,7 +2949,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2949
2949
  class: "book-icon",
2950
2950
  "data-testid": "book-icon"
2951
2951
  }, {
2952
- default: w(() => [
2952
+ default: _(() => [
2953
2953
  O("a", {
2954
2954
  href: e.configCardDoc,
2955
2955
  rel: "noopener",
@@ -2962,7 +2962,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2962
2962
  })) : K("", !0)
2963
2963
  ])
2964
2964
  ]),
2965
- default: w(() => [
2965
+ default: _(() => [
2966
2966
  y.value ? (m(), N(P, {
2967
2967
  key: 0,
2968
2968
  "data-testid": "config-card-loader",
@@ -2973,7 +2973,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2973
2973
  "data-testid": "config-card-fetch-error",
2974
2974
  "icon-variant": "error"
2975
2975
  }, {
2976
- default: w(() => [
2976
+ default: _(() => [
2977
2977
  O("h3", null, F(b.value), 1)
2978
2978
  ]),
2979
2979
  _: 1
@@ -2991,7 +2991,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
2991
2991
  }, _e({ _: 2 }, [
2992
2992
  se(Object.keys(f.$slots), (W) => ({
2993
2993
  name: W,
2994
- fn: w(({ row: Z, rowValue: Oe }) => [
2994
+ fn: _(({ row: Z, rowValue: Oe }) => [
2995
2995
  j(f.$slots, W, {
2996
2996
  row: Z,
2997
2997
  rowValue: Oe
@@ -3005,7 +3005,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3005
3005
  }, [
3006
3006
  e.hideTitle ? void 0 : {
3007
3007
  name: "title",
3008
- fn: w(() => [
3008
+ fn: _(() => [
3009
3009
  O("span", Po, [
3010
3010
  j(f.$slots, "title", {}, () => [
3011
3011
  U(F(T(r)("baseConfigCard.title")), 1)
@@ -3130,13 +3130,13 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3130
3130
  default: void 0
3131
3131
  }
3132
3132
  },
3133
- emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3133
+ emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3134
3134
  setup(e, { expose: t, emit: n }) {
3135
3135
  var ne;
3136
3136
  const i = n, r = e, o = ai(), { i18n: { t: a } } = Y.useI18n(), { getMessageFromError: l } = Y.useErrors(), { axiosInstance: s } = Y.useAxios((ne = r.config) == null ? void 0 : ne.axiosRequestConfig), c = R(!1), d = E(() => !!r.editId), u = R(!1), g = R(""), p = E(() => r.canSubmit === !1 || r.isReadonly), y = R(!1), v = E(() => {
3137
- var _, f;
3137
+ var w, f;
3138
3138
  let A = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3139
- return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((_ = r.config) == null ? void 0 : _.controlPlaneId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (A = A.replace(/{id}/gi, r.editId), A) : (A = A.replace(/\/{id}/gi, ""), A);
3139
+ return r.config.app === "konnect" ? A = A.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (A = A.replace(/\/{workspace}/gi, (f = r.config) != null && f.workspace ? `/${r.config.workspace}` : "")), r.editId ? (A = A.replace(/{id}/gi, r.editId), A) : (A = A.replace(/\/{id}/gi, ""), A);
3140
3140
  }), b = () => {
3141
3141
  y.value = !y.value;
3142
3142
  }, S = () => {
@@ -3167,8 +3167,8 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3167
3167
  const { data: A } = await s.get(v.value);
3168
3168
  i("fetch:success", A);
3169
3169
  } catch (A) {
3170
- const _ = l(A);
3171
- g.value = _.startsWith("code") ? a("baseForm.errors.edit") : _, u.value = !0, i("fetch:error", A);
3170
+ const w = l(A);
3171
+ g.value = w.startsWith("code") ? a("baseForm.errors.edit") : w, u.value = !0, i("fetch:error", A);
3172
3172
  } finally {
3173
3173
  c.value = !1;
3174
3174
  }
@@ -3176,10 +3176,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3176
3176
  viewConfig: b,
3177
3177
  formCancel: x,
3178
3178
  formSubmit: L
3179
- }), (A, _) => {
3179
+ }), (A, w) => {
3180
3180
  const f = D("KSkeleton"), h = D("KEmptyState"), C = D("KAlert"), k = D("KButton"), H = D("KTabs"), P = D("KSlideout");
3181
3181
  return m(), N(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3182
- default: w(() => [
3182
+ default: _(() => [
3183
3183
  c.value ? (m(), N(f, {
3184
3184
  key: 0,
3185
3185
  type: "form"
@@ -3190,7 +3190,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3190
3190
  "icon-variant": "error",
3191
3191
  onClickAction: S
3192
3192
  }, {
3193
- default: w(() => [
3193
+ default: _(() => [
3194
3194
  O("h3", null, F(g.value), 1)
3195
3195
  ]),
3196
3196
  _: 1
@@ -3221,9 +3221,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3221
3221
  M(k, {
3222
3222
  appearance: "tertiary",
3223
3223
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3224
- onClick: _[0] || (_[0] = (B) => b())
3224
+ onClick: w[0] || (w[0] = (B) => b())
3225
3225
  }, {
3226
- default: w(() => [
3226
+ default: _(() => [
3227
3227
  U(F(T(a)("baseForm.actions.viewConfiguration")), 1)
3228
3228
  ]),
3229
3229
  _: 1
@@ -3233,9 +3233,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3233
3233
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
3234
3234
  disabled: e.isReadonly,
3235
3235
  type: "reset",
3236
- onClick: _[1] || (_[1] = (B) => !!e.actionTeleportTarget && x())
3236
+ onClick: w[1] || (w[1] = (B) => !!e.actionTeleportTarget && x())
3237
3237
  }, {
3238
- default: w(() => [
3238
+ default: _(() => [
3239
3239
  U(F(e.cancelButtonText ?? T(a)("baseForm.actions.cancel")), 1)
3240
3240
  ]),
3241
3241
  _: 1
@@ -3245,9 +3245,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3245
3245
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
3246
3246
  disabled: p.value,
3247
3247
  type: "submit",
3248
- onClick: _[2] || (_[2] = (B) => !!e.actionTeleportTarget && L())
3248
+ onClick: w[2] || (w[2] = (B) => !!e.actionTeleportTarget && L())
3249
3249
  }, {
3250
- default: w(() => [
3250
+ default: _(() => [
3251
3251
  U(F(e.saveButtonText ?? T(a)("baseForm.actions.save")), 1)
3252
3252
  ]),
3253
3253
  _: 1
@@ -3263,15 +3263,16 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3263
3263
  "offset-top": e.slidoutTopOffset,
3264
3264
  title: T(a)("baseForm.configuration.title"),
3265
3265
  visible: y.value,
3266
- onClose: _[3] || (_[3] = (B) => b())
3266
+ onClose: w[4] || (w[4] = (B) => b())
3267
3267
  }, {
3268
- default: w(() => [
3268
+ default: _(() => [
3269
3269
  O("div", null, F(T(a)("baseForm.configuration.message")), 1),
3270
3270
  M(H, {
3271
3271
  "data-testid": "form-view-configuration-slideout-tabs",
3272
- tabs: q.value
3272
+ tabs: q.value,
3273
+ onChange: w[3] || (w[3] = (B) => i("codeBlockTabChange", B.replace("#", "")))
3273
3274
  }, {
3274
- json: w(() => [
3275
+ json: _(() => [
3275
3276
  M(Zt, {
3276
3277
  config: e.config,
3277
3278
  "entity-record": r.formFields,
@@ -3279,12 +3280,12 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3279
3280
  "request-method": r.editId ? "put" : "post"
3280
3281
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3281
3282
  ]),
3282
- yaml: w(() => [
3283
+ yaml: _(() => [
3283
3284
  M(Pn, {
3284
3285
  "entity-record": r.formFields
3285
3286
  }, null, 8, ["entity-record"])
3286
3287
  ]),
3287
- terraform: w(() => [
3288
+ terraform: _(() => [
3288
3289
  M(Un, {
3289
3290
  "entity-record": r.formFields,
3290
3291
  "entity-type": e.entityType
@@ -3300,7 +3301,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3300
3301
  });
3301
3302
  };
3302
3303
  }
3303
- }), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-4f672e9f"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */ J({
3304
+ }), fs = /* @__PURE__ */ oe(Wo, [["__scopeId", "data-v-7c5c8d6b"]]), Jo = ["data-truncate"], Go = /* @__PURE__ */ J({
3304
3305
  __name: "EntityBaseTableCell",
3305
3306
  props: {
3306
3307
  keyName: {
@@ -3374,7 +3375,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3374
3375
  placement: "bottom-start",
3375
3376
  text: v.value ? g.value : ""
3376
3377
  }, {
3377
- default: w(() => [
3378
+ default: _(() => [
3378
3379
  j(b.$slots, "default", {}, void 0, !0)
3379
3380
  ]),
3380
3381
  _: 3
@@ -3592,7 +3593,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3592
3593
  ...n.initialFetcherParams,
3593
3594
  ...h
3594
3595
  };
3595
- }), _ = (h) => {
3596
+ }), w = (h) => {
3596
3597
  ne.value = h, l.value.forEach((C) => {
3597
3598
  !("hidable" in C) || !ne.value.columnVisibility || C.hidable === !1 && (ne.value.columnVisibility[C.key] = !0);
3598
3599
  }), a.value && L(a.value, h);
@@ -3608,7 +3609,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3608
3609
  title: e.title,
3609
3610
  "title-tag": e.titleTag
3610
3611
  }, {
3611
- default: w(() => [
3612
+ default: _(() => [
3612
3613
  M(k, {
3613
3614
  ref_key: "tableRefs",
3614
3615
  ref: c,
@@ -3643,9 +3644,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3643
3644
  "onRow:click": v.value,
3644
3645
  onSort: C[0] || (C[0] = (P) => b(P)),
3645
3646
  onState: g,
3646
- "onUpdate:tablePreferences": _
3647
+ "onUpdate:tablePreferences": w
3647
3648
  }, _e({
3648
- toolbar: w(() => [
3649
+ toolbar: _(() => [
3649
3650
  O("div", Qo, [
3650
3651
  j(h.$slots, "toolbar-filter", {}, void 0, !0),
3651
3652
  h.$slots["toolbar-button"] ? (m(), $("div", Zo, [
@@ -3653,27 +3654,27 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3653
3654
  ])) : K("", !0)
3654
3655
  ])
3655
3656
  ]),
3656
- "action-items": w(({ row: P }) => [
3657
+ "action-items": _(({ row: P }) => [
3657
3658
  j(h.$slots, "actions", { row: P }, void 0, !0)
3658
3659
  ]),
3659
3660
  _: 2
3660
3661
  }, [
3661
3662
  h.$slots["empty-state"] ? {
3662
3663
  name: "empty-state",
3663
- fn: w(() => [
3664
+ fn: _(() => [
3664
3665
  j(h.$slots, "empty-state", {}, void 0, !0)
3665
3666
  ]),
3666
3667
  key: "0"
3667
3668
  } : void 0,
3668
3669
  se(e.tableHeaders, (P, B) => ({
3669
3670
  name: B,
3670
- fn: w(({ row: Q, rowValue: W }) => [
3671
+ fn: _(({ row: Q, rowValue: W }) => [
3671
3672
  M(zo, {
3672
3673
  "key-name": String(B),
3673
3674
  "row-el": d(Q),
3674
3675
  tooltip: P.tooltip
3675
3676
  }, {
3676
- default: w(() => [
3677
+ default: _(() => [
3677
3678
  j(h.$slots, B, {
3678
3679
  row: Q,
3679
3680
  rowKey: e.rowKey,
@@ -3688,7 +3689,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3688
3689
  })),
3689
3690
  e.query ? void 0 : {
3690
3691
  name: "empty-state-action-icon",
3691
- fn: w(() => [
3692
+ fn: _(() => [
3692
3693
  M(T(Ht))
3693
3694
  ]),
3694
3695
  key: "1"
@@ -3765,10 +3766,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3765
3766
  onCancel: a,
3766
3767
  onProceed: l
3767
3768
  }, {
3768
- default: w(() => [
3769
+ default: _(() => [
3769
3770
  e.error ? (m(), $("div", tl, [
3770
3771
  M(d, { appearance: "danger" }, {
3771
- default: w(() => [
3772
+ default: _(() => [
3772
3773
  U(F(e.error), 1)
3773
3774
  ]),
3774
3775
  _: 1
@@ -3779,14 +3780,14 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3779
3780
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
3780
3781
  tag: "p"
3781
3782
  }, _e({
3782
- entityType: w(() => [
3783
+ entityType: _(() => [
3783
3784
  U(F(i.entityType), 1)
3784
3785
  ]),
3785
3786
  _: 2
3786
3787
  }, [
3787
3788
  i.entityName ? {
3788
3789
  name: "entityName",
3789
- fn: w(() => [
3790
+ fn: _(() => [
3790
3791
  O("strong", null, F(i.entityName), 1)
3791
3792
  ]),
3792
3793
  key: "0"
@@ -3866,23 +3867,23 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3866
3867
  setup(e, { emit: t }) {
3867
3868
  const { i18n: { t: n } } = Y.useI18n(), i = e, r = t, o = R(!1), a = R({}), l = R(/* @__PURE__ */ new Set()), s = E(() => {
3868
3869
  const A = [];
3869
- return new URLSearchParams(i.modelValue).forEach((_, f) => {
3870
- _ !== "" && A.push(f);
3870
+ return new URLSearchParams(i.modelValue).forEach((w, f) => {
3871
+ w !== "" && A.push(f);
3871
3872
  }), A;
3872
3873
  }), c = E(() => {
3873
3874
  const A = i.config.fields;
3874
- return Object.keys(A).filter((_) => {
3875
+ return Object.keys(A).filter((w) => {
3875
3876
  var f;
3876
- return (f = A == null ? void 0 : A[_]) == null ? void 0 : f.searchable;
3877
- }).map((_) => ({
3878
- label: A[_].label || _,
3879
- value: _,
3877
+ return (f = A == null ? void 0 : A[w]) == null ? void 0 : f.searchable;
3878
+ }).map((w) => ({
3879
+ label: A[w].label || w,
3880
+ value: w,
3880
3881
  expanded: !1
3881
3882
  }));
3882
3883
  });
3883
3884
  ve(() => i.modelValue, (A) => {
3884
- a.value = {}, new URLSearchParams(A).forEach((_, f) => {
3885
- a.value[f] = _;
3885
+ a.value = {}, new URLSearchParams(A).forEach((w, f) => {
3886
+ a.value[f] = w;
3886
3887
  });
3887
3888
  });
3888
3889
  const d = () => {
@@ -3894,11 +3895,11 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3894
3895
  }, p = () => {
3895
3896
  g("");
3896
3897
  }, y = (A) => `filter-${A}`, v = (A) => {
3897
- var _, f;
3898
- return (((f = (_ = i.config.schema) == null ? void 0 : _[A]) == null ? void 0 : f.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
3898
+ var w, f;
3899
+ return (((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.values) ?? []).map((h) => typeof h == "string" ? { value: h, label: h } : h);
3899
3900
  }, b = (A) => {
3900
- var _, f;
3901
- return ((f = (_ = i.config.schema) == null ? void 0 : _[A]) == null ? void 0 : f.type) ?? "text";
3901
+ var w, f;
3902
+ return ((f = (w = i.config.schema) == null ? void 0 : w[A]) == null ? void 0 : f.type) ?? "text";
3902
3903
  }, S = (A) => {
3903
3904
  a.value = {
3904
3905
  ...a.value,
@@ -3907,17 +3908,17 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3907
3908
  }, x = () => {
3908
3909
  a.value = {}, L(!0);
3909
3910
  }, L = (A = !1) => {
3910
- const _ = Object.keys(a.value).reduce((f, h) => (a.value[h] && (f[h] = `${a.value[h]}`), f), {});
3911
- A && (o.value = !1), r("update:modelValue", new URLSearchParams(_).toString());
3911
+ const w = Object.keys(a.value).reduce((f, h) => (a.value[h] && (f[h] = `${a.value[h]}`), f), {});
3912
+ A && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
3912
3913
  }, q = (A) => {
3913
- var _, f;
3914
- return !!((f = (_ = i.config.schema) == null ? void 0 : _[A]) != null && f.filterFunction);
3915
- }, ne = (A, _) => {
3914
+ var w, f;
3915
+ return !!((f = (w = i.config.schema) == null ? void 0 : w[A]) != null && f.filterFunction);
3916
+ }, ne = (A, w) => {
3916
3917
  var h;
3917
3918
  const f = (h = i.config.schema) == null ? void 0 : h[A];
3918
- return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(_);
3919
+ return (f == null ? void 0 : f.filterFunction) === void 0 ? !0 : f.filterFunction(w);
3919
3920
  };
3920
- return (A, _) => {
3921
+ return (A, w) => {
3921
3922
  const f = D("KInput"), h = D("KButton"), C = D("KSelect");
3922
3923
  return e.config.isExactMatch ? (m(), N(f, {
3923
3924
  key: 0,
@@ -3928,10 +3929,10 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3928
3929
  placeholder: e.config.placeholder,
3929
3930
  "onUpdate:modelValue": g
3930
3931
  }, {
3931
- before: w(() => [
3932
+ before: _(() => [
3932
3933
  M(Nt)
3933
3934
  ]),
3934
- after: w(() => [
3935
+ after: _(() => [
3935
3936
  be(M(T(ni), {
3936
3937
  class: "kong-ui-entity-filter-clear",
3937
3938
  role: "button",
@@ -3948,7 +3949,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
3948
3949
  "data-testid": "filter-button",
3949
3950
  onClick: d
3950
3951
  }, {
3951
- default: w(() => [
3952
+ default: _(() => [
3952
3953
  M(Nt),
3953
3954
  U(" " + F(T(n)("filter.filterButtonText")) + " " + F(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
3954
3955
  ]),
@@ -4015,9 +4016,9 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
4015
4016
  appearance: "tertiary",
4016
4017
  "data-testid": "apply-filter",
4017
4018
  size: "small",
4018
- onClick: _[0] || (_[0] = (B) => L(!0))
4019
+ onClick: w[0] || (w[0] = (B) => L(!0))
4019
4020
  }, {
4020
- default: w(() => [
4021
+ default: _(() => [
4021
4022
  U(F(T(n)("filter.applyButtonText")), 1)
4022
4023
  ]),
4023
4024
  _: 1
@@ -4028,7 +4029,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
4028
4029
  size: "small",
4029
4030
  onClick: (B) => S(k.value)
4030
4031
  }, {
4031
- default: w(() => [
4032
+ default: _(() => [
4032
4033
  U(F(T(n)("filter.clearButtonText")), 1)
4033
4034
  ]),
4034
4035
  _: 2
@@ -4044,7 +4045,7 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
4044
4045
  size: "small",
4045
4046
  onClick: x
4046
4047
  }, {
4047
- default: w(() => [
4048
+ default: _(() => [
4048
4049
  U(F(T(n)("filter.clearAllButtonText")), 1)
4049
4050
  ]),
4050
4051
  _: 1
@@ -4116,15 +4117,15 @@ const Bo = { class: "yaml-config config-card-code-block" }, Pn = /* @__PURE__ */
4116
4117
  onCancel: c,
4117
4118
  onProceed: d
4118
4119
  }, {
4119
- default: w(() => [
4120
+ default: _(() => [
4120
4121
  M(T(i), {
4121
4122
  keypath: `toggleModal.${r.action}.message`,
4122
4123
  scope: "global"
4123
4124
  }, {
4124
- entityType: w(() => [
4125
+ entityType: _(() => [
4125
4126
  U(F(e.entityType), 1)
4126
4127
  ]),
4127
- entityName: w(() => [
4128
+ entityName: _(() => [
4128
4129
  O("strong", null, F(e.entityName), 1)
4129
4130
  ]),
4130
4131
  _: 1
@@ -4243,7 +4244,7 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
4243
4244
  id: T(n),
4244
4245
  class: "form-section-title"
4245
4246
  }, {
4246
- default: w(() => [
4247
+ default: _(() => [
4247
4248
  U(F(e.title), 1)
4248
4249
  ]),
4249
4250
  _: 1
@@ -4356,11 +4357,11 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
4356
4357
  href: e.externalLink,
4357
4358
  target: e.newWindow ? "_blank" : "_self"
4358
4359
  }, {
4359
- default: w(() => [
4360
+ default: _(() => [
4360
4361
  M(p, {
4361
4362
  text: T(i) && e.entityLinkData.label || ""
4362
4363
  }, {
4363
- default: w(() => [
4364
+ default: _(() => [
4364
4365
  O("span", {
4365
4366
  ref_key: "textContent",
4366
4367
  ref: n,
@@ -4379,9 +4380,9 @@ const wl = ["aria-labelledby"], _l = { class: "form-section-wrapper" }, Sl = {
4379
4380
  placement: "bottom-end",
4380
4381
  text: a.value
4381
4382
  }, {
4382
- default: w(() => [
4383
+ default: _(() => [
4383
4384
  M(v, null, {
4384
- default: w(({ copyToClipboard: b }) => [
4385
+ default: _(({ copyToClipboard: b }) => [
4385
4386
  O("span", {
4386
4387
  class: "entity-link-copy-id",
4387
4388
  onClick: Le((S) => d(b), ["stop"])
@@ -4517,7 +4518,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4517
4518
  size: e.appearance === "secondary" ? "medium" : "large",
4518
4519
  onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
4519
4520
  }, {
4520
- default: w(() => [
4521
+ default: _(() => [
4521
4522
  M(T(Ht)),
4522
4523
  U(" " + F(e.actionButtonText), 1)
4523
4524
  ]),
@@ -4530,7 +4531,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4530
4531
  size: e.appearance === "secondary" ? "medium" : "large",
4531
4532
  onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
4532
4533
  }, {
4533
- default: w(() => [
4534
+ default: _(() => [
4534
4535
  M(T(qt), { decorative: "" }),
4535
4536
  U(" " + F(T(n)("emptyState.learnMore")), 1)
4536
4537
  ]),
@@ -4543,13 +4544,13 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4543
4544
  key: c,
4544
4545
  class: "entity-empty-state-card"
4545
4546
  }, {
4546
- title: w(() => [
4547
+ title: _(() => [
4547
4548
  a.$slots[`feature-${d}-icon`] ? (m(), $("div", Xl, [
4548
4549
  j(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4549
4550
  ])) : K("", !0),
4550
4551
  O("div", es, F(c.title), 1)
4551
4552
  ]),
4552
- default: w(() => [
4553
+ default: _(() => [
4553
4554
  O("div", {
4554
4555
  title: c.description
4555
4556
  }, F(c.description), 9, ts)
@@ -4592,14 +4593,14 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4592
4593
  return (i, r) => {
4593
4594
  var o;
4594
4595
  return ((o = n.value) == null ? void 0 : o.length) > 0 ? (m(), N(T(ei), { key: 0 }, {
4595
- default: w(() => [
4596
+ default: _(() => [
4596
4597
  (m(!0), $(ce, null, se(n.value, (a) => (m(), N(T(ti), {
4597
4598
  key: a,
4598
4599
  "max-width": e.tagMaxWidth,
4599
4600
  onClick: r[0] || (r[0] = Le(() => {
4600
4601
  }, ["stop"]))
4601
4602
  }, {
4602
- default: w(() => [
4603
+ default: _(() => [
4603
4604
  U(F(a), 1)
4604
4605
  ]),
4605
4606
  _: 2