@kong-ui-public/entities-shared 3.33.2-pr.2665.0286fb582.0 → 3.33.2-pr.2665.525593492.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { inject as Dt, ref as N, computed as $, unref as T, toValue as ye, watch as be, toRef as Jn, provide as Pt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as De, normalizeClass as fe, withCtx as k, createElementBlock as S, createCommentVNode as M, createElementVNode as B, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as P, createVNode as K, createTextVNode as U, useCssVars as Ut, useId as Gn, useSlots as Pe, renderSlot as D, createSlots as Se, normalizeProps as zn, guardReactiveProps as Qn, mergeProps as qt, onMounted as nt, onBeforeMount as it, withModifiers as Be, Teleport as Ht, onUnmounted as Zn, withDirectives as xe, vShow as Ce, withKeys as Xn, warn as ei } from "vue";
1
+ import { inject as Pt, ref as N, computed as $, unref as T, toValue as ye, watch as be, toRef as Jn, provide as Dt, defineComponent as z, createBlock as j, openBlock as m, resolveDynamicComponent as Pe, normalizeClass as fe, withCtx as k, createElementBlock as S, createCommentVNode as M, createElementVNode as B, toDisplayString as L, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as U, useCssVars as Ut, useId as Gn, useSlots as De, renderSlot as P, createSlots as Se, normalizeProps as zn, guardReactiveProps as Qn, mergeProps as qt, onMounted as nt, onBeforeMount as it, withModifiers as Be, Teleport as Ht, onUnmounted as Zn, withDirectives as xe, vShow as Ce, withKeys as Xn, warn as ei } from "vue";
2
2
  import pt from "axios";
3
3
  import { createI18n as ti, i18nTComponent as ni } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as ii, KButton as mt, KTruncate as ri, KBadge as ai } from "@kong/kongponents";
