@kong-ui-public/entities-keys 2.1.4 → 2.1.5

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 re, ref as $, computed as A, watch as ve, renderSlot as Q, createCommentVNode as z, unref as h, resolveComponent as N, openBlock as f, createElementBlock as x, createVNode as j, withCtx as C, createTextVNode as te, toDisplayString as M, useCssVars as Qa, useSlots as et, createElementVNode as L, createSlots as _e, createBlock as F, resolveDynamicComponent as Ee, normalizeProps as Xa, guardReactiveProps as ei, Fragment as ge, renderList as me, mergeProps as lt, normalizeClass as Ae, onBeforeMount as tt, withModifiers as We, withDirectives as Ve, vShow as Pe, onMounted as ti, onUnmounted as ai, inject as ii, normalizeStyle as Qt, pushScopeId as Xt, popScopeId as ea, Teleport as ni, reactive as It } from "vue";
1
+ import { defineComponent as re, ref as $, computed as A, watch as ve, renderSlot as Q, createCommentVNode as J, unref as h, resolveComponent as N, openBlock as y, createElementBlock as x, createVNode as j, withCtx as C, createTextVNode as te, toDisplayString as M, useCssVars as Qa, useSlots as et, createElementVNode as L, createSlots as _e, createBlock as F, resolveDynamicComponent as Ee, normalizeProps as Xa, guardReactiveProps as ei, Fragment as ge, renderList as me, mergeProps as lt, normalizeClass as Ae, onBeforeMount as tt, withModifiers as We, withDirectives as Ve, vShow as Pe, onMounted as ti, onUnmounted as ai, inject as ii, normalizeStyle as Qt, pushScopeId as Xt, popScopeId as ea, Teleport as ni, reactive as It } from "vue";
2
2
  import { useRouter as ft } from "vue-router";
3
3
  import { createI18n as yt, i18nTComponent as ta } from "@kong-ui-public/i18n";
4
4
  import ri from "axios";
