@kong-ui-public/entities-shared 3.0.7 → 3.0.8-pr.1329.5b76dd7b.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 Fn, ref as B, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as h, createBlock as K, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as R, createVNode as N, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
1
+ import { inject as Fn, ref as B, unref as I, computed as k, watch as Ae, defineComponent as H, openBlock as m, createBlock as K, resolveDynamicComponent as pe, normalizeClass as de, withCtx as x, createElementBlock as S, createElementVNode as L, toDisplayString as O, createCommentVNode as D, Fragment as se, renderList as ae, resolveComponent as R, createVNode as N, createTextVNode as V, useCssVars as $t, useSlots as Xe, renderSlot as Y, createSlots as ke, normalizeProps as On, guardReactiveProps as $n, mergeProps as Ln, normalizeStyle as Oe, pushScopeId as $e, popScopeId as Le, onBeforeMount as Lt, withModifiers as ze, onMounted as Nn, onUnmounted as Rn, withDirectives as me, vShow as ge, withKeys as Bn, Teleport as Kn } from "vue";
2
2
  import st from "axios";
3
3
  import { createI18n as Mn, i18nTComponent as Dn } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Un } from "@kong/kongponents";
@@ -247,39 +247,39 @@ function ar(e, t, n, r = {
247
247
  searchKeys: ["id"]
248
248
  }) {
249
249
  n || (n = "1000");
250
- const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (m) => {
251
- await te(m);
250
+ const { axiosInstance: i } = et(e.axiosRequestConfig), { i18n: { t: a } } = je(), { debounce: o } = Vn(), l = o(async (h) => {
251
+ await te(h);
252
252
  }, 200), s = B(!1), u = B(""), d = B(""), c = B([]), p = B([]), f = B(void 0), b = I(t);
253
253
  let v = `${e.apiBaseUrl}${b}`;
254
254
  e.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
255
255
  const { isValidUuid: w } = Nt(), M = async () => {
256
256
  try {
257
257
  s.value = !0;
258
- const { data: m } = await i.get(`${v}?size=${n}`);
259
- m != null && m.next || (f.value = r.fetchedItemsKey in m ? m[r.fetchedItemsKey] : []), p.value = r.fetchedItemsKey in m ? m[r.fetchedItemsKey] : [], c.value = p.value;
258
+ const { data: h } = await i.get(`${v}?size=${n}`);
259
+ h != null && h.next || (f.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : []), p.value = r.fetchedItemsKey in h ? h[r.fetchedItemsKey] : [], c.value = p.value;
260
260
  } catch {
261
261
  c.value = [], u.value = a("debouncedFilter.errors.fetch");
262
262
  } finally {
263
263
  s.value = !1;
264
264
  }
265
- }, E = B(""), te = async (m) => {
265
+ }, E = B(""), te = async (h) => {
266
266
  var y, g, $;
267
- if (E.value !== m)
268
- if (E.value = m || "", f.value === void 0)
267
+ if (E.value !== h)
268
+ if (E.value = h || "", f.value === void 0)
269
269
  try {
270
270
  if (s.value = !0, u.value = "", d.value = "", e.app === "konnect") {
271
271
  let F = v + "";
272
- m && (F += `/${m}`);
272
+ h && (F += `/${h}`);
273
273
  const { data: _ } = await i.get(`${F}?size=${n}`);
274
274
  r.fetchedItemsKey in _ ? c.value = _[r.fetchedItemsKey] : _ != null && _.id ? c.value = [_] : c.value = [];
275
- } else if (m) {
275
+ } else if (h) {
276
276
  const F = [];
277
- w(m) && r.searchKeys.includes("id") ? F.push((async () => {
278
- const { data: T } = await i.get(`${v}/${m}`);
277
+ w(h) && r.searchKeys.includes("id") ? F.push((async () => {
278
+ const { data: T } = await i.get(`${v}/${h}`);
279
279
  return [T[r.fetchedItemsKey] ?? T];
280
280
  })()) : F.push(
281
281
  ...r.searchKeys.filter((T) => T !== "id").map(async (T) => {
282
- const { data: A } = await i.get(`${v}?${T}=${m}`);
282
+ const { data: A } = await i.get(`${v}?${T}=${h}`);
283
283
  return A[r.fetchedItemsKey];
284
284
  })
285
285
  );
@@ -298,12 +298,12 @@ function ar(e, t, n, r = {
298
298
  s.value = !1;
299
299
  }
300
300
  else
301
- s.value = !0, d.value = "", m ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
301
+ s.value = !0, d.value = "", h ? (c.value = ($ = f.value) == null ? void 0 : $.filter((F) => {
302
302
  var U;
303
303
  let _ = !1;
304
304
  for (const T of r.searchKeys) {
305
305
  const A = typeof F[T] == "string" ? (U = F[T]) == null ? void 0 : U.toLowerCase() : F[T];
306
- A != null && A.includes(m.toLowerCase()) && (_ = !0);
306
+ A != null && A.includes(h.toLowerCase()) && (_ = !0);
307
307
  }
308
308
  return _;
309
309
  }), (!c.value || !c.value.length) && (d.value = a("debouncedFilter.errors.invalid"))) : c.value = f.value, s.value = !1;
@@ -546,14 +546,14 @@ const z = {
546
546
  var s;
547
547
  return t.isArrayItem ? (s = a.value) != null && s.name ? r(a.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
548
548
  });
549
- return (s, u) => (h(), K(pe(e.isArrayItem ? "fieldset" : "div"), {
549
+ return (s, u) => (m(), K(pe(e.isArrayItem ? "fieldset" : "div"), {
550
550
  class: de(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
551
551
  }, {
552
552
  default: x(() => [
553
- e.isArrayItem ? (h(), S("legend", br, [
553
+ e.isArrayItem ? (m(), S("legend", br, [
554
554
  L("b", null, O(l.value), 1)
555
555
  ])) : D("", !0),
556
- (h(!0), S(se, null, ae(Object.keys(o.value), (d, c) => (h(), K(Dt, {
556
+ (m(!0), S(se, null, ae(Object.keys(o.value), (d, c) => (m(), K(Dt, {
557
557
  key: `${i.value}-property-${c}`,
558
558
  item: {
559
559
  key: d,
@@ -583,7 +583,7 @@ const z = {
583
583
  const { i18n: { t } } = z.useI18n();
584
584
  return (n, r) => {
585
585
  const i = R("KButton");
586
- return h(), S("div", null, [
586
+ return m(), S("div", null, [
587
587
  N(i, {
588
588
  appearance: "tertiary",
589
589
  class: "navigation-button",
@@ -609,7 +609,7 @@ const z = {
609
609
  const { i18n: { t } } = z.useI18n();
610
610
  return (n, r) => {
611
611
  const i = R("KBadge");
612
- return h(), K(i, {
612
+ return m(), K(i, {
613
613
  appearance: e.status ? "success" : "neutral"
614
614
  }, {
615
615
  default: x(() => [
@@ -761,7 +761,7 @@ const z = {
761
761
  }), p = B(), { isTruncated: f } = z.useTruncationDetector(p);
762
762
  return (b, v) => {
763
763
  const w = R("KLabel"), M = R("KBadge"), E = R("KCopy"), te = R("KTooltip");
764
- return h(), S("div", $r, [
764
+ return m(), S("div", $r, [
765
765
  L("div", {
766
766
  class: "config-card-details-label",
767
767
  "data-testid": `${e.item.key}-label`
@@ -796,64 +796,64 @@ const z = {
796
796
  Y(b.$slots, e.item.key, {
797
797
  rowValue: e.item.value
798
798
  }, () => [
799
- l.value ? (h(), S("div", Kr, [
800
- (h(), K(pe(c.value.tag), On($n(c.value.attrs)), {
799
+ l.value ? (m(), S("div", Kr, [
800
+ (m(), K(pe(c.value.tag), On($n(c.value.attrs)), {
801
801
  default: x(() => [
802
- c.value.additionalComponent === "KBadge" ? (h(), S("div", {
802
+ c.value.additionalComponent === "KBadge" ? (m(), S("div", {
803
803
  key: 0,
804
804
  "data-testid": `${e.item.key}-badge-tags`
805
805
  }, [
806
- (h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(M, {
806
+ (m(!0), S(se, null, ae(e.item.value, (h, y) => (m(), K(M, {
807
807
  key: `${e.item.key}-badge-tag-${y}`,
808
808
  class: "config-badge",
809
809
  "data-testid": `${e.item.key}-badge-tag-${y}`,
810
- tooltip: m,
810
+ tooltip: h,
811
811
  "truncation-tooltip": ""
812
812
  }, {
813
813
  default: x(() => [
814
- V(O(m), 1)
814
+ V(O(h), 1)
815
815
  ]),
816
816
  _: 2
817
817
  }, 1032, ["data-testid", "tooltip"]))), 128))
818
818
  ], 8, Mr)) : D("", !0),
819
- c.value.additionalComponent === "KCopy" ? (h(), S("div", {
819
+ c.value.additionalComponent === "KCopy" ? (m(), S("div", {
820
820
  key: 1,
821
821
  class: "copy-uuid-array",
822
822
  "data-testid": `${e.item.key}-copy-uuid-array`
823
823
  }, [
824
- (h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(E, Ln(c.value.childAttrs, {
824
+ (m(!0), S(se, null, ae(e.item.value, (h, y) => (m(), K(E, Ln(c.value.childAttrs, {
825
825
  key: `${e.item.key}-copy-uuid-${y}`,
826
826
  "data-testid": `${e.item.key}-copy-uuid-${y}`,
827
- text: m
827
+ text: h
828
828
  }), null, 16, ["data-testid", "text"]))), 128))
829
- ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (h(), S("div", {
829
+ ], 8, Dr)) : c.value.additionalComponent === "KMethodBadge" ? (m(), S("div", {
830
830
  key: 2,
831
831
  class: "method-badge-array",
832
832
  "data-testid": `${e.item.key}-badge-methods`
833
833
  }, [
834
- (h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(M, {
834
+ (m(!0), S(se, null, ae(e.item.value, (h, y) => (m(), K(M, {
835
835
  key: `${e.item.key}-badge-method-${y}`,
836
- appearance: Object.values(I(Un)).includes(m.toLowerCase()) ? m.toLowerCase() : "custom",
836
+ appearance: Object.values(I(Un)).includes(h.toLowerCase()) ? h.toLowerCase() : "custom",
837
837
  class: "config-badge",
838
838
  "data-testid": `${e.item.key}-badge-method-${y}`
839
839
  }, {
840
840
  default: x(() => [
841
- V(O(m), 1)
841
+ V(O(h), 1)
842
842
  ]),
843
843
  _: 2
844
844
  }, 1032, ["appearance", "data-testid"]))), 128))
845
845
  ], 8, Ur)) : D("", !0),
846
- c.value.additionalComponent === "JsonCardItem" ? (h(), S("div", {
846
+ c.value.additionalComponent === "JsonCardItem" ? (m(), S("div", {
847
847
  key: 3,
848
848
  "data-testid": `${n.item.key}-json-array-content`
849
849
  }, [
850
- (h(!0), S(se, null, ae(e.item.value, (m, y) => (h(), K(Mt, {
850
+ (m(!0), S(se, null, ae(e.item.value, (h, y) => (m(), K(Mt, {
851
851
  key: `json-array-item-${y}`,
852
852
  index: y,
853
853
  "is-array-item": "",
854
- item: m
854
+ item: h
855
855
  }, null, 8, ["index", "item"]))), 128))
856
- ], 8, jr)) : (h(), K(te, {
856
+ ], 8, jr)) : (m(), K(te, {
857
857
  key: 4,
858
858
  text: I(f) ? e.item.value : ""
859
859
  }, {
@@ -869,7 +869,7 @@ const z = {
869
869
  ]),
870
870
  _: 1
871
871
  }, 16))
872
- ])) : (h(), S("div", {
872
+ ])) : (m(), S("div", {
873
873
  key: 0,
874
874
  "data-testid": `${e.item.key}-no-value`
875
875
  }, " – ", 8, Br))
@@ -921,8 +921,8 @@ const z = {
921
921
  });
922
922
  return (i, a) => {
923
923
  const o = R("KBadge"), l = R("KCodeBlock");
924
- return h(), S("div", Hr, [
925
- t.fetcherUrl ? (h(), S("div", Vr, [
924
+ return m(), S("div", Hr, [
925
+ t.fetcherUrl ? (m(), S("div", Vr, [
926
926
  N(o, {
927
927
  appearance: t.requestMethod
928
928
  }, {
@@ -939,7 +939,7 @@ const z = {
939
939
  theme: "dark"
940
940
  }, null, 8, ["code"])
941
941
  ])) : D("", !0),
942
- t.jsonRecord ? (h(), K(l, {
942
+ t.jsonRecord ? (m(), K(l, {
943
943
  key: 1,
944
944
  id: "json-codeblock",
945
945
  class: de({ "json-content": t.fetcherUrl }),
@@ -2336,8 +2336,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2336
2336
  });
2337
2337
  return (r, i) => {
2338
2338
  const a = R("KCodeBlock");
2339
- return h(), S("div", po, [
2340
- t.yamlRecord ? (h(), K(a, {
2339
+ return m(), S("div", po, [
2340
+ t.yamlRecord ? (m(), K(a, {
2341
2341
  key: 0,
2342
2342
  id: "yaml-codeblock",
2343
2343
  code: n.value,
@@ -2398,15 +2398,15 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2398
2398
  const o = JSON.parse(JSON.stringify(t.record));
2399
2399
  return delete o.created_at, delete o.updated_at, o;
2400
2400
  });
2401
- return (o, l) => (h(), S(se, null, [
2402
- e.format === "structured" ? (h(), S("div", ho, [
2403
- (h(!0), S(se, null, ae(e.propListTypes, (s) => (h(), S("div", {
2401
+ return (o, l) => (m(), S(se, null, [
2402
+ e.format === "structured" ? (m(), S("div", ho, [
2403
+ (m(!0), S(se, null, ae(e.propListTypes, (s) => (m(), S("div", {
2404
2404
  key: `config-card-details-${s}-props`,
2405
2405
  class: de(`config-card-details-${s}-props`),
2406
2406
  "data-testid": `config-card-details-${s}-props`
2407
2407
  }, [
2408
- s !== "basic" ? (h(), S("div", go, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2409
- (h(!0), S(se, null, ae(e.propertyCollections[s], (u) => (h(), K(Dt, {
2408
+ s !== "basic" ? (m(), S("div", go, O(s === "advanced" ? I(r)("baseConfigCard.sections.advanced") : I(r)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2409
+ (m(!0), S(se, null, ae(e.propertyCollections[s], (u) => (m(), K(Dt, {
2410
2410
  key: u.key,
2411
2411
  item: u
2412
2412
  }, ke({
@@ -2431,14 +2431,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2431
2431
  ]), 1032, ["item"]))), 128))
2432
2432
  ], 10, mo))), 128))
2433
2433
  ])) : D("", !0),
2434
- e.format === "json" && t.record ? (h(), K(Ut, {
2434
+ e.format === "json" && t.record ? (m(), K(Ut, {
2435
2435
  key: 1,
2436
2436
  config: t.config,
2437
2437
  "fetcher-url": t.fetcherUrl,
2438
2438
  "json-record": a.value,
2439
2439
  "request-method": "get"
2440
2440
  }, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
2441
- e.format === "yaml" && t.record ? (h(), K(Tn, {
2441
+ e.format === "yaml" && t.record ? (m(), K(Tn, {
2442
2442
  key: 2,
2443
2443
  "yaml-record": a.value
2444
2444
  }, null, 8, ["yaml-record"])) : D("", !0)
@@ -2524,14 +2524,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2524
2524
  lineHeight: "0",
2525
2525
  width: n.value
2526
2526
  }));
2527
- return (i, a) => (h(), K(pe(e.as), {
2527
+ return (i, a) => (m(), K(pe(e.as), {
2528
2528
  "aria-hidden": e.decorative ? "true" : void 0,
2529
2529
  class: "kui-icon add-icon",
2530
2530
  "data-testid": "kui-icon-wrapper-add-icon",
2531
2531
  style: Oe(r.value)
2532
2532
  }, {
2533
2533
  default: x(() => [
2534
- (h(), S("svg", {
2534
+ (m(), S("svg", {
2535
2535
  "aria-hidden": e.decorative ? "true" : void 0,
2536
2536
  "data-testid": "kui-icon-svg-add-icon",
2537
2537
  fill: "none",
@@ -2541,7 +2541,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2541
2541
  width: "100%",
2542
2542
  xmlns: "http://www.w3.org/2000/svg"
2543
2543
  }, [
2544
- e.title ? (h(), S("title", Co, O(e.title), 1)) : D("", !0),
2544
+ e.title ? (m(), S("title", Co, O(e.title), 1)) : D("", !0),
2545
2545
  _o
2546
2546
  ], 8, xo))
2547
2547
  ]),
@@ -2623,14 +2623,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2623
2623
  lineHeight: "0",
2624
2624
  width: n.value
2625
2625
  }));
2626
- return (i, a) => (h(), K(pe(e.as), {
2626
+ return (i, a) => (m(), K(pe(e.as), {
2627
2627
  "aria-hidden": e.decorative ? "true" : void 0,
2628
2628
  class: "kui-icon book-icon",
2629
2629
  "data-testid": "kui-icon-wrapper-book-icon",
2630
2630
  style: Oe(r.value)
2631
2631
  }, {
2632
2632
  default: x(() => [
2633
- (h(), S("svg", {
2633
+ (m(), S("svg", {
2634
2634
  "aria-hidden": e.decorative ? "true" : void 0,
2635
2635
  "data-testid": "kui-icon-svg-book-icon",
2636
2636
  fill: "none",
@@ -2640,7 +2640,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2640
2640
  width: "100%",
2641
2641
  xmlns: "http://www.w3.org/2000/svg"
2642
2642
  }, [
2643
- e.title ? (h(), S("title", Io, O(e.title), 1)) : D("", !0),
2643
+ e.title ? (m(), S("title", Io, O(e.title), 1)) : D("", !0),
2644
2644
  Eo
2645
2645
  ], 8, So))
2646
2646
  ]),
@@ -2722,14 +2722,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2722
2722
  lineHeight: "0",
2723
2723
  width: n.value
2724
2724
  }));
2725
- return (i, a) => (h(), K(pe(e.as), {
2725
+ return (i, a) => (m(), K(pe(e.as), {
2726
2726
  "aria-hidden": e.decorative ? "true" : void 0,
2727
2727
  class: "kui-icon chevron-down-icon",
2728
2728
  "data-testid": "kui-icon-wrapper-chevron-down-icon",
2729
2729
  style: Oe(r.value)
2730
2730
  }, {
2731
2731
  default: x(() => [
2732
- (h(), S("svg", {
2732
+ (m(), S("svg", {
2733
2733
  "aria-hidden": e.decorative ? "true" : void 0,
2734
2734
  "data-testid": "kui-icon-svg-chevron-down-icon",
2735
2735
  fill: "none",
@@ -2739,7 +2739,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2739
2739
  width: "100%",
2740
2740
  xmlns: "http://www.w3.org/2000/svg"
2741
2741
  }, [
2742
- e.title ? (h(), S("title", Lo, O(e.title), 1)) : D("", !0),
2742
+ e.title ? (m(), S("title", Lo, O(e.title), 1)) : D("", !0),
2743
2743
  No
2744
2744
  ], 8, $o))
2745
2745
  ]),
@@ -2821,14 +2821,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2821
2821
  lineHeight: "0",
2822
2822
  width: n.value
2823
2823
  }));
2824
- return (i, a) => (h(), K(pe(e.as), {
2824
+ return (i, a) => (m(), K(pe(e.as), {
2825
2825
  "aria-hidden": e.decorative ? "true" : void 0,
2826
2826
  class: "kui-icon close-icon",
2827
2827
  "data-testid": "kui-icon-wrapper-close-icon",
2828
2828
  style: Oe(r.value)
2829
2829
  }, {
2830
2830
  default: x(() => [
2831
- (h(), S("svg", {
2831
+ (m(), S("svg", {
2832
2832
  "aria-hidden": e.decorative ? "true" : void 0,
2833
2833
  "data-testid": "kui-icon-svg-close-icon",
2834
2834
  fill: "none",
@@ -2838,7 +2838,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2838
2838
  width: "100%",
2839
2839
  xmlns: "http://www.w3.org/2000/svg"
2840
2840
  }, [
2841
- e.title ? (h(), S("title", Do, O(e.title), 1)) : D("", !0),
2841
+ e.title ? (m(), S("title", Do, O(e.title), 1)) : D("", !0),
2842
2842
  Uo
2843
2843
  ], 8, Mo))
2844
2844
  ]),
@@ -2920,14 +2920,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2920
2920
  lineHeight: "0",
2921
2921
  width: n.value
2922
2922
  }));
2923
- return (i, a) => (h(), K(pe(e.as), {
2923
+ return (i, a) => (m(), K(pe(e.as), {
2924
2924
  "aria-hidden": e.decorative ? "true" : void 0,
2925
2925
  class: "kui-icon copy-icon",
2926
2926
  "data-testid": "kui-icon-wrapper-copy-icon",
2927
2927
  style: Oe(r.value)
2928
2928
  }, {
2929
2929
  default: x(() => [
2930
- (h(), S("svg", {
2930
+ (m(), S("svg", {
2931
2931
  "aria-hidden": e.decorative ? "true" : void 0,
2932
2932
  "data-testid": "kui-icon-svg-copy-icon",
2933
2933
  fill: "none",
@@ -2937,7 +2937,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
2937
2937
  width: "100%",
2938
2938
  xmlns: "http://www.w3.org/2000/svg"
2939
2939
  }, [
2940
- e.title ? (h(), S("title", Vo, O(e.title), 1)) : D("", !0),
2940
+ e.title ? (m(), S("title", Vo, O(e.title), 1)) : D("", !0),
2941
2941
  Yo
2942
2942
  ], 8, Ho))
2943
2943
  ]),
@@ -3136,7 +3136,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3136
3136
  }), te = k(() => {
3137
3137
  const g = [];
3138
3138
  return E.value.basic.length && g.push("basic"), E.value.advanced.length && g.push("advanced"), E.value.plugin.length && g.push("plugin"), g;
3139
- }), m = k(() => {
3139
+ }), h = k(() => {
3140
3140
  var $, F;
3141
3141
  let g = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3142
3142
  return r.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : r.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), g = g.replace(/{id}/gi, r.config.entityId), g;
@@ -3146,7 +3146,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3146
3146
  }, { immediate: !0 }), Lt(async () => {
3147
3147
  f.value = !1, p.value = !0;
3148
3148
  try {
3149
- const { data: g } = await l.get(m.value);
3149
+ const { data: g } = await l.get(h.value);
3150
3150
  if (r.dataKey)
3151
3151
  if (typeof g[r.dataKey] < "u")
3152
3152
  v.value = { ...g[r.dataKey] };
@@ -3165,7 +3165,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3165
3165
  }
3166
3166
  }), (g, $) => {
3167
3167
  const F = R("KLabel"), _ = R("KSelect"), U = R("KButton"), T = R("KSkeleton"), A = R("KEmptyState"), j = R("KCard");
3168
- return h(), K(j, {
3168
+ return m(), K(j, {
3169
3169
  class: "kong-ui-entity-base-config-card",
3170
3170
  "title-tag": e.titleTag
3171
3171
  }, ke({
@@ -3186,7 +3186,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3186
3186
  items: s,
3187
3187
  onChange: d
3188
3188
  }),
3189
- e.configCardDoc ? (h(), K(U, {
3189
+ e.configCardDoc ? (m(), K(U, {
3190
3190
  key: 0,
3191
3191
  appearance: "tertiary",
3192
3192
  class: "book-icon",
@@ -3206,12 +3206,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3206
3206
  ])
3207
3207
  ]),
3208
3208
  default: x(() => [
3209
- p.value ? (h(), K(T, {
3209
+ p.value ? (m(), K(T, {
3210
3210
  key: 0,
3211
3211
  "data-testid": "config-card-loader",
3212
3212
  "table-columns": 2,
3213
3213
  type: "table"
3214
- })) : f.value ? (h(), K(A, {
3214
+ })) : f.value ? (m(), K(A, {
3215
3215
  key: 1,
3216
3216
  "data-testid": "config-card-fetch-error",
3217
3217
  "icon-variant": "error"
@@ -3224,7 +3224,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3224
3224
  L("div", Qo, [
3225
3225
  N(vo, {
3226
3226
  config: e.config,
3227
- "fetcher-url": m.value,
3227
+ "fetcher-url": h.value,
3228
3228
  format: u.value,
3229
3229
  "prop-list-types": te.value,
3230
3230
  "property-collections": E.value,
@@ -3325,8 +3325,8 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3325
3325
  var te;
3326
3326
  const n = t, r = e, i = jn(), { i18n: { t: a } } = z.useI18n(), { getMessageFromError: o } = z.useErrors(), { axiosInstance: l } = z.useAxios((te = r.config) == null ? void 0 : te.axiosRequestConfig), s = B(!1), u = B(!1), d = B(""), c = k(() => r.canSubmit === !1 || r.isReadonly), p = B(!1), f = k(() => {
3327
3327
  var y, g;
3328
- let m = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3329
- return r.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (m = m.replace(/{id}/gi, r.editId), m) : (m = m.replace(/\/{id}/gi, ""), m);
3328
+ let h = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3329
+ return r.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((y = r.config) == null ? void 0 : y.controlPlaneId) || "") : r.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (g = r.config) != null && g.workspace ? `/${r.config.workspace}` : "")), r.editId ? (h = h.replace(/{id}/gi, r.editId), h) : (h = h.replace(/\/{id}/gi, ""), h);
3330
3330
  }), b = () => {
3331
3331
  p.value = !p.value;
3332
3332
  }, v = () => {
@@ -3345,28 +3345,28 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3345
3345
  hash: "#json"
3346
3346
  }
3347
3347
  ]);
3348
- return Ae(() => s.value, (m) => {
3349
- n("loading", m);
3348
+ return Ae(() => s.value, (h) => {
3349
+ n("loading", h);
3350
3350
  }, { immediate: !0 }), Lt(async () => {
3351
3351
  if (r.editId)
3352
3352
  try {
3353
3353
  u.value = !1, s.value = !0;
3354
- const { data: m } = await l.get(f.value);
3355
- n("fetch:success", m);
3356
- } catch (m) {
3357
- const y = o(m);
3358
- d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", m);
3354
+ const { data: h } = await l.get(f.value);
3355
+ n("fetch:success", h);
3356
+ } catch (h) {
3357
+ const y = o(h);
3358
+ d.value = y.startsWith("code") ? a("baseForm.errors.edit") : y, u.value = !0, n("fetch:error", h);
3359
3359
  } finally {
3360
3360
  s.value = !1;
3361
3361
  }
3362
- }), (m, y) => {
3362
+ }), (h, y) => {
3363
3363
  const g = R("KSkeleton"), $ = R("KEmptyState"), F = R("KAlert"), _ = R("KButton"), U = R("KTabs"), T = R("KSlideout"), A = R("KCard");
3364
- return h(), K(A, { class: "kong-ui-entity-base-form" }, {
3364
+ return m(), K(A, { class: "kong-ui-entity-base-form" }, {
3365
3365
  default: x(() => [
3366
- s.value ? (h(), K(g, {
3366
+ s.value ? (m(), K(g, {
3367
3367
  key: 0,
3368
3368
  type: "form"
3369
- })) : u.value ? (h(), K($, {
3369
+ })) : u.value ? (m(), K($, {
3370
3370
  key: 1,
3371
3371
  "action-button-text": I(a)("baseForm.actions.back"),
3372
3372
  "data-testid": "form-fetch-error",
@@ -3377,22 +3377,22 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3377
3377
  L("h3", null, O(d.value), 1)
3378
3378
  ]),
3379
3379
  _: 1
3380
- }, 8, ["action-button-text"])) : (h(), S("form", {
3380
+ }, 8, ["action-button-text"])) : (m(), S("form", {
3381
3381
  key: 2,
3382
3382
  "data-testid": "form-content",
3383
3383
  novalidate: r.noValidate,
3384
3384
  onReset: ze(w, ["prevent"]),
3385
3385
  onSubmit: ze(M, ["prevent"])
3386
3386
  }, [
3387
- Y(m.$slots, "default", {}, void 0, !0),
3388
- e.errorMessage ? (h(), K(F, {
3387
+ Y(h.$slots, "default", {}, void 0, !0),
3388
+ e.errorMessage ? (m(), K(F, {
3389
3389
  key: 0,
3390
3390
  appearance: "danger",
3391
3391
  "data-testid": "form-error",
3392
3392
  message: e.errorMessage
3393
3393
  }, null, 8, ["message"])) : D("", !0),
3394
3394
  L("div", tl, [
3395
- Y(m.$slots, "form-actions", {}, () => [
3395
+ Y(h.$slots, "form-actions", {}, () => [
3396
3396
  N(_, {
3397
3397
  appearance: "tertiary",
3398
3398
  "data-testid": "form-view-configuration",
@@ -3520,12 +3520,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3520
3520
  f();
3521
3521
  }), (v, w) => {
3522
3522
  const M = R("KTooltip");
3523
- return h(), S("span", {
3523
+ return m(), S("span", {
3524
3524
  ref_key: "contentRef",
3525
3525
  ref: s,
3526
3526
  class: "content-wrapper"
3527
3527
  }, [
3528
- i.value ? (h(), S("span", rl, [
3528
+ i.value ? (m(), S("span", rl, [
3529
3529
  N(M, {
3530
3530
  "max-width": "300",
3531
3531
  placement: "bottomStart",
@@ -3712,12 +3712,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3712
3712
  ...n.initialFetcherParams,
3713
3713
  ...y
3714
3714
  };
3715
- }), m = (y) => {
3715
+ }), h = (y) => {
3716
3716
  n.preferencesStorageKey && M(n.preferencesStorageKey, y);
3717
3717
  };
3718
3718
  return (y, g) => {
3719
3719
  const $ = R("KIcon"), F = R("KButton"), _ = R("KDropdown"), U = R("KTable"), T = R("KCard");
3720
- return h(), K(T, {
3720
+ return m(), K(T, {
3721
3721
  class: "kong-ui-entity-base-table",
3722
3722
  title: e.title,
3723
3723
  "title-tag": e.titleTag
@@ -3751,12 +3751,12 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3751
3751
  onKtableEmptyStateCtaClicked: f,
3752
3752
  "onRow:click": v.value,
3753
3753
  onSort: g[0] || (g[0] = (A) => w(A)),
3754
- "onUpdate:tablePreferences": m
3754
+ "onUpdate:tablePreferences": h
3755
3755
  }, ke({
3756
3756
  toolbar: x(({ state: A }) => [
3757
3757
  me(L("div", ol, [
3758
3758
  Y(y.$slots, "toolbar-filter", {}, void 0, !0),
3759
- y.$slots["toolbar-button"] ? (h(), S("div", ll, [
3759
+ y.$slots["toolbar-button"] ? (m(), S("div", ll, [
3760
3760
  Y(y.$slots, "toolbar-button", {}, void 0, !0)
3761
3761
  ])) : D("", !0)
3762
3762
  ], 512), [
@@ -3886,7 +3886,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3886
3886
  };
3887
3887
  return (s, u) => {
3888
3888
  const d = R("KAlert"), c = R("KPrompt");
3889
- return h(), K(c, {
3889
+ return m(), K(c, {
3890
3890
  "action-button-appearance": "danger",
3891
3891
  "action-button-disabled": e.actionPending,
3892
3892
  "action-button-text": "Yes, delete",
@@ -3898,7 +3898,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3898
3898
  onProceed: l
3899
3899
  }, {
3900
3900
  default: x(() => [
3901
- e.error ? (h(), S("div", ul, [
3901
+ e.error ? (m(), S("div", ul, [
3902
3902
  N(d, { appearance: "danger" }, {
3903
3903
  default: x(() => [
3904
3904
  V(O(e.error), 1)
@@ -3924,7 +3924,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3924
3924
  key: "0"
3925
3925
  } : void 0
3926
3926
  ]), 1032, ["keypath"]),
3927
- r.description || s.$slots.description ? (h(), S("div", dl, [
3927
+ r.description || s.$slots.description ? (m(), S("div", dl, [
3928
3928
  Y(s.$slots, "description", {}, () => [
3929
3929
  L("p", null, O(r.description), 1)
3930
3930
  ], !0)
@@ -3957,7 +3957,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3957
3957
  }
3958
3958
  },
3959
3959
  setup(e) {
3960
- return (t, n) => (h(), S("svg", pl, [
3960
+ return (t, n) => (m(), S("svg", pl, [
3961
3961
  L("mask", hl, [
3962
3962
  L("rect", {
3963
3963
  fill: e.color,
@@ -3997,54 +3997,57 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
3997
3997
  emits: ["update:modelValue"],
3998
3998
  setup(e, { emit: t }) {
3999
3999
  const { i18n: { t: n } } = z.useI18n(), r = e, i = t, a = B(!1), o = B({}), l = B(/* @__PURE__ */ new Set()), s = k(() => {
4000
- const m = [];
4000
+ const h = [];
4001
4001
  return new URLSearchParams(r.modelValue).forEach((y, g) => {
4002
- y !== "" && m.push(g);
4003
- }), m;
4002
+ y !== "" && h.push(g);
4003
+ }), h;
4004
4004
  }), u = k(() => {
4005
- const m = r.config.fields;
4006
- return Object.keys(m).filter((y) => m[y].searchable).map((y) => ({
4007
- label: m[y].label || y,
4005
+ const h = r.config.fields;
4006
+ return Object.keys(h).filter((y) => {
4007
+ var g;
4008
+ return (g = h == null ? void 0 : h[y]) == null ? void 0 : g.searchable;
4009
+ }).map((y) => ({
4010
+ label: h[y].label || y,
4008
4011
  value: y,
4009
4012
  expanded: !1
4010
4013
  }));
4011
4014
  });
4012
- Ae(() => r.modelValue, (m) => {
4013
- o.value = {}, new URLSearchParams(m).forEach((y, g) => {
4015
+ Ae(() => r.modelValue, (h) => {
4016
+ o.value = {}, new URLSearchParams(h).forEach((y, g) => {
4014
4017
  o.value[g] = y;
4015
4018
  });
4016
4019
  });
4017
4020
  const d = () => {
4018
4021
  a.value = !a.value;
4019
- }, c = (m) => {
4020
- l.value.has(m) ? l.value.delete(m) : l.value.add(m);
4021
- }, p = (m) => {
4022
- i("update:modelValue", m);
4022
+ }, c = (h) => {
4023
+ l.value.has(h) ? l.value.delete(h) : l.value.add(h);
4024
+ }, p = (h) => {
4025
+ i("update:modelValue", h);
4023
4026
  }, f = () => {
4024
4027
  p("");
4025
- }, b = (m) => `filter-${m}`, v = (m) => {
4028
+ }, b = (h) => `filter-${h}`, v = (h) => {
4026
4029
  var y, g;
4027
- return (((g = (y = r.config.schema) == null ? void 0 : y[m]) == null ? void 0 : g.values) ?? []).map(($) => ({
4030
+ return (((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.values) ?? []).map(($) => ({
4028
4031
  value: $,
4029
4032
  label: $
4030
4033
  }));
4031
- }, w = (m) => {
4034
+ }, w = (h) => {
4032
4035
  var y, g;
4033
- return ((g = (y = r.config.schema) == null ? void 0 : y[m]) == null ? void 0 : g.type) ?? "text";
4034
- }, M = (m) => {
4036
+ return ((g = (y = r.config.schema) == null ? void 0 : y[h]) == null ? void 0 : g.type) ?? "text";
4037
+ }, M = (h) => {
4035
4038
  o.value = {
4036
4039
  ...o.value,
4037
- [m]: ""
4040
+ [h]: ""
4038
4041
  }, te();
4039
4042
  }, E = () => {
4040
4043
  o.value = {}, te(!0);
4041
- }, te = (m = !1) => {
4044
+ }, te = (h = !1) => {
4042
4045
  const y = Object.keys(o.value).reduce((g, $) => (o.value[$] && (g[$] = `${o.value[$]}`), g), {});
4043
- m && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4046
+ h && (a.value = !1), i("update:modelValue", new URLSearchParams(y).toString());
4044
4047
  };
4045
- return (m, y) => {
4048
+ return (h, y) => {
4046
4049
  const g = R("KInput"), $ = R("KButton"), F = R("KSelect");
4047
- return e.config.isExactMatch ? (h(), K(g, {
4050
+ return e.config.isExactMatch ? (m(), K(g, {
4048
4051
  key: 0,
4049
4052
  autocomplete: "off",
4050
4053
  class: "kong-ui-entity-filter-input",
@@ -4065,7 +4068,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4065
4068
  ])
4066
4069
  ]),
4067
4070
  _: 1
4068
- }, 8, ["model-value", "placeholder"])) : (h(), S("div", vl, [
4071
+ }, 8, ["model-value", "placeholder"])) : (m(), S("div", vl, [
4069
4072
  N($, {
4070
4073
  appearance: "tertiary",
4071
4074
  "data-testid": "filter-button",
@@ -4084,9 +4087,9 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4084
4087
  [ge, a.value]
4085
4088
  ]),
4086
4089
  me(L("div", bl, [
4087
- (h(!0), S(se, null, ae(u.value, (_) => {
4090
+ (m(!0), S(se, null, ae(u.value, (_) => {
4088
4091
  var U, T;
4089
- return h(), S("div", {
4092
+ return m(), S("div", {
4090
4093
  key: _.value,
4091
4094
  class: "kong-ui-entity-filter-menu-item",
4092
4095
  "data-testid": _.value
@@ -4112,14 +4115,14 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4112
4115
  class: "menu-item-label",
4113
4116
  for: b(_.value)
4114
4117
  }, O(I(n)("filter.fieldLabel")), 9, wl),
4115
- ((T = (U = e.config.schema) == null ? void 0 : U[_.value]) == null ? void 0 : T.type) === "select" ? (h(), K(F, {
4118
+ ((T = (U = e.config.schema) == null ? void 0 : U[_.value]) == null ? void 0 : T.type) === "select" ? (m(), K(F, {
4116
4119
  key: 0,
4117
4120
  id: b(_.value),
4118
4121
  modelValue: o.value[_.value],
4119
4122
  "onUpdate:modelValue": (A) => o.value[_.value] = A,
4120
4123
  items: v(_.value),
4121
4124
  placeholder: I(n)("filter.selectPlaceholder")
4122
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), K(g, {
4125
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (m(), K(g, {
4123
4126
  key: 1,
4124
4127
  id: b(_.value),
4125
4128
  modelValue: o.value[_.value],
@@ -4177,7 +4180,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4177
4180
  ]));
4178
4181
  };
4179
4182
  }
4180
- }), Xl = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-8cfadde3"]]), es = /* @__PURE__ */ H({
4183
+ }), Xl = /* @__PURE__ */ ie(Il, [["__scopeId", "data-v-9a370e3a"]]), es = /* @__PURE__ */ H({
4181
4184
  __name: "EntityToggleModal",
4182
4185
  props: {
4183
4186
  visible: {
@@ -4227,7 +4230,7 @@ const po = { class: "yaml-config" }, Tn = /* @__PURE__ */ H({
4227
4230
  };
4228
4231
  return (c, p) => {
4229
4232
  const f = R("KPrompt");
4230
- return h(), K(Kn, { to: "body" }, [
4233
+ return m(), K(Kn, { to: "body" }, [
4231
4234
  N(f, {
4232
4235
  "action-button-disabled": o.value,
4233
4236
  "action-button-text": s.value,
@@ -4352,17 +4355,17 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4352
4355
  },
4353
4356
  setup(e) {
4354
4357
  const t = Xe(), n = $l();
4355
- return (r, i) => (h(), S("div", {
4358
+ return (r, i) => (m(), S("div", {
4356
4359
  "aria-labelledby": e.title ? I(n) : void 0,
4357
4360
  class: de(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4358
4361
  role: "group"
4359
4362
  }, [
4360
4363
  L("div", Nl, [
4361
- e.hideInfoHeader ? D("", !0) : (h(), S("div", {
4364
+ e.hideInfoHeader ? D("", !0) : (m(), S("div", {
4362
4365
  key: 0,
4363
4366
  class: de(["form-section-info", { sticky: e.stickyInfoHeader }])
4364
4367
  }, [
4365
- e.title ? (h(), K(pe(e.titleTag), {
4368
+ e.title ? (m(), K(pe(e.titleTag), {
4366
4369
  key: 0,
4367
4370
  id: I(n),
4368
4371
  class: "form-section-title"
@@ -4372,12 +4375,12 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4372
4375
  ]),
4373
4376
  _: 1
4374
4377
  }, 8, ["id"])) : D("", !0),
4375
- e.description || I(t).description ? (h(), S("div", Rl, [
4378
+ e.description || I(t).description ? (m(), S("div", Rl, [
4376
4379
  Y(r.$slots, "description", {}, () => [
4377
4380
  L("p", null, O(e.description), 1)
4378
4381
  ], !0)
4379
4382
  ])) : D("", !0),
4380
- I(t).footer ? (h(), S("div", Bl, [
4383
+ I(t).footer ? (m(), S("div", Bl, [
4381
4384
  Y(r.$slots, "footer", {}, void 0, !0)
4382
4385
  ])) : D("", !0)
4383
4386
  ], 2)),
@@ -4387,7 +4390,7 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4387
4390
  ])
4388
4391
  ], 10, Ll));
4389
4392
  }
4390
- }), ns = /* @__PURE__ */ ie(Ml, [["__scopeId", "data-v-76e52dbd"]]), Dl = {
4393
+ }), ns = /* @__PURE__ */ ie(Ml, [["__scopeId", "data-v-b1f74200"]]), Dl = {
4391
4394
  class: "kong-ui-public-entity-link",
4392
4395
  "data-testid": "entity-link-parent"
4393
4396
  }, Ul = {
@@ -4430,8 +4433,8 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4430
4433
  };
4431
4434
  return (c, p) => {
4432
4435
  const f = R("KTooltip"), b = R("KExternalLink"), v = R("KClipboardProvider");
4433
- return h(), S("div", Dl, [
4434
- l.value ? (h(), S("div", Ul, O(u.value), 1)) : s.value ? s.value ? (h(), K(b, {
4436
+ return m(), S("div", Dl, [
4437
+ l.value ? (m(), S("div", Ul, O(u.value), 1)) : s.value ? s.value ? (m(), K(b, {
4435
4438
  key: 2,
4436
4439
  class: "entity-link",
4437
4440
  "hide-icon": !e.newWindow,
@@ -4453,8 +4456,8 @@ const Ll = ["aria-labelledby"], Nl = { class: "form-section-wrapper" }, Rl = {
4453
4456
  }, 8, ["text"])
4454
4457
  ]),
4455
4458
  _: 1
4456
- }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (h(), S("div", jl, O(" – "))),
4457
- s.value && e.allowCopy ? (h(), K(f, {
4459
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (m(), S("div", jl, O(" – "))),
4460
+ s.value && e.allowCopy ? (m(), K(f, {
4458
4461
  key: o.value,
4459
4462
  class: "copy-uuid-tooltip",
4460
4463
  "max-width": "160",
@@ -29,4 +29,4 @@
29
29
  `+e.slice(o,a),o=a+1),l=c;return s+=`
30
30
  `,e.length-o>n&&l>o?s+=e.slice(o,l)+`
31
31
  `+e.slice(l+1):s+=e.slice(o),s.slice(1)}function Ji(e){for(var n="",r=0,i,o=0;o<e.length;r>=65536?o+=2:o++)r=se(e,o),i=K[r],!i&&ce(r)?(n+=e[o],r>=65536&&(n+=e[o+1])):n+=i||Ui(r);return n}function Zi(e,n,r){var i="",o=e.tag,a,l,c;for(a=0,l=r.length;a<l;a+=1)c=r[a],e.replacer&&(c=e.replacer.call(r,String(a),c)),(W(e,n,c,!1,!1)||typeof c>"u"&&W(e,n,null,!1,!1))&&(i!==""&&(i+=","+(e.condenseFlow?"":" ")),i+=e.dump);e.tag=o,e.dump="["+i+"]"}function en(e,n,r,i){var o="",a=e.tag,l,c,s;for(l=0,c=r.length;l<c;l+=1)s=r[l],e.replacer&&(s=e.replacer.call(r,String(l),s)),(W(e,n+1,s,!0,!0,!1,!0)||typeof s>"u"&&W(e,n+1,null,!0,!0,!1,!0))&&((!i||o!=="")&&(o+=Le(e,n)),e.dump&&ae===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=a,e.dump=o||"[]"}function Qi(e,n,r){var i="",o=e.tag,a=Object.keys(r),l,c,s,u,f;for(l=0,c=a.length;l<c;l+=1)f="",i!==""&&(f+=", "),e.condenseFlow&&(f+='"'),s=a[l],u=r[s],e.replacer&&(u=e.replacer.call(r,s,u)),W(e,n,s,!1,!1)&&(e.dump.length>1024&&(f+="? "),f+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),W(e,n,u,!1,!1)&&(f+=e.dump,i+=f));e.tag=o,e.dump="{"+i+"}"}function Xi(e,n,r,i){var o="",a=e.tag,l=Object.keys(r),c,s,u,f,d,m;if(e.sortKeys===!0)l.sort();else if(typeof e.sortKeys=="function")l.sort(e.sortKeys);else if(e.sortKeys)throw new U("sortKeys must be a boolean or a function");for(c=0,s=l.length;c<s;c+=1)m="",(!i||o!=="")&&(m+=Le(e,n)),u=l[c],f=r[u],e.replacer&&(f=e.replacer.call(r,u,f)),W(e,n+1,u,!0,!0,!0)&&(d=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,d&&(e.dump&&ae===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,d&&(m+=Le(e,n)),W(e,n+1,f,!0,d)&&(e.dump&&ae===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,o+=m));e.tag=a,e.dump=o||"{}"}function tn(e,n,r){var i,o,a,l,c,s;for(o=r?e.explicitTypes:e.implicitTypes,a=0,l=o.length;a<l;a+=1)if(c=o[a],(c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n=="object"&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(r?c.multi&&c.representName?e.tag=c.representName(n):e.tag=c.tag:e.tag="?",c.represent){if(s=e.styleMap[c.tag]||c.defaultStyle,vt.call(c.represent)==="[object Function]")i=c.represent(n,s);else if(Rt.call(c.represent,s))i=c.represent[s](n,s);else throw new U("!<"+c.tag+'> tag resolver accepts not "'+s+'" style');e.dump=i}return!0}return!1}function W(e,n,r,i,o,a,l){e.tag=null,e.dump=r,tn(e,r,!1)||tn(e,r,!0);var c=vt.call(e.dump),s=i,u;i&&(i=e.flowLevel<0||e.flowLevel>n);var f=c==="[object Object]"||c==="[object Array]",d,m;if(f&&(d=e.duplicates.indexOf(r),m=d!==-1),(e.tag!==null&&e.tag!=="?"||m||e.indent!==2&&n>0)&&(o=!1),m&&e.usedDuplicates[d])e.dump="*ref_"+d;else{if(f&&m&&!e.usedDuplicates[d]&&(e.usedDuplicates[d]=!0),c==="[object Object]")i&&Object.keys(e.dump).length!==0?(Xi(e,n,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(Qi(e,n,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(c==="[object Array]")i&&e.dump.length!==0?(e.noArrayIndent&&!l&&n>0?en(e,n-1,e.dump,o):en(e,n,e.dump,o),m&&(e.dump="&ref_"+d+e.dump)):(Zi(e,n,e.dump),m&&(e.dump="&ref_"+d+" "+e.dump));else if(c==="[object String]")e.tag!=="?"&&Wi(e,e.dump,n,a,s);else{if(c==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new U("unacceptable kind of an object to dump "+c)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return!0}function eo(e,n){var r=[],i=[],o,a;for(De(e,r,i),o=0,a=i.length;o<a;o+=1)n.duplicates.push(r[i[o]]);n.usedDuplicates=new Array(a)}function De(e,n,r){var i,o,a;if(e!==null&&typeof e=="object")if(o=n.indexOf(e),o!==-1)r.indexOf(o)===-1&&r.push(o);else if(n.push(e),Array.isArray(e))for(o=0,a=e.length;o<a;o+=1)De(e[o],n,r);else for(i=Object.keys(e),o=0,a=i.length;o<a;o+=1)De(e[i[o]],n,r)}function to(e,n){n=n||{};var r=new qi(n);r.noRefs||eo(e,r);var i=e;return r.replacer&&(i=r.replacer.call({"":i},"",i)),W(r,0,i,!0,!0)?r.dump+`
32
- `:""}var no=to,ro={dump:no};function Ve(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var io=R,oo=rt,ao=lt,lo=ft,co=pt,so=Be,uo=Vt.load,fo=Vt.loadAll,po=ro.dump,mo=U,ho={binary:Ct,float:ut,map:at,null:ct,pairs:xt,set:kt,timestamp:gt,bool:st,int:dt,merge:yt,omap:bt,seq:ot,str:it},go=Ve("safeLoad","load"),yo=Ve("safeLoadAll","loadAll"),Co=Ve("safeDump","dump"),bo={Type:io,Schema:oo,FAILSAFE_SCHEMA:ao,JSON_SCHEMA:lo,CORE_SCHEMA:co,DEFAULT_SCHEMA:so,load:uo,loadAll:fo,dump:po,YAMLException:mo,types:ho,safeLoad:go,safeLoadAll:yo,safeDump:Co};const xo={class:"yaml-config"},ve=t.defineComponent({__name:"YamlCodeBlock",props:{yamlRecord:{type:Object,required:!0}},setup(e){const n=e,r=t.computed(()=>{const i=Object.fromEntries(Object.entries(n.yamlRecord).filter(([,o])=>o&&(Array.isArray(o)?o.length!==0:!0)));return Object.keys(i).length===0&&i.constructor===Object?"":bo.dump(i).trim()});return(i,o)=>{const a=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",xo,[n.yamlRecord?(t.openBlock(),t.createBlock(a,{key:0,id:"yaml-codeblock",code:r.value,language:"yaml",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),ko={key:0,class:"config-card-display-form"},wo=["data-testid"],So={key:0,class:"config-card-prop-section-title"},nn=H(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=O.useI18n(),o=l=>!!(l.tooltip||r[`${l.key}-label-tooltip`]),a=t.computed(()=>{if(!n.record)return n.record;const l=JSON.parse(JSON.stringify(n.record));return delete l.created_at,delete l.updated_at,l});return(l,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",ko,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,s=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${s}-props`,class:t.normalizeClass(`config-card-details-${s}-props`),"data-testid":`config-card-details-${s}-props`},[s!=="basic"?(t.openBlock(),t.createElementBlock("div",So,t.toDisplayString(s==="advanced"?t.unref(i)("baseConfigCard.sections.advanced"):t.unref(i)("baseConfigCard.sections.plugin")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[s],u=>(t.openBlock(),t.createBlock(ke,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(l.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,wo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&n.record?(t.openBlock(),t.createBlock(we,{key:1,config:n.config,"fetcher-url":n.fetcherUrl,"json-record":a.value,"request-method":"get"},null,8,["config","fetcher-url","json-record"])):t.createCommentVNode("",!0),e.format==="yaml"&&n.record?(t.openBlock(),t.createBlock(ve,{key:2,"yaml-record":a.value},null,8,["yaml-record"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-147a2f70"]]),Y="24px",de=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},_o=e=>(t.pushScopeId("data-v-20c17c32"),e=e(),t.popScopeId(),e),Ao=["aria-hidden"],Eo={key:0,"data-testid":"kui-icon-svg-title"},Bo=_o(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),No=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Eo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Bo],8,Ao))]),_:1},8,["aria-hidden","style"]))}}),Io=de(No,[["__scopeId","data-v-20c17c32"]]),To=e=>(t.pushScopeId("data-v-b939f1df"),e=e(),t.popScopeId(),e),Fo=["aria-hidden"],$o={key:0,"data-testid":"kui-icon-svg-title"},Lo=To(()=>t.createElementVNode("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"currentColor"},null,-1)),Oo=t.defineComponent({__name:"BookIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon book-icon","data-testid":"kui-icon-wrapper-book-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-book-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",$o,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Lo],8,Fo))]),_:1},8,["aria-hidden","style"]))}}),Do=de(Oo,[["__scopeId","data-v-b939f1df"]]),Vo=e=>(t.pushScopeId("data-v-f1d0332e"),e=e(),t.popScopeId(),e),vo=["aria-hidden"],Ro={key:0,"data-testid":"kui-icon-svg-title"},Mo=Vo(()=>t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),Ko=t.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ro,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Mo],8,vo))]),_:1},8,["aria-hidden","style"]))}}),Uo=de(Ko,[["__scopeId","data-v-f1d0332e"]]),jo=e=>(t.pushScopeId("data-v-288b6455"),e=e(),t.popScopeId(),e),qo=["aria-hidden"],Po={key:0,"data-testid":"kui-icon-svg-title"},Ho=jo(()=>t.createElementVNode("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"},null,-1)),zo=t.defineComponent({__name:"CloseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon close-icon","data-testid":"kui-icon-wrapper-close-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-close-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Po,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ho],8,qo))]),_:1},8,["aria-hidden","style"]))}}),Yo=de(zo,[["__scopeId","data-v-288b6455"]]),Wo=e=>(t.pushScopeId("data-v-17147ac8"),e=e(),t.popScopeId(),e),Go=["aria-hidden"],Jo={key:0,"data-testid":"kui-icon-svg-title"},Zo=Wo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),Qo=t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Jo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Zo],8,Go))]),_:1},8,["aria-hidden","style"]))}}),Xo=de(Qo,[["__scopeId","data-v-17147ac8"]]),ea={class:"config-card-title","data-testid":"config-card-title"},ta={class:"config-card-actions"},na=["href"],ra={class:"config-card-details-section"},ia=H(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error"],setup(e,{emit:n}){var y;const r=n,i=e,{i18n:{t:o}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{convertKeyToTitle:l}=O.useStringHelpers(),{axiosInstance:c}=O.useAxios((y=i.config)==null?void 0:y.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:"JSON",value:"json"},{label:"YAML",value:"yaml"}],u=t.ref("structured"),f=g=>{u.value=g==null?void 0:g.value},d={id:{type:L.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:P.Basic},name:{order:1,section:P.Basic},enabled:{type:L.BadgeStatus,order:2,section:P.Basic},updated_at:{type:L.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:P.Basic},created_at:{type:L.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:P.Basic},tags:{type:L.BadgeTag,order:-1,section:P.Basic}},m=t.ref(!1),p=t.ref(!1),b=t.ref(""),C=t.ref({}),w=t.computed(()=>{var E,k,T;if(!C.value)return[];const g=[],N=Object.keys(C.value).length;for(const A in C.value){const S=(k=(E=i.configSchema)==null?void 0:E[A])==null?void 0:k.order,F=(T=d[A])==null?void 0:T.order;let $=N;(F||F===0)&&($=F===-1?N+1:F),S&&($=S===-1?N+1:S),g.push([A,$])}return g.sort(function(A,S){return A[1]-S[1]}),g.map(A=>{var X,an;const S=A[0],F=(X=C.value)==null?void 0:X[S],$=((an=i.configSchema)==null?void 0:an[S])||{},v=d[S];return{key:S,value:F,hidden:$.hidden||!1,type:$.type??((v==null?void 0:v.type)||L.Text),label:$.label??((v==null?void 0:v.label)||l(S)),tooltip:$.tooltip??((v==null?void 0:v.tooltip)||void 0),section:$.section??((v==null?void 0:v.section)||P.Advanced)}}).filter(A=>!A.hidden&&A.key!==i.pluginConfigKey)}),I=t.computed(()=>{var k,T;if(!C.value||!i.pluginConfigKey)return[];const g=C.value[i.pluginConfigKey]||{},N=Object.keys(g).length,E=[];for(const A in g){const S=(T=(k=i.pluginConfigSchema)==null?void 0:k[A])==null?void 0:T.order,F=g[A];let $=F!=null&&F!==""?N-1:N;S&&($=S===-1?N+1:S),E.push([A,$])}return E.sort(function(A,S){return A[1]-S[1]}),E.map(A=>{var v;const S=A[0],F=g[S],$=((v=i.pluginConfigSchema)==null?void 0:v[S])||{};return{key:S,value:F,hidden:$.hidden||!1,type:$.type??L.Text,label:$.label??l(S),tooltip:$.tooltip??void 0,section:P.Plugin}}).filter(A=>!A.hidden)}),_=t.computed(()=>{var g,N,E,k;return{basic:(g=w.value)==null?void 0:g.filter(T=>T.section===P.Basic),advanced:(N=w.value)==null?void 0:N.filter(T=>T.section===P.Advanced),plugin:(k=I.value)==null?void 0:k.concat((E=w.value)==null?void 0:E.filter(T=>T.section===P.Plugin))}}),q=t.computed(()=>{const g=[];return _.value.basic.length&&g.push("basic"),_.value.advanced.length&&g.push("advanced"),_.value.plugin.length&&g.push("plugin"),g}),h=t.computed(()=>{var N,E;let g=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((N=i.config)==null?void 0:N.controlPlaneId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(E=i.config)!=null&&E.workspace?`/${i.config.workspace}`:"")),g=g.replace(/{id}/gi,i.config.entityId),g});return t.watch(m,g=>{r("loading",g)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:g}=await c.get(h.value);if(i.dataKey)if(typeof g[i.dataKey]<"u")C.value={...g[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else C.value={...g};Object.keys(i.configSchema).filter(E=>i.configSchema[E].forceShow).forEach(E=>{C.value&&typeof C.value[E]>"u"&&(C.value[E]=null)}),r("fetch:success",g)}catch(g){const N=a(g);b.value=N.startsWith("code")?o("baseConfigCard.errors.load"):N,p.value=!0,r("fetch:error",g)}finally{m.value=!1}}),(g,N)=>{const E=t.resolveComponent("KLabel"),k=t.resolveComponent("KSelect"),T=t.resolveComponent("KButton"),A=t.resolveComponent("KSkeleton"),S=t.resolveComponent("KEmptyState"),F=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(F,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",ta,[t.renderSlot(g.$slots,"actions",{},void 0,!0),t.createVNode(E,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(k,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(T,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Do),{size:t.unref(Rn)},null,8,["size"])],8,na)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(A,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock(S,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(b.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",ra,[t.createVNode(nn,{config:e.config,"fetcher-url":h.value,format:u.value,"prop-list-types":q.value,"property-collections":_.value,record:C.value},t.createSlots({_:2},[t.renderList(Object.keys(g.$slots),$=>({name:$,fn:t.withCtx(({row:v,rowValue:X})=>[t.renderSlot(g.$slots,$,{row:v,rowValue:X},void 0,!0)])}))]),1032,["config","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",ea,[t.renderSlot(g.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-f40a683b"]]),oa=["novalidate"],aa={class:"form-actions","data-testid":"form-actions"},la=H(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var q;const r=n,i=e,o=cn.useRouter(),{i18n:{t:a}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{axiosInstance:c}=O.useAxios((q=i.config)==null?void 0:q.axiosRequestConfig),s=t.ref(!1),u=t.ref(!1),f=t.ref(""),d=t.computed(()=>i.canSubmit===!1||i.isReadonly),m=t.ref(!1),p=t.computed(()=>{var y,g;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((y=i.config)==null?void 0:y.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(g=i.config)!=null&&g.workspace?`/${i.config.workspace}`:"")),i.editId?(h=h.replace(/{id}/gi,i.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),b=()=>{m.value=!m.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):w()},w=()=>{r("cancel")},I=()=>{d.value||r("submit")},_=t.ref([{title:a("baseForm.configuration.yaml"),hash:"#yaml"},{title:a("baseForm.configuration.json"),hash:"#json"}]);return t.watch(()=>s.value,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,s.value=!0;const{data:h}=await c.get(p.value);r("fetch:success",h)}catch(h){const y=l(h);f.value=y.startsWith("code")?a("baseForm.errors.edit"):y,u.value=!0,r("fetch:error",h)}finally{s.value=!1}}),(h,y)=>{const g=t.resolveComponent("KSkeleton"),N=t.resolveComponent("KEmptyState"),E=t.resolveComponent("KAlert"),k=t.resolveComponent("KButton"),T=t.resolveComponent("KTabs"),A=t.resolveComponent("KSlideout"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createBlock(g,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(N,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(f.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers(I,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(E,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",aa,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(k,{appearance:"tertiary","data-testid":"form-view-configuration",onClick:y[0]||(y[0]=F=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1}),t.createVNode(k,{appearance:"secondary","data-testid":"form-cancel",disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["disabled"]),t.createVNode(k,{appearance:"primary","data-testid":"form-submit",disabled:d.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["disabled"])],!0)])],40,oa)),t.createVNode(A,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(a)("baseForm.configuration.title"),visible:m.value,onClose:y[1]||(y[1]=F=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(T,{"data-testid":"form-view-configuration-slideout-tabs",tabs:_.value},{json:t.withCtx(()=>[t.createVNode(we,{config:e.config,"fetcher-url":p.value,"json-record":i.formFields,"request-method":i.editId?"put":"post"},null,8,["config","fetcher-url","json-record","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(ve,{"yaml-record":i.formFields},null,8,["yaml-record"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-3def74fe"]]),ca={key:0,"data-testid":"first-col"},sa=H(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const n=e,r=t.computed(()=>{var C;return((C=n.rowEl)==null?void 0:C.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var C;return((C=r.value)==null?void 0:C.querySelector('[data-testid="first-col"]'))||null}),o=t.computed(()=>{var w,I;const C=(w=n.rowEl)==null?void 0:w.querySelectorAll("td");return C?((I=C[0])==null?void 0:I.getAttribute("data-testid"))===n.keyName:!1});let a;const l=()=>{a&&(a.disconnect(),a=void 0)},c=()=>{var C,w,I;u.value=((C=i.value)==null?void 0:C.getBoundingClientRect().width)||0,f.value=((w=r.value)==null?void 0:w.clientWidth)||0,d.value=((I=s.value)==null?void 0:I.innerText)||""},s=t.ref({}),u=t.ref(0),f=t.ref(0),d=t.ref(""),m=t.computed(()=>[i.value,r.value]),p=t.watch(m,C=>{if(o.value&&(l(),"ResizeObserver"in window&&window)){a=new ResizeObserver(w=>{window.requestAnimationFrame(()=>{!Array.isArray(w)||!w.length||c()})});for(const w of C)w&&a.observe(w)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>o.value?u.value>f.value:!1);return t.onMounted(()=>{c()}),t.onUnmounted(()=>{p()}),(C,w)=>{const I=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:s,class:"content-wrapper"},[o.value?(t.openBlock(),t.createElementBlock("span",ca,[t.createVNode(I,{"max-width":"300",placement:"bottomStart",text:b.value?d.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])])):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-c4379fd4"]]),da={class:"toolbar-container"},ua={key:0,class:"toolbar-button-container"},fa=["data-testid"],pa=H(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),a=t.computed(()=>{var y,g;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(y=r.errorMessage)==null?void 0:y.title,message:(g=r.errorMessage)==null?void 0:g.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=y=>y.hasData||!!r.query,s=t.computed(()=>{const y=[];return Object.keys(r.tableHeaders).forEach(N=>{const E=r.tableHeaders[N];y.push({label:E.label??N,key:N,sortable:E.sortable??!1})}),r.enableEntityActions&&y.push({key:"actions",hideLabel:!0}),y}),u=y=>({"data-rowid":y.id,"data-testid":y.name,...r.rowAttributes(y)}),f=t.ref({}),d=y=>{var g;return(g=f.value)==null?void 0:g.$el.querySelector(`[data-rowid="${y.id}"]`)},m=y=>{const g={"data-testid":y.headerKey,...r.cellAttributes(y)};return y.colIndex===0&&(g.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),g},p=()=>{i("empty-state-cta-clicked"),b()},b=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(y,g)=>{i("click:row",g)}),w=y=>{i("sort",y)},{setTablePreferences:I,getTablePreferences:_}=fn(),q=t.computed(()=>{const y=_(r.preferencesStorageKey);return{...r.initialFetcherParams,...y}}),h=y=>{r.preferencesStorageKey&&I(r.preferencesStorageKey,y)};return(y,g)=>{const N=t.resolveComponent("KIcon"),E=t.resolveComponent("KButton"),k=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),A=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(A,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":m,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":a.value.message,"error-state-title":a.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":a.value.hasError,headers:s.value,"hide-pagination-when-optional":"","initial-fetcher-params":q.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":u,"search-input":e.query,onKtableEmptyStateCtaClicked:p,"onRow:click":C.value,onSort:g[0]||(g[0]=S=>w(S)),"onUpdate:tablePreferences":h},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",da,[t.renderSlot(y.$slots,"toolbar-filter",{},void 0,!0),y.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",ua,[t.renderSlot(y.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(S)]])]),actions:t.withCtx(({row:S,rowKey:F,rowValue:$})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(k,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(y.$slots,"actions",{row:S,rowKey:F,rowValue:$},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(E,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(N,{color:t.unref(Ln),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,fa)]),_:2},[t.renderList(e.tableHeaders,(S,F)=>({name:F,fn:t.withCtx(({row:$,rowKey:v,rowValue:X})=>[t.createVNode(sa,{"key-name":String(F),"row-el":d($)},{default:t.withCtx(()=>[t.renderSlot(y.$slots,F,{row:$,rowKey:v,rowValue:X},()=>[t.createTextVNode(t.toDisplayString(X),1)],!0)]),_:2},1032,["key-name","row-el"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Io))]),key:"0"}]),1032,["cache-identifier","disable-pagination-page-jump","disable-sorting","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","enable-client-sort","error-state-message","error-state-title","fetcher","fetcher-cache-key","has-error","headers","initial-fetcher-params","is-loading","pagination-type","search-input","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-590c2d76"]]),ma={key:0,class:"kong-ui-entity-delete-error"},ha={key:1,class:"description"},ga=H(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=O.useI18n(),i=e,o=n,a=t.computed(()=>i.needConfirm?i.entityName:""),l=()=>{o("cancel")},c=()=>{o("proceed")};return(s,u)=>{const f=t.resolveComponent("KAlert"),d=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(d,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":a.value,title:e.title,visible:e.visible,onCancel:l,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",ma,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:i.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.entityType),1)]),_:2},[i.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(i.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),i.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ha,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(i.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),ya={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Ca={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ba=["fill"],xa={mask:"url(#mask0_180_20349)"},ka=["fill"],rn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Fn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",ya,[t.createElementVNode("mask",Ca,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ba)]),t.createElementVNode("g",xa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ka)])]))}}),wa={key:1,class:"kong-ui-entity-filter"},Sa={class:"kong-ui-entity-filter-menu"},_a=["data-testid"],Aa=["onClick","onKeydown"],Ea={class:"menu-item-indicator"},Ba={class:"menu-item-body"},Na=["for"],Ia={class:"menu-item-buttons"},Ta={class:"filter-clear-button-container"},Fa=H(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=O.useI18n(),i=e,o=n,a=t.ref(!1),l=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const h=[];return new URLSearchParams(i.modelValue).forEach((y,g)=>{y!==""&&h.push(g)}),h}),u=t.computed(()=>{const h=i.config.fields;return Object.keys(h).filter(y=>h[y].searchable).map(y=>({label:h[y].label||y,value:y,expanded:!1}))});t.watch(()=>i.modelValue,h=>{l.value={},new URLSearchParams(h).forEach((y,g)=>{l.value[g]=y})});const f=()=>{a.value=!a.value},d=h=>{c.value.has(h)?c.value.delete(h):c.value.add(h)},m=h=>{o("update:modelValue",h)},p=()=>{m("")},b=h=>`filter-${h}`,C=h=>{var y,g;return(((g=(y=i.config.schema)==null?void 0:y[h])==null?void 0:g.values)??[]).map(N=>({value:N,label:N}))},w=h=>{var y,g;return((g=(y=i.config.schema)==null?void 0:y[h])==null?void 0:g.type)??"text"},I=h=>{l.value={...l.value,[h]:""},q()},_=()=>{l.value={},q(!0)},q=(h=!1)=>{const y=Object.keys(l.value).reduce((g,N)=>(l.value[N]&&(g[N]=`${l.value[N]}`),g),{});h&&(a.value=!1),o("update:modelValue",new URLSearchParams(y).toString())};return(h,y)=>{const g=t.resolveComponent("KInput"),N=t.resolveComponent("KButton"),E=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(g,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(rn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Yo),{class:"kong-ui-entity-filter-clear",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",wa,[t.createVNode(N,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(rn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,a.value]]),t.withDirectives(t.createElementVNode("div",Sa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,k=>{var T,A;return t.openBlock(),t.createElementBlock("div",{key:k.value,class:"kong-ui-entity-filter-menu-item","data-testid":k.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(k.value)}]),role:"button",tabindex:"0",onClick:S=>d(k.value),onKeydown:t.withKeys(S=>d(k.value),["enter"])},[t.createTextVNode(t.toDisplayString(k.label)+" ",1),t.withDirectives(t.createElementVNode("span",Ea,null,512),[[t.vShow,s.value.includes(k.value)]]),t.createVNode(t.unref(Uo),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(k.value)}]),color:t.unref(On)},null,8,["class","color"])],42,Aa),t.withDirectives(t.createElementVNode("div",Ba,[t.createElementVNode("label",{class:"menu-item-label",for:b(k.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Na),((A=(T=e.config.schema)==null?void 0:T[k.value])==null?void 0:A.type)==="select"?(t.openBlock(),t.createBlock(E,{key:0,id:b(k.value),modelValue:l.value[k.value],"onUpdate:modelValue":S=>l.value[k.value]=S,items:C(k.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(g,{key:1,id:b(k.value),modelValue:l.value[k.value],"onUpdate:modelValue":S=>l.value[k.value]=S,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:w(k.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(k.value)]]),t.withDirectives(t.createElementVNode("div",Ia,[t.createVNode(N,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:y[0]||(y[0]=S=>q(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(N,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:S=>I(k.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(k.value)]])],8,_a)}),128)),t.createElementVNode("div",Ta,[t.createVNode(N,{appearance:"tertiary",size:"small",onClick:_},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,a.value]])]))}}}),[["__scopeId","data-v-8cfadde3"]]),$a=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:i}=O.useI18n(),o=e,a=n,l=t.ref(!1),c=t.computed(()=>o.action==="enable"?r("toggleModal.enable.title",{entityType:o.entityType}):r("toggleModal.disable.title",{entityType:o.entityType})),s=t.computed(()=>o.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),u=()=>a("cancel"),f=async()=>{if(o.onConfirm){l.value=!0;try{await o.onConfirm(),a("proceed")}catch(d){console.error(d)}finally{l.value=!1}}};return(d,m)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":l.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:u,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(i),{keypath:`toggleModal.${o.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),La=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),i=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(o,a)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});let Ce;const Oa=new Uint8Array(16);function Da(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(Oa)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));function Va(e,n=0){return M[e[n+0]]+M[e[n+1]]+M[e[n+2]]+M[e[n+3]]+"-"+M[e[n+4]]+M[e[n+5]]+"-"+M[e[n+6]]+M[e[n+7]]+"-"+M[e[n+8]]+M[e[n+9]]+"-"+M[e[n+10]]+M[e[n+11]]+M[e[n+12]]+M[e[n+13]]+M[e[n+14]]+M[e[n+15]]}const on={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function va(e,n,r){if(on.randomUUID&&!n&&!e)return on.randomUUID();e=e||{};const i=e.random||(e.rng||Da)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){r=r||0;for(let o=0;o<16;++o)n[r+o]=i[o];return n}return Va(i)}const Ra=["aria-labelledby"],Ma={class:"form-section-wrapper"},Ka={key:1,class:"form-section-description"},Ua={key:2,class:"form-section-footer"},ja={class:"form-section-content"},qa=H(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=va();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Ma,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(i.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",ja,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,Ra))}}),[["__scopeId","data-v-76e52dbd"]]),Pa={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ha={key:0,class:"deleted-entity"},za={key:1},Ya=["onClick"],Wa=H(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:i}=O.useTruncationDetector(r),{i18n:{t:o}}=O.useI18n(),a=o("global.actions.copyId"),l=t.ref(a),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var d;return(d=n.entityLinkData.id)!=null&&d.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),u=t.computed(()=>{var d;return`${(d=s.value)==null?void 0:d.toString().slice(0,5)} (deleted)`}),f=async d=>{await d(s.value||"")&&(l.value=o("global.actions.copyToClipboard"),setTimeout(()=>{l.value=a},1800))};return(d,m)=>{const p=t.resolveComponent("KTooltip"),b=t.resolveComponent("KExternalLink"),C=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Pa,[c.value?(t.openBlock(),t.createElementBlock("div",Ha,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(b,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(i)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottomEnd",text:l.value},{default:t.withCtx(()=>[t.createVNode(C,null,{default:t.withCtx(({copyToClipboard:w})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(I=>f(w),["stop"])},[t.createVNode(t.unref(Xo),{class:"copy-icon",color:t.unref(Dn),"data-testid":"copy-id",size:t.unref(vn)},null,8,["color","size"])],8,Ya)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-be5bda4c"]]),{useAxios:Ga,useDeleteUrlBuilder:Ja,useErrors:Za,useExternalLinkCreator:Qa,useFetchUrlBuilder:Xa,useFetcher:el,useDebouncedFilter:tl,useStringHelpers:nl,useHelpers:rl,useGatewayFeatureSupported:il,useTruncationDetector:ol,useValidators:al}=O;B.ConfigCardDisplay=nn,B.ConfigCardItem=ke,B.ConfigurationSchemaSection=P,B.ConfigurationSchemaType=L,B.EntityBaseConfigCard=ia,B.EntityBaseForm=la,B.EntityBaseFormType=Ue,B.EntityBaseTable=pa,B.EntityDeleteModal=ga,B.EntityFilter=Fa,B.EntityFormSection=qa,B.EntityLink=Wa,B.EntityToggleModal=$a,B.EntityTypes=Ke,B.FetcherStatus=Z,B.InternalLinkItem=Xe,B.JsonCodeBlock=we,B.PermissionsWrapper=La,B.YamlCodeBlock=ve,B.useAxios=Ga,B.useDebouncedFilter=tl,B.useDeleteUrlBuilder=Ja,B.useErrors=Za,B.useExternalLinkCreator=Qa,B.useFetchUrlBuilder=Xa,B.useFetcher=el,B.useGatewayFeatureSupported=il,B.useHelpers=rl,B.useStringHelpers=nl,B.useTruncationDetector=ol,B.useValidators=al,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
32
+ `:""}var no=to,ro={dump:no};function Ve(e,n){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+n+" instead, which is now safe by default.")}}var io=R,oo=rt,ao=lt,lo=ft,co=pt,so=Be,uo=Vt.load,fo=Vt.loadAll,po=ro.dump,mo=U,ho={binary:Ct,float:ut,map:at,null:ct,pairs:xt,set:kt,timestamp:gt,bool:st,int:dt,merge:yt,omap:bt,seq:ot,str:it},go=Ve("safeLoad","load"),yo=Ve("safeLoadAll","loadAll"),Co=Ve("safeDump","dump"),bo={Type:io,Schema:oo,FAILSAFE_SCHEMA:ao,JSON_SCHEMA:lo,CORE_SCHEMA:co,DEFAULT_SCHEMA:so,load:uo,loadAll:fo,dump:po,YAMLException:mo,types:ho,safeLoad:go,safeLoadAll:yo,safeDump:Co};const xo={class:"yaml-config"},ve=t.defineComponent({__name:"YamlCodeBlock",props:{yamlRecord:{type:Object,required:!0}},setup(e){const n=e,r=t.computed(()=>{const i=Object.fromEntries(Object.entries(n.yamlRecord).filter(([,o])=>o&&(Array.isArray(o)?o.length!==0:!0)));return Object.keys(i).length===0&&i.constructor===Object?"":bo.dump(i).trim()});return(i,o)=>{const a=t.resolveComponent("KCodeBlock");return t.openBlock(),t.createElementBlock("div",xo,[n.yamlRecord?(t.openBlock(),t.createBlock(a,{key:0,id:"yaml-codeblock",code:r.value,language:"yaml",theme:"dark"},null,8,["code"])):t.createCommentVNode("",!0)])}}}),ko={key:0,class:"config-card-display-form"},wo=["data-testid"],So={key:0,class:"config-card-prop-section-title"},nn=H(t.defineComponent({__name:"ConfigCardDisplay",props:{config:{type:Object,required:!1,default:()=>({})},propertyCollections:{type:Object,required:!1,default:()=>null},format:{type:String,required:!1,default:"structured",validator:e=>["structured","yaml","json"].includes(e)},propListTypes:{type:Array,required:!1,default:()=>[]},record:{type:Object,required:!1,default:()=>({})},fetcherUrl:{type:String,required:!1,default:""}},setup(e){const n=e,r=t.useSlots(),{i18n:{t:i}}=O.useI18n(),o=l=>!!(l.tooltip||r[`${l.key}-label-tooltip`]),a=t.computed(()=>{if(!n.record)return n.record;const l=JSON.parse(JSON.stringify(n.record));return delete l.created_at,delete l.updated_at,l});return(l,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[e.format==="structured"?(t.openBlock(),t.createElementBlock("div",ko,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propListTypes,s=>(t.openBlock(),t.createElementBlock("div",{key:`config-card-details-${s}-props`,class:t.normalizeClass(`config-card-details-${s}-props`),"data-testid":`config-card-details-${s}-props`},[s!=="basic"?(t.openBlock(),t.createElementBlock("div",So,t.toDisplayString(s==="advanced"?t.unref(i)("baseConfigCard.sections.advanced"):t.unref(i)("baseConfigCard.sections.plugin")),1)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.propertyCollections[s],u=>(t.openBlock(),t.createBlock(ke,{key:u.key,item:u},t.createSlots({label:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label`,{row:u},void 0,!0)]),[u.key]:t.withCtx(({rowValue:f})=>[t.renderSlot(l.$slots,u.key,{row:u,rowValue:f},void 0,!0)]),_:2},[o(u)?{name:"label-tooltip",fn:t.withCtx(()=>[t.renderSlot(l.$slots,`${u.key}-label-tooltip`,{row:u},void 0,!0)]),key:"0"}:void 0]),1032,["item"]))),128))],10,wo))),128))])):t.createCommentVNode("",!0),e.format==="json"&&n.record?(t.openBlock(),t.createBlock(we,{key:1,config:n.config,"fetcher-url":n.fetcherUrl,"json-record":a.value,"request-method":"get"},null,8,["config","fetcher-url","json-record"])):t.createCommentVNode("",!0),e.format==="yaml"&&n.record?(t.openBlock(),t.createBlock(ve,{key:2,"yaml-record":a.value},null,8,["yaml-record"])):t.createCommentVNode("",!0)],64))}}),[["__scopeId","data-v-147a2f70"]]),Y="24px",de=(e,n)=>{const r=e.__vccOpts||e;for(const[i,o]of n)r[i]=o;return r},_o=e=>(t.pushScopeId("data-v-20c17c32"),e=e(),t.popScopeId(),e),Ao=["aria-hidden"],Eo={key:0,"data-testid":"kui-icon-svg-title"},Bo=_o(()=>t.createElementVNode("path",{d:"M11 19V13H5V11H11V5H13V11H19V13H13V19H11Z",fill:"currentColor"},null,-1)),No=t.defineComponent({__name:"AddIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon add-icon","data-testid":"kui-icon-wrapper-add-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-add-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Eo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Bo],8,Ao))]),_:1},8,["aria-hidden","style"]))}}),Io=de(No,[["__scopeId","data-v-20c17c32"]]),To=e=>(t.pushScopeId("data-v-b939f1df"),e=e(),t.popScopeId(),e),Fo=["aria-hidden"],$o={key:0,"data-testid":"kui-icon-svg-title"},Lo=To(()=>t.createElementVNode("path",{d:"M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",fill:"currentColor"},null,-1)),Oo=t.defineComponent({__name:"BookIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon book-icon","data-testid":"kui-icon-wrapper-book-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-book-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",$o,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Lo],8,Fo))]),_:1},8,["aria-hidden","style"]))}}),Do=de(Oo,[["__scopeId","data-v-b939f1df"]]),Vo=e=>(t.pushScopeId("data-v-f1d0332e"),e=e(),t.popScopeId(),e),vo=["aria-hidden"],Ro={key:0,"data-testid":"kui-icon-svg-title"},Mo=Vo(()=>t.createElementVNode("path",{d:"M12 15.4L6 9.4L7.4 8L12 12.6L16.6 8L18 9.4L12 15.4Z",fill:"currentColor"},null,-1)),Ko=t.defineComponent({__name:"ChevronDownIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon chevron-down-icon","data-testid":"kui-icon-wrapper-chevron-down-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-chevron-down-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Ro,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Mo],8,vo))]),_:1},8,["aria-hidden","style"]))}}),Uo=de(Ko,[["__scopeId","data-v-f1d0332e"]]),jo=e=>(t.pushScopeId("data-v-288b6455"),e=e(),t.popScopeId(),e),qo=["aria-hidden"],Po={key:0,"data-testid":"kui-icon-svg-title"},Ho=jo(()=>t.createElementVNode("path",{d:"M6.4 19L5 17.6L10.6 12L5 6.4L6.4 5L12 10.6L17.6 5L19 6.4L13.4 12L19 17.6L17.6 19L12 13.4L6.4 19Z",fill:"currentColor"},null,-1)),zo=t.defineComponent({__name:"CloseIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon close-icon","data-testid":"kui-icon-wrapper-close-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-close-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Po,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Ho],8,qo))]),_:1},8,["aria-hidden","style"]))}}),Yo=de(zo,[["__scopeId","data-v-288b6455"]]),Wo=e=>(t.pushScopeId("data-v-17147ac8"),e=e(),t.popScopeId(),e),Go=["aria-hidden"],Jo={key:0,"data-testid":"kui-icon-svg-title"},Zo=Wo(()=>t.createElementVNode("path",{d:"M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",fill:"currentColor"},null,-1)),Qo=t.defineComponent({__name:"CopyIcon",props:{title:{type:String,required:!1,default:""},color:{type:String,required:!1,default:"currentColor"},display:{type:String,required:!1,default:"block"},decorative:{type:Boolean,required:!1,default:!1},size:{type:[Number,String],required:!1,default:Y,validator:e=>{if(typeof e=="number"&&e>0)return!0;if(typeof e=="string"){const n=String(e).replace(/px/gi,""),r=Number(n);if(r&&!isNaN(r)&&Number.isInteger(r)&&r>0)return!0}return!1}},as:{type:String,required:!1,default:"span"}},setup(e){const n=e,r=t.computed(()=>{if(typeof n.size=="number"&&n.size>0)return`${n.size}px`;if(typeof n.size=="string"){const o=String(n.size).replace(/px/gi,""),a=Number(o);if(a&&!isNaN(a)&&Number.isInteger(a)&&a>0)return`${a}px`}return Y}),i=t.computed(()=>({boxSizing:"border-box",color:n.color,display:n.display,height:r.value,lineHeight:"0",width:r.value}));return(o,a)=>(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.as),{"aria-hidden":e.decorative?"true":void 0,class:"kui-icon copy-icon","data-testid":"kui-icon-wrapper-copy-icon",style:t.normalizeStyle(i.value)},{default:t.withCtx(()=>[(t.openBlock(),t.createElementBlock("svg",{"aria-hidden":e.decorative?"true":void 0,"data-testid":"kui-icon-svg-copy-icon",fill:"none",height:"100%",role:"img",viewBox:"0 0 24 24",width:"100%",xmlns:"http://www.w3.org/2000/svg"},[e.title?(t.openBlock(),t.createElementBlock("title",Jo,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),Zo],8,Go))]),_:1},8,["aria-hidden","style"]))}}),Xo=de(Qo,[["__scopeId","data-v-17147ac8"]]),ea={class:"config-card-title","data-testid":"config-card-title"},ta={class:"config-card-actions"},na=["href"],ra={class:"config-card-details-section"},ia=H(t.defineComponent({__name:"EntityBaseConfigCard",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string"||!e.entityId)},configSchema:{type:Object,required:!1,default:()=>({})},pluginConfigKey:{type:String,required:!1,default:""},pluginConfigSchema:{type:Object,required:!1,default:()=>({})},fetchUrl:{type:String,required:!0},dataKey:{type:String,required:!1,default:""},hideTitle:{type:Boolean,default:!1},label:{type:String,default:"Format: ",required:!1},configCardDoc:{type:String,default:"",required:!1},titleTag:{type:String,default:"h2"}},emits:["loading","fetch:success","fetch:error"],setup(e,{emit:n}){var y;const r=n,i=e,{i18n:{t:o}}=O.useI18n(),{getMessageFromError:a}=O.useErrors(),{convertKeyToTitle:l}=O.useStringHelpers(),{axiosInstance:c}=O.useAxios((y=i.config)==null?void 0:y.axiosRequestConfig),s=[{label:o("baseConfigCard.general.structuredFormat"),value:"structured",selected:!0},{label:"JSON",value:"json"},{label:"YAML",value:"yaml"}],u=t.ref("structured"),f=g=>{u.value=g==null?void 0:g.value},d={id:{type:L.ID,label:o("baseConfigCard.commonFields.id_label"),order:0,section:P.Basic},name:{order:1,section:P.Basic},enabled:{type:L.BadgeStatus,order:2,section:P.Basic},updated_at:{type:L.Date,label:o("baseConfigCard.commonFields.updated_at_label"),order:3,section:P.Basic},created_at:{type:L.Date,label:o("baseConfigCard.commonFields.created_at_label"),order:4,section:P.Basic},tags:{type:L.BadgeTag,order:-1,section:P.Basic}},m=t.ref(!1),p=t.ref(!1),b=t.ref(""),C=t.ref({}),w=t.computed(()=>{var E,k,T;if(!C.value)return[];const g=[],N=Object.keys(C.value).length;for(const A in C.value){const S=(k=(E=i.configSchema)==null?void 0:E[A])==null?void 0:k.order,F=(T=d[A])==null?void 0:T.order;let $=N;(F||F===0)&&($=F===-1?N+1:F),S&&($=S===-1?N+1:S),g.push([A,$])}return g.sort(function(A,S){return A[1]-S[1]}),g.map(A=>{var X,an;const S=A[0],F=(X=C.value)==null?void 0:X[S],$=((an=i.configSchema)==null?void 0:an[S])||{},v=d[S];return{key:S,value:F,hidden:$.hidden||!1,type:$.type??((v==null?void 0:v.type)||L.Text),label:$.label??((v==null?void 0:v.label)||l(S)),tooltip:$.tooltip??((v==null?void 0:v.tooltip)||void 0),section:$.section??((v==null?void 0:v.section)||P.Advanced)}}).filter(A=>!A.hidden&&A.key!==i.pluginConfigKey)}),I=t.computed(()=>{var k,T;if(!C.value||!i.pluginConfigKey)return[];const g=C.value[i.pluginConfigKey]||{},N=Object.keys(g).length,E=[];for(const A in g){const S=(T=(k=i.pluginConfigSchema)==null?void 0:k[A])==null?void 0:T.order,F=g[A];let $=F!=null&&F!==""?N-1:N;S&&($=S===-1?N+1:S),E.push([A,$])}return E.sort(function(A,S){return A[1]-S[1]}),E.map(A=>{var v;const S=A[0],F=g[S],$=((v=i.pluginConfigSchema)==null?void 0:v[S])||{};return{key:S,value:F,hidden:$.hidden||!1,type:$.type??L.Text,label:$.label??l(S),tooltip:$.tooltip??void 0,section:P.Plugin}}).filter(A=>!A.hidden)}),_=t.computed(()=>{var g,N,E,k;return{basic:(g=w.value)==null?void 0:g.filter(T=>T.section===P.Basic),advanced:(N=w.value)==null?void 0:N.filter(T=>T.section===P.Advanced),plugin:(k=I.value)==null?void 0:k.concat((E=w.value)==null?void 0:E.filter(T=>T.section===P.Plugin))}}),q=t.computed(()=>{const g=[];return _.value.basic.length&&g.push("basic"),_.value.advanced.length&&g.push("advanced"),_.value.plugin.length&&g.push("plugin"),g}),h=t.computed(()=>{var N,E;let g=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((N=i.config)==null?void 0:N.controlPlaneId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(E=i.config)!=null&&E.workspace?`/${i.config.workspace}`:"")),g=g.replace(/{id}/gi,i.config.entityId),g});return t.watch(m,g=>{r("loading",g)},{immediate:!0}),t.onBeforeMount(async()=>{p.value=!1,m.value=!0;try{const{data:g}=await c.get(h.value);if(i.dataKey)if(typeof g[i.dataKey]<"u")C.value={...g[i.dataKey]};else throw new Error(o("errors.dataKeyUndefined",{dataKey:i.dataKey}));else C.value={...g};Object.keys(i.configSchema).filter(E=>i.configSchema[E].forceShow).forEach(E=>{C.value&&typeof C.value[E]>"u"&&(C.value[E]=null)}),r("fetch:success",g)}catch(g){const N=a(g);b.value=N.startsWith("code")?o("baseConfigCard.errors.load"):N,p.value=!0,r("fetch:error",g)}finally{m.value=!1}}),(g,N)=>{const E=t.resolveComponent("KLabel"),k=t.resolveComponent("KSelect"),T=t.resolveComponent("KButton"),A=t.resolveComponent("KSkeleton"),S=t.resolveComponent("KEmptyState"),F=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(F,{class:"kong-ui-entity-base-config-card","title-tag":e.titleTag},t.createSlots({actions:t.withCtx(()=>[t.createElementVNode("div",ta,[t.renderSlot(g.$slots,"actions",{},void 0,!0),t.createVNode(E,{class:"config-format-select-label","data-testid":"config-format-select-label"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.label),1)]),_:1}),t.createVNode(k,{"data-testid":"select-config-format",items:s,onChange:f}),e.configCardDoc?(t.openBlock(),t.createBlock(T,{key:0,appearance:"tertiary",class:"book-icon","data-testid":"book-icon"},{default:t.withCtx(()=>[t.createElementVNode("a",{href:e.configCardDoc,rel:"noopener",target:"_blank"},[t.createVNode(t.unref(Do),{size:t.unref(Rn)},null,8,["size"])],8,na)]),_:1})):t.createCommentVNode("",!0)])]),default:t.withCtx(()=>[m.value?(t.openBlock(),t.createBlock(A,{key:0,"data-testid":"config-card-loader","table-columns":2,type:"table"})):p.value?(t.openBlock(),t.createBlock(S,{key:1,"data-testid":"config-card-fetch-error","icon-variant":"error"},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(b.value),1)]),_:1})):t.createCommentVNode("",!0),t.createElementVNode("div",ra,[t.createVNode(nn,{config:e.config,"fetcher-url":h.value,format:u.value,"prop-list-types":q.value,"property-collections":_.value,record:C.value},t.createSlots({_:2},[t.renderList(Object.keys(g.$slots),$=>({name:$,fn:t.withCtx(({row:v,rowValue:X})=>[t.renderSlot(g.$slots,$,{row:v,rowValue:X},void 0,!0)])}))]),1032,["config","fetcher-url","format","prop-list-types","property-collections","record"])])]),_:2},[e.hideTitle?void 0:{name:"title",fn:t.withCtx(()=>[t.createElementVNode("span",ea,[t.renderSlot(g.$slots,"title",{},()=>[t.createTextVNode(t.toDisplayString(t.unref(o)("baseConfigCard.title")),1)],!0)])]),key:"0"}]),1032,["title-tag"])}}}),[["__scopeId","data-v-f40a683b"]]),oa=["novalidate"],aa={class:"form-actions","data-testid":"form-actions"},la=H(t.defineComponent({__name:"EntityBaseForm",props:{config:{type:Object,required:!0,validator:e=>!(!e||!["konnect","kongManager"].includes(e==null?void 0:e.app)||e.app==="konnect"&&!e.controlPlaneId||e.app==="kongManager"&&typeof e.workspace!="string")},editId:{type:String,required:!1,default:""},fetchUrl:{type:String,required:!1,default:""},isReadonly:{type:Boolean,required:!1,default:!1},canSubmit:{type:Boolean,required:!1,default:void 0},errorMessage:{type:String,required:!1,default:""},formFields:{type:Object,required:!0},noValidate:{type:Boolean,default:!1}},emits:["loading","fetch:success","fetch:error","submit","cancel"],setup(e,{emit:n}){var q;const r=n,i=e,o=cn.useRouter(),{i18n:{t:a}}=O.useI18n(),{getMessageFromError:l}=O.useErrors(),{axiosInstance:c}=O.useAxios((q=i.config)==null?void 0:q.axiosRequestConfig),s=t.ref(!1),u=t.ref(!1),f=t.ref(""),d=t.computed(()=>i.canSubmit===!1||i.isReadonly),m=t.ref(!1),p=t.computed(()=>{var y,g;let h=`${i.config.apiBaseUrl}${i.fetchUrl}`;return i.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((y=i.config)==null?void 0:y.controlPlaneId)||""):i.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(g=i.config)!=null&&g.workspace?`/${i.config.workspace}`:"")),i.editId?(h=h.replace(/{id}/gi,i.editId),h):(h=h.replace(/\/{id}/gi,""),h)}),b=()=>{m.value=!m.value},C=()=>{i.config.cancelRoute?o.push(i.config.cancelRoute):w()},w=()=>{r("cancel")},I=()=>{d.value||r("submit")},_=t.ref([{title:a("baseForm.configuration.yaml"),hash:"#yaml"},{title:a("baseForm.configuration.json"),hash:"#json"}]);return t.watch(()=>s.value,h=>{r("loading",h)},{immediate:!0}),t.onBeforeMount(async()=>{if(i.editId)try{u.value=!1,s.value=!0;const{data:h}=await c.get(p.value);r("fetch:success",h)}catch(h){const y=l(h);f.value=y.startsWith("code")?a("baseForm.errors.edit"):y,u.value=!0,r("fetch:error",h)}finally{s.value=!1}}),(h,y)=>{const g=t.resolveComponent("KSkeleton"),N=t.resolveComponent("KEmptyState"),E=t.resolveComponent("KAlert"),k=t.resolveComponent("KButton"),T=t.resolveComponent("KTabs"),A=t.resolveComponent("KSlideout"),S=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(S,{class:"kong-ui-entity-base-form"},{default:t.withCtx(()=>[s.value?(t.openBlock(),t.createBlock(g,{key:0,type:"form"})):u.value?(t.openBlock(),t.createBlock(N,{key:1,"action-button-text":t.unref(a)("baseForm.actions.back"),"data-testid":"form-fetch-error","icon-variant":"error",onClickAction:C},{default:t.withCtx(()=>[t.createElementVNode("h3",null,t.toDisplayString(f.value),1)]),_:1},8,["action-button-text"])):(t.openBlock(),t.createElementBlock("form",{key:2,"data-testid":"form-content",novalidate:i.noValidate,onReset:t.withModifiers(w,["prevent"]),onSubmit:t.withModifiers(I,["prevent"])},[t.renderSlot(h.$slots,"default",{},void 0,!0),e.errorMessage?(t.openBlock(),t.createBlock(E,{key:0,appearance:"danger","data-testid":"form-error",message:e.errorMessage},null,8,["message"])):t.createCommentVNode("",!0),t.createElementVNode("div",aa,[t.renderSlot(h.$slots,"form-actions",{},()=>[t.createVNode(k,{appearance:"tertiary","data-testid":"form-view-configuration",onClick:y[0]||(y[0]=F=>b())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.viewConfiguration")),1)]),_:1}),t.createVNode(k,{appearance:"secondary","data-testid":"form-cancel",disabled:e.isReadonly,type:"reset"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.cancel")),1)]),_:1},8,["disabled"]),t.createVNode(k,{appearance:"primary","data-testid":"form-submit",disabled:d.value,type:"submit"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(a)("baseForm.actions.save")),1)]),_:1},8,["disabled"])],!0)])],40,oa)),t.createVNode(A,{"close-on-blur":!1,"data-testid":"form-view-configuration-slideout","has-overlay":!1,"offset-top":60,title:t.unref(a)("baseForm.configuration.title"),visible:m.value,onClose:y[1]||(y[1]=F=>b())},{default:t.withCtx(()=>[t.createElementVNode("div",null,t.toDisplayString(t.unref(a)("baseForm.configuration.message")),1),t.createVNode(T,{"data-testid":"form-view-configuration-slideout-tabs",tabs:_.value},{json:t.withCtx(()=>[t.createVNode(we,{config:e.config,"fetcher-url":p.value,"json-record":i.formFields,"request-method":i.editId?"put":"post"},null,8,["config","fetcher-url","json-record","request-method"])]),yaml:t.withCtx(()=>[t.createVNode(ve,{"yaml-record":i.formFields},null,8,["yaml-record"])]),_:1},8,["tabs"])]),_:1},8,["title","visible"])]),_:3})}}}),[["__scopeId","data-v-3def74fe"]]),ca={key:0,"data-testid":"first-col"},sa=H(t.defineComponent({__name:"EntityBaseTableCell",props:{keyName:{type:String,required:!0},rowEl:{type:[Object,null],required:!0}},setup(e){const n=e,r=t.computed(()=>{var C;return((C=n.rowEl)==null?void 0:C.querySelector(`[data-testid="${n.keyName}"]`))||null}),i=t.computed(()=>{var C;return((C=r.value)==null?void 0:C.querySelector('[data-testid="first-col"]'))||null}),o=t.computed(()=>{var w,I;const C=(w=n.rowEl)==null?void 0:w.querySelectorAll("td");return C?((I=C[0])==null?void 0:I.getAttribute("data-testid"))===n.keyName:!1});let a;const l=()=>{a&&(a.disconnect(),a=void 0)},c=()=>{var C,w,I;u.value=((C=i.value)==null?void 0:C.getBoundingClientRect().width)||0,f.value=((w=r.value)==null?void 0:w.clientWidth)||0,d.value=((I=s.value)==null?void 0:I.innerText)||""},s=t.ref({}),u=t.ref(0),f=t.ref(0),d=t.ref(""),m=t.computed(()=>[i.value,r.value]),p=t.watch(m,C=>{if(o.value&&(l(),"ResizeObserver"in window&&window)){a=new ResizeObserver(w=>{window.requestAnimationFrame(()=>{!Array.isArray(w)||!w.length||c()})});for(const w of C)w&&a.observe(w)}},{immediate:!0,flush:"post",deep:!0}),b=t.computed(()=>o.value?u.value>f.value:!1);return t.onMounted(()=>{c()}),t.onUnmounted(()=>{p()}),(C,w)=>{const I=t.resolveComponent("KTooltip");return t.openBlock(),t.createElementBlock("span",{ref_key:"contentRef",ref:s,class:"content-wrapper"},[o.value?(t.openBlock(),t.createElementBlock("span",ca,[t.createVNode(I,{"max-width":"300",placement:"bottomStart",text:b.value?d.value:""},{default:t.withCtx(()=>[t.renderSlot(C.$slots,"default",{},void 0,!0)]),_:3},8,["text"])])):t.renderSlot(C.$slots,"default",{key:1},void 0,!0)],512)}}}),[["__scopeId","data-v-c4379fd4"]]),da={class:"toolbar-container"},ua={key:0,class:"toolbar-button-container"},fa=["data-testid"],pa=H(t.defineComponent({__name:"EntityBaseTable",props:{tableHeaders:{type:Object,required:!0,default:()=>({})},fetcher:{type:Function,required:!0,default:async()=>({data:[],total:0})},initialFetcherParams:{type:Object,default:null},cacheIdentifier:{type:String,default:""},fetcherCacheKey:{type:Number,default:1},isLoading:{type:Boolean,default:!1},query:{type:String,default:""},enableClientSort:{type:Boolean,default:!1},enableEntityActions:{type:Boolean,default:!0},emptyStateOptions:{type:Object,default:()=>({})},errorMessage:{type:[String,Object],default:null},disablePaginationPageJump:{type:Boolean,default:void 0},disableSorting:{type:Boolean,default:void 0},paginationType:{type:String,default:void 0},cellAttributes:{type:Function,default:()=>({})},rowAttributes:{type:Function,default:()=>({})},preferencesStorageKey:{type:String,default:"",required:!0},dropdownMenuWidth:{type:String,default:"",required:!1},title:{type:String,default:""},titleTag:{type:String,default:"h2"},disableRowClick:{type:Boolean,default:!1}},emits:["click:row","sort","clear-search-input","empty-state-cta-clicked"],setup(e,{emit:n}){const r=e,i=n,{i18n:{t:o}}=O.useI18n(),a=t.computed(()=>{var y,g;return typeof r.errorMessage=="string"?{hasError:!!r.errorMessage,title:r.errorMessage,message:void 0}:{hasError:!!r.errorMessage,title:(y=r.errorMessage)==null?void 0:y.title,message:(g=r.errorMessage)==null?void 0:g.message}}),l=t.computed(()=>r.cacheIdentifier||r.preferencesStorageKey),c=y=>y.hasData||!!r.query,s=t.computed(()=>{const y=[];return Object.keys(r.tableHeaders).forEach(N=>{const E=r.tableHeaders[N];y.push({label:E.label??N,key:N,sortable:E.sortable??!1})}),r.enableEntityActions&&y.push({key:"actions",hideLabel:!0}),y}),u=y=>({"data-rowid":y.id,"data-testid":y.name,...r.rowAttributes(y)}),f=t.ref({}),d=y=>{var g;return(g=f.value)==null?void 0:g.$el.querySelector(`[data-rowid="${y.id}"]`)},m=y=>{const g={"data-testid":y.headerKey,...r.cellAttributes(y)};return y.colIndex===0&&(g.style={maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}),g},p=()=>{i("empty-state-cta-clicked"),b()},b=()=>{i("clear-search-input")},C=t.computed(()=>r.disableRowClick?void 0:(y,g)=>{i("click:row",g)}),w=y=>{i("sort",y)},{setTablePreferences:I,getTablePreferences:_}=fn(),q=t.computed(()=>{const y=_(r.preferencesStorageKey);return{...r.initialFetcherParams,...y}}),h=y=>{r.preferencesStorageKey&&I(r.preferencesStorageKey,y)};return(y,g)=>{const N=t.resolveComponent("KIcon"),E=t.resolveComponent("KButton"),k=t.resolveComponent("KDropdown"),T=t.resolveComponent("KTable"),A=t.resolveComponent("KCard");return t.openBlock(),t.createBlock(A,{class:"kong-ui-entity-base-table",title:e.title,"title-tag":e.titleTag},{default:t.withCtx(()=>[t.createVNode(T,{ref_key:"tableRefs",ref:f,"cache-identifier":l.value,"cell-attrs":m,"disable-pagination-page-jump":e.disablePaginationPageJump,"disable-sorting":e.disableSorting,"empty-state-action-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsCtaText"):e.emptyStateOptions.ctaText,"empty-state-action-route":e.query?void 0:e.emptyStateOptions.ctaPath,"empty-state-icon-variant":e.query?"search":"kong","empty-state-message":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsMessage"):e.emptyStateOptions.message,"empty-state-title":e.query?t.unref(o)("baseTable.emptyState.noSearchResultsTitle"):e.emptyStateOptions.title,"enable-client-sort":e.enableClientSort,"error-state-message":a.value.message,"error-state-title":a.value.title,fetcher:e.fetcher,"fetcher-cache-key":String(e.fetcherCacheKey),"has-error":a.value.hasError,headers:s.value,"hide-pagination-when-optional":"","initial-fetcher-params":q.value,"is-loading":e.isLoading,"pagination-type":e.paginationType,"row-attrs":u,"search-input":e.query,onKtableEmptyStateCtaClicked:p,"onRow:click":C.value,onSort:g[0]||(g[0]=S=>w(S)),"onUpdate:tablePreferences":h},t.createSlots({toolbar:t.withCtx(({state:S})=>[t.withDirectives(t.createElementVNode("div",da,[t.renderSlot(y.$slots,"toolbar-filter",{},void 0,!0),y.$slots["toolbar-button"]?(t.openBlock(),t.createElementBlock("div",ua,[t.renderSlot(y.$slots,"toolbar-button",{},void 0,!0)])):t.createCommentVNode("",!0)],512),[[t.vShow,c(S)]])]),actions:t.withCtx(({row:S,rowKey:F,rowValue:$})=>[t.createElementVNode("div",{class:"actions-container","data-testid":S.name},[t.createVNode(k,{"kpop-attributes":{placement:"bottomEnd"},width:e.dropdownMenuWidth},{items:t.withCtx(()=>[t.renderSlot(y.$slots,"actions",{row:S,rowKey:F,rowValue:$},void 0,!0)]),default:t.withCtx(()=>[t.createVNode(E,{class:"actions-trigger","data-testid":"overflow-actions-button",size:"small"},{icon:t.withCtx(()=>[t.createVNode(N,{color:t.unref(Ln),icon:"more",size:"16"},null,8,["color"])]),_:1})]),_:2},1032,["width"])],8,fa)]),_:2},[t.renderList(e.tableHeaders,(S,F)=>({name:F,fn:t.withCtx(({row:$,rowKey:v,rowValue:X})=>[t.createVNode(sa,{"key-name":String(F),"row-el":d($)},{default:t.withCtx(()=>[t.renderSlot(y.$slots,F,{row:$,rowKey:v,rowValue:X},()=>[t.createTextVNode(t.toDisplayString(X),1)],!0)]),_:2},1032,["key-name","row-el"])])})),e.query?void 0:{name:"empty-state-action-icon",fn:t.withCtx(()=>[t.createVNode(t.unref(Io))]),key:"0"}]),1032,["cache-identifier","disable-pagination-page-jump","disable-sorting","empty-state-action-message","empty-state-action-route","empty-state-icon-variant","empty-state-message","empty-state-title","enable-client-sort","error-state-message","error-state-title","fetcher","fetcher-cache-key","has-error","headers","initial-fetcher-params","is-loading","pagination-type","search-input","onRow:click"])]),_:3},8,["title","title-tag"])}}}),[["__scopeId","data-v-590c2d76"]]),ma={key:0,class:"kong-ui-entity-delete-error"},ha={key:1,class:"description"},ga=H(t.defineComponent({__name:"EntityDeleteModal",props:{visible:{type:Boolean,required:!0,default:!1},title:{type:String,default:"Delete"},entityType:{type:String,required:!0},entityName:{type:String,default:""},needConfirm:{type:Boolean,default:!0},description:{type:String,default:""},actionPending:{type:Boolean,default:!1},error:{type:String,default:""}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18nT:r}=O.useI18n(),i=e,o=n,a=t.computed(()=>i.needConfirm?i.entityName:""),l=()=>{o("cancel")},c=()=>{o("proceed")};return(s,u)=>{const f=t.resolveComponent("KAlert"),d=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(d,{"action-button-appearance":"danger","action-button-disabled":e.actionPending,"action-button-text":"Yes, delete",class:"kong-ui-entity-delete-modal","confirmation-text":a.value,title:e.title,visible:e.visible,onCancel:l,onProceed:c},{default:t.withCtx(()=>[e.error?(t.openBlock(),t.createElementBlock("div",ma,[t.createVNode(f,{appearance:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.error),1)]),_:1})])):t.createCommentVNode("",!0),t.createVNode(t.unref(r),{class:"message",keypath:i.entityName?"deleteModal.messageWithName":"deleteModal.message",tag:"p"},t.createSlots({entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.entityType),1)]),_:2},[i.entityName?{name:"entityName",fn:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(i.entityName),1)]),key:"0"}:void 0]),1032,["keypath"]),i.description||s.$slots.description?(t.openBlock(),t.createElementBlock("div",ha,[t.renderSlot(s.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(i.description),1)],!0)])):t.createCommentVNode("",!0)]),_:3},8,["action-button-disabled","confirmation-text","title","visible"])}}}),[["__scopeId","data-v-4361d622"]]),ya={fill:"none",height:"20",viewBox:"0 0 20 20",width:"20",xmlns:"http://www.w3.org/2000/svg"},Ca={id:"mask0_180_20349",height:"20",maskUnits:"userSpaceOnUse",style:{"mask-type":"alpha"},width:"20",x:"0",y:"0"},ba=["fill"],xa={mask:"url(#mask0_180_20349)"},ka=["fill"],rn=t.defineComponent({__name:"IconFilter",props:{color:{type:String,default:`var(--kong-ui-entity-filter-color, ${Fn})`}},setup(e){return(n,r)=>(t.openBlock(),t.createElementBlock("svg",ya,[t.createElementVNode("mask",Ca,[t.createElementVNode("rect",{fill:e.color,height:"20",width:"20"},null,8,ba)]),t.createElementVNode("g",xa,[t.createElementVNode("path",{d:"M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",fill:e.color},null,8,ka)])]))}}),wa={key:1,class:"kong-ui-entity-filter"},Sa={class:"kong-ui-entity-filter-menu"},_a=["data-testid"],Aa=["onClick","onKeydown"],Ea={class:"menu-item-indicator"},Ba={class:"menu-item-body"},Na=["for"],Ia={class:"menu-item-buttons"},Ta={class:"filter-clear-button-container"},Fa=H(t.defineComponent({__name:"EntityFilter",props:{config:{type:Object,required:!0,default:()=>({isExactMatch:!0,placeholder:""})},modelValue:{type:String,required:!0}},emits:["update:modelValue"],setup(e,{emit:n}){const{i18n:{t:r}}=O.useI18n(),i=e,o=n,a=t.ref(!1),l=t.ref({}),c=t.ref(new Set),s=t.computed(()=>{const h=[];return new URLSearchParams(i.modelValue).forEach((y,g)=>{y!==""&&h.push(g)}),h}),u=t.computed(()=>{const h=i.config.fields;return Object.keys(h).filter(y=>{var g;return(g=h==null?void 0:h[y])==null?void 0:g.searchable}).map(y=>({label:h[y].label||y,value:y,expanded:!1}))});t.watch(()=>i.modelValue,h=>{l.value={},new URLSearchParams(h).forEach((y,g)=>{l.value[g]=y})});const f=()=>{a.value=!a.value},d=h=>{c.value.has(h)?c.value.delete(h):c.value.add(h)},m=h=>{o("update:modelValue",h)},p=()=>{m("")},b=h=>`filter-${h}`,C=h=>{var y,g;return(((g=(y=i.config.schema)==null?void 0:y[h])==null?void 0:g.values)??[]).map(N=>({value:N,label:N}))},w=h=>{var y,g;return((g=(y=i.config.schema)==null?void 0:y[h])==null?void 0:g.type)??"text"},I=h=>{l.value={...l.value,[h]:""},q()},_=()=>{l.value={},q(!0)},q=(h=!1)=>{const y=Object.keys(l.value).reduce((g,N)=>(l.value[N]&&(g[N]=`${l.value[N]}`),g),{});h&&(a.value=!1),o("update:modelValue",new URLSearchParams(y).toString())};return(h,y)=>{const g=t.resolveComponent("KInput"),N=t.resolveComponent("KButton"),E=t.resolveComponent("KSelect");return e.config.isExactMatch?(t.openBlock(),t.createBlock(g,{key:0,autocomplete:"off",class:"kong-ui-entity-filter-input","data-testid":"search-input","model-value":e.modelValue,placeholder:e.config.placeholder,"onUpdate:modelValue":m},{before:t.withCtx(()=>[t.createVNode(rn)]),after:t.withCtx(()=>[t.withDirectives(t.createVNode(t.unref(Yo),{class:"kong-ui-entity-filter-clear",onClick:p},null,512),[[t.vShow,e.modelValue!==""]])]),_:1},8,["model-value","placeholder"])):(t.openBlock(),t.createElementBlock("div",wa,[t.createVNode(N,{appearance:"tertiary","data-testid":"filter-button",onClick:f},{default:t.withCtx(()=>[t.createVNode(rn),t.createTextVNode(" "+t.toDisplayString(t.unref(r)("filter.filterButtonText"))+" "+t.toDisplayString(s.value.length>0?`(${s.value.length})`:""),1)]),_:1}),t.withDirectives(t.createElementVNode("div",{class:"kong-ui-entity-filter-backdrop",onClick:f},null,512),[[t.vShow,a.value]]),t.withDirectives(t.createElementVNode("div",Sa,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.value,k=>{var T,A;return t.openBlock(),t.createElementBlock("div",{key:k.value,class:"kong-ui-entity-filter-menu-item","data-testid":k.value},[t.createElementVNode("span",{class:t.normalizeClass(["menu-item-title",{expanded:c.value.has(k.value)}]),role:"button",tabindex:"0",onClick:S=>d(k.value),onKeydown:t.withKeys(S=>d(k.value),["enter"])},[t.createTextVNode(t.toDisplayString(k.label)+" ",1),t.withDirectives(t.createElementVNode("span",Ea,null,512),[[t.vShow,s.value.includes(k.value)]]),t.createVNode(t.unref(Uo),{class:t.normalizeClass(["menu-item-expand-icon",{expanded:c.value.has(k.value)}]),color:t.unref(On)},null,8,["class","color"])],42,Aa),t.withDirectives(t.createElementVNode("div",Ba,[t.createElementVNode("label",{class:"menu-item-label",for:b(k.value)},t.toDisplayString(t.unref(r)("filter.fieldLabel")),9,Na),((A=(T=e.config.schema)==null?void 0:T[k.value])==null?void 0:A.type)==="select"?(t.openBlock(),t.createBlock(E,{key:0,id:b(k.value),modelValue:l.value[k.value],"onUpdate:modelValue":S=>l.value[k.value]=S,items:C(k.value),placeholder:t.unref(r)("filter.selectPlaceholder")},null,8,["id","modelValue","onUpdate:modelValue","items","placeholder"])):(t.openBlock(),t.createBlock(g,{key:1,id:b(k.value),modelValue:l.value[k.value],"onUpdate:modelValue":S=>l.value[k.value]=S,autocomplete:"off",placeholder:t.unref(r)("filter.inputPlaceholder"),type:w(k.value)},null,8,["id","modelValue","onUpdate:modelValue","placeholder","type"]))],512),[[t.vShow,c.value.has(k.value)]]),t.withDirectives(t.createElementVNode("div",Ia,[t.createVNode(N,{appearance:"tertiary","data-testid":"apply-filter",size:"small",onClick:y[0]||(y[0]=S=>q(!0))},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.applyButtonText")),1)]),_:1}),t.createVNode(N,{appearance:"tertiary","data-testid":"clear-filter",size:"small",onClick:S=>I(k.value)},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearButtonText")),1)]),_:2},1032,["onClick"])],512),[[t.vShow,c.value.has(k.value)]])],8,_a)}),128)),t.createElementVNode("div",Ta,[t.createVNode(N,{appearance:"tertiary",size:"small",onClick:_},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(t.unref(r)("filter.clearAllButtonText")),1)]),_:1})])],512),[[t.vShow,a.value]])]))}}}),[["__scopeId","data-v-9a370e3a"]]),$a=t.defineComponent({__name:"EntityToggleModal",props:{visible:{type:Boolean,required:!0},action:{type:String,required:!0},entityId:{type:String,required:!0},entityType:{type:String,required:!0},entityName:{type:String,required:!0},onConfirm:{type:Function,required:!1,default:null}},emits:["cancel","proceed"],setup(e,{emit:n}){const{i18n:{t:r},i18nT:i}=O.useI18n(),o=e,a=n,l=t.ref(!1),c=t.computed(()=>o.action==="enable"?r("toggleModal.enable.title",{entityType:o.entityType}):r("toggleModal.disable.title",{entityType:o.entityType})),s=t.computed(()=>o.action==="enable"?r("toggleModal.enable.confirmText"):r("toggleModal.disable.confirmText")),u=()=>a("cancel"),f=async()=>{if(o.onConfirm){l.value=!0;try{await o.onConfirm(),a("proceed")}catch(d){console.error(d)}finally{l.value=!1}}};return(d,m)=>{const p=t.resolveComponent("KPrompt");return t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(p,{"action-button-disabled":l.value,"action-button-text":s.value,"data-testid":`${e.entityType}-${e.entityId}-toggle-prompt`,title:c.value,visible:e.visible,onCancel:u,onProceed:f},{default:t.withCtx(()=>[t.createVNode(t.unref(i),{keypath:`toggleModal.${o.action}.message`,scope:"global"},{entityType:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.entityType),1)]),entityName:t.withCtx(()=>[t.createElementVNode("strong",null,t.toDisplayString(e.entityName),1)]),_:1},8,["keypath"])]),_:1},8,["action-button-disabled","action-button-text","data-testid","title","visible"])])}}}),La=t.defineComponent({__name:"PermissionsWrapper",props:{authFunction:{type:Function,required:!0,default:async()=>!0},forceShow:{type:Boolean,default:!1}},setup(e){const n=e,r=t.ref(void 0),i=t.computed(()=>r.value===!0||r.value!==void 0&&n.forceShow===!0);return t.watch(()=>n.authFunction,async()=>{r.value=await n.authFunction()},{immediate:!0}),(o,a)=>i.value?t.renderSlot(o.$slots,"default",{key:0,isAllowed:r.value}):t.createCommentVNode("",!0)}});let Ce;const Oa=new Uint8Array(16);function Da(){if(!Ce&&(Ce=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ce))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ce(Oa)}const M=[];for(let e=0;e<256;++e)M.push((e+256).toString(16).slice(1));function Va(e,n=0){return M[e[n+0]]+M[e[n+1]]+M[e[n+2]]+M[e[n+3]]+"-"+M[e[n+4]]+M[e[n+5]]+"-"+M[e[n+6]]+M[e[n+7]]+"-"+M[e[n+8]]+M[e[n+9]]+"-"+M[e[n+10]]+M[e[n+11]]+M[e[n+12]]+M[e[n+13]]+M[e[n+14]]+M[e[n+15]]}const on={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function va(e,n,r){if(on.randomUUID&&!n&&!e)return on.randomUUID();e=e||{};const i=e.random||(e.rng||Da)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,n){r=r||0;for(let o=0;o<16;++o)n[r+o]=i[o];return n}return Va(i)}const Ra=["aria-labelledby"],Ma={class:"form-section-wrapper"},Ka={key:1,class:"form-section-description"},Ua={key:2,class:"form-section-footer"},ja={class:"form-section-content"},qa=H(t.defineComponent({__name:"EntityFormSection",props:{title:{type:String,default:""},description:{type:String,default:""},hasDivider:{type:Boolean,default:!1},stickyInfoHeader:{type:Boolean,default:!0},hideInfoHeader:{type:Boolean,default:!1},titleTag:{type:String,default:"h2"}},setup(e){const n=t.useSlots(),r=va();return(i,o)=>(t.openBlock(),t.createElementBlock("div",{"aria-labelledby":e.title?t.unref(r):void 0,class:t.normalizeClass(["kong-ui-entity-form-section",{"has-divider":e.hasDivider}]),role:"group"},[t.createElementVNode("div",Ma,[e.hideInfoHeader?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["form-section-info",{sticky:e.stickyInfoHeader}])},[e.title?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.titleTag),{key:0,id:t.unref(r),class:"form-section-title"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.title),1)]),_:1},8,["id"])):t.createCommentVNode("",!0),e.description||t.unref(n).description?(t.openBlock(),t.createElementBlock("div",Ka,[t.renderSlot(i.$slots,"description",{},()=>[t.createElementVNode("p",null,t.toDisplayString(e.description),1)],!0)])):t.createCommentVNode("",!0),t.unref(n).footer?(t.openBlock(),t.createElementBlock("div",Ua,[t.renderSlot(i.$slots,"footer",{},void 0,!0)])):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",ja,[t.renderSlot(i.$slots,"default",{},void 0,!0)])])],10,Ra))}}),[["__scopeId","data-v-b1f74200"]]),Pa={class:"kong-ui-public-entity-link","data-testid":"entity-link-parent"},Ha={key:0,class:"deleted-entity"},za={key:1},Ya=["onClick"],Wa=H(t.defineComponent({__name:"EntityLink",props:{entityLinkData:{type:Object,required:!0},externalLink:{type:String,required:!1,default:""},newWindow:{type:Boolean,required:!1,default:!1},allowCopy:{type:Boolean,required:!1,default:!1}},setup(e){const n=e,r=t.ref(),{isTruncated:i}=O.useTruncationDetector(r),{i18n:{t:o}}=O.useI18n(),a=o("global.actions.copyId"),l=t.ref(a),c=t.computed(()=>n.entityLinkData.deleted??!1),s=t.computed(()=>{var d;return(d=n.entityLinkData.id)!=null&&d.toString().includes(":")?n.entityLinkData.id.toString().split(":")[1]:n.entityLinkData.id}),u=t.computed(()=>{var d;return`${(d=s.value)==null?void 0:d.toString().slice(0,5)} (deleted)`}),f=async d=>{await d(s.value||"")&&(l.value=o("global.actions.copyToClipboard"),setTimeout(()=>{l.value=a},1800))};return(d,m)=>{const p=t.resolveComponent("KTooltip"),b=t.resolveComponent("KExternalLink"),C=t.resolveComponent("KClipboardProvider");return t.openBlock(),t.createElementBlock("div",Pa,[c.value?(t.openBlock(),t.createElementBlock("div",Ha,t.toDisplayString(u.value),1)):s.value?s.value?(t.openBlock(),t.createBlock(b,{key:2,class:"entity-link","hide-icon":!e.newWindow,href:e.externalLink,target:e.newWindow?"_blank":"_self"},{default:t.withCtx(()=>[t.createVNode(p,{text:t.unref(i)&&e.entityLinkData.label||""},{default:t.withCtx(()=>[t.createElementVNode("span",{ref_key:"textContent",ref:r,class:"entity-link-label"},t.toDisplayString(e.entityLinkData.label),513)]),_:1},8,["text"])]),_:1},8,["hide-icon","href","target"])):t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",za,t.toDisplayString(" – "))),s.value&&e.allowCopy?(t.openBlock(),t.createBlock(p,{key:l.value,class:"copy-uuid-tooltip","max-width":"160",placement:"bottomEnd",text:l.value},{default:t.withCtx(()=>[t.createVNode(C,null,{default:t.withCtx(({copyToClipboard:w})=>[t.createElementVNode("span",{class:"entity-link-copy-id",onClick:t.withModifiers(I=>f(w),["stop"])},[t.createVNode(t.unref(Xo),{class:"copy-icon",color:t.unref(Dn),"data-testid":"copy-id",size:t.unref(vn)},null,8,["color","size"])],8,Ya)]),_:1})]),_:1},8,["text"])):t.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-be5bda4c"]]),{useAxios:Ga,useDeleteUrlBuilder:Ja,useErrors:Za,useExternalLinkCreator:Qa,useFetchUrlBuilder:Xa,useFetcher:el,useDebouncedFilter:tl,useStringHelpers:nl,useHelpers:rl,useGatewayFeatureSupported:il,useTruncationDetector:ol,useValidators:al}=O;B.ConfigCardDisplay=nn,B.ConfigCardItem=ke,B.ConfigurationSchemaSection=P,B.ConfigurationSchemaType=L,B.EntityBaseConfigCard=ia,B.EntityBaseForm=la,B.EntityBaseFormType=Ue,B.EntityBaseTable=pa,B.EntityDeleteModal=ga,B.EntityFilter=Fa,B.EntityFormSection=qa,B.EntityLink=Wa,B.EntityToggleModal=$a,B.EntityTypes=Ke,B.FetcherStatus=Z,B.InternalLinkItem=Xe,B.JsonCodeBlock=we,B.PermissionsWrapper=La,B.YamlCodeBlock=ve,B.useAxios=Ga,B.useDebouncedFilter=tl,B.useDeleteUrlBuilder=Ja,B.useErrors=Za,B.useExternalLinkCreator=Qa,B.useFetchUrlBuilder=Xa,B.useFetcher=el,B.useGatewayFeatureSupported=il,B.useHelpers=rl,B.useStringHelpers=nl,B.useTruncationDetector=ol,B.useValidators=al,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d056663c]{align-items:center;border-bottom:var(--07753575);display:var(--32d44ea8);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d056663c]{width:var(--5036b738)}.config-card-details-row .config-card-details-label label[data-v-d056663c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d056663c]{width:var(--5038fd13)}.config-card-details-row .config-card-details-value .truncated[data-v-d056663c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d056663c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d056663c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d056663c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d056663c]{margin-right:4px}.config-card-details-row[data-v-d056663c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d056663c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d056663c] .config-card-details-row{width:auto}.json-config #json-endpoint-codeblock .k-highlighted-code-block code,.json-config #json-codeblock .k-highlighted-code-block code{background-color:#232633}.json-config #json-endpoint-codeblock .k-code-block-secondary-actions,.json-config #json-codeblock .k-code-block-secondary-actions{top:12px!important}.json-content .k-highlighted-code-block{border-top-left-radius:0!important;border-top-right-radius:0!important}.json-endpoint{align-items:baseline;background-color:#232633;border-bottom:1px solid rgba(255,255,255,.24);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding-left:12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto}.json-endpoint code{direction:rtl;max-width:var(--954d3eca);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.yaml-config #yaml-codeblock .k-highlighted-code-block code{background-color:#232633}.yaml-config #yaml-codeblock .k-code-block-secondary-actions{top:12px!important}.config-card-prop-section-title[data-v-147a2f70]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-3def74fe]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-3def74fe]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-3def74fe] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-c4379fd4] [role=button]{display:inline}.content-wrapper[data-v-c4379fd4] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-590c2d76]{align-items:center;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-590c2d76]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-590c2d76]{float:right}.kong-ui-entity-base-table .actions-container[data-v-590c2d76] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-590c2d76]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-8cfadde3]{width:100%}.kong-ui-entity-filter-clear[data-v-8cfadde3]{cursor:pointer}.kong-ui-entity-filter[data-v-8cfadde3]{display:flex;position:relative}.kong-ui-entity-filter[data-v-8cfadde3] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-8cfadde3] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-8cfadde3]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-8cfadde3]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-8cfadde3]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-8cfadde3]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-8cfadde3]{color:#232633}.menu-item-expand-icon[data-v-8cfadde3]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-8cfadde3]{transform:rotate(180deg)}.menu-item-indicator[data-v-8cfadde3]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-8cfadde3]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-8cfadde3] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-8cfadde3] .k-input-wrapper{width:100%}.menu-item-body[data-v-8cfadde3] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-8cfadde3] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-8cfadde3]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-8cfadde3]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-8cfadde3]{padding:12px 20px 0}fieldset[data-v-76e52dbd]{margin:0;padding:0}.kong-ui-entity-form-section[data-v-76e52dbd]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-76e52dbd]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-76e52dbd]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-76e52dbd]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-76e52dbd]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-76e52dbd]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-76e52dbd]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-76e52dbd],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-76e52dbd],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-76e52dbd] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-76e52dbd]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-76e52dbd]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-76e52dbd]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-76e52dbd]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-be5bda4c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-be5bda4c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-be5bda4c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-be5bda4c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-be5bda4c]{margin-left:2px}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-d056663c]{align-items:center;border-bottom:var(--07753575);display:var(--32d44ea8);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-d056663c]{width:var(--5036b738)}.config-card-details-row .config-card-details-label label[data-v-d056663c]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-d056663c]{width:var(--5038fd13)}.config-card-details-row .config-card-details-value .truncated[data-v-d056663c]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-d056663c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-d056663c] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-d056663c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-d056663c]{margin-right:4px}.config-card-details-row[data-v-d056663c] .k-label{margin-bottom:0}.config-card-details-row[data-v-d056663c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-d056663c] .config-card-details-row{width:auto}.json-config #json-endpoint-codeblock .k-highlighted-code-block code,.json-config #json-codeblock .k-highlighted-code-block code{background-color:#232633}.json-config #json-endpoint-codeblock .k-code-block-secondary-actions,.json-config #json-codeblock .k-code-block-secondary-actions{top:12px!important}.json-content .k-highlighted-code-block{border-top-left-radius:0!important;border-top-right-radius:0!important}.json-endpoint{align-items:baseline;background-color:#232633;border-bottom:1px solid rgba(255,255,255,.24);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding-left:12px}.json-endpoint .k-badge{height:24px}.json-endpoint .k-code-block{flex:auto}.json-endpoint code{direction:rtl;max-width:var(--954d3eca);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.yaml-config #yaml-codeblock .k-highlighted-code-block code{background-color:#232633}.yaml-config #yaml-codeblock .k-code-block-secondary-actions{top:12px!important}.config-card-prop-section-title[data-v-147a2f70]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f40a683b]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f40a683b]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f40a683b]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f40a683b] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f40a683b]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-3def74fe]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-3def74fe]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-3def74fe] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-3def74fe] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-3def74fe] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-c4379fd4] [role=button]{display:inline}.content-wrapper[data-v-c4379fd4] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-590c2d76]{align-items:center;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-590c2d76]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-590c2d76]{float:right}.kong-ui-entity-base-table .actions-container[data-v-590c2d76] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table .actions-trigger[data-v-590c2d76]{background-color:#0000!important;border:none!important;cursor:pointer!important;font-weight:400!important}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-9a370e3a]{width:100%}.kong-ui-entity-filter-clear[data-v-9a370e3a]{cursor:pointer}.kong-ui-entity-filter[data-v-9a370e3a]{display:flex;position:relative}.kong-ui-entity-filter[data-v-9a370e3a] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-9a370e3a] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-9a370e3a]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-9a370e3a]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-9a370e3a]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-9a370e3a]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-9a370e3a]{color:#232633}.menu-item-expand-icon[data-v-9a370e3a]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-9a370e3a]{transform:rotate(180deg)}.menu-item-indicator[data-v-9a370e3a]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-9a370e3a]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-9a370e3a] .k-input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-9a370e3a] .k-input-wrapper{width:100%}.menu-item-body[data-v-9a370e3a] .k-select-input .k-input{font-size:12px}.menu-item-body[data-v-9a370e3a] .k-select-input .k-input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-9a370e3a]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-9a370e3a]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-9a370e3a]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-be5bda4c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-be5bda4c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-be5bda4c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-be5bda4c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-be5bda4c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-be5bda4c]{margin-left:2px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-shared",
3
- "version": "3.0.7",
3
+ "version": "3.0.8-pr.1329.5b76dd7b.0",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-shared.umd.js",
6
6
  "module": "./dist/entities-shared.es.js",