@kong-ui-public/entities-shared 3.34.2-pr.2726.86cbff533.0 → 3.34.2-pr.2726.b353195fa.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 qt, ref as M, computed as $, unref as A, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as N, openBlock as g, resolveDynamicComponent as De, normalizeClass as fe, withCtx as _, createElementBlock as T, createCommentVNode as P, createElementVNode as L, toDisplayString as O, Fragment as ue, renderList as ce, resolveComponent as D, createVNode as K, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
1
+ import { inject as qt, ref as N, computed as S, unref as _, toValue as ge, watch as be, toRef as zn, provide as Ht, defineComponent as z, createBlock as K, openBlock as g, resolveDynamicComponent as je, normalizeClass as fe, withCtx as w, createElementBlock as $, createCommentVNode as D, createElementVNode as L, toDisplayString as I, Fragment as ue, renderList as ce, resolveComponent as j, createVNode as R, createTextVNode as q, useCssVars as Vt, useId as Qn, useSlots as Ue, renderSlot as U, createSlots as ke, normalizeProps as Zn, guardReactiveProps as Xn, mergeProps as Yt, onMounted as it, onBeforeMount as rt, withModifiers as Re, Teleport as Wt, onUnmounted as ei, withDirectives as Ce, vShow as xe, withKeys as ti, warn as ni } from "vue";
2
2
  import mt from "axios";
3
3
  import { createI18n as ii, i18nTComponent as ri } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as ai, KExternalLink as oi, KButton as gt, KTruncate as li, KBadge as si } from "@kong/kongponents";
@@ -23,7 +23,7 @@ const qe = Object.values($e), vi = [
23
23
  "partial"
24
24
  /* Partial */
25
25
  ], bi = ["backend_cluster", "virtual_cluster", "listener", "produce_policy", "consume_policy", "cluster_policy", "listener_policy", "schema_registry", "static_key"], ki = ["auth_server", "auth_server_scopes", "auth_server_claims", "auth_server_clients"];