@@ -654,7 +654,7 @@ const ce = {
654
654
  for (const [i, n] of a)
655
655
  t[i] = n;
656
656
  return t;
657
- }, Pi = (e) => (Xt("data-v-243f8fec"), e = e(), ea(), e), Ri = ["aria-hidden"], Ui = {
657
+ }, Pi = (e) => (Xt("data-v-77afb926"), e = e(), ea(), e), Ri = ["aria-hidden"], Ui = {
658
658
  key: 0,
659
659
  "data-testid": "kui-icon-svg-title"
660
660
  }, Di = /* @__PURE__ */ Pi(() => /* @__PURE__ */ L("path", {
@@ -729,14 +729,14 @@ const ce = {
729
729
  lineHeight: "0",
730
730
  width: t.value
731
731
  }));
732
- return (n, r) => (f(), F(Ee(e.as), {
732
+ return (n, r) => (y(), F(Ee(e.as), {
733
733
  "aria-hidden": e.decorative ? "true" : void 0,
734
734
  class: "kui-icon copy-icon",
735
735
  "data-testid": "kui-icon-wrapper-copy-icon",
736
736
  style: Qt(i.value)
737
737
  }, {
738
738
  default: C(() => [
739
- (f(), x("svg", {
739
+ (y(), x("svg", {
740
740
  "aria-hidden": e.decorative ? "true" : void 0,
741
741
  "data-testid": "kui-icon-svg-copy-icon",
742
742
  fill: "none",
@@ -746,14 +746,14 @@ const ce = {
746
746
  width: "100%",
747
747
  xmlns: "http://www.w3.org/2000/svg"
748
748
  }, [
749
- e.title ? (f(), x("title", Ui, M(e.title), 1)) : z("", !0),
749
+ e.title ? (y(), x("title", Ui, M(e.title), 1)) : J("", !0),
750
750
  Di
751
751
  ], 8, Ri))
752
752
  ]),
753
753
  _: 1
754
754
  }, 8, ["aria-hidden", "style"]));
755
755
  }
756
- }), Ji = /* @__PURE__ */ Vi(Hi, [["__scopeId", "data-v-243f8fec"]]), zi = "16px", Wi = { class: "kong-ui-copy-uuid" }, Yi = ["onClick"], Mt = 15, Gi = /* @__PURE__ */ re({
756
+ }), Ji = /* @__PURE__ */ Vi(Hi, [["__scopeId", "data-v-77afb926"]]), zi = "16px", Wi = { class: "kong-ui-copy-uuid" }, Yi = ["onClick"], Mt = 15, Gi = /* @__PURE__ */ re({
757
757
  __name: "CopyUuid",
758
758
  props: {
759
759
  uuid: {
@@ -833,8 +833,8 @@ const ce = {
833
833
  };
834
834
  return (k, m) => {
835
835
  const I = N("KClipboardProvider");
836
- return f(), x("div", Wi, [
837
- e.format !== "hidden" ? (f(), F(Ee(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
836
+ return y(), x("div", Wi, [
837
+ e.format !== "hidden" ? (y(), F(Ee(e.idTooltip ? "KTooltip" : "div"), lt({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
838
838
  default: C(() => [
839
839
  L("div", {
840
840
  class: Ae([
@@ -845,8 +845,8 @@ const ce = {
845
845
  }, M(l.value), 3)
846
846
  ]),
847
847
  _: 1
848
- }, 16)) : z("", !0),
849
- (f(), F(Ee(e.tooltip ? "KTooltip" : "div"), lt(c.value, { class: "uuid-icon-wrapper" }), {
848
+ }, 16)) : J("", !0),
849
+ (y(), F(Ee(e.tooltip ? "KTooltip" : "div"), lt(c.value, { class: "uuid-icon-wrapper" }), {
850
850
  default: C(() => [
851
851
  j(I, null, {
852
852
  default: C(({ copyToClipboard: w }) => [
@@ -905,14 +905,14 @@ const ce = {
905
905
  var c;
906
906
  return a.isArrayItem ? (c = r.value) != null && c.name ? i(r.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: a.index }) : "";
907
907
  });
908
- return (c, l) => (f(), F(Ee(e.isArrayItem ? "fieldset" : "div"), {
908
+ return (c, l) => (y(), F(Ee(e.isArrayItem ? "fieldset" : "div"), {
909
909
  class: Ae(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
910
910
  }, {
911
911
  default: C(() => [
912
- e.isArrayItem ? (f(), x("legend", Qi, [
912
+ e.isArrayItem ? (y(), x("legend", Qi, [
913
913
  L("b", null, M(s.value), 1)
914
- ])) : z("", !0),
915
- (f(!0), x(ge, null, me(Object.keys(o.value), (d, u) => (f(), F(Re, {
914
+ ])) : J("", !0),
915
+ (y(!0), x(ge, null, me(Object.keys(o.value), (d, u) => (y(), F(Re, {
916
916
  key: `${n.value}-property-${u}`,
917
917
  item: {
918
918
  key: d,
@@ -942,7 +942,7 @@ const ce = {
942
942
  const { i18n: { t: a } } = ce.useI18n();
943
943
  return (t, i) => {
944
944
  const n = N("KButton");
945
- return f(), x("div", null, [
945
+ return y(), x("div", null, [
946
946
  j(n, {
947
947
  appearance: "tertiary",
948
948
  class: "navigation-button",
@@ -968,7 +968,7 @@ const ce = {
968
968
  const { i18n: { t: a } } = ce.useI18n();
969
969
  return (t, i) => {
970
970
  const n = N("KBadge");
971
- return f(), F(n, {
971
+ return y(), F(n, {
972
972
  appearance: e.status ? "success" : "neutral"
973
973
  }, {
974
974
  default: C(() => [
@@ -1137,7 +1137,7 @@ const ce = {
1137
1137
  }), u = $(), { isTruncated: k } = ce.useTruncationDetector(u);
1138
1138
  return (m, I) => {
1139
1139
  const w = N("KLabel"), p = N("KBadge"), g = N("KMethodBadge"), b = N("KTooltip");
1140
- return f(), x("div", sn, [
1140
+ return y(), x("div", sn, [
1141
1141
  L("div", {
1142
1142
  class: "config-card-details-label",
1143
1143
  "data-testid": `${e.item.key}-label`
@@ -1172,14 +1172,14 @@ const ce = {
1172
1172
  Q(m.$slots, e.item.key, {
1173
1173
  rowValue: e.item.value
1174
1174
  }, () => [
1175
- o.value ? (f(), x("div", fn, [
1176
- (f(), F(Ee(d.value.tag), Xa(ei(d.value.attrs)), {
1175
+ o.value ? (y(), x("div", fn, [
1176
+ (y(), F(Ee(d.value.tag), Xa(ei(d.value.attrs)), {
1177
1177
  default: C(() => [
1178
- d.value.additionalComponent === "KBadge" ? (f(), x("div", {
1178
+ d.value.additionalComponent === "KBadge" ? (y(), x("div", {
1179
1179
  key: 0,
1180
1180
  "data-testid": `${e.item.key}-badge-tags`
1181
1181
  }, [
1182
- (f(!0), x(ge, null, me(e.item.value, (O, v) => (f(), F(p, {
1182
+ (y(!0), x(ge, null, me(e.item.value, (O, v) => (y(), F(p, {
1183
1183
  key: `${e.item.key}-badge-tag-${v}`,
1184
1184
  class: "config-badge",
1185
1185
  "data-testid": `${e.item.key}-badge-tag-${v}`,
@@ -1190,23 +1190,23 @@ const ce = {
1190
1190
  ]),
1191
1191
  _: 2
1192
1192
  }, 1032, ["data-testid", "truncation-tooltip"]))), 128))
1193
- ], 8, yn)) : z("", !0),
1194
- d.value.additionalComponent === "CopyUuid" ? (f(), x("div", {
1193
+ ], 8, yn)) : J("", !0),
1194
+ d.value.additionalComponent === "CopyUuid" ? (y(), x("div", {
1195
1195
  key: 1,
1196
1196
  class: "copy-uuid-array",
1197
1197
  "data-testid": `${e.item.key}-copy-uuid-array`
1198
1198
  }, [
1199
- (f(!0), x(ge, null, me(e.item.value, (O, v) => (f(), F(h(la), lt(d.value.childAttrs, {
1199
+ (y(!0), x(ge, null, me(e.item.value, (O, v) => (y(), F(h(la), lt(d.value.childAttrs, {
1200
1200
  key: `${e.item.key}-copy-uuid-${v}`,
1201
1201
  "data-testid": `${e.item.key}-copy-uuid-${v}`,
1202
1202
  uuid: O
1203
1203
  }), null, 16, ["data-testid", "uuid"]))), 128))
1204
- ], 8, mn)) : d.value.additionalComponent === "KMethodBadge" ? (f(), x("div", {
1204
+ ], 8, mn)) : d.value.additionalComponent === "KMethodBadge" ? (y(), x("div", {
1205
1205
  key: 2,
1206
1206
  class: "method-badge-array",
1207
1207
  "data-testid": `${e.item.key}-badge-methods`
1208
1208
  }, [
1209
- (f(!0), x(ge, null, me(e.item.value, (O, v) => (f(), F(g, {
1209
+ (y(!0), x(ge, null, me(e.item.value, (O, v) => (y(), F(g, {
1210
1210
  key: `${e.item.key}-badge-method-${v}`,
1211
1211
  class: "config-badge",
1212
1212
  "data-testid": `${e.item.key}-badge-method-${v}`,
@@ -1219,18 +1219,18 @@ const ce = {
1219
1219
  ]),
1220
1220
  _: 2
1221
1221
  }, 1032, ["data-testid", "label", "method"]))), 128))
1222
- ], 8, gn)) : z("", !0),
1223
- d.value.additionalComponent === "JsonCardItem" ? (f(), x("div", {
1222
+ ], 8, gn)) : J("", !0),
1223
+ d.value.additionalComponent === "JsonCardItem" ? (y(), x("div", {
1224
1224
  key: 3,
1225
1225
  "data-testid": `${t.item.key}-json-array-content`
1226
1226
  }, [
1227
- (f(!0), x(ge, null, me(e.item.value, (O, v) => (f(), F(sa, {
1227
+ (y(!0), x(ge, null, me(e.item.value, (O, v) => (y(), F(sa, {
1228
1228
  key: `json-array-item-${v}`,
1229
1229
  index: v,
1230
1230
  "is-array-item": "",
1231
1231
  item: O
1232
1232
  }, null, 8, ["index", "item"]))), 128))
1233
- ], 8, hn)) : (f(), F(b, {
1233
+ ], 8, hn)) : (y(), F(b, {
1234
1234
  key: 4,
1235
1235
  label: h(k) ? e.item.value : ""
1236
1236
  }, {
@@ -1246,7 +1246,7 @@ const ce = {
1246
1246
  ]),
1247
1247
  _: 1
1248
1248
  }, 16))
1249
- ])) : (f(), x("div", {
1249
+ ])) : (y(), x("div", {
1250
1250
  key: 0,
1251
1251
  "data-testid": `${e.item.key}-no-value`
1252
1252
  }, " – ", 8, pn))
@@ -2669,15 +2669,15 @@ const Po = {
2669
2669
  }
2670
2670
  }, { immediate: !0 }), (s, c) => {
2671
2671
  const l = N("KCodeBlock");
2672
- return f(), x(ge, null, [
2673
- e.format === "structured" ? (f(), x("div", Po, [
2674
- (f(!0), x(ge, null, me(e.propListTypes, (d) => (f(), x("div", {
2672
+ return y(), x(ge, null, [
2673
+ e.format === "structured" ? (y(), x("div", Po, [
2674
+ (y(!0), x(ge, null, me(e.propListTypes, (d) => (y(), x("div", {
2675
2675
  key: `config-card-details-${d}-props`,
2676
2676
  class: Ae(`config-card-details-${d}-props`),
2677
2677
  "data-testid": `config-card-details-${d}-props`
2678
2678
  }, [
2679
- d !== "basic" ? (f(), x("div", Uo, M(d === "advanced" ? h(i)("baseConfigCard.sections.advanced") : h(i)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
2680
- (f(!0), x(ge, null, me(e.propertyCollections[d], (u) => (f(), F(Re, {
2679
+ d !== "basic" ? (y(), x("div", Uo, M(d === "advanced" ? h(i)("baseConfigCard.sections.advanced") : h(i)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
2680
+ (y(!0), x(ge, null, me(e.propertyCollections[d], (u) => (y(), F(Re, {
2681
2681
  key: u.key,
2682
2682
  item: u
2683
2683
  }, _e({
@@ -2701,23 +2701,23 @@ const Po = {
2701
2701
  } : void 0
2702
2702
  ]), 1032, ["item"]))), 128))
2703
2703
  ], 10, Ro))), 128))
2704
- ])) : z("", !0),
2705
- e.format === "json" ? (f(), x("div", Do, [
2704
+ ])) : J("", !0),
2705
+ e.format === "json" ? (y(), x("div", Do, [
2706
2706
  j(l, {
2707
2707
  id: "config-card-codeblock",
2708
2708
  code: r.value,
2709
2709
  language: "json",
2710
2710
  theme: "dark"
2711
2711
  }, null, 8, ["code"])
2712
- ])) : z("", !0),
2713
- e.format === "yaml" ? (f(), x("div", Ho, [
2712
+ ])) : J("", !0),
2713
+ e.format === "yaml" ? (y(), x("div", Ho, [
2714
2714
  j(l, {
2715
2715
  id: "config-card-codeblock",
2716
2716
  code: o.value,
2717
2717
  language: "yaml",
2718
2718
  theme: "dark"
2719
2719
  }, null, 8, ["code"])
2720
- ])) : z("", !0)
2720
+ ])) : J("", !0)
2721
2721
  ], 64);
2722
2722
  };
2723
2723
  }
@@ -2726,7 +2726,7 @@ const Po = {
2726
2726
  for (const [i, n] of a)
2727
2727
  t[i] = n;
2728
2728
  return t;
2729
- }, Yo = (e) => (Xt("data-v-81457922"), e = e(), ea(), e), Go = ["aria-hidden"], Zo = {
2729
+ }, Yo = (e) => (Xt("data-v-4c9d405a"), e = e(), ea(), e), Go = ["aria-hidden"], Zo = {
2730
2730
  key: 0,
2731
2731
  "data-testid": "kui-icon-svg-title"
2732
2732
  }, Qo = /* @__PURE__ */ Yo(() => /* @__PURE__ */ L("path", {
@@ -2801,14 +2801,14 @@ const Po = {
2801
2801
  lineHeight: "0",
2802
2802
  width: t.value
2803
2803
  }));
2804
- return (n, r) => (f(), F(Ee(e.as), {
2804
+ return (n, r) => (y(), F(Ee(e.as), {
2805
2805
  "aria-hidden": e.decorative ? "true" : void 0,
2806
2806
  class: "kui-icon book-icon",
2807
2807
  "data-testid": "kui-icon-wrapper-book-icon",
2808
2808
  style: Qt(i.value)
2809
2809
  }, {
2810
2810
  default: C(() => [
2811
- (f(), x("svg", {
2811
+ (y(), x("svg", {
2812
2812
  "aria-hidden": e.decorative ? "true" : void 0,
2813
2813
  "data-testid": "kui-icon-svg-book-icon",
2814
2814
  fill: "none",
@@ -2818,14 +2818,14 @@ const Po = {
2818
2818
  width: "100%",
2819
2819
  xmlns: "http://www.w3.org/2000/svg"
2820
2820
  }, [
2821
- e.title ? (f(), x("title", Zo, M(e.title), 1)) : z("", !0),
2821
+ e.title ? (y(), x("title", Zo, M(e.title), 1)) : J("", !0),
2822
2822
  Qo
2823
2823
  ], 8, Go))
2824
2824
  ]),
2825
2825
  _: 1
2826
2826
  }, 8, ["aria-hidden", "style"]));
2827
2827
  }
2828
- }), el = /* @__PURE__ */ Wo(Xo, [["__scopeId", "data-v-81457922"]]), tl = { "data-testid": "config-card-title" }, al = { class: "config-card-actions" }, il = ["href"], nl = {
2828
+ }), el = /* @__PURE__ */ Wo(Xo, [["__scopeId", "data-v-4c9d405a"]]), tl = { "data-testid": "config-card-title" }, al = { class: "config-card-actions" }, il = ["href"], nl = {
2829
2829
  key: 2,
2830
2830
  class: "config-card-details-section"
2831
2831
  }, rl = {
@@ -3052,11 +3052,11 @@ const Po = {
3052
3052
  }
3053
3053
  }), (_, B) => {
3054
3054
  const E = N("KLabel"), K = N("KSelect"), P = N("KButton"), R = N("KClipboardProvider"), G = N("KSkeleton"), X = N("KEmptyState"), ie = N("KCard");
3055
- return f(), F(ie, { class: "kong-ui-entity-base-config-card" }, _e({
3055
+ return y(), F(ie, { class: "kong-ui-entity-base-config-card" }, _e({
3056
3056
  actions: C(() => [
3057
3057
  L("div", al, [
3058
3058
  Q(_.$slots, "actions", {}, void 0, !0),
3059
- e.config.jsonYamlEnabled ? (f(), F(E, {
3059
+ e.config.jsonYamlEnabled ? (y(), F(E, {
3060
3060
  key: 0,
3061
3061
  class: "config-format-select-label",
3062
3062
  "data-testid": "config-format-select-label"
@@ -3065,15 +3065,15 @@ const Po = {
3065
3065
  te(M(e.label), 1)
3066
3066
  ]),
3067
3067
  _: 1
3068
- })) : z("", !0),
3069
- e.config.jsonYamlEnabled ? (f(), F(K, {
3068
+ })) : J("", !0),
3069
+ e.config.jsonYamlEnabled ? (y(), F(K, {
3070
3070
  key: 1,
3071
3071
  appearance: "select",
3072
3072
  "data-testid": "select-config-format",
3073
3073
  items: l,
3074
3074
  onChange: u
3075
- })) : z("", !0),
3076
- i.config.jsonYamlEnabled && e.configCardDoc ? (f(), F(P, {
3075
+ })) : J("", !0),
3076
+ i.config.jsonYamlEnabled && e.configCardDoc ? (y(), F(P, {
3077
3077
  key: 2,
3078
3078
  appearance: "tertiary",
3079
3079
  class: "book-icon",
@@ -3089,10 +3089,10 @@ const Po = {
3089
3089
  ], 8, il)
3090
3090
  ]),
3091
3091
  _: 1
3092
- })) : z("", !0),
3093
- e.config.jsonYamlEnabled ? z("", !0) : (f(), F(R, { key: 3 }, {
3092
+ })) : J("", !0),
3093
+ e.config.jsonYamlEnabled ? J("", !0) : (y(), F(R, { key: 3 }, {
3094
3094
  default: C(({ copyToClipboard: ee }) => [
3095
- !m.value && !I.value ? (f(), F(P, {
3095
+ !m.value && !I.value ? (y(), F(P, {
3096
3096
  key: 0,
3097
3097
  appearance: "tertiary",
3098
3098
  "data-testid": "json-copy-button",
@@ -3102,19 +3102,19 @@ const Po = {
3102
3102
  te(M(h(r)("baseConfigCard.actions.copy")), 1)
3103
3103
  ]),
3104
3104
  _: 2
3105
- }, 1032, ["onClick"])) : z("", !0)
3105
+ }, 1032, ["onClick"])) : J("", !0)
3106
3106
  ]),
3107
3107
  _: 1
3108
3108
  }))
3109
3109
  ])
3110
3110
  ]),
3111
3111
  body: C(() => [
3112
- m.value ? (f(), F(G, {
3112
+ m.value ? (y(), F(G, {
3113
3113
  key: 0,
3114
3114
  "data-testid": "config-card-loader",
3115
3115
  "table-columns": 2,
3116
3116
  type: "table"
3117
- })) : I.value ? (f(), F(X, {
3117
+ })) : I.value ? (y(), F(X, {
3118
3118
  key: 1,
3119
3119
  "data-testid": "config-card-fetch-error",
3120
3120
  "is-error": ""
@@ -3123,8 +3123,8 @@ const Po = {
3123
3123
  L("h3", null, M(w.value), 1)
3124
3124
  ]),
3125
3125
  _: 1
3126
- })) : z("", !0),
3127
- e.config.jsonYamlEnabled ? (f(), x("div", nl, [
3126
+ })) : J("", !0),
3127
+ e.config.jsonYamlEnabled ? (y(), x("div", nl, [
3128
3128
  j(zo, {
3129
3129
  format: d.value,
3130
3130
  "prop-list-types": v.value,
@@ -3141,14 +3141,14 @@ const Po = {
3141
3141
  ])
3142
3142
  }))
3143
3143
  ]), 1032, ["format", "prop-list-types", "property-collections", "record"])
3144
- ])) : (f(), x("div", rl, [
3145
- (f(!0), x(ge, null, me(v.value, (ee) => (f(), x("div", {
3144
+ ])) : (y(), x("div", rl, [
3145
+ (y(!0), x(ge, null, me(v.value, (ee) => (y(), x("div", {
3146
3146
  key: `config-card-details-${ee}-props`,
3147
3147
  class: Ae(`config-card-details-${ee}-props`),
3148
3148
  "data-testid": `config-card-details-${ee}-props`
3149
3149
  }, [
3150
- ee !== "basic" ? (f(), x("div", ll, M(ee === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : z("", !0),
3151
- (f(!0), x(ge, null, me(O.value[ee], (Z) => (f(), F(Re, {
3150
+ ee !== "basic" ? (y(), x("div", ll, M(ee === "advanced" ? h(r)("baseConfigCard.sections.advanced") : h(r)("baseConfigCard.sections.plugin")), 1)) : J("", !0),
3151
+ (y(!0), x(ge, null, me(O.value[ee], (Z) => (y(), F(Re, {
3152
3152
  key: Z.key,
3153
3153
  item: Z
3154
3154
  }, _e({
@@ -3274,12 +3274,12 @@ const Po = {
3274
3274
  }
3275
3275
  }), (p, g) => {
3276
3276
  const b = N("KSkeleton"), O = N("KEmptyState"), v = N("KAlert"), V = N("KButton"), q = N("KCard");
3277
- return f(), F(q, { class: "kong-ui-entity-base-form" }, {
3277
+ return y(), F(q, { class: "kong-ui-entity-base-form" }, {
3278
3278
  body: C(() => [
3279
- c.value ? (f(), F(b, {
3279
+ c.value ? (y(), F(b, {
3280
3280
  key: 0,
3281
3281
  type: "form"
3282
- })) : l.value ? (f(), F(O, {
3282
+ })) : l.value ? (y(), F(O, {
3283
3283
  key: 1,
3284
3284
  "cta-text": h(r)("baseForm.actions.back"),
3285
3285
  "data-testid": "form-fetch-error",
@@ -3290,19 +3290,19 @@ const Po = {
3290
3290
  L("h3", null, M(d.value), 1)
3291
3291
  ]),
3292
3292
  _: 1
3293
- }, 8, ["cta-text"])) : (f(), x("form", {
3293
+ }, 8, ["cta-text"])) : (y(), x("form", {
3294
3294
  key: 2,
3295
3295
  "data-testid": "form-content",
3296
3296
  onReset: We(I, ["prevent"]),
3297
3297
  onSubmit: We(w, ["prevent"])
3298
3298
  }, [
3299
3299
  Q(p.$slots, "default", {}, void 0, !0),
3300
- e.errorMessage ? (f(), F(v, {
3300
+ e.errorMessage ? (y(), F(v, {
3301
3301
  key: 0,
3302
3302
  "alert-message": e.errorMessage,
3303
3303
  appearance: "danger",
3304
3304
  "data-testid": "form-error"
3305
- }, null, 8, ["alert-message"])) : z("", !0),
3305
+ }, null, 8, ["alert-message"])) : J("", !0),
3306
3306
  L("div", dl, [
3307
3307
  Q(p.$slots, "form-actions", {}, () => [
3308
3308
  j(V, {
@@ -3389,12 +3389,12 @@ const Po = {
3389
3389
  m();
3390
3390
  }), (w, p) => {
3391
3391
  const g = N("KTooltip");
3392
- return f(), x("span", {
3392
+ return y(), x("span", {
3393
3393
  ref_key: "contentRef",
3394
3394
  ref: c,
3395
3395
  class: "content-wrapper"
3396
3396
  }, [
3397
- n.value ? (f(), x("span", yl, [
3397
+ n.value ? (y(), x("span", yl, [
3398
3398
  j(g, {
3399
3399
  label: I.value ? u.value : "",
3400
3400
  "max-width": "300",
@@ -3582,7 +3582,7 @@ const Po = {
3582
3582
  };
3583
3583
  return (v, V) => {
3584
3584
  const q = N("KIcon"), W = N("KButton"), _ = N("KDropdown"), B = N("KTable"), E = N("KCard");
3585
- return f(), F(E, {
3585
+ return y(), F(E, {
3586
3586
  class: "kong-ui-entity-base-table",
3587
3587
  title: e.title
3588
3588
  }, {
@@ -3622,9 +3622,9 @@ const Po = {
3622
3622
  toolbar: C(({ state: K }) => [
3623
3623
  Ve(L("div", hl, [
3624
3624
  Q(v.$slots, "toolbar-filter", {}, void 0, !0),
3625
- v.$slots["toolbar-button"] ? (f(), x("div", vl, [
3625
+ v.$slots["toolbar-button"] ? (y(), x("div", vl, [
3626
3626
  Q(v.$slots, "toolbar-button", {}, void 0, !0)
3627
- ])) : z("", !0)
3627
+ ])) : J("", !0)
3628
3628
  ], 512), [
3629
3629
  [Pe, o(K)]
3630
3630
  ])
@@ -3745,7 +3745,7 @@ const Po = {
3745
3745
  };
3746
3746
  return (s, c) => {
3747
3747
  const l = N("KAlert"), d = N("KPrompt");
3748
- return f(), F(d, {
3748
+ return y(), F(d, {
3749
3749
  "action-button-text": "Yes, delete",
3750
3750
  "action-pending": e.actionPending,
3751
3751
  class: "kong-ui-entity-delete-modal",
@@ -3757,14 +3757,14 @@ const Po = {
3757
3757
  onProceed: o
3758
3758
  }, {
3759
3759
  "body-content": C(() => [
3760
- e.error ? (f(), x("div", wl, [
3760
+ e.error ? (y(), x("div", wl, [
3761
3761
  j(l, { appearance: "danger" }, {
3762
3762
  alertMessage: C(() => [
3763
3763
  te(M(e.error), 1)
3764
3764
  ]),
3765
3765
  _: 1
3766
3766
  })
3767
- ])) : z("", !0),
3767
+ ])) : J("", !0),
3768
3768
  j(h(i), {
3769
3769
  class: "message",
3770
3770
  keypath: t.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
@@ -3783,11 +3783,11 @@ const Po = {
3783
3783
  key: "0"
3784
3784
  } : void 0
3785
3785
  ]), 1032, ["keypath"]),
3786
- t.description || s.$slots.description ? (f(), x("div", Sl, [
3786
+ t.description || s.$slots.description ? (y(), x("div", Sl, [
3787
3787
  Q(s.$slots, "description", {}, () => [
3788
3788
  L("p", null, M(t.description), 1)
3789
3789
  ], !0)
3790
- ])) : z("", !0)
3790
+ ])) : J("", !0)
3791
3791
  ]),
3792
3792
  _: 3
3793
3793
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
@@ -3816,7 +3816,7 @@ const Po = {
3816
3816
  }
3817
3817
  },
3818
3818
  setup(e) {
3819
- return (a, t) => (f(), x("svg", Al, [
3819
+ return (a, t) => (y(), x("svg", Al, [
3820
3820
  L("mask", xl, [
3821
3821
  L("rect", {
3822
3822
  fill: e.color,
@@ -3898,7 +3898,7 @@ const Po = {
3898
3898
  };
3899
3899
  return (p, g) => {
3900
3900
  const b = N("KInput"), O = N("KButton"), v = N("KSelect"), V = N("KMenuItem"), q = N("KMenu");
3901
- return e.config.isExactMatch ? (f(), F(b, {
3901
+ return e.config.isExactMatch ? (y(), F(b, {
3902
3902
  key: 0,
3903
3903
  autocomplete: "off",
3904
3904
  class: "kong-ui-entity-filter-input",
@@ -3911,7 +3911,7 @@ const Po = {
3911
3911
  j(Gt)
3912
3912
  ]),
3913
3913
  _: 1
3914
- }, 8, ["model-value", "placeholder"])) : (f(), x("div", Kl, [
3914
+ }, 8, ["model-value", "placeholder"])) : (y(), x("div", Kl, [
3915
3915
  j(O, {
3916
3916
  appearance: "tertiary",
3917
3917
  "data-testid": "filter-button",
@@ -3931,7 +3931,7 @@ const Po = {
3931
3931
  ]),
3932
3932
  Ve(j(q, { class: "kong-ui-entity-filter-menu" }, {
3933
3933
  body: C(() => [
3934
- (f(!0), x(ge, null, me(s.value, (W, _) => (f(), F(V, {
3934
+ (y(!0), x(ge, null, me(s.value, (W, _) => (y(), F(V, {
3935
3935
  key: W.value,
3936
3936
  "data-testid": W.value,
3937
3937
  expandable: "",
@@ -3953,7 +3953,7 @@ const Po = {
3953
3953
  class: "menu-item-label",
3954
3954
  for: d(W.value)
3955
3955
  }, M(h(i)("filter.fieldLabel")), 9, Fl),
3956
- ((E = (B = e.config.schema) == null ? void 0 : B[W.value]) == null ? void 0 : E.type) === "select" ? (f(), F(v, {
3956
+ ((E = (B = e.config.schema) == null ? void 0 : B[W.value]) == null ? void 0 : E.type) === "select" ? (y(), F(v, {
3957
3957
  key: 0,
3958
3958
  id: d(W.value),
3959
3959
  modelValue: r.value[W.value],
@@ -3961,7 +3961,7 @@ const Po = {
3961
3961
  appearance: "select",
3962
3962
  items: u(W.value),
3963
3963
  placeholder: h(i)("filter.selectPlaceholder")
3964
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (f(), F(b, {
3964
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (y(), F(b, {
3965
3965
  key: 1,
3966
3966
  id: d(W.value),
3967
3967
  modelValue: r.value[W.value],
@@ -4049,7 +4049,7 @@ const Po = {
4049
4049
  }, { immediate: !0 }), (n, r) => i.value ? Q(n.$slots, "default", {
4050
4050
  key: 0,
4051
4051
  isAllowed: t.value
4052
- }) : z("", !0);
4052
+ }) : J("", !0);
4053
4053
  }
4054
4054
  }), Vl = { class: "form-section-wrapper" }, Pl = {
4055
4055
  key: 0,
@@ -4086,23 +4086,23 @@ const Po = {
4086
4086
  },
4087
4087
  setup(e) {
4088
4088
  const a = et();
4089
- return (t, i) => (f(), x("fieldset", {
4089
+ return (t, i) => (y(), x("fieldset", {
4090
4090
  class: Ae(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4091
4091
  }, [
4092
4092
  L("div", Vl, [
4093
- e.hideInfoHeader ? z("", !0) : (f(), x("div", {
4093
+ e.hideInfoHeader ? J("", !0) : (y(), x("div", {
4094
4094
  key: 0,
4095
4095
  class: Ae(["form-section-info", { sticky: e.stickyInfoHeader }])
4096
4096
  }, [
4097
- e.title ? (f(), x("h4", Pl, M(e.title), 1)) : z("", !0),
4098
- e.description || h(a).description ? (f(), x("div", Rl, [
4097
+ e.title ? (y(), x("h4", Pl, M(e.title), 1)) : J("", !0),
4098
+ e.description || h(a).description ? (y(), x("div", Rl, [
4099
4099
  Q(t.$slots, "description", {}, () => [
4100
4100
  L("p", null, M(e.description), 1)
4101
4101
  ], !0)
4102
- ])) : z("", !0),
4103
- h(a).footer ? (f(), x("div", Ul, [
4102
+ ])) : J("", !0),
4103
+ h(a).footer ? (y(), x("div", Ul, [
4104
4104
  Q(t.$slots, "footer", {}, void 0, !0)
4105
- ])) : z("", !0)
4105
+ ])) : J("", !0)
4106
4106
  ], 2)),
4107
4107
  L("div", Dl, [
4108
4108
  Q(t.$slots, "default", {}, void 0, !0)
@@ -4167,18 +4167,18 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4167
4167
  id: { label: i("keys.list.table_headers.id"), sortable: !0 }
4168
4168
  }, l = c, d = A(() => {
4169
4169
  var S, D, ae, ue;
4170
- let y = `${t.config.apiBaseUrl}${Se.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
4171
- return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{keySetId}/gi, ((D = t.config) == null ? void 0 : D.keySetId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (ae = t.config) != null && ae.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((ue = t.config) == null ? void 0 : ue.keySetId) || "")), y;
4170
+ let f = `${t.config.apiBaseUrl}${Se.list[t.config.app][t.config.keySetId ? "forKeySet" : "all"]}`;
4171
+ return t.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{keySetId}/gi, ((D = t.config) == null ? void 0 : D.keySetId) || "") : t.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (ae = t.config) != null && ae.workspace ? `/${t.config.workspace}` : "").replace(/{keySetId}/gi, ((ue = t.config) == null ? void 0 : ue.keySetId) || "")), f;
4172
4172
  }), u = $(""), k = A(() => {
4173
- const y = t.config.app === "konnect" || t.config.isExactMatch;
4174
- if (y)
4173
+ const f = t.config.app === "konnect" || t.config.isExactMatch;
4174
+ if (f)
4175
4175
  return {
4176
- isExactMatch: y,
4176
+ isExactMatch: f,
4177
4177
  placeholder: i("keys.search.placeholder")
4178
4178
  };
4179
4179
  const S = { name: c.name };
4180
4180
  return {
4181
- isExactMatch: y,
4181
+ isExactMatch: f,
4182
4182
  fields: S,
4183
4183
  schema: t.config.filterSchema
4184
4184
  };
@@ -4186,57 +4186,57 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4186
4186
  u.value = "";
4187
4187
  }, p = () => {
4188
4188
  o.value++;
4189
- }, g = $(null), b = (y, S) => {
4190
- const D = y.id;
4189
+ }, g = $(null), b = (f, S) => {
4190
+ const D = f.id;
4191
4191
  if (!S(D)) {
4192
- q(y, "id");
4192
+ q(f, "id");
4193
4193
  return;
4194
4194
  }
4195
- V(y, "id");
4196
- }, O = (y, S) => {
4197
- const D = JSON.stringify(y);
4195
+ V(f, "id");
4196
+ }, O = (f, S) => {
4197
+ const D = JSON.stringify(f);
4198
4198
  if (!S(D)) {
4199
4199
  a("copy:error", {
4200
- entity: y,
4200
+ entity: f,
4201
4201
  message: i("keys.errors.copy")
4202
4202
  });
4203
4203
  return;
4204
4204
  }
4205
4205
  a("copy:success", {
4206
- entity: y,
4206
+ entity: f,
4207
4207
  message: i("keys.copy.success_brief")
4208
4208
  });
4209
- }, v = (y, S, D) => {
4210
- const { type: ae } = y;
4209
+ }, v = (f, S, D) => {
4210
+ const { type: ae } = f;
4211
4211
  ae === "success" ? V(S, D) : q(S, D);
4212
- }, V = (y, S) => {
4212
+ }, V = (f, S) => {
4213
4213
  a("copy:success", {
4214
- entity: y,
4214
+ entity: f,
4215
4215
  field: S,
4216
- message: i("keys.copy.success", { val: y[S] })
4216
+ message: i("keys.copy.success", { val: f[S] })
4217
4217
  });
4218
- }, q = (y, S) => {
4218
+ }, q = (f, S) => {
4219
4219
  a("copy:error", {
4220
- entity: y,
4220
+ entity: f,
4221
4221
  field: S,
4222
4222
  message: i("keys.errors.copy")
4223
4223
  });
4224
- }, W = async (y) => {
4224
+ }, W = async (f) => {
4225
4225
  var D;
4226
- await ((D = t.canRetrieve) == null ? void 0 : D.call(t, y)) && n.push(t.config.getViewRoute(y.id));
4227
- }, _ = (y) => ({
4226
+ await ((D = t.canRetrieve) == null ? void 0 : D.call(t, f)) && n.push(t.config.getViewRoute(f.id));
4227
+ }, _ = (f) => ({
4228
4228
  label: i("keys.actions.view"),
4229
- to: t.config.getViewRoute(y)
4230
- }), B = (y) => ({
4229
+ to: t.config.getViewRoute(f)
4230
+ }), B = (f) => ({
4231
4231
  label: i("keys.actions.edit"),
4232
- to: t.config.getEditRoute(y)
4233
- }), E = $(void 0), K = $(!1), P = $(!1), R = $(""), G = Jl(t.config, d.value), X = (y) => {
4234
- E.value = y, K.value = !0;
4232
+ to: t.config.getEditRoute(f)
4233
+ }), E = $(void 0), K = $(!1), P = $(!1), R = $(""), G = Jl(t.config, d.value), X = (f) => {
4234
+ E.value = f, K.value = !0;
4235
4235
  }, ie = () => {
4236
4236
  K.value = !1;
4237
4237
  }, ee = async () => {
4238
- var y, S, D;
4239
- if ((y = E.value) != null && y.id) {
4238
+ var f, S, D;
4239
+ if ((f = E.value) != null && f.id) {
4240
4240
  P.value = !0;
4241
4241
  try {
4242
4242
  await r.delete(G(E.value.id)), P.value = !1, K.value = !1, o.value++, a("delete:success", E.value);
@@ -4247,12 +4247,12 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4247
4247
  }
4248
4248
  }
4249
4249
  }, Z = $(!0);
4250
- ve(I, (y) => {
4251
- var S, D, ae, ue, H;
4252
- if (((D = (S = y == null ? void 0 : y.response) == null ? void 0 : S.data) == null ? void 0 : D.length) === 0 && (Z.value = !1), y.status === Te.Error) {
4250
+ ve(I, (f) => {
4251
+ var S, D, ae, ue;
4252
+ if (Array.isArray((S = f == null ? void 0 : f.response) == null ? void 0 : S.data) && (Z.value = f.response.data.length > 0), f.status === Te.Error) {
4253
4253
  g.value = {
4254
4254
  title: i("keys.errors.general")
4255
- }, (H = (ue = (ae = y.error) == null ? void 0 : ae.response) == null ? void 0 : ue.data) != null && H.message && (g.value.message = y.error.response.data.message), a("error", y.error);
4255
+ }, (ue = (ae = (D = f.error) == null ? void 0 : D.response) == null ? void 0 : ae.data) != null && ue.message && (g.value.message = f.error.response.data.message), a("error", f.error);
4256
4256
  return;
4257
4257
  }
4258
4258
  g.value = null;
@@ -4265,9 +4265,9 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4265
4265
  });
4266
4266
  return tt(async () => {
4267
4267
  await t.canCreate() && (se.value.title = i("keys.list.empty_state.title"), se.value.ctaText = i("keys.actions.create"));
4268
- }), (y, S) => {
4269
- const D = N("KButton"), ae = N("CopyUuid"), ue = N("KBadge"), H = N("KTruncate"), we = N("KDropdownItem"), Be = N("KClipboardProvider");
4270
- return f(), x("div", Zl, [
4268
+ }), (f, S) => {
4269
+ const D = N("KButton"), ae = N("CopyUuid"), ue = N("KBadge"), z = N("KTruncate"), we = N("KDropdownItem"), Be = N("KClipboardProvider");
4270
+ return y(), x("div", Zl, [
4271
4271
  j(h(Cl), {
4272
4272
  "cache-identifier": e.cacheIdentifier,
4273
4273
  "disable-pagination-page-jump": "",
@@ -4283,18 +4283,18 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4283
4283
  "table-headers": h(l),
4284
4284
  "use-action-outside": e.useActionOutside,
4285
4285
  onClearSearchInput: w,
4286
- "onClick:row": S[2] || (S[2] = (J) => W(J)),
4286
+ "onClick:row": S[2] || (S[2] = (H) => W(H)),
4287
4287
  onSort: p
4288
4288
  }, {
4289
4289
  "toolbar-filter": C(() => [
4290
4290
  j(h(Ll), {
4291
4291
  modelValue: u.value,
4292
- "onUpdate:modelValue": S[0] || (S[0] = (J) => u.value = J),
4292
+ "onUpdate:modelValue": S[0] || (S[0] = (H) => u.value = H),
4293
4293
  config: k.value
4294
4294
  }, null, 8, ["modelValue", "config"])
4295
4295
  ]),
4296
4296
  "toolbar-button": C(() => [
4297
- (f(), F(ni, {
4297
+ (y(), F(ni, {
4298
4298
  disabled: !e.useActionOutside,
4299
4299
  to: "#kong-ui-app-page-header-action-button"
4300
4300
  }, [
@@ -4320,19 +4320,19 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4320
4320
  }, 8, ["auth-function"])
4321
4321
  ], 8, ["disabled"]))
4322
4322
  ]),
4323
- name: C(({ rowValue: J }) => [
4324
- L("b", null, M(J ?? "-"), 1)
4323
+ name: C(({ rowValue: H }) => [
4324
+ L("b", null, M(H ?? "-"), 1)
4325
4325
  ]),
4326
- kid: C(({ row: J, rowValue: oe }) => [
4326
+ kid: C(({ row: H, rowValue: oe }) => [
4327
4327
  j(ae, {
4328
- notify: (U) => v(U, J, "kid"),
4328
+ notify: (U) => v(U, H, "kid"),
4329
4329
  uuid: oe
4330
4330
  }, null, 8, ["notify", "uuid"])
4331
4331
  ]),
4332
- tags: C(({ rowValue: J }) => [
4333
- (J == null ? void 0 : J.length) > 0 ? (f(), F(H, { key: 0 }, {
4332
+ tags: C(({ rowValue: H }) => [
4333
+ (H == null ? void 0 : H.length) > 0 ? (y(), F(z, { key: 0 }, {
4334
4334
  default: C(() => [
4335
- (f(!0), x(ge, null, me(J, (oe) => (f(), F(ue, {
4335
+ (y(!0), x(ge, null, me(H, (oe) => (y(), F(ue, {
4336
4336
  key: oe,
4337
4337
  onClick: S[1] || (S[1] = We(() => {
4338
4338
  }, ["stop"]))
@@ -4344,20 +4344,20 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4344
4344
  }, 1024))), 128))
4345
4345
  ]),
4346
4346
  _: 2
4347
- }, 1024)) : (f(), x("span", Ql, "-"))
4347
+ }, 1024)) : (y(), x("span", Ql, "-"))
4348
4348
  ]),
4349
- id: C(({ row: J, rowValue: oe }) => [
4349
+ id: C(({ row: H, rowValue: oe }) => [
4350
4350
  j(ae, {
4351
- notify: (U) => v(U, J, "id"),
4351
+ notify: (U) => v(U, H, "id"),
4352
4352
  uuid: oe
4353
4353
  }, null, 8, ["notify", "uuid"])
4354
4354
  ]),
4355
- actions: C(({ row: J }) => [
4355
+ actions: C(({ row: H }) => [
4356
4356
  j(Be, null, {
4357
4357
  default: C(({ copyToClipboard: oe }) => [
4358
4358
  j(we, {
4359
4359
  "data-testid": "action-entity-copy-id",
4360
- onClick: (U) => b(J, oe)
4360
+ onClick: (U) => b(H, oe)
4361
4361
  }, {
4362
4362
  default: C(() => [
4363
4363
  te(M(h(i)("keys.actions.copy_id")), 1)
@@ -4371,7 +4371,7 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4371
4371
  default: C(({ copyToClipboard: oe }) => [
4372
4372
  j(we, {
4373
4373
  "data-testid": "action-entity-copy-json",
4374
- onClick: (U) => O(J, oe)
4374
+ onClick: (U) => O(H, oe)
4375
4375
  }, {
4376
4376
  default: C(() => [
4377
4377
  te(M(h(i)("keys.actions.copy_json")), 1)
@@ -4382,37 +4382,37 @@ const Zl = { class: "kong-ui-entities-keys-list" }, Ql = { key: 1 }, Xl = /* @__
4382
4382
  _: 2
4383
4383
  }, 1024),
4384
4384
  j(h(ze), {
4385
- "auth-function": () => e.canRetrieve(J)
4385
+ "auth-function": () => e.canRetrieve(H)
4386
4386
  }, {
4387
4387
  default: C(() => [
4388
4388
  j(we, {
4389
4389
  "data-testid": "action-entity-view",
4390
4390
  "has-divider": "",
4391
- item: _(J.id)
4391
+ item: _(H.id)
4392
4392
  }, null, 8, ["item"])
4393
4393
  ]),
4394
4394
  _: 2
4395
4395
  }, 1032, ["auth-function"]),
4396
4396
  j(h(ze), {
4397
- "auth-function": () => e.canEdit(J)
4397
+ "auth-function": () => e.canEdit(H)
4398
4398
  }, {
4399
4399
  default: C(() => [
4400
4400
  j(we, {
4401
4401
  "data-testid": "action-entity-edit",
4402
- item: B(J.id)
4402
+ item: B(H.id)
4403
4403
  }, null, 8, ["item"])
4404
4404
  ]),
4405
4405
  _: 2
4406
4406
  }, 1032, ["auth-function"]),
4407
4407
  j(h(ze), {
4408
- "auth-function": () => e.canDelete(J)
4408
+ "auth-function": () => e.canDelete(H)
4409
4409
  }, {
4410
4410
  default: C(() => [
4411
4411
  j(we, {
4412
4412
  danger: "",
4413
4413
  "data-testid": "action-entity-delete",
4414
4414
  "has-divider": "",
4415
- onClick: (oe) => X(J)
4415
+ onClick: (oe) => X(H)
4416
4416
  }, {
4417
4417
  default: C(() => [
4418
4418
  te(M(h(i)("keys.actions.delete")), 1)
@@ -4446,7 +4446,7 @@ const Za = (e, a) => {
4446
4446
  for (const [i, n] of a)
4447
4447
  t[i] = n;
4448
4448
  return t;
4449
- }, ks = /* @__PURE__ */ Za(Xl, [["__scopeId", "data-v-67e7d748"]]), es = { class: "kong-ui-entities-keys-form" }, ts = { "data-testid": "no-search-results" }, as = { class: "select-item-label" }, is = { class: "select-item-desc" }, ns = {
4449
+ }, ks = /* @__PURE__ */ Za(Xl, [["__scopeId", "data-v-febbb0b0"]]), es = { class: "kong-ui-entities-keys-form" }, ts = { "data-testid": "no-search-results" }, as = { class: "select-item-label" }, is = { class: "select-item-desc" }, ns = {
4450
4450
  key: 0,
4451
4451
  class: "invalid-key-set-message",
4452
4452
  "data-testid": "invalid-key-set-message"
@@ -4515,37 +4515,37 @@ const Za = (e, a) => {
4515
4515
  value: "pem"
4516
4516
  }
4517
4517
  ], k = A(() => l.isReadonly || c.value === qe.Create && !!t.fixedKeySetId), m = A(() => !k.value);
4518
- ve(() => t.fixedKeySetId, (y) => {
4519
- c.value === qe.Create && (l.fields.key_set = y);
4518
+ ve(() => t.fixedKeySetId, (f) => {
4519
+ c.value === qe.Create && (l.fields.key_set = f);
4520
4520
  }, { immediate: !0 });
4521
- const I = A(() => JSON.stringify(l.fields) !== JSON.stringify(d) && !!l.fields.key_id && !!l.fields.key_format && (l.fields.key_format === "jwk" && !!l.fields.jwk || l.fields.key_format === "pem" && !!l.fields.private_key && !!l.fields.public_key)), w = (y) => {
4521
+ const I = A(() => JSON.stringify(l.fields) !== JSON.stringify(d) && !!l.fields.key_id && !!l.fields.key_format && (l.fields.key_format === "jwk" && !!l.fields.jwk || l.fields.key_format === "pem" && !!l.fields.private_key && !!l.fields.public_key)), w = (f) => {
4522
4522
  var S, D, ae, ue;
4523
- l.fields.key_id = (y == null ? void 0 : y.kid) || "", l.fields.name = (y == null ? void 0 : y.name) || "", l.fields.tags = ((S = y == null ? void 0 : y.tags) == null ? void 0 : S.join(", ")) || "", l.fields.key_set = ((D = y == null ? void 0 : y.set) == null ? void 0 : D.id) || "", l.fields.key_format = y != null && y.pem ? "pem" : "jwk", l.fields.jwk = (y == null ? void 0 : y.jwk) || "", l.fields.private_key = ((ae = y == null ? void 0 : y.pem) == null ? void 0 : ae.private_key) || "", l.fields.public_key = ((ue = y == null ? void 0 : y.pem) == null ? void 0 : ue.public_key) || "", l.fields.key_set && (E.value = !1), Object.assign(d, l.fields);
4523
+ l.fields.key_id = (f == null ? void 0 : f.kid) || "", l.fields.name = (f == null ? void 0 : f.name) || "", l.fields.tags = ((S = f == null ? void 0 : f.tags) == null ? void 0 : S.join(", ")) || "", l.fields.key_set = ((D = f == null ? void 0 : f.set) == null ? void 0 : D.id) || "", l.fields.key_format = f != null && f.pem ? "pem" : "jwk", l.fields.jwk = (f == null ? void 0 : f.jwk) || "", l.fields.private_key = ((ae = f == null ? void 0 : f.pem) == null ? void 0 : ae.private_key) || "", l.fields.public_key = ((ue = f == null ? void 0 : f.pem) == null ? void 0 : ue.public_key) || "", l.fields.key_set && (E.value = !1), Object.assign(d, l.fields);
4524
4524
  }, p = () => {
4525
4525
  i.push(t.config.cancelRoute);
4526
4526
  }, g = A(() => {
4527
4527
  var S, D;
4528
- let y = `${t.config.apiBaseUrl}${Se.form[t.config.app][c.value][t.keySetId ? "forKeySet" : "all"]}`;
4529
- return t.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "") : t.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "")), y = y.replace(/{id}/gi, t.keyId).replace(/{keySetId}/gi, t.keySetId || ""), y;
4528
+ let f = `${t.config.apiBaseUrl}${Se.form[t.config.app][c.value][t.keySetId ? "forKeySet" : "all"]}`;
4529
+ return t.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((S = t.config) == null ? void 0 : S.controlPlaneId) || "") : t.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (D = t.config) != null && D.workspace ? `/${t.config.workspace}` : "")), f = f.replace(/{id}/gi, t.keyId).replace(/{keySetId}/gi, t.keySetId || ""), f;
4530
4530
  }), b = async () => {
4531
- var y, S, D, ae, ue, H, we, Be;
4531
+ var f, S, D, ae, ue, z, we, Be;
4532
4532
  try {
4533
4533
  l.isReadonly = !0;
4534
- const J = {
4534
+ const H = {
4535
4535
  kid: l.fields.key_id,
4536
4536
  name: l.fields.name || null,
4537
- tags: ((D = (S = (y = l.fields.tags) == null ? void 0 : y.split(",")) == null ? void 0 : S.map((U) => String(U || "").trim())) == null ? void 0 : D.filter((U) => U !== "")) || [],
4537
+ tags: ((D = (S = (f = l.fields.tags) == null ? void 0 : f.split(",")) == null ? void 0 : S.map((U) => String(U || "").trim())) == null ? void 0 : D.filter((U) => U !== "")) || [],
4538
4538
  set: l.fields.key_set ? { id: l.fields.key_set } : null,
4539
4539
  jwk: l.fields.key_format === "jwk" ? l.fields.jwk : null,
4540
4540
  pem: l.fields.key_format === "pem" ? { private_key: l.fields.private_key, public_key: l.fields.public_key } : null
4541
4541
  };
4542
4542
  let oe;
4543
- if (c.value === "create" ? oe = await o.post(g.value, J) : c.value === "edit" && (oe = ((ae = t.config) == null ? void 0 : ae.app) === "konnect" ? await o.put(g.value, J) : await o.patch(g.value, J)), oe) {
4543
+ if (c.value === "create" ? oe = await o.post(g.value, H) : c.value === "edit" && (oe = ((ae = t.config) == null ? void 0 : ae.app) === "konnect" ? await o.put(g.value, H) : await o.patch(g.value, H)), oe) {
4544
4544
  const { data: U } = oe;
4545
- l.fields.key_id = (U == null ? void 0 : U.kid) || "", l.fields.name = (U == null ? void 0 : U.name) || "", l.fields.tags = ((ue = U == null ? void 0 : U.tags) == null ? void 0 : ue.join(", ")) || "", l.fields.key_set = ((H = U == null ? void 0 : U.set) == null ? void 0 : H.id) || "", l.fields.key_format = U != null && U.pem ? "pem" : "jwk", l.fields.jwk = (U == null ? void 0 : U.jwk) || "", l.fields.private_key = ((we = U == null ? void 0 : U.pem) == null ? void 0 : we.private_key) || "", l.fields.public_key = ((Be = U == null ? void 0 : U.pem) == null ? void 0 : Be.public_key) || "", Object.assign(d, l.fields), a("update", oe == null ? void 0 : oe.data);
4545
+ l.fields.key_id = (U == null ? void 0 : U.kid) || "", l.fields.name = (U == null ? void 0 : U.name) || "", l.fields.tags = ((ue = U == null ? void 0 : U.tags) == null ? void 0 : ue.join(", ")) || "", l.fields.key_set = ((z = U == null ? void 0 : U.set) == null ? void 0 : z.id) || "", l.fields.key_format = U != null && U.pem ? "pem" : "jwk", l.fields.jwk = (U == null ? void 0 : U.jwk) || "", l.fields.private_key = ((we = U == null ? void 0 : U.pem) == null ? void 0 : we.private_key) || "", l.fields.public_key = ((Be = U == null ? void 0 : U.pem) == null ? void 0 : Be.public_key) || "", Object.assign(d, l.fields), a("update", oe == null ? void 0 : oe.data);
4546
4546
  }
4547
- } catch (J) {
4548
- l.errorMessage = r(J), a("error", J);
4547
+ } catch (H) {
4548
+ l.errorMessage = r(H), a("error", H);
4549
4549
  } finally {
4550
4550
  l.isReadonly = !1;
4551
4551
  }
@@ -4560,8 +4560,8 @@ const Za = (e, a) => {
4560
4560
  } = Yl(t.config, Se.form[t.config.app].keySets, void 0, {
4561
4561
  fetchedItemsKey: "data",
4562
4562
  searchKeys: ["id", "name"]
4563
- }), E = $(!0), K = (y) => {
4564
- E.value = !y, (!y || y !== l.fields.key_set && y !== d.key_set) && O(y);
4563
+ }), E = $(!0), K = (f) => {
4564
+ E.value = !f, (!f || f !== l.fields.key_set && f !== d.key_set) && O(f);
4565
4565
  }, P = A(() => q.value ? n("keys.errors.key_sets.fetch") : ""), R = A(() => W.value ? n("keys.errors.key_sets.invalid") : ""), G = $(0), X = A(() => V.value === void 0), ie = A(() => {
4566
4566
  if (X.value)
4567
4567
  return t.config.app === "konnect" ? n("keys.form.fields.key_set.footer") : void 0;
@@ -4572,21 +4572,21 @@ const Za = (e, a) => {
4572
4572
  // leave it blank so no flicker when used with selected-item-template
4573
4573
  value: S.id,
4574
4574
  selected: l.fields.key_set === S.id
4575
- }))), se = (y) => {
4575
+ }))), se = (f) => {
4576
4576
  ee.value.clear();
4577
4577
  let S;
4578
- for (S of y)
4578
+ for (S of f)
4579
4579
  ee.value.add(S);
4580
4580
  };
4581
- return ve(B, (y) => {
4582
- se(y);
4581
+ return ve(B, (f) => {
4582
+ se(f);
4583
4583
  }, { immediate: !0, deep: !0 }), ve(Z, () => {
4584
4584
  G.value++;
4585
4585
  }, { immediate: !0, deep: !0 }), tt(async () => {
4586
4586
  await _();
4587
- }), (y, S) => {
4587
+ }), (f, S) => {
4588
4588
  const D = N("KInput"), ae = N("KSelect"), ue = N("KTextArea");
4589
- return f(), x("div", es, [
4589
+ return y(), x("div", es, [
4590
4590
  j(h(fl), {
4591
4591
  "can-submit": I.value,
4592
4592
  config: e.config,
@@ -4595,9 +4595,9 @@ const Za = (e, a) => {
4595
4595
  "fetch-url": s.value,
4596
4596
  "is-readonly": l.isReadonly,
4597
4597
  onCancel: p,
4598
- "onFetch:error": S[8] || (S[8] = (H) => y.$emit("error", H)),
4598
+ "onFetch:error": S[8] || (S[8] = (z) => f.$emit("error", z)),
4599
4599
  "onFetch:success": w,
4600
- onLoading: S[9] || (S[9] = (H) => y.$emit("loading", H)),
4600
+ onLoading: S[9] || (S[9] = (z) => f.$emit("loading", z)),
4601
4601
  onSubmit: b
4602
4602
  }, {
4603
4603
  default: C(() => [
@@ -4608,7 +4608,7 @@ const Za = (e, a) => {
4608
4608
  default: C(() => [
4609
4609
  j(D, {
4610
4610
  modelValue: l.fields.key_id,
4611
- "onUpdate:modelValue": S[0] || (S[0] = (H) => l.fields.key_id = H),
4611
+ "onUpdate:modelValue": S[0] || (S[0] = (z) => l.fields.key_id = z),
4612
4612
  modelModifiers: { trim: !0 },
4613
4613
  autocomplete: "off",
4614
4614
  "data-testid": "key-form-id",
@@ -4622,7 +4622,7 @@ const Za = (e, a) => {
4622
4622
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
4623
4623
  j(D, {
4624
4624
  modelValue: l.fields.name,
4625
- "onUpdate:modelValue": S[1] || (S[1] = (H) => l.fields.name = H),
4625
+ "onUpdate:modelValue": S[1] || (S[1] = (z) => l.fields.name = z),
4626
4626
  modelModifiers: { trim: !0 },
4627
4627
  autocomplete: "off",
4628
4628
  "data-testid": "key-form-name",
@@ -4633,7 +4633,7 @@ const Za = (e, a) => {
4633
4633
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
4634
4634
  j(ae, {
4635
4635
  modelValue: l.fields.key_set,
4636
- "onUpdate:modelValue": S[2] || (S[2] = (H) => l.fields.key_set = H),
4636
+ "onUpdate:modelValue": S[2] || (S[2] = (z) => l.fields.key_set = z),
4637
4637
  appearance: "select",
4638
4638
  autosuggest: "",
4639
4639
  class: Ae({ "k-select-placeholder": E.value }),
@@ -4655,19 +4655,19 @@ const Za = (e, a) => {
4655
4655
  empty: C(() => [
4656
4656
  L("div", ts, M(h(n)("keys.search.no_results")), 1)
4657
4657
  ]),
4658
- "selected-item-template": C(({ item: H }) => [
4659
- L("div", null, M(H.name), 1)
4658
+ "selected-item-template": C(({ item: z }) => [
4659
+ L("div", null, M(z.name), 1)
4660
4660
  ]),
4661
- "item-template": C(({ item: H }) => [
4662
- L("div", as, M(H.name), 1),
4663
- L("div", is, M(H.value), 1)
4661
+ "item-template": C(({ item: z }) => [
4662
+ L("div", as, M(z.name), 1),
4663
+ L("div", is, M(z.value), 1)
4664
4664
  ]),
4665
4665
  _: 1
4666
4666
  }, 8, ["modelValue", "class", "clearable", "dropdown-footer-text", "items", "label", "loading", "placeholder", "readonly"]),
4667
- R.value ? (f(), x("p", ns, M(R.value), 1)) : z("", !0),
4667
+ R.value ? (y(), x("p", ns, M(R.value), 1)) : J("", !0),
4668
4668
  j(D, {
4669
4669
  modelValue: l.fields.tags,
4670
- "onUpdate:modelValue": S[3] || (S[3] = (H) => l.fields.tags = H),
4670
+ "onUpdate:modelValue": S[3] || (S[3] = (z) => l.fields.tags = z),
4671
4671
  modelModifiers: { trim: !0 },
4672
4672
  autocomplete: "off",
4673
4673
  "data-testid": "key-form-tags",
@@ -4690,7 +4690,7 @@ const Za = (e, a) => {
4690
4690
  L("div", rs, [
4691
4691
  j(ae, {
4692
4692
  modelValue: l.fields.key_format,
4693
- "onUpdate:modelValue": S[4] || (S[4] = (H) => l.fields.key_format = H),
4693
+ "onUpdate:modelValue": S[4] || (S[4] = (z) => l.fields.key_format = z),
4694
4694
  appearance: "select",
4695
4695
  "data-testid": "key-form-key-format",
4696
4696
  items: u,
@@ -4700,10 +4700,10 @@ const Za = (e, a) => {
4700
4700
  width: "100%"
4701
4701
  }, null, 8, ["modelValue", "label", "readonly"])
4702
4702
  ]),
4703
- l.fields.key_format === "jwk" ? (f(), F(ue, {
4703
+ l.fields.key_format === "jwk" ? (y(), F(ue, {
4704
4704
  key: 0,
4705
4705
  modelValue: l.fields.jwk,
4706
- "onUpdate:modelValue": S[5] || (S[5] = (H) => l.fields.jwk = H),
4706
+ "onUpdate:modelValue": S[5] || (S[5] = (z) => l.fields.jwk = z),
4707
4707
  modelModifiers: { trim: !0 },
4708
4708
  class: "key-form-textarea",
4709
4709
  "data-testid": "key-form-jwk",
@@ -4712,11 +4712,11 @@ const Za = (e, a) => {
4712
4712
  placeholder: h(n)("keys.form.fields.jwk.placeholder"),
4713
4713
  readonly: l.isReadonly,
4714
4714
  required: ""
4715
- }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : z("", !0),
4716
- l.fields.key_format === "pem" ? (f(), F(ue, {
4715
+ }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])) : J("", !0),
4716
+ l.fields.key_format === "pem" ? (y(), F(ue, {
4717
4717
  key: 1,
4718
4718
  modelValue: l.fields.private_key,
4719
- "onUpdate:modelValue": S[6] || (S[6] = (H) => l.fields.private_key = H),
4719
+ "onUpdate:modelValue": S[6] || (S[6] = (z) => l.fields.private_key = z),
4720
4720
  modelModifiers: { trim: !0 },
4721
4721
  class: "key-form-textarea",
4722
4722
  "data-testid": "key-form-private-key",
@@ -4724,11 +4724,11 @@ const Za = (e, a) => {
4724
4724
  placeholder: h(n)("keys.form.fields.private_key.placeholder"),
4725
4725
  readonly: l.isReadonly,
4726
4726
  required: ""
4727
- }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : z("", !0),
4728
- l.fields.key_format === "pem" ? (f(), F(ue, {
4727
+ }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : J("", !0),
4728
+ l.fields.key_format === "pem" ? (y(), F(ue, {
4729
4729
  key: 2,
4730
4730
  modelValue: l.fields.public_key,
4731
- "onUpdate:modelValue": S[7] || (S[7] = (H) => l.fields.public_key = H),
4731
+ "onUpdate:modelValue": S[7] || (S[7] = (z) => l.fields.public_key = z),
4732
4732
  modelModifiers: { trim: !0 },
4733
4733
  class: "key-form-textarea",
4734
4734
  "data-testid": "key-form-public-key",
@@ -4736,7 +4736,7 @@ const Za = (e, a) => {
4736
4736
  placeholder: h(n)("keys.form.fields.public_key.placeholder"),
4737
4737
  readonly: l.isReadonly,
4738
4738
  required: ""
4739
- }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : z("", !0)
4739
+ }, null, 8, ["modelValue", "label", "placeholder", "readonly"])) : J("", !0)
4740
4740
  ]),
4741
4741
  _: 1
4742
4742
  }, 8, ["description", "title"])
@@ -4862,7 +4862,7 @@ const bs = /* @__PURE__ */ Za(os, [["__scopeId", "data-v-99391058"]]), ls = { cl
4862
4862
  return (g, b) => {
4863
4863
  var v, V;
4864
4864
  const O = N("KSkeleton");
4865
- return f(), x("div", ls, [
4865
+ return y(), x("div", ls, [
4866
4866
  j(h(cl), {
4867
4867
  config: e.config,
4868
4868
  "config-card-doc": e.configCardDoc,
@@ -4875,11 +4875,11 @@ const bs = /* @__PURE__ */ Za(os, [["__scopeId", "data-v-99391058"]]), ls = { cl
4875
4875
  onLoading: b[2] || (b[2] = (q) => g.$emit("loading", q))
4876
4876
  }, _e({
4877
4877
  set: C(({ row: q }) => [
4878
- k.value ? (f(), F(O, {
4878
+ k.value ? (y(), F(O, {
4879
4879
  key: 0,
4880
4880
  "data-testid": "key-set-name-loader",
4881
4881
  type: "spinner"
4882
- })) : q.value && q.value.id === d.value && u.value ? (f(), F(h(ca), {
4882
+ })) : q.value && q.value.id === d.value && u.value ? (y(), F(h(ca), {
4883
4883
  key: 1,
4884
4884
  item: {
4885
4885
  key: q.value.id,
@@ -4887,14 +4887,14 @@ const bs = /* @__PURE__ */ Za(os, [["__scopeId", "data-v-99391058"]]), ls = { cl
4887
4887
  type: h(Y).LinkInternal
4888
4888
  },
4889
4889
  onClick: (W) => g.$emit("navigation-click", q.value.id, "key-sets")
4890
- }, null, 8, ["item", "onClick"])) : (f(), x("div", ss, M("–")))
4890
+ }, null, 8, ["item", "onClick"])) : (y(), x("div", ss, M("–")))
4891
4891
  ]),
4892
4892
  _: 2
4893
4893
  }, [
4894
4894
  (v = c.value) != null && v.jwk ? {
4895
4895
  name: "jwk",
4896
4896
  fn: C(() => [
4897
- (f(!0), x(ge, null, me(Object.keys(l.value), (q) => (f(), F(h(Re), {
4897
+ (y(!0), x(ge, null, me(Object.keys(l.value), (q) => (y(), F(h(Re), {
4898
4898
  key: q,
4899
4899
  "data-testid": `${q}`,
4900
4900
  item: {
@@ -4909,7 +4909,7 @@ const bs = /* @__PURE__ */ Za(os, [["__scopeId", "data-v-99391058"]]), ls = { cl
4909
4909
  (V = c.value) != null && V.pem ? {
4910
4910
  name: "pem",
4911
4911
  fn: C(() => [
4912
- (f(!0), x(ge, null, me(Object.keys(l.value), (q) => (f(), F(h(Re), {
4912
+ (y(!0), x(ge, null, me(Object.keys(l.value), (q) => (y(), F(h(Re), {
4913
4913
  key: q,
4914
4914
  "data-testid": `${q}`,
4915
4915
  item: {