@@ -30,7 +30,7 @@ function mi() {
30
30
  return {
31
31
  getAxiosInstance: (e = {}) => {
32
32
  try {
33
- const t = Dt("get-axios-instance", void 0);
33
+ const t = Pt("get-axios-instance", void 0);
34
34
  return typeof t == "function" ? t(e) : pt.create({
35
35
  withCredentials: !0,
36
36
  timeout: 3e4,
@@ -564,13 +564,13 @@ const zt = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
564
564
  throw new TypeError(`Invalid operator type, expected string but got ${typeof e}`);
565
565
  if (kt.indexOf(e) === -1)
566
566
  throw new Error(`Invalid operator, expected one of ${kt.join("|")}`);
567
- }, Di = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
568
- function Pi(e) {
567
+ }, Pi = (e) => typeof e == "string" && /^[v\d]/.test(e) && zt.test(e);
568
+ function Di(e) {
569
569
  const { gatewayInfo: t, supportedRange: n } = e;
570
570
  if (!t)
571
571
  return !0;
572
572
  const { edition: i, version: r } = t;
573
- if (!Di(r))
573
+ if (!Pi(r))
574
574
  return console.error("Invalid version"), !1;
575
575
  const o = n[i];
576
576
  if (!o)
@@ -593,11 +593,11 @@ function qi() {
593
593
  };
594
594
  }
595
595
  const ze = Symbol("schema"), Hi = (e) => {
596
- Pt(ze, e);
596
+ Dt(ze, e);
597
597
  }, Vi = (e) => {
598
598
  var r, o;
599
- const t = Dt(ze, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Jn(n == null ? void 0 : n[e]);
600
- return Pt(ze, i), i;
599
+ const t = Pt(ze, void 0), n = (o = (r = t == null ? void 0 : t.value) == null ? void 0 : r.fields) == null ? void 0 : o.find((a) => Object.keys(a)[0] === e), i = Jn(n == null ? void 0 : n[e]);
600
+ return Dt(ze, i), i;
601
601
  };
602
602
  function Yi(e) {
603
603
  let t = "";
@@ -626,7 +626,7 @@ const W = {
626
626
  useHelpers: Wt,
627
627
  useStringHelpers: Ri,
628
628
  useI18n: qe,
629
- useGatewayFeatureSupported: Pi,
629
+ useGatewayFeatureSupported: Di,
630
630
  useTruncationDetector: Ui,
631
631
  useValidators: qi,
632
632
  useSchemaProvider: Hi,
@@ -659,7 +659,7 @@ const W = {
659
659
  var l;
660
660
  return t.isArrayItem ? (l = o.value) != null && l.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
661
661
  });
662
- return (l, c) => (m(), j(De(e.isArrayItem ? "fieldset" : "div"), {
662
+ return (l, c) => (m(), j(Pe(e.isArrayItem ? "fieldset" : "div"), {
663
663
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
664
664
  }, {
665
665
  default: k(() => [
@@ -695,7 +695,7 @@ const W = {
695
695
  setup(e) {
696
696
  const { i18n: { t } } = W.useI18n();
697
697
  return (n, i) => {
698
- const r = P("KButton");
698
+ const r = D("KButton");
699
699
  return m(), S("div", null, [
700
700
  K(r, {
701
701
  appearance: "tertiary",
@@ -721,7 +721,7 @@ const W = {
721
721
  setup(e) {
722
722
  const { i18n: { t } } = W.useI18n();
723
723
  return (n, i) => {
724
- const r = P("KBadge");
724
+ const r = D("KBadge");
725
725
  return m(), j(r, {
726
726
  appearance: e.status ? "success" : "neutral"
727
727
  }, {
@@ -761,7 +761,7 @@ const W = {
761
761
  v847b138c: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
762
762
  v847687d6: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
763
763
  }));
764
- const n = e, i = t, r = Gn(), o = Pe(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = $(() => n.item.type === V.JsonArray), g = W.useSubSchema(n.item.key), y = $(() => {
764
+ const n = e, i = t, r = Gn(), o = De(), { i18n: { t: a, formatIsoDate: s, formatUnixTimeStamp: l } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === V.Json || n.item.type === V.JsonArray), p = $(() => n.item.type === V.JsonArray), g = W.useSubSchema(n.item.key), y = $(() => {
765
765
  var Y;
766
766
  return n.item.type ? n.item.type : (Y = g == null ? void 0 : g.value) != null && Y.encrypted ? V.Redacted : void 0;
767
767
  }), x = $(() => {
@@ -897,13 +897,13 @@ const W = {
897
897
  }
898
898
  }), h = N(), A = N(), { isTruncated: C } = W.useTruncationDetector(h), { isTruncated: E } = W.useTruncationDetector(A);
899
899
  return (Y, X) => {
900
- const w = P("KTooltip"), _ = P("KLabel"), O = P("KBadge"), f = P("KCopy");
900
+ const w = D("KTooltip"), _ = D("KLabel"), O = D("KBadge"), f = D("KCopy");
901
901
  return m(), S("div", ar, [
902
902
  B("div", {
903
903
  class: "config-card-details-label",
904
904
  "data-testid": `${e.item.key}-label`
905
905
  }, [
906
- D(Y.$slots, "label", { item: e.item }, () => [
906
+ P(Y.$slots, "label", { item: e.item }, () => [
907
907
  K(_, { "tooltip-attributes": { maxWidth: "500px" } }, Se({
908
908
  default: k(() => [
909
909
  K(w, {
@@ -927,7 +927,7 @@ const W = {
927
927
  B("div", {
928
928
  "data-testid": `${e.item.key}-label-tooltip`
929
929
  }, [
930
- D(Y.$slots, "label-tooltip", {}, () => [
930
+ P(Y.$slots, "label-tooltip", {}, () => [
931
931
  U(L(e.item.tooltip), 1)
932
932
  ], !0)
933
933
  ], 8, lr)
@@ -941,11 +941,11 @@ const W = {
941
941
  class: "config-card-details-value",
942
942
  "data-testid": `${e.item.key}-property-value`
943
943
  }, [
944
- D(Y.$slots, e.item.key, {
944
+ P(Y.$slots, e.item.key, {
945
945
  rowValue: e.item.value
946
946
  }, () => [
947
947
  c.value ? (m(), S("div", ur, [
948
- (m(), j(De(x.value.tag), zn(Qn(x.value.attrs)), {
948
+ (m(), j(Pe(x.value.tag), zn(Qn(x.value.attrs)), {
949
949
  default: k(() => [
950
950
  x.value.additionalComponent === "KBadge" ? (m(), S("div", {
951
951
  key: 0,
@@ -1066,7 +1066,7 @@ const W = {
1066
1066
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1067
1067
  });
1068
1068
  return (r, o) => {
1069
- const a = P("KBadge"), s = P("KCodeBlock");
1069
+ const a = D("KBadge"), s = D("KCodeBlock");
1070
1070
  return m(), S("div", hr, [
1071
1071
  t.fetcherUrl ? (m(), S("div", vr, [
1072
1072
  K(a, {
@@ -1335,12 +1335,12 @@ var cn = new ne("tag:yaml.org,2002:null", {
1335
1335
  },
1336
1336
  defaultStyle: "lowercase"
1337
1337
  });
1338
- function Dr(e) {
1338
+ function Pr(e) {
1339
1339
  if (e === null) return !1;
1340
1340
  var t = e.length;
1341
1341
  return t === 4 && (e === "true" || e === "True" || e === "TRUE") || t === 5 && (e === "false" || e === "False" || e === "FALSE");
1342
1342
  }
1343
- function Pr(e) {
1343
+ function Dr(e) {
1344
1344
  return e === "true" || e === "True" || e === "TRUE";
1345
1345
  }
1346
1346
  function Ur(e) {
@@ -1348,8 +1348,8 @@ function Ur(e) {
1348
1348
  }
1349
1349
  var un = new ne("tag:yaml.org,2002:bool", {
1350
1350
  kind: "scalar",
1351
- resolve: Dr,
1352
- construct: Pr,
1351
+ resolve: Pr,
1352
+ construct: Dr,
1353
1353
  predicate: Ur,
1354
1354
  represent: {
1355
1355
  lowercase: function(e) {
@@ -2085,9 +2085,9 @@ function ja(e, t) {
2085
2085
  throw new oe("expected a single document in the stream, but found more");
2086
2086
  }
2087
2087
  }
2088
- var Da = Ma, Pa = ja, On = {
2089
- loadAll: Da,
2090
- load: Pa
2088
+ var Pa = Ma, Da = ja, On = {
2089
+ loadAll: Pa,
2090
+ load: Da
2091
2091
  }, Ln = Object.prototype.toString, Bn = Object.prototype.hasOwnProperty, ct = 65279, Ua = 9, Fe = 10, qa = 13, Ha = 32, Va = 33, Ya = 34, Ze = 35, Wa = 37, Ja = 38, Ga = 39, za = 42, Rn = 44, Qa = 45, Me = 58, Za = 61, Xa = 62, eo = 63, to = 64, Kn = 91, Nn = 93, no = 96, Mn = 123, io = 124, jn = 125, re = {};
2092
2092
  re[0] = "\\0";
2093
2093
  re[7] = "\\a";
@@ -2192,11 +2192,11 @@ function Te(e, t) {
2192
2192
  var n = e.charCodeAt(t), i;
2193
2193
  return n >= 55296 && n <= 56319 && t + 1 < e.length && (i = e.charCodeAt(t + 1), i >= 56320 && i <= 57343) ? (n - 55296) * 1024 + i - 56320 + 65536 : n;
2194
2194
  }
2195
- function Dn(e) {
2195
+ function Pn(e) {
2196
2196
  var t = /^\n* /;
2197
2197
  return t.test(e);
2198
2198
  }
2199
- var Pn = 1, et = 2, Un = 3, qn = 4, Ae = 5;
2199
+ var Dn = 1, et = 2, Un = 3, qn = 4, Ae = 5;
2200
2200
  function mo(e, t, n, i, r, o, a, s) {
2201
2201
  var l, c = 0, d = null, u = !1, p = !1, g = i !== -1, y = -1, x = fo(Te(e, 0)) && po(Te(e, e.length - 1));
2202
2202
  if (t || a)
@@ -2216,7 +2216,7 @@ function mo(e, t, n, i, r, o, a, s) {
2216
2216
  }
2217
2217
  p = p || g && l - y - 1 > i && e[y + 1] !== " ";
2218
2218
  }
2219
- return !u && !p ? x && !a && !r(e) ? Pn : o === Oe ? Ae : et : n > 9 && Dn(e) ? Ae : a ? o === Oe ? Ae : et : p ? qn : Un;
2219
+ return !u && !p ? x && !a && !r(e) ? Dn : o === Oe ? Ae : et : n > 9 && Pn(e) ? Ae : a ? o === Oe ? Ae : et : p ? qn : Un;
2220
2220
  }
2221
2221
  function yo(e, t, n, i, r) {
2222
2222
  e.dump = function() {
@@ -2238,7 +2238,7 @@ function yo(e, t, n, i, r) {
2238
2238
  e.forceQuotes && !i,
2239
2239
  r
2240
2240
  )) {
2241
- case Pn:
2241
+ case Dn:
2242
2242
  return t;
2243
2243
  case et:
2244
2244
  return "'" + t.replace(/'/g, "''") + "'";
@@ -2254,7 +2254,7 @@ function yo(e, t, n, i, r) {
2254
2254
  }();
2255
2255
  }
2256
2256
  function Lt(e, t) {
2257
- var n = Dn(e) ? String(t) : "", i = e[e.length - 1] === `
2257
+ var n = Pn(e) ? String(t) : "", i = e[e.length - 1] === `
2258
2258
  `, r = i && (e[e.length - 2] === `
2259
2259
  ` || e === `
2260
2260
  `), o = r ? "+" : i ? "" : "-";
@@ -2444,7 +2444,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2444
2444
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : Hn.dump(i).trim();
2445
2445
  });
2446
2446
  return (i, r) => {
2447
- const o = P("KCodeBlock");
2447
+ const o = D("KCodeBlock");
2448
2448
  return m(), S("div", jo, [
2449
2449
  t.entityRecord ? (m(), j(o, {
2450
2450
  key: 0,
@@ -2456,7 +2456,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2456
2456
  ]);
2457
2457
  };
2458
2458
  }
2459
- }), Do = { class: "terraform-config config-card-code-block" }, ie = " ", Yn = /* @__PURE__ */ z({
2459
+ }), Po = { class: "terraform-config config-card-code-block" }, ie = " ", Yn = /* @__PURE__ */ z({
2460
2460
  __name: "TerraformCodeBlock",
2461
2461
  props: {
2462
2462
  /** A record to indicate the entity's configuration, used to populate the Terraform code block */
@@ -2551,8 +2551,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2551
2551
  `, d;
2552
2552
  });
2553
2553
  return (l, c) => {
2554
- const d = P("KCodeBlock");
2555
- return m(), S("div", Do, [
2554
+ const d = D("KCodeBlock");
2555
+ return m(), S("div", Po, [
2556
2556
  t.entityRecord ? (m(), j(d, {
2557
2557
  key: 0,
2558
2558
  id: "terraform-codeblock",
@@ -2563,7 +2563,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2563
2563
  ]);
2564
2564
  };
2565
2565
  }
2566
- }), Po = { class: "deck-config config-card-code-block" }, Wn = /* @__PURE__ */ z({
2566
+ }), Do = { class: "deck-config config-card-code-block" }, Wn = /* @__PURE__ */ z({
2567
2567
  __name: "DeckCodeBlock",
2568
2568
  props: {
2569
2569
  entityRecord: {},
@@ -2587,17 +2587,15 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2587
2587
  ...n.value,
2588
2588
  [t.entityType + "s"]: [o]
2589
2589
  };
2590
- return Hn.dump(a);
2590
+ return Hn.dump(a, { quotingType: '"' }).trim();
2591
2591
  }), r = $(() => {
2592
- let o = "deck gatway apply -";
2593
- return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo
2594
- '${i.value}
2595
- ' | ${o}
2596
- `;
2592
+ let o = "deck gateway apply -";
2593
+ return t.geoServerUrl && (o += ` --konnect-addr ${t.geoServerUrl}`), `echo '${i.value}
2594
+ ' | ${o}`;
2597
2595
  });
2598
2596
  return (o, a) => {
2599
- const s = P("KBadge"), l = P("KCodeBlock");
2600
- return m(), S("div", Po, [
2597
+ const s = D("KBadge"), l = D("KCodeBlock");
2598
+ return m(), S("div", Do, [
2601
2599
  B("p", null, [
2602
2600
  a[1] || (a[1] = U(" The ", -1)),
2603
2601
  K(s, null, {
@@ -2694,7 +2692,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2694
2692
  }
2695
2693
  },
2696
2694
  setup(e) {
2697
- const t = e, n = Pe(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = $(() => {
2695
+ const t = e, n = De(), { i18n: { t: i } } = W.useI18n(), r = (s) => !!(s.tooltip || n[`${s.key}-label-tooltip`]), o = $(() => {
2698
2696
  if (!t.record)
2699
2697
  return t.record;
2700
2698
  let s = t.record;
@@ -2710,16 +2708,16 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2710
2708
  "data-testid": `config-card-details-${c}-props`
2711
2709
  }, [
2712
2710
  c !== "basic" ? (m(), S("div", Ho, L(c === "advanced" ? T(i)("baseConfigCard.sections.advanced") : c === "plugin" ? T(i)("baseConfigCard.sections.plugin") : T(i)("baseConfigCard.sections.policy")), 1)) : M("", !0),
2713
- (m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => D(s.$slots, `config-card-item-${d.key}`, {
2711
+ (m(!0), S(ue, null, ce(e.propertyCollections[c], (d) => P(s.$slots, `config-card-item-${d.key}`, {
2714
2712
  key: d.key,
2715
2713
  item: d
2716
2714
  }, () => [
2717
2715
  K(Xt, { item: d }, Se({
2718
2716
  label: k(() => [
2719
- D(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2717
+ P(s.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2720
2718
  ]),
2721
2719
  [d.key]: k(({ rowValue: u }) => [
2722
- D(s.$slots, d.key, {
2720
+ P(s.$slots, d.key, {
2723
2721
  row: d,
2724
2722
  rowValue: u
2725
2723
  }, void 0, !0)
@@ -2729,7 +2727,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
2729
2727
  r(d) ? {
2730
2728
  name: "label-tooltip",
2731
2729
  fn: k(() => [
2732
- D(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2730
+ P(s.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2733
2731
  ]),
2734
2732
  key: "0"
2735
2733
  } : void 0
@@ -3078,14 +3076,14 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3078
3076
  y.value = !1;
3079
3077
  }
3080
3078
  }), (f, v) => {
3081
- const b = P("KLabel"), H = P("KSelect"), J = P("KButton"), I = P("KSkeleton"), R = P("KEmptyState"), G = P("KCard");
3079
+ const b = D("KLabel"), H = D("KSelect"), J = D("KButton"), I = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
3082
3080
  return m(), j(G, {
3083
3081
  class: "kong-ui-entity-base-config-card",
3084
3082
  "title-tag": e.titleTag
3085
3083
  }, Se({
3086
3084
  actions: k(() => [
3087
3085
  B("div", Jo, [
3088
- D(f.$slots, "actions", {}, void 0, !0),
3086
+ P(f.$slots, "actions", {}, void 0, !0),
3089
3087
  K(b, {
3090
3088
  class: "config-format-select-label",
3091
3089
  "data-testid": "config-format-select-label"
@@ -3152,7 +3150,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3152
3150
  ce(Object.keys(f.$slots), (q) => ({
3153
3151
  name: q,
3154
3152
  fn: k((Q) => [
3155
- D(f.$slots, q, qt({ record: A.value }, Q), void 0, !0)
3153
+ P(f.$slots, q, qt({ record: A.value }, Q), void 0, !0)
3156
3154
  ])
3157
3155
  }))
3158
3156
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3164,7 +3162,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3164
3162
  name: "title",
3165
3163
  fn: k(() => [
3166
3164
  B("span", Wo, [
3167
- D(f.$slots, "title", {}, () => [
3165
+ P(f.$slots, "title", {}, () => [
3168
3166
  U(L(T(r)("baseConfigCard.title")), 1)
3169
3167
  ], !0)
3170
3168
  ])
@@ -3345,8 +3343,8 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3345
3343
  formCancel: C,
3346
3344
  formSubmit: E
3347
3345
  }), (w, _) => {
3348
- const O = P("KSkeleton"), f = P("KEmptyState"), v = P("KAlert"), b = P("KButton"), H = P("KTabs"), J = P("KSlideout");
3349
- return m(), j(De(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3346
+ const O = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), H = D("KTabs"), J = D("KSlideout");
3347
+ return m(), j(Pe(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3350
3348
  default: k(() => [
3351
3349
  c.value ? (m(), j(O, {
3352
3350
  key: 0,
@@ -3369,7 +3367,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3369
3367
  onReset: Be(C, ["prevent"]),
3370
3368
  onSubmit: Be(E, ["prevent"])
3371
3369
  }, [
3372
- D(w.$slots, "default", {}, void 0, !0),
3370
+ P(w.$slots, "default", {}, void 0, !0),
3373
3371
  e.errorMessage ? (m(), j(v, {
3374
3372
  key: 0,
3375
3373
  appearance: "danger",
@@ -3385,7 +3383,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3385
3383
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3386
3384
  "data-testid": "form-actions"
3387
3385
  }, [
3388
- D(w.$slots, "form-actions", {}, () => [
3386
+ P(w.$slots, "form-actions", {}, () => [
3389
3387
  K(b, {
3390
3388
  appearance: "tertiary",
3391
3389
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
@@ -3462,10 +3460,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3462
3460
  ]),
3463
3461
  deck: k(() => [
3464
3462
  K(Wn, {
3463
+ "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3465
3464
  "entity-record": r.formFields,
3466
3465
  "entity-type": e.entityType,
3467
3466
  "geo-server-url": e.config.app === "konnect" ? e.config.geoServerUrl : void 0
3468
- }, null, 8, ["entity-record", "entity-type", "geo-server-url"])
3467
+ }, null, 8, ["control-plane-name", "entity-record", "entity-type", "geo-server-url"])
3469
3468
  ]),
3470
3469
  _: 1
3471
3470
  }, 8, ["tabs"])
@@ -3477,7 +3476,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3477
3476
  });
3478
3477
  };
3479
3478
  }
3480
- }), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-b732b5bb"]]), el = ["data-truncate"], tl = /* @__PURE__ */ z({
3479
+ }), vs = /* @__PURE__ */ se(Xo, [["__scopeId", "data-v-b55da9e5"]]), el = ["data-truncate"], tl = /* @__PURE__ */ z({
3481
3480
  __name: "EntityBaseTableCell",
3482
3481
  props: {
3483
3482
  keyName: {
@@ -3536,7 +3535,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3536
3535
  }), Zn(() => {
3537
3536
  y();
3538
3537
  }), (h, A) => {
3539
- const C = P("KTooltip");
3538
+ const C = D("KTooltip");
3540
3539
  return m(), S("span", {
3541
3540
  ref_key: "contentRef",
3542
3541
  ref: c,
@@ -3552,11 +3551,11 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3552
3551
  text: x.value ? p.value : ""
3553
3552
  }, {
3554
3553
  default: k(() => [
3555
- D(h.$slots, "default", {}, void 0, !0)
3554
+ P(h.$slots, "default", {}, void 0, !0)
3556
3555
  ]),
3557
3556
  _: 3
3558
3557
  }, 8, ["text"])
3559
- ], 8, el)) : D(h.$slots, "default", { key: 1 }, void 0, !0)
3558
+ ], 8, el)) : P(h.$slots, "default", { key: 1 }, void 0, !0)
3560
3559
  ], 512);
3561
3560
  };
3562
3561
  }
@@ -3779,7 +3778,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3779
3778
  ...n.paginationAttributes
3780
3779
  }));
3781
3780
  return (f, v) => {
3782
- const b = P("KTableData"), H = P("KCard");
3781
+ const b = D("KTableData"), H = D("KCard");
3783
3782
  return m(), j(H, {
3784
3783
  class: "kong-ui-entity-base-table",
3785
3784
  title: e.title,
@@ -3824,21 +3823,21 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3824
3823
  }, Se({
3825
3824
  toolbar: k(() => [
3826
3825
  B("div", il, [
3827
- D(f.$slots, "toolbar-filter", {}, void 0, !0),
3826
+ P(f.$slots, "toolbar-filter", {}, void 0, !0),
3828
3827
  f.$slots["toolbar-button"] ? (m(), S("div", rl, [
3829
- D(f.$slots, "toolbar-button", {}, void 0, !0)
3828
+ P(f.$slots, "toolbar-button", {}, void 0, !0)
3830
3829
  ])) : M("", !0)
3831
3830
  ])
3832
3831
  ]),
3833
3832
  "action-items": k(({ row: J }) => [
3834
- D(f.$slots, "actions", { row: J }, void 0, !0)
3833
+ P(f.$slots, "actions", { row: J }, void 0, !0)
3835
3834
  ]),
3836
3835
  _: 2
3837
3836
  }, [
3838
3837
  f.$slots["empty-state"] ? {
3839
3838
  name: "empty-state",
3840
3839
  fn: k(() => [
3841
- D(f.$slots, "empty-state", {}, void 0, !0)
3840
+ P(f.$slots, "empty-state", {}, void 0, !0)
3842
3841
  ]),
3843
3842
  key: "0"
3844
3843
  } : void 0,
@@ -3851,7 +3850,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3851
3850
  tooltip: J.tooltip
3852
3851
  }, {
3853
3852
  default: k(() => [
3854
- D(f.$slots, I, {
3853
+ P(f.$slots, I, {
3855
3854
  row: R,
3856
3855
  rowKey: e.rowKey,
3857
3856
  rowValue: G
@@ -3872,7 +3871,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3872
3871
  }
3873
3872
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3874
3873
  f.$slots["outside-actions"] && T(A) ? (m(), S("div", al, [
3875
- D(f.$slots, "outside-actions", {}, void 0, !0)
3874
+ P(f.$slots, "outside-actions", {}, void 0, !0)
3876
3875
  ])) : M("", !0)
3877
3876
  ]),
3878
3877
  _: 3
@@ -3930,7 +3929,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3930
3929
  r("proceed");
3931
3930
  };
3932
3931
  return (l, c) => {
3933
- const d = P("KAlert"), u = P("KPrompt");
3932
+ const d = D("KAlert"), u = D("KPrompt");
3934
3933
  return m(), j(u, {
3935
3934
  "action-button-appearance": "danger",
3936
3935
  "action-button-disabled": e.actionPending,
@@ -3970,7 +3969,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
3970
3969
  } : void 0
3971
3970
  ]), 1032, ["keypath"]),
3972
3971
  i.description || l.$slots.description ? (m(), S("div", sl, [
3973
- D(l.$slots, "description", {}, () => [
3972
+ P(l.$slots, "description", {}, () => [
3974
3973
  B("p", null, L(i.description), 1)
3975
3974
  ], !0)
3976
3975
  ])) : M("", !0)
@@ -4095,7 +4094,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4095
4094
  return (O == null ? void 0 : O.filterFunction) === void 0 ? !0 : O.filterFunction(_);
4096
4095
  };
4097
4096
  return (w, _) => {
4098
- const O = P("KInput"), f = P("KButton"), v = P("KSelect");
4097
+ const O = D("KInput"), f = D("KButton"), v = D("KSelect");
4099
4098
  return e.config.isExactMatch ? (m(), j(O, {
4100
4099
  key: 0,
4101
4100
  autocomplete: "off",
@@ -4282,7 +4281,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4282
4281
  }
4283
4282
  };
4284
4283
  return (u, p) => {
4285
- const g = P("KPrompt");
4284
+ const g = D("KPrompt");
4286
4285
  return m(), j(Ht, { to: "body" }, [
4287
4286
  K(g, {
4288
4287
  "action-button-disabled": a.value,
@@ -4337,7 +4336,7 @@ const jo = { class: "yaml-config config-card-code-block" }, Vn = /* @__PURE__ */
4337
4336
  const t = e, n = N(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4338
4337
  return be(() => t.authFunction, async () => {
4339
4338
  n.value = await t.authFunction();
4340
- }, { immediate: !0 }), (r, o) => i.value ? D(r.$slots, "default", {
4339
+ }, { immediate: !0 }), (r, o) => i.value ? P(r.$slots, "default", {
4341
4340
  key: 0,
4342
4341
  isAllowed: n.value
4343
4342
  }) : M("", !0);
@@ -4404,7 +4403,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4404
4403
  }
4405
4404
  },
4406
4405
  setup(e) {
4407
- const t = Pe(), n = El();
4406
+ const t = De(), n = El();
4408
4407
  return (i, r) => (m(), S("div", {
4409
4408
  "aria-labelledby": e.title ? T(n) : void 0,
4410
4409
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
@@ -4415,7 +4414,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4415
4414
  key: 0,
4416
4415
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4417
4416
  }, [
4418
- e.title ? (m(), j(De(e.titleTag), {
4417
+ e.title ? (m(), j(Pe(e.titleTag), {
4419
4418
  key: 0,
4420
4419
  id: T(n),
4421
4420
  class: "form-section-title"
@@ -4426,16 +4425,16 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4426
4425
  _: 1
4427
4426
  }, 8, ["id"])) : M("", !0),
4428
4427
  e.description || T(t).description ? (m(), S("div", Ol, [
4429
- D(i.$slots, "description", {}, () => [
4428
+ P(i.$slots, "description", {}, () => [
4430
4429
  B("p", null, L(e.description), 1)
4431
4430
  ], !0)
4432
4431
  ])) : M("", !0),
4433
4432
  T(t).footer ? (m(), S("div", Ll, [
4434
- D(i.$slots, "footer", {}, void 0, !0)
4433
+ P(i.$slots, "footer", {}, void 0, !0)
4435
4434
  ])) : M("", !0)
4436
4435
  ], 2)),
4437
4436
  B("div", Bl, [
4438
- D(i.$slots, "default", {}, void 0, !0)
4437
+ P(i.$slots, "default", {}, void 0, !0)
4439
4438
  ])
4440
4439
  ])
4441
4440
  ], 10, Il));
@@ -4443,7 +4442,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4443
4442
  }), _s = /* @__PURE__ */ se(Rl, [["__scopeId", "data-v-b1f74200"]]), Kl = { class: "ff-form-section" }, Nl = { class: "header" }, Ml = {
4444
4443
  key: 0,
4445
4444
  class: "step"
4446
- }, jl = { class: "header-content" }, Dl = { class: "header-title" }, Pl = {
4445
+ }, jl = { class: "header-content" }, Pl = { class: "header-title" }, Dl = {
4447
4446
  key: 0,
4448
4447
  class: "header-description"
4449
4448
  }, Ul = {
@@ -4457,28 +4456,28 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4457
4456
  description: { default: "" }
4458
4457
  },
4459
4458
  setup(e) {
4460
- const t = Pe();
4459
+ const t = De();
4461
4460
  return (n, i) => (m(), S("div", Kl, [
4462
4461
  B("header", Nl, [
4463
4462
  e.step != null ? (m(), S("div", Ml, L(e.step), 1)) : M("", !0),
4464
4463
  B("div", jl, [
4465
- B("h2", Dl, [
4466
- D(n.$slots, "title", {}, () => [
4464
+ B("h2", Pl, [
4465
+ P(n.$slots, "title", {}, () => [
4467
4466
  U(L(e.title), 1)
4468
4467
  ], !0)
4469
4468
  ]),
4470
- e.description || t.description ? (m(), S("div", Pl, [
4471
- D(n.$slots, "description", {}, () => [
4469
+ e.description || t.description ? (m(), S("div", Dl, [
4470
+ P(n.$slots, "description", {}, () => [
4472
4471
  U(L(e.description), 1)
4473
4472
  ], !0)
4474
4473
  ])) : M("", !0)
4475
4474
  ]),
4476
4475
  t.extra ? (m(), S("div", Ul, [
4477
- D(n.$slots, "extra", {}, void 0, !0)
4476
+ P(n.$slots, "extra", {}, void 0, !0)
4478
4477
  ])) : M("", !0)
4479
4478
  ]),
4480
4479
  B("div", ql, [
4481
- D(n.$slots, "default", {}, void 0, !0)
4480
+ P(n.$slots, "default", {}, void 0, !0)
4482
4481
  ])
4483
4482
  ]));
4484
4483
  }
@@ -4524,7 +4523,7 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4524
4523
  }, 1800));
4525
4524
  };
4526
4525
  return (u, p) => {
4527
- const g = P("KTooltip"), y = P("KExternalLink"), x = P("KClipboardProvider");
4526
+ const g = D("KTooltip"), y = D("KExternalLink"), x = D("KClipboardProvider");
4528
4527
  return m(), S("div", Vl, [
4529
4528
  s.value ? (m(), S("div", Yl, L(c.value), 1)) : l.value ? l.value ? (m(), j(y, {
4530
4529
  key: 2,
@@ -4652,23 +4651,23 @@ const Il = ["aria-labelledby"], Fl = { class: "form-section-wrapper" }, Ol = {
4652
4651
  i.value = await t.canCreate();
4653
4652
  }), nt(() => ei(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4654
4653
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) => {
4655
- const l = P("KCard");
4654
+ const l = D("KCard");
4656
4655
  return m(), S("div", zl, [
4657
4656
  B("div", Ql, [
4658
4657
  a.$slots.image ? (m(), S("div", Zl, [
4659
- D(a.$slots, "image", {}, void 0, !0)
4658
+ P(a.$slots, "image", {}, void 0, !0)
4660
4659
  ])) : M("", !0),
4661
4660
  e.title || a.$slots.title ? (m(), S("div", Xl, [
4662
4661
  B("h1", {
4663
4662
  class: fe(o.value)
4664
4663
  }, [
4665
- D(a.$slots, "title", {}, () => [
4664
+ P(a.$slots, "title", {}, () => [
4666
4665
  U(L(e.title), 1)
4667
4666
  ], !0)
4668
4667
  ], 2)
4669
4668
  ])) : M("", !0),
4670
4669
  e.description || a.$slots.default ? (m(), S("div", es, [
4671
- D(a.$slots, "default", {}, () => [
4670
+ P(a.$slots, "default", {}, () => [
4672
4671
  B("p", null, L(e.description), 1)
4673
4672
  ], !0)
4674
4673
  ])) : M("", !0),
@@ -4676,17 +4675,17 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4676
4675
  B("p", null, [
4677
4676
  B("b", null, L(T(n)("emptyState.pricingTitle")), 1),
4678
4677
  s[2] || (s[2] = U()),
4679
- D(a.$slots, "pricing", {}, () => [
4678
+ P(a.$slots, "pricing", {}, () => [
4680
4679
  U(L(e.pricing), 1)
4681
4680
  ], !0)
4682
4681
  ])
4683
4682
  ])) : M("", !0)
4684
4683
  ]),
4685
4684
  a.$slots.message ? (m(), S("div", ns, [
4686
- D(a.$slots, "message", {}, void 0, !0)
4685
+ P(a.$slots, "message", {}, void 0, !0)
4687
4686
  ])) : M("", !0),
4688
4687
  r.value || e.learnMore || a.$slots.actions ? (m(), S("div", is, [
4689
- D(a.$slots, "actions", {}, () => [
4688
+ P(a.$slots, "actions", {}, () => [
4690
4689
  r.value ? (m(), j(T(mt), {
4691
4690
  key: 0,
4692
4691
  appearance: "primary",
@@ -4722,7 +4721,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4722
4721
  }, {
4723
4722
  title: k(() => [
4724
4723
  a.$slots[`feature-${d}-icon`] ? (m(), S("div", as, [
4725
- D(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4724
+ P(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4726
4725
  ])) : M("", !0),
4727
4726
  B("div", os, L(c.title), 1)
4728
4727
  ]),
@@ -4735,7 +4734,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4735
4734
  }, 1024))), 128))
4736
4735
  ])) : M("", !0),
4737
4736
  a.$slots.bottom ? (m(), S("div", ss, [
4738
- D(a.$slots, "bottom", {}, void 0, !0)
4737
+ P(a.$slots, "bottom", {}, void 0, !0)
4739
4738
  ])) : M("", !0)
4740
4739
  ]);
4741
4740
  };
@@ -4786,7 +4785,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, s) =>
4786
4785
  })) : (m(), S("span", us, "-"));
4787
4786
  };
4788
4787
  }
4789
- }), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector: Ds, useValidators: Ps, useSchemaProvider: Us, useTableState: qs } = W;
4788
+ }), { useAxios: Es, useDeleteUrlBuilder: Is, useErrors: Fs, useExternalLinkCreator: Os, useFetchUrlBuilder: Ls, useFetcher: Bs, useFetcherCacheKey: Rs, useDebouncedFilter: Ks, useStringHelpers: Ns, useHelpers: Ms, useGatewayFeatureSupported: js, useTruncationDetector: Ps, useValidators: Ds, useSchemaProvider: Us, useTableState: qs } = W;
4790
4789
  export {
4791
4790
  yt as Appearances,
4792
4791
  Yo as ConfigCardDisplay,
@@ -4830,6 +4829,6 @@ export {
4830
4829
  Us as useSchemaProvider,
4831
4830
  Ns as useStringHelpers,
4832
4831
  qs as useTableState,
4833
- Ds as useTruncationDetector,
4834
- Ps as useValidators
4832
+ Ps as useTruncationDetector,
4833
+ Ds as useValidators
4835
4834
  };