26
- var Y = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(Y || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
26
+ var W = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.CopyBadge = "copy-badge", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(W || {}), ae = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e.Policy = "policy", e))(ae || {});
27
27
  const vt = [
28
28
  "primary",
29
29
  "secondary"
@@ -286,11 +286,11 @@ function Mi(e, t, n, i = {
286
286
  }) {
287
287
  n || (n = "1000");
288
288
  const { axiosInstance: r } = at(e.axiosRequestConfig), { i18n: { t: o } } = He(), { debounce: a } = xi(), l = a(async (B) => {
289
- await x(B);
290
- }, 200), s = M(!1), c = M(""), d = M(""), u = M([]), p = M([]), m = M(void 0), y = $(() => {
291
- const B = `${e.apiBaseUrl}${A(t)}`;
289
+ await A(B);
290
+ }, 200), s = N(!1), c = N(""), d = N(""), u = N([]), p = N([]), m = N(void 0), y = S(() => {
291
+ const B = `${e.apiBaseUrl}${_(t)}`;
292
292
  return e.app === "konnect" ? B.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" ? B.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : "") : B;
293
- }), { isValidUuid: h } = zt(), k = async () => {
293
+ }), { isValidUuid: h } = zt(), b = async () => {
294
294
  try {
295
295
  s.value = !0;
296
296
  const { data: B } = await r.get(`${y.value}?size=${n}`);
@@ -300,51 +300,51 @@ function Mi(e, t, n, i = {
300
300
  } finally {
301
301
  s.value = !1;
302
302
  }
303
- }, C = M(""), x = async (B) => {
304
- var j, X, S;
305
- if (C.value !== B) {
306
- if (C.value = B ?? "", !B) {
303
+ }, k = N(""), A = async (B) => {
304
+ var P, ee, M;
305
+ if (k.value !== B) {
306
+ if (k.value = B ?? "", !B) {
307
307
  u.value = p.value;
308
308
  return;
309
309
  }
310
310
  if (m.value === void 0)
311
311
  try {
312
312
  if (s.value = !0, c.value = "", d.value = "", e.app === "konnect") {
313
- const w = `${y.value}/${B}`, { data: F } = await r.get(`${w}?size=${n}`);
314
- i.fetchedItemsKey in F ? u.value = F[i.fetchedItemsKey] : F != null && F[i.exactMatchKey ?? "id"] ? u.value = [F] : u.value = [];
313
+ const F = `${y.value}/${B}`, { data: x } = await r.get(`${F}?size=${n}`);
314
+ i.fetchedItemsKey in x ? u.value = x[i.fetchedItemsKey] : x != null && x[i.exactMatchKey ?? "id"] ? u.value = [x] : u.value = [];
315
315
  } else {
316
- const w = [];
317
- h(B) && i.searchKeys.includes("id") ? w.push((async () => {
316
+ const F = [];
317
+ h(B) && i.searchKeys.includes("id") ? F.push((async () => {
318
318
  const { data: v } = await r.get(`${y.value}/${B}`);
319
319
  return [v[i.fetchedItemsKey] ?? v];
320
- })()) : w.push(
320
+ })()) : F.push(
321
321
  ...i.searchKeys.filter((v) => v !== "id").map(async (v) => {
322
- const { data: b } = await r.get(`${y.value}?${v}=${B}`);
323
- return b[i.fetchedItemsKey];
322
+ const { data: C } = await r.get(`${y.value}?${v}=${B}`);
323
+ return C[i.fetchedItemsKey];
324
324
  })
325
325
  );
326
- const F = await Promise.all(w), f = /* @__PURE__ */ new Set();
327
- u.value = [], (j = F == null ? void 0 : F.forEach) == null || j.call(F, (v) => {
328
- var b;
329
- (b = v == null ? void 0 : v.forEach) == null || b.call(v, (V) => {
330
- f.has(V.id) || (f.add(V.id), u.value.push(V));
326
+ const x = await Promise.all(F), f = /* @__PURE__ */ new Set();
327
+ u.value = [], (P = x == null ? void 0 : x.forEach) == null || P.call(x, (v) => {
328
+ var C;
329
+ (C = v == null ? void 0 : v.forEach) == null || C.call(v, (Y) => {
330
+ f.has(Y.id) || (f.add(Y.id), u.value.push(Y));
331
331
  });
332
332
  });
333
333
  }
334
- } catch (w) {
335
- ((X = w == null ? void 0 : w.response) == null ? void 0 : X.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
334
+ } catch (F) {
335
+ ((ee = F == null ? void 0 : F.response) == null ? void 0 : ee.status) === 404 ? d.value = o("debouncedFilter.errors.invalid") : (u.value = [], c.value = o("debouncedFilter.errors.fetch"));
336
336
  } finally {
337
337
  s.value = !1;
338
338
  }
339
339
  else
340
- s.value = !0, d.value = "", u.value = (S = m.value) == null ? void 0 : S.filter((w) => {
340
+ s.value = !0, d.value = "", u.value = (M = m.value) == null ? void 0 : M.filter((F) => {
341
341
  var f;
342
- let F = !1;
342
+ let x = !1;
343
343
  for (const v of i.searchKeys) {
344
- const b = typeof w[v] == "string" ? (f = w[v]) == null ? void 0 : f.toLowerCase() : w[v];
345
- b != null && b.includes(B.toLowerCase()) && (F = !0);
344
+ const C = typeof F[v] == "string" ? (f = F[v]) == null ? void 0 : f.toLowerCase() : F[v];
345
+ C != null && C.includes(B.toLowerCase()) && (x = !0);
346
346
  }
347
- return F;
347
+ return x;
348
348
  }), (!u.value || !u.value.length) && (d.value = o("debouncedFilter.errors.invalid")), s.value = !1;
349
349
  }
350
350
  };
@@ -354,17 +354,17 @@ function Mi(e, t, n, i = {
354
354
  validationError: d,
355
355
  results: u,
356
356
  allRecords: m,
357
- loadItems: k,
357
+ loadItems: b,
358
358
  debouncedQueryChange: l
359
359
  };
360
360
  }
361
- function Pi(e, t) {
362
- const n = A(t), i = $(
361
+ function Di(e, t) {
362
+ const n = _(t), i = S(
363
363
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${n}`) : new URL(n)
364
364
  );
365
365
  return i.value.search = "", (r) => `${i.value.href}/${r}`;
366
366
  }
367
- function ji() {
367
+ function Pi() {
368
368
  const { i18n: { t: e } } = He();
369
369
  return {
370
370
  getErrorFieldsFromError: (i) => {
@@ -436,7 +436,7 @@ function ji() {
436
436
  }
437
437
  };
438
438
  }
439
- function Di(e) {
439
+ function ji(e) {
440
440
  const t = window.location.origin, n = t.endsWith("/") ? t : `${t}/`;
441
441
  try {
442
442
  const i = e.join("/"), r = `${n}${i}`, o = e.some((l) => l.trim() === "");
@@ -448,10 +448,10 @@ function Di(e) {
448
448
  }
449
449
  }
450
450
  function Qt(e, t) {
451
- const n = $(() => {
451
+ const n = S(() => {
452
452
  const r = ge(e);
453
453
  return r.app === "konnect" || !!r.isExactMatch;
454
- }), i = $(() => {
454
+ }), i = S(() => {
455
455
  const r = ge(t);
456
456
  return r.startsWith("/") ? new URL(`${window.location.origin}${r}`) : new URL(r);
457
457
  });
@@ -469,7 +469,7 @@ function Qt(e, t) {
469
469
  }
470
470
  const bt = /* @__PURE__ */ new Map();
471
471
  function Ui(e, t, n) {
472
- const i = M(!0), r = ge(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = M({
472
+ const i = N(!0), r = ge(e), { axiosInstance: o } = at(r.axiosRequestConfig), a = Qt(e, t), l = N({
473
473
  status: me.Idle
474
474
  }), s = async (u) => {
475
475
  var m;
@@ -481,15 +481,15 @@ function Ui(e, t, n) {
481
481
  const h = await o.get(y);
482
482
  if (h.status >= 400)
483
483
  throw h;
484
- const k = h.data, C = p && p.replace(/[^\w-_]/gi, "");
485
- let x;
486
- k[C] ? x = Array.isArray(k[C]) ? k[C] : [k[C]] : Array.isArray(k) ? x = k : x = Object.keys(k).length ? [k] : [];
484
+ const b = h.data, k = p && p.replace(/[^\w-_]/gi, "");
485
+ let A;
486
+ b[k] ? A = Array.isArray(b[k]) ? b[k] : [b[k]] : Array.isArray(b) ? A = b : A = Object.keys(b).length ? [b] : [];
487
487
  const B = {
488
- data: x,
489
- total: x.length,
490
- ...k.offset ? {
488
+ data: A,
489
+ total: A.length,
490
+ ...b.offset ? {
491
491
  pagination: {
492
- offset: k.offset
492
+ offset: b.offset
493
493
  }
494
494
  } : null
495
495
  };
@@ -521,9 +521,9 @@ function Ui(e, t, n) {
521
521
  function Zt(e) {
522
522
  if (e) {
523
523
  let t = bt.get(e);
524
- return t || (t = M(1), bt.set(e, t)), t;
524
+ return t || (t = N(1), bt.set(e, t)), t;
525
525
  }
526
- return M(1);
526
+ return N(1);
527
527
  }
528
528
  function qi() {
529
529
  const e = (i, r = "_") => i ? i.split(r).map((o) => o.toLowerCase() === "id" ? o.toUpperCase() : o.charAt(0).toUpperCase() + o.substring(1)).join(" ") : "", t = /(?:^|[\s-:'"])\w/g;
@@ -588,11 +588,11 @@ function Gi(e) {
588
588
  return !(a && _t(r, a, "<") || l && _t(r, l, ">"));
589
589
  }
590
590
  function zi(e) {
591
- const t = M(0), n = M(0), i = M(!1);
591
+ const t = N(0), n = N(0), i = N(!1);
592
592
  return be(e, (o) => {
593
593
  o && !i.value && (t.value = o.offsetWidth, n.value = o.scrollWidth, i.value = !0);
594
594
  }), {
595
- isTruncated: $(() => t.value < n.value)
595
+ isTruncated: S(() => t.value < n.value)
596
596
  };
597
597
  }
598
598
  function Qi() {
@@ -610,7 +610,7 @@ const Qe = Symbol("schema"), Zi = (e) => {
610
610
  };
611
611
  function er(e) {
612
612
  let t = "";
613
- const n = M(!1), i = M(null), r = $(() => {
613
+ const n = N(!1), i = N(null), r = S(() => {
614
614
  let a;
615
615
  return n.value ? a = !0 : i.value ? a = i.value.hasData || e && ge(e) : a = !1, !a;
616
616
  });
@@ -623,12 +623,12 @@ function er(e) {
623
623
  }
624
624
  };
625
625
  }
626
- const W = {
626
+ const J = {
627
627
  useAxios: at,
628
628
  useDebouncedFilter: Mi,
629
- useDeleteUrlBuilder: Pi,
630
- useErrors: ji,
631
- useExternalLinkCreator: Di,
629
+ useDeleteUrlBuilder: Di,
630
+ useErrors: Pi,
631
+ useExternalLinkCreator: ji,
632
632
  useFetcher: Ui,
633
633
  useFetcherCacheKey: Zt,
634
634
  useFetchUrlBuilder: Qt,
@@ -661,25 +661,25 @@ const W = {
661
661
  }
662
662
  },
663
663
  setup(e) {
664
- const t = e, { i18n: { t: n } } = W.useI18n(), { convertKeyToTitle: i } = W.useStringHelpers(), r = $(() => t.item.key ?? "json-array-item"), o = $(() => t.item.value ?? t.item), a = $(() => {
664
+ const t = e, { i18n: { t: n } } = J.useI18n(), { convertKeyToTitle: i } = J.useStringHelpers(), r = S(() => t.item.key ?? "json-array-item"), o = S(() => t.item.value ?? t.item), a = S(() => {
665
665
  const s = JSON.parse(JSON.stringify(o.value));
666
666
  return t.isArrayItem && delete s.name, s;
667
- }), l = $(() => {
667
+ }), l = S(() => {
668
668
  var s;
669
669
  return t.isArrayItem ? (s = o.value) != null && s.name ? i(o.value.name, "_") : n("baseConfigCard.general.entryTitle", { index: t.index }) : "";
670
670
  });
671
- return (s, c) => (g(), N(De(e.isArrayItem ? "fieldset" : "div"), {
671
+ return (s, c) => (g(), K(je(e.isArrayItem ? "fieldset" : "div"), {
672
672
  class: fe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
673
673
  }, {
674
- default: _(() => [
675
- e.isArrayItem ? (g(), T("legend", tr, [
676
- L("b", null, O(l.value), 1)
677
- ])) : P("", !0),
678
- (g(!0), T(ue, null, ce(Object.keys(a.value), (d, u) => (g(), N(nn, {
674
+ default: w(() => [
675
+ e.isArrayItem ? (g(), $("legend", tr, [
676
+ L("b", null, I(l.value), 1)
677
+ ])) : D("", !0),
678
+ (g(!0), $(ue, null, ce(Object.keys(a.value), (d, u) => (g(), K(nn, {
679
679
  key: `${r.value}-property-${u}`,
680
680
  item: {
681
681
  key: d,
682
- label: A(i)(d),
682
+ label: _(i)(d),
683
683
  value: a.value[d]
684
684
  }
685
685
  }, null, 8, ["item"]))), 128))
@@ -702,17 +702,17 @@ const W = {
702
702
  },
703
703
  emits: ["navigation-click"],
704
704
  setup(e) {
705
- const { i18n: { t } } = W.useI18n();
705
+ const { i18n: { t } } = J.useI18n();
706
706
  return (n, i) => {
707
- const r = D("KButton");
708
- return g(), T("div", null, [
709
- K(r, {
707
+ const r = j("KButton");
708
+ return g(), $("div", null, [
709
+ R(r, {
710
710
  appearance: "tertiary",
711
711
  class: "navigation-button",
712
712
  onClick: i[0] || (i[0] = (o) => n.$emit("navigation-click", e.item))
713
713
  }, {
714
- default: _(() => [
715
- q(O(e.item.value || A(t)("baseConfigCard.commonFields.link")), 1)
714
+ default: w(() => [
715
+ q(I(e.item.value || _(t)("baseConfigCard.commonFields.link")), 1)
716
716
  ]),
717
717
  _: 1
718
718
  })
@@ -728,14 +728,14 @@ const W = {
728
728
  }
729
729
  },
730
730
  setup(e) {
731
- const { i18n: { t } } = W.useI18n();
731
+ const { i18n: { t } } = J.useI18n();
732
732
  return (n, i) => {
733
- const r = D("KBadge");
734
- return g(), N(r, {
733
+ const r = j("KBadge");
734
+ return g(), K(r, {
735
735
  appearance: e.status ? "success" : "neutral"
736
736
  }, {
737
- default: _(() => [
738
- q(O(e.status ? A(t)("baseConfigCard.statusBadge.enabledLabel") : A(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
737
+ default: w(() => [
738
+ q(I(e.status ? _(t)("baseConfigCard.statusBadge.enabledLabel") : _(t)("baseConfigCard.statusBadge.disabledLabel")), 1)
739
739
  ]),
740
740
  _: 1
741
741
  }, 8, ["appearance"]);
@@ -785,18 +785,18 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
785
785
  },
786
786
  emits: ["navigation-click"],
787
787
  setup(e, { emit: t }) {
788
- Vt((j) => ({
789
- v0b2cd434: p.value ? "none" : `solid ${A(ur)} ${A(lr)}`,
788
+ Vt((P) => ({
789
+ v0b2cd434: p.value ? "none" : `solid ${_(ur)} ${_(lr)}`,
790
790
  bb02ad32: u.value && c.value ? "block" : "flex",
791
791
  d92de3ce: u.value && c.value ? "100%" : n.slim ? "50%" : "25%",
792
792
  d9295818: u.value && c.value ? "100%" : n.slim ? "50%" : "75%"
793
793
  }));
794
- const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = W.useI18n(), c = $(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = $(() => !!(n.item.tooltip || o["label-tooltip"])), u = $(() => n.item.type === Y.Json || n.item.type === Y.JsonArray), p = $(() => n.item.type === Y.JsonArray), m = W.useSubSchema(n.item.key), y = $(() => {
795
- var j;
796
- return n.item.type ? n.item.type : (j = m == null ? void 0 : m.value) != null && j.encrypted ? Y.Redacted : void 0;
797
- }), h = $(() => {
794
+ const n = e, i = t, r = Qn(), o = Ue(), { i18n: { t: a, formatIsoDate: l, formatUnixTimeStamp: s } } = J.useI18n(), c = S(() => n.item.value !== void 0 && n.item.value !== null && n.item.value !== ""), d = S(() => !!(n.item.tooltip || o["label-tooltip"])), u = S(() => n.item.type === W.Json || n.item.type === W.JsonArray), p = S(() => n.item.type === W.JsonArray), m = J.useSubSchema(n.item.key), y = S(() => {
795
+ var P;
796
+ return n.item.type ? n.item.type : (P = m == null ? void 0 : m.value) != null && P.encrypted ? W.Redacted : void 0;
797
+ }), h = S(() => {
798
798
  switch (y.value) {
799
- case Y.ID:
799
+ case W.ID:
800
800
  return {
801
801
  tag: "KCopy",
802
802
  attrs: {
@@ -805,7 +805,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
805
805
  text: n.item.value
806
806
  }
807
807
  };
808
- case Y.IdArray:
808
+ case W.IdArray:
809
809
  return {
810
810
  tag: "div",
811
811
  additionalComponent: "KCopy",
@@ -813,7 +813,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
813
813
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
814
814
  }
815
815
  };
816
- case Y.Redacted:
816
+ case W.Redacted:
817
817
  return {
818
818
  tag: "KCopy",
819
819
  attrs: {
@@ -823,7 +823,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
823
823
  text: n.item.value
824
824
  }
825
825
  };
826
- case Y.RedactedArray:
826
+ case W.RedactedArray:
827
827
  return {
828
828
  tag: "div",
829
829
  additionalComponent: "KCopy",
@@ -832,7 +832,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
832
832
  "copy-tooltip": a("baseConfigCard.copy.tooltip", { label: n.item.label })
833
833
  }
834
834
  };
835
- case Y.Date:
835
+ case W.Date:
836
836
  return {
837
837
  tag: "div",
838
838
  attrs: {
@@ -840,7 +840,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
840
840
  },
841
841
  text: isNaN(Number(n.item.value)) ? l(n.item.value) : s(n.item.value)
842
842
  };
843
- case Y.BadgeStatus:
843
+ case W.BadgeStatus:
844
844
  return {
845
845
  tag: "StatusBadge",
846
846
  attrs: {
@@ -848,12 +848,12 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
848
848
  status: n.item.value
849
849
  }
850
850
  };
851
- case Y.BadgeTag:
851
+ case W.BadgeTag:
852
852
  return {
853
853
  tag: "div",
854
854
  additionalComponent: "KBadge"
855
855
  };
856
- case Y.CopyBadge:
856
+ case W.CopyBadge:
857
857
  return {
858
858
  tag: "div",
859
859
  additionalComponent: "KCopy",
@@ -864,23 +864,23 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
864
864
  text: n.item.value
865
865
  }
866
866
  };
867
- case Y.BadgeMethod:
867
+ case W.BadgeMethod:
868
868
  return {
869
869
  tag: "div",
870
870
  additionalComponent: "KMethodBadge"
871
871
  };
872
- case Y.LinkInternal:
872
+ case W.LinkInternal:
873
873
  return {
874
874
  tag: "InternalLinkItem",
875
875
  attrs: {
876
876
  "data-testid": `${n.item.key}-internal-link`,
877
877
  item: n.item,
878
- onNavigationClick: (j) => {
879
- i("navigation-click", j);
878
+ onNavigationClick: (P) => {
879
+ i("navigation-click", P);
880
880
  }
881
881
  }
882
882
  };
883
- case Y.LinkExternal:
883
+ case W.LinkExternal:
884
884
  return {
885
885
  tag: "KExternalLink",
886
886
  attrs: {
@@ -889,7 +889,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
889
889
  },
890
890
  text: n.item.value
891
891
  };
892
- case Y.Json:
892
+ case W.Json:
893
893
  return {
894
894
  tag: "JsonCardItem",
895
895
  attrs: {
@@ -897,7 +897,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
897
897
  item: n.item
898
898
  }
899
899
  };
900
- case Y.JsonArray:
900
+ case W.JsonArray:
901
901
  return {
902
902
  tag: "div",
903
903
  additionalComponent: "JsonCardItem",
@@ -926,26 +926,26 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
926
926
  text: n.item.value
927
927
  };
928
928
  }
929
- }), k = M(), C = M(), { isTruncated: x } = W.useTruncationDetector(k), { isTruncated: B } = W.useTruncationDetector(C);
930
- return (j, X) => {
931
- const S = D("KTooltip"), w = D("KLabel"), F = D("KBadge"), f = D("KCopy");
932
- return g(), T("div", gr, [
929
+ }), b = N(), k = N(), { isTruncated: A } = J.useTruncationDetector(b), { isTruncated: B } = J.useTruncationDetector(k);
930
+ return (P, ee) => {
931
+ const M = j("KTooltip"), F = j("KLabel"), x = j("KBadge"), f = j("KCopy");
932
+ return g(), $("div", gr, [
933
933
  L("div", {
934
934
  class: "config-card-details-label",
935
935
  "data-testid": `${e.item.key}-label`
936
936
  }, [
937
- U(j.$slots, "label", { item: e.item }, () => [
938
- K(w, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
939
- default: _(() => [
940
- K(S, {
941
- text: A(x) ? e.item.label : ""
937
+ U(P.$slots, "label", { item: e.item }, () => [
938
+ R(F, { "tooltip-attributes": { maxWidth: "500px" } }, ke({
939
+ default: w(() => [
940
+ R(M, {
941
+ text: _(A) ? e.item.label : ""
942
942
  }, {
943
- default: _(() => [
943
+ default: w(() => [
944
944
  L("span", {
945
945
  ref_key: "labelContent",
946
- ref: k,
946
+ ref: b,
947
947
  class: "label-content"
948
- }, O(e.item.label), 513)
948
+ }, I(e.item.label), 513)
949
949
  ]),
950
950
  _: 1
951
951
  }, 8, ["text"])
@@ -954,12 +954,12 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
954
954
  }, [
955
955
  d.value ? {
956
956
  name: "tooltip",
957
- fn: _(() => [
957
+ fn: w(() => [
958
958
  L("div", {
959
959
  "data-testid": `${e.item.key}-label-tooltip`
960
960
  }, [
961
- U(j.$slots, "label-tooltip", {}, () => [
962
- q(O(e.item.tooltip), 1)
961
+ U(P.$slots, "label-tooltip", {}, () => [
962
+ q(I(e.item.tooltip), 1)
963
963
  ], !0)
964
964
  ], 8, yr)
965
965
  ]),
@@ -972,81 +972,81 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
972
972
  class: "config-card-details-value",
973
973
  "data-testid": `${e.item.key}-property-value`
974
974
  }, [
975
- U(j.$slots, e.item.key, {
975
+ U(P.$slots, e.item.key, {
976
976
  rowValue: e.item.value
977
977
  }, () => [
978
- c.value ? (g(), T("div", kr, [
979
- (g(), N(De(h.value.tag), Zn(Xn(h.value.attrs)), {
980
- default: _(() => [
981
- h.value.additionalComponent === "KBadge" ? (g(), T("div", {
978
+ c.value ? (g(), $("div", kr, [
979
+ (g(), K(je(h.value.tag), Zn(Xn(h.value.attrs)), {
980
+ default: w(() => [
981
+ h.value.additionalComponent === "KBadge" ? (g(), $("div", {
982
982
  key: 0,
983
983
  "data-testid": `${e.item.key}-badge-tags`
984
984
  }, [
985
- (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(F, {
986
- key: `${e.item.key}-badge-tag-${b}`,
985
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(x, {
986
+ key: `${e.item.key}-badge-tag-${C}`,
987
987
  class: "config-badge",
988
- "data-testid": `${e.item.key}-badge-tag-${b}`,
988
+ "data-testid": `${e.item.key}-badge-tag-${C}`,
989
989
  tooltip: v,
990
990
  "truncation-tooltip": ""
991
991
  }, {
992
- default: _(() => [
993
- q(O(v), 1)
992
+ default: w(() => [
993
+ q(I(v), 1)
994
994
  ]),
995
995
  _: 2
996
996
  }, 1032, ["data-testid", "tooltip"]))), 128))
997
- ], 8, Cr)) : h.value.additionalComponent === "KCopy" ? (g(), T("div", {
997
+ ], 8, Cr)) : h.value.additionalComponent === "KCopy" ? (g(), $("div", {
998
998
  key: 1,
999
999
  class: "copy-uuid-array",
1000
1000
  "data-testid": `${e.item.key}-copy-uuid-array`
1001
1001
  }, [
1002
- (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(f, Yt({ ref_for: !0 }, h.value.childAttrs, {
1003
- key: `${e.item.key}-copy-uuid-${b}`,
1004
- "data-testid": `${e.item.key}-copy-uuid-${b}`,
1002
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(f, Yt({ ref_for: !0 }, h.value.childAttrs, {
1003
+ key: `${e.item.key}-copy-uuid-${C}`,
1004
+ "data-testid": `${e.item.key}-copy-uuid-${C}`,
1005
1005
  text: v
1006
1006
  }), null, 16, ["data-testid", "text"]))), 128))
1007
- ], 8, xr)) : h.value.additionalComponent === "KMethodBadge" ? (g(), T("div", {
1007
+ ], 8, xr)) : h.value.additionalComponent === "KMethodBadge" ? (g(), $("div", {
1008
1008
  key: 2,
1009
1009
  class: "method-badge-array",
1010
1010
  "data-testid": `${e.item.key}-badge-methods`
1011
1011
  }, [
1012
- (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(F, {
1013
- key: `${e.item.key}-badge-method-${b}`,
1014
- appearance: Object.values(A(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1012
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(x, {
1013
+ key: `${e.item.key}-badge-method-${C}`,
1014
+ appearance: Object.values(_(ai)).includes(v.toLowerCase()) ? v.toLowerCase() : "custom",
1015
1015
  class: "config-badge",
1016
- "data-testid": `${e.item.key}-badge-method-${b}`
1016
+ "data-testid": `${e.item.key}-badge-method-${C}`
1017
1017
  }, {
1018
- default: _(() => [
1019
- q(O(v), 1)
1018
+ default: w(() => [
1019
+ q(I(v), 1)
1020
1020
  ]),
1021
1021
  _: 2
1022
1022
  }, 1032, ["appearance", "data-testid"]))), 128))
1023
- ], 8, Ar)) : h.value.additionalComponent === "JsonCardItem" ? (g(), T("div", {
1023
+ ], 8, Ar)) : h.value.additionalComponent === "JsonCardItem" ? (g(), $("div", {
1024
1024
  key: 3,
1025
1025
  "data-testid": `${n.item.key}-json-array-content`
1026
1026
  }, [
1027
- (g(!0), T(ue, null, ce(e.item.value, (v, b) => (g(), N(tn, {
1028
- key: `json-array-item-${b}`,
1029
- index: b,
1027
+ (g(!0), $(ue, null, ce(e.item.value, (v, C) => (g(), K(tn, {
1028
+ key: `json-array-item-${C}`,
1029
+ index: C,
1030
1030
  "is-array-item": "",
1031
1031
  item: v
1032
1032
  }, null, 8, ["index", "item"]))), 128))
1033
- ], 8, _r)) : (g(), N(S, {
1033
+ ], 8, _r)) : (g(), K(M, {
1034
1034
  key: 4,
1035
- text: A(B) ? e.item.value : ""
1035
+ text: _(B) ? e.item.value : ""
1036
1036
  }, {
1037
- default: _(() => [
1037
+ default: w(() => [
1038
1038
  L("span", {
1039
1039
  ref_key: "textContent",
1040
- ref: C,
1040
+ ref: k,
1041
1041
  class: fe(["attrs-data-text", { truncated: e.truncated }])
1042
- }, O(h.value.text), 3)
1042
+ }, I(h.value.text), 3)
1043
1043
  ]),
1044
1044
  _: 1
1045
1045
  }, 8, ["text"]))
1046
1046
  ]),
1047
1047
  _: 1
1048
1048
  }, 16))
1049
- ])) : (g(), T("div", {
1049
+ ])) : (g(), $("div", {
1050
1050
  key: 0,
1051
1051
  "data-testid": `${e.item.key}-no-value`
1052
1052
  }, " – ", 8, br))
@@ -1089,7 +1089,7 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
1089
1089
  Vt((r) => ({
1090
1090
  v58418ff6: `${i.value}ch`
1091
1091
  }));
1092
- const t = e, n = $(() => t.entityRecord), i = $(() => {
1092
+ const t = e, n = S(() => t.entityRecord), i = S(() => {
1093
1093
  var a;
1094
1094
  if (!t.fetcherUrl)
1095
1095
  return 0;
@@ -1097,34 +1097,34 @@ const gr = { class: "config-card-details-row" }, hr = ["data-testid"], yr = ["da
1097
1097
  return r.length < 2 ? 0 : 41 + (t.requestMethod === "post" ? r[r.length - 1] : r[r.length - 2]).length;
1098
1098
  });
1099
1099
  return (r, o) => {
1100
- const a = D("KBadge"), l = D("KCodeBlock");
1101
- return g(), T("div", $r, [
1102
- t.fetcherUrl ? (g(), T("div", Tr, [
1103
- K(a, {
1100
+ const a = j("KBadge"), l = j("KCodeBlock");
1101
+ return g(), $("div", $r, [
1102
+ t.fetcherUrl ? (g(), $("div", Tr, [
1103
+ R(a, {
1104
1104
  appearance: t.requestMethod
1105
1105
  }, {
1106
- default: _(() => [
1107
- q(O(t.requestMethod), 1)
1106
+ default: w(() => [
1107
+ q(I(t.requestMethod), 1)
1108
1108
  ]),
1109
1109
  _: 1
1110
1110
  }, 8, ["appearance"]),
1111
- K(l, {
1111
+ R(l, {
1112
1112
  id: "json-endpoint-codeblock",
1113
1113
  code: t.fetcherUrl,
1114
1114
  language: "plaintext",
1115
1115
  "single-line": "",
1116
1116
  theme: "dark"
1117
1117
  }, null, 8, ["code"])
1118
- ])) : P("", !0),
1119
- t.entityRecord ? (g(), N(l, {
1118
+ ])) : D("", !0),
1119
+ t.entityRecord ? (g(), K(l, {
1120
1120
  key: 1,
1121
1121
  id: "json-codeblock",
1122
1122
  class: fe({ "json-content": t.fetcherUrl }),
1123
1123
  code: JSON.stringify(n.value, null, 2),
1124
1124
  language: "json",
1125
1125
  theme: "dark",
1126
- onCodeBlockRender: A(Te)
1127
- }, null, 8, ["class", "code", "onCodeBlockRender"])) : P("", !0)
1126
+ onCodeBlockRender: _(Te)
1127
+ }, null, 8, ["class", "code", "onCodeBlockRender"])) : D("", !0)
1128
1128
  ]);
1129
1129
  };
1130
1130
  }
@@ -1155,13 +1155,13 @@ function Or(e, t) {
1155
1155
  function Br(e) {
1156
1156
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1157
1157
  }
1158
- var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, Pr = Fr, ee = {
1158
+ var Lr = an, Rr = Er, Kr = Ir, Nr = Or, Mr = Br, Dr = Fr, X = {
1159
1159
  isNothing: Lr,
1160
1160
  isObject: Rr,
1161
1161
  toArray: Kr,
1162
1162
  repeat: Nr,
1163
1163
  isNegativeZero: Mr,
1164
- extend: Pr
1164
+ extend: Dr
1165
1165
  };
1166
1166
  function on(e, t) {
1167
1167
  var n = "", i = e.reason || "(unknown reason)";
@@ -1187,9 +1187,9 @@ function We(e, t, n, i, r) {
1187
1187
  };
1188
1188
  }
1189
1189
  function Je(e, t) {
1190
- return ee.repeat(" ", t - e.length) + e;
1190
+ return X.repeat(" ", t - e.length) + e;
1191
1191
  }
1192
- function jr(e, t) {
1192
+ function Pr(e, t) {
1193
1193
  if (t = Object.create(t || null), !e.buffer) return null;
1194
1194
  t.maxLength || (t.maxLength = 79), typeof t.indent != "number" && (t.indent = 1), typeof t.linesBefore != "number" && (t.linesBefore = 3), typeof t.linesAfter != "number" && (t.linesAfter = 2);
1195
1195
  for (var n = /\r?\n|\r|\0/g, i = [0], r = [], o, a = -1; o = n.exec(e.buffer); )
@@ -1203,10 +1203,10 @@ function jr(e, t) {
1203
1203
  r[a - s],
1204
1204
  e.position - (i[a] - i[a - s]),
1205
1205
  u
1206
- ), l = ee.repeat(" ", t.indent) + Je((e.line - s + 1).toString(), d) + " | " + c.str + `
1206
+ ), l = X.repeat(" ", t.indent) + Je((e.line - s + 1).toString(), d) + " | " + c.str + `
1207
1207
  ` + l;
1208
- for (c = We(e.buffer, i[a], r[a], e.position, u), l += ee.repeat(" ", t.indent) + Je((e.line + 1).toString(), d) + " | " + c.str + `
1209
- `, l += ee.repeat("-", t.indent + d + 3 + c.pos) + `^
1208
+ for (c = We(e.buffer, i[a], r[a], e.position, u), l += X.repeat(" ", t.indent) + Je((e.line + 1).toString(), d) + " | " + c.str + `
1209
+ `, l += X.repeat("-", t.indent + d + 3 + c.pos) + `^
1210
1210
  `, s = 1; s <= t.linesAfter && !(a + s >= r.length); s++)
1211
1211
  c = We(
1212
1212
  e.buffer,
@@ -1214,11 +1214,11 @@ function jr(e, t) {
1214
1214
  r[a + s],
1215
1215
  e.position - (i[a] - i[a + s]),
1216
1216
  u
1217
- ), l += ee.repeat(" ", t.indent) + Je((e.line + s + 1).toString(), d) + " | " + c.str + `
1217
+ ), l += X.repeat(" ", t.indent) + Je((e.line + s + 1).toString(), d) + " | " + c.str + `
1218
1218
  `;
1219
1219
  return l.replace(/\n$/, "");
1220
1220
  }
1221
- var Dr = jr, Ur = [
1221
+ var jr = Pr, Ur = [
1222
1222
  "kind",
1223
1223
  "multi",
1224
1224
  "resolve",
@@ -1456,7 +1456,7 @@ function ia(e) {
1456
1456
  return n * parseInt(t, 10);
1457
1457
  }
1458
1458
  function ra(e) {
1459
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ee.isNegativeZero(e);
1459
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !X.isNegativeZero(e);
1460
1460
  }
1461
1461
  var mn = new ie("tag:yaml.org,2002:int", {
1462
1462
  kind: "scalar",
@@ -1528,12 +1528,12 @@ function ca(e, t) {
1528
1528
  case "camelcase":
1529
1529
  return "-.Inf";
1530
1530
  }
1531
- else if (ee.isNegativeZero(e))
1531
+ else if (X.isNegativeZero(e))
1532
1532
  return "-0.0";
1533
1533
  return n = e.toString(10), sa.test(n) ? n.replace("e", ".e") : n;
1534
1534
  }
1535
1535
  function ua(e) {
1536
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ee.isNegativeZero(e));
1536
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || X.isNegativeZero(e));
1537
1537
  }
1538
1538
  var gn = new ie("tag:yaml.org,2002:float", {
1539
1539
  kind: "scalar",
@@ -1748,9 +1748,9 @@ function Bn(e, t) {
1748
1748
  line: e.line,
1749
1749
  column: e.position - e.lineStart
1750
1750
  };
1751
- return n.snippet = Dr(n), new oe(t, n);
1751
+ return n.snippet = jr(n), new oe(t, n);
1752
1752
  }
1753
- function I(e, t) {
1753
+ function T(e, t) {
1754
1754
  throw Bn(e, t);
1755
1755
  }
1756
1756
  function Me(e, t) {
@@ -1759,15 +1759,15 @@ function Me(e, t) {
1759
1759
  var It = {
1760
1760
  YAML: function(t, n, i) {
1761
1761
  var r, o, a;
1762
- t.version !== null && I(t, "duplication of %YAML directive"), i.length !== 1 && I(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && I(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && I(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
1762
+ t.version !== null && T(t, "duplication of %YAML directive"), i.length !== 1 && T(t, "YAML directive accepts exactly one argument"), r = /^([0-9]+)\.([0-9]+)$/.exec(i[0]), r === null && T(t, "ill-formed argument of the YAML directive"), o = parseInt(r[1], 10), a = parseInt(r[2], 10), o !== 1 && T(t, "unacceptable YAML version of the document"), t.version = i[0], t.checkLineBreaks = a < 2, a !== 1 && a !== 2 && Me(t, "unsupported YAML version of the document");
1763
1763
  },
1764
1764
  TAG: function(t, n, i) {
1765
1765
  var r, o;
1766
- i.length !== 2 && I(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Tn.test(r) || I(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && I(t, 'there is a previously declared suffix for "' + r + '" tag handle'), En.test(o) || I(t, "ill-formed tag prefix (second argument) of the TAG directive");
1766
+ i.length !== 2 && T(t, "TAG directive accepts exactly two arguments"), r = i[0], o = i[1], Tn.test(r) || T(t, "ill-formed tag handle (first argument) of the TAG directive"), ye.call(t.tagMap, r) && T(t, 'there is a previously declared suffix for "' + r + '" tag handle'), En.test(o) || T(t, "ill-formed tag prefix (second argument) of the TAG directive");
1767
1767
  try {
1768
1768
  o = decodeURIComponent(o);
1769
1769
  } catch {
1770
- I(t, "tag prefix is malformed: " + o);
1770
+ T(t, "tag prefix is malformed: " + o);
1771
1771
  }
1772
1772
  t.tagMap[r] = o;
1773
1773
  }
@@ -1777,21 +1777,21 @@ function he(e, t, n, i) {
1777
1777
  if (t < n) {
1778
1778
  if (l = e.input.slice(t, n), i)
1779
1779
  for (r = 0, o = l.length; r < o; r += 1)
1780
- a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || I(e, "expected valid JSON character");
1781
- else Ia.test(l) && I(e, "the stream contains non-printable characters");
1780
+ a = l.charCodeAt(r), a === 9 || 32 <= a && a <= 1114111 || T(e, "expected valid JSON character");
1781
+ else Ia.test(l) && T(e, "the stream contains non-printable characters");
1782
1782
  e.result += l;
1783
1783
  }
1784
1784
  }
1785
1785
  function Ft(e, t, n, i) {
1786
1786
  var r, o, a, l;
1787
- for (ee.isObject(n) || I(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1787
+ for (X.isObject(n) || T(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(n), a = 0, l = r.length; a < l; a += 1)
1788
1788
  o = r[a], ye.call(t, o) || (In(t, o, n[o]), i[o] = !0);
1789
1789
  }
1790
1790
  function Se(e, t, n, i, r, o, a, l, s) {
1791
1791
  var c, d;
1792
1792
  if (Array.isArray(r))
1793
1793
  for (r = Array.prototype.slice.call(r), c = 0, d = r.length; c < d; c += 1)
1794
- Array.isArray(r[c]) && I(e, "nested arrays are not supported inside keys"), typeof r == "object" && Tt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1794
+ Array.isArray(r[c]) && T(e, "nested arrays are not supported inside keys"), typeof r == "object" && Tt(r[c]) === "[object Object]" && (r[c] = "[object Object]");
1795
1795
  if (typeof r == "object" && Tt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), t === null && (t = {}), i === "tag:yaml.org,2002:merge")
1796
1796
  if (Array.isArray(o))
1797
1797
  for (c = 0, d = o.length; c < d; c += 1)
@@ -1799,12 +1799,12 @@ function Se(e, t, n, i, r, o, a, l, s) {
1799
1799
  else
1800
1800
  Ft(e, t, o, n);
1801
1801
  else
1802
- !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, I(e, "duplicated mapping key")), In(t, r, o), delete n[r];
1802
+ !e.json && !ye.call(n, r) && ye.call(t, r) && (e.line = a || e.line, e.lineStart = l || e.lineStart, e.position = s || e.position, T(e, "duplicated mapping key")), In(t, r, o), delete n[r];
1803
1803
  return t;
1804
1804
  }
1805
1805
  function st(e) {
1806
1806
  var t;
1807
- t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : I(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1807
+ t = e.input.charCodeAt(e.position), t === 10 ? e.position++ : t === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : T(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
1808
1808
  }
1809
1809
  function Z(e, t, n) {
1810
1810
  for (var i = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
@@ -1827,7 +1827,7 @@ function Ve(e) {
1827
1827
  return n = e.input.charCodeAt(t), !!((n === 45 || n === 46) && n === e.input.charCodeAt(t + 1) && n === e.input.charCodeAt(t + 2) && (t += 3, n = e.input.charCodeAt(t), n === 0 || se(n)));
1828
1828
  }
1829
1829
  function ct(e, t) {
1830
- t === 1 ? e.result += " " : t > 1 && (e.result += ee.repeat(`
1830
+ t === 1 ? e.result += " " : t > 1 && (e.result += X.repeat(`
1831
1831
  `, t - 1));
1832
1832
  }
1833
1833
  function Ma(e, t, n) {
@@ -1857,7 +1857,7 @@ function Ma(e, t, n) {
1857
1857
  }
1858
1858
  return he(e, o, a, !1), e.result ? !0 : (e.kind = u, e.result = p, !1);
1859
1859
  }
1860
- function Pa(e, t) {
1860
+ function Da(e, t) {
1861
1861
  var n, i, r;
1862
1862
  if (n = e.input.charCodeAt(e.position), n !== 39)
1863
1863
  return !1;
@@ -1867,10 +1867,10 @@ function Pa(e, t) {
1867
1867
  i = e.position, e.position++, r = e.position;
1868
1868
  else
1869
1869
  return !0;
1870
- else de(n) ? (he(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1871
- I(e, "unexpected end of the stream within a single quoted scalar");
1870
+ else de(n) ? (he(e, i, r, !0), ct(e, Z(e, !1, t)), i = r = e.position) : e.position === e.lineStart && Ve(e) ? T(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
1871
+ T(e, "unexpected end of the stream within a single quoted scalar");
1872
1872
  }
1873
- function ja(e, t) {
1873
+ function Pa(e, t) {
1874
1874
  var n, i, r, o, a, l;
1875
1875
  if (l = e.input.charCodeAt(e.position), l !== 34)
1876
1876
  return !1;
@@ -1884,29 +1884,29 @@ function ja(e, t) {
1884
1884
  e.result += On[l], e.position++;
1885
1885
  else if ((a = La(l)) > 0) {
1886
1886
  for (r = a, o = 0; r > 0; r--)
1887
- l = e.input.charCodeAt(++e.position), (a = Ba(l)) >= 0 ? o = (o << 4) + a : I(e, "expected hexadecimal character");
1887
+ l = e.input.charCodeAt(++e.position), (a = Ba(l)) >= 0 ? o = (o << 4) + a : T(e, "expected hexadecimal character");
1888
1888
  e.result += Ka(o), e.position++;
1889
1889
  } else
1890
- I(e, "unknown escape sequence");
1890
+ T(e, "unknown escape sequence");
1891
1891
  n = i = e.position;
1892
- } else de(l) ? (he(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? I(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1892
+ } else de(l) ? (he(e, n, i, !0), ct(e, Z(e, !1, t)), n = i = e.position) : e.position === e.lineStart && Ve(e) ? T(e, "unexpected end of the document within a double quoted scalar") : (e.position++, i = e.position);
1893
1893
  }
1894
- I(e, "unexpected end of the stream within a double quoted scalar");
1894
+ T(e, "unexpected end of the stream within a double quoted scalar");
1895
1895
  }
1896
- function Da(e, t) {
1897
- var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), h, k, C, x;
1898
- if (x = e.input.charCodeAt(e.position), x === 91)
1896
+ function ja(e, t) {
1897
+ var n = !0, i, r, o, a = e.tag, l, s = e.anchor, c, d, u, p, m, y = /* @__PURE__ */ Object.create(null), h, b, k, A;
1898
+ if (A = e.input.charCodeAt(e.position), A === 91)
1899
1899
  d = 93, m = !1, l = [];
1900
- else if (x === 123)
1900
+ else if (A === 123)
1901
1901
  d = 125, m = !0, l = {};
1902
1902
  else
1903
1903
  return !1;
1904
- for (e.anchor !== null && (e.anchorMap[e.anchor] = l), x = e.input.charCodeAt(++e.position); x !== 0; ) {
1905
- if (Z(e, !0, t), x = e.input.charCodeAt(e.position), x === d)
1904
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = l), A = e.input.charCodeAt(++e.position); A !== 0; ) {
1905
+ if (Z(e, !0, t), A = e.input.charCodeAt(e.position), A === d)
1906
1906
  return e.position++, e.tag = a, e.anchor = s, e.kind = m ? "mapping" : "sequence", e.result = l, !0;
1907
- n ? x === 44 && I(e, "expected the node content, but found ','") : I(e, "missed comma between flow collection entries"), k = h = C = null, u = p = !1, x === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), k = e.tag, h = e.result, Z(e, !0, t), x = e.input.charCodeAt(e.position), (p || e.line === i) && x === 58 && (u = !0, x = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), C = e.result), m ? Se(e, l, y, k, h, C, i, r, o) : u ? l.push(Se(e, null, y, k, h, C, i, r, o)) : l.push(h), Z(e, !0, t), x = e.input.charCodeAt(e.position), x === 44 ? (n = !0, x = e.input.charCodeAt(++e.position)) : n = !1;
1907
+ n ? A === 44 && T(e, "expected the node content, but found ','") : T(e, "missed comma between flow collection entries"), b = h = k = null, u = p = !1, A === 63 && (c = e.input.charCodeAt(e.position + 1), se(c) && (u = p = !0, e.position++, Z(e, !0, t))), i = e.line, r = e.lineStart, o = e.position, Ee(e, t, Ke, !1, !0), b = e.tag, h = e.result, Z(e, !0, t), A = e.input.charCodeAt(e.position), (p || e.line === i) && A === 58 && (u = !0, A = e.input.charCodeAt(++e.position), Z(e, !0, t), Ee(e, t, Ke, !1, !0), k = e.result), m ? Se(e, l, y, b, h, k, i, r, o) : u ? l.push(Se(e, null, y, b, h, k, i, r, o)) : l.push(h), Z(e, !0, t), A = e.input.charCodeAt(e.position), A === 44 ? (n = !0, A = e.input.charCodeAt(++e.position)) : n = !1;
1908
1908
  }
1909
- I(e, "unexpected end of the stream within a flow collection");
1909
+ T(e, "unexpected end of the stream within a flow collection");
1910
1910
  }
1911
1911
  function Ua(e, t) {
1912
1912
  var n, i, r = Ge, o = !1, a = !1, l = t, s = 0, c = !1, d, u;
@@ -1918,9 +1918,9 @@ function Ua(e, t) {
1918
1918
  return !1;
1919
1919
  for (e.kind = "scalar", e.result = ""; u !== 0; )
1920
1920
  if (u = e.input.charCodeAt(++e.position), u === 43 || u === 45)
1921
- Ge === r ? r = u === 43 ? $t : Ea : I(e, "repeat of a chomping mode identifier");
1921
+ Ge === r ? r = u === 43 ? $t : Ea : T(e, "repeat of a chomping mode identifier");
1922
1922
  else if ((d = Ra(u)) >= 0)
1923
- d === 0 ? I(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? I(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1923
+ d === 0 ? T(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : a ? T(e, "repeat of an indentation width identifier") : (l = t + d - 1, a = !0);
1924
1924
  else
1925
1925
  break;
1926
1926
  if (ve(u)) {
@@ -1940,15 +1940,15 @@ function Ua(e, t) {
1940
1940
  continue;
1941
1941
  }
1942
1942
  if (e.lineIndent < l) {
1943
- r === $t ? e.result += ee.repeat(`
1943
+ r === $t ? e.result += X.repeat(`
1944
1944
  `, o ? 1 + s : s) : r === Ge && o && (e.result += `
1945
1945
  `);
1946
1946
  break;
1947
1947
  }
1948
- for (i ? ve(u) ? (c = !0, e.result += ee.repeat(`
1949
- `, o ? 1 + s : s)) : c ? (c = !1, e.result += ee.repeat(`
1950
- `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += ee.repeat(`
1951
- `, s) : e.result += ee.repeat(`
1948
+ for (i ? ve(u) ? (c = !0, e.result += X.repeat(`
1949
+ `, o ? 1 + s : s)) : c ? (c = !1, e.result += X.repeat(`
1950
+ `, s + 1)) : s === 0 ? o && (e.result += " ") : e.result += X.repeat(`
1951
+ `, s) : e.result += X.repeat(`
1952
1952
  `, o ? 1 + s : s), o = !0, a = !0, s = 0, n = e.position; !de(u) && u !== 0; )
1953
1953
  u = e.input.charCodeAt(++e.position);
1954
1954
  he(e, n, e.position, !1);
@@ -1958,92 +1958,92 @@ function Ua(e, t) {
1958
1958
  function Ot(e, t) {
1959
1959
  var n, i = e.tag, r = e.anchor, o = [], a, l = !1, s;
1960
1960
  if (e.firstTabInLine !== -1) return !1;
1961
- for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !se(a)))); ) {
1961
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = o), s = e.input.charCodeAt(e.position); s !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), !(s !== 45 || (a = e.input.charCodeAt(e.position + 1), !se(a)))); ) {
1962
1962
  if (l = !0, e.position++, Z(e, !0, -1) && e.lineIndent <= t) {
1963
1963
  o.push(null), s = e.input.charCodeAt(e.position);
1964
1964
  continue;
1965
1965
  }
1966
1966
  if (n = e.line, Ee(e, t, $n, !1, !0), o.push(e.result), Z(e, !0, -1), s = e.input.charCodeAt(e.position), (e.line === n || e.lineIndent > t) && s !== 0)
1967
- I(e, "bad indentation of a sequence entry");
1967
+ T(e, "bad indentation of a sequence entry");
1968
1968
  else if (e.lineIndent < t)
1969
1969
  break;
1970
1970
  }
1971
1971
  return l ? (e.tag = i, e.anchor = r, e.kind = "sequence", e.result = o, !0) : !1;
1972
1972
  }
1973
1973
  function qa(e, t, n) {
1974
- var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, h = null, k = !1, C = !1, x;
1974
+ var i, r, o, a, l, s, c = e.tag, d = e.anchor, u = {}, p = /* @__PURE__ */ Object.create(null), m = null, y = null, h = null, b = !1, k = !1, A;
1975
1975
  if (e.firstTabInLine !== -1) return !1;
1976
- for (e.anchor !== null && (e.anchorMap[e.anchor] = u), x = e.input.charCodeAt(e.position); x !== 0; ) {
1977
- if (!k && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, I(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (x === 63 || x === 58) && se(i))
1978
- x === 63 ? (k && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !0, r = !0) : k ? (k = !1, r = !0) : I(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, x = i;
1976
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = u), A = e.input.charCodeAt(e.position); A !== 0; ) {
1977
+ if (!b && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, T(e, "tab characters must not be used in indentation")), i = e.input.charCodeAt(e.position + 1), o = e.line, (A === 63 || A === 58) && se(i))
1978
+ A === 63 ? (b && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), k = !0, b = !0, r = !0) : b ? (b = !1, r = !0) : T(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, A = i;
1979
1979
  else {
1980
1980
  if (a = e.line, l = e.lineStart, s = e.position, !Ee(e, n, Sn, !1, !0))
1981
1981
  break;
1982
1982
  if (e.line === o) {
1983
- for (x = e.input.charCodeAt(e.position); ve(x); )
1984
- x = e.input.charCodeAt(++e.position);
1985
- if (x === 58)
1986
- x = e.input.charCodeAt(++e.position), se(x) || I(e, "a whitespace character is expected after the key-value separator within a block mapping"), k && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), C = !0, k = !1, r = !1, m = e.tag, y = e.result;
1987
- else if (C)
1988
- I(e, "can not read an implicit mapping pair; a colon is missed");
1983
+ for (A = e.input.charCodeAt(e.position); ve(A); )
1984
+ A = e.input.charCodeAt(++e.position);
1985
+ if (A === 58)
1986
+ A = e.input.charCodeAt(++e.position), se(A) || T(e, "a whitespace character is expected after the key-value separator within a block mapping"), b && (Se(e, u, p, m, y, null, a, l, s), m = y = h = null), k = !0, b = !1, r = !1, m = e.tag, y = e.result;
1987
+ else if (k)
1988
+ T(e, "can not read an implicit mapping pair; a colon is missed");
1989
1989
  else
1990
1990
  return e.tag = c, e.anchor = d, !0;
1991
- } else if (C)
1992
- I(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1991
+ } else if (k)
1992
+ T(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
1993
1993
  else
1994
1994
  return e.tag = c, e.anchor = d, !0;
1995
1995
  }
1996
- if ((e.line === o || e.lineIndent > t) && (k && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (k ? y = e.result : h = e.result), k || (Se(e, u, p, m, y, h, a, l, s), m = y = h = null), Z(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && x !== 0)
1997
- I(e, "bad indentation of a mapping entry");
1996
+ if ((e.line === o || e.lineIndent > t) && (b && (a = e.line, l = e.lineStart, s = e.position), Ee(e, t, Ne, !0, r) && (b ? y = e.result : h = e.result), b || (Se(e, u, p, m, y, h, a, l, s), m = y = h = null), Z(e, !0, -1), A = e.input.charCodeAt(e.position)), (e.line === o || e.lineIndent > t) && A !== 0)
1997
+ T(e, "bad indentation of a mapping entry");
1998
1998
  else if (e.lineIndent < t)
1999
1999
  break;
2000
2000
  }
2001
- return k && Se(e, u, p, m, y, null, a, l, s), C && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), C;
2001
+ return b && Se(e, u, p, m, y, null, a, l, s), k && (e.tag = c, e.anchor = d, e.kind = "mapping", e.result = u), k;
2002
2002
  }
2003
2003
  function Ha(e) {
2004
2004
  var t, n = !1, i = !1, r, o, a;
2005
2005
  if (a = e.input.charCodeAt(e.position), a !== 33) return !1;
2006
- if (e.tag !== null && I(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2006
+ if (e.tag !== null && T(e, "duplication of a tag property"), a = e.input.charCodeAt(++e.position), a === 60 ? (n = !0, a = e.input.charCodeAt(++e.position)) : a === 33 ? (i = !0, r = "!!", a = e.input.charCodeAt(++e.position)) : r = "!", t = e.position, n) {
2007
2007
  do
2008
2008
  a = e.input.charCodeAt(++e.position);
2009
2009
  while (a !== 0 && a !== 62);
2010
- e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : I(e, "unexpected end of the stream within a verbatim tag");
2010
+ e.position < e.length ? (o = e.input.slice(t, e.position), a = e.input.charCodeAt(++e.position)) : T(e, "unexpected end of the stream within a verbatim tag");
2011
2011
  } else {
2012
2012
  for (; a !== 0 && !se(a); )
2013
- a === 33 && (i ? I(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || I(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2014
- o = e.input.slice(t, e.position), Oa.test(o) && I(e, "tag suffix cannot contain flow indicator characters");
2013
+ a === 33 && (i ? T(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(t - 1, e.position + 1), Tn.test(r) || T(e, "named tag handle cannot contain such characters"), i = !0, t = e.position + 1)), a = e.input.charCodeAt(++e.position);
2014
+ o = e.input.slice(t, e.position), Oa.test(o) && T(e, "tag suffix cannot contain flow indicator characters");
2015
2015
  }
2016
- o && !En.test(o) && I(e, "tag name cannot contain such characters: " + o);
2016
+ o && !En.test(o) && T(e, "tag name cannot contain such characters: " + o);
2017
2017
  try {
2018
2018
  o = decodeURIComponent(o);
2019
2019
  } catch {
2020
- I(e, "tag name is malformed: " + o);
2020
+ T(e, "tag name is malformed: " + o);
2021
2021
  }
2022
- return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : I(e, 'undeclared tag handle "' + r + '"'), !0;
2022
+ return n ? e.tag = o : ye.call(e.tagMap, r) ? e.tag = e.tagMap[r] + o : r === "!" ? e.tag = "!" + o : r === "!!" ? e.tag = "tag:yaml.org,2002:" + o : T(e, 'undeclared tag handle "' + r + '"'), !0;
2023
2023
  }
2024
2024
  function Va(e) {
2025
2025
  var t, n;
2026
2026
  if (n = e.input.charCodeAt(e.position), n !== 38) return !1;
2027
- for (e.anchor !== null && I(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !we(n); )
2027
+ for (e.anchor !== null && T(e, "duplication of an anchor property"), n = e.input.charCodeAt(++e.position), t = e.position; n !== 0 && !se(n) && !we(n); )
2028
2028
  n = e.input.charCodeAt(++e.position);
2029
- return e.position === t && I(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2029
+ return e.position === t && T(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(t, e.position), !0;
2030
2030
  }
2031
2031
  function Ya(e) {
2032
2032
  var t, n, i;
2033
2033
  if (i = e.input.charCodeAt(e.position), i !== 42) return !1;
2034
2034
  for (i = e.input.charCodeAt(++e.position), t = e.position; i !== 0 && !se(i) && !we(i); )
2035
2035
  i = e.input.charCodeAt(++e.position);
2036
- return e.position === t && I(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || I(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2036
+ return e.position === t && T(e, "name of an alias node must contain at least one character"), n = e.input.slice(t, e.position), ye.call(e.anchorMap, n) || T(e, 'unidentified alias "' + n + '"'), e.result = e.anchorMap[n], Z(e, !0, -1), !0;
2037
2037
  }
2038
2038
  function Ee(e, t, n, i, r) {
2039
- var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, h, k;
2039
+ var o, a, l, s = 1, c = !1, d = !1, u, p, m, y, h, b;
2040
2040
  if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, o = a = l = Ne === n || $n === n, i && Z(e, !0, -1) && (c = !0, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)), s === 1)
2041
2041
  for (; Ha(e) || Va(e); )
2042
2042
  Z(e, !0, -1) ? (c = !0, l = o, e.lineIndent > t ? s = 1 : e.lineIndent === t ? s = 0 : e.lineIndent < t && (s = -1)) : l = !1;
2043
- if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? h = t : h = t + 1, k = e.position - e.lineStart, s === 1 ? l && (Ot(e, k) || qa(e, k, h)) || Da(e, h) ? d = !0 : (a && Ua(e, h) || Pa(e, h) || ja(e, h) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && I(e, "alias node should not have any properties")) : Ma(e, h, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, k))), e.tag === null)
2043
+ if (l && (l = c || r), (s === 1 || Ne === n) && (Ke === n || Sn === n ? h = t : h = t + 1, b = e.position - e.lineStart, s === 1 ? l && (Ot(e, b) || qa(e, b, h)) || ja(e, h) ? d = !0 : (a && Ua(e, h) || Da(e, h) || Pa(e, h) ? d = !0 : Ya(e) ? (d = !0, (e.tag !== null || e.anchor !== null) && T(e, "alias node should not have any properties")) : Ma(e, h, Ke === n) && (d = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : s === 0 && (d = l && Ot(e, b))), e.tag === null)
2044
2044
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2045
2045
  else if (e.tag === "?") {
2046
- for (e.result !== null && e.kind !== "scalar" && I(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2046
+ for (e.result !== null && e.kind !== "scalar" && T(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), u = 0, p = e.implicitTypes.length; u < p; u += 1)
2047
2047
  if (y = e.implicitTypes[u], y.resolve(e.result)) {
2048
2048
  e.result = y.construct(e.result), e.tag = y.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2049
2049
  break;
@@ -2057,7 +2057,7 @@ function Ee(e, t, n, i, r) {
2057
2057
  y = m[u];
2058
2058
  break;
2059
2059
  }
2060
- y || I(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && I(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : I(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2060
+ y || T(e, "unknown tag !<" + e.tag + ">"), e.result !== null && y.kind !== e.kind && T(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + y.kind + '", not "' + e.kind + '"'), y.resolve(e.result, e.tag) ? (e.result = y.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : T(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2061
2061
  }
2062
2062
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || d;
2063
2063
  }
@@ -2066,7 +2066,7 @@ function Wa(e) {
2066
2066
  for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (a = e.input.charCodeAt(e.position)) !== 0 && (Z(e, !0, -1), a = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || a !== 37)); ) {
2067
2067
  for (o = !0, a = e.input.charCodeAt(++e.position), n = e.position; a !== 0 && !se(a); )
2068
2068
  a = e.input.charCodeAt(++e.position);
2069
- for (i = e.input.slice(n, e.position), r = [], i.length < 1 && I(e, "directive name must not be less than one character in length"); a !== 0; ) {
2069
+ for (i = e.input.slice(n, e.position), r = [], i.length < 1 && T(e, "directive name must not be less than one character in length"); a !== 0; ) {
2070
2070
  for (; ve(a); )
2071
2071
  a = e.input.charCodeAt(++e.position);
2072
2072
  if (a === 35) {
@@ -2082,12 +2082,12 @@ function Wa(e) {
2082
2082
  }
2083
2083
  a !== 0 && st(e), ye.call(It, i) ? It[i](e, i, r) : Me(e, 'unknown document directive "' + i + '"');
2084
2084
  }
2085
- if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : o && I(e, "directives end mark is expected"), Ee(e, e.lineIndent - 1, Ne, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Fa.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ve(e)) {
2085
+ if (Z(e, !0, -1), e.lineIndent === 0 && e.input.charCodeAt(e.position) === 45 && e.input.charCodeAt(e.position + 1) === 45 && e.input.charCodeAt(e.position + 2) === 45 ? (e.position += 3, Z(e, !0, -1)) : o && T(e, "directives end mark is expected"), Ee(e, e.lineIndent - 1, Ne, !1, !0), Z(e, !0, -1), e.checkLineBreaks && Fa.test(e.input.slice(t, e.position)) && Me(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && Ve(e)) {
2086
2086
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, Z(e, !0, -1));
2087
2087
  return;
2088
2088
  }
2089
2089
  if (e.position < e.length - 1)
2090
- I(e, "end of the stream or a document separator is expected");
2090
+ T(e, "end of the stream or a document separator is expected");
2091
2091
  else
2092
2092
  return;
2093
2093
  }
@@ -2095,7 +2095,7 @@ function Ln(e, t) {
2095
2095
  e = String(e), t = t || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2096
2096
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2097
2097
  var n = new Na(e, t), i = e.indexOf("\0");
2098
- for (i !== -1 && (n.position = i, I(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2098
+ for (i !== -1 && (n.position = i, T(n, "null byte is not allowed in input")), n.input += "\0"; n.input.charCodeAt(n.position) === 32; )
2099
2099
  n.lineIndent += 1, n.position += 1;
2100
2100
  for (; n.position < n.length - 1; )
2101
2101
  Wa(n);
@@ -2120,7 +2120,7 @@ function Ga(e, t) {
2120
2120
  var za = Ja, Qa = Ga, Rn = {
2121
2121
  loadAll: za,
2122
2122
  load: Qa
2123
- }, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, Pe = 58, so = 61, co = 62, uo = 63, fo = 64, Pn = 91, jn = 93, po = 96, Dn = 123, mo = 124, Un = 125, re = {};
2123
+ }, Kn = Object.prototype.toString, Nn = Object.prototype.hasOwnProperty, ut = 65279, Za = 9, Oe = 10, Xa = 13, eo = 32, to = 33, no = 34, Xe = 35, io = 37, ro = 38, ao = 39, oo = 42, Mn = 44, lo = 45, De = 58, so = 61, co = 62, uo = 63, fo = 64, Dn = 91, Pn = 93, po = 96, jn = 123, mo = 124, Un = 125, re = {};
2124
2124
  re[0] = "\\0";
2125
2125
  re[7] = "\\a";
2126
2126
  re[8] = "\\b";
@@ -2171,14 +2171,14 @@ function vo(e) {
2171
2171
  n = "U", i = 8;
2172
2172
  else
2173
2173
  throw new oe("code point within a string may not be greater than 0xFFFFFFFF");
2174
- return "\\" + n + ee.repeat("0", i - t.length) + t;
2174
+ return "\\" + n + X.repeat("0", i - t.length) + t;
2175
2175
  }
2176
2176
  var bo = 1, Be = 2;
2177
2177
  function ko(e) {
2178
- this.schema = e.schema || lt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ee.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Be : bo, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2178
+ this.schema = e.schema || lt, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = X.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = yo(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Be : bo, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2179
2179
  }
2180
2180
  function Bt(e, t) {
2181
- for (var n = ee.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2181
+ for (var n = X.repeat(" ", t), i = 0, r = -1, o = "", a, l = e.length; i < l; )
2182
2182
  r = e.indexOf(`
2183
2183
  `, i), r === -1 ? (a = e.slice(i), i = l) : (a = e.slice(i, r + 1), i = r + 1), a.length && a !== `
2184
2184
  ` && (o += n), o += a;
@@ -2186,7 +2186,7 @@ function Bt(e, t) {
2186
2186
  }
2187
2187
  function et(e, t) {
2188
2188
  return `
2189
- ` + ee.repeat(" ", e.indent * t);
2189
+ ` + X.repeat(" ", e.indent * t);
2190
2190
  }
2191
2191
  function Co(e, t) {
2192
2192
  var n, i, r;
@@ -2195,7 +2195,7 @@ function Co(e, t) {
2195
2195
  return !0;
2196
2196
  return !1;
2197
2197
  }
2198
- function je(e) {
2198
+ function Pe(e) {
2199
2199
  return e === eo || e === Za;
2200
2200
  }
2201
2201
  function Le(e) {
@@ -2205,20 +2205,20 @@ function Lt(e) {
2205
2205
  return Le(e) && e !== ut && e !== Xa && e !== Oe;
2206
2206
  }
2207
2207
  function Rt(e, t, n) {
2208
- var i = Lt(e), r = i && !je(e);
2208
+ var i = Lt(e), r = i && !Pe(e);
2209
2209
  return (
2210
2210
  // ns-plain-safe
2211
2211
  (n ? (
2212
2212
  // c = flow-in
2213
2213
  i
2214
- ) : i && e !== Mn && e !== Pn && e !== jn && e !== Dn && e !== Un) && e !== Xe && !(t === Pe && !r) || Lt(t) && !je(t) && e === Xe || t === Pe && r
2214
+ ) : i && e !== Mn && e !== Dn && e !== Pn && e !== jn && e !== Un) && e !== Xe && !(t === De && !r) || Lt(t) && !Pe(t) && e === Xe || t === De && r
2215
2215
  );
2216
2216
  }
2217
2217
  function xo(e) {
2218
- return Le(e) && e !== ut && !je(e) && e !== lo && e !== uo && e !== Pe && e !== Mn && e !== Pn && e !== jn && e !== Dn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
2218
+ return Le(e) && e !== ut && !Pe(e) && e !== lo && e !== uo && e !== De && e !== Mn && e !== Dn && e !== Pn && e !== jn && e !== Un && e !== Xe && e !== ro && e !== oo && e !== to && e !== mo && e !== so && e !== co && e !== ao && e !== no && e !== io && e !== fo && e !== po;
2219
2219
  }
2220
2220
  function Ao(e) {
2221
- return !je(e) && e !== Pe;
2221
+ return !Pe(e) && e !== De;
2222
2222
  }
2223
2223
  function Ie(e, t) {
2224
2224
  var n = e.charCodeAt(t), i;
@@ -2330,7 +2330,7 @@ function To(e, t, n) {
2330
2330
  l = n[o], e.replacer && (l = e.replacer.call(n, String(o), l)), (pe(e, t, l, !1, !1) || typeof l > "u" && pe(e, t, null, !1, !1)) && (i !== "" && (i += "," + (e.condenseFlow ? "" : " ")), i += e.dump);
2331
2331
  e.tag = r, e.dump = "[" + i + "]";
2332
2332
  }
2333
- function Pt(e, t, n, i) {
2333
+ function Dt(e, t, n, i) {
2334
2334
  var r = "", o = e.tag, a, l, s;
2335
2335
  for (a = 0, l = n.length; a < l; a += 1)
2336
2336
  s = n[a], e.replacer && (s = e.replacer.call(n, String(a), s)), (pe(e, t + 1, s, !0, !0, !1, !0) || typeof s > "u" && pe(e, t + 1, null, !0, !0, !1, !0)) && ((!i || r !== "") && (r += et(e, t)), e.dump && Oe === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
@@ -2354,7 +2354,7 @@ function Io(e, t, n, i) {
2354
2354
  p = "", (!i || r !== "") && (p += et(e, t)), c = a[l], d = n[c], e.replacer && (d = e.replacer.call(n, c, d)), pe(e, t + 1, c, !0, !0, !0) && (u = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, u && (e.dump && Oe === e.dump.charCodeAt(0) ? p += "?" : p += "? "), p += e.dump, u && (p += et(e, t)), pe(e, t + 1, d, !0, u) && (e.dump && Oe === e.dump.charCodeAt(0) ? p += ":" : p += ": ", p += e.dump, r += p));
2355
2355
  e.tag = o, e.dump = r || "{}";
2356
2356
  }
2357
- function jt(e, t, n) {
2357
+ function Pt(e, t, n) {
2358
2358
  var i, r, o, a, l, s;
2359
2359
  for (r = n ? e.explicitTypes : e.implicitTypes, o = 0, a = r.length; o < a; o += 1)
2360
2360
  if (l = r[o], (l.instanceOf || l.predicate) && (!l.instanceOf || typeof t == "object" && t instanceof l.instanceOf) && (!l.predicate || l.predicate(t))) {
@@ -2372,7 +2372,7 @@ function jt(e, t, n) {
2372
2372
  return !1;
2373
2373
  }
2374
2374
  function pe(e, t, n, i, r, o, a) {
2375
- e.tag = null, e.dump = n, jt(e, n, !1) || jt(e, n, !0);
2375
+ e.tag = null, e.dump = n, Pt(e, n, !1) || Pt(e, n, !0);
2376
2376
  var l = Kn.call(e.dump), s = i, c;
2377
2377
  i && (i = e.flowLevel < 0 || e.flowLevel > t);
2378
2378
  var d = l === "[object Object]" || l === "[object Array]", u, p;
@@ -2382,7 +2382,7 @@ function pe(e, t, n, i, r, o, a) {
2382
2382
  if (d && p && !e.usedDuplicates[u] && (e.usedDuplicates[u] = !0), l === "[object Object]")
2383
2383
  i && Object.keys(e.dump).length !== 0 ? (Io(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (Eo(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2384
2384
  else if (l === "[object Array]")
2385
- i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Pt(e, t - 1, e.dump, r) : Pt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2385
+ i && e.dump.length !== 0 ? (e.noArrayIndent && !a && t > 0 ? Dt(e, t - 1, e.dump, r) : Dt(e, t, e.dump, r), p && (e.dump = "&ref_" + u + e.dump)) : (To(e, t, e.dump), p && (e.dump = "&ref_" + u + " " + e.dump));
2386
2386
  else if (l === "[object String]")
2387
2387
  e.tag !== "?" && wo(e, e.dump, t, o, s);
2388
2388
  else {
@@ -2431,7 +2431,7 @@ function dt(e, t) {
2431
2431
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + t + " instead, which is now safe by default.");
2432
2432
  };
2433
2433
  }
2434
- var Ro = ie, Ko = ln, No = dn, Mo = hn, Po = yn, jo = lt, Do = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
2434
+ var Ro = ie, Ko = ln, No = dn, Mo = hn, Do = yn, Po = lt, jo = Rn.load, Uo = Rn.loadAll, qo = Lo.dump, Ho = oe, Vo = {
2435
2435
  binary: xn,
2436
2436
  float: gn,
2437
2437
  map: un,
@@ -2450,9 +2450,9 @@ var Ro = ie, Ko = ln, No = dn, Mo = hn, Po = yn, jo = lt, Do = Rn.load, Uo = Rn.
2450
2450
  Schema: Ko,
2451
2451
  FAILSAFE_SCHEMA: No,
2452
2452
  JSON_SCHEMA: Mo,
2453
- CORE_SCHEMA: Po,
2454
- DEFAULT_SCHEMA: jo,
2455
- load: Do,
2453
+ CORE_SCHEMA: Do,
2454
+ DEFAULT_SCHEMA: Po,
2455
+ load: jo,
2456
2456
  loadAll: Uo,
2457
2457
  dump: qo,
2458
2458
  YAMLException: Ho,
@@ -2471,21 +2471,21 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2471
2471
  }
2472
2472
  },
2473
2473
  setup(e) {
2474
- const t = e, n = $(() => {
2474
+ const t = e, n = S(() => {
2475
2475
  const i = Object.fromEntries(Object.entries(t.entityRecord).filter(([, r]) => r !== null && r !== "" && (Array.isArray(r) ? r.length !== 0 : !0)));
2476
2476
  return Object.keys(i).length === 0 && i.constructor === Object ? "" : Wn.dump(i).trim();
2477
2477
  });
2478
2478
  return (i, r) => {
2479
- const o = D("KCodeBlock");
2480
- return g(), T("div", Go, [
2481
- t.entityRecord ? (g(), N(o, {
2479
+ const o = j("KCodeBlock");
2480
+ return g(), $("div", Go, [
2481
+ t.entityRecord ? (g(), K(o, {
2482
2482
  key: 0,
2483
2483
  id: "yaml-codeblock",
2484
2484
  code: n.value,
2485
2485
  language: "yaml",
2486
2486
  theme: "dark",
2487
- onCodeBlockRender: A(Te)
2488
- }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2487
+ onCodeBlockRender: _(Te)
2488
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2489
2489
  ]);
2490
2490
  };
2491
2491
  }
@@ -2513,7 +2513,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2513
2513
  }
2514
2514
  },
2515
2515
  setup(e) {
2516
- const t = e, n = $(() => bi.includes(t.entityType)), i = $(() => ki.includes(t.entityType)), r = (c, d) => {
2516
+ const t = e, n = S(() => bi.includes(t.entityType)), i = S(() => ki.includes(t.entityType)), r = (c, d) => {
2517
2517
  const u = te;
2518
2518
  let p = "";
2519
2519
  return typeof c == "string" ? p += `${u}${d} = "${c}"
@@ -2527,12 +2527,12 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2527
2527
  if (d && (m += `${p}${d} = {
2528
2528
  `), c === null)
2529
2529
  return d ? m += `${p}}` : m = "{}", m;
2530
- const y = Object.fromEntries(Object.entries(c).filter(([, k]) => k !== null));
2530
+ const y = Object.fromEntries(Object.entries(c).filter(([, b]) => b !== null));
2531
2531
  let h = "";
2532
- for (const [k, C] of Object.entries(y))
2533
- Array.isArray(C) ? C.length === 0 ? h = "[]" : (h = `[
2534
- `, h += a(C, void 0, p), h += `${p}${te}]`) : C && typeof C == "object" ? (h = `{
2535
- `, h += o(C, void 0, p), h += `${p}${te}}`) : h = String(C ?? ""), typeof C == "string" && (h = `"${h}"`), m += `${p}${te}${k} = ${h}
2532
+ for (const [b, k] of Object.entries(y))
2533
+ Array.isArray(k) ? k.length === 0 ? h = "[]" : (h = `[
2534
+ `, h += a(k, void 0, p), h += `${p}${te}]`) : k && typeof k == "object" ? (h = `{
2535
+ `, h += o(k, void 0, p), h += `${p}${te}}`) : h = String(k ?? ""), typeof k == "string" && (h = `"${h}"`), m += `${p}${te}${b} = ${h}
2536
2536
  `;
2537
2537
  return d ? m += `${p}}
2538
2538
  ` : m;
@@ -2557,21 +2557,21 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2557
2557
  for (const [u, p] of Object.entries(c))
2558
2558
  Array.isArray(p) ? d += a(p, u) : typeof p == "object" ? d += o(p, u) : d += r(p, u);
2559
2559
  return d;
2560
- }, s = $(() => {
2561
- var m, y, h, k, C, x, B;
2562
- const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, j]) => j != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, j]) => j != null)) : void 0;
2560
+ }, s = S(() => {
2561
+ var m, y, h, b, k, A, B;
2562
+ const c = Object.fromEntries(Object.entries(t.entityRecord).filter(([, P]) => P != null)), d = t.entityRecord.config ? Object.fromEntries(Object.entries((m = t.entityRecord) == null ? void 0 : m.config).filter(([, P]) => P != null)) : void 0;
2563
2563
  if (d && (c.config = d), Object.keys(c).length === 0)
2564
2564
  return "";
2565
2565
  delete c.id;
2566
2566
  let u = "", p = "";
2567
- if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (h = c.route) != null && h.id ? (p = "route", delete c.route) : (k = c.consumer) != null && k.id ? (p = "consumer", delete c.consumer) : (C = c.consumer_group) != null && C.id ? (p = "consumer_group", delete c.consumer_group) : (x = c.certificate) != null && x.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
2568
- const j = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2569
- u += `resource "konnect_event_gateway_${j}" "my_eventgateway${j.replaceAll("_", "")}" {
2567
+ if ((y = c.service) != null && y.id ? (p = "service", delete c.service) : (h = c.route) != null && h.id ? (p = "route", delete c.route) : (b = c.consumer) != null && b.id ? (p = "consumer", delete c.consumer) : (k = c.consumer_group) != null && k.id ? (p = "consumer_group", delete c.consumer_group) : (A = c.certificate) != null && A.id ? (p = "certificate", delete c.certificate) : (B = c.set) != null && B.id && (p = "set", delete c.set), n.value) {
2568
+ const P = t.subEntityType ? `${t.entityType}_${t.subEntityType}` : t.entityType;
2569
+ u += `resource "konnect_event_gateway_${P}" "my_eventgateway${P.replaceAll("_", "")}" {
2570
2570
  `, u += `${te}provider = konnect-beta
2571
2571
  `;
2572
2572
  } else if (t.entityType === "plugin") {
2573
- const j = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2574
- delete c.name, u += `resource "konnect_gateway_plugin_${j}" "my_${j}" {
2573
+ const P = t.credentialType.replace(/-/g, "_") || (c.name + "").replace(/-/g, "_");
2574
+ delete c.name, u += `resource "konnect_gateway_plugin_${P}" "my_${P}" {
2575
2575
  `;
2576
2576
  } else i.value ? (u += `resource "konnect_${t.entityType}" "my_${t.entityType}" {
2577
2577
  `, u += `${te}provider = konnect-beta
@@ -2585,16 +2585,16 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2585
2585
  `, u;
2586
2586
  });
2587
2587
  return (c, d) => {
2588
- const u = D("KCodeBlock");
2589
- return g(), T("div", zo, [
2590
- t.entityRecord ? (g(), N(u, {
2588
+ const u = j("KCodeBlock");
2589
+ return g(), $("div", zo, [
2590
+ t.entityRecord ? (g(), K(u, {
2591
2591
  key: 0,
2592
2592
  id: "terraform-codeblock",
2593
2593
  code: s.value,
2594
2594
  language: "terraform",
2595
2595
  theme: "dark",
2596
- onCodeBlockRender: A(Te)
2597
- }, null, 8, ["code", "onCodeBlockRender"])) : P("", !0)
2596
+ onCodeBlockRender: _(Te)
2597
+ }, null, 8, ["code", "onCodeBlockRender"])) : D("", !0)
2598
2598
  ]);
2599
2599
  };
2600
2600
  }
@@ -2661,31 +2661,31 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2661
2661
  }
2662
2662
  },
2663
2663
  setup(e) {
2664
- const t = e, n = Ue(), { i18n: { t: i } } = W.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = $(() => {
2664
+ const t = e, n = Ue(), { i18n: { t: i } } = J.useI18n(), r = (l) => !!(l.tooltip || n[`${l.key}-label-tooltip`]), o = S(() => {
2665
2665
  if (!t.record)
2666
2666
  return t.record;
2667
2667
  let l = t.record;
2668
2668
  t.codeBlockRecordFormatter && (l = t.codeBlockRecordFormatter(l, t.format));
2669
2669
  const s = JSON.parse(JSON.stringify(l));
2670
2670
  return delete s.created_at, delete s.updated_at, s;
2671
- }), a = $(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2672
- return (l, s) => (g(), T(ue, null, [
2673
- e.format === "structured" ? (g(), T("div", Qo, [
2674
- (g(!0), T(ue, null, ce(e.propListTypes, (c) => (g(), T("div", {
2671
+ }), a = S(() => t.fetcherUrl.replace(/(\?|&)__ui_data=true/, ""));
2672
+ return (l, s) => (g(), $(ue, null, [
2673
+ e.format === "structured" ? (g(), $("div", Qo, [
2674
+ (g(!0), $(ue, null, ce(e.propListTypes, (c) => (g(), $("div", {
2675
2675
  key: `config-card-details-${c}-props`,
2676
2676
  class: fe(`config-card-details-${c}-props`),
2677
2677
  "data-testid": `config-card-details-${c}-props`
2678
2678
  }, [
2679
- c !== "basic" ? (g(), T("div", Xo, O(c === "advanced" ? A(i)("baseConfigCard.sections.advanced") : c === "plugin" ? A(i)("baseConfigCard.sections.plugin") : A(i)("baseConfigCard.sections.policy")), 1)) : P("", !0),
2680
- (g(!0), T(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2679
+ c !== "basic" ? (g(), $("div", Xo, I(c === "advanced" ? _(i)("baseConfigCard.sections.advanced") : c === "plugin" ? _(i)("baseConfigCard.sections.plugin") : _(i)("baseConfigCard.sections.policy")), 1)) : D("", !0),
2680
+ (g(!0), $(ue, null, ce(e.propertyCollections[c], (d) => U(l.$slots, `config-card-item-${d.key}`, {
2681
2681
  key: d.key,
2682
2682
  item: d
2683
2683
  }, () => [
2684
- K(nn, { item: d }, ke({
2685
- label: _(() => [
2684
+ R(nn, { item: d }, ke({
2685
+ label: w(() => [
2686
2686
  U(l.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2687
2687
  ]),
2688
- [d.key]: _(({ rowValue: u }) => [
2688
+ [d.key]: w(({ rowValue: u }) => [
2689
2689
  U(l.$slots, d.key, {
2690
2690
  row: d,
2691
2691
  rowValue: u
@@ -2695,7 +2695,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2695
2695
  }, [
2696
2696
  r(d) ? {
2697
2697
  name: "label-tooltip",
2698
- fn: _(() => [
2698
+ fn: w(() => [
2699
2699
  U(l.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2700
2700
  ]),
2701
2701
  key: "0"
@@ -2703,24 +2703,24 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2703
2703
  ]), 1032, ["item"])
2704
2704
  ], !0)), 128))
2705
2705
  ], 10, Zo))), 128))
2706
- ])) : P("", !0),
2707
- e.format === "json" && o.value ? (g(), N(rn, {
2706
+ ])) : D("", !0),
2707
+ e.format === "json" && o.value ? (g(), K(rn, {
2708
2708
  key: 1,
2709
2709
  config: t.config,
2710
2710
  "entity-record": o.value,
2711
2711
  "fetcher-url": a.value,
2712
2712
  "request-method": "get"
2713
- }, null, 8, ["config", "entity-record", "fetcher-url"])) : P("", !0),
2714
- e.format === "yaml" && o.value ? (g(), N(Jn, {
2713
+ }, null, 8, ["config", "entity-record", "fetcher-url"])) : D("", !0),
2714
+ e.format === "yaml" && o.value ? (g(), K(Jn, {
2715
2715
  key: 2,
2716
2716
  "entity-record": o.value
2717
- }, null, 8, ["entity-record"])) : P("", !0),
2718
- e.format === "terraform" && o.value ? (g(), N(Gn, {
2717
+ }, null, 8, ["entity-record"])) : D("", !0),
2718
+ e.format === "terraform" && o.value ? (g(), K(Gn, {
2719
2719
  key: 3,
2720
2720
  "entity-record": o.value,
2721
2721
  "entity-type": t.entityType,
2722
2722
  "sub-entity-type": t.subEntityType
2723
- }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : P("", !0)
2723
+ }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])) : D("", !0)
2724
2724
  ], 64));
2725
2725
  }
2726
2726
  }), tl = /* @__PURE__ */ le(el, [["__scopeId", "data-v-a7689049"]]), nl = {
@@ -2848,10 +2848,10 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2848
2848
  },
2849
2849
  emits: ["loading", "fetch:success", "fetch:error", "configFormatChange"],
2850
2850
  setup(e, { emit: t }) {
2851
- var F;
2852
- const n = t, i = e, { i18n: { t: r } } = W.useI18n(), { getMessageFromError: o } = W.useErrors(), { convertKeyToTitle: a } = W.useStringHelpers();
2853
- W.useSubSchema(i.pluginConfigKey);
2854
- const { axiosInstance: l } = W.useAxios((F = i.config) == null ? void 0 : F.axiosRequestConfig), s = [
2851
+ var x;
2852
+ const n = t, i = e, { i18n: { t: r } } = J.useI18n(), { getMessageFromError: o } = J.useErrors(), { convertKeyToTitle: a } = J.useStringHelpers();
2853
+ J.useSubSchema(i.pluginConfigKey);
2854
+ const { axiosInstance: l } = J.useAxios((x = i.config) == null ? void 0 : x.axiosRequestConfig), s = [
2855
2855
  {
2856
2856
  label: r("baseConfigCard.general.structuredFormat"),
2857
2857
  value: "structured",
@@ -2870,7 +2870,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2870
2870
  label: r("baseForm.configuration.terraform"),
2871
2871
  value: "terraform"
2872
2872
  });
2873
- const c = s[0].value, d = M(c), u = (f) => {
2873
+ const c = s[0].value, d = N(c), u = (f) => {
2874
2874
  d.value = f == null ? void 0 : f.value, n("configFormatChange", d.value);
2875
2875
  }, p = (f, v) => {
2876
2876
  localStorage.setItem(f, v);
@@ -2885,7 +2885,7 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2885
2885
  });
2886
2886
  const m = {
2887
2887
  id: {
2888
- type: Y.ID,
2888
+ type: W.ID,
2889
2889
  label: r("baseConfigCard.commonFields.id_label"),
2890
2890
  order: 0,
2891
2891
  section: ae.Basic
@@ -2895,224 +2895,224 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
2895
2895
  section: ae.Basic
2896
2896
  },
2897
2897
  enabled: {
2898
- type: Y.BadgeStatus,
2898
+ type: W.BadgeStatus,
2899
2899
  order: 2,
2900
2900
  section: ae.Basic
2901
2901
  },
2902
2902
  updated_at: {
2903
- type: Y.Date,
2903
+ type: W.Date,
2904
2904
  label: r("baseConfigCard.commonFields.updated_at_label"),
2905
2905
  order: 3,
2906
2906
  section: ae.Basic
2907
2907
  },
2908
2908
  created_at: {
2909
- type: Y.Date,
2909
+ type: W.Date,
2910
2910
  label: r("baseConfigCard.commonFields.created_at_label"),
2911
2911
  order: 4,
2912
2912
  section: ae.Basic
2913
2913
  },
2914
2914
  tags: {
2915
- type: Y.BadgeTag,
2915
+ type: W.BadgeTag,
2916
2916
  order: -1,
2917
2917
  // the last property displayed
2918
2918
  section: ae.Basic
2919
2919
  },
2920
2920
  partials: {
2921
- type: Y.LinkInternal,
2921
+ type: W.LinkInternal,
2922
2922
  label: r("baseConfigCard.commonFields.partial_label"),
2923
2923
  order: -1,
2924
2924
  // the last property displayed
2925
2925
  section: ae.Basic
2926
2926
  }
2927
- }, y = M(!1), h = M(!1), k = M(""), C = M({}), x = $(() => {
2928
- var b, V, J;
2929
- if (!C.value)
2927
+ }, y = N(!1), h = N(!1), b = N(""), k = N({}), A = S(() => {
2928
+ var C, Y, G;
2929
+ if (!k.value)
2930
2930
  return [];
2931
- const f = [], v = Object.keys(C.value).length;
2932
- for (const E in C.value) {
2931
+ const f = [], v = Object.keys(k.value).length;
2932
+ for (const E in k.value) {
2933
2933
  if (E === "__ui_data") continue;
2934
- const R = (V = (b = i.configSchema) == null ? void 0 : b[E]) == null ? void 0 : V.order, G = (J = m[E]) == null ? void 0 : J.order;
2934
+ const O = (Y = (C = i.configSchema) == null ? void 0 : C[E]) == null ? void 0 : Y.order, V = (G = m[E]) == null ? void 0 : G.order;
2935
2935
  let H = v;
2936
- (G || G === 0) && (H = G === -1 ? v + 1 : G), R && (H = R === -1 ? v + 1 : R), f.push([E, H]);
2936
+ (V || V === 0) && (H = V === -1 ? v + 1 : V), O && (H = O === -1 ? v + 1 : O), f.push([E, H]);
2937
2937
  }
2938
- return f.sort(function(E, R) {
2939
- return E[1] - R[1];
2938
+ return f.sort(function(E, O) {
2939
+ return E[1] - O[1];
2940
2940
  }), f.map((E) => {
2941
2941
  var ft, pt;
2942
- const R = E[0], G = (ft = C.value) == null ? void 0 : ft[R], H = ((pt = i.configSchema) == null ? void 0 : pt[R]) || {}, Q = m[R];
2942
+ const O = E[0], V = (ft = k.value) == null ? void 0 : ft[O], H = ((pt = i.configSchema) == null ? void 0 : pt[O]) || {}, Q = m[O];
2943
2943
  return {
2944
- key: R,
2945
- value: G,
2944
+ key: O,
2945
+ value: V,
2946
2946
  hidden: H.hidden || !1,
2947
- type: H.type ?? ((Q == null ? void 0 : Q.type) || Y.Text),
2948
- label: H.label ?? ((Q == null ? void 0 : Q.label) || a(R)),
2947
+ type: H.type ?? ((Q == null ? void 0 : Q.type) || W.Text),
2948
+ label: H.label ?? ((Q == null ? void 0 : Q.label) || a(O)),
2949
2949
  tooltip: H.tooltip ?? ((Q == null ? void 0 : Q.tooltip) || void 0),
2950
2950
  section: H.section ?? ((Q == null ? void 0 : Q.section) || ae.Advanced)
2951
2951
  };
2952
2952
  }).filter((E) => !E.hidden && E.key !== i.pluginConfigKey);
2953
- }), B = $(() => {
2954
- var V, J;
2955
- if (!C.value || !i.pluginConfigKey)
2953
+ }), B = S(() => {
2954
+ var Y, G;
2955
+ if (!k.value || !i.pluginConfigKey)
2956
2956
  return [];
2957
- const f = C.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, b = [];
2957
+ const f = k.value[i.pluginConfigKey] || {}, v = Object.keys(f).length, C = [];
2958
2958
  for (const E in f) {
2959
- const R = (J = (V = i.pluginConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2960
- let H = G != null && G !== "" ? v - 1 : v;
2961
- R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2959
+ const O = (G = (Y = i.pluginConfigSchema) == null ? void 0 : Y[E]) == null ? void 0 : G.order, V = f[E];
2960
+ let H = V != null && V !== "" ? v - 1 : v;
2961
+ O && (H = O === -1 ? v + 1 : O), C.push([E, H]);
2962
2962
  }
2963
- return b.sort(function(E, R) {
2964
- return E[1] - R[1];
2965
- }), b.map((E) => {
2963
+ return C.sort(function(E, O) {
2964
+ return E[1] - O[1];
2965
+ }), C.map((E) => {
2966
2966
  var Q;
2967
- const R = E[0], G = f[R], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[R]) || {};
2967
+ const O = E[0], V = f[O], H = ((Q = i.pluginConfigSchema) == null ? void 0 : Q[O]) || {};
2968
2968
  return {
2969
- key: R,
2970
- value: G,
2969
+ key: O,
2970
+ value: V,
2971
2971
  hidden: H.hidden || !1,
2972
- type: H.type ?? Y.Text,
2973
- label: H.label ?? a(R),
2972
+ type: H.type ?? W.Text,
2973
+ label: H.label ?? a(O),
2974
2974
  tooltip: H.tooltip ?? void 0,
2975
2975
  section: ae.Plugin
2976
2976
  };
2977
2977
  }).filter((E) => !E.hidden);
2978
- }), j = $(() => {
2979
- var V, J;
2980
- if (!C.value || !i.policyConfigKey)
2978
+ }), P = S(() => {
2979
+ var Y, G;
2980
+ if (!k.value || !i.policyConfigKey)
2981
2981
  return [];
2982
- const f = C.value[i.policyConfigKey] || {}, v = Object.keys(f).length, b = [];
2982
+ const f = k.value[i.policyConfigKey] || {}, v = Object.keys(f).length, C = [];
2983
2983
  for (const E in f) {
2984
- const R = (J = (V = i.policyConfigSchema) == null ? void 0 : V[E]) == null ? void 0 : J.order, G = f[E];
2985
- let H = G != null && G !== "" ? v - 1 : v;
2986
- R && (H = R === -1 ? v + 1 : R), b.push([E, H]);
2984
+ const O = (G = (Y = i.policyConfigSchema) == null ? void 0 : Y[E]) == null ? void 0 : G.order, V = f[E];
2985
+ let H = V != null && V !== "" ? v - 1 : v;
2986
+ O && (H = O === -1 ? v + 1 : O), C.push([E, H]);
2987
2987
  }
2988
- return b.sort(function(E, R) {
2989
- return E[1] - R[1];
2990
- }), b.map((E) => {
2988
+ return C.sort(function(E, O) {
2989
+ return E[1] - O[1];
2990
+ }), C.map((E) => {
2991
2991
  var Q;
2992
- const R = E[0], G = f[R], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[R]) || {};
2992
+ const O = E[0], V = f[O], H = ((Q = i.policyConfigSchema) == null ? void 0 : Q[O]) || {};
2993
2993
  return {
2994
- key: R,
2995
- value: G,
2994
+ key: O,
2995
+ value: V,
2996
2996
  hidden: H.hidden || !1,
2997
- type: H.type ?? Y.Text,
2998
- label: H.label ?? a(R),
2997
+ type: H.type ?? W.Text,
2998
+ label: H.label ?? a(O),
2999
2999
  tooltip: H.tooltip ?? void 0,
3000
3000
  section: ae.Policy
3001
3001
  };
3002
3002
  }).filter((E) => !E.hidden);
3003
- }), X = $(() => {
3004
- var f, v, b, V, J, E;
3003
+ }), ee = S(() => {
3004
+ var f, v, C, Y, G, E;
3005
3005
  return {
3006
- basic: (f = x.value) == null ? void 0 : f.filter((R) => R.section === ae.Basic),
3007
- advanced: (v = x.value) == null ? void 0 : v.filter((R) => R.section === ae.Advanced),
3008
- plugin: (V = B.value) == null ? void 0 : V.concat((b = x.value) == null ? void 0 : b.filter((R) => R.section === ae.Plugin)),
3009
- policy: (E = j.value) == null ? void 0 : E.concat((J = x.value) == null ? void 0 : J.filter((R) => R.section === ae.Policy))
3006
+ basic: (f = A.value) == null ? void 0 : f.filter((O) => O.section === ae.Basic),
3007
+ advanced: (v = A.value) == null ? void 0 : v.filter((O) => O.section === ae.Advanced),
3008
+ plugin: (Y = B.value) == null ? void 0 : Y.concat((C = A.value) == null ? void 0 : C.filter((O) => O.section === ae.Plugin)),
3009
+ policy: (E = P.value) == null ? void 0 : E.concat((G = A.value) == null ? void 0 : G.filter((O) => O.section === ae.Policy))
3010
3010
  };
3011
- }), S = $(() => {
3011
+ }), M = S(() => {
3012
3012
  const f = [];
3013
- return X.value.basic.length && f.push("basic"), X.value.advanced.length && f.push("advanced"), X.value.plugin.length && f.push("plugin"), X.value.policy.length && f.push("policy"), f;
3014
- }), w = $(() => {
3015
- var v, b;
3013
+ return ee.value.basic.length && f.push("basic"), ee.value.advanced.length && f.push("advanced"), ee.value.plugin.length && f.push("plugin"), ee.value.policy.length && f.push("policy"), f;
3014
+ }), F = S(() => {
3015
+ var v, C;
3016
3016
  let f = `${i.config.apiBaseUrl}${i.fetchUrl}`;
3017
- return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (b = i.config) != null && b.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
3017
+ return i.config.app === "konnect" ? f = f.replace(/{controlPlaneId}/gi, ((v = i.config) == null ? void 0 : v.controlPlaneId) || "") : i.config.app === "kongManager" && (f = f.replace(/\/{workspace}/gi, (C = i.config) != null && C.workspace ? `/${i.config.workspace}` : "")), f = f.replace(/{id}/gi, i.config.entityId), f;
3018
3018
  });
3019
3019
  return be(y, (f) => {
3020
3020
  n("loading", f);
3021
3021
  }, { immediate: !0 }), rt(async () => {
3022
3022
  h.value = !1, y.value = !0;
3023
3023
  try {
3024
- const { data: f } = await l.get(w.value);
3024
+ const { data: f } = await l.get(F.value);
3025
3025
  if (i.dataKey)
3026
3026
  if (typeof f[i.dataKey] < "u")
3027
- C.value = { ...f[i.dataKey] };
3027
+ k.value = { ...f[i.dataKey] };
3028
3028
  else
3029
3029
  throw new Error(r("errors.dataKeyUndefined", { dataKey: i.dataKey }));
3030
- else i.recordResolver ? C.value = { ...i.recordResolver(f) } : C.value = { ...f };
3031
- Object.keys(i.configSchema).filter((b) => i.configSchema[b].forceShow).forEach((b) => {
3032
- C.value && typeof C.value[b] > "u" && (C.value[b] = null);
3030
+ else i.recordResolver ? k.value = { ...i.recordResolver(f) } : k.value = { ...f };
3031
+ Object.keys(i.configSchema).filter((C) => i.configSchema[C].forceShow).forEach((C) => {
3032
+ k.value && typeof k.value[C] > "u" && (k.value[C] = null);
3033
3033
  }), n("fetch:success", f);
3034
3034
  } catch (f) {
3035
3035
  const v = o(f);
3036
- k.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, h.value = !0, n("fetch:error", f);
3036
+ b.value = v.startsWith("code") ? r("baseConfigCard.errors.load") : v, h.value = !0, n("fetch:error", f);
3037
3037
  } finally {
3038
3038
  y.value = !1;
3039
3039
  }
3040
3040
  }), (f, v) => {
3041
- const b = D("KLabel"), V = D("KSelect"), J = D("KButton"), E = D("KSkeleton"), R = D("KEmptyState"), G = D("KCard");
3042
- return g(), N(G, {
3041
+ const C = j("KLabel"), Y = j("KSelect"), G = j("KButton"), E = j("KSkeleton"), O = j("KEmptyState"), V = j("KCard");
3042
+ return g(), K(V, {
3043
3043
  class: "kong-ui-entity-base-config-card",
3044
3044
  "title-tag": e.titleTag
3045
3045
  }, ke({
3046
- actions: _(() => [
3046
+ actions: w(() => [
3047
3047
  L("div", il, [
3048
3048
  U(f.$slots, "actions", {}, void 0, !0),
3049
- K(b, {
3049
+ R(C, {
3050
3050
  class: "config-format-select-label",
3051
3051
  "data-testid": "config-format-select-label"
3052
3052
  }, {
3053
- default: _(() => [
3054
- q(O(e.label), 1)
3053
+ default: w(() => [
3054
+ q(I(e.label), 1)
3055
3055
  ]),
3056
3056
  _: 1
3057
3057
  }),
3058
- K(V, {
3058
+ R(Y, {
3059
3059
  modelValue: d.value,
3060
3060
  "onUpdate:modelValue": v[0] || (v[0] = (H) => d.value = H),
3061
3061
  "data-testid": "select-config-format",
3062
3062
  items: s,
3063
3063
  onChange: u
3064
3064
  }, null, 8, ["modelValue"]),
3065
- e.configCardDoc ? (g(), N(J, {
3065
+ e.configCardDoc ? (g(), K(G, {
3066
3066
  key: 0,
3067
3067
  appearance: "tertiary",
3068
3068
  class: "book-icon",
3069
3069
  "data-testid": "book-icon"
3070
3070
  }, {
3071
- default: _(() => [
3071
+ default: w(() => [
3072
3072
  L("a", {
3073
3073
  href: e.configCardDoc,
3074
3074
  rel: "noopener",
3075
3075
  target: "_blank"
3076
3076
  }, [
3077
- K(A(Jt), { size: A(fr) }, null, 8, ["size"])
3077
+ R(_(Jt), { size: _(fr) }, null, 8, ["size"])
3078
3078
  ], 8, rl)
3079
3079
  ]),
3080
3080
  _: 1
3081
- })) : P("", !0)
3081
+ })) : D("", !0)
3082
3082
  ])
3083
3083
  ]),
3084
- default: _(() => [
3085
- y.value ? (g(), N(E, {
3084
+ default: w(() => [
3085
+ y.value ? (g(), K(E, {
3086
3086
  key: 0,
3087
3087
  "data-testid": "config-card-loader",
3088
3088
  "table-columns": 2,
3089
3089
  type: "table"
3090
- })) : h.value ? (g(), N(R, {
3090
+ })) : h.value ? (g(), K(O, {
3091
3091
  key: 1,
3092
3092
  "data-testid": "config-card-fetch-error",
3093
3093
  "icon-variant": "error"
3094
3094
  }, {
3095
- default: _(() => [
3096
- L("h3", null, O(k.value), 1)
3095
+ default: w(() => [
3096
+ L("h3", null, I(b.value), 1)
3097
3097
  ]),
3098
3098
  _: 1
3099
- })) : P("", !0),
3099
+ })) : D("", !0),
3100
3100
  L("div", al, [
3101
- K(tl, {
3101
+ R(tl, {
3102
3102
  "code-block-record-formatter": e.codeBlockRecordFormatter,
3103
3103
  config: e.config,
3104
3104
  "entity-type": e.entityType,
3105
- "fetcher-url": w.value,
3105
+ "fetcher-url": F.value,
3106
3106
  format: d.value,
3107
- "prop-list-types": S.value,
3108
- "property-collections": X.value,
3109
- record: C.value,
3107
+ "prop-list-types": M.value,
3108
+ "property-collections": ee.value,
3109
+ record: k.value,
3110
3110
  "sub-entity-type": e.subEntityType
3111
3111
  }, ke({ _: 2 }, [
3112
3112
  ce(Object.keys(f.$slots), (H) => ({
3113
3113
  name: H,
3114
- fn: _((Q) => [
3115
- U(f.$slots, H, Yt({ record: C.value }, Q), void 0, !0)
3114
+ fn: w((Q) => [
3115
+ U(f.$slots, H, Yt({ record: k.value }, Q), void 0, !0)
3116
3116
  ])
3117
3117
  }))
3118
3118
  ]), 1032, ["code-block-record-formatter", "config", "entity-type", "fetcher-url", "format", "prop-list-types", "property-collections", "record", "sub-entity-type"])
@@ -3122,10 +3122,10 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3122
3122
  }, [
3123
3123
  e.hideTitle ? void 0 : {
3124
3124
  name: "title",
3125
- fn: _(() => [
3125
+ fn: w(() => [
3126
3126
  L("span", nl, [
3127
3127
  U(f.$slots, "title", {}, () => [
3128
- q(O(A(r)("baseConfigCard.title")), 1)
3128
+ q(I(_(r)("baseConfigCard.title")), 1)
3129
3129
  ], !0)
3130
3130
  ])
3131
3131
  ]),
@@ -3146,26 +3146,26 @@ const Go = { class: "yaml-config config-card-code-block" }, Jn = /* @__PURE__ */
3146
3146
  workspace: {}
3147
3147
  },
3148
3148
  setup(e) {
3149
- const t = e, { i18n: n, i18nT: i } = W.useI18n(), r = [
3149
+ const t = e, { i18n: n, i18nT: i } = J.useI18n(), r = [
3150
3150
  { value: "bash", label: "Linux / macOS Bash" },
3151
3151
  { value: "powershell", label: "Windows PowerShell" }
3152
- ], o = M(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = $(() => {
3152
+ ], o = N(navigator.userAgent.toLowerCase().includes("windows") ? "powershell" : "bash"), a = S(() => {
3153
3153
  const d = {
3154
3154
  _format_version: "3.0"
3155
3155
  };
3156
3156
  return t.controlPlaneName ? d._konnect = {
3157
3157
  control_plane_name: t.controlPlaneName
3158
3158
  } : t.workspace && (d._workspace = t.workspace), d;
3159
- }), l = $(() => {
3160
- var m, y, h, k, C;
3161
- const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, x]) => x !== null && x !== "" && (Array.isArray(x) ? x.length !== 0 : !0)));
3162
- t.entityType === $e.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (h = d.consumer) != null && h.id && (d.consumer = d.consumer.id), (k = d.consumer_group) != null && k.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === $e.Key && (C = d.key_set) != null && C.id && (d.key_set = d.key_set.id);
3159
+ }), l = S(() => {
3160
+ var m, y, h, b, k;
3161
+ const d = Object.fromEntries(Object.entries(t.entityRecord).filter(([, A]) => A !== null && A !== "" && (Array.isArray(A) ? A.length !== 0 : !0)));
3162
+ t.entityType === $e.Plugin ? ((m = d.service) != null && m.id && (d.service = d.service.id), (y = d.route) != null && y.id && (d.route = d.route.id), (h = d.consumer) != null && h.id && (d.consumer = d.consumer.id), (b = d.consumer_group) != null && b.id && (d.consumer_group = d.consumer_group.id)) : t.entityType === $e.Key && (k = d.key_set) != null && k.id && (d.key_set = d.key_set.id);
3163
3163
  const u = t.entityType === $e.KeySet ? "key_sets" : t.entityType + "s", p = {
3164
3164
  ...a.value,
3165
3165
  [u]: [d]
3166
3166
  };
3167
3167
  return Wn.dump(p, { quotingType: '"' }).trim();
3168
- }), s = $(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = $(() => {
3168
+ }), s = S(() => o.value === "bash" ? "export DECK_KONNECT_TOKEN='YOUR_KONNECT_PAT'" : '$env:DECK_KONNECT_TOKEN = "YOUR_KONNECT_PAT"'), c = S(() => {
3169
3169
  let d = "deck gateway apply -";
3170
3170
  return t.geoApiServerUrl ? d += ` --konnect-addr ${t.geoApiServerUrl}` : t.kongAdminApiUrl && (d += ` --kong-addr ${t.kongAdminApiUrl}`), o.value === "bash" ? `echo '
3171
3171
  ${l.value}
@@ -3174,74 +3174,74 @@ ${l.value}
3174
3174
  '@ | ${d}`;
3175
3175
  });
3176
3176
  return (d, u) => {
3177
- const p = D("KSelect"), m = D("KBadge"), y = D("KCodeBlock");
3178
- return g(), T("div", ll, [
3179
- K(p, {
3177
+ const p = j("KSelect"), m = j("KBadge"), y = j("KCodeBlock");
3178
+ return g(), $("div", ll, [
3179
+ R(p, {
3180
3180
  modelValue: o.value,
3181
3181
  "onUpdate:modelValue": u[0] || (u[0] = (h) => o.value = h),
3182
3182
  items: r
3183
3183
  }, {
3184
- "item-template": _(({ item: h }) => [
3185
- h.value === "powershell" ? (g(), N(A(ht), { key: 0 })) : (g(), N(A(yt), { key: 1 })),
3186
- q(" " + O(h.label), 1)
3184
+ "item-template": w(({ item: h }) => [
3185
+ h.value === "powershell" ? (g(), K(_(ht), { key: 0 })) : (g(), K(_(yt), { key: 1 })),
3186
+ q(" " + I(h.label), 1)
3187
3187
  ]),
3188
- "selected-item-template": _(({ item: h }) => [
3189
- h.value === "powershell" ? (g(), N(A(ht), { key: 0 })) : (g(), N(A(yt), { key: 1 })),
3190
- q(" " + O(h.label), 1)
3188
+ "selected-item-template": w(({ item: h }) => [
3189
+ h.value === "powershell" ? (g(), K(_(ht), { key: 0 })) : (g(), K(_(yt), { key: 1 })),
3190
+ q(" " + I(h.label), 1)
3191
3191
  ]),
3192
3192
  _: 1
3193
3193
  }, 8, ["modelValue"]),
3194
- L("p", null, [
3195
- K(A(i), {
3196
- keypath: `deckCodeBlock.hint.${e.app}`
3197
- }, ke({
3198
- link: _(() => [
3199
- K(A(oi), {
3200
- href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
3201
- }, {
3202
- default: _(() => [
3203
- q(O(A(n).t("deckCodeBlock.documentation")), 1)
3204
- ]),
3194
+ R(_(i), {
3195
+ "data-testid": `deck-hint-${e.app}`,
3196
+ keypath: `deckCodeBlock.hint.${e.app}`,
3197
+ tag: "p"
3198
+ }, ke({
3199
+ link: w(() => [
3200
+ R(_(oi), {
3201
+ href: e.app === "konnect" ? "https://developer.konghq.com/deck/get-started/" : "https://developer.konghq.com/deck/gateway/configuration/"
3202
+ }, {
3203
+ default: w(() => [
3204
+ q(I(_(n).t("deckCodeBlock.documentation")), 1)
3205
+ ]),
3206
+ _: 1
3207
+ }, 8, ["href"])
3208
+ ]),
3209
+ _: 2
3210
+ }, [
3211
+ e.app === "konnect" ? {
3212
+ name: "token",
3213
+ fn: w(() => [
3214
+ R(m, null, {
3215
+ default: w(() => [...u[1] || (u[1] = [
3216
+ q("DECK_KONNECT_TOKEN", -1)
3217
+ ])]),
3205
3218
  _: 1
3206
- }, 8, ["href"])
3219
+ })
3207
3220
  ]),
3208
- _: 2
3209
- }, [
3210
- e.app === "konnect" ? {
3211
- name: "token",
3212
- fn: _(() => [
3213
- K(m, null, {
3214
- default: _(() => [...u[1] || (u[1] = [
3215
- q("DECK_KONNECT_TOKEN", -1)
3216
- ])]),
3217
- _: 1
3218
- })
3219
- ]),
3220
- key: "0"
3221
- } : void 0
3222
- ]), 1032, ["keypath"])
3223
- ]),
3224
- e.app === "konnect" ? (g(), N(y, {
3221
+ key: "0"
3222
+ } : void 0
3223
+ ]), 1032, ["data-testid", "keypath"]),
3224
+ e.app === "konnect" ? (g(), K(y, {
3225
3225
  key: 0,
3226
3226
  id: "deck-env-codeblock",
3227
3227
  code: s.value,
3228
3228
  language: o.value,
3229
3229
  "single-line": "",
3230
3230
  theme: "dark",
3231
- onCodeBlockRender: A(Te)
3232
- }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0),
3233
- t.entityRecord ? (g(), N(y, {
3231
+ onCodeBlockRender: _(Te)
3232
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0),
3233
+ t.entityRecord ? (g(), K(y, {
3234
3234
  key: 1,
3235
3235
  id: "deck-codeblock",
3236
3236
  code: c.value,
3237
3237
  language: o.value,
3238
3238
  theme: "dark",
3239
- onCodeBlockRender: A(Te)
3240
- }, null, 8, ["code", "language", "onCodeBlockRender"])) : P("", !0)
3239
+ onCodeBlockRender: _(Te)
3240
+ }, null, 8, ["code", "language", "onCodeBlockRender"])) : D("", !0)
3241
3241
  ]);
3242
3242
  };
3243
3243
  }
3244
- }), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-bae91adb"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
3244
+ }), cl = /* @__PURE__ */ le(sl, [["__scopeId", "data-v-04c956bc"]]), ul = ["novalidate"], dl = /* @__PURE__ */ z({
3245
3245
  __name: "EntityBaseForm",
3246
3246
  props: {
3247
3247
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3364,20 +3364,20 @@ ${l.value}
3364
3364
  },
3365
3365
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel", "codeBlockTabChange"],
3366
3366
  setup(e, { expose: t, emit: n }) {
3367
- var X;
3368
- const i = n, r = e, o = gi(), { i18n: { t: a } } = W.useI18n(), { getMessageFromError: l } = W.useErrors(), { axiosInstance: s } = W.useAxios((X = r.config) == null ? void 0 : X.axiosRequestConfig), c = M(!1), d = $(() => !!r.editId), u = M(!1), p = M(""), m = $(() => r.canSubmit === !1 || r.isReadonly), y = M(!1), h = $(() => {
3369
- var w, F;
3370
- let S = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3371
- return r.config.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, (F = r.config) != null && F.workspace ? `/${r.config.workspace}` : "")), r.editId ? (S = S.replace(/{id}/gi, r.editId), S) : (S = S.replace(/\/{id}/gi, ""), S);
3372
- }), k = () => {
3367
+ var F;
3368
+ const i = n, r = e, o = gi(), { i18n: { t: a } } = J.useI18n(), { getMessageFromError: l } = J.useErrors(), { axiosInstance: s } = J.useAxios((F = r.config) == null ? void 0 : F.axiosRequestConfig), c = N(!1), d = S(() => !!r.editId), u = N(!1), p = N(""), m = S(() => r.canSubmit === !1 || r.isReadonly), y = N(!1), h = S(() => {
3369
+ var f, v;
3370
+ let x = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3371
+ return r.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((f = r.config) == null ? void 0 : f.controlPlaneId) || "") : r.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (v = r.config) != null && v.workspace ? `/${r.config.workspace}` : "")), r.editId ? (x = x.replace(/{id}/gi, r.editId), x) : (x = x.replace(/\/{id}/gi, ""), x);
3372
+ }), b = () => {
3373
3373
  y.value = !y.value;
3374
- }, C = () => {
3375
- r.config.cancelRoute ? o.push(r.config.cancelRoute) : x();
3376
- }, x = () => {
3374
+ }, k = () => {
3375
+ r.config.cancelRoute ? o.push(r.config.cancelRoute) : A();
3376
+ }, A = () => {
3377
3377
  i("cancel");
3378
3378
  }, B = () => {
3379
3379
  m.value || i("submit");
3380
- }, j = M([
3380
+ }, P = N([
3381
3381
  {
3382
3382
  title: a("baseForm.configuration.json"),
3383
3383
  hash: "#json"
@@ -3387,63 +3387,65 @@ ${l.value}
3387
3387
  hash: "#yaml"
3388
3388
  }
3389
3389
  ]);
3390
- return r.config.app === "konnect" && r.entityType !== $e.Other && j.value.splice(1, 0, {
3390
+ r.config.app === "konnect" && r.entityType !== $e.Other && P.value.splice(1, 0, {
3391
3391
  title: a("baseForm.configuration.terraform"),
3392
3392
  hash: "#terraform"
3393
- }), r.config.app === "konnect" && r.config.enableDeckTab && vi.includes(r.entityType) && j.value.push({
3393
+ });
3394
+ const ee = vi.includes(r.entityType);
3395
+ return (r.config.app === "kongManager" || r.config.enableDeckTab) && ee && P.value.push({
3394
3396
  title: a("baseForm.configuration.deck"),
3395
3397
  hash: "#deck"
3396
- }), be(() => c.value, (S) => {
3397
- i("loading", S);
3398
+ }), be(() => c.value, (x) => {
3399
+ i("loading", x);
3398
3400
  }, { immediate: !0 }), rt(async () => {
3399
3401
  if (r.editId)
3400
3402
  try {
3401
3403
  u.value = !1, c.value = !0;
3402
- const { data: S } = await s.get(h.value);
3403
- i("fetch:success", S);
3404
- } catch (S) {
3405
- const w = l(S);
3406
- p.value = w.startsWith("code") ? a("baseForm.errors.edit") : w, u.value = !0, i("fetch:error", S);
3404
+ const { data: x } = await s.get(h.value);
3405
+ i("fetch:success", x);
3406
+ } catch (x) {
3407
+ const f = l(x);
3408
+ p.value = f.startsWith("code") ? a("baseForm.errors.edit") : f, u.value = !0, i("fetch:error", x);
3407
3409
  } finally {
3408
3410
  c.value = !1;
3409
3411
  }
3410
3412
  }), t({
3411
- viewConfig: k,
3412
- formCancel: x,
3413
+ viewConfig: b,
3414
+ formCancel: A,
3413
3415
  formSubmit: B
3414
- }), (S, w) => {
3415
- const F = D("KSkeleton"), f = D("KEmptyState"), v = D("KAlert"), b = D("KButton"), V = D("KTabs"), J = D("KSlideout");
3416
- return g(), N(De(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3417
- default: _(() => [
3418
- c.value ? (g(), N(F, {
3416
+ }), (x, f) => {
3417
+ const v = j("KSkeleton"), C = j("KEmptyState"), Y = j("KAlert"), G = j("KButton"), E = j("KTabs"), O = j("KSlideout");
3418
+ return g(), K(je(e.wrapperComponent), { class: "kong-ui-entity-base-form" }, {
3419
+ default: w(() => [
3420
+ c.value ? (g(), K(v, {
3419
3421
  key: 0,
3420
3422
  type: "form"
3421
- })) : u.value ? (g(), N(f, {
3423
+ })) : u.value ? (g(), K(C, {
3422
3424
  key: 1,
3423
- "action-button-text": A(a)("baseForm.actions.back"),
3425
+ "action-button-text": _(a)("baseForm.actions.back"),
3424
3426
  "data-testid": "form-fetch-error",
3425
3427
  "icon-variant": "error",
3426
- onClickAction: C
3428
+ onClickAction: k
3427
3429
  }, {
3428
- default: _(() => [
3429
- L("h3", null, O(p.value), 1)
3430
+ default: w(() => [
3431
+ L("h3", null, I(p.value), 1)
3430
3432
  ]),
3431
3433
  _: 1
3432
- }, 8, ["action-button-text"])) : (g(), T("form", {
3434
+ }, 8, ["action-button-text"])) : (g(), $("form", {
3433
3435
  key: 2,
3434
3436
  "data-testid": "form-content",
3435
3437
  novalidate: r.noValidate,
3436
- onReset: Re(x, ["prevent"]),
3438
+ onReset: Re(A, ["prevent"]),
3437
3439
  onSubmit: Re(B, ["prevent"])
3438
3440
  }, [
3439
- U(S.$slots, "default", {}, void 0, !0),
3440
- e.errorMessage ? (g(), N(v, {
3441
+ U(x.$slots, "default", {}, void 0, !0),
3442
+ e.errorMessage ? (g(), K(Y, {
3441
3443
  key: 0,
3442
3444
  appearance: "danger",
3443
3445
  "data-testid": "form-error",
3444
3446
  message: e.errorMessage
3445
- }, null, 8, ["message"])) : P("", !0),
3446
- e.hideActions ? P("", !0) : (g(), N(Wt, {
3447
+ }, null, 8, ["message"])) : D("", !0),
3448
+ e.hideActions ? D("", !0) : (g(), K(Wt, {
3447
3449
  key: 1,
3448
3450
  disabled: !e.actionTeleportTarget,
3449
3451
  to: e.actionTeleportTarget
@@ -3452,38 +3454,38 @@ ${l.value}
3452
3454
  class: fe(["form-actions", { "form-actions-reverted": e.alignActionButtonToLeft }]),
3453
3455
  "data-testid": "form-actions"
3454
3456
  }, [
3455
- U(S.$slots, "form-actions", {}, () => [
3456
- K(b, {
3457
+ U(x.$slots, "form-actions", {}, () => [
3458
+ R(G, {
3457
3459
  appearance: "tertiary",
3458
3460
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-view-configuration`,
3459
- onClick: w[0] || (w[0] = (E) => k())
3461
+ onClick: f[0] || (f[0] = (V) => b())
3460
3462
  }, {
3461
- default: _(() => [
3462
- q(O(A(a)("baseForm.actions.viewConfiguration")), 1)
3463
+ default: w(() => [
3464
+ q(I(_(a)("baseForm.actions.viewConfiguration")), 1)
3463
3465
  ]),
3464
3466
  _: 1
3465
3467
  }, 8, ["data-testid"]),
3466
- K(b, {
3468
+ R(G, {
3467
3469
  appearance: "secondary",
3468
3470
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-cancel`,
3469
3471
  disabled: e.isReadonly,
3470
3472
  type: "reset",
3471
- onClick: w[1] || (w[1] = (E) => !!e.actionTeleportTarget && x())
3473
+ onClick: f[1] || (f[1] = (V) => !!e.actionTeleportTarget && A())
3472
3474
  }, {
3473
- default: _(() => [
3474
- q(O(e.cancelButtonText ?? A(a)("baseForm.actions.cancel")), 1)
3475
+ default: w(() => [
3476
+ q(I(e.cancelButtonText ?? _(a)("baseForm.actions.cancel")), 1)
3475
3477
  ]),
3476
3478
  _: 1
3477
3479
  }, 8, ["data-testid", "disabled"]),
3478
- K(b, {
3480
+ R(G, {
3479
3481
  appearance: "primary",
3480
3482
  "data-testid": `${e.entityType}-${d.value ? "edit" : "create"}-form-submit`,
3481
3483
  disabled: m.value,
3482
3484
  type: "submit",
3483
- onClick: w[2] || (w[2] = (E) => !!e.actionTeleportTarget && B())
3485
+ onClick: f[2] || (f[2] = (V) => !!e.actionTeleportTarget && B())
3484
3486
  }, {
3485
- default: _(() => [
3486
- q(O(e.saveButtonText ?? A(a)("baseForm.actions.save")), 1)
3487
+ default: w(() => [
3488
+ q(I(e.saveButtonText ?? _(a)("baseForm.actions.save")), 1)
3487
3489
  ]),
3488
3490
  _: 1
3489
3491
  }, 8, ["data-testid", "disabled"])
@@ -3491,50 +3493,50 @@ ${l.value}
3491
3493
  ], 2)
3492
3494
  ], 8, ["disabled", "to"]))
3493
3495
  ], 40, ul)),
3494
- K(J, {
3496
+ R(O, {
3495
3497
  "close-on-blur": !1,
3496
3498
  "data-testid": "form-view-configuration-slideout",
3497
3499
  "has-overlay": !1,
3498
3500
  "offset-top": e.slidoutTopOffset,
3499
- title: A(a)("baseForm.configuration.title"),
3501
+ title: _(a)("baseForm.configuration.title"),
3500
3502
  visible: y.value,
3501
- onClose: w[4] || (w[4] = (E) => k())
3503
+ onClose: f[4] || (f[4] = (V) => b())
3502
3504
  }, {
3503
- default: _(() => [
3504
- L("div", null, O(A(a)("baseForm.configuration.message")), 1),
3505
- K(V, {
3505
+ default: w(() => [
3506
+ L("div", null, I(_(a)("baseForm.configuration.message")), 1),
3507
+ R(E, {
3506
3508
  "data-testid": "form-view-configuration-slideout-tabs",
3507
- tabs: j.value,
3508
- onChange: w[3] || (w[3] = (E) => i("codeBlockTabChange", E.replace("#", "")))
3509
+ tabs: P.value,
3510
+ onChange: f[3] || (f[3] = (V) => i("codeBlockTabChange", V.replace("#", "")))
3509
3511
  }, {
3510
- json: _(() => [
3511
- K(rn, {
3512
+ json: w(() => [
3513
+ R(rn, {
3512
3514
  config: e.config,
3513
3515
  "entity-record": r.formFields,
3514
3516
  "fetcher-url": h.value,
3515
3517
  "request-method": r.editId ? "put" : "post"
3516
3518
  }, null, 8, ["config", "entity-record", "fetcher-url", "request-method"])
3517
3519
  ]),
3518
- yaml: _(() => [
3519
- K(Jn, {
3520
+ yaml: w(() => [
3521
+ R(Jn, {
3520
3522
  "entity-record": r.formFields
3521
3523
  }, null, 8, ["entity-record"])
3522
3524
  ]),
3523
- terraform: _(() => [
3524
- K(Gn, {
3525
+ terraform: w(() => [
3526
+ R(Gn, {
3525
3527
  "entity-record": r.formFields,
3526
3528
  "entity-type": e.entityType,
3527
3529
  "sub-entity-type": e.subEntityType
3528
3530
  }, null, 8, ["entity-record", "entity-type", "sub-entity-type"])
3529
3531
  ]),
3530
- deck: _(() => [
3531
- K(cl, {
3532
+ deck: w(() => [
3533
+ R(cl, {
3532
3534
  app: e.config.app,
3533
3535
  "control-plane-name": e.config.app === "konnect" ? e.config.controlPlaneName : void 0,
3534
3536
  "entity-record": r.formFields,
3535
3537
  "entity-type": e.entityType,
3536
3538
  "geo-api-server-url": e.config.app === "konnect" ? e.config.geoApiServerUrl : void 0,
3537
- "kong-admin-api-url": e.config.app === "kongManager" ? e.config.kongAdminApiUrl : void 0,
3539
+ "kong-admin-api-url": e.config.app === "kongManager" ? e.config.apiBaseUrl : void 0,
3538
3540
  workspace: e.config.app === "kongManager" ? e.config.workspace : void 0
3539
3541
  }, null, 8, ["app", "control-plane-name", "entity-record", "entity-type", "geo-api-server-url", "kong-admin-api-url", "workspace"])
3540
3542
  ]),
@@ -3548,7 +3550,7 @@ ${l.value}
3548
3550
  });
3549
3551
  };
3550
3552
  }
3551
- }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-f38ef70b"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3553
+ }), Os = /* @__PURE__ */ le(dl, [["__scopeId", "data-v-1db7c290"]]), fl = ["data-truncate"], pl = /* @__PURE__ */ z({
3552
3554
  __name: "EntityBaseTableCell",
3553
3555
  props: {
3554
3556
  keyName: {
@@ -3565,69 +3567,69 @@ ${l.value}
3565
3567
  }
3566
3568
  },
3567
3569
  setup(e) {
3568
- const t = e, n = $(() => {
3569
- var k;
3570
- return ((k = t.rowEl) == null ? void 0 : k.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3571
- }), i = $(() => {
3572
- var k;
3573
- return ((k = n.value) == null ? void 0 : k.querySelector('[data-truncate="true"]')) || null;
3574
- }), r = $(() => {
3575
- var C, x;
3576
- const k = (C = t.rowEl) == null ? void 0 : C.querySelectorAll("td");
3577
- return k ? ((x = k[0]) == null ? void 0 : x.getAttribute("data-testid")) === t.keyName : !0;
3578
- }), o = $(() => r.value || t.tooltip);
3570
+ const t = e, n = S(() => {
3571
+ var b;
3572
+ return ((b = t.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${t.keyName}"]`)) || null;
3573
+ }), i = S(() => {
3574
+ var b;
3575
+ return ((b = n.value) == null ? void 0 : b.querySelector('[data-truncate="true"]')) || null;
3576
+ }), r = S(() => {
3577
+ var k, A;
3578
+ const b = (k = t.rowEl) == null ? void 0 : k.querySelectorAll("td");
3579
+ return b ? ((A = b[0]) == null ? void 0 : A.getAttribute("data-testid")) === t.keyName : !0;
3580
+ }), o = S(() => r.value || t.tooltip);
3579
3581
  let a;
3580
3582
  const l = () => {
3581
3583
  a && (a.disconnect(), a = void 0);
3582
3584
  }, s = () => {
3583
- var C, x, B;
3584
- let k = ((C = n.value) == null ? void 0 : C.clientWidth) || 0;
3585
+ var k, A, B;
3586
+ let b = ((k = n.value) == null ? void 0 : k.clientWidth) || 0;
3585
3587
  if (n.value && "getComputedStyle" in window) {
3586
- const j = window.getComputedStyle(n.value);
3587
- k -= (parseFloat(j.paddingLeft) || 0) + (parseFloat(j.paddingRight) || 0);
3588
+ const P = window.getComputedStyle(n.value);
3589
+ b -= (parseFloat(P.paddingLeft) || 0) + (parseFloat(P.paddingRight) || 0);
3588
3590
  }
3589
- d.value = ((x = i.value) == null ? void 0 : x.getBoundingClientRect().width) || 0, u.value = k, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
3590
- }, c = M({}), d = M(0), u = M(0), p = M(""), m = $(() => [i.value, n.value]), y = be(
3591
+ d.value = ((A = i.value) == null ? void 0 : A.getBoundingClientRect().width) || 0, u.value = b, p.value = ((B = c.value) == null ? void 0 : B.innerText) || "";
3592
+ }, c = N({}), d = N(0), u = N(0), p = N(""), m = S(() => [i.value, n.value]), y = be(
3591
3593
  m,
3592
- (k) => {
3594
+ (b) => {
3593
3595
  if (o.value && (l(), "ResizeObserver" in window && window)) {
3594
- a = new ResizeObserver((C) => {
3596
+ a = new ResizeObserver((k) => {
3595
3597
  window.requestAnimationFrame(() => {
3596
- !Array.isArray(C) || !C.length || s();
3598
+ !Array.isArray(k) || !k.length || s();
3597
3599
  });
3598
3600
  });
3599
- for (const C of k)
3600
- C && a.observe(C);
3601
+ for (const k of b)
3602
+ k && a.observe(k);
3601
3603
  }
3602
3604
  },
3603
3605
  { immediate: !0, flush: "post", deep: !0 }
3604
- ), h = $(() => o.value ? d.value > u.value : !1);
3606
+ ), h = S(() => o.value ? d.value > u.value : !1);
3605
3607
  return it(() => {
3606
3608
  s();
3607
3609
  }), ei(() => {
3608
3610
  y();
3609
- }), (k, C) => {
3610
- const x = D("KTooltip");
3611
- return g(), T("span", {
3611
+ }), (b, k) => {
3612
+ const A = j("KTooltip");
3613
+ return g(), $("span", {
3612
3614
  ref_key: "contentRef",
3613
3615
  ref: c,
3614
3616
  class: "content-wrapper"
3615
3617
  }, [
3616
- o.value ? (g(), T("span", {
3618
+ o.value ? (g(), $("span", {
3617
3619
  key: 0,
3618
3620
  "data-truncate": o.value || void 0
3619
3621
  }, [
3620
- K(x, {
3622
+ R(A, {
3621
3623
  "max-width": "300",
3622
3624
  placement: "bottom-start",
3623
3625
  text: h.value ? p.value : ""
3624
3626
  }, {
3625
- default: _(() => [
3626
- U(k.$slots, "default", {}, void 0, !0)
3627
+ default: w(() => [
3628
+ U(b.$slots, "default", {}, void 0, !0)
3627
3629
  ]),
3628
3630
  _: 3
3629
3631
  }, 8, ["text"])
3630
- ], 8, fl)) : U(k.$slots, "default", { key: 1 }, void 0, !0)
3632
+ ], 8, fl)) : U(b.$slots, "default", { key: 1 }, void 0, !0)
3631
3633
  ], 512);
3632
3634
  };
3633
3635
  }
@@ -3782,7 +3784,7 @@ ${l.value}
3782
3784
  },
3783
3785
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked", "state"],
3784
3786
  setup(e, { emit: t }) {
3785
- const n = e, i = t, { i18n: { t: r } } = W.useI18n(), o = $(() => {
3787
+ const n = e, i = t, { i18n: { t: r } } = J.useI18n(), o = S(() => {
3786
3788
  var f, v;
3787
3789
  return typeof n.errorMessage == "string" ? {
3788
3790
  hasError: !!n.errorMessage,
@@ -3793,15 +3795,15 @@ ${l.value}
3793
3795
  title: (f = n.errorMessage) == null ? void 0 : f.title,
3794
3796
  message: (v = n.errorMessage) == null ? void 0 : v.message
3795
3797
  };
3796
- }), a = $(() => n.cacheIdentifier || n.preferencesStorageKey), l = $(() => {
3798
+ }), a = S(() => n.cacheIdentifier || n.preferencesStorageKey), l = S(() => {
3797
3799
  const f = [];
3798
- return Object.keys(n.tableHeaders).forEach((b) => {
3799
- const V = n.tableHeaders[b];
3800
+ return Object.keys(n.tableHeaders).forEach((C) => {
3801
+ const Y = n.tableHeaders[C];
3800
3802
  f.push({
3801
- label: V.label ?? b,
3802
- key: b,
3803
- sortable: V.sortable ?? !1,
3804
- hidable: V.hidable ?? !0
3803
+ label: Y.label ?? C,
3804
+ key: C,
3805
+ sortable: Y.sortable ?? !1,
3806
+ hidable: Y.hidable ?? !0
3805
3807
  });
3806
3808
  }), n.enableEntityActions && f.push({
3807
3809
  key: "actions",
@@ -3811,7 +3813,7 @@ ${l.value}
3811
3813
  "data-rowid": f.id,
3812
3814
  "data-testid": f.name,
3813
3815
  ...n.rowAttributes(f)
3814
- }), c = M({}), d = (f) => {
3816
+ }), c = N({}), d = (f) => {
3815
3817
  var v;
3816
3818
  return (v = c.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${f.id}"]`);
3817
3819
  }, u = (f) => {
@@ -3825,49 +3827,49 @@ ${l.value}
3825
3827
  textOverflow: "ellipsis"
3826
3828
  }), v;
3827
3829
  }, p = (f) => {
3828
- x(f), i("state", f);
3830
+ A(f), i("state", f);
3829
3831
  }, m = () => {
3830
3832
  i("empty-state-cta-clicked"), y();
3831
3833
  }, y = () => {
3832
3834
  i("clear-search-input");
3833
- }, h = $(() => n.disableRowClick ? void 0 : (f, v) => {
3835
+ }, h = S(() => n.disableRowClick ? void 0 : (f, v) => {
3834
3836
  i("click:row", v);
3835
- }), k = (f) => {
3837
+ }), b = (f) => {
3836
3838
  i("sort", f);
3837
- }, { hideTableToolbar: C, handleStateChange: x } = W.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: j } = _i(), X = M(j(a.value, n.defaultTablePreferences)), S = $(() => {
3838
- const f = j(a.value);
3839
+ }, { hideTableToolbar: k, handleStateChange: A } = J.useTableState(() => n.query), { setTablePreferences: B, getTablePreferences: P } = _i(), ee = N(P(a.value, n.defaultTablePreferences)), M = S(() => {
3840
+ const f = P(a.value);
3839
3841
  return {
3840
3842
  ...n.initialFetcherParams,
3841
3843
  ...f
3842
3844
  };
3843
- }), w = (f) => {
3844
- X.value = f, l.value.forEach((v) => {
3845
- !("hidable" in v) || !X.value.columnVisibility || v.hidable === !1 && (X.value.columnVisibility[v.key] = !0);
3845
+ }), F = (f) => {
3846
+ ee.value = f, l.value.forEach((v) => {
3847
+ !("hidable" in v) || !ee.value.columnVisibility || v.hidable === !1 && (ee.value.columnVisibility[v.key] = !0);
3846
3848
  }), a.value && B(a.value, f);
3847
- }, F = $(() => ({
3849
+ }, x = S(() => ({
3848
3850
  disablePageJump: n.disablePaginationPageJump,
3849
3851
  offset: n.paginationType === "offset",
3850
3852
  ...n.paginationAttributes
3851
3853
  }));
3852
3854
  return (f, v) => {
3853
- const b = D("KTableData"), V = D("KCard");
3854
- return g(), N(V, {
3855
+ const C = j("KTableData"), Y = j("KCard");
3856
+ return g(), K(Y, {
3855
3857
  class: "kong-ui-entity-base-table",
3856
3858
  title: e.title,
3857
3859
  "title-tag": e.titleTag
3858
3860
  }, {
3859
- default: _(() => [
3860
- K(b, {
3861
+ default: w(() => [
3862
+ R(C, {
3861
3863
  ref_key: "tableRefs",
3862
3864
  ref: c,
3863
3865
  "cache-identifier": a.value,
3864
3866
  "cell-attrs": u,
3865
3867
  "client-sort": e.enableClientSort,
3866
- "empty-state-action-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3868
+ "empty-state-action-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
3867
3869
  "empty-state-action-route": e.query ? void 0 : e.emptyStateOptions.ctaPath,
3868
3870
  "empty-state-icon-variant": e.query ? "search" : "kong",
3869
- "empty-state-message": e.query ? A(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3870
- "empty-state-title": e.query ? A(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3871
+ "empty-state-message": e.query ? _(r)("baseTable.emptyState.noSearchResultsMessage") : e.emptyStateOptions.message,
3872
+ "empty-state-title": e.query ? _(r)("baseTable.emptyState.noSearchResultsTitle") : e.emptyStateOptions.title,
3871
3873
  error: o.value.hasError,
3872
3874
  "error-state-message": o.value.message,
3873
3875
  "error-state-title": o.value.title,
@@ -3876,58 +3878,58 @@ ${l.value}
3876
3878
  headers: l.value,
3877
3879
  "hide-pagination": e.hidePagination,
3878
3880
  "hide-pagination-when-optional": e.hidePaginationWhenOptional,
3879
- "hide-toolbar": e.hideToolbar ?? A(C),
3880
- "initial-fetcher-params": S.value,
3881
+ "hide-toolbar": e.hideToolbar ?? _(k),
3882
+ "initial-fetcher-params": M.value,
3881
3883
  loading: e.isLoading,
3882
- "pagination-attributes": F.value,
3884
+ "pagination-attributes": x.value,
3883
3885
  "resize-columns": "",
3884
3886
  "row-attrs": s,
3885
3887
  "row-key": e.rowKey,
3886
3888
  "search-input": e.query,
3887
3889
  "sort-handler-function": e.enableClientSort ? e.sortHandlerFunction : void 0,
3888
3890
  sortable: !e.disableSorting,
3889
- "table-preferences": X.value,
3891
+ "table-preferences": ee.value,
3890
3892
  onEmptyStateActionClick: m,
3891
3893
  "onRow:click": h.value,
3892
- onSort: v[0] || (v[0] = (J) => k(J)),
3894
+ onSort: v[0] || (v[0] = (G) => b(G)),
3893
3895
  onState: p,
3894
- "onUpdate:tablePreferences": w
3896
+ "onUpdate:tablePreferences": F
3895
3897
  }, ke({
3896
- toolbar: _(() => [
3898
+ toolbar: w(() => [
3897
3899
  L("div", gl, [
3898
3900
  U(f.$slots, "toolbar-filter", {}, void 0, !0),
3899
- f.$slots["toolbar-button"] ? (g(), T("div", hl, [
3901
+ f.$slots["toolbar-button"] ? (g(), $("div", hl, [
3900
3902
  U(f.$slots, "toolbar-button", {}, void 0, !0)
3901
- ])) : P("", !0)
3903
+ ])) : D("", !0)
3902
3904
  ])
3903
3905
  ]),
3904
- "action-items": _(({ row: J }) => [
3905
- U(f.$slots, "actions", { row: J }, void 0, !0)
3906
+ "action-items": w(({ row: G }) => [
3907
+ U(f.$slots, "actions", { row: G }, void 0, !0)
3906
3908
  ]),
3907
3909
  _: 2
3908
3910
  }, [
3909
3911
  f.$slots["empty-state"] ? {
3910
3912
  name: "empty-state",
3911
- fn: _(() => [
3913
+ fn: w(() => [
3912
3914
  U(f.$slots, "empty-state", {}, void 0, !0)
3913
3915
  ]),
3914
3916
  key: "0"
3915
3917
  } : void 0,
3916
- ce(e.tableHeaders, (J, E) => ({
3918
+ ce(e.tableHeaders, (G, E) => ({
3917
3919
  name: E,
3918
- fn: _(({ row: R, rowValue: G }) => [
3919
- K(ml, {
3920
+ fn: w(({ row: O, rowValue: V }) => [
3921
+ R(ml, {
3920
3922
  "key-name": String(E),
3921
- "row-el": d(R),
3922
- tooltip: J.tooltip
3923
+ "row-el": d(O),
3924
+ tooltip: G.tooltip
3923
3925
  }, {
3924
- default: _(() => [
3926
+ default: w(() => [
3925
3927
  U(f.$slots, E, {
3926
- row: R,
3928
+ row: O,
3927
3929
  rowKey: e.rowKey,
3928
- rowValue: G
3930
+ rowValue: V
3929
3931
  }, () => [
3930
- q(O(G), 1)
3932
+ q(I(V), 1)
3931
3933
  ], !0)
3932
3934
  ]),
3933
3935
  _: 2
@@ -3936,15 +3938,15 @@ ${l.value}
3936
3938
  })),
3937
3939
  e.query ? void 0 : {
3938
3940
  name: "empty-state-action-icon",
3939
- fn: _(() => [
3940
- K(A(Gt))
3941
+ fn: w(() => [
3942
+ R(_(Gt))
3941
3943
  ]),
3942
3944
  key: "1"
3943
3945
  }
3944
3946
  ]), 1032, ["cache-identifier", "client-sort", "empty-state-action-message", "empty-state-action-route", "empty-state-icon-variant", "empty-state-message", "empty-state-title", "error", "error-state-message", "error-state-title", "fetcher", "fetcher-cache-key", "headers", "hide-pagination", "hide-pagination-when-optional", "hide-toolbar", "initial-fetcher-params", "loading", "pagination-attributes", "row-key", "search-input", "sort-handler-function", "sortable", "table-preferences", "onRow:click"]),
3945
- f.$slots["outside-actions"] && A(C) ? (g(), T("div", yl, [
3947
+ f.$slots["outside-actions"] && _(k) ? (g(), $("div", yl, [
3946
3948
  U(f.$slots, "outside-actions", {}, void 0, !0)
3947
- ])) : P("", !0)
3949
+ ])) : D("", !0)
3948
3950
  ]),
3949
3951
  _: 3
3950
3952
  }, 8, ["title", "title-tag"]);
@@ -3995,14 +3997,14 @@ ${l.value}
3995
3997
  },
3996
3998
  emits: ["cancel", "proceed"],
3997
3999
  setup(e, { emit: t }) {
3998
- const { i18nT: n } = W.useI18n(), i = e, r = t, o = $(() => i.needConfirm ? i.entityName : ""), a = () => {
4000
+ const { i18nT: n } = J.useI18n(), i = e, r = t, o = S(() => i.needConfirm ? i.entityName : ""), a = () => {
3999
4001
  r("cancel");
4000
4002
  }, l = () => {
4001
4003
  r("proceed");
4002
4004
  };
4003
4005
  return (s, c) => {
4004
- const d = D("KAlert"), u = D("KPrompt");
4005
- return g(), N(u, {
4006
+ const d = j("KAlert"), u = j("KPrompt");
4007
+ return g(), K(u, {
4006
4008
  "action-button-appearance": "danger",
4007
4009
  "action-button-disabled": e.actionPending,
4008
4010
  "action-button-text": "Yes, delete",
@@ -4013,38 +4015,38 @@ ${l.value}
4013
4015
  onCancel: a,
4014
4016
  onProceed: l
4015
4017
  }, {
4016
- default: _(() => [
4017
- e.error ? (g(), T("div", bl, [
4018
- K(d, { appearance: "danger" }, {
4019
- default: _(() => [
4020
- q(O(e.error), 1)
4018
+ default: w(() => [
4019
+ e.error ? (g(), $("div", bl, [
4020
+ R(d, { appearance: "danger" }, {
4021
+ default: w(() => [
4022
+ q(I(e.error), 1)
4021
4023
  ]),
4022
4024
  _: 1
4023
4025
  })
4024
- ])) : P("", !0),
4025
- K(A(n), {
4026
+ ])) : D("", !0),
4027
+ R(_(n), {
4026
4028
  class: "message",
4027
4029
  keypath: i.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4028
4030
  tag: "p"
4029
4031
  }, ke({
4030
- entityType: _(() => [
4031
- q(O(i.entityType), 1)
4032
+ entityType: w(() => [
4033
+ q(I(i.entityType), 1)
4032
4034
  ]),
4033
4035
  _: 2
4034
4036
  }, [
4035
4037
  i.entityName ? {
4036
4038
  name: "entityName",
4037
- fn: _(() => [
4038
- L("strong", null, O(i.entityName), 1)
4039
+ fn: w(() => [
4040
+ L("strong", null, I(i.entityName), 1)
4039
4041
  ]),
4040
4042
  key: "0"
4041
4043
  } : void 0
4042
4044
  ]), 1032, ["keypath"]),
4043
- i.description || s.$slots.description ? (g(), T("div", kl, [
4045
+ i.description || s.$slots.description ? (g(), $("div", kl, [
4044
4046
  U(s.$slots, "description", {}, () => [
4045
- L("p", null, O(i.description), 1)
4047
+ L("p", null, I(i.description), 1)
4046
4048
  ], !0)
4047
- ])) : P("", !0)
4049
+ ])) : D("", !0)
4048
4050
  ]),
4049
4051
  _: 3
4050
4052
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
@@ -4064,7 +4066,7 @@ ${l.value}
4064
4066
  width: "20",
4065
4067
  x: "0",
4066
4068
  y: "0"
4067
- }, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], Dt = /* @__PURE__ */ z({
4069
+ }, _l = ["fill"], wl = { mask: "url(#mask0_180_20349)" }, Sl = ["fill"], jt = /* @__PURE__ */ z({
4068
4070
  __name: "IconFilter",
4069
4071
  props: {
4070
4072
  color: {
@@ -4073,7 +4075,7 @@ ${l.value}
4073
4075
  }
4074
4076
  },
4075
4077
  setup(e) {
4076
- return (t, n) => (g(), T("svg", xl, [
4078
+ return (t, n) => (g(), $("svg", xl, [
4077
4079
  L("mask", Al, [
4078
4080
  L("rect", {
4079
4081
  fill: e.color,
@@ -4112,62 +4114,62 @@ ${l.value}
4112
4114
  },
4113
4115
  emits: ["update:modelValue"],
4114
4116
  setup(e, { emit: t }) {
4115
- const { i18n: { t: n } } = W.useI18n(), i = e, r = t, o = M(!1), a = M({}), l = M(/* @__PURE__ */ new Set()), s = $(() => {
4116
- const S = [];
4117
- return new URLSearchParams(i.modelValue).forEach((w, F) => {
4118
- w !== "" && S.push(F);
4119
- }), S;
4120
- }), c = $(() => {
4121
- const S = i.config.fields;
4122
- return Object.keys(S).filter((w) => {
4123
- var F;
4124
- return (F = S == null ? void 0 : S[w]) == null ? void 0 : F.searchable;
4125
- }).map((w) => ({
4126
- label: S[w].label || w,
4127
- value: w,
4117
+ const { i18n: { t: n } } = J.useI18n(), i = e, r = t, o = N(!1), a = N({}), l = N(/* @__PURE__ */ new Set()), s = S(() => {
4118
+ const M = [];
4119
+ return new URLSearchParams(i.modelValue).forEach((F, x) => {
4120
+ F !== "" && M.push(x);
4121
+ }), M;
4122
+ }), c = S(() => {
4123
+ const M = i.config.fields;
4124
+ return Object.keys(M).filter((F) => {
4125
+ var x;
4126
+ return (x = M == null ? void 0 : M[F]) == null ? void 0 : x.searchable;
4127
+ }).map((F) => ({
4128
+ label: M[F].label || F,
4129
+ value: F,
4128
4130
  expanded: !1
4129
4131
  }));
4130
4132
  });
4131
- be(() => i.modelValue, (S) => {
4132
- a.value = {}, new URLSearchParams(S).forEach((w, F) => {
4133
- a.value[F] = w;
4133
+ be(() => i.modelValue, (M) => {
4134
+ a.value = {}, new URLSearchParams(M).forEach((F, x) => {
4135
+ a.value[x] = F;
4134
4136
  });
4135
4137
  });
4136
4138
  const d = () => {
4137
4139
  o.value = !o.value;
4138
- }, u = (S) => {
4139
- l.value.has(S) ? l.value.delete(S) : l.value.add(S);
4140
- }, p = (S) => {
4141
- r("update:modelValue", S);
4140
+ }, u = (M) => {
4141
+ l.value.has(M) ? l.value.delete(M) : l.value.add(M);
4142
+ }, p = (M) => {
4143
+ r("update:modelValue", M);
4142
4144
  }, m = () => {
4143
4145
  p("");
4144
- }, y = (S) => `filter-${S}`, h = (S) => {
4145
- var w, F;
4146
- return (((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4147
- }, k = (S) => {
4148
- var w, F;
4149
- return ((F = (w = i.config.schema) == null ? void 0 : w[S]) == null ? void 0 : F.type) ?? "text";
4150
- }, C = (S) => {
4146
+ }, y = (M) => `filter-${M}`, h = (M) => {
4147
+ var F, x;
4148
+ return (((x = (F = i.config.schema) == null ? void 0 : F[M]) == null ? void 0 : x.values) ?? []).map((f) => typeof f == "string" ? { value: f, label: f } : f);
4149
+ }, b = (M) => {
4150
+ var F, x;
4151
+ return ((x = (F = i.config.schema) == null ? void 0 : F[M]) == null ? void 0 : x.type) ?? "text";
4152
+ }, k = (M) => {
4151
4153
  a.value = {
4152
4154
  ...a.value,
4153
- [S]: ""
4155
+ [M]: ""
4154
4156
  }, B();
4155
- }, x = () => {
4157
+ }, A = () => {
4156
4158
  a.value = {}, B(!0);
4157
- }, B = (S = !1) => {
4158
- const w = Object.keys(a.value).reduce((F, f) => (a.value[f] && (F[f] = `${a.value[f]}`), F), {});
4159
- S && (o.value = !1), r("update:modelValue", new URLSearchParams(w).toString());
4160
- }, j = (S) => {
4161
- var w, F;
4162
- return !!((F = (w = i.config.schema) == null ? void 0 : w[S]) != null && F.filterFunction);
4163
- }, X = (S, w) => {
4159
+ }, B = (M = !1) => {
4160
+ const F = Object.keys(a.value).reduce((x, f) => (a.value[f] && (x[f] = `${a.value[f]}`), x), {});
4161
+ M && (o.value = !1), r("update:modelValue", new URLSearchParams(F).toString());
4162
+ }, P = (M) => {
4163
+ var F, x;
4164
+ return !!((x = (F = i.config.schema) == null ? void 0 : F[M]) != null && x.filterFunction);
4165
+ }, ee = (M, F) => {
4164
4166
  var f;
4165
- const F = (f = i.config.schema) == null ? void 0 : f[S];
4166
- return (F == null ? void 0 : F.filterFunction) === void 0 ? !0 : F.filterFunction(w);
4167
+ const x = (f = i.config.schema) == null ? void 0 : f[M];
4168
+ return (x == null ? void 0 : x.filterFunction) === void 0 ? !0 : x.filterFunction(F);
4167
4169
  };
4168
- return (S, w) => {
4169
- const F = D("KInput"), f = D("KButton"), v = D("KSelect");
4170
- return e.config.isExactMatch ? (g(), N(F, {
4170
+ return (M, F) => {
4171
+ const x = j("KInput"), f = j("KButton"), v = j("KSelect");
4172
+ return e.config.isExactMatch ? (g(), K(x, {
4171
4173
  key: 0,
4172
4174
  autocomplete: "off",
4173
4175
  class: "kong-ui-entity-filter-input",
@@ -4176,11 +4178,11 @@ ${l.value}
4176
4178
  placeholder: e.config.placeholder,
4177
4179
  "onUpdate:modelValue": p
4178
4180
  }, {
4179
- before: _(() => [
4180
- K(Dt)
4181
+ before: w(() => [
4182
+ R(jt)
4181
4183
  ]),
4182
- after: _(() => [
4183
- Ce(K(A(fi), {
4184
+ after: w(() => [
4185
+ Ce(R(_(fi), {
4184
4186
  class: "kong-ui-entity-filter-clear",
4185
4187
  role: "button",
4186
4188
  tabindex: "0",
@@ -4190,15 +4192,15 @@ ${l.value}
4190
4192
  ])
4191
4193
  ]),
4192
4194
  _: 1
4193
- }, 8, ["model-value", "placeholder"])) : (g(), T("div", $l, [
4194
- K(f, {
4195
+ }, 8, ["model-value", "placeholder"])) : (g(), $("div", $l, [
4196
+ R(f, {
4195
4197
  appearance: "tertiary",
4196
4198
  "data-testid": "filter-button",
4197
4199
  onClick: d
4198
4200
  }, {
4199
- default: _(() => [
4200
- K(Dt),
4201
- q(" " + O(A(n)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4201
+ default: w(() => [
4202
+ R(jt),
4203
+ q(" " + I(_(n)("filter.filterButtonText")) + " " + I(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4202
4204
  ]),
4203
4205
  _: 1
4204
4206
  }),
@@ -4209,91 +4211,91 @@ ${l.value}
4209
4211
  [xe, o.value]
4210
4212
  ]),
4211
4213
  Ce(L("div", Tl, [
4212
- (g(!0), T(ue, null, ce(c.value, (b) => {
4213
- var V, J;
4214
- return g(), T("div", {
4215
- key: b.value,
4214
+ (g(!0), $(ue, null, ce(c.value, (C) => {
4215
+ var Y, G;
4216
+ return g(), $("div", {
4217
+ key: C.value,
4216
4218
  class: "kong-ui-entity-filter-menu-item",
4217
- "data-testid": b.value
4219
+ "data-testid": C.value
4218
4220
  }, [
4219
4221
  L("span", {
4220
- class: fe(["menu-item-title", { expanded: l.value.has(b.value) }]),
4222
+ class: fe(["menu-item-title", { expanded: l.value.has(C.value) }]),
4221
4223
  role: "button",
4222
4224
  tabindex: "0",
4223
- onClick: (E) => u(b.value),
4224
- onKeydown: ti((E) => u(b.value), ["enter"])
4225
+ onClick: (E) => u(C.value),
4226
+ onKeydown: ti((E) => u(C.value), ["enter"])
4225
4227
  }, [
4226
- q(O(b.label) + " ", 1),
4228
+ q(I(C.label) + " ", 1),
4227
4229
  Ce(L("span", Fl, null, 512), [
4228
- [xe, s.value.includes(b.value)]
4230
+ [xe, s.value.includes(C.value)]
4229
4231
  ]),
4230
- K(A(pi), {
4231
- class: fe(["menu-item-expand-icon", { expanded: l.value.has(b.value) }]),
4232
- color: A(sr)
4232
+ R(_(pi), {
4233
+ class: fe(["menu-item-expand-icon", { expanded: l.value.has(C.value) }]),
4234
+ color: _(sr)
4233
4235
  }, null, 8, ["class", "color"])
4234
4236
  ], 42, Il),
4235
4237
  Ce(L("div", Ol, [
4236
4238
  L("label", {
4237
4239
  class: "menu-item-label",
4238
- for: y(b.value)
4239
- }, O(A(n)("filter.fieldLabel")), 9, Bl),
4240
- ((J = (V = e.config.schema) == null ? void 0 : V[b.value]) == null ? void 0 : J.type) === "select" ? (g(), N(v, {
4240
+ for: y(C.value)
4241
+ }, I(_(n)("filter.fieldLabel")), 9, Bl),
4242
+ ((G = (Y = e.config.schema) == null ? void 0 : Y[C.value]) == null ? void 0 : G.type) === "select" ? (g(), K(v, {
4241
4243
  key: 0,
4242
- id: y(b.value),
4243
- modelValue: a.value[b.value],
4244
- "onUpdate:modelValue": (E) => a.value[b.value] = E,
4245
- "enable-filtering": j(b.value),
4246
- "filter-function": (E) => X(b.value, E),
4247
- items: h(b.value),
4248
- placeholder: A(n)("filter.selectPlaceholder")
4249
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), N(F, {
4244
+ id: y(C.value),
4245
+ modelValue: a.value[C.value],
4246
+ "onUpdate:modelValue": (E) => a.value[C.value] = E,
4247
+ "enable-filtering": P(C.value),
4248
+ "filter-function": (E) => ee(C.value, E),
4249
+ items: h(C.value),
4250
+ placeholder: _(n)("filter.selectPlaceholder")
4251
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "enable-filtering", "filter-function", "items", "placeholder"])) : (g(), K(x, {
4250
4252
  key: 1,
4251
- id: y(b.value),
4252
- modelValue: a.value[b.value],
4253
- "onUpdate:modelValue": (E) => a.value[b.value] = E,
4253
+ id: y(C.value),
4254
+ modelValue: a.value[C.value],
4255
+ "onUpdate:modelValue": (E) => a.value[C.value] = E,
4254
4256
  autocomplete: "off",
4255
- placeholder: A(n)("filter.inputPlaceholder"),
4256
- type: k(b.value)
4257
+ placeholder: _(n)("filter.inputPlaceholder"),
4258
+ type: b(C.value)
4257
4259
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4258
4260
  ], 512), [
4259
- [xe, l.value.has(b.value)]
4261
+ [xe, l.value.has(C.value)]
4260
4262
  ]),
4261
4263
  Ce(L("div", Ll, [
4262
- K(f, {
4264
+ R(f, {
4263
4265
  appearance: "tertiary",
4264
4266
  "data-testid": "apply-filter",
4265
4267
  size: "small",
4266
- onClick: w[0] || (w[0] = (E) => B(!0))
4268
+ onClick: F[0] || (F[0] = (E) => B(!0))
4267
4269
  }, {
4268
- default: _(() => [
4269
- q(O(A(n)("filter.applyButtonText")), 1)
4270
+ default: w(() => [
4271
+ q(I(_(n)("filter.applyButtonText")), 1)
4270
4272
  ]),
4271
4273
  _: 1
4272
4274
  }),
4273
- K(f, {
4275
+ R(f, {
4274
4276
  appearance: "tertiary",
4275
4277
  "data-testid": "clear-filter",
4276
4278
  size: "small",
4277
- onClick: (E) => C(b.value)
4279
+ onClick: (E) => k(C.value)
4278
4280
  }, {
4279
- default: _(() => [
4280
- q(O(A(n)("filter.clearButtonText")), 1)
4281
+ default: w(() => [
4282
+ q(I(_(n)("filter.clearButtonText")), 1)
4281
4283
  ]),
4282
4284
  _: 1
4283
4285
  }, 8, ["onClick"])
4284
4286
  ], 512), [
4285
- [xe, l.value.has(b.value)]
4287
+ [xe, l.value.has(C.value)]
4286
4288
  ])
4287
4289
  ], 8, El);
4288
4290
  }), 128)),
4289
4291
  L("div", Rl, [
4290
- K(f, {
4292
+ R(f, {
4291
4293
  appearance: "tertiary",
4292
4294
  size: "small",
4293
- onClick: x
4295
+ onClick: A
4294
4296
  }, {
4295
- default: _(() => [
4296
- q(O(A(n)("filter.clearAllButtonText")), 1)
4297
+ default: w(() => [
4298
+ q(I(_(n)("filter.clearAllButtonText")), 1)
4297
4299
  ]),
4298
4300
  _: 1
4299
4301
  })
@@ -4336,9 +4338,9 @@ ${l.value}
4336
4338
  },
4337
4339
  emits: ["cancel", "proceed"],
4338
4340
  setup(e, { emit: t }) {
4339
- const { i18n: { t: n }, i18nT: i } = W.useI18n(), r = e, o = t, a = M(!1), l = $(
4341
+ const { i18n: { t: n }, i18nT: i } = J.useI18n(), r = e, o = t, a = N(!1), l = S(
4340
4342
  () => r.action === "enable" ? n("toggleModal.enable.title", { entityType: r.entityType }) : n("toggleModal.disable.title", { entityType: r.entityType })
4341
- ), s = $(
4343
+ ), s = S(
4342
4344
  () => r.action === "enable" ? n("toggleModal.enable.confirmText") : n("toggleModal.disable.confirmText")
4343
4345
  ), c = () => o("cancel"), d = async () => {
4344
4346
  if (r.onConfirm) {
@@ -4353,9 +4355,9 @@ ${l.value}
4353
4355
  }
4354
4356
  };
4355
4357
  return (u, p) => {
4356
- const m = D("KPrompt");
4357
- return g(), N(Wt, { to: "body" }, [
4358
- K(m, {
4358
+ const m = j("KPrompt");
4359
+ return g(), K(Wt, { to: "body" }, [
4360
+ R(m, {
4359
4361
  "action-button-disabled": a.value,
4360
4362
  "action-button-text": s.value,
4361
4363
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
@@ -4364,16 +4366,16 @@ ${l.value}
4364
4366
  onCancel: c,
4365
4367
  onProceed: d
4366
4368
  }, {
4367
- default: _(() => [
4368
- K(A(i), {
4369
+ default: w(() => [
4370
+ R(_(i), {
4369
4371
  keypath: `toggleModal.${r.action}.message`,
4370
4372
  scope: "global"
4371
4373
  }, {
4372
- entityType: _(() => [
4373
- q(O(e.entityType), 1)
4374
+ entityType: w(() => [
4375
+ q(I(e.entityType), 1)
4374
4376
  ]),
4375
- entityName: _(() => [
4376
- L("strong", null, O(e.entityName), 1)
4377
+ entityName: w(() => [
4378
+ L("strong", null, I(e.entityName), 1)
4377
4379
  ]),
4378
4380
  _: 1
4379
4381
  }, 8, ["keypath"])
@@ -4405,13 +4407,13 @@ ${l.value}
4405
4407
  }
4406
4408
  },
4407
4409
  setup(e) {
4408
- const t = e, n = M(void 0), i = $(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4410
+ const t = e, n = N(void 0), i = S(() => n.value === !0 || n.value !== void 0 && t.forceShow === !0);
4409
4411
  return be(() => t.authFunction, async () => {
4410
4412
  n.value = await t.authFunction();
4411
4413
  }, { immediate: !0 }), (r, o) => i.value ? U(r.$slots, "default", {
4412
4414
  key: 0,
4413
4415
  isAllowed: n.value
4414
- }) : P("", !0);
4416
+ }) : D("", !0);
4415
4417
  }
4416
4418
  }), ne = [];
4417
4419
  for (let e = 0; e < 256; ++e)
@@ -4421,7 +4423,7 @@ function Nl(e, t = 0) {
4421
4423
  }
4422
4424
  let ze;
4423
4425
  const Ml = new Uint8Array(16);
4424
- function Pl() {
4426
+ function Dl() {
4425
4427
  if (!ze) {
4426
4428
  if (typeof crypto > "u" || !crypto.getRandomValues)
4427
4429
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
@@ -4429,13 +4431,13 @@ function Pl() {
4429
4431
  }
4430
4432
  return ze(Ml);
4431
4433
  }
4432
- const jl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: jl };
4433
- function Dl(e, t, n) {
4434
+ const Pl = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ut = { randomUUID: Pl };
4435
+ function jl(e, t, n) {
4434
4436
  var r;
4435
4437
  if (Ut.randomUUID && !e)
4436
4438
  return Ut.randomUUID();
4437
4439
  e = e || {};
4438
- const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Pl();
4440
+ const i = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Dl();
4439
4441
  if (i.length < 16)
4440
4442
  throw new Error("Random bytes length must be >= 16");
4441
4443
  return i[6] = i[6] & 15 | 64, i[8] = i[8] & 63 | 128, Nl(i);
@@ -4475,35 +4477,35 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4475
4477
  }
4476
4478
  },
4477
4479
  setup(e) {
4478
- const t = Ue(), n = Dl();
4479
- return (i, r) => (g(), T("div", {
4480
- "aria-labelledby": e.title ? A(n) : void 0,
4480
+ const t = Ue(), n = jl();
4481
+ return (i, r) => (g(), $("div", {
4482
+ "aria-labelledby": e.title ? _(n) : void 0,
4481
4483
  class: fe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }]),
4482
4484
  role: "group"
4483
4485
  }, [
4484
4486
  L("div", ql, [
4485
- e.hideInfoHeader ? P("", !0) : (g(), T("div", {
4487
+ e.hideInfoHeader ? D("", !0) : (g(), $("div", {
4486
4488
  key: 0,
4487
4489
  class: fe(["form-section-info", { sticky: e.stickyInfoHeader }])
4488
4490
  }, [
4489
- e.title ? (g(), N(De(e.titleTag), {
4491
+ e.title ? (g(), K(je(e.titleTag), {
4490
4492
  key: 0,
4491
- id: A(n),
4493
+ id: _(n),
4492
4494
  class: "form-section-title"
4493
4495
  }, {
4494
- default: _(() => [
4495
- q(O(e.title), 1)
4496
+ default: w(() => [
4497
+ q(I(e.title), 1)
4496
4498
  ]),
4497
4499
  _: 1
4498
- }, 8, ["id"])) : P("", !0),
4499
- e.description || A(t).description ? (g(), T("div", Hl, [
4500
+ }, 8, ["id"])) : D("", !0),
4501
+ e.description || _(t).description ? (g(), $("div", Hl, [
4500
4502
  U(i.$slots, "description", {}, () => [
4501
- L("p", null, O(e.description), 1)
4503
+ L("p", null, I(e.description), 1)
4502
4504
  ], !0)
4503
- ])) : P("", !0),
4504
- A(t).footer ? (g(), T("div", Vl, [
4505
+ ])) : D("", !0),
4506
+ _(t).footer ? (g(), $("div", Vl, [
4505
4507
  U(i.$slots, "footer", {}, void 0, !0)
4506
- ])) : P("", !0)
4508
+ ])) : D("", !0)
4507
4509
  ], 2)),
4508
4510
  L("div", Yl, [
4509
4511
  U(i.$slots, "default", {}, void 0, !0)
@@ -4529,31 +4531,31 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4529
4531
  },
4530
4532
  setup(e) {
4531
4533
  const t = Ue();
4532
- return (n, i) => (g(), T("div", Jl, [
4534
+ return (n, i) => (g(), $("div", Jl, [
4533
4535
  L("header", Gl, [
4534
- e.step != null ? (g(), T("div", zl, O(e.step), 1)) : P("", !0),
4536
+ e.step != null ? (g(), $("div", zl, I(e.step), 1)) : D("", !0),
4535
4537
  L("div", Ql, [
4536
4538
  L("h2", Zl, [
4537
4539
  U(n.$slots, "title", {}, () => [
4538
- q(O(e.title), 1)
4540
+ q(I(e.title), 1)
4539
4541
  ], !0)
4540
4542
  ]),
4541
- e.description || t.description ? (g(), T("div", Xl, [
4543
+ e.description || t.description ? (g(), $("div", Xl, [
4542
4544
  U(n.$slots, "description", {}, () => [
4543
- q(O(e.description), 1)
4545
+ q(I(e.description), 1)
4544
4546
  ], !0)
4545
- ])) : P("", !0)
4547
+ ])) : D("", !0)
4546
4548
  ]),
4547
- t.extra ? (g(), T("div", es, [
4549
+ t.extra ? (g(), $("div", es, [
4548
4550
  U(n.$slots, "extra", {}, void 0, !0)
4549
- ])) : P("", !0)
4551
+ ])) : D("", !0)
4550
4552
  ]),
4551
4553
  L("div", ts, [
4552
4554
  U(n.$slots, "default", {}, void 0, !0)
4553
4555
  ])
4554
4556
  ]));
4555
4557
  }
4556
- }), Ps = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
4558
+ }), Ds = /* @__PURE__ */ le(ns, [["__scopeId", "data-v-cb6d2e95"]]), is = {
4557
4559
  class: "kong-ui-public-entity-link",
4558
4560
  "data-testid": "entity-link-parent"
4559
4561
  }, rs = {
@@ -4583,10 +4585,10 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4583
4585
  }
4584
4586
  },
4585
4587
  setup(e) {
4586
- const t = e, n = M(), { isTruncated: i } = W.useTruncationDetector(n), { i18n: { t: r } } = W.useI18n(), o = r("global.actions.copyId"), a = M(o), l = $(() => t.entityLinkData.deleted ?? !1), s = $(() => {
4588
+ const t = e, n = N(), { isTruncated: i } = J.useTruncationDetector(n), { i18n: { t: r } } = J.useI18n(), o = r("global.actions.copyId"), a = N(o), l = S(() => t.entityLinkData.deleted ?? !1), s = S(() => {
4587
4589
  var u;
4588
4590
  return (u = t.entityLinkData.id) != null && u.toString().includes(":") ? t.entityLinkData.id.toString().split(":")[1] : t.entityLinkData.id;
4589
- }), c = $(() => {
4591
+ }), c = S(() => {
4590
4592
  var u;
4591
4593
  return `${(u = s.value) == null ? void 0 : u.toString().slice(0, 5)} (deleted)`;
4592
4594
  }), d = async (u) => {
@@ -4595,50 +4597,50 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4595
4597
  }, 1800));
4596
4598
  };
4597
4599
  return (u, p) => {
4598
- const m = D("KTooltip"), y = D("KExternalLink"), h = D("KClipboardProvider");
4599
- return g(), T("div", is, [
4600
- l.value ? (g(), T("div", rs, O(c.value), 1)) : s.value ? s.value ? (g(), N(y, {
4600
+ const m = j("KTooltip"), y = j("KExternalLink"), h = j("KClipboardProvider");
4601
+ return g(), $("div", is, [
4602
+ l.value ? (g(), $("div", rs, I(c.value), 1)) : s.value ? s.value ? (g(), K(y, {
4601
4603
  key: 2,
4602
4604
  class: "entity-link",
4603
4605
  "hide-icon": !e.newWindow,
4604
4606
  href: e.externalLink,
4605
4607
  target: e.newWindow ? "_blank" : "_self"
4606
4608
  }, {
4607
- default: _(() => [
4608
- K(m, {
4609
- text: A(i) && e.entityLinkData.label || ""
4609
+ default: w(() => [
4610
+ R(m, {
4611
+ text: _(i) && e.entityLinkData.label || ""
4610
4612
  }, {
4611
- default: _(() => [
4613
+ default: w(() => [
4612
4614
  L("span", {
4613
4615
  ref_key: "textContent",
4614
4616
  ref: n,
4615
4617
  class: "entity-link-label"
4616
- }, O(e.entityLinkData.label), 513)
4618
+ }, I(e.entityLinkData.label), 513)
4617
4619
  ]),
4618
4620
  _: 1
4619
4621
  }, 8, ["text"])
4620
4622
  ]),
4621
4623
  _: 1
4622
- }, 8, ["hide-icon", "href", "target"])) : P("", !0) : (g(), T("div", as, O(" – "))),
4623
- s.value && e.allowCopy ? (g(), N(m, {
4624
+ }, 8, ["hide-icon", "href", "target"])) : D("", !0) : (g(), $("div", as, I(" – "))),
4625
+ s.value && e.allowCopy ? (g(), K(m, {
4624
4626
  key: a.value,
4625
4627
  class: "copy-uuid-tooltip",
4626
4628
  "max-width": "160",
4627
4629
  placement: "bottom-end",
4628
4630
  text: a.value
4629
4631
  }, {
4630
- default: _(() => [
4631
- K(h, null, {
4632
- default: _(({ copyToClipboard: k }) => [
4632
+ default: w(() => [
4633
+ R(h, null, {
4634
+ default: w(({ copyToClipboard: b }) => [
4633
4635
  L("span", {
4634
4636
  class: "entity-link-copy-id",
4635
- onClick: Re((C) => d(k), ["stop"])
4637
+ onClick: Re((k) => d(b), ["stop"])
4636
4638
  }, [
4637
- K(A(mi), {
4639
+ R(_(mi), {
4638
4640
  class: "copy-icon",
4639
- color: A(cr),
4641
+ color: _(cr),
4640
4642
  "data-testid": "copy-id",
4641
- size: A(dr)
4643
+ size: _(dr)
4642
4644
  }, null, 8, ["color", "size"])
4643
4645
  ], 8, os)
4644
4646
  ]),
@@ -4646,11 +4648,11 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4646
4648
  })
4647
4649
  ]),
4648
4650
  _: 1
4649
- }, 8, ["text"])) : P("", !0)
4651
+ }, 8, ["text"])) : D("", !0)
4650
4652
  ]);
4651
4653
  };
4652
4654
  }
4653
- }), js = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
4655
+ }), Ps = /* @__PURE__ */ le(ls, [["__scopeId", "data-v-96efdfa5"]]), ss = { class: "kong-ui-public-entity-empty-state" }, cs = { class: "entity-empty-state-content" }, us = {
4654
4656
  key: 0,
4655
4657
  class: "empty-state-image"
4656
4658
  }, ds = {
@@ -4718,100 +4720,100 @@ const Ul = ["aria-labelledby"], ql = { class: "form-section-wrapper" }, Hl = {
4718
4720
  },
4719
4721
  emits: ["click:create", "click:learn-more"],
4720
4722
  setup(e) {
4721
- const t = e, { i18n: { t: n } } = W.useI18n(), i = M(!1), r = $(() => i.value && !!t.actionButtonText), o = $(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4723
+ const t = e, { i18n: { t: n } } = J.useI18n(), i = N(!1), r = S(() => i.value && !!t.actionButtonText), o = S(() => vt.includes(t.appearance) ? t.appearance : ["primary", t.appearance]);
4722
4724
  return rt(async () => {
4723
4725
  i.value = await t.canCreate();
4724
4726
  }), it(() => ni(`EntityEmptyState is deprecated and will be removed in future releases. Please use the KEmptyState component instead.
4725
4727
  Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) => {
4726
- const s = D("KCard");
4727
- return g(), T("div", ss, [
4728
+ const s = j("KCard");
4729
+ return g(), $("div", ss, [
4728
4730
  L("div", cs, [
4729
- a.$slots.image ? (g(), T("div", us, [
4731
+ a.$slots.image ? (g(), $("div", us, [
4730
4732
  U(a.$slots, "image", {}, void 0, !0)
4731
- ])) : P("", !0),
4732
- e.title || a.$slots.title ? (g(), T("div", ds, [
4733
+ ])) : D("", !0),
4734
+ e.title || a.$slots.title ? (g(), $("div", ds, [
4733
4735
  L("h1", {
4734
4736
  class: fe(o.value)
4735
4737
  }, [
4736
4738
  U(a.$slots, "title", {}, () => [
4737
- q(O(e.title), 1)
4739
+ q(I(e.title), 1)
4738
4740
  ], !0)
4739
4741
  ], 2)
4740
- ])) : P("", !0),
4741
- e.description || a.$slots.default ? (g(), T("div", fs, [
4742
+ ])) : D("", !0),
4743
+ e.description || a.$slots.default ? (g(), $("div", fs, [
4742
4744
  U(a.$slots, "default", {}, () => [
4743
- L("p", null, O(e.description), 1)
4745
+ L("p", null, I(e.description), 1)
4744
4746
  ], !0)
4745
- ])) : P("", !0),
4746
- e.pricing || a.$slots.pricing ? (g(), T("div", ps, [
4747
+ ])) : D("", !0),
4748
+ e.pricing || a.$slots.pricing ? (g(), $("div", ps, [
4747
4749
  L("p", null, [
4748
- L("b", null, O(A(n)("emptyState.pricingTitle")), 1),
4750
+ L("b", null, I(_(n)("emptyState.pricingTitle")), 1),
4749
4751
  l[2] || (l[2] = q()),
4750
4752
  U(a.$slots, "pricing", {}, () => [
4751
- q(O(e.pricing), 1)
4753
+ q(I(e.pricing), 1)
4752
4754
  ], !0)
4753
4755
  ])
4754
- ])) : P("", !0)
4756
+ ])) : D("", !0)
4755
4757
  ]),
4756
- a.$slots.message ? (g(), T("div", ms, [
4758
+ a.$slots.message ? (g(), $("div", ms, [
4757
4759
  U(a.$slots, "message", {}, void 0, !0)
4758
- ])) : P("", !0),
4759
- r.value || e.learnMore || a.$slots.actions ? (g(), T("div", gs, [
4760
+ ])) : D("", !0),
4761
+ r.value || e.learnMore || a.$slots.actions ? (g(), $("div", gs, [
4760
4762
  U(a.$slots, "actions", {}, () => [
4761
- r.value ? (g(), N(A(gt), {
4763
+ r.value ? (g(), K(_(gt), {
4762
4764
  key: 0,
4763
4765
  appearance: "primary",
4764
4766
  "data-testid": "entity-create-button",
4765
4767
  size: e.appearance === "secondary" ? "medium" : "large",
4766
4768
  onClick: l[0] || (l[0] = (c) => a.$emit("click:create"))
4767
4769
  }, {
4768
- default: _(() => [
4769
- K(A(Gt)),
4770
- q(" " + O(e.actionButtonText), 1)
4770
+ default: w(() => [
4771
+ R(_(Gt)),
4772
+ q(" " + I(e.actionButtonText), 1)
4771
4773
  ]),
4772
4774
  _: 1
4773
- }, 8, ["size"])) : P("", !0),
4774
- e.learnMore ? (g(), N(A(gt), {
4775
+ }, 8, ["size"])) : D("", !0),
4776
+ e.learnMore ? (g(), K(_(gt), {
4775
4777
  key: 1,
4776
4778
  appearance: "secondary",
4777
4779
  "data-testid": "entity-learn-more-button",
4778
4780
  size: e.appearance === "secondary" ? "medium" : "large",
4779
4781
  onClick: l[1] || (l[1] = (c) => a.$emit("click:learn-more"))
4780
4782
  }, {
4781
- default: _(() => [
4782
- K(A(Jt), { decorative: "" }),
4783
- q(" " + O(A(n)("emptyState.learnMore")), 1)
4783
+ default: w(() => [
4784
+ R(_(Jt), { decorative: "" }),
4785
+ q(" " + I(_(n)("emptyState.learnMore")), 1)
4784
4786
  ]),
4785
4787
  _: 1
4786
- }, 8, ["size"])) : P("", !0)
4788
+ }, 8, ["size"])) : D("", !0)
4787
4789
  ], !0)
4788
- ])) : P("", !0),
4789
- e.features.length ? (g(), T("div", hs, [
4790
- (g(!0), T(ue, null, ce(e.features, (c, d) => (g(), N(s, {
4790
+ ])) : D("", !0),
4791
+ e.features.length ? (g(), $("div", hs, [
4792
+ (g(!0), $(ue, null, ce(e.features, (c, d) => (g(), K(s, {
4791
4793
  key: c,
4792
4794
  class: "entity-empty-state-card"
4793
4795
  }, {
4794
- title: _(() => [
4795
- a.$slots[`feature-${d}-icon`] ? (g(), T("div", ys, [
4796
+ title: w(() => [
4797
+ a.$slots[`feature-${d}-icon`] ? (g(), $("div", ys, [
4796
4798
  U(a.$slots, `feature-${d}-icon`, {}, void 0, !0)
4797
- ])) : P("", !0),
4798
- L("div", vs, O(c.title), 1)
4799
+ ])) : D("", !0),
4800
+ L("div", vs, I(c.title), 1)
4799
4801
  ]),
4800
- default: _(() => [
4802
+ default: w(() => [
4801
4803
  L("div", {
4802
4804
  title: c.description
4803
- }, O(c.description), 9, bs)
4805
+ }, I(c.description), 9, bs)
4804
4806
  ]),
4805
4807
  _: 2
4806
4808
  }, 1024))), 128))
4807
- ])) : P("", !0),
4808
- a.$slots.bottom ? (g(), T("div", ks, [
4809
+ ])) : D("", !0),
4810
+ a.$slots.bottom ? (g(), $("div", ks, [
4809
4811
  U(a.$slots, "bottom", {}, void 0, !0)
4810
- ])) : P("", !0)
4812
+ ])) : D("", !0)
4811
4813
  ]);
4812
4814
  };
4813
4815
  }
4814
- }), Ds = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
4816
+ }), js = /* @__PURE__ */ le(Cs, [["__scopeId", "data-v-645aae54"]]), xs = { key: 1 }, Us = /* @__PURE__ */ z({
4815
4817
  __name: "TableTags",
4816
4818
  props: {
4817
4819
  /** The tags to display in the table */
@@ -4825,7 +4827,7 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4825
4827
  }
4826
4828
  },
4827
4829
  setup(e) {
4828
- const t = e, n = $(() => {
4830
+ const t = e, n = S(() => {
4829
4831
  if (Array.isArray(t.tags))
4830
4832
  return t.tags;
4831
4833
  if (typeof t.tags == "string")
@@ -4839,42 +4841,42 @@ Docs: https://kongponents.konghq.com/components/empty-state.html.`)), (a, l) =>
4839
4841
  });
4840
4842
  return (i, r) => {
4841
4843
  var o;
4842
- return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), N(A(li), { key: 0 }, {
4843
- default: _(() => [
4844
- (g(!0), T(ue, null, ce(n.value, (a) => (g(), N(A(si), {
4844
+ return ((o = n.value) == null ? void 0 : o.length) > 0 ? (g(), K(_(li), { key: 0 }, {
4845
+ default: w(() => [
4846
+ (g(!0), $(ue, null, ce(n.value, (a) => (g(), K(_(si), {
4845
4847
  key: a,
4846
4848
  "max-width": e.tagMaxWidth,
4847
4849
  onClick: r[0] || (r[0] = Re(() => {
4848
4850
  }, ["stop"]))
4849
4851
  }, {
4850
- default: _(() => [
4851
- q(O(a), 1)
4852
+ default: w(() => [
4853
+ q(I(a), 1)
4852
4854
  ]),
4853
4855
  _: 2
4854
4856
  }, 1032, ["max-width"]))), 128))
4855
4857
  ]),
4856
4858
  _: 1
4857
- })) : (g(), T("span", xs, "-"));
4859
+ })) : (g(), $("span", xs, "-"));
4858
4860
  };
4859
4861
  }
4860
- }), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = W;
4862
+ }), { useAxios: qs, useDeleteUrlBuilder: Hs, useErrors: Vs, useExternalLinkCreator: Ys, useFetchUrlBuilder: Ws, useFetcher: Js, useFetcherCacheKey: Gs, useDebouncedFilter: zs, useStringHelpers: Qs, useHelpers: Zs, useGatewayFeatureSupported: Xs, useTruncationDetector: ec, useValidators: tc, useSchemaProvider: nc, useTableState: ic } = J;
4861
4863
  export {
4862
4864
  vt as Appearances,
4863
4865
  tl as ConfigCardDisplay,
4864
4866
  nn as ConfigCardItem,
4865
4867
  ae as ConfigurationSchemaSection,
4866
- Y as ConfigurationSchemaType,
4868
+ W as ConfigurationSchemaType,
4867
4869
  cl as DeckCodeBlock,
4868
4870
  Fs as EntityBaseConfigCard,
4869
4871
  Os as EntityBaseForm,
4870
4872
  yi as EntityBaseFormType,
4871
4873
  Bs as EntityBaseTable,
4872
4874
  Ls as EntityDeleteModal,
4873
- Ds as EntityEmptyState,
4875
+ js as EntityEmptyState,
4874
4876
  Rs as EntityFilter,
4875
- Ps as EntityFormBlock,
4877
+ Ds as EntityFormBlock,
4876
4878
  Ms as EntityFormSection,
4877
- js as EntityLink,
4879
+ Ps as EntityLink,
4878
4880
  Ks as EntityToggleModal,
4879
4881
  hi as EntityTypes,
4880
4882
  bi as EventGatewayTypesArray,