@kong-ui-public/entities-gateway-services 2.7.0 → 2.7.1

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,9 +1,9 @@
1
- import { defineComponent as ee, ref as V, computed as A, resolveComponent as U, openBlock as h, createBlock as z, Teleport as nr, createVNode as x, withCtx as y, unref as f, createTextVNode as W, toDisplayString as M, createElementVNode as F, watch as we, renderSlot as te, createCommentVNode as H, onBeforeMount as kt, createSlots as Pe, renderList as ge, createElementBlock as $, withModifiers as Le, withDirectives as ke, vShow as Ce, Fragment as ve, normalizeClass as xe, withKeys as lr, useSlots as Ct, useCssVars as ai, inject as sr, onMounted as oi, onUnmounted as cr, resolveDynamicComponent as Oe, normalizeStyle as nt, normalizeProps as ur, guardReactiveProps as dr, mergeProps as pr, pushScopeId as lt, popScopeId as st, reactive as Et } from "vue";
1
+ import { defineComponent as ee, ref as V, computed as A, resolveComponent as U, openBlock as h, createBlock as z, Teleport as nr, createVNode as I, withCtx as y, unref as f, createTextVNode as W, toDisplayString as M, createElementVNode as F, watch as we, renderSlot as te, createCommentVNode as H, onBeforeMount as kt, createSlots as Pe, renderList as me, createElementBlock as $, withModifiers as qe, withDirectives as ke, vShow as Ce, Fragment as ve, normalizeClass as Ie, withKeys as lr, useSlots as Ct, useCssVars as ai, inject as sr, onMounted as oi, onUnmounted as cr, resolveDynamicComponent as Oe, normalizeStyle as nt, normalizeProps as ur, guardReactiveProps as dr, mergeProps as pr, pushScopeId as lt, popScopeId as st, reactive as Et } from "vue";
2
2
  import { useRouter as St } from "vue-router";
3
3
  import { createI18n as ni, i18nTComponent as li } from "@kong-ui-public/i18n";
4
4
  import Ft from "axios";
5
5
  import { BadgeMethodAppearances as fr } from "@kong/kongponents";
6
- const mr = {
6
+ const gr = {
7
7
  create: "New Gateway Service",
8
8
  copy_id: "Copy ID",
9
9
  copy_json: "Copy JSON",
@@ -19,7 +19,7 @@ const mr = {
19
19
  description: "Deleting this Gateway Service will also remove any associated routes and plugins. This action cannot be reversed.",
20
20
  menu_label: "Delete"
21
21
  }
22
- }, gr = {
22
+ }, mr = {
23
23
  placeholder: {
24
24
  konnect: "Filter by name",
25
25
  kongManager: "Filter by exact name or ID"
@@ -176,8 +176,8 @@ const mr = {
176
176
  }, br = {
177
177
  gateway_services: "gateway services"
178
178
  }, wr = {
179
- actions: mr,
180
- search: gr,
179
+ actions: gr,
180
+ search: mr,
181
181
  gateway_services: yr,
182
182
  errors: vr,
183
183
  copy: hr,
@@ -275,12 +275,12 @@ function Sr() {
275
275
  }
276
276
  };
277
277
  }
278
- const pt = "khcp-user-table-preferences", xr = {
278
+ const pt = "khcp-user-table-preferences", Ir = {
279
279
  pageSize: 30,
280
280
  sortColumnKey: void 0,
281
281
  sortColumnOrder: void 0
282
282
  };
283
- function Ar() {
283
+ function xr() {
284
284
  const e = (t) => {
285
285
  if (typeof t == "string")
286
286
  try {
@@ -304,20 +304,20 @@ function Ar() {
304
304
  },
305
305
  getTablePreferences: (t) => {
306
306
  const a = i();
307
- return (a == null ? void 0 : a.get(t)) || void 0 || xr;
307
+ return (a == null ? void 0 : a.get(t)) || void 0 || Ir;
308
308
  },
309
309
  deleteAllTablePreferences: () => {
310
310
  localStorage.removeItem(pt);
311
311
  }
312
312
  };
313
313
  }
314
- function xt(e = {}) {
314
+ function It(e = {}) {
315
315
  const { getAxiosInstance: i } = Cr();
316
316
  return {
317
317
  axiosInstance: i(e)
318
318
  };
319
319
  }
320
- const Ir = {
320
+ const Ar = {
321
321
  actions: {
322
322
  copyId: "Copy ID",
323
323
  copied_id: 'Copied "{id}" to the clipboard',
@@ -412,7 +412,7 @@ const Ir = {
412
412
  confirmText: "Yes, disable"
413
413
  }
414
414
  }, Vr = {
415
- global: Ir,
415
+ global: Ar,
416
416
  deleteModal: Tr,
417
417
  baseForm: jr,
418
418
  baseTable: $r,
@@ -422,7 +422,7 @@ const Ir = {
422
422
  errors: Fr,
423
423
  toggleModal: Nr
424
424
  };
425
- function At() {
425
+ function xt() {
426
426
  const e = ni("en-us", Vr);
427
427
  return {
428
428
  i18n: e,
@@ -474,92 +474,92 @@ function ci() {
474
474
  isValidUuid: (t) => t ? /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/.test(t) : !1
475
475
  };
476
476
  }
477
- function Lr(e, i, t, a = {
477
+ function qr(e, i, t, a = {
478
478
  fetchedItemsKey: "data",
479
479
  searchKeys: ["id"]
480
480
  }) {
481
481
  t || (t = "100");
482
- const { axiosInstance: r } = xt({
482
+ const { axiosInstance: r } = It({
483
483
  headers: e.requestHeaders
484
- }), { i18n: { t: n } } = At(), { debounce: o } = Sr(), s = o(async (b) => {
485
- await c(b);
486
- }, 200), l = V(!1), u = V(""), g = V(""), p = V([]), C = V([]), w = V(void 0), I = f(i);
487
- let S = `${e.apiBaseUrl}${I}`;
488
- e.app === "konnect" ? S = S.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (S = S.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
484
+ }), { i18n: { t: n } } = xt(), { debounce: o } = Sr(), s = o(async (w) => {
485
+ await c(w);
486
+ }, 200), l = V(!1), d = V(""), m = V(""), p = V([]), _ = V([]), b = V(void 0), x = f(i);
487
+ let C = `${e.apiBaseUrl}${x}`;
488
+ e.app === "konnect" ? C = C.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (C = C.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
489
489
  const { isValidUuid: T } = ci(), R = async () => {
490
490
  try {
491
491
  l.value = !0;
492
- const { data: b } = await r.get(`${S}?size=${t}`);
493
- b != null && b.next || (w.value = a.fetchedItemsKey in b ? b[a.fetchedItemsKey] : []), C.value = a.fetchedItemsKey in b ? b[a.fetchedItemsKey] : [], p.value = C.value;
492
+ const { data: w } = await r.get(`${C}?size=${t}`);
493
+ w != null && w.next || (b.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : []), _.value = a.fetchedItemsKey in w ? w[a.fetchedItemsKey] : [], p.value = _.value;
494
494
  } catch {
495
- p.value = [], u.value = n("debouncedFilter.errors.fetch");
495
+ p.value = [], d.value = n("debouncedFilter.errors.fetch");
496
496
  } finally {
497
497
  l.value = !1;
498
498
  }
499
- }, K = V(""), c = async (b) => {
500
- var k, v, L;
501
- if (K.value !== b)
502
- if (K.value = b || "", w.value === void 0)
499
+ }, K = V(""), c = async (w) => {
500
+ var S, v, q;
501
+ if (K.value !== w)
502
+ if (K.value = w || "", b.value === void 0)
503
503
  try {
504
- if (l.value = !0, u.value = "", g.value = "", e.app === "konnect") {
505
- let B = S + "";
506
- b && (B += `/${b}`);
504
+ if (l.value = !0, d.value = "", m.value = "", e.app === "konnect") {
505
+ let B = C + "";
506
+ w && (B += `/${w}`);
507
507
  const { data: j } = await r.get(`${B}?size=${t}`);
508
508
  a.fetchedItemsKey in j ? p.value = j[a.fetchedItemsKey] : j != null && j.id ? p.value = [j] : p.value = [];
509
- } else if (b) {
509
+ } else if (w) {
510
510
  const B = [];
511
- T(b) && a.searchKeys.includes("id") ? B.push((async () => {
512
- const { data: q } = await r.get(`${S}/${b}`);
513
- return [q[a.fetchedItemsKey] ?? q];
511
+ T(w) && a.searchKeys.includes("id") ? B.push((async () => {
512
+ const { data: L } = await r.get(`${C}/${w}`);
513
+ return [L[a.fetchedItemsKey] ?? L];
514
514
  })()) : B.push(
515
- ...a.searchKeys.filter((q) => q !== "id").map(async (q) => {
516
- const { data: N } = await r.get(`${S}?${q}=${b}`);
515
+ ...a.searchKeys.filter((L) => L !== "id").map(async (L) => {
516
+ const { data: N } = await r.get(`${C}?${L}=${w}`);
517
517
  return N[a.fetchedItemsKey];
518
518
  })
519
519
  );
520
520
  const j = await Promise.all(B), J = /* @__PURE__ */ new Set();
521
- p.value = [], (k = j == null ? void 0 : j.forEach) == null || k.call(j, (q) => {
521
+ p.value = [], (S = j == null ? void 0 : j.forEach) == null || S.call(j, (L) => {
522
522
  var N;
523
- (N = q == null ? void 0 : q.forEach) == null || N.call(q, (G) => {
523
+ (N = L == null ? void 0 : L.forEach) == null || N.call(L, (G) => {
524
524
  J.has(G.id) || (J.add(G.id), p.value.push(G));
525
525
  });
526
526
  });
527
527
  } else
528
- p.value = C.value;
528
+ p.value = _.value;
529
529
  } catch (B) {
530
- ((v = B == null ? void 0 : B.response) == null ? void 0 : v.status) === 404 ? g.value = n("debouncedFilter.errors.invalid") : (p.value = [], u.value = n("debouncedFilter.errors.fetch"));
530
+ ((v = B == null ? void 0 : B.response) == null ? void 0 : v.status) === 404 ? m.value = n("debouncedFilter.errors.invalid") : (p.value = [], d.value = n("debouncedFilter.errors.fetch"));
531
531
  } finally {
532
532
  l.value = !1;
533
533
  }
534
534
  else
535
- l.value = !0, g.value = "", b ? (p.value = (L = w.value) == null ? void 0 : L.filter((B) => {
535
+ l.value = !0, m.value = "", w ? (p.value = (q = b.value) == null ? void 0 : q.filter((B) => {
536
536
  var j;
537
537
  let J = !1;
538
- for (const q of a.searchKeys) {
539
- const N = typeof B[q] == "string" ? (j = B[q]) == null ? void 0 : j.toLowerCase() : B[q];
540
- N != null && N.includes(b.toLowerCase()) && (J = !0);
538
+ for (const L of a.searchKeys) {
539
+ const N = typeof B[L] == "string" ? (j = B[L]) == null ? void 0 : j.toLowerCase() : B[L];
540
+ N != null && N.includes(w.toLowerCase()) && (J = !0);
541
541
  }
542
542
  return J;
543
- }), (!p.value || !p.value.length) && (g.value = n("debouncedFilter.errors.invalid"))) : p.value = w.value, l.value = !1;
543
+ }), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value = b.value, l.value = !1;
544
544
  };
545
545
  return {
546
546
  loading: l,
547
- error: u,
548
- validationError: g,
547
+ error: d,
548
+ validationError: m,
549
549
  results: p,
550
- allRecords: w,
550
+ allRecords: b,
551
551
  loadItems: R,
552
552
  debouncedQueryChange: s
553
553
  };
554
554
  }
555
- function qr(e, i) {
555
+ function Lr(e, i) {
556
556
  const t = f(i), a = A(
557
557
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
558
558
  );
559
559
  return a.value.search = "", (r) => `${a.value.href}/${r}`;
560
560
  }
561
561
  function Kr() {
562
- const { i18n: { t: e } } = At();
562
+ const { i18n: { t: e } } = xt();
563
563
  return {
564
564
  getMessageFromError: (i) => {
565
565
  var t, a, r, n;
@@ -606,60 +606,66 @@ function ui(e, i) {
606
606
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
607
607
  );
608
608
  return (o) => {
609
- const { page: s, pageSize: l, offset: u, sortColumnKey: g, sortColumnOrder: p, query: C } = o;
609
+ const { page: s, pageSize: l, offset: d, sortColumnKey: m, sortColumnOrder: p, query: _ } = o;
610
610
  try {
611
- let w = new URL(n.value.href);
612
- return r.value && C ? (w.search = "", w = t.value.isExactMatch ? new URL(`${w.href}/${C}/`) : new URL(`${w.href}?filter[name][contains]=${C}`)) : (r.value || new URLSearchParams(C).forEach((I, S) => {
613
- w.searchParams.append(S, I);
614
- }), g && w.searchParams.append("sort_by", g), p === "desc" && w.searchParams.append("sort_desc", "1"), w.searchParams.append("size", String(l))), u && s !== 1 && w.searchParams.append("offset", String(u)), w.href;
615
- } catch (w) {
616
- return console.error("RouteList(fetcher)", w), a.value;
611
+ let b = new URL(n.value.href);
612
+ return r.value && _ ? (b.search = "", b = t.value.isExactMatch ? new URL(`${b.href}/${_}/`) : new URL(`${b.href}?filter[name][contains]=${_}`)) : (r.value || new URLSearchParams(_).forEach((x, C) => {
613
+ b.searchParams.append(C, x);
614
+ }), m && b.searchParams.append("sort_by", m), p === "desc" && b.searchParams.append("sort_desc", "1"), b.searchParams.append("size", String(l))), d && s !== 1 && b.searchParams.append("offset", String(d)), b.href;
615
+ } catch (b) {
616
+ return console.error("RouteList(fetcher)", b), a.value;
617
617
  }
618
618
  };
619
619
  }
620
620
  function Ur(e, i, t = "data") {
621
- const a = f(i), { axiosInstance: r } = xt({
622
- headers: e.requestHeaders
623
- }), n = ui(e, a), o = V({
621
+ var a;
622
+ const r = f(i), { axiosInstance: n } = It({
623
+ ...e.axiosRequestConfig,
624
+ headers: { ...(a = e.axiosRequestConfig) == null ? void 0 : a.headers, ...e.requestHeaders }
625
+ }), o = ui(e, r), s = V({
624
626
  status: $e.Idle
625
627
  });
626
- return { fetcher: async (s) => {
628
+ return { fetcher: async (l) => {
629
+ var d;
627
630
  try {
628
- o.value = { status: $e.Loading };
629
- let l = n(s);
630
- l.includes("filter[name]") && (l = `${l}&page[size]=${s.pageSize}&page[number]=${s.page}`);
631
- const { data: u } = await r.get(l), g = t && t.replace(/[^\w-_]/gi, "");
632
- let p;
633
- u[g] && Array.isArray(u[g]) ? p = u[g] : Array.isArray(u) ? p = u : p = Object.keys(u).length ? [u] : [];
631
+ s.value = { status: $e.Loading };
632
+ let m = o(l);
633
+ m.includes("filter[name]") && (m = `${m}&page[size]=${l.pageSize}&page[number]=${l.page}`);
634
+ const p = await n.get(m);
635
+ if (p.status >= 400)
636
+ throw p;
637
+ const _ = p.data, b = t && t.replace(/[^\w-_]/gi, "");
638
+ let x;
639
+ _[b] && Array.isArray(_[b]) ? x = _[b] : Array.isArray(_) ? x = _ : x = Object.keys(_).length ? [_] : [];
634
640
  const C = {
635
- data: p,
636
- total: p.length,
637
- ...u.offset ? {
641
+ data: x,
642
+ total: x.length,
643
+ ..._.offset ? {
638
644
  pagination: {
639
- offset: u.offset
645
+ offset: _.offset
640
646
  }
641
647
  } : null
642
648
  };
643
- return o.value = {
649
+ return s.value = {
644
650
  status: $e.Idle,
645
651
  response: C
646
652
  }, C;
647
- } catch (l) {
648
- const u = {
653
+ } catch (m) {
654
+ const p = {
649
655
  data: [],
650
656
  total: 0
651
657
  };
652
- return s.query && l.response.status === 404 ? (o.value = {
658
+ return l.query && (((d = m.response) == null ? void 0 : d.status) === 404 || m.status === 404) ? (s.value = {
653
659
  status: $e.NoResults,
654
- response: u,
655
- error: l
656
- }, u) : (o.value = {
660
+ response: p,
661
+ error: m.response ? m : { response: m }
662
+ }, p) : (s.value = {
657
663
  status: $e.Error,
658
- response: u,
659
- error: l
660
- }, u);
664
+ response: p,
665
+ error: m.response ? m : { response: m }
666
+ }, p);
661
667
  }
662
- }, fetcherState: o };
668
+ }, fetcherState: s };
663
669
  }
664
670
  function Br() {
665
671
  const e = (t, a = "_") => t ? t.split(a).map((r) => r.toLowerCase() === "id" ? r.toUpperCase() : r.charAt(0).toUpperCase() + r.substring(1)).join(" ") : "", i = /(?:^|[\s-:'"])\w/g;
@@ -675,15 +681,15 @@ const di = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
675
681
  if (!i)
676
682
  throw new Error(`Invalid argument not valid semver ('${e}' received)`);
677
683
  return i.shift(), i;
678
- }, Vt = (e) => e === "*" || e === "x" || e === "X", Lt = (e) => {
684
+ }, Vt = (e) => e === "*" || e === "x" || e === "X", qt = (e) => {
679
685
  const i = parseInt(e, 10);
680
686
  return isNaN(i) ? e : i;
681
687
  }, Rr = (e, i) => typeof e != typeof i ? [String(e), String(i)] : [e, i], Dr = (e, i) => {
682
688
  if (Vt(e) || Vt(i))
683
689
  return 0;
684
- const [t, a] = Rr(Lt(e), Lt(i));
690
+ const [t, a] = Rr(qt(e), qt(i));
685
691
  return t > a ? 1 : t < a ? -1 : 0;
686
- }, qt = (e, i) => {
692
+ }, Lt = (e, i) => {
687
693
  for (let t = 0; t < Math.max(e.length, i.length); t++) {
688
694
  const a = Dr(e[t] || "0", i[t] || "0");
689
695
  if (a !== 0)
@@ -691,8 +697,8 @@ const di = /^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-(
691
697
  }
692
698
  return 0;
693
699
  }, zr = (e, i) => {
694
- const t = Nt(e), a = Nt(i), r = t.pop(), n = a.pop(), o = qt(t, a);
695
- return o !== 0 ? o : r && n ? qt(r.split("."), n.split(".")) : r || n ? r ? -1 : 1 : 0;
700
+ const t = Nt(e), a = Nt(i), r = t.pop(), n = a.pop(), o = Lt(t, a);
701
+ return o !== 0 ? o : r && n ? Lt(r.split("."), n.split(".")) : r || n ? r ? -1 : 1 : 0;
696
702
  }, Kt = (e, i, t) => {
697
703
  Hr(t);
698
704
  const a = zr(e, i);
@@ -732,16 +738,16 @@ function Wr(e) {
732
738
  };
733
739
  }
734
740
  const ne = {
735
- useAxios: xt,
736
- useDebouncedFilter: Lr,
737
- useDeleteUrlBuilder: qr,
741
+ useAxios: It,
742
+ useDebouncedFilter: qr,
743
+ useDeleteUrlBuilder: Lr,
738
744
  useErrors: Kr,
739
745
  useExternalLinkCreator: Pr,
740
746
  useFetcher: Ur,
741
747
  useFetchUrlBuilder: ui,
742
748
  useHelpers: ci,
743
749
  useStringHelpers: Br,
744
- useI18n: At,
750
+ useI18n: xt,
745
751
  useGatewayFeatureSupported: Gr,
746
752
  useTruncationDetector: Wr
747
753
  }, Yr = {
@@ -771,19 +777,19 @@ const ne = {
771
777
  var l;
772
778
  return i.isArrayItem ? (l = n.value) != null && l.name ? a(n.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
773
779
  });
774
- return (l, u) => (h(), z(Oe(e.isArrayItem ? "fieldset" : "div"), {
775
- class: xe(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
780
+ return (l, d) => (h(), z(Oe(e.isArrayItem ? "fieldset" : "div"), {
781
+ class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
776
782
  }, {
777
783
  default: y(() => [
778
784
  e.isArrayItem ? (h(), $("legend", Yr, [
779
785
  F("b", null, M(s.value), 1)
780
786
  ])) : H("", !0),
781
- (h(!0), $(ve, null, ge(Object.keys(o.value), (g, p) => (h(), z(mi, {
787
+ (h(!0), $(ve, null, me(Object.keys(o.value), (m, p) => (h(), z(gi, {
782
788
  key: `${r.value}-property-${p}`,
783
789
  item: {
784
- key: g,
785
- label: f(a)(g),
786
- value: o.value[g]
790
+ key: m,
791
+ label: f(a)(m),
792
+ value: o.value[m]
787
793
  }
788
794
  }, null, 8, ["item"]))), 128))
789
795
  ]),
@@ -809,7 +815,7 @@ const ne = {
809
815
  return (t, a) => {
810
816
  const r = U("KButton");
811
817
  return h(), $("div", null, [
812
- x(r, {
818
+ I(r, {
813
819
  appearance: "tertiary",
814
820
  class: "navigation-button",
815
821
  onClick: a[0] || (a[0] = (n) => t.$emit("navigation-click", e.item))
@@ -844,7 +850,7 @@ const ne = {
844
850
  }, 8, ["appearance"]);
845
851
  };
846
852
  }
847
- }), ta = "#0044f4", ia = "#e0e4ea", ra = "#3a3f51", aa = "#afb7c5", oa = "1px", na = "20px", la = { class: "config-card-details-row" }, sa = ["data-testid"], ca = ["data-testid"], ua = ["data-testid"], da = ["data-testid"], pa = { key: 1 }, fa = ["data-testid"], ma = ["data-testid"], ga = ["data-testid"], ya = ["data-testid"], va = {
853
+ }), ta = "#0044f4", ia = "#e0e4ea", ra = "#3a3f51", aa = "#afb7c5", oa = "1px", na = "20px", la = { class: "config-card-details-row" }, sa = ["data-testid"], ca = ["data-testid"], ua = ["data-testid"], da = ["data-testid"], pa = { key: 1 }, fa = ["data-testid"], ga = ["data-testid"], ma = ["data-testid"], ya = ["data-testid"], va = {
848
854
  name: "ConfigCardItem",
849
855
  components: { JsonCardItem: fi, StatusBadge: ea, InternalLinkItem: Xr }
850
856
  }, ha = /* @__PURE__ */ ee({
@@ -867,13 +873,13 @@ const ne = {
867
873
  },
868
874
  emits: ["navigation-click"],
869
875
  setup(e, { emit: i }) {
870
- ai((I) => ({
871
- "07753575": g.value ? "none" : `solid ${f(oa)} ${f(ia)}`,
872
- "32d44ea8": u.value && s.value ? "block" : "flex",
873
- "5036b738": u.value && s.value ? "100%" : t.slim ? "50%" : "25%",
874
- "5038fd13": u.value && s.value ? "100%" : t.slim ? "50%" : "75%"
876
+ ai((x) => ({
877
+ "07753575": m.value ? "none" : `solid ${f(oa)} ${f(ia)}`,
878
+ "32d44ea8": d.value && s.value ? "block" : "flex",
879
+ "5036b738": d.value && s.value ? "100%" : t.slim ? "50%" : "25%",
880
+ "5038fd13": d.value && s.value ? "100%" : t.slim ? "50%" : "75%"
875
881
  }));
876
- const t = e, a = i, r = Ct(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), s = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || r["label-tooltip"])), u = A(() => t.item.type === X.Json || t.item.type === X.JsonArray), g = A(() => t.item.type === X.JsonArray), p = A(() => {
882
+ const t = e, a = i, r = Ct(), { i18n: { t: n, formatUnixTimeStamp: o } } = ne.useI18n(), s = A(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = A(() => !!(t.item.tooltip || r["label-tooltip"])), d = A(() => t.item.type === X.Json || t.item.type === X.JsonArray), m = A(() => t.item.type === X.JsonArray), p = A(() => {
877
883
  switch (t.item.type) {
878
884
  case X.ID:
879
885
  return {
@@ -943,8 +949,8 @@ const ne = {
943
949
  attrs: {
944
950
  "data-testid": `${t.item.key}-internal-link`,
945
951
  item: t.item,
946
- onNavigationClick: (I) => {
947
- a("navigation-click", I);
952
+ onNavigationClick: (x) => {
953
+ a("navigation-click", x);
948
954
  }
949
955
  }
950
956
  };
@@ -983,16 +989,16 @@ const ne = {
983
989
  text: t.item.value
984
990
  };
985
991
  }
986
- }), C = V(), { isTruncated: w } = ne.useTruncationDetector(C);
987
- return (I, S) => {
992
+ }), _ = V(), { isTruncated: b } = ne.useTruncationDetector(_);
993
+ return (x, C) => {
988
994
  const T = U("KLabel"), R = U("KBadge"), K = U("KCopy"), c = U("KTooltip");
989
995
  return h(), $("div", la, [
990
996
  F("div", {
991
997
  class: "config-card-details-label",
992
998
  "data-testid": `${e.item.key}-label`
993
999
  }, [
994
- te(I.$slots, "label", { item: e.item }, () => [
995
- x(T, { "tooltip-attributes": { maxWidth: "500px" } }, Pe({
1000
+ te(x.$slots, "label", { item: e.item }, () => [
1001
+ I(T, { "tooltip-attributes": { maxWidth: "500px" } }, Pe({
996
1002
  default: y(() => [
997
1003
  W(M(e.item.label) + " ", 1)
998
1004
  ]),
@@ -1004,7 +1010,7 @@ const ne = {
1004
1010
  F("div", {
1005
1011
  "data-testid": `${e.item.key}-label-tooltip`
1006
1012
  }, [
1007
- te(I.$slots, "label-tooltip", {}, () => [
1013
+ te(x.$slots, "label-tooltip", {}, () => [
1008
1014
  W(M(e.item.tooltip), 1)
1009
1015
  ], !0)
1010
1016
  ], 8, ca)
@@ -1018,7 +1024,7 @@ const ne = {
1018
1024
  class: "config-card-details-value",
1019
1025
  "data-testid": `${e.item.key}-property-value`
1020
1026
  }, [
1021
- te(I.$slots, e.item.key, {
1027
+ te(x.$slots, e.item.key, {
1022
1028
  rowValue: e.item.value
1023
1029
  }, () => [
1024
1030
  s.value ? (h(), $("div", pa, [
@@ -1028,15 +1034,15 @@ const ne = {
1028
1034
  key: 0,
1029
1035
  "data-testid": `${e.item.key}-badge-tags`
1030
1036
  }, [
1031
- (h(!0), $(ve, null, ge(e.item.value, (b, k) => (h(), z(R, {
1032
- key: `${e.item.key}-badge-tag-${k}`,
1037
+ (h(!0), $(ve, null, me(e.item.value, (w, S) => (h(), z(R, {
1038
+ key: `${e.item.key}-badge-tag-${S}`,
1033
1039
  class: "config-badge",
1034
- "data-testid": `${e.item.key}-badge-tag-${k}`,
1035
- tooltip: b,
1040
+ "data-testid": `${e.item.key}-badge-tag-${S}`,
1041
+ tooltip: w,
1036
1042
  "truncation-tooltip": ""
1037
1043
  }, {
1038
1044
  default: y(() => [
1039
- W(M(b), 1)
1045
+ W(M(w), 1)
1040
1046
  ]),
1041
1047
  _: 2
1042
1048
  }, 1032, ["data-testid", "tooltip"]))), 128))
@@ -1046,47 +1052,47 @@ const ne = {
1046
1052
  class: "copy-uuid-array",
1047
1053
  "data-testid": `${e.item.key}-copy-uuid-array`
1048
1054
  }, [
1049
- (h(!0), $(ve, null, ge(e.item.value, (b, k) => (h(), z(K, pr(p.value.childAttrs, {
1050
- key: `${e.item.key}-copy-uuid-${k}`,
1051
- "data-testid": `${e.item.key}-copy-uuid-${k}`,
1052
- text: b
1055
+ (h(!0), $(ve, null, me(e.item.value, (w, S) => (h(), z(K, pr(p.value.childAttrs, {
1056
+ key: `${e.item.key}-copy-uuid-${S}`,
1057
+ "data-testid": `${e.item.key}-copy-uuid-${S}`,
1058
+ text: w
1053
1059
  }), null, 16, ["data-testid", "text"]))), 128))
1054
- ], 8, ma)) : p.value.additionalComponent === "KMethodBadge" ? (h(), $("div", {
1060
+ ], 8, ga)) : p.value.additionalComponent === "KMethodBadge" ? (h(), $("div", {
1055
1061
  key: 2,
1056
1062
  class: "method-badge-array",
1057
1063
  "data-testid": `${e.item.key}-badge-methods`
1058
1064
  }, [
1059
- (h(!0), $(ve, null, ge(e.item.value, (b, k) => (h(), z(R, {
1060
- key: `${e.item.key}-badge-method-${k}`,
1061
- appearance: Object.values(f(fr)).includes(b.toLowerCase()) ? b.toLowerCase() : "custom",
1065
+ (h(!0), $(ve, null, me(e.item.value, (w, S) => (h(), z(R, {
1066
+ key: `${e.item.key}-badge-method-${S}`,
1067
+ appearance: Object.values(f(fr)).includes(w.toLowerCase()) ? w.toLowerCase() : "custom",
1062
1068
  class: "config-badge",
1063
- "data-testid": `${e.item.key}-badge-method-${k}`
1069
+ "data-testid": `${e.item.key}-badge-method-${S}`
1064
1070
  }, {
1065
1071
  default: y(() => [
1066
- W(M(b), 1)
1072
+ W(M(w), 1)
1067
1073
  ]),
1068
1074
  _: 2
1069
1075
  }, 1032, ["appearance", "data-testid"]))), 128))
1070
- ], 8, ga)) : H("", !0),
1076
+ ], 8, ma)) : H("", !0),
1071
1077
  p.value.additionalComponent === "JsonCardItem" ? (h(), $("div", {
1072
1078
  key: 3,
1073
1079
  "data-testid": `${t.item.key}-json-array-content`
1074
1080
  }, [
1075
- (h(!0), $(ve, null, ge(e.item.value, (b, k) => (h(), z(fi, {
1076
- key: `json-array-item-${k}`,
1077
- index: k,
1081
+ (h(!0), $(ve, null, me(e.item.value, (w, S) => (h(), z(fi, {
1082
+ key: `json-array-item-${S}`,
1083
+ index: S,
1078
1084
  "is-array-item": "",
1079
- item: b
1085
+ item: w
1080
1086
  }, null, 8, ["index", "item"]))), 128))
1081
1087
  ], 8, ya)) : (h(), z(c, {
1082
1088
  key: 4,
1083
- text: f(w) ? e.item.value : ""
1089
+ text: f(b) ? e.item.value : ""
1084
1090
  }, {
1085
1091
  default: y(() => [
1086
1092
  F("span", {
1087
1093
  ref_key: "textContent",
1088
- ref: C,
1089
- class: xe(["attrs-data-text", { truncated: e.truncated }])
1094
+ ref: _,
1095
+ class: Ie(["attrs-data-text", { truncated: e.truncated }])
1090
1096
  }, M(p.value.text), 3)
1091
1097
  ]),
1092
1098
  _: 1
@@ -1103,10 +1109,10 @@ const ne = {
1103
1109
  ]);
1104
1110
  };
1105
1111
  }
1106
- }), mi = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-d056663c"]]), ba = { class: "json-config" }, wa = {
1112
+ }), gi = /* @__PURE__ */ ye(ha, [["__scopeId", "data-v-d056663c"]]), ba = { class: "json-config" }, wa = {
1107
1113
  key: 0,
1108
1114
  class: "json-endpoint"
1109
- }, gi = /* @__PURE__ */ ee({
1115
+ }, mi = /* @__PURE__ */ ee({
1110
1116
  __name: "JsonCodeBlock",
1111
1117
  props: {
1112
1118
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1148,7 +1154,7 @@ const ne = {
1148
1154
  const o = U("KBadge"), s = U("KCodeBlock");
1149
1155
  return h(), $("div", ba, [
1150
1156
  i.fetcherUrl ? (h(), $("div", wa, [
1151
- x(o, {
1157
+ I(o, {
1152
1158
  appearance: i.requestMethod
1153
1159
  }, {
1154
1160
  default: y(() => [
@@ -1156,7 +1162,7 @@ const ne = {
1156
1162
  ]),
1157
1163
  _: 1
1158
1164
  }, 8, ["appearance"]),
1159
- x(s, {
1165
+ I(s, {
1160
1166
  id: "json-endpoint-codeblock",
1161
1167
  code: i.fetcherUrl,
1162
1168
  "is-single-line": "",
@@ -1167,7 +1173,7 @@ const ne = {
1167
1173
  i.jsonRecord ? (h(), z(s, {
1168
1174
  key: 1,
1169
1175
  id: "json-codeblock",
1170
- class: xe({ "json-content": i.fetcherUrl }),
1176
+ class: Ie({ "json-content": i.fetcherUrl }),
1171
1177
  code: JSON.stringify(t.value, null, 2),
1172
1178
  language: "json",
1173
1179
  theme: "dark"
@@ -1199,12 +1205,12 @@ function Sa(e, i) {
1199
1205
  t += e;
1200
1206
  return t;
1201
1207
  }
1202
- function xa(e) {
1208
+ function Ia(e) {
1203
1209
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1204
1210
  }
1205
- var Aa = yi, Ia = _a, Ta = ka, ja = Sa, $a = xa, Ma = Ca, oe = {
1206
- isNothing: Aa,
1207
- isObject: Ia,
1211
+ var xa = yi, Aa = _a, Ta = ka, ja = Sa, $a = Ia, Ma = Ca, oe = {
1212
+ isNothing: xa,
1213
+ isObject: Aa,
1208
1214
  toArray: Ta,
1209
1215
  repeat: ja,
1210
1216
  isNegativeZero: $a,
@@ -1233,7 +1239,7 @@ function ft(e, i, t, a, r) {
1233
1239
  // relative position
1234
1240
  };
1235
1241
  }
1236
- function mt(e, i) {
1242
+ function gt(e, i) {
1237
1243
  return oe.repeat(" ", i - e.length) + e;
1238
1244
  }
1239
1245
  function Oa(e, i) {
@@ -1243,26 +1249,26 @@ function Oa(e, i) {
1243
1249
  for (var t = /\r?\n|\r|\0/g, a = [0], r = [], n, o = -1; n = t.exec(e.buffer); )
1244
1250
  r.push(n.index), a.push(n.index + n[0].length), e.position <= n.index && o < 0 && (o = a.length - 2);
1245
1251
  o < 0 && (o = a.length - 1);
1246
- var s = "", l, u, g = Math.min(e.line + i.linesAfter, r.length).toString().length, p = i.maxLength - (i.indent + g + 3);
1252
+ var s = "", l, d, m = Math.min(e.line + i.linesAfter, r.length).toString().length, p = i.maxLength - (i.indent + m + 3);
1247
1253
  for (l = 1; l <= i.linesBefore && !(o - l < 0); l++)
1248
- u = ft(
1254
+ d = ft(
1249
1255
  e.buffer,
1250
1256
  a[o - l],
1251
1257
  r[o - l],
1252
1258
  e.position - (a[o] - a[o - l]),
1253
1259
  p
1254
- ), s = oe.repeat(" ", i.indent) + mt((e.line - l + 1).toString(), g) + " | " + u.str + `
1260
+ ), s = oe.repeat(" ", i.indent) + gt((e.line - l + 1).toString(), m) + " | " + d.str + `
1255
1261
  ` + s;
1256
- for (u = ft(e.buffer, a[o], r[o], e.position, p), s += oe.repeat(" ", i.indent) + mt((e.line + 1).toString(), g) + " | " + u.str + `
1257
- `, s += oe.repeat("-", i.indent + g + 3 + u.pos) + `^
1262
+ for (d = ft(e.buffer, a[o], r[o], e.position, p), s += oe.repeat(" ", i.indent) + gt((e.line + 1).toString(), m) + " | " + d.str + `
1263
+ `, s += oe.repeat("-", i.indent + m + 3 + d.pos) + `^
1258
1264
  `, l = 1; l <= i.linesAfter && !(o + l >= r.length); l++)
1259
- u = ft(
1265
+ d = ft(
1260
1266
  e.buffer,
1261
1267
  a[o + l],
1262
1268
  r[o + l],
1263
1269
  e.position - (a[o] - a[o + l]),
1264
1270
  p
1265
- ), s += oe.repeat(" ", i.indent) + mt((e.line + l + 1).toString(), g) + " | " + u.str + `
1271
+ ), s += oe.repeat(" ", i.indent) + gt((e.line + l + 1).toString(), m) + " | " + d.str + `
1266
1272
  `;
1267
1273
  return s.replace(/\n$/, "");
1268
1274
  }
@@ -1290,7 +1296,7 @@ function Va(e) {
1290
1296
  });
1291
1297
  }), i;
1292
1298
  }
1293
- function La(e, i) {
1299
+ function qa(e, i) {
1294
1300
  if (i = i || {}, Object.keys(i).forEach(function(t) {
1295
1301
  if (Fa.indexOf(t) === -1)
1296
1302
  throw new ue('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
@@ -1301,7 +1307,7 @@ function La(e, i) {
1301
1307
  }, this.instanceOf = i.instanceOf || null, this.predicate = i.predicate || null, this.represent = i.represent || null, this.representName = i.representName || null, this.defaultStyle = i.defaultStyle || null, this.multi = i.multi || !1, this.styleAliases = Va(i.styleAliases || null), Na.indexOf(this.kind) === -1)
1302
1308
  throw new ue('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1303
1309
  }
1304
- var le = La;
1310
+ var le = qa;
1305
1311
  function Ut(e, i) {
1306
1312
  var t = [];
1307
1313
  return e[i].forEach(function(a) {
@@ -1311,7 +1317,7 @@ function Ut(e, i) {
1311
1317
  }), t[r] = a;
1312
1318
  }), t;
1313
1319
  }
1314
- function qa() {
1320
+ function La() {
1315
1321
  var e = {
1316
1322
  scalar: {},
1317
1323
  sequence: {},
@@ -1356,7 +1362,7 @@ vt.prototype.extend = function(e) {
1356
1362
  throw new ue("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1357
1363
  });
1358
1364
  var a = Object.create(vt.prototype);
1359
- return a.implicit = (this.implicit || []).concat(i), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Ut(a, "implicit"), a.compiledExplicit = Ut(a, "explicit"), a.compiledTypeMap = qa(a.compiledImplicit, a.compiledExplicit), a;
1365
+ return a.implicit = (this.implicit || []).concat(i), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Ut(a, "implicit"), a.compiledExplicit = Ut(a, "explicit"), a.compiledTypeMap = La(a.compiledImplicit, a.compiledExplicit), a;
1360
1366
  };
1361
1367
  var hi = vt, bi = new le("tag:yaml.org,2002:str", {
1362
1368
  kind: "scalar",
@@ -1519,7 +1525,7 @@ function Wa(e) {
1519
1525
  function Ya(e) {
1520
1526
  return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !oe.isNegativeZero(e);
1521
1527
  }
1522
- var xi = new le("tag:yaml.org,2002:int", {
1528
+ var Ii = new le("tag:yaml.org,2002:int", {
1523
1529
  kind: "scalar",
1524
1530
  resolve: Ga,
1525
1531
  construct: Wa,
@@ -1596,21 +1602,21 @@ function to(e, i) {
1596
1602
  function io(e) {
1597
1603
  return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || oe.isNegativeZero(e));
1598
1604
  }
1599
- var Ai = new le("tag:yaml.org,2002:float", {
1605
+ var xi = new le("tag:yaml.org,2002:float", {
1600
1606
  kind: "scalar",
1601
1607
  resolve: Qa,
1602
1608
  construct: Xa,
1603
1609
  predicate: io,
1604
1610
  represent: to,
1605
1611
  defaultStyle: "lowercase"
1606
- }), Ii = ki.extend({
1612
+ }), Ai = ki.extend({
1607
1613
  implicit: [
1608
1614
  Ci,
1609
1615
  Si,
1610
- xi,
1611
- Ai
1616
+ Ii,
1617
+ xi
1612
1618
  ]
1613
- }), Ti = Ii, ji = new RegExp(
1619
+ }), Ti = Ai, ji = new RegExp(
1614
1620
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"
1615
1621
  ), $i = new RegExp(
1616
1622
  "^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$"
@@ -1619,7 +1625,7 @@ function ro(e) {
1619
1625
  return e === null ? !1 : ji.exec(e) !== null || $i.exec(e) !== null;
1620
1626
  }
1621
1627
  function ao(e) {
1622
- var i, t, a, r, n, o, s, l = 0, u = null, g, p, C;
1628
+ var i, t, a, r, n, o, s, l = 0, d = null, m, p, _;
1623
1629
  if (i = ji.exec(e), i === null && (i = $i.exec(e)), i === null)
1624
1630
  throw new Error("Date resolve error");
1625
1631
  if (t = +i[1], a = +i[2] - 1, r = +i[3], !i[4])
@@ -1629,7 +1635,7 @@ function ao(e) {
1629
1635
  l += "0";
1630
1636
  l = +l;
1631
1637
  }
1632
- return i[9] && (g = +i[10], p = +(i[11] || 0), u = (g * 60 + p) * 6e4, i[9] === "-" && (u = -u)), C = new Date(Date.UTC(t, a, r, n, o, s, l)), u && C.setTime(C.getTime() - u), C;
1638
+ return i[9] && (m = +i[10], p = +(i[11] || 0), d = (m * 60 + p) * 6e4, i[9] === "-" && (d = -d)), _ = new Date(Date.UTC(t, a, r, n, o, s, l)), d && _.setTime(_.getTime() - d), _;
1633
1639
  }
1634
1640
  function oo(e) {
1635
1641
  return e.toISOString();
@@ -1647,12 +1653,12 @@ function no(e) {
1647
1653
  var Oi = new le("tag:yaml.org,2002:merge", {
1648
1654
  kind: "scalar",
1649
1655
  resolve: no
1650
- }), It = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1656
+ }), At = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
1651
1657
  \r`;
1652
1658
  function lo(e) {
1653
1659
  if (e === null)
1654
1660
  return !1;
1655
- var i, t, a = 0, r = e.length, n = It;
1661
+ var i, t, a = 0, r = e.length, n = At;
1656
1662
  for (t = 0; t < r; t++)
1657
1663
  if (i = n.indexOf(e.charAt(t)), !(i > 64)) {
1658
1664
  if (i < 0)
@@ -1662,13 +1668,13 @@ function lo(e) {
1662
1668
  return a % 8 === 0;
1663
1669
  }
1664
1670
  function so(e) {
1665
- var i, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, n = It, o = 0, s = [];
1671
+ var i, t, a = e.replace(/[\r\n=]/g, ""), r = a.length, n = At, o = 0, s = [];
1666
1672
  for (i = 0; i < r; i++)
1667
1673
  i % 4 === 0 && i && (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)), o = o << 6 | n.indexOf(a.charAt(i));
1668
1674
  return t = r % 4 * 6, t === 0 ? (s.push(o >> 16 & 255), s.push(o >> 8 & 255), s.push(o & 255)) : t === 18 ? (s.push(o >> 10 & 255), s.push(o >> 2 & 255)) : t === 12 && s.push(o >> 4 & 255), new Uint8Array(s);
1669
1675
  }
1670
1676
  function co(e) {
1671
- var i = "", t = 0, a, r, n = e.length, o = It;
1677
+ var i = "", t = 0, a, r, n = e.length, o = At;
1672
1678
  for (a = 0; a < n; a++)
1673
1679
  a % 3 === 0 && a && (i += o[t >> 18 & 63], i += o[t >> 12 & 63], i += o[t >> 6 & 63], i += o[t & 63]), t = (t << 8) + e[a];
1674
1680
  return r = n % 3, r === 0 ? (i += o[t >> 18 & 63], i += o[t >> 12 & 63], i += o[t >> 6 & 63], i += o[t & 63]) : r === 2 ? (i += o[t >> 10 & 63], i += o[t >> 4 & 63], i += o[t << 2 & 63], i += o[64]) : r === 1 && (i += o[t >> 2 & 63], i += o[t << 4 & 63], i += o[64], i += o[64]), i;
@@ -1683,7 +1689,7 @@ var Ei = new le("tag:yaml.org,2002:binary", {
1683
1689
  predicate: uo,
1684
1690
  represent: co
1685
1691
  }), po = Object.prototype.hasOwnProperty, fo = Object.prototype.toString;
1686
- function mo(e) {
1692
+ function go(e) {
1687
1693
  if (e === null)
1688
1694
  return !0;
1689
1695
  var i = [], t, a, r, n, o, s = e;
@@ -1705,13 +1711,13 @@ function mo(e) {
1705
1711
  }
1706
1712
  return !0;
1707
1713
  }
1708
- function go(e) {
1714
+ function mo(e) {
1709
1715
  return e !== null ? e : [];
1710
1716
  }
1711
1717
  var Fi = new le("tag:yaml.org,2002:omap", {
1712
1718
  kind: "sequence",
1713
- resolve: mo,
1714
- construct: go
1719
+ resolve: go,
1720
+ construct: mo
1715
1721
  }), yo = Object.prototype.toString;
1716
1722
  function vo(e) {
1717
1723
  if (e === null)
@@ -1764,7 +1770,7 @@ var Vi = new le("tag:yaml.org,2002:set", {
1764
1770
  Ni,
1765
1771
  Vi
1766
1772
  ]
1767
- }), Ae = Object.prototype.hasOwnProperty, tt = 1, Li = 2, qi = 3, it = 4, gt = 1, ko = 2, Bt = 3, Co = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, So = /[\x85\u2028\u2029]/, xo = /[,\[\]\{\}]/, Ki = /^(?:!|!!|![a-z\-]+!)$/i, Pi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1773
+ }), xe = Object.prototype.hasOwnProperty, tt = 1, qi = 2, Li = 3, it = 4, mt = 1, ko = 2, Bt = 3, Co = /[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/, So = /[\x85\u2028\u2029]/, Io = /[,\[\]\{\}]/, Ki = /^(?:!|!!|![a-z\-]+!)$/i, Pi = /^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;
1768
1774
  function Rt(e) {
1769
1775
  return Object.prototype.toString.call(e);
1770
1776
  }
@@ -1777,14 +1783,14 @@ function Me(e) {
1777
1783
  function fe(e) {
1778
1784
  return e === 9 || e === 32 || e === 10 || e === 13;
1779
1785
  }
1780
- function qe(e) {
1786
+ function Le(e) {
1781
1787
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
1782
1788
  }
1783
- function Ao(e) {
1789
+ function xo(e) {
1784
1790
  var i;
1785
1791
  return 48 <= e && e <= 57 ? e - 48 : (i = e | 32, 97 <= i && i <= 102 ? i - 97 + 10 : -1);
1786
1792
  }
1787
- function Io(e) {
1793
+ function Ao(e) {
1788
1794
  return e === 120 ? 2 : e === 117 ? 4 : e === 85 ? 8 : 0;
1789
1795
  }
1790
1796
  function To(e) {
@@ -1830,7 +1836,7 @@ var zt = {
1830
1836
  },
1831
1837
  TAG: function(e, i, t) {
1832
1838
  var a, r;
1833
- t.length !== 2 && E(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Ki.test(a) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), Ae.call(e.tagMap, a) && E(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Pi.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1839
+ t.length !== 2 && E(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Ki.test(a) || E(e, "ill-formed tag handle (first argument) of the TAG directive"), xe.call(e.tagMap, a) && E(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Pi.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
1834
1840
  try {
1835
1841
  r = decodeURIComponent(r);
1836
1842
  } catch {
@@ -1853,21 +1859,21 @@ function Se(e, i, t, a) {
1853
1859
  function Ht(e, i, t, a) {
1854
1860
  var r, n, o, s;
1855
1861
  for (oe.isObject(t) || E(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), o = 0, s = r.length; o < s; o += 1)
1856
- n = r[o], Ae.call(i, n) || (i[n] = t[n], a[n] = !0);
1862
+ n = r[o], xe.call(i, n) || (i[n] = t[n], a[n] = !0);
1857
1863
  }
1858
1864
  function Ke(e, i, t, a, r, n, o, s, l) {
1859
- var u, g;
1865
+ var d, m;
1860
1866
  if (Array.isArray(r))
1861
- for (r = Array.prototype.slice.call(r), u = 0, g = r.length; u < g; u += 1)
1862
- Array.isArray(r[u]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && Rt(r[u]) === "[object Object]" && (r[u] = "[object Object]");
1867
+ for (r = Array.prototype.slice.call(r), d = 0, m = r.length; d < m; d += 1)
1868
+ Array.isArray(r[d]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && Rt(r[d]) === "[object Object]" && (r[d] = "[object Object]");
1863
1869
  if (typeof r == "object" && Rt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), i === null && (i = {}), a === "tag:yaml.org,2002:merge")
1864
1870
  if (Array.isArray(n))
1865
- for (u = 0, g = n.length; u < g; u += 1)
1866
- Ht(e, i, n[u], t);
1871
+ for (d = 0, m = n.length; d < m; d += 1)
1872
+ Ht(e, i, n[d], t);
1867
1873
  else
1868
1874
  Ht(e, i, n, t);
1869
1875
  else
1870
- !e.json && !Ae.call(t, r) && Ae.call(i, r) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(i, r, {
1876
+ !e.json && !xe.call(t, r) && xe.call(i, r) && (e.line = o || e.line, e.lineStart = s || e.lineStart, e.position = l || e.position, E(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(i, r, {
1871
1877
  configurable: !0,
1872
1878
  enumerable: !0,
1873
1879
  writable: !0,
@@ -1904,31 +1910,31 @@ function $t(e, i) {
1904
1910
  `, i - 1));
1905
1911
  }
1906
1912
  function Mo(e, i, t) {
1907
- var a, r, n, o, s, l, u, g, p = e.kind, C = e.result, w;
1908
- if (w = e.input.charCodeAt(e.position), fe(w) || qe(w) || w === 35 || w === 38 || w === 42 || w === 33 || w === 124 || w === 62 || w === 39 || w === 34 || w === 37 || w === 64 || w === 96 || (w === 63 || w === 45) && (r = e.input.charCodeAt(e.position + 1), fe(r) || t && qe(r)))
1913
+ var a, r, n, o, s, l, d, m, p = e.kind, _ = e.result, b;
1914
+ if (b = e.input.charCodeAt(e.position), fe(b) || Le(b) || b === 35 || b === 38 || b === 42 || b === 33 || b === 124 || b === 62 || b === 39 || b === 34 || b === 37 || b === 64 || b === 96 || (b === 63 || b === 45) && (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Le(r)))
1909
1915
  return !1;
1910
- for (e.kind = "scalar", e.result = "", n = o = e.position, s = !1; w !== 0; ) {
1911
- if (w === 58) {
1912
- if (r = e.input.charCodeAt(e.position + 1), fe(r) || t && qe(r))
1916
+ for (e.kind = "scalar", e.result = "", n = o = e.position, s = !1; b !== 0; ) {
1917
+ if (b === 58) {
1918
+ if (r = e.input.charCodeAt(e.position + 1), fe(r) || t && Le(r))
1913
1919
  break;
1914
- } else if (w === 35) {
1920
+ } else if (b === 35) {
1915
1921
  if (a = e.input.charCodeAt(e.position - 1), fe(a))
1916
1922
  break;
1917
1923
  } else {
1918
- if (e.position === e.lineStart && ct(e) || t && qe(w))
1924
+ if (e.position === e.lineStart && ct(e) || t && Le(b))
1919
1925
  break;
1920
- if (he(w))
1921
- if (l = e.line, u = e.lineStart, g = e.lineIndent, re(e, !1, -1), e.lineIndent >= i) {
1922
- s = !0, w = e.input.charCodeAt(e.position);
1926
+ if (he(b))
1927
+ if (l = e.line, d = e.lineStart, m = e.lineIndent, re(e, !1, -1), e.lineIndent >= i) {
1928
+ s = !0, b = e.input.charCodeAt(e.position);
1923
1929
  continue;
1924
1930
  } else {
1925
- e.position = o, e.line = l, e.lineStart = u, e.lineIndent = g;
1931
+ e.position = o, e.line = l, e.lineStart = d, e.lineIndent = m;
1926
1932
  break;
1927
1933
  }
1928
1934
  }
1929
- s && (Se(e, n, o, !1), $t(e, e.line - l), n = o = e.position, s = !1), Me(w) || (o = e.position + 1), w = e.input.charCodeAt(++e.position);
1935
+ s && (Se(e, n, o, !1), $t(e, e.line - l), n = o = e.position, s = !1), Me(b) || (o = e.position + 1), b = e.input.charCodeAt(++e.position);
1930
1936
  }
1931
- return Se(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = C, !1);
1937
+ return Se(e, n, o, !1), e.result ? !0 : (e.kind = p, e.result = _, !1);
1932
1938
  }
1933
1939
  function Oo(e, i) {
1934
1940
  var t, a, r;
@@ -1956,9 +1962,9 @@ function Eo(e, i) {
1956
1962
  re(e, !1, i);
1957
1963
  else if (s < 256 && Ui[s])
1958
1964
  e.result += Bi[s], e.position++;
1959
- else if ((o = Io(s)) > 0) {
1965
+ else if ((o = Ao(s)) > 0) {
1960
1966
  for (r = o, n = 0; r > 0; r--)
1961
- s = e.input.charCodeAt(++e.position), (o = Ao(s)) >= 0 ? n = (n << 4) + o : E(e, "expected hexadecimal character");
1967
+ s = e.input.charCodeAt(++e.position), (o = xo(s)) >= 0 ? n = (n << 4) + o : E(e, "expected hexadecimal character");
1962
1968
  e.result += jo(n), e.position++;
1963
1969
  } else
1964
1970
  E(e, "unknown escape sequence");
@@ -1969,22 +1975,22 @@ function Eo(e, i) {
1969
1975
  E(e, "unexpected end of the stream within a double quoted scalar");
1970
1976
  }
1971
1977
  function Fo(e, i) {
1972
- var t = !0, a, r, n, o = e.tag, s, l = e.anchor, u, g, p, C, w, I = /* @__PURE__ */ Object.create(null), S, T, R, K;
1978
+ var t = !0, a, r, n, o = e.tag, s, l = e.anchor, d, m, p, _, b, x = /* @__PURE__ */ Object.create(null), C, T, R, K;
1973
1979
  if (K = e.input.charCodeAt(e.position), K === 91)
1974
- g = 93, w = !1, s = [];
1980
+ m = 93, b = !1, s = [];
1975
1981
  else if (K === 123)
1976
- g = 125, w = !0, s = {};
1982
+ m = 125, b = !0, s = {};
1977
1983
  else
1978
1984
  return !1;
1979
1985
  for (e.anchor !== null && (e.anchorMap[e.anchor] = s), K = e.input.charCodeAt(++e.position); K !== 0; ) {
1980
- if (re(e, !0, i), K = e.input.charCodeAt(e.position), K === g)
1981
- return e.position++, e.tag = o, e.anchor = l, e.kind = w ? "mapping" : "sequence", e.result = s, !0;
1982
- t ? K === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), T = S = R = null, p = C = !1, K === 63 && (u = e.input.charCodeAt(e.position + 1), fe(u) && (p = C = !0, e.position++, re(e, !0, i))), a = e.line, r = e.lineStart, n = e.position, Ue(e, i, tt, !1, !0), T = e.tag, S = e.result, re(e, !0, i), K = e.input.charCodeAt(e.position), (C || e.line === a) && K === 58 && (p = !0, K = e.input.charCodeAt(++e.position), re(e, !0, i), Ue(e, i, tt, !1, !0), R = e.result), w ? Ke(e, s, I, T, S, R, a, r, n) : p ? s.push(Ke(e, null, I, T, S, R, a, r, n)) : s.push(S), re(e, !0, i), K = e.input.charCodeAt(e.position), K === 44 ? (t = !0, K = e.input.charCodeAt(++e.position)) : t = !1;
1986
+ if (re(e, !0, i), K = e.input.charCodeAt(e.position), K === m)
1987
+ return e.position++, e.tag = o, e.anchor = l, e.kind = b ? "mapping" : "sequence", e.result = s, !0;
1988
+ t ? K === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), T = C = R = null, p = _ = !1, K === 63 && (d = e.input.charCodeAt(e.position + 1), fe(d) && (p = _ = !0, e.position++, re(e, !0, i))), a = e.line, r = e.lineStart, n = e.position, Ue(e, i, tt, !1, !0), T = e.tag, C = e.result, re(e, !0, i), K = e.input.charCodeAt(e.position), (_ || e.line === a) && K === 58 && (p = !0, K = e.input.charCodeAt(++e.position), re(e, !0, i), Ue(e, i, tt, !1, !0), R = e.result), b ? Ke(e, s, x, T, C, R, a, r, n) : p ? s.push(Ke(e, null, x, T, C, R, a, r, n)) : s.push(C), re(e, !0, i), K = e.input.charCodeAt(e.position), K === 44 ? (t = !0, K = e.input.charCodeAt(++e.position)) : t = !1;
1983
1989
  }
1984
1990
  E(e, "unexpected end of the stream within a flow collection");
1985
1991
  }
1986
1992
  function No(e, i) {
1987
- var t, a, r = gt, n = !1, o = !1, s = i, l = 0, u = !1, g, p;
1993
+ var t, a, r = mt, n = !1, o = !1, s = i, l = 0, d = !1, m, p;
1988
1994
  if (p = e.input.charCodeAt(e.position), p === 124)
1989
1995
  a = !1;
1990
1996
  else if (p === 62)
@@ -1993,9 +1999,9 @@ function No(e, i) {
1993
1999
  return !1;
1994
2000
  for (e.kind = "scalar", e.result = ""; p !== 0; )
1995
2001
  if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
1996
- gt === r ? r = p === 43 ? Bt : ko : E(e, "repeat of a chomping mode identifier");
1997
- else if ((g = To(p)) >= 0)
1998
- g === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(e, "repeat of an indentation width identifier") : (s = i + g - 1, o = !0);
2002
+ mt === r ? r = p === 43 ? Bt : ko : E(e, "repeat of a chomping mode identifier");
2003
+ else if ((m = To(p)) >= 0)
2004
+ m === 0 ? E(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? E(e, "repeat of an indentation width identifier") : (s = i + m - 1, o = !0);
1999
2005
  else
2000
2006
  break;
2001
2007
  if (Me(p)) {
@@ -2016,12 +2022,12 @@ function No(e, i) {
2016
2022
  }
2017
2023
  if (e.lineIndent < s) {
2018
2024
  r === Bt ? e.result += oe.repeat(`
2019
- `, n ? 1 + l : l) : r === gt && n && (e.result += `
2025
+ `, n ? 1 + l : l) : r === mt && n && (e.result += `
2020
2026
  `);
2021
2027
  break;
2022
2028
  }
2023
- for (a ? Me(p) ? (u = !0, e.result += oe.repeat(`
2024
- `, n ? 1 + l : l)) : u ? (u = !1, e.result += oe.repeat(`
2029
+ for (a ? Me(p) ? (d = !0, e.result += oe.repeat(`
2030
+ `, n ? 1 + l : l)) : d ? (d = !1, e.result += oe.repeat(`
2025
2031
  `, l + 1)) : l === 0 ? n && (e.result += " ") : e.result += oe.repeat(`
2026
2032
  `, l) : e.result += oe.repeat(`
2027
2033
  `, n ? 1 + l : l), n = !0, o = !0, l = 0, t = e.position; !he(p) && p !== 0; )
@@ -2039,7 +2045,7 @@ function Jt(e, i) {
2039
2045
  n.push(null), l = e.input.charCodeAt(e.position);
2040
2046
  continue;
2041
2047
  }
2042
- if (t = e.line, Ue(e, i, qi, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && l !== 0)
2048
+ if (t = e.line, Ue(e, i, Li, !1, !0), n.push(e.result), re(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && l !== 0)
2043
2049
  E(e, "bad indentation of a sequence entry");
2044
2050
  else if (e.lineIndent < i)
2045
2051
  break;
@@ -2047,37 +2053,37 @@ function Jt(e, i) {
2047
2053
  return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
2048
2054
  }
2049
2055
  function Vo(e, i, t) {
2050
- var a, r, n, o, s, l, u = e.tag, g = e.anchor, p = {}, C = /* @__PURE__ */ Object.create(null), w = null, I = null, S = null, T = !1, R = !1, K;
2056
+ var a, r, n, o, s, l, d = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), b = null, x = null, C = null, T = !1, R = !1, K;
2051
2057
  if (e.firstTabInLine !== -1)
2052
2058
  return !1;
2053
2059
  for (e.anchor !== null && (e.anchorMap[e.anchor] = p), K = e.input.charCodeAt(e.position); K !== 0; ) {
2054
2060
  if (!T && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), n = e.line, (K === 63 || K === 58) && fe(a))
2055
- K === 63 ? (T && (Ke(e, p, C, w, I, null, o, s, l), w = I = S = null), R = !0, T = !0, r = !0) : T ? (T = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, K = a;
2061
+ K === 63 ? (T && (Ke(e, p, _, b, x, null, o, s, l), b = x = C = null), R = !0, T = !0, r = !0) : T ? (T = !1, r = !0) : E(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, K = a;
2056
2062
  else {
2057
- if (o = e.line, s = e.lineStart, l = e.position, !Ue(e, t, Li, !1, !0))
2063
+ if (o = e.line, s = e.lineStart, l = e.position, !Ue(e, t, qi, !1, !0))
2058
2064
  break;
2059
2065
  if (e.line === n) {
2060
2066
  for (K = e.input.charCodeAt(e.position); Me(K); )
2061
2067
  K = e.input.charCodeAt(++e.position);
2062
2068
  if (K === 58)
2063
- K = e.input.charCodeAt(++e.position), fe(K) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), T && (Ke(e, p, C, w, I, null, o, s, l), w = I = S = null), R = !0, T = !1, r = !1, w = e.tag, I = e.result;
2069
+ K = e.input.charCodeAt(++e.position), fe(K) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), T && (Ke(e, p, _, b, x, null, o, s, l), b = x = C = null), R = !0, T = !1, r = !1, b = e.tag, x = e.result;
2064
2070
  else if (R)
2065
2071
  E(e, "can not read an implicit mapping pair; a colon is missed");
2066
2072
  else
2067
- return e.tag = u, e.anchor = g, !0;
2073
+ return e.tag = d, e.anchor = m, !0;
2068
2074
  } else if (R)
2069
2075
  E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2070
2076
  else
2071
- return e.tag = u, e.anchor = g, !0;
2077
+ return e.tag = d, e.anchor = m, !0;
2072
2078
  }
2073
- if ((e.line === n || e.lineIndent > i) && (T && (o = e.line, s = e.lineStart, l = e.position), Ue(e, i, it, !0, r) && (T ? I = e.result : S = e.result), T || (Ke(e, p, C, w, I, S, o, s, l), w = I = S = null), re(e, !0, -1), K = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && K !== 0)
2079
+ if ((e.line === n || e.lineIndent > i) && (T && (o = e.line, s = e.lineStart, l = e.position), Ue(e, i, it, !0, r) && (T ? x = e.result : C = e.result), T || (Ke(e, p, _, b, x, C, o, s, l), b = x = C = null), re(e, !0, -1), K = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && K !== 0)
2074
2080
  E(e, "bad indentation of a mapping entry");
2075
2081
  else if (e.lineIndent < i)
2076
2082
  break;
2077
2083
  }
2078
- return T && Ke(e, p, C, w, I, null, o, s, l), R && (e.tag = u, e.anchor = g, e.kind = "mapping", e.result = p), R;
2084
+ return T && Ke(e, p, _, b, x, null, o, s, l), R && (e.tag = d, e.anchor = m, e.kind = "mapping", e.result = p), R;
2079
2085
  }
2080
- function Lo(e) {
2086
+ function qo(e) {
2081
2087
  var i, t = !1, a = !1, r, n, o;
2082
2088
  if (o = e.input.charCodeAt(e.position), o !== 33)
2083
2089
  return !1;
@@ -2089,7 +2095,7 @@ function Lo(e) {
2089
2095
  } else {
2090
2096
  for (; o !== 0 && !fe(o); )
2091
2097
  o === 33 && (a ? E(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(i - 1, e.position + 1), Ki.test(r) || E(e, "named tag handle cannot contain such characters"), a = !0, i = e.position + 1)), o = e.input.charCodeAt(++e.position);
2092
- n = e.input.slice(i, e.position), xo.test(n) && E(e, "tag suffix cannot contain flow indicator characters");
2098
+ n = e.input.slice(i, e.position), Io.test(n) && E(e, "tag suffix cannot contain flow indicator characters");
2093
2099
  }
2094
2100
  n && !Pi.test(n) && E(e, "tag name cannot contain such characters: " + n);
2095
2101
  try {
@@ -2097,13 +2103,13 @@ function Lo(e) {
2097
2103
  } catch {
2098
2104
  E(e, "tag name is malformed: " + n);
2099
2105
  }
2100
- return t ? e.tag = n : Ae.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n : E(e, 'undeclared tag handle "' + r + '"'), !0;
2106
+ return t ? e.tag = n : xe.call(e.tagMap, r) ? e.tag = e.tagMap[r] + n : r === "!" ? e.tag = "!" + n : r === "!!" ? e.tag = "tag:yaml.org,2002:" + n : E(e, 'undeclared tag handle "' + r + '"'), !0;
2101
2107
  }
2102
- function qo(e) {
2108
+ function Lo(e) {
2103
2109
  var i, t;
2104
2110
  if (t = e.input.charCodeAt(e.position), t !== 38)
2105
2111
  return !1;
2106
- for (e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), i = e.position; t !== 0 && !fe(t) && !qe(t); )
2112
+ for (e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), i = e.position; t !== 0 && !fe(t) && !Le(t); )
2107
2113
  t = e.input.charCodeAt(++e.position);
2108
2114
  return e.position === i && E(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(i, e.position), !0;
2109
2115
  }
@@ -2111,35 +2117,35 @@ function Ko(e) {
2111
2117
  var i, t, a;
2112
2118
  if (a = e.input.charCodeAt(e.position), a !== 42)
2113
2119
  return !1;
2114
- for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !fe(a) && !qe(a); )
2120
+ for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !fe(a) && !Le(a); )
2115
2121
  a = e.input.charCodeAt(++e.position);
2116
- return e.position === i && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ae.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], re(e, !0, -1), !0;
2122
+ return e.position === i && E(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), xe.call(e.anchorMap, t) || E(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], re(e, !0, -1), !0;
2117
2123
  }
2118
2124
  function Ue(e, i, t, a, r) {
2119
- var n, o, s, l = 1, u = !1, g = !1, p, C, w, I, S, T;
2120
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = s = it === t || qi === t, a && re(e, !0, -1) && (u = !0, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)), l === 1)
2121
- for (; Lo(e) || qo(e); )
2122
- re(e, !0, -1) ? (u = !0, s = n, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)) : s = !1;
2123
- if (s && (s = u || r), (l === 1 || it === t) && (tt === t || Li === t ? S = i : S = i + 1, T = e.position - e.lineStart, l === 1 ? s && (Jt(e, T) || Vo(e, T, S)) || Fo(e, S) ? g = !0 : (o && No(e, S) || Oo(e, S) || Eo(e, S) ? g = !0 : Ko(e) ? (g = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Mo(e, S, tt === t) && (g = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (g = s && Jt(e, T))), e.tag === null)
2125
+ var n, o, s, l = 1, d = !1, m = !1, p, _, b, x, C, T;
2126
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = s = it === t || Li === t, a && re(e, !0, -1) && (d = !0, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)), l === 1)
2127
+ for (; qo(e) || Lo(e); )
2128
+ re(e, !0, -1) ? (d = !0, s = n, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)) : s = !1;
2129
+ if (s && (s = d || r), (l === 1 || it === t) && (tt === t || qi === t ? C = i : C = i + 1, T = e.position - e.lineStart, l === 1 ? s && (Jt(e, T) || Vo(e, T, C)) || Fo(e, C) ? m = !0 : (o && No(e, C) || Oo(e, C) || Eo(e, C) ? m = !0 : Ko(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Mo(e, C, tt === t) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = s && Jt(e, T))), e.tag === null)
2124
2130
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2125
2131
  else if (e.tag === "?") {
2126
- for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, C = e.implicitTypes.length; p < C; p += 1)
2127
- if (I = e.implicitTypes[p], I.resolve(e.result)) {
2128
- e.result = I.construct(e.result), e.tag = I.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2132
+ for (e.result !== null && e.kind !== "scalar" && E(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, _ = e.implicitTypes.length; p < _; p += 1)
2133
+ if (x = e.implicitTypes[p], x.resolve(e.result)) {
2134
+ e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2129
2135
  break;
2130
2136
  }
2131
2137
  } else if (e.tag !== "!") {
2132
- if (Ae.call(e.typeMap[e.kind || "fallback"], e.tag))
2133
- I = e.typeMap[e.kind || "fallback"][e.tag];
2138
+ if (xe.call(e.typeMap[e.kind || "fallback"], e.tag))
2139
+ x = e.typeMap[e.kind || "fallback"][e.tag];
2134
2140
  else
2135
- for (I = null, w = e.typeMap.multi[e.kind || "fallback"], p = 0, C = w.length; p < C; p += 1)
2136
- if (e.tag.slice(0, w[p].tag.length) === w[p].tag) {
2137
- I = w[p];
2141
+ for (x = null, b = e.typeMap.multi[e.kind || "fallback"], p = 0, _ = b.length; p < _; p += 1)
2142
+ if (e.tag.slice(0, b[p].tag.length) === b[p].tag) {
2143
+ x = b[p];
2138
2144
  break;
2139
2145
  }
2140
- I || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && I.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + I.kind + '", not "' + e.kind + '"'), I.resolve(e.result, e.tag) ? (e.result = I.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2146
+ x || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + x.kind + '", not "' + e.kind + '"'), x.resolve(e.result, e.tag) ? (e.result = x.construct(e.result, e.tag), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : E(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2141
2147
  }
2142
- return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || g;
2148
+ return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
2143
2149
  }
2144
2150
  function Po(e) {
2145
2151
  var i = e.position, t, a, r, n = !1, o;
@@ -2161,7 +2167,7 @@ function Po(e) {
2161
2167
  o = e.input.charCodeAt(++e.position);
2162
2168
  r.push(e.input.slice(t, e.position));
2163
2169
  }
2164
- o !== 0 && jt(e), Ae.call(zt, a) ? zt[a](e, a, r) : rt(e, 'unknown document directive "' + a + '"');
2170
+ o !== 0 && jt(e), xe.call(zt, a) ? zt[a](e, a, r) : rt(e, 'unknown document directive "' + a + '"');
2165
2171
  }
2166
2172
  if (re(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, re(e, !0, -1)) : n && E(e, "directives end mark is expected"), Ue(e, e.lineIndent - 1, it, !1, !0), re(e, !0, -1), e.checkLineBreaks && So.test(e.input.slice(i, e.position)) && rt(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && ct(e)) {
2167
2173
  e.input.charCodeAt(e.position) === 46 && (e.position += 3, re(e, !0, -1));
@@ -2270,7 +2276,7 @@ function bt(e, i) {
2270
2276
  return `
2271
2277
  ` + oe.repeat(" ", e.indent * i);
2272
2278
  }
2273
- function mn(e, i) {
2279
+ function gn(e, i) {
2274
2280
  var t, a, r;
2275
2281
  for (t = 0, a = e.implicitTypes.length; t < a; t += 1)
2276
2282
  if (r = e.implicitTypes[t], r.resolve(i))
@@ -2296,7 +2302,7 @@ function Yt(e, i, t) {
2296
2302
  ) : a && e !== Gi && e !== Wi && e !== Yi && e !== Zi && e !== Qi) && e !== ht && !(i === at && !r) || Wt(i) && !ot(i) && e === ht || i === at && r
2297
2303
  );
2298
2304
  }
2299
- function gn(e) {
2305
+ function mn(e) {
2300
2306
  return Qe(e) && e !== Mt && !ot(e) && e !== en && e !== an && e !== at && e !== Gi && e !== Wi && e !== Yi && e !== Zi && e !== Qi && e !== ht && e !== Zo && e !== Xo && e !== Go && e !== ln && e !== tn && e !== rn && e !== Qo && e !== Wo && e !== Yo && e !== on && e !== nn;
2301
2307
  }
2302
2308
  function yn(e) {
@@ -2312,25 +2318,25 @@ function Xi(e) {
2312
2318
  }
2313
2319
  var er = 1, wt = 2, tr = 3, ir = 4, Ve = 5;
2314
2320
  function vn(e, i, t, a, r, n, o, s) {
2315
- var l, u = 0, g = null, p = !1, C = !1, w = a !== -1, I = -1, S = gn(Je(e, 0)) && yn(Je(e, e.length - 1));
2321
+ var l, d = 0, m = null, p = !1, _ = !1, b = a !== -1, x = -1, C = mn(Je(e, 0)) && yn(Je(e, e.length - 1));
2316
2322
  if (i || o)
2317
- for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2318
- if (u = Je(e, l), !Qe(u))
2323
+ for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
2324
+ if (d = Je(e, l), !Qe(d))
2319
2325
  return Ve;
2320
- S = S && Yt(u, g, s), g = u;
2326
+ C = C && Yt(d, m, s), m = d;
2321
2327
  }
2322
2328
  else {
2323
- for (l = 0; l < e.length; u >= 65536 ? l += 2 : l++) {
2324
- if (u = Je(e, l), u === Ye)
2325
- p = !0, w && (C = C || // Foldable line = too long, and not more-indented.
2326
- l - I - 1 > a && e[I + 1] !== " ", I = l);
2327
- else if (!Qe(u))
2329
+ for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
2330
+ if (d = Je(e, l), d === Ye)
2331
+ p = !0, b && (_ = _ || // Foldable line = too long, and not more-indented.
2332
+ l - x - 1 > a && e[x + 1] !== " ", x = l);
2333
+ else if (!Qe(d))
2328
2334
  return Ve;
2329
- S = S && Yt(u, g, s), g = u;
2335
+ C = C && Yt(d, m, s), m = d;
2330
2336
  }
2331
- C = C || w && l - I - 1 > a && e[I + 1] !== " ";
2337
+ _ = _ || b && l - x - 1 > a && e[x + 1] !== " ";
2332
2338
  }
2333
- return !p && !C ? S && !o && !r(e) ? er : n === Ze ? Ve : wt : t > 9 && Xi(e) ? Ve : o ? n === Ze ? Ve : wt : C ? ir : tr;
2339
+ return !p && !_ ? C && !o && !r(e) ? er : n === Ze ? Ve : wt : t > 9 && Xi(e) ? Ve : o ? n === Ze ? Ve : wt : _ ? ir : tr;
2334
2340
  }
2335
2341
  function hn(e, i, t, a, r) {
2336
2342
  e.dump = function() {
@@ -2339,8 +2345,8 @@ function hn(e, i, t, a, r) {
2339
2345
  if (!e.noCompatMode && (sn.indexOf(i) !== -1 || cn.test(i)))
2340
2346
  return e.quotingType === Ze ? '"' + i + '"' : "'" + i + "'";
2341
2347
  var n = e.indent * Math.max(1, t), o = e.lineWidth === -1 ? -1 : Math.max(Math.min(e.lineWidth, 40), e.lineWidth - n), s = a || e.flowLevel > -1 && t >= e.flowLevel;
2342
- function l(u) {
2343
- return mn(e, u);
2348
+ function l(d) {
2349
+ return gn(e, d);
2344
2350
  }
2345
2351
  switch (vn(
2346
2352
  i,
@@ -2381,9 +2387,9 @@ function Qt(e) {
2381
2387
  }
2382
2388
  function bn(e, i) {
2383
2389
  for (var t = /(\n+)([^\n]*)/g, a = function() {
2384
- var u = e.indexOf(`
2390
+ var d = e.indexOf(`
2385
2391
  `);
2386
- return u = u !== -1 ? u : e.length, t.lastIndex = u, Xt(e.slice(0, u), i);
2392
+ return d = d !== -1 ? d : e.length, t.lastIndex = d, Xt(e.slice(0, d), i);
2387
2393
  }(), r = e[0] === `
2388
2394
  ` || e[0] === " ", n, o; o = t.exec(e); ) {
2389
2395
  var s = o[1], l = o[2];
@@ -2420,13 +2426,13 @@ function ei(e, i, t, a) {
2420
2426
  e.tag = n, e.dump = r || "[]";
2421
2427
  }
2422
2428
  function kn(e, i, t) {
2423
- var a = "", r = e.tag, n = Object.keys(t), o, s, l, u, g;
2429
+ var a = "", r = e.tag, n = Object.keys(t), o, s, l, d, m;
2424
2430
  for (o = 0, s = n.length; o < s; o += 1)
2425
- g = "", a !== "" && (g += ", "), e.condenseFlow && (g += '"'), l = n[o], u = t[l], e.replacer && (u = e.replacer.call(t, l, u)), _e(e, i, l, !1, !1) && (e.dump.length > 1024 && (g += "? "), g += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), _e(e, i, u, !1, !1) && (g += e.dump, a += g));
2431
+ m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], d = t[l], e.replacer && (d = e.replacer.call(t, l, d)), _e(e, i, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), _e(e, i, d, !1, !1) && (m += e.dump, a += m));
2426
2432
  e.tag = r, e.dump = "{" + a + "}";
2427
2433
  }
2428
2434
  function Cn(e, i, t, a) {
2429
- var r = "", n = e.tag, o = Object.keys(t), s, l, u, g, p, C;
2435
+ var r = "", n = e.tag, o = Object.keys(t), s, l, d, m, p, _;
2430
2436
  if (e.sortKeys === !0)
2431
2437
  o.sort();
2432
2438
  else if (typeof e.sortKeys == "function")
@@ -2434,7 +2440,7 @@ function Cn(e, i, t, a) {
2434
2440
  else if (e.sortKeys)
2435
2441
  throw new ue("sortKeys must be a boolean or a function");
2436
2442
  for (s = 0, l = o.length; s < l; s += 1)
2437
- C = "", (!a || r !== "") && (C += bt(e, i)), u = o[s], g = t[u], e.replacer && (g = e.replacer.call(t, u, g)), _e(e, i + 1, u, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Ye === e.dump.charCodeAt(0) ? C += "?" : C += "? "), C += e.dump, p && (C += bt(e, i)), _e(e, i + 1, g, !0, p) && (e.dump && Ye === e.dump.charCodeAt(0) ? C += ":" : C += ": ", C += e.dump, r += C));
2443
+ _ = "", (!a || r !== "") && (_ += bt(e, i)), d = o[s], m = t[d], e.replacer && (m = e.replacer.call(t, d, m)), _e(e, i + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Ye === e.dump.charCodeAt(0) ? _ += "?" : _ += "? "), _ += e.dump, p && (_ += bt(e, i)), _e(e, i + 1, m, !0, p) && (e.dump && Ye === e.dump.charCodeAt(0) ? _ += ":" : _ += ": ", _ += e.dump, r += _));
2438
2444
  e.tag = n, e.dump = r || "{}";
2439
2445
  }
2440
2446
  function ti(e, i, t) {
@@ -2456,16 +2462,16 @@ function ti(e, i, t) {
2456
2462
  }
2457
2463
  function _e(e, i, t, a, r, n, o) {
2458
2464
  e.tag = null, e.dump = t, ti(e, t, !1) || ti(e, t, !0);
2459
- var s = Hi.call(e.dump), l = a, u;
2465
+ var s = Hi.call(e.dump), l = a, d;
2460
2466
  a && (a = e.flowLevel < 0 || e.flowLevel > i);
2461
- var g = s === "[object Object]" || s === "[object Array]", p, C;
2462
- if (g && (p = e.duplicates.indexOf(t), C = p !== -1), (e.tag !== null && e.tag !== "?" || C || e.indent !== 2 && i > 0) && (r = !1), C && e.usedDuplicates[p])
2467
+ var m = s === "[object Object]" || s === "[object Array]", p, _;
2468
+ if (m && (p = e.duplicates.indexOf(t), _ = p !== -1), (e.tag !== null && e.tag !== "?" || _ || e.indent !== 2 && i > 0) && (r = !1), _ && e.usedDuplicates[p])
2463
2469
  e.dump = "*ref_" + p;
2464
2470
  else {
2465
- if (g && C && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), s === "[object Object]")
2466
- a && Object.keys(e.dump).length !== 0 ? (Cn(e, i, e.dump, r), C && (e.dump = "&ref_" + p + e.dump)) : (kn(e, i, e.dump), C && (e.dump = "&ref_" + p + " " + e.dump));
2471
+ if (m && _ && !e.usedDuplicates[p] && (e.usedDuplicates[p] = !0), s === "[object Object]")
2472
+ a && Object.keys(e.dump).length !== 0 ? (Cn(e, i, e.dump, r), _ && (e.dump = "&ref_" + p + e.dump)) : (kn(e, i, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
2467
2473
  else if (s === "[object Array]")
2468
- a && e.dump.length !== 0 ? (e.noArrayIndent && !o && i > 0 ? ei(e, i - 1, e.dump, r) : ei(e, i, e.dump, r), C && (e.dump = "&ref_" + p + e.dump)) : (_n(e, i, e.dump), C && (e.dump = "&ref_" + p + " " + e.dump));
2474
+ a && e.dump.length !== 0 ? (e.noArrayIndent && !o && i > 0 ? ei(e, i - 1, e.dump, r) : ei(e, i, e.dump, r), _ && (e.dump = "&ref_" + p + e.dump)) : (_n(e, i, e.dump), _ && (e.dump = "&ref_" + p + " " + e.dump));
2469
2475
  else if (s === "[object String]")
2470
2476
  e.tag !== "?" && hn(e, e.dump, i, n, l);
2471
2477
  else {
@@ -2473,9 +2479,9 @@ function _e(e, i, t, a, r, n, o) {
2473
2479
  return !1;
2474
2480
  throw new ue("unacceptable kind of an object to dump " + s);
2475
2481
  }
2476
- e.tag !== null && e.tag !== "?" && (u = encodeURI(
2482
+ e.tag !== null && e.tag !== "?" && (d = encodeURI(
2477
2483
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
2478
- ).replace(/!/g, "%21"), e.tag[0] === "!" ? u = "!" + u : u.slice(0, 18) === "tag:yaml.org,2002:" ? u = "!!" + u.slice(18) : u = "!<" + u + ">", e.dump = u + " " + e.dump);
2484
+ ).replace(/!/g, "%21"), e.tag[0] === "!" ? d = "!" + d : d.slice(0, 18) === "tag:yaml.org,2002:" ? d = "!!" + d.slice(18) : d = "!<" + d + ">", e.dump = d + " " + e.dump);
2479
2485
  }
2480
2486
  return !0;
2481
2487
  }
@@ -2497,7 +2503,7 @@ function _t(e, i, t) {
2497
2503
  for (a = Object.keys(e), r = 0, n = a.length; r < n; r += 1)
2498
2504
  _t(e[a[r]], i, t);
2499
2505
  }
2500
- function xn(e, i) {
2506
+ function In(e, i) {
2501
2507
  i = i || {};
2502
2508
  var t = new fn(i);
2503
2509
  t.noRefs || Sn(e, t);
@@ -2505,24 +2511,24 @@ function xn(e, i) {
2505
2511
  return t.replacer && (a = t.replacer.call({ "": a }, "", a)), _e(t, 0, a, !0, !0) ? t.dump + `
2506
2512
  ` : "";
2507
2513
  }
2508
- var An = xn, In = {
2509
- dump: An
2514
+ var xn = In, An = {
2515
+ dump: xn
2510
2516
  };
2511
2517
  function Ot(e, i) {
2512
2518
  return function() {
2513
2519
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + i + " instead, which is now safe by default.");
2514
2520
  };
2515
2521
  }
2516
- var Tn = le, jn = hi, $n = ki, Mn = Ii, On = Ti, En = Tt, Fn = zi.load, Nn = zi.loadAll, Vn = In.dump, Ln = ue, qn = {
2522
+ var Tn = le, jn = hi, $n = ki, Mn = Ai, On = Ti, En = Tt, Fn = zi.load, Nn = zi.loadAll, Vn = An.dump, qn = ue, Ln = {
2517
2523
  binary: Ei,
2518
- float: Ai,
2524
+ float: xi,
2519
2525
  map: _i,
2520
2526
  null: Ci,
2521
2527
  pairs: Ni,
2522
2528
  set: Vi,
2523
2529
  timestamp: Mi,
2524
2530
  bool: Si,
2525
- int: xi,
2531
+ int: Ii,
2526
2532
  merge: Oi,
2527
2533
  omap: Fi,
2528
2534
  seq: wi,
@@ -2537,8 +2543,8 @@ var Tn = le, jn = hi, $n = ki, Mn = Ii, On = Ti, En = Tt, Fn = zi.load, Nn = zi.
2537
2543
  load: Fn,
2538
2544
  loadAll: Nn,
2539
2545
  dump: Vn,
2540
- YAMLException: Ln,
2541
- types: qn,
2546
+ YAMLException: qn,
2547
+ types: Ln,
2542
2548
  safeLoad: Kn,
2543
2549
  safeLoadAll: Pn,
2544
2550
  safeDump: Un
@@ -2623,38 +2629,38 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2623
2629
  });
2624
2630
  return (o, s) => (h(), $(ve, null, [
2625
2631
  e.format === "structured" ? (h(), $("div", Dn, [
2626
- (h(!0), $(ve, null, ge(e.propListTypes, (l) => (h(), $("div", {
2632
+ (h(!0), $(ve, null, me(e.propListTypes, (l) => (h(), $("div", {
2627
2633
  key: `config-card-details-${l}-props`,
2628
- class: xe(`config-card-details-${l}-props`),
2634
+ class: Ie(`config-card-details-${l}-props`),
2629
2635
  "data-testid": `config-card-details-${l}-props`
2630
2636
  }, [
2631
2637
  l !== "basic" ? (h(), $("div", Hn, M(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
2632
- (h(!0), $(ve, null, ge(e.propertyCollections[l], (u) => (h(), z(mi, {
2633
- key: u.key,
2634
- item: u
2638
+ (h(!0), $(ve, null, me(e.propertyCollections[l], (d) => (h(), z(gi, {
2639
+ key: d.key,
2640
+ item: d
2635
2641
  }, Pe({
2636
2642
  label: y(() => [
2637
- te(o.$slots, `${u.key}-label`, { row: u }, void 0, !0)
2643
+ te(o.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2638
2644
  ]),
2639
- [u.key]: y(({ rowValue: g }) => [
2640
- te(o.$slots, u.key, {
2641
- row: u,
2642
- rowValue: g
2645
+ [d.key]: y(({ rowValue: m }) => [
2646
+ te(o.$slots, d.key, {
2647
+ row: d,
2648
+ rowValue: m
2643
2649
  }, void 0, !0)
2644
2650
  ]),
2645
2651
  _: 2
2646
2652
  }, [
2647
- r(u) ? {
2653
+ r(d) ? {
2648
2654
  name: "label-tooltip",
2649
2655
  fn: y(() => [
2650
- te(o.$slots, `${u.key}-label-tooltip`, { row: u }, void 0, !0)
2656
+ te(o.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2651
2657
  ]),
2652
2658
  key: "0"
2653
2659
  } : void 0
2654
2660
  ]), 1032, ["item"]))), 128))
2655
2661
  ], 10, zn))), 128))
2656
2662
  ])) : H("", !0),
2657
- e.format === "json" && i.record ? (h(), z(gi, {
2663
+ e.format === "json" && i.record ? (h(), z(mi, {
2658
2664
  key: 1,
2659
2665
  config: i.config,
2660
2666
  "fetcher-url": i.fetcherUrl,
@@ -2667,7 +2673,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2667
2673
  }, null, 8, ["yaml-record"])) : H("", !0)
2668
2674
  ], 64));
2669
2675
  }
2670
- }), Gn = /* @__PURE__ */ ye(Jn, [["__scopeId", "data-v-147a2f70"]]), Ie = "24px", ut = (e, i) => {
2676
+ }), Gn = /* @__PURE__ */ ye(Jn, [["__scopeId", "data-v-147a2f70"]]), Ae = "24px", ut = (e, i) => {
2671
2677
  const t = e.__vccOpts || e;
2672
2678
  for (const [a, r] of i)
2673
2679
  t[a] = r;
@@ -2709,7 +2715,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2709
2715
  size: {
2710
2716
  type: [Number, String],
2711
2717
  required: !1,
2712
- default: Ie,
2718
+ default: Ae,
2713
2719
  // if setting to the imported const fails, just pass a number of 24 as the default.
2714
2720
  validator: (e) => {
2715
2721
  if (typeof e == "number" && e > 0)
@@ -2738,7 +2744,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2738
2744
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2739
2745
  return `${n}px`;
2740
2746
  }
2741
- return Ie;
2747
+ return Ae;
2742
2748
  }), a = A(() => ({
2743
2749
  boxSizing: "border-box",
2744
2750
  color: i.color,
@@ -2808,7 +2814,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2808
2814
  size: {
2809
2815
  type: [Number, String],
2810
2816
  required: !1,
2811
- default: Ie,
2817
+ default: Ae,
2812
2818
  // if setting to the imported const fails, just pass a number of 24 as the default.
2813
2819
  validator: (e) => {
2814
2820
  if (typeof e == "number" && e > 0)
@@ -2837,7 +2843,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2837
2843
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2838
2844
  return `${n}px`;
2839
2845
  }
2840
- return Ie;
2846
+ return Ae;
2841
2847
  }), a = A(() => ({
2842
2848
  boxSizing: "border-box",
2843
2849
  color: i.color,
@@ -2907,7 +2913,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2907
2913
  size: {
2908
2914
  type: [Number, String],
2909
2915
  required: !1,
2910
- default: Ie,
2916
+ default: Ae,
2911
2917
  // if setting to the imported const fails, just pass a number of 24 as the default.
2912
2918
  validator: (e) => {
2913
2919
  if (typeof e == "number" && e > 0)
@@ -2936,7 +2942,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2936
2942
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
2937
2943
  return `${n}px`;
2938
2944
  }
2939
- return Ie;
2945
+ return Ae;
2940
2946
  }), a = A(() => ({
2941
2947
  boxSizing: "border-box",
2942
2948
  color: i.color,
@@ -2969,7 +2975,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
2969
2975
  _: 1
2970
2976
  }, 8, ["aria-hidden", "style"]));
2971
2977
  }
2972
- }), pl = /* @__PURE__ */ ut(dl, [["__scopeId", "data-v-98c34919"]]), fl = (e) => (lt("data-v-19f4cbbe"), e = e(), st(), e), ml = ["aria-hidden"], gl = {
2978
+ }), pl = /* @__PURE__ */ ut(dl, [["__scopeId", "data-v-98c34919"]]), fl = (e) => (lt("data-v-19f4cbbe"), e = e(), st(), e), gl = ["aria-hidden"], ml = {
2973
2979
  key: 0,
2974
2980
  "data-testid": "kui-icon-svg-title"
2975
2981
  }, yl = /* @__PURE__ */ fl(() => /* @__PURE__ */ F("path", {
@@ -3006,7 +3012,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3006
3012
  size: {
3007
3013
  type: [Number, String],
3008
3014
  required: !1,
3009
- default: Ie,
3015
+ default: Ae,
3010
3016
  // if setting to the imported const fails, just pass a number of 24 as the default.
3011
3017
  validator: (e) => {
3012
3018
  if (typeof e == "number" && e > 0)
@@ -3035,7 +3041,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3035
3041
  if (n && !isNaN(n) && Number.isInteger(n) && n > 0)
3036
3042
  return `${n}px`;
3037
3043
  }
3038
- return Ie;
3044
+ return Ae;
3039
3045
  }), a = A(() => ({
3040
3046
  boxSizing: "border-box",
3041
3047
  color: i.color,
@@ -3061,9 +3067,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3061
3067
  width: "100%",
3062
3068
  xmlns: "http://www.w3.org/2000/svg"
3063
3069
  }, [
3064
- e.title ? (h(), $("title", gl, M(e.title), 1)) : H("", !0),
3070
+ e.title ? (h(), $("title", ml, M(e.title), 1)) : H("", !0),
3065
3071
  yl
3066
- ], 8, ml))
3072
+ ], 8, gl))
3067
3073
  ]),
3068
3074
  _: 1
3069
3075
  }, 8, ["aria-hidden", "style"]));
@@ -3145,7 +3151,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3145
3151
  var t;
3146
3152
  const a = i, r = e, { i18n: { t: n } } = ne.useI18n(), { getMessageFromError: o } = ne.useErrors(), { convertKeyToTitle: s } = ne.useStringHelpers(), { axiosInstance: l } = ne.useAxios({
3147
3153
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3148
- }), u = [
3154
+ }), d = [
3149
3155
  {
3150
3156
  label: n("baseConfigCard.general.structuredFormat"),
3151
3157
  value: "structured",
@@ -3159,9 +3165,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3159
3165
  label: "YAML",
3160
3166
  value: "yaml"
3161
3167
  }
3162
- ], g = V("structured"), p = (v) => {
3163
- g.value = v == null ? void 0 : v.value;
3164
- }, C = {
3168
+ ], m = V("structured"), p = (v) => {
3169
+ m.value = v == null ? void 0 : v.value;
3170
+ }, _ = {
3165
3171
  id: {
3166
3172
  type: X.ID,
3167
3173
  label: n("baseConfigCard.commonFields.id_label"),
@@ -3195,21 +3201,21 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3195
3201
  // the last property displayed
3196
3202
  section: se.Basic
3197
3203
  }
3198
- }, w = V(!1), I = V(!1), S = V(""), T = V({}), R = A(() => {
3199
- var v, L, B;
3204
+ }, b = V(!1), x = V(!1), C = V(""), T = V({}), R = A(() => {
3205
+ var v, q, B;
3200
3206
  if (!T.value)
3201
3207
  return [];
3202
3208
  const j = [], J = Object.keys(T.value).length;
3203
- for (const q in T.value) {
3204
- const N = (L = (v = r.configSchema) == null ? void 0 : v[q]) == null ? void 0 : L.order, G = (B = C[q]) == null ? void 0 : B.order;
3209
+ for (const L in T.value) {
3210
+ const N = (q = (v = r.configSchema) == null ? void 0 : v[L]) == null ? void 0 : q.order, G = (B = _[L]) == null ? void 0 : B.order;
3205
3211
  let Q = J;
3206
- (G || G === 0) && (Q = G === -1 ? J + 1 : G), N && (Q = N === -1 ? J + 1 : N), j.push([q, Q]);
3212
+ (G || G === 0) && (Q = G === -1 ? J + 1 : G), N && (Q = N === -1 ? J + 1 : N), j.push([L, Q]);
3207
3213
  }
3208
- return j.sort(function(q, N) {
3209
- return q[1] - N[1];
3210
- }), j.map((q) => {
3214
+ return j.sort(function(L, N) {
3215
+ return L[1] - N[1];
3216
+ }), j.map((L) => {
3211
3217
  var N, G;
3212
- const Q = q[0], de = (N = T.value) == null ? void 0 : N[Q], pe = ((G = r.configSchema) == null ? void 0 : G[Q]) || {}, ae = C[Q];
3218
+ const Q = L[0], de = (N = T.value) == null ? void 0 : N[Q], pe = ((G = r.configSchema) == null ? void 0 : G[Q]) || {}, ae = _[Q];
3213
3219
  return {
3214
3220
  key: Q,
3215
3221
  value: de,
@@ -3219,22 +3225,22 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3219
3225
  tooltip: pe.tooltip ?? ((ae == null ? void 0 : ae.tooltip) || void 0),
3220
3226
  section: pe.section ?? ((ae == null ? void 0 : ae.section) || se.Advanced)
3221
3227
  };
3222
- }).filter((q) => !q.hidden && q.key !== r.pluginConfigKey);
3228
+ }).filter((L) => !L.hidden && L.key !== r.pluginConfigKey);
3223
3229
  }), K = A(() => {
3224
- var v, L;
3230
+ var v, q;
3225
3231
  if (!T.value || !r.pluginConfigKey)
3226
3232
  return [];
3227
3233
  const B = T.value[r.pluginConfigKey] || {}, j = Object.keys(B).length, J = [];
3228
- for (const q in B) {
3229
- const N = (L = (v = r.pluginConfigSchema) == null ? void 0 : v[q]) == null ? void 0 : L.order, G = B[q];
3234
+ for (const L in B) {
3235
+ const N = (q = (v = r.pluginConfigSchema) == null ? void 0 : v[L]) == null ? void 0 : q.order, G = B[L];
3230
3236
  let Q = G != null && G !== "" ? j - 1 : j;
3231
- N && (Q = N === -1 ? j + 1 : N), J.push([q, Q]);
3237
+ N && (Q = N === -1 ? j + 1 : N), J.push([L, Q]);
3232
3238
  }
3233
- return J.sort(function(q, N) {
3234
- return q[1] - N[1];
3235
- }), J.map((q) => {
3239
+ return J.sort(function(L, N) {
3240
+ return L[1] - N[1];
3241
+ }), J.map((L) => {
3236
3242
  var N;
3237
- const G = q[0], Q = B[G], de = ((N = r.pluginConfigSchema) == null ? void 0 : N[G]) || {};
3243
+ const G = L[0], Q = B[G], de = ((N = r.pluginConfigSchema) == null ? void 0 : N[G]) || {};
3238
3244
  return {
3239
3245
  key: G,
3240
3246
  value: Q,
@@ -3244,28 +3250,28 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3244
3250
  tooltip: de.tooltip ?? void 0,
3245
3251
  section: se.Plugin
3246
3252
  };
3247
- }).filter((q) => !q.hidden);
3253
+ }).filter((L) => !L.hidden);
3248
3254
  }), c = A(() => {
3249
- var v, L, B, j;
3255
+ var v, q, B, j;
3250
3256
  return {
3251
3257
  basic: (v = R.value) == null ? void 0 : v.filter((J) => J.section === se.Basic),
3252
- advanced: (L = R.value) == null ? void 0 : L.filter((J) => J.section === se.Advanced),
3258
+ advanced: (q = R.value) == null ? void 0 : q.filter((J) => J.section === se.Advanced),
3253
3259
  plugin: (j = K.value) == null ? void 0 : j.concat((B = R.value) == null ? void 0 : B.filter((J) => J.section === se.Plugin))
3254
3260
  };
3255
- }), b = A(() => {
3261
+ }), w = A(() => {
3256
3262
  const v = [];
3257
3263
  return c.value.basic.length && v.push("basic"), c.value.advanced.length && v.push("advanced"), c.value.plugin.length && v.push("plugin"), v;
3258
- }), k = A(() => {
3259
- var v, L;
3264
+ }), S = A(() => {
3265
+ var v, q;
3260
3266
  let B = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3261
- return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (L = r.config) != null && L.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
3267
+ return r.config.app === "konnect" ? B = B.replace(/{controlPlaneId}/gi, ((v = r.config) == null ? void 0 : v.controlPlaneId) || "") : r.config.app === "kongManager" && (B = B.replace(/\/{workspace}/gi, (q = r.config) != null && q.workspace ? `/${r.config.workspace}` : "")), B = B.replace(/{id}/gi, r.config.entityId), B;
3262
3268
  });
3263
- return we(w, (v) => {
3269
+ return we(b, (v) => {
3264
3270
  a("loading", v);
3265
3271
  }, { immediate: !0 }), kt(async () => {
3266
- I.value = !1, w.value = !0;
3272
+ x.value = !1, b.value = !0;
3267
3273
  try {
3268
- const { data: v } = await l.get(k.value);
3274
+ const { data: v } = await l.get(S.value);
3269
3275
  if (r.dataKey)
3270
3276
  if (typeof v[r.dataKey] < "u")
3271
3277
  T.value = { ...v[r.dataKey] };
@@ -3273,22 +3279,22 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3273
3279
  throw new Error(n("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3274
3280
  else
3275
3281
  T.value = { ...v };
3276
- Object.keys(r.configSchema).filter((L) => r.configSchema[L].forceShow).forEach((L) => {
3277
- T.value && typeof T.value[L] > "u" && (T.value[L] = null);
3282
+ Object.keys(r.configSchema).filter((q) => r.configSchema[q].forceShow).forEach((q) => {
3283
+ T.value && typeof T.value[q] > "u" && (T.value[q] = null);
3278
3284
  }), a("fetch:success", v);
3279
3285
  } catch (v) {
3280
- const L = o(v);
3281
- S.value = L.startsWith("code") ? n("baseConfigCard.errors.load") : L, I.value = !0, a("fetch:error", v);
3286
+ const q = o(v);
3287
+ C.value = q.startsWith("code") ? n("baseConfigCard.errors.load") : q, x.value = !0, a("fetch:error", v);
3282
3288
  } finally {
3283
- w.value = !1;
3289
+ b.value = !1;
3284
3290
  }
3285
- }), (v, L) => {
3286
- const B = U("KLabel"), j = U("KSelect"), J = U("KButton"), q = U("KSkeleton"), N = U("KEmptyState"), G = U("KCard");
3291
+ }), (v, q) => {
3292
+ const B = U("KLabel"), j = U("KSelect"), J = U("KButton"), L = U("KSkeleton"), N = U("KEmptyState"), G = U("KCard");
3287
3293
  return h(), z(G, { class: "kong-ui-entity-base-config-card" }, Pe({
3288
3294
  actions: y(() => [
3289
3295
  F("div", wl, [
3290
3296
  te(v.$slots, "actions", {}, void 0, !0),
3291
- x(B, {
3297
+ I(B, {
3292
3298
  class: "config-format-select-label",
3293
3299
  "data-testid": "config-format-select-label"
3294
3300
  }, {
@@ -3297,9 +3303,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3297
3303
  ]),
3298
3304
  _: 1
3299
3305
  }),
3300
- x(j, {
3306
+ I(j, {
3301
3307
  "data-testid": "select-config-format",
3302
- items: u,
3308
+ items: d,
3303
3309
  onChange: p
3304
3310
  }),
3305
3311
  e.configCardDoc ? (h(), z(J, {
@@ -3314,7 +3320,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3314
3320
  rel: "noopener",
3315
3321
  target: "_blank"
3316
3322
  }, [
3317
- x(f(nl), { size: f(na) }, null, 8, ["size"])
3323
+ I(f(nl), { size: f(na) }, null, 8, ["size"])
3318
3324
  ], 8, _l)
3319
3325
  ]),
3320
3326
  _: 1
@@ -3322,31 +3328,31 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3322
3328
  ])
3323
3329
  ]),
3324
3330
  default: y(() => [
3325
- w.value ? (h(), z(q, {
3331
+ b.value ? (h(), z(L, {
3326
3332
  key: 0,
3327
3333
  "data-testid": "config-card-loader",
3328
3334
  "table-columns": 2,
3329
3335
  type: "table"
3330
- })) : I.value ? (h(), z(N, {
3336
+ })) : x.value ? (h(), z(N, {
3331
3337
  key: 1,
3332
3338
  "data-testid": "config-card-fetch-error",
3333
3339
  "icon-variant": "error"
3334
3340
  }, {
3335
3341
  default: y(() => [
3336
- F("h3", null, M(S.value), 1)
3342
+ F("h3", null, M(C.value), 1)
3337
3343
  ]),
3338
3344
  _: 1
3339
3345
  })) : H("", !0),
3340
3346
  F("div", kl, [
3341
- x(Gn, {
3347
+ I(Gn, {
3342
3348
  config: e.config,
3343
- "fetcher-url": k.value,
3344
- format: g.value,
3345
- "prop-list-types": b.value,
3349
+ "fetcher-url": S.value,
3350
+ format: m.value,
3351
+ "prop-list-types": w.value,
3346
3352
  "property-collections": c.value,
3347
3353
  record: T.value
3348
3354
  }, Pe({ _: 2 }, [
3349
- ge(Object.keys(v.$slots), (Q) => ({
3355
+ me(Object.keys(v.$slots), (Q) => ({
3350
3356
  name: Q,
3351
3357
  fn: y(({ row: de, rowValue: pe }) => [
3352
3358
  te(v.$slots, Q, {
@@ -3374,10 +3380,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3374
3380
  ]), 1024);
3375
3381
  };
3376
3382
  }
3377
- }), Sl = /* @__PURE__ */ ye(Cl, [["__scopeId", "data-v-491f1797"]]), xl = {
3383
+ }), Sl = /* @__PURE__ */ ye(Cl, [["__scopeId", "data-v-491f1797"]]), Il = {
3378
3384
  class: "form-actions",
3379
3385
  "data-testid": "form-actions"
3380
- }, Al = /* @__PURE__ */ ee({
3386
+ }, xl = /* @__PURE__ */ ee({
3381
3387
  __name: "EntityBaseForm",
3382
3388
  props: {
3383
3389
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3434,18 +3440,18 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3434
3440
  var t;
3435
3441
  const a = i, r = e, n = St(), { i18n: { t: o } } = ne.useI18n(), { getMessageFromError: s } = ne.useErrors(), { axiosInstance: l } = ne.useAxios({
3436
3442
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3437
- }), u = V(!1), g = V(!1), p = V(""), C = A(() => r.canSubmit === !1 || r.isReadonly), w = V(!1), I = A(() => {
3438
- var b, k;
3443
+ }), d = V(!1), m = V(!1), p = V(""), _ = A(() => r.canSubmit === !1 || r.isReadonly), b = V(!1), x = A(() => {
3444
+ var w, S;
3439
3445
  let v = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3440
- return r.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((b = r.config) == null ? void 0 : b.controlPlaneId) || "") : r.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (k = r.config) != null && k.workspace ? `/${r.config.workspace}` : "")), r.editId ? (v = v.replace(/{id}/gi, r.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3441
- }), S = () => {
3442
- w.value = !w.value;
3446
+ return r.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((w = r.config) == null ? void 0 : w.controlPlaneId) || "") : r.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (S = r.config) != null && S.workspace ? `/${r.config.workspace}` : "")), r.editId ? (v = v.replace(/{id}/gi, r.editId), v) : (v = v.replace(/\/{id}/gi, ""), v);
3447
+ }), C = () => {
3448
+ b.value = !b.value;
3443
3449
  }, T = () => {
3444
3450
  r.config.cancelRoute ? n.push(r.config.cancelRoute) : R();
3445
3451
  }, R = () => {
3446
3452
  a("cancel");
3447
3453
  }, K = () => {
3448
- C.value || a("submit");
3454
+ _.value || a("submit");
3449
3455
  }, c = V([
3450
3456
  {
3451
3457
  title: o("baseForm.configuration.yaml"),
@@ -3456,28 +3462,28 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3456
3462
  hash: "#json"
3457
3463
  }
3458
3464
  ]);
3459
- return we(() => u.value, (b) => {
3460
- a("loading", b);
3465
+ return we(() => d.value, (w) => {
3466
+ a("loading", w);
3461
3467
  }, { immediate: !0 }), kt(async () => {
3462
3468
  if (r.editId)
3463
3469
  try {
3464
- g.value = !1, u.value = !0;
3465
- const { data: b } = await l.get(I.value);
3466
- a("fetch:success", b);
3467
- } catch (b) {
3468
- const k = s(b);
3469
- p.value = k.startsWith("code") ? o("baseForm.errors.edit") : k, g.value = !0, a("fetch:error", b);
3470
+ m.value = !1, d.value = !0;
3471
+ const { data: w } = await l.get(x.value);
3472
+ a("fetch:success", w);
3473
+ } catch (w) {
3474
+ const S = s(w);
3475
+ p.value = S.startsWith("code") ? o("baseForm.errors.edit") : S, m.value = !0, a("fetch:error", w);
3470
3476
  } finally {
3471
- u.value = !1;
3477
+ d.value = !1;
3472
3478
  }
3473
- }), (b, k) => {
3474
- const v = U("KSkeleton"), L = U("KEmptyState"), B = U("KAlert"), j = U("KButton"), J = U("KTabs"), q = U("KSlideout"), N = U("KCard");
3479
+ }), (w, S) => {
3480
+ const v = U("KSkeleton"), q = U("KEmptyState"), B = U("KAlert"), j = U("KButton"), J = U("KTabs"), L = U("KSlideout"), N = U("KCard");
3475
3481
  return h(), z(N, { class: "kong-ui-entity-base-form" }, {
3476
3482
  default: y(() => [
3477
- u.value ? (h(), z(v, {
3483
+ d.value ? (h(), z(v, {
3478
3484
  key: 0,
3479
3485
  type: "form"
3480
- })) : g.value ? (h(), z(L, {
3486
+ })) : m.value ? (h(), z(q, {
3481
3487
  key: 1,
3482
3488
  "action-button-text": f(o)("baseForm.actions.back"),
3483
3489
  "data-testid": "form-fetch-error",
@@ -3491,29 +3497,29 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3491
3497
  }, 8, ["action-button-text"])) : (h(), $("form", {
3492
3498
  key: 2,
3493
3499
  "data-testid": "form-content",
3494
- onReset: Le(R, ["prevent"]),
3495
- onSubmit: Le(K, ["prevent"])
3500
+ onReset: qe(R, ["prevent"]),
3501
+ onSubmit: qe(K, ["prevent"])
3496
3502
  }, [
3497
- te(b.$slots, "default", {}, void 0, !0),
3503
+ te(w.$slots, "default", {}, void 0, !0),
3498
3504
  e.errorMessage ? (h(), z(B, {
3499
3505
  key: 0,
3500
3506
  appearance: "danger",
3501
3507
  "data-testid": "form-error",
3502
3508
  message: e.errorMessage
3503
3509
  }, null, 8, ["message"])) : H("", !0),
3504
- F("div", xl, [
3505
- te(b.$slots, "form-actions", {}, () => [
3506
- x(j, {
3510
+ F("div", Il, [
3511
+ te(w.$slots, "form-actions", {}, () => [
3512
+ I(j, {
3507
3513
  appearance: "tertiary",
3508
3514
  "data-testid": "form-view-configuration",
3509
- onClick: k[0] || (k[0] = (G) => S())
3515
+ onClick: S[0] || (S[0] = (G) => C())
3510
3516
  }, {
3511
3517
  default: y(() => [
3512
3518
  W(M(f(o)("baseForm.actions.viewConfiguration")), 1)
3513
3519
  ]),
3514
3520
  _: 1
3515
3521
  }),
3516
- x(j, {
3522
+ I(j, {
3517
3523
  appearance: "secondary",
3518
3524
  "data-testid": "form-cancel",
3519
3525
  disabled: e.isReadonly,
@@ -3524,10 +3530,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3524
3530
  ]),
3525
3531
  _: 1
3526
3532
  }, 8, ["disabled"]),
3527
- x(j, {
3533
+ I(j, {
3528
3534
  appearance: "primary",
3529
3535
  "data-testid": "form-submit",
3530
- disabled: C.value,
3536
+ disabled: _.value,
3531
3537
  type: "submit"
3532
3538
  }, {
3533
3539
  default: y(() => [
@@ -3538,31 +3544,31 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3538
3544
  ], !0)
3539
3545
  ])
3540
3546
  ], 32)),
3541
- x(q, {
3547
+ I(L, {
3542
3548
  "close-on-blur": !1,
3543
3549
  "data-testid": "form-view-configuration-slideout",
3544
3550
  "has-overlay": !1,
3545
3551
  "offset-top": 60,
3546
3552
  title: f(o)("baseForm.configuration.title"),
3547
- visible: w.value,
3548
- onClose: k[1] || (k[1] = (G) => S())
3553
+ visible: b.value,
3554
+ onClose: S[1] || (S[1] = (G) => C())
3549
3555
  }, {
3550
3556
  default: y(() => [
3551
3557
  F("div", null, M(f(o)("baseForm.configuration.message")), 1),
3552
- x(J, {
3558
+ I(J, {
3553
3559
  "data-testid": "form-view-configuration-slideout-tabs",
3554
3560
  tabs: c.value
3555
3561
  }, {
3556
3562
  json: y(() => [
3557
- x(gi, {
3563
+ I(mi, {
3558
3564
  config: e.config,
3559
- "fetcher-url": I.value,
3565
+ "fetcher-url": x.value,
3560
3566
  "json-record": r.formFields,
3561
3567
  "request-method": r.editId ? "put" : "post"
3562
3568
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
3563
3569
  ]),
3564
3570
  yaml: y(() => [
3565
- x(rr, {
3571
+ I(rr, {
3566
3572
  "yaml-record": r.formFields
3567
3573
  }, null, 8, ["yaml-record"])
3568
3574
  ]),
@@ -3576,7 +3582,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3576
3582
  });
3577
3583
  };
3578
3584
  }
3579
- }), Il = /* @__PURE__ */ ye(Al, [["__scopeId", "data-v-1d932d98"]]), Tl = {
3585
+ }), Al = /* @__PURE__ */ ye(xl, [["__scopeId", "data-v-1d932d98"]]), Tl = {
3580
3586
  key: 0,
3581
3587
  "data-testid": "first-col"
3582
3588
  }, jl = /* @__PURE__ */ ee({
@@ -3593,42 +3599,42 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3593
3599
  },
3594
3600
  setup(e) {
3595
3601
  const i = e, t = A(() => {
3596
- var S;
3597
- return ((S = i.rowEl) == null ? void 0 : S.querySelector(`[data-testid="${i.keyName}"]`)) || null;
3602
+ var C;
3603
+ return ((C = i.rowEl) == null ? void 0 : C.querySelector(`[data-testid="${i.keyName}"]`)) || null;
3598
3604
  }), a = A(() => {
3599
- var S;
3600
- return ((S = t.value) == null ? void 0 : S.querySelector('[data-testid="first-col"]')) || null;
3605
+ var C;
3606
+ return ((C = t.value) == null ? void 0 : C.querySelector('[data-testid="first-col"]')) || null;
3601
3607
  }), r = A(() => {
3602
- var S, T;
3603
- const R = (S = i.rowEl) == null ? void 0 : S.querySelectorAll("td");
3608
+ var C, T;
3609
+ const R = (C = i.rowEl) == null ? void 0 : C.querySelectorAll("td");
3604
3610
  return R ? ((T = R[0]) == null ? void 0 : T.getAttribute("data-testid")) === i.keyName : !1;
3605
3611
  });
3606
3612
  let n;
3607
3613
  const o = () => {
3608
3614
  n && (n.disconnect(), n = void 0);
3609
3615
  }, s = () => {
3610
- var S, T, R;
3611
- u.value = ((S = a.value) == null ? void 0 : S.getBoundingClientRect().width) || 0, g.value = ((T = t.value) == null ? void 0 : T.clientWidth) || 0, p.value = ((R = l.value) == null ? void 0 : R.innerText) || "";
3612
- }, l = V({}), u = V(0), g = V(0), p = V(""), C = A(() => [a.value, t.value]), w = we(
3613
- C,
3614
- (S) => {
3616
+ var C, T, R;
3617
+ d.value = ((C = a.value) == null ? void 0 : C.getBoundingClientRect().width) || 0, m.value = ((T = t.value) == null ? void 0 : T.clientWidth) || 0, p.value = ((R = l.value) == null ? void 0 : R.innerText) || "";
3618
+ }, l = V({}), d = V(0), m = V(0), p = V(""), _ = A(() => [a.value, t.value]), b = we(
3619
+ _,
3620
+ (C) => {
3615
3621
  if (r.value && (o(), "ResizeObserver" in window && window)) {
3616
3622
  n = new ResizeObserver((T) => {
3617
3623
  window.requestAnimationFrame(() => {
3618
3624
  !Array.isArray(T) || !T.length || s();
3619
3625
  });
3620
3626
  });
3621
- for (const T of S)
3627
+ for (const T of C)
3622
3628
  T && n.observe(T);
3623
3629
  }
3624
3630
  },
3625
3631
  { immediate: !0, flush: "post", deep: !0 }
3626
- ), I = A(() => r.value ? u.value > g.value : !1);
3632
+ ), x = A(() => r.value ? d.value > m.value : !1);
3627
3633
  return oi(() => {
3628
3634
  s();
3629
3635
  }), cr(() => {
3630
- w();
3631
- }), (S, T) => {
3636
+ b();
3637
+ }), (C, T) => {
3632
3638
  const R = U("KTooltip");
3633
3639
  return h(), $("span", {
3634
3640
  ref_key: "contentRef",
@@ -3636,17 +3642,17 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3636
3642
  class: "content-wrapper"
3637
3643
  }, [
3638
3644
  r.value ? (h(), $("span", Tl, [
3639
- x(R, {
3645
+ I(R, {
3640
3646
  "max-width": "300",
3641
3647
  placement: "bottomStart",
3642
- text: I.value ? p.value : ""
3648
+ text: x.value ? p.value : ""
3643
3649
  }, {
3644
3650
  default: y(() => [
3645
- te(S.$slots, "default", {}, void 0, !0)
3651
+ te(C.$slots, "default", {}, void 0, !0)
3646
3652
  ]),
3647
3653
  _: 3
3648
3654
  }, 8, ["text"])
3649
- ])) : te(S.$slots, "default", { key: 1 }, void 0, !0)
3655
+ ])) : te(C.$slots, "default", { key: 1 }, void 0, !0)
3650
3656
  ], 512);
3651
3657
  };
3652
3658
  }
@@ -3764,75 +3770,75 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3764
3770
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3765
3771
  setup(e, { emit: i }) {
3766
3772
  const t = e, a = i, { i18n: { t: r } } = ne.useI18n(), n = A(() => {
3767
- var k, v;
3773
+ var S, v;
3768
3774
  return typeof t.errorMessage == "string" ? {
3769
3775
  hasError: !!t.errorMessage,
3770
3776
  title: t.errorMessage,
3771
3777
  message: void 0
3772
3778
  } : {
3773
3779
  hasError: !!t.errorMessage,
3774
- title: (k = t.errorMessage) == null ? void 0 : k.title,
3780
+ title: (S = t.errorMessage) == null ? void 0 : S.title,
3775
3781
  message: (v = t.errorMessage) == null ? void 0 : v.message
3776
3782
  };
3777
- }), o = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (k) => k.hasData || !!t.query, l = A(() => {
3778
- const k = [];
3783
+ }), o = A(() => t.cacheIdentifier || t.preferencesStorageKey), s = (S) => S.hasData || !!t.query, l = A(() => {
3784
+ const S = [];
3779
3785
  return Object.keys(t.tableHeaders).forEach((v) => {
3780
- const L = t.tableHeaders[v];
3781
- k.push({
3782
- label: L.label ?? v,
3786
+ const q = t.tableHeaders[v];
3787
+ S.push({
3788
+ label: q.label ?? v,
3783
3789
  key: v,
3784
- sortable: L.sortable ?? !1
3790
+ sortable: q.sortable ?? !1
3785
3791
  });
3786
- }), t.enableEntityActions && k.push({
3792
+ }), t.enableEntityActions && S.push({
3787
3793
  key: "actions",
3788
3794
  hideLabel: !0
3789
- }), k;
3790
- }), u = (k) => ({
3791
- "data-rowid": k.id,
3792
- "data-testid": k.name,
3793
- ...t.rowAttributes(k)
3794
- }), g = V({}), p = (k) => {
3795
+ }), S;
3796
+ }), d = (S) => ({
3797
+ "data-rowid": S.id,
3798
+ "data-testid": S.name,
3799
+ ...t.rowAttributes(S)
3800
+ }), m = V({}), p = (S) => {
3795
3801
  var v;
3796
- return (v = g.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${k.id}"]`);
3797
- }, C = (k) => {
3802
+ return (v = m.value) == null ? void 0 : v.$el.querySelector(`[data-rowid="${S.id}"]`);
3803
+ }, _ = (S) => {
3798
3804
  const v = {
3799
- "data-testid": k.headerKey,
3800
- ...t.cellAttributes(k)
3805
+ "data-testid": S.headerKey,
3806
+ ...t.cellAttributes(S)
3801
3807
  };
3802
- return k.colIndex === 0 && (v.style = {
3808
+ return S.colIndex === 0 && (v.style = {
3803
3809
  maxWidth: "250px",
3804
3810
  overflowX: "hidden",
3805
3811
  textOverflow: "ellipsis"
3806
3812
  }), v;
3807
- }, w = () => {
3808
- a("empty-state-cta-clicked"), I();
3809
- }, I = () => {
3813
+ }, b = () => {
3814
+ a("empty-state-cta-clicked"), x();
3815
+ }, x = () => {
3810
3816
  a("clear-search-input");
3811
- }, S = A(() => t.disableRowClick ? void 0 : (k, v) => {
3817
+ }, C = A(() => t.disableRowClick ? void 0 : (S, v) => {
3812
3818
  a("click:row", v);
3813
- }), T = (k) => {
3814
- a("sort", k);
3815
- }, { setTablePreferences: R, getTablePreferences: K } = Ar(), c = A(() => {
3816
- const k = K(t.preferencesStorageKey);
3819
+ }), T = (S) => {
3820
+ a("sort", S);
3821
+ }, { setTablePreferences: R, getTablePreferences: K } = xr(), c = A(() => {
3822
+ const S = K(t.preferencesStorageKey);
3817
3823
  return {
3818
3824
  ...t.initialFetcherParams,
3819
- ...k
3825
+ ...S
3820
3826
  };
3821
- }), b = (k) => {
3822
- t.preferencesStorageKey && R(t.preferencesStorageKey, k);
3827
+ }), w = (S) => {
3828
+ t.preferencesStorageKey && R(t.preferencesStorageKey, S);
3823
3829
  };
3824
- return (k, v) => {
3825
- const L = U("KIcon"), B = U("KButton"), j = U("KDropdown"), J = U("KTable"), q = U("KCard");
3826
- return h(), z(q, {
3830
+ return (S, v) => {
3831
+ const q = U("KIcon"), B = U("KButton"), j = U("KDropdown"), J = U("KTable"), L = U("KCard");
3832
+ return h(), z(L, {
3827
3833
  class: "kong-ui-entity-base-table",
3828
3834
  title: e.title
3829
3835
  }, {
3830
3836
  default: y(() => [
3831
- x(J, {
3837
+ I(J, {
3832
3838
  ref_key: "tableRefs",
3833
- ref: g,
3839
+ ref: m,
3834
3840
  "cache-identifier": o.value,
3835
- "cell-attrs": C,
3841
+ "cell-attrs": _,
3836
3842
  "disable-pagination-page-jump": e.disablePaginationPageJump,
3837
3843
  "disable-sorting": e.disableSorting,
3838
3844
  "empty-state-action-message": e.query ? f(r)("baseTable.emptyState.noSearchResultsCtaText") : e.emptyStateOptions.ctaText,
@@ -3851,18 +3857,18 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3851
3857
  "initial-fetcher-params": c.value,
3852
3858
  "is-loading": e.isLoading,
3853
3859
  "pagination-type": e.paginationType,
3854
- "row-attrs": u,
3860
+ "row-attrs": d,
3855
3861
  "search-input": e.query,
3856
- onKtableEmptyStateCtaClicked: w,
3857
- "onRow:click": S.value,
3862
+ onKtableEmptyStateCtaClicked: b,
3863
+ "onRow:click": C.value,
3858
3864
  onSort: v[0] || (v[0] = (N) => T(N)),
3859
- "onUpdate:tablePreferences": b
3865
+ "onUpdate:tablePreferences": w
3860
3866
  }, Pe({
3861
3867
  toolbar: y(({ state: N }) => [
3862
3868
  ke(F("div", Ml, [
3863
- te(k.$slots, "toolbar-filter", {}, void 0, !0),
3864
- k.$slots["toolbar-button"] ? (h(), $("div", Ol, [
3865
- te(k.$slots, "toolbar-button", {}, void 0, !0)
3869
+ te(S.$slots, "toolbar-filter", {}, void 0, !0),
3870
+ S.$slots["toolbar-button"] ? (h(), $("div", Ol, [
3871
+ te(S.$slots, "toolbar-button", {}, void 0, !0)
3866
3872
  ])) : H("", !0)
3867
3873
  ], 512), [
3868
3874
  [Ce, s(N)]
@@ -3873,25 +3879,25 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3873
3879
  class: "actions-container",
3874
3880
  "data-testid": N.name
3875
3881
  }, [
3876
- x(j, {
3882
+ I(j, {
3877
3883
  "kpop-attributes": { placement: "bottomEnd" },
3878
3884
  width: e.dropdownMenuWidth
3879
3885
  }, {
3880
3886
  items: y(() => [
3881
- te(k.$slots, "actions", {
3887
+ te(S.$slots, "actions", {
3882
3888
  row: N,
3883
3889
  rowKey: G,
3884
3890
  rowValue: Q
3885
3891
  }, void 0, !0)
3886
3892
  ]),
3887
3893
  default: y(() => [
3888
- x(B, {
3894
+ I(B, {
3889
3895
  class: "actions-trigger",
3890
3896
  "data-testid": "overflow-actions-button",
3891
3897
  size: "small"
3892
3898
  }, {
3893
3899
  icon: y(() => [
3894
- x(L, {
3900
+ I(q, {
3895
3901
  color: f(ra),
3896
3902
  icon: "more",
3897
3903
  size: "16"
@@ -3906,15 +3912,15 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3906
3912
  ]),
3907
3913
  _: 2
3908
3914
  }, [
3909
- ge(e.tableHeaders, (N, G) => ({
3915
+ me(e.tableHeaders, (N, G) => ({
3910
3916
  name: G,
3911
3917
  fn: y(({ row: Q, rowKey: de, rowValue: pe }) => [
3912
- x($l, {
3918
+ I($l, {
3913
3919
  "key-name": String(G),
3914
3920
  "row-el": p(Q)
3915
3921
  }, {
3916
3922
  default: y(() => [
3917
- te(k.$slots, G, {
3923
+ te(S.$slots, G, {
3918
3924
  row: Q,
3919
3925
  rowKey: de,
3920
3926
  rowValue: pe
@@ -3929,7 +3935,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3929
3935
  e.query ? void 0 : {
3930
3936
  name: "empty-state-action-icon",
3931
3937
  fn: y(() => [
3932
- x(f(el))
3938
+ I(f(el))
3933
3939
  ]),
3934
3940
  key: "0"
3935
3941
  }
@@ -3942,10 +3948,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3942
3948
  }), Nl = /* @__PURE__ */ ye(Fl, [["__scopeId", "data-v-273124cf"]]), Vl = {
3943
3949
  key: 0,
3944
3950
  class: "kong-ui-entity-delete-error"
3945
- }, Ll = {
3951
+ }, ql = {
3946
3952
  key: 1,
3947
3953
  class: "description"
3948
- }, ql = /* @__PURE__ */ ee({
3954
+ }, Ll = /* @__PURE__ */ ee({
3949
3955
  __name: "EntityDeleteModal",
3950
3956
  props: {
3951
3957
  visible: {
@@ -3989,8 +3995,8 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
3989
3995
  }, s = () => {
3990
3996
  r("proceed");
3991
3997
  };
3992
- return (l, u) => {
3993
- const g = U("KAlert"), p = U("KPrompt");
3998
+ return (l, d) => {
3999
+ const m = U("KAlert"), p = U("KPrompt");
3994
4000
  return h(), z(p, {
3995
4001
  "action-button-appearance": "danger",
3996
4002
  "action-button-disabled": e.actionPending,
@@ -4004,14 +4010,14 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4004
4010
  }, {
4005
4011
  default: y(() => [
4006
4012
  e.error ? (h(), $("div", Vl, [
4007
- x(g, { appearance: "danger" }, {
4013
+ I(m, { appearance: "danger" }, {
4008
4014
  default: y(() => [
4009
4015
  W(M(e.error), 1)
4010
4016
  ]),
4011
4017
  _: 1
4012
4018
  })
4013
4019
  ])) : H("", !0),
4014
- x(f(t), {
4020
+ I(f(t), {
4015
4021
  class: "message",
4016
4022
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4017
4023
  tag: "p"
@@ -4029,7 +4035,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4029
4035
  key: "0"
4030
4036
  } : void 0
4031
4037
  ]), 1032, ["keypath"]),
4032
- a.description || l.$slots.description ? (h(), $("div", Ll, [
4038
+ a.description || l.$slots.description ? (h(), $("div", ql, [
4033
4039
  te(l.$slots, "description", {}, () => [
4034
4040
  F("p", null, M(a.description), 1)
4035
4041
  ], !0)
@@ -4039,7 +4045,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4039
4045
  }, 8, ["action-button-disabled", "confirmation-text", "title", "visible"]);
4040
4046
  };
4041
4047
  }
4042
- }), Kl = /* @__PURE__ */ ye(ql, [["__scopeId", "data-v-4361d622"]]), Pl = {
4048
+ }), Kl = /* @__PURE__ */ ye(Ll, [["__scopeId", "data-v-4361d622"]]), Pl = {
4043
4049
  fill: "none",
4044
4050
  height: "20",
4045
4051
  viewBox: "0 0 20 20",
@@ -4102,53 +4108,53 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4102
4108
  emits: ["update:modelValue"],
4103
4109
  setup(e, { emit: i }) {
4104
4110
  const { i18n: { t } } = ne.useI18n(), a = e, r = i, n = V(!1), o = V({}), s = V(/* @__PURE__ */ new Set()), l = A(() => {
4105
- const b = [];
4106
- return new URLSearchParams(a.modelValue).forEach((k, v) => {
4107
- k !== "" && b.push(v);
4108
- }), b;
4109
- }), u = A(() => {
4110
- const b = a.config.fields;
4111
- return Object.keys(b).filter((k) => b[k].searchable).map((k) => ({
4112
- label: b[k].label || k,
4113
- value: k,
4111
+ const w = [];
4112
+ return new URLSearchParams(a.modelValue).forEach((S, v) => {
4113
+ S !== "" && w.push(v);
4114
+ }), w;
4115
+ }), d = A(() => {
4116
+ const w = a.config.fields;
4117
+ return Object.keys(w).filter((S) => w[S].searchable).map((S) => ({
4118
+ label: w[S].label || S,
4119
+ value: S,
4114
4120
  expanded: !1
4115
4121
  }));
4116
4122
  });
4117
- we(() => a.modelValue, (b) => {
4118
- o.value = {}, new URLSearchParams(b).forEach((k, v) => {
4119
- o.value[v] = k;
4123
+ we(() => a.modelValue, (w) => {
4124
+ o.value = {}, new URLSearchParams(w).forEach((S, v) => {
4125
+ o.value[v] = S;
4120
4126
  });
4121
4127
  });
4122
- const g = () => {
4128
+ const m = () => {
4123
4129
  n.value = !n.value;
4124
- }, p = (b) => {
4125
- s.value.has(b) ? s.value.delete(b) : s.value.add(b);
4126
- }, C = (b) => {
4127
- r("update:modelValue", b);
4128
- }, w = () => {
4129
- C("");
4130
- }, I = (b) => `filter-${b}`, S = (b) => {
4131
- var k, v;
4132
- return (((v = (k = a.config.schema) == null ? void 0 : k[b]) == null ? void 0 : v.values) ?? []).map((L) => ({
4133
- value: L,
4134
- label: L
4130
+ }, p = (w) => {
4131
+ s.value.has(w) ? s.value.delete(w) : s.value.add(w);
4132
+ }, _ = (w) => {
4133
+ r("update:modelValue", w);
4134
+ }, b = () => {
4135
+ _("");
4136
+ }, x = (w) => `filter-${w}`, C = (w) => {
4137
+ var S, v;
4138
+ return (((v = (S = a.config.schema) == null ? void 0 : S[w]) == null ? void 0 : v.values) ?? []).map((q) => ({
4139
+ value: q,
4140
+ label: q
4135
4141
  }));
4136
- }, T = (b) => {
4137
- var k, v;
4138
- return ((v = (k = a.config.schema) == null ? void 0 : k[b]) == null ? void 0 : v.type) ?? "text";
4139
- }, R = (b) => {
4142
+ }, T = (w) => {
4143
+ var S, v;
4144
+ return ((v = (S = a.config.schema) == null ? void 0 : S[w]) == null ? void 0 : v.type) ?? "text";
4145
+ }, R = (w) => {
4140
4146
  o.value = {
4141
4147
  ...o.value,
4142
- [b]: ""
4148
+ [w]: ""
4143
4149
  }, c();
4144
4150
  }, K = () => {
4145
4151
  o.value = {}, c(!0);
4146
- }, c = (b = !1) => {
4147
- const k = Object.keys(o.value).reduce((v, L) => (o.value[L] && (v[L] = `${o.value[L]}`), v), {});
4148
- b && (n.value = !1), r("update:modelValue", new URLSearchParams(k).toString());
4152
+ }, c = (w = !1) => {
4153
+ const S = Object.keys(o.value).reduce((v, q) => (o.value[q] && (v[q] = `${o.value[q]}`), v), {});
4154
+ w && (n.value = !1), r("update:modelValue", new URLSearchParams(S).toString());
4149
4155
  };
4150
- return (b, k) => {
4151
- const v = U("KInput"), L = U("KButton"), B = U("KSelect");
4156
+ return (w, S) => {
4157
+ const v = U("KInput"), q = U("KButton"), B = U("KSelect");
4152
4158
  return e.config.isExactMatch ? (h(), z(v, {
4153
4159
  key: 0,
4154
4160
  autocomplete: "off",
@@ -4156,48 +4162,48 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4156
4162
  "data-testid": "search-input",
4157
4163
  "model-value": e.modelValue,
4158
4164
  placeholder: e.config.placeholder,
4159
- "onUpdate:modelValue": C
4165
+ "onUpdate:modelValue": _
4160
4166
  }, {
4161
4167
  before: y(() => [
4162
- x(ii)
4168
+ I(ii)
4163
4169
  ]),
4164
4170
  after: y(() => [
4165
- ke(x(f(hl), {
4171
+ ke(I(f(hl), {
4166
4172
  class: "kong-ui-entity-filter-clear",
4167
- onClick: w
4173
+ onClick: b
4168
4174
  }, null, 512), [
4169
4175
  [Ce, e.modelValue !== ""]
4170
4176
  ])
4171
4177
  ]),
4172
4178
  _: 1
4173
4179
  }, 8, ["model-value", "placeholder"])) : (h(), $("div", zl, [
4174
- x(L, {
4180
+ I(q, {
4175
4181
  appearance: "tertiary",
4176
4182
  "data-testid": "filter-button",
4177
- onClick: g
4183
+ onClick: m
4178
4184
  }, {
4179
4185
  default: y(() => [
4180
- x(ii),
4186
+ I(ii),
4181
4187
  W(" " + M(f(t)("filter.filterButtonText")) + " " + M(l.value.length > 0 ? `(${l.value.length})` : ""), 1)
4182
4188
  ]),
4183
4189
  _: 1
4184
4190
  }),
4185
4191
  ke(F("div", {
4186
4192
  class: "kong-ui-entity-filter-backdrop",
4187
- onClick: g
4193
+ onClick: m
4188
4194
  }, null, 512), [
4189
4195
  [Ce, n.value]
4190
4196
  ]),
4191
4197
  ke(F("div", Hl, [
4192
- (h(!0), $(ve, null, ge(u.value, (j) => {
4193
- var J, q;
4198
+ (h(!0), $(ve, null, me(d.value, (j) => {
4199
+ var J, L;
4194
4200
  return h(), $("div", {
4195
4201
  key: j.value,
4196
4202
  class: "kong-ui-entity-filter-menu-item",
4197
4203
  "data-testid": j.value
4198
4204
  }, [
4199
4205
  F("span", {
4200
- class: xe(["menu-item-title", { expanded: s.value.has(j.value) }]),
4206
+ class: Ie(["menu-item-title", { expanded: s.value.has(j.value) }]),
4201
4207
  role: "button",
4202
4208
  tabindex: "0",
4203
4209
  onClick: (N) => p(j.value),
@@ -4207,26 +4213,26 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4207
4213
  ke(F("span", Wl, null, 512), [
4208
4214
  [Ce, l.value.includes(j.value)]
4209
4215
  ]),
4210
- x(f(pl), {
4211
- class: xe(["menu-item-expand-icon", { expanded: s.value.has(j.value) }]),
4216
+ I(f(pl), {
4217
+ class: Ie(["menu-item-expand-icon", { expanded: s.value.has(j.value) }]),
4212
4218
  color: f(aa)
4213
4219
  }, null, 8, ["class", "color"])
4214
4220
  ], 42, Gl),
4215
4221
  ke(F("div", Yl, [
4216
4222
  F("label", {
4217
4223
  class: "menu-item-label",
4218
- for: I(j.value)
4224
+ for: x(j.value)
4219
4225
  }, M(f(t)("filter.fieldLabel")), 9, Zl),
4220
- ((q = (J = e.config.schema) == null ? void 0 : J[j.value]) == null ? void 0 : q.type) === "select" ? (h(), z(B, {
4226
+ ((L = (J = e.config.schema) == null ? void 0 : J[j.value]) == null ? void 0 : L.type) === "select" ? (h(), z(B, {
4221
4227
  key: 0,
4222
- id: I(j.value),
4228
+ id: x(j.value),
4223
4229
  modelValue: o.value[j.value],
4224
4230
  "onUpdate:modelValue": (N) => o.value[j.value] = N,
4225
- items: S(j.value),
4231
+ items: C(j.value),
4226
4232
  placeholder: f(t)("filter.selectPlaceholder")
4227
4233
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (h(), z(v, {
4228
4234
  key: 1,
4229
- id: I(j.value),
4235
+ id: x(j.value),
4230
4236
  modelValue: o.value[j.value],
4231
4237
  "onUpdate:modelValue": (N) => o.value[j.value] = N,
4232
4238
  autocomplete: "off",
@@ -4237,18 +4243,18 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4237
4243
  [Ce, s.value.has(j.value)]
4238
4244
  ]),
4239
4245
  ke(F("div", Ql, [
4240
- x(L, {
4246
+ I(q, {
4241
4247
  appearance: "tertiary",
4242
4248
  "data-testid": "apply-filter",
4243
4249
  size: "small",
4244
- onClick: k[0] || (k[0] = (N) => c(!0))
4250
+ onClick: S[0] || (S[0] = (N) => c(!0))
4245
4251
  }, {
4246
4252
  default: y(() => [
4247
4253
  W(M(f(t)("filter.applyButtonText")), 1)
4248
4254
  ]),
4249
4255
  _: 1
4250
4256
  }),
4251
- x(L, {
4257
+ I(q, {
4252
4258
  appearance: "tertiary",
4253
4259
  "data-testid": "clear-filter",
4254
4260
  size: "small",
@@ -4265,7 +4271,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4265
4271
  ], 8, Jl);
4266
4272
  }), 128)),
4267
4273
  F("div", Xl, [
4268
- x(L, {
4274
+ I(q, {
4269
4275
  appearance: "tertiary",
4270
4276
  size: "small",
4271
4277
  onClick: K
@@ -4318,7 +4324,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4318
4324
  () => r.action === "enable" ? t("toggleModal.enable.title", { entityType: r.entityType }) : t("toggleModal.disable.title", { entityType: r.entityType })
4319
4325
  ), l = A(
4320
4326
  () => r.action === "enable" ? t("toggleModal.enable.confirmText") : t("toggleModal.disable.confirmText")
4321
- ), u = () => n("cancel"), g = async () => {
4327
+ ), d = () => n("cancel"), m = async () => {
4322
4328
  if (r.onConfirm) {
4323
4329
  o.value = !0;
4324
4330
  try {
@@ -4330,20 +4336,20 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4330
4336
  }
4331
4337
  }
4332
4338
  };
4333
- return (p, C) => {
4334
- const w = U("KPrompt");
4339
+ return (p, _) => {
4340
+ const b = U("KPrompt");
4335
4341
  return h(), z(nr, { to: "body" }, [
4336
- x(w, {
4342
+ I(b, {
4337
4343
  "action-button-disabled": o.value,
4338
4344
  "action-button-text": l.value,
4339
4345
  "data-testid": `${e.entityType}-${e.entityId}-toggle-prompt`,
4340
4346
  title: s.value,
4341
4347
  visible: e.visible,
4342
- onCancel: u,
4343
- onProceed: g
4348
+ onCancel: d,
4349
+ onProceed: m
4344
4350
  }, {
4345
4351
  default: y(() => [
4346
- x(f(a), {
4352
+ I(f(a), {
4347
4353
  keypath: `toggleModal.${r.action}.message`,
4348
4354
  scope: "global"
4349
4355
  }, {
@@ -4427,12 +4433,12 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4427
4433
  setup(e) {
4428
4434
  const i = Ct();
4429
4435
  return (t, a) => (h(), $("fieldset", {
4430
- class: xe(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4436
+ class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4431
4437
  }, [
4432
4438
  F("div", rs, [
4433
4439
  e.hideInfoHeader ? H("", !0) : (h(), $("div", {
4434
4440
  key: 0,
4435
- class: xe(["form-section-info", { sticky: e.stickyInfoHeader }])
4441
+ class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
4436
4442
  }, [
4437
4443
  e.title ? (h(), $("h4", as, M(e.title), 1)) : H("", !0),
4438
4444
  e.description || f(i).description ? (h(), $("div", os, [
@@ -4450,7 +4456,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4450
4456
  ])
4451
4457
  ], 2));
4452
4458
  }
4453
- }), ri = /* @__PURE__ */ ye(ss, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ar, useDeleteUrlBuilder: cs, useErrors: us, useExternalLinkCreator: Bs, useFetchUrlBuilder: Rs, useFetcher: ds, useDebouncedFilter: Ds, useStringHelpers: zs, useHelpers: ps, useGatewayFeatureSupported: fs, useTruncationDetector: Hs } = ne, ms = { class: "kong-ui-entities-gateway-services-list" }, gs = { key: 1 }, ys = { key: 1 }, vs = /* @__PURE__ */ ee({
4459
+ }), ri = /* @__PURE__ */ ye(ss, [["__scopeId", "data-v-3565daa7"]]), { useAxios: ar, useDeleteUrlBuilder: cs, useErrors: us, useExternalLinkCreator: Bs, useFetchUrlBuilder: Rs, useFetcher: ds, useDebouncedFilter: Ds, useStringHelpers: zs, useHelpers: ps, useGatewayFeatureSupported: fs, useTruncationDetector: Hs } = ne, gs = { class: "kong-ui-entities-gateway-services-list" }, ms = { key: 1 }, ys = { key: 1 }, vs = /* @__PURE__ */ ee({
4454
4460
  __name: "GatewayServiceList",
4455
4461
  props: {
4456
4462
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4496,10 +4502,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4496
4502
  },
4497
4503
  emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
4498
4504
  setup(e, { emit: i }) {
4499
- var d;
4505
+ var u;
4500
4506
  const t = i, a = e, { i18n: { t: r } } = et.useI18n(), n = St(), { axiosInstance: o } = ar({
4501
- headers: (d = a.config) == null ? void 0 : d.requestHeaders
4502
- }), s = V(1), l = A(() => a.config.app !== "kongManager" || !!a.config.disableSorting), u = {
4507
+ headers: (u = a.config) == null ? void 0 : u.requestHeaders
4508
+ }), s = V(1), l = A(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
4503
4509
  name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
4504
4510
  ...a.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
4505
4511
  protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
@@ -4508,105 +4514,105 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4508
4514
  path: { label: r("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
4509
4515
  enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
4510
4516
  tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 }
4511
- }, g = u, p = A(() => {
4517
+ }, m = d, p = A(() => {
4512
4518
  var O, D;
4513
- let m = `${a.config.apiBaseUrl}${Ge.list[a.config.app].all}`;
4514
- return a.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((O = a.config) == null ? void 0 : O.controlPlaneId) || "") : a.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (D = a.config) != null && D.workspace ? `/${a.config.workspace}` : "")), m;
4515
- }), C = A(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), w = V(""), I = A(() => {
4516
- const m = a.config.app === "konnect" || a.config.isExactMatch;
4517
- if (m)
4519
+ let g = `${a.config.apiBaseUrl}${Ge.list[a.config.app].all}`;
4520
+ return a.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((O = a.config) == null ? void 0 : O.controlPlaneId) || "") : a.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (D = a.config) != null && D.workspace ? `/${a.config.workspace}` : "")), g;
4521
+ }), _ = A(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), b = V(""), x = A(() => {
4522
+ const g = a.config.app === "konnect" || a.config.isExactMatch;
4523
+ if (g)
4518
4524
  return {
4519
- isExactMatch: m,
4525
+ isExactMatch: g,
4520
4526
  placeholder: r(`search.placeholder.${a.config.app}`)
4521
4527
  };
4522
- const { name: O, enabled: D, protocol: Z, host: ie, port: _, path: be } = u;
4528
+ const { name: O, enabled: D, protocol: Z, host: ie, port: k, path: be } = d;
4523
4529
  return {
4524
- isExactMatch: m,
4525
- fields: { name: O, enabled: D, protocol: Z, host: ie, port: _, path: be },
4530
+ isExactMatch: g,
4531
+ fields: { name: O, enabled: D, protocol: Z, host: ie, port: k, path: be },
4526
4532
  schema: a.config.filterSchema
4527
4533
  };
4528
- }), { fetcher: S, fetcherState: T } = ds(a.config, p.value), R = () => {
4529
- w.value = "";
4534
+ }), { fetcher: C, fetcherState: T } = ds(a.config, p.value), R = () => {
4535
+ b.value = "";
4530
4536
  }, K = () => {
4531
4537
  s.value++;
4532
- }, c = V(null), b = A(() => ({
4538
+ }, c = V(null), w = A(() => ({
4533
4539
  ctaPath: a.config.createRoute,
4534
4540
  ctaText: Fe.value ? r("actions.create") : void 0,
4535
4541
  message: `${r("gateway_services.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
4536
4542
  title: Fe.value ? r("gateway_services.list.empty_state.title") : r("gateway_services.title")
4537
- })), k = V(!1), v = V(null), L = A(() => {
4538
- const m = {
4543
+ })), S = V(!1), v = V(null), q = A(() => {
4544
+ const g = {
4539
4545
  action: "disable",
4540
4546
  id: "",
4541
4547
  name: ""
4542
4548
  };
4543
4549
  if (v.value) {
4544
4550
  const { enabled: O, id: D, name: Z } = v.value;
4545
- m.action = O ? "disable" : "enable", m.id = D, m.name = Z || D;
4551
+ g.action = O ? "disable" : "enable", g.id = D, g.name = Z || D;
4546
4552
  }
4547
- return m;
4548
- }), B = (m) => {
4549
- k.value = !0, v.value = m;
4553
+ return g;
4554
+ }), B = (g) => {
4555
+ S.value = !0, v.value = g;
4550
4556
  }, j = () => {
4551
- k.value = !1, v.value = null;
4557
+ S.value = !1, v.value = null;
4552
4558
  }, J = async () => {
4553
4559
  var Z, ie;
4554
4560
  if (!await ((Z = a.canEdit) == null ? void 0 : Z.call(a, v.value)) || !v.value)
4555
4561
  return;
4556
- const O = `${C.value.href}/${v.value.id}`, D = !v.value.enabled;
4562
+ const O = `${_.value.href}/${v.value.id}`, D = !v.value.enabled;
4557
4563
  try {
4558
- const { data: _ } = ((ie = a.config) == null ? void 0 : ie.app) === "konnect" ? await o.put(O, { ...v.value, enabled: D }) : await o.patch(O, { ...v.value, enabled: D });
4559
- t("toggle:success", _);
4560
- } catch (_) {
4561
- t("error", _);
4564
+ const { data: k } = ((ie = a.config) == null ? void 0 : ie.app) === "konnect" ? await o.put(O, { ...v.value, enabled: D }) : await o.patch(O, { ...v.value, enabled: D });
4565
+ t("toggle:success", k);
4566
+ } catch (k) {
4567
+ t("error", k);
4562
4568
  }
4563
4569
  v.value.enabled = D;
4564
- }, q = (m) => {
4565
- a.config.getControlPlaneRoute && n.push(a.config.getControlPlaneRoute(m));
4566
- }, N = (m, O) => {
4567
- const D = m.id;
4570
+ }, L = (g) => {
4571
+ a.config.getControlPlaneRoute && n.push(a.config.getControlPlaneRoute(g));
4572
+ }, N = (g, O) => {
4573
+ const D = g.id;
4568
4574
  if (!O(D)) {
4569
4575
  t("copy:error", {
4570
- entity: m,
4576
+ entity: g,
4571
4577
  field: "id",
4572
4578
  message: r("errors.copy")
4573
4579
  });
4574
4580
  return;
4575
4581
  }
4576
4582
  t("copy:success", {
4577
- entity: m,
4583
+ entity: g,
4578
4584
  field: "id",
4579
4585
  message: r("copy.success", { val: D })
4580
4586
  });
4581
- }, G = (m, O) => {
4582
- const D = JSON.stringify(m);
4587
+ }, G = (g, O) => {
4588
+ const D = JSON.stringify(g);
4583
4589
  if (!O(D)) {
4584
4590
  t("copy:error", {
4585
- entity: m,
4591
+ entity: g,
4586
4592
  message: r("errors.copy")
4587
4593
  });
4588
4594
  return;
4589
4595
  }
4590
4596
  t("copy:success", {
4591
- entity: m,
4597
+ entity: g,
4592
4598
  message: r("copy.success_brief")
4593
4599
  });
4594
- }, Q = async (m) => {
4600
+ }, Q = async (g) => {
4595
4601
  var D;
4596
- await ((D = a.canRetrieve) == null ? void 0 : D.call(a, m)) && n.push(a.config.getViewRoute(m.id));
4597
- }, de = (m) => ({
4602
+ await ((D = a.canRetrieve) == null ? void 0 : D.call(a, g)) && n.push(a.config.getViewRoute(g.id));
4603
+ }, de = (g) => ({
4598
4604
  label: r("actions.view"),
4599
- to: a.config.getViewRoute(m)
4600
- }), pe = (m) => ({
4605
+ to: a.config.getViewRoute(g)
4606
+ }), pe = (g) => ({
4601
4607
  label: r("actions.edit"),
4602
- to: a.config.getEditRoute(m)
4603
- }), ae = V(void 0), Te = V(!1), Be = V(!1), Re = V(""), dt = cs(a.config, p.value), De = (m) => {
4604
- ae.value = m, Te.value = !0;
4608
+ to: a.config.getEditRoute(g)
4609
+ }), ae = V(void 0), Te = V(!1), Be = V(!1), Re = V(""), dt = cs(a.config, p.value), De = (g) => {
4610
+ ae.value = g, Te.value = !0;
4605
4611
  }, Xe = () => {
4606
4612
  Te.value = !1, ae.value = void 0;
4607
4613
  }, je = async () => {
4608
- var m, O, D;
4609
- if ((m = ae.value) != null && m.id) {
4614
+ var g, O, D;
4615
+ if ((g = ae.value) != null && g.id) {
4610
4616
  Be.value = !0;
4611
4617
  try {
4612
4618
  await o.delete(dt(ae.value.id)), t("delete:success", ae.value), Xe(), s.value++;
@@ -4617,12 +4623,12 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4617
4623
  }
4618
4624
  }
4619
4625
  }, Ee = V(!0);
4620
- we(T, (m) => {
4626
+ we(T, (g) => {
4621
4627
  var O, D, Z, ie;
4622
- if (Array.isArray((O = m == null ? void 0 : m.response) == null ? void 0 : O.data) && (Ee.value = m.response.data.length > 0), m.status === $e.Error) {
4628
+ if (Array.isArray((O = g == null ? void 0 : g.response) == null ? void 0 : O.data) && (Ee.value = g.response.data.length > 0), g.status === $e.Error) {
4623
4629
  c.value = {
4624
4630
  title: r("errors.general")
4625
- }, (ie = (Z = (D = m.error) == null ? void 0 : D.response) == null ? void 0 : Z.data) != null && ie.message && (c.value.message = m.error.response.data.message), t("error", m.error);
4631
+ }, (ie = (Z = (D = g.error) == null ? void 0 : D.response) == null ? void 0 : Z.data) != null && ie.message && (c.value.message = g.error.response.data.message), t("error", g.error);
4626
4632
  return;
4627
4633
  }
4628
4634
  c.value = null;
@@ -4630,32 +4636,32 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4630
4636
  const Fe = V(!1);
4631
4637
  return kt(async () => {
4632
4638
  Fe.value = await a.canCreate();
4633
- }), (m, O) => {
4634
- const D = U("KButton"), Z = U("KBadge"), ie = U("KInputSwitch"), _ = U("KTruncate"), be = U("KDropdownItem"), P = U("KClipboardProvider");
4635
- return h(), $("div", ms, [
4636
- x(f(Nl), {
4639
+ }), (g, O) => {
4640
+ const D = U("KButton"), Z = U("KBadge"), ie = U("KInputSwitch"), k = U("KTruncate"), be = U("KDropdownItem"), P = U("KClipboardProvider");
4641
+ return h(), $("div", gs, [
4642
+ I(f(Nl), {
4637
4643
  "cache-identifier": e.cacheIdentifier,
4638
4644
  "disable-pagination-page-jump": "",
4639
4645
  "disable-sorting": l.value,
4640
- "empty-state-options": b.value,
4646
+ "empty-state-options": w.value,
4641
4647
  "enable-entity-actions": "",
4642
4648
  "error-message": c.value,
4643
- fetcher: f(S),
4649
+ fetcher: f(C),
4644
4650
  "fetcher-cache-key": s.value,
4645
4651
  "pagination-type": "offset",
4646
4652
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
4647
- query: w.value,
4648
- "table-headers": f(g),
4653
+ query: b.value,
4654
+ "table-headers": f(m),
4649
4655
  "use-action-outside": e.useActionOutside,
4650
4656
  onClearSearchInput: R,
4651
4657
  "onClick:row": O[3] || (O[3] = (Y) => Q(Y)),
4652
4658
  onSort: K
4653
4659
  }, {
4654
4660
  "toolbar-filter": y(() => [
4655
- x(f(ts), {
4656
- modelValue: w.value,
4657
- "onUpdate:modelValue": O[0] || (O[0] = (Y) => w.value = Y),
4658
- config: I.value
4661
+ I(f(ts), {
4662
+ modelValue: b.value,
4663
+ "onUpdate:modelValue": O[0] || (O[0] = (Y) => b.value = Y),
4664
+ config: x.value
4659
4665
  }, null, 8, ["modelValue", "config"])
4660
4666
  ]),
4661
4667
  "toolbar-button": y(() => [
@@ -4663,11 +4669,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4663
4669
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4664
4670
  }, {
4665
4671
  default: y(() => [
4666
- x(f(He), {
4672
+ I(f(He), {
4667
4673
  "auth-function": () => e.canCreate()
4668
4674
  }, {
4669
4675
  default: y(() => [
4670
- ke(x(D, {
4676
+ ke(I(D, {
4671
4677
  appearance: "primary",
4672
4678
  "data-testid": "toolbar-add-gateway-service",
4673
4679
  icon: "plus",
@@ -4692,38 +4698,38 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4692
4698
  F("b", null, M(Y ?? "-"), 1)
4693
4699
  ]),
4694
4700
  control_plane: y(({ row: Y }) => {
4695
- var me;
4701
+ var ge;
4696
4702
  return [
4697
- (me = Y.x_meta) != null && me.cluster_id ? (h(), z(Z, {
4703
+ (ge = Y.x_meta) != null && ge.cluster_id ? (h(), z(Z, {
4698
4704
  key: 0,
4699
4705
  tooltip: Y.x_meta.cluster_id,
4700
4706
  "truncation-tooltip": "",
4701
- onClick: Le((ze) => q(Y.x_meta.cluster_id), ["stop"])
4707
+ onClick: qe((ze) => L(Y.x_meta.cluster_id), ["stop"])
4702
4708
  }, {
4703
4709
  default: y(() => [
4704
4710
  W(M(Y.x_meta.cluster_id), 1)
4705
4711
  ]),
4706
4712
  _: 2
4707
- }, 1032, ["tooltip", "onClick"])) : (h(), $("b", gs, "-"))
4713
+ }, 1032, ["tooltip", "onClick"])) : (h(), $("b", ms, "-"))
4708
4714
  ];
4709
4715
  }),
4710
4716
  enabled: y(({ row: Y }) => [
4711
- x(f(He), {
4717
+ I(f(He), {
4712
4718
  "auth-function": () => e.canEdit(Y),
4713
4719
  "force-show": ""
4714
4720
  }, {
4715
- default: y(({ isAllowed: me }) => [
4721
+ default: y(({ isAllowed: ge }) => [
4716
4722
  F("div", {
4717
- onClick: O[1] || (O[1] = Le(() => {
4723
+ onClick: O[1] || (O[1] = qe(() => {
4718
4724
  }, ["stop"]))
4719
4725
  }, [
4720
- x(ie, {
4726
+ I(ie, {
4721
4727
  modelValue: Y.enabled,
4722
4728
  "onUpdate:modelValue": (ze) => Y.enabled = ze,
4723
4729
  "data-testid": `row-${Y.id}-toggle-input`,
4724
- disabled: !me,
4730
+ disabled: !ge,
4725
4731
  label: Y.enabled ? f(r)("actions.enable.enabled_label") : f(r)("actions.enable.disabled_label"),
4726
- onClick: Le((ze) => B(Y), ["prevent"])
4732
+ onClick: qe((ze) => B(Y), ["prevent"])
4727
4733
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "label", "onClick"])
4728
4734
  ])
4729
4735
  ]),
@@ -4731,15 +4737,15 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4731
4737
  }, 1032, ["auth-function"])
4732
4738
  ]),
4733
4739
  tags: y(({ rowValue: Y }) => [
4734
- (Y == null ? void 0 : Y.length) > 0 ? (h(), z(_, { key: 0 }, {
4740
+ (Y == null ? void 0 : Y.length) > 0 ? (h(), z(k, { key: 0 }, {
4735
4741
  default: y(() => [
4736
- (h(!0), $(ve, null, ge(Y, (me) => (h(), z(Z, {
4737
- key: me,
4738
- onClick: O[2] || (O[2] = Le(() => {
4742
+ (h(!0), $(ve, null, me(Y, (ge) => (h(), z(Z, {
4743
+ key: ge,
4744
+ onClick: O[2] || (O[2] = qe(() => {
4739
4745
  }, ["stop"]))
4740
4746
  }, {
4741
4747
  default: y(() => [
4742
- W(M(me), 1)
4748
+ W(M(ge), 1)
4743
4749
  ]),
4744
4750
  _: 2
4745
4751
  }, 1024))), 128))
@@ -4748,11 +4754,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4748
4754
  }, 1024)) : (h(), $("span", ys, "-"))
4749
4755
  ]),
4750
4756
  actions: y(({ row: Y }) => [
4751
- x(P, null, {
4752
- default: y(({ copyToClipboard: me }) => [
4753
- x(be, {
4757
+ I(P, null, {
4758
+ default: y(({ copyToClipboard: ge }) => [
4759
+ I(be, {
4754
4760
  "data-testid": "action-entity-copy-id",
4755
- onClick: (ze) => N(Y, me)
4761
+ onClick: (ze) => N(Y, ge)
4756
4762
  }, {
4757
4763
  default: y(() => [
4758
4764
  W(M(f(r)("actions.copy_id")), 1)
@@ -4762,11 +4768,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4762
4768
  ]),
4763
4769
  _: 2
4764
4770
  }, 1024),
4765
- x(P, null, {
4766
- default: y(({ copyToClipboard: me }) => [
4767
- x(be, {
4771
+ I(P, null, {
4772
+ default: y(({ copyToClipboard: ge }) => [
4773
+ I(be, {
4768
4774
  "data-testid": "action-entity-copy-json",
4769
- onClick: (ze) => G(Y, me)
4775
+ onClick: (ze) => G(Y, ge)
4770
4776
  }, {
4771
4777
  default: y(() => [
4772
4778
  W(M(f(r)("actions.copy_json")), 1)
@@ -4776,11 +4782,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4776
4782
  ]),
4777
4783
  _: 2
4778
4784
  }, 1024),
4779
- x(f(He), {
4785
+ I(f(He), {
4780
4786
  "auth-function": () => e.canRetrieve(Y)
4781
4787
  }, {
4782
4788
  default: y(() => [
4783
- x(be, {
4789
+ I(be, {
4784
4790
  "data-testid": "action-entity-view",
4785
4791
  "has-divider": "",
4786
4792
  item: de(Y.id)
@@ -4788,26 +4794,26 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4788
4794
  ]),
4789
4795
  _: 2
4790
4796
  }, 1032, ["auth-function"]),
4791
- x(f(He), {
4797
+ I(f(He), {
4792
4798
  "auth-function": () => e.canEdit(Y)
4793
4799
  }, {
4794
4800
  default: y(() => [
4795
- x(be, {
4801
+ I(be, {
4796
4802
  "data-testid": "action-entity-edit",
4797
4803
  item: pe(Y.id)
4798
4804
  }, null, 8, ["item"])
4799
4805
  ]),
4800
4806
  _: 2
4801
4807
  }, 1032, ["auth-function"]),
4802
- x(f(He), {
4808
+ I(f(He), {
4803
4809
  "auth-function": () => e.canDelete(Y)
4804
4810
  }, {
4805
4811
  default: y(() => [
4806
- x(be, {
4812
+ I(be, {
4807
4813
  danger: "",
4808
4814
  "data-testid": "action-entity-delete",
4809
4815
  "has-divider": "",
4810
- onClick: (me) => De(Y)
4816
+ onClick: (ge) => De(Y)
4811
4817
  }, {
4812
4818
  default: y(() => [
4813
4819
  W(M(f(r)("actions.delete.menu_label")), 1)
@@ -4820,17 +4826,17 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4820
4826
  ]),
4821
4827
  _: 1
4822
4828
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
4823
- x(f(is), {
4824
- action: L.value.action,
4825
- "entity-id": L.value.id,
4826
- "entity-name": L.value.name,
4829
+ I(f(is), {
4830
+ action: q.value.action,
4831
+ "entity-id": q.value.id,
4832
+ "entity-name": q.value.name,
4827
4833
  "entity-type": f(r)("glossary.gateway_services"),
4828
4834
  "on-confirm": J,
4829
- visible: k.value,
4835
+ visible: S.value,
4830
4836
  onCancel: j,
4831
4837
  onProceed: j
4832
4838
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
4833
- x(f(Kl), {
4839
+ I(f(Kl), {
4834
4840
  "action-pending": Be.value,
4835
4841
  description: f(r)("actions.delete.description"),
4836
4842
  "entity-name": ae.value && (ae.value.name || ae.value.id),
@@ -4855,7 +4861,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4855
4861
  }, Cs = {
4856
4862
  key: 1,
4857
4863
  class: "gateway-service-form-group-fields"
4858
- }, Ss = { key: 0 }, xs = { class: "gateway-service-form-margin-top" }, As = { class: "gateway-service-form-margin-bottom" }, Is = { class: "gateway-service-form-margin-bottom" }, Ts = { class: "gateway-service-form-margin-bottom" }, js = { class: "gateway-service-form-margin-bottom" }, $s = {
4864
+ }, Ss = { key: 0 }, Is = { class: "gateway-service-form-margin-top" }, xs = { class: "gateway-service-form-margin-bottom" }, As = { class: "gateway-service-form-margin-bottom" }, Ts = { class: "gateway-service-form-margin-bottom" }, js = { class: "gateway-service-form-margin-bottom" }, $s = {
4859
4865
  key: 0,
4860
4866
  class: "gateway-service-form-margin-bottom"
4861
4867
  }, Ms = {
@@ -4895,9 +4901,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4895
4901
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
4896
4902
  setup(e, { expose: i, emit: t }) {
4897
4903
  var Fe;
4898
- const a = t, r = e, n = V(!0), o = St(), { i18nT: s, i18n: { t: l } } = et.useI18n(), { getMessageFromError: u } = us(), { axiosInstance: g } = ar({
4904
+ const a = t, r = e, n = V(!0), o = St(), { i18nT: s, i18n: { t: l } } = et.useI18n(), { getMessageFromError: d } = us(), { axiosInstance: m } = ar({
4899
4905
  headers: (Fe = r.config) == null ? void 0 : Fe.requestHeaders
4900
- }), p = A(() => Ge.form[r.config.app].edit), C = A(() => r.gatewayServiceId ? yt.Edit : yt.Create), w = V(!1), I = A(() => !!r.gatewayServiceId), S = V(I.value ? "protocol" : "url"), T = et.usePortFromProtocol(), R = V(""), K = A(() => !!R.value), c = Et({
4906
+ }), p = A(() => Ge.form[r.config.app].edit), _ = A(() => r.gatewayServiceId ? yt.Edit : yt.Create), b = V(!1), x = A(() => !!r.gatewayServiceId), C = V(x.value ? "protocol" : "url"), T = et.usePortFromProtocol(), R = V(""), K = A(() => !!R.value), c = Et({
4901
4907
  fields: {
4902
4908
  name: "",
4903
4909
  protocol: "http",
@@ -4917,7 +4923,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4917
4923
  },
4918
4924
  isReadonly: !1,
4919
4925
  errorMessage: ""
4920
- }), b = Et({
4926
+ }), w = Et({
4921
4927
  name: "",
4922
4928
  protocol: "http",
4923
4929
  host: "",
@@ -4933,7 +4939,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4933
4939
  tls_verify_enabled: !1,
4934
4940
  tls_verify_value: !1,
4935
4941
  tags: ""
4936
- }), k = r.config.app === "konnect" || fs({
4942
+ }), S = r.config.app === "konnect" || fs({
4937
4943
  gatewayInfo: r.config.gatewayInfo,
4938
4944
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
4939
4945
  supportedRange: {
@@ -4975,7 +4981,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4975
4981
  value: "grpcs",
4976
4982
  group: "grpc"
4977
4983
  },
4978
- ...k ? [
4984
+ ...S ? [
4979
4985
  {
4980
4986
  label: l("gateway_services.form.fields.protocol.options.ws"),
4981
4987
  value: "ws",
@@ -4992,60 +4998,60 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
4992
4998
  value: "udp",
4993
4999
  group: "udp"
4994
5000
  }
4995
- ], L = { url: "url", protocol: "protocol" }, B = (d, m) => {
4996
- m.value;
4997
- }, j = (d) => d ? parseFloat(d) : 0, J = () => {
4998
- n.value = !0, c.errorMessage = "", c.fields.host = b.host, c.fields.path = b.path, c.fields.port = b.port, c.fields.protocol = b.protocol, c.fields.url = b.url, c.fields.retries = b.retries, c.fields.connect_timeout = b.connect_timeout, c.fields.write_timeout = b.write_timeout, c.fields.read_timeout = b.read_timeout, c.fields.client_certificate = b.client_certificate, c.fields.ca_certificates = b.ca_certificates, c.fields.tls_verify_enabled = b.tls_verify_enabled, c.fields.tls_verify_value = b.tls_verify_value;
4999
- }, q = () => {
5000
- if (c.fields.url && S.value === "url")
5001
+ ], q = { url: "url", protocol: "protocol" }, B = (u, g) => {
5002
+ g.value;
5003
+ }, j = (u) => u ? parseFloat(u) : 0, J = () => {
5004
+ n.value = !0, c.errorMessage = "", c.fields.host = w.host, c.fields.path = w.path, c.fields.port = w.port, c.fields.protocol = w.protocol, c.fields.url = w.url, c.fields.retries = w.retries, c.fields.connect_timeout = w.connect_timeout, c.fields.write_timeout = w.write_timeout, c.fields.read_timeout = w.read_timeout, c.fields.client_certificate = w.client_certificate, c.fields.ca_certificates = w.ca_certificates, c.fields.tls_verify_enabled = w.tls_verify_enabled, c.fields.tls_verify_value = w.tls_verify_value;
5005
+ }, L = () => {
5006
+ if (c.fields.url && C.value === "url")
5001
5007
  try {
5002
- const d = new URL(c.fields.url);
5003
- c.errorMessage = "", c.fields.protocol = d.protocol.slice(0, -1), c.fields.host = d.hostname, c.fields.path = d.pathname;
5004
- const m = Number(d.port);
5005
- w.value = !!m, c.fields.port = m || T.getPortFromProtocol(c.fields.protocol), c.errorMessage = "", a("url-valid:success");
5006
- } catch (d) {
5007
- c.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", u(d));
5008
+ const u = new URL(c.fields.url);
5009
+ c.errorMessage = "", c.fields.protocol = u.protocol.slice(0, -1), c.fields.host = u.hostname, c.fields.path = u.pathname;
5010
+ const g = Number(u.port);
5011
+ b.value = !!g, c.fields.port = g || T.getPortFromProtocol(c.fields.protocol), c.errorMessage = "", a("url-valid:success");
5012
+ } catch (u) {
5013
+ c.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", d(u));
5008
5014
  }
5009
5015
  else
5010
5016
  a("url-valid:success"), c.errorMessage = "";
5011
5017
  }, N = A(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(c.fields.protocol)), G = A(() => {
5012
- if (S.value === "url")
5018
+ if (C.value === "url")
5013
5019
  return !0;
5014
- const d = ["https", "wss", "tls"].includes(c.fields.protocol);
5015
- return S.value === "protocol" && d;
5020
+ const u = ["https", "wss", "tls"].includes(c.fields.protocol);
5021
+ return C.value === "protocol" && u;
5016
5022
  }), Q = A(() => {
5017
- if (S.value === "url")
5023
+ if (C.value === "url")
5018
5024
  return !0;
5019
- const d = ["https", "tls"].includes(c.fields.protocol);
5020
- return S.value === "protocol" && d;
5025
+ const u = ["https", "tls"].includes(c.fields.protocol);
5026
+ return C.value === "protocol" && u;
5021
5027
  }), de = A(() => {
5022
- if (S.value === "url")
5028
+ if (C.value === "url")
5023
5029
  return !0;
5024
- const d = ["https", "wss", "tls"].includes(c.fields.protocol);
5025
- return S.value === "protocol" && d;
5026
- }), pe = (d) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(d) ? "" : l("errors.validationNameError"), ae = (d) => {
5027
- R.value = pe(d);
5028
- }, Te = A(() => I.value && JSON.stringify(c.fields) !== JSON.stringify(b) || S.value === "url" && !!c.fields.url || S.value === "protocol" && !!c.fields.host), Be = (d) => {
5029
- var m, O, D;
5030
- c.fields.name = (d == null ? void 0 : d.name) || "", c.fields.tags = ((m = d == null ? void 0 : d.tags) == null ? void 0 : m.join(",")) || "", c.fields.protocol = (d == null ? void 0 : d.protocol) || "http", c.fields.path = (d == null ? void 0 : d.path) || "", c.fields.read_timeout = d != null && d.read_timeout || (d == null ? void 0 : d.read_timeout) === 0 ? d == null ? void 0 : d.read_timeout : 6e4, c.fields.retries = d != null && d.retries || (d == null ? void 0 : d.retries) === 0 ? d == null ? void 0 : d.retries : 5, c.fields.host = (d == null ? void 0 : d.host) || "", c.fields.connect_timeout = d != null && d.connect_timeout || (d == null ? void 0 : d.connect_timeout) === 0 ? d == null ? void 0 : d.connect_timeout : 6e4, c.fields.tls_verify_enabled = (d == null ? void 0 : d.tls_verify) !== "" && (d == null ? void 0 : d.tls_verify) !== null && (d == null ? void 0 : d.tls_verify) !== void 0, c.fields.tls_verify_value = d != null && d.tls_verify ? d == null ? void 0 : d.tls_verify : !1, c.fields.ca_certificates = ((O = d == null ? void 0 : d.ca_certificates) == null ? void 0 : O.join(",")) || "", c.fields.client_certificate = ((D = d == null ? void 0 : d.client_certificate) == null ? void 0 : D.id) || "", c.fields.write_timeout = d != null && d.write_timeout || (d == null ? void 0 : d.write_timeout) === 0 ? d == null ? void 0 : d.write_timeout : 6e4, c.fields.port = d != null && d.port || (d == null ? void 0 : d.port) === 0 ? d == null ? void 0 : d.port : 80, Object.assign(b, c.fields);
5030
+ const u = ["https", "wss", "tls"].includes(c.fields.protocol);
5031
+ return C.value === "protocol" && u;
5032
+ }), pe = (u) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(u) ? "" : l("errors.validationNameError"), ae = (u) => {
5033
+ R.value = pe(u);
5034
+ }, Te = A(() => x.value && JSON.stringify(c.fields) !== JSON.stringify(w) || C.value === "url" && !!c.fields.url || C.value === "protocol" && !!c.fields.host), Be = (u) => {
5035
+ var g, O, D;
5036
+ c.fields.name = (u == null ? void 0 : u.name) || "", c.fields.tags = ((g = u == null ? void 0 : u.tags) == null ? void 0 : g.join(",")) || "", c.fields.protocol = (u == null ? void 0 : u.protocol) || "http", c.fields.path = (u == null ? void 0 : u.path) || "", c.fields.read_timeout = u != null && u.read_timeout || (u == null ? void 0 : u.read_timeout) === 0 ? u == null ? void 0 : u.read_timeout : 6e4, c.fields.retries = u != null && u.retries || (u == null ? void 0 : u.retries) === 0 ? u == null ? void 0 : u.retries : 5, c.fields.host = (u == null ? void 0 : u.host) || "", c.fields.connect_timeout = u != null && u.connect_timeout || (u == null ? void 0 : u.connect_timeout) === 0 ? u == null ? void 0 : u.connect_timeout : 6e4, c.fields.tls_verify_enabled = (u == null ? void 0 : u.tls_verify) !== "" && (u == null ? void 0 : u.tls_verify) !== null && (u == null ? void 0 : u.tls_verify) !== void 0, c.fields.tls_verify_value = u != null && u.tls_verify ? u == null ? void 0 : u.tls_verify : !1, c.fields.ca_certificates = ((O = u == null ? void 0 : u.ca_certificates) == null ? void 0 : O.join(",")) || "", c.fields.client_certificate = ((D = u == null ? void 0 : u.client_certificate) == null ? void 0 : D.id) || "", c.fields.write_timeout = u != null && u.write_timeout || (u == null ? void 0 : u.write_timeout) === 0 ? u == null ? void 0 : u.write_timeout : 6e4, c.fields.port = u != null && u.port || (u == null ? void 0 : u.port) === 0 ? u == null ? void 0 : u.port : 80, Object.assign(w, c.fields);
5031
5037
  }, Re = () => {
5032
5038
  o.push(r.config.cancelRoute);
5033
5039
  }, dt = A(() => {
5034
- var m, O;
5035
- let d = `${r.config.apiBaseUrl}${Ge.form[r.config.app].validate}`;
5036
- return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((m = r.config) == null ? void 0 : m.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
5040
+ var g, O;
5041
+ let u = `${r.config.apiBaseUrl}${Ge.form[r.config.app].validate}`;
5042
+ return r.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), u = u.replace(/{id}/gi, r.gatewayServiceId), u;
5037
5043
  }), De = A(() => {
5038
- var m, O;
5039
- let d = `${r.config.apiBaseUrl}${Ge.form[r.config.app][C.value]}`;
5040
- return r.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, ((m = r.config) == null ? void 0 : m.controlPlaneId) || "") : r.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), d = d.replace(/{id}/gi, r.gatewayServiceId), d;
5041
- }), Xe = (d) => {
5042
- let m = "";
5043
- d.url && (m = new URL(d.url).protocol), (["https", "wss", "tls"].includes(d.protocol) || ["https", "wss", "tls"].includes(m)) && (d.tls_verify = d.tls_verify_enabled ? d.tls_verify_value : null), delete d.tls_verify_enabled, delete d.tls_verify_value;
5044
+ var g, O;
5045
+ let u = `${r.config.apiBaseUrl}${Ge.form[r.config.app][_.value]}`;
5046
+ return r.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), u = u.replace(/{id}/gi, r.gatewayServiceId), u;
5047
+ }), Xe = (u) => {
5048
+ let g = "";
5049
+ u.url && (g = new URL(u.url).protocol), (["https", "wss", "tls"].includes(u.protocol) || ["https", "wss", "tls"].includes(g)) && (u.tls_verify = u.tls_verify_enabled ? u.tls_verify_value : null), delete u.tls_verify_enabled, delete u.tls_verify_value;
5044
5050
  }, je = A(() => {
5045
- var m, O;
5046
- const d = {
5051
+ var g, O;
5052
+ const u = {
5047
5053
  name: c.fields.name || null,
5048
- tags: c.fields.tags ? (m = c.fields.tags) == null ? void 0 : m.split(",").filter((D) => D !== "") : null,
5054
+ tags: c.fields.tags ? (g = c.fields.tags) == null ? void 0 : g.split(",").filter((D) => D !== "") : null,
5049
5055
  protocol: c.fields.protocol,
5050
5056
  path: c.fields.path || null,
5051
5057
  read_timeout: c.fields.read_timeout,
@@ -5060,40 +5066,40 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5060
5066
  port: c.fields.port,
5061
5067
  url: c.fields.url
5062
5068
  };
5063
- return c.fields.client_certificate && ["https", "wss", "tls"].includes(c.fields.protocol) && (d.client_certificate = { id: c.fields.client_certificate }), c.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(c.fields.protocol) && (d.tls_verify = c.fields.tls_verify_value), N.value || (d.path = null), C.value === "create" ? S.value === "url" ? (delete d.protocol, delete d.host, delete d.path, r.config.app === "konnect" && delete d.port) : delete d.url : C.value === "edit" && delete d.url, d;
5069
+ return c.fields.client_certificate && ["https", "wss", "tls"].includes(c.fields.protocol) && (u.client_certificate = { id: c.fields.client_certificate }), c.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(c.fields.protocol) && (u.tls_verify = c.fields.tls_verify_value), N.value || (u.path = null), _.value === "create" ? C.value === "url" ? (delete u.protocol, delete u.host, delete u.path, r.config.app === "konnect" && delete u.port) : delete u.url : _.value === "edit" && delete u.url, u;
5064
5070
  }), Ee = async () => {
5065
- var d, m, O, D;
5071
+ var u, g, O, D;
5066
5072
  try {
5067
- c.isReadonly = !0, q();
5073
+ c.isReadonly = !0, L();
5068
5074
  const Z = je.value;
5069
5075
  Xe(Z);
5070
5076
  let ie;
5071
- if (await g.post(dt.value, Z), C.value === "create" ? ie = await g.post(De.value, Z) : C.value === "edit" && (ie = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await g.put(De.value, Z) : await g.patch(De.value, Z)), ie) {
5072
- const { data: _ } = ie;
5073
- c.fields.name = (_ == null ? void 0 : _.name) || "", c.fields.port = _.port || T.getPortFromProtocol(_.protocol), c.fields.protocol = (_ == null ? void 0 : _.protocol) || "http", c.fields.host = (_ == null ? void 0 : _.host) || "", c.fields.path = (_ == null ? void 0 : _.path) || "", c.fields.url = (_ == null ? void 0 : _.url) || "", c.fields.retries = _ != null && _.retries || (_ == null ? void 0 : _.retries) === 0 ? _ == null ? void 0 : _.retries : 5, c.fields.connect_timeout = _ != null && _.connect_timeout || (_ == null ? void 0 : _.connect_timeout) === 0 ? _ == null ? void 0 : _.connect_timeout : 6e4, c.fields.write_timeout = _ != null && _.write_timeout || (_ == null ? void 0 : _.write_timeout) === 0 ? _ == null ? void 0 : _.write_timeout : 6e4, c.fields.read_timeout = _ != null && _.read_timeout || (_ == null ? void 0 : _.read_timeout) === 0 ? _ == null ? void 0 : _.read_timeout : 6e4, c.fields.client_certificate = ((m = _ == null ? void 0 : _.client_certificate) == null ? void 0 : m.id) || "", c.fields.ca_certificates = (O = _ == null ? void 0 : _.ca_certificates) != null && O.length ? _ == null ? void 0 : _.ca_certificates.join(",") : "", c.fields.tls_verify_enabled = (_ == null ? void 0 : _.tls_verify) !== "" && (_ == null ? void 0 : _.tls_verify) !== null && (_ == null ? void 0 : _.tls_verify) !== void 0, c.fields.tls_verify_value = c.fields.tls_verify_enabled && (_ == null ? void 0 : _.tls_verify), c.fields.tags = (D = _ == null ? void 0 : _.tags) != null && D.length ? _ == null ? void 0 : _.tags.join(",") : "", Object.assign(b, c.fields), a("update", ie == null ? void 0 : ie.data);
5077
+ if (await m.post(dt.value, Z), _.value === "create" ? ie = await m.post(De.value, Z) : _.value === "edit" && (ie = ((u = r.config) == null ? void 0 : u.app) === "konnect" ? await m.put(De.value, Z) : await m.patch(De.value, Z)), ie) {
5078
+ const { data: k } = ie;
5079
+ c.fields.name = (k == null ? void 0 : k.name) || "", c.fields.port = k.port || T.getPortFromProtocol(k.protocol), c.fields.protocol = (k == null ? void 0 : k.protocol) || "http", c.fields.host = (k == null ? void 0 : k.host) || "", c.fields.path = (k == null ? void 0 : k.path) || "", c.fields.url = (k == null ? void 0 : k.url) || "", c.fields.retries = k != null && k.retries || (k == null ? void 0 : k.retries) === 0 ? k == null ? void 0 : k.retries : 5, c.fields.connect_timeout = k != null && k.connect_timeout || (k == null ? void 0 : k.connect_timeout) === 0 ? k == null ? void 0 : k.connect_timeout : 6e4, c.fields.write_timeout = k != null && k.write_timeout || (k == null ? void 0 : k.write_timeout) === 0 ? k == null ? void 0 : k.write_timeout : 6e4, c.fields.read_timeout = k != null && k.read_timeout || (k == null ? void 0 : k.read_timeout) === 0 ? k == null ? void 0 : k.read_timeout : 6e4, c.fields.client_certificate = ((g = k == null ? void 0 : k.client_certificate) == null ? void 0 : g.id) || "", c.fields.ca_certificates = (O = k == null ? void 0 : k.ca_certificates) != null && O.length ? k == null ? void 0 : k.ca_certificates.join(",") : "", c.fields.tls_verify_enabled = (k == null ? void 0 : k.tls_verify) !== "" && (k == null ? void 0 : k.tls_verify) !== null && (k == null ? void 0 : k.tls_verify) !== void 0, c.fields.tls_verify_value = c.fields.tls_verify_enabled && (k == null ? void 0 : k.tls_verify), c.fields.tags = (D = k == null ? void 0 : k.tags) != null && D.length ? k == null ? void 0 : k.tags.join(",") : "", Object.assign(w, c.fields), a("update", ie == null ? void 0 : ie.data);
5074
5080
  }
5075
5081
  return ie;
5076
5082
  } catch (Z) {
5077
- c.errorMessage = u(Z), a("error", Z);
5083
+ c.errorMessage = d(Z), a("error", Z);
5078
5084
  } finally {
5079
5085
  c.isReadonly = !1;
5080
5086
  }
5081
5087
  };
5082
5088
  return we(() => r.gatewayServiceId, () => {
5083
- Object.assign(c.fields, b);
5084
- }), we(c.fields, (d) => {
5085
- c.fields.port = T.getPortFromProtocol(d.protocol, String(d.port)), a("model-updated", je.value);
5089
+ Object.assign(c.fields, w);
5090
+ }), we(c.fields, (u) => {
5091
+ c.fields.port = T.getPortFromProtocol(u.protocol, String(u.port)), a("model-updated", je.value);
5086
5092
  }), oi(() => {
5087
5093
  a("model-updated", je.value);
5088
5094
  }), i({
5089
- validateUrl: q,
5095
+ validateUrl: L,
5090
5096
  getPayload: je,
5091
5097
  saveFormData: Ee,
5092
5098
  canSubmit: Te
5093
- }), (d, m) => {
5094
- const O = U("KInput"), D = U("KLabel"), Z = U("KRadio"), ie = U("KSelect"), _ = U("KCheckbox"), be = U("KCollapse");
5099
+ }), (u, g) => {
5100
+ const O = U("KInput"), D = U("KLabel"), Z = U("KRadio"), ie = U("KSelect"), k = U("KCheckbox"), be = U("KCollapse");
5095
5101
  return h(), $("div", hs, [
5096
- x(f(Il), {
5102
+ I(f(Al), {
5097
5103
  "can-submit": Te.value,
5098
5104
  config: e.config,
5099
5105
  "edit-id": e.gatewayServiceId,
@@ -5102,28 +5108,28 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5102
5108
  "form-fields": je.value,
5103
5109
  "is-readonly": c.isReadonly,
5104
5110
  onCancel: Re,
5105
- "onFetch:error": m[25] || (m[25] = (P) => d.$emit("error", P)),
5111
+ "onFetch:error": g[25] || (g[25] = (P) => u.$emit("error", P)),
5106
5112
  "onFetch:success": Be,
5107
- onLoading: m[26] || (m[26] = (P) => d.$emit("loading", P)),
5113
+ onLoading: g[26] || (g[26] = (P) => u.$emit("loading", P)),
5108
5114
  onSubmit: Ee
5109
5115
  }, {
5110
5116
  "form-actions": y(() => [
5111
- te(d.$slots, "form-actions", {
5117
+ te(u.$slots, "form-actions", {
5112
5118
  canSubmit: Te.value,
5113
5119
  cancel: Re,
5114
5120
  submit: Ee
5115
5121
  }, void 0, !0)
5116
5122
  ]),
5117
5123
  default: y(() => [
5118
- x(f(ri), {
5124
+ I(f(ri), {
5119
5125
  description: f(l)("gateway_services.form.sections.general.description"),
5120
5126
  "hide-info-header": e.hideSectionsInfo,
5121
5127
  title: f(l)("gateway_services.form.sections.general.title")
5122
5128
  }, {
5123
5129
  default: y(() => [
5124
- x(O, {
5130
+ I(O, {
5125
5131
  modelValue: c.fields.name,
5126
- "onUpdate:modelValue": m[0] || (m[0] = (P) => c.fields.name = P),
5132
+ "onUpdate:modelValue": g[0] || (g[0] = (P) => c.fields.name = P),
5127
5133
  modelModifiers: { trim: !0 },
5128
5134
  autocomplete: "off",
5129
5135
  "data-testid": "gateway-service-name-input",
@@ -5137,9 +5143,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5137
5143
  type: "text",
5138
5144
  onInput: ae
5139
5145
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
5140
- x(O, {
5146
+ I(O, {
5141
5147
  modelValue: c.fields.tags,
5142
- "onUpdate:modelValue": m[1] || (m[1] = (P) => c.fields.tags = P),
5148
+ "onUpdate:modelValue": g[1] || (g[1] = (P) => c.fields.tags = P),
5143
5149
  modelModifiers: { trim: !0 },
5144
5150
  autocomplete: "off",
5145
5151
  "data-testid": "gateway-service-tags-input",
@@ -5154,15 +5160,15 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5154
5160
  ]),
5155
5161
  _: 1
5156
5162
  }, 8, ["description", "hide-info-header", "title"]),
5157
- x(f(ri), {
5163
+ I(f(ri), {
5158
5164
  description: f(l)("gateway_services.form.sections.keys.description"),
5159
5165
  "hide-info-header": e.hideSectionsInfo,
5160
5166
  title: f(l)("gateway_services.form.sections.keys.title")
5161
5167
  }, {
5162
5168
  default: y(() => [
5163
- I.value ? H("", !0) : (h(), $("div", bs, [
5169
+ x.value ? H("", !0) : (h(), $("div", bs, [
5164
5170
  F("div", ws, [
5165
- x(D, { required: "" }, {
5171
+ I(D, { required: "" }, {
5166
5172
  default: y(() => [
5167
5173
  W(M(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
5168
5174
  ]),
@@ -5170,11 +5176,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5170
5176
  })
5171
5177
  ]),
5172
5178
  F("div", _s, [
5173
- x(Z, {
5174
- modelValue: S.value,
5175
- "onUpdate:modelValue": m[2] || (m[2] = (P) => S.value = P),
5179
+ I(Z, {
5180
+ modelValue: C.value,
5181
+ "onUpdate:modelValue": g[2] || (g[2] = (P) => C.value = P),
5176
5182
  "data-testid": "gateway-service-url-radio",
5177
- "selected-value": L.url,
5183
+ "selected-value": q.url,
5178
5184
  onChange: J
5179
5185
  }, {
5180
5186
  default: y(() => [
@@ -5183,10 +5189,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5183
5189
  _: 1
5184
5190
  }, 8, ["modelValue", "selected-value"])
5185
5191
  ]),
5186
- S.value === "url" ? (h(), $("div", ks, [
5187
- x(O, {
5192
+ C.value === "url" ? (h(), $("div", ks, [
5193
+ I(O, {
5188
5194
  modelValue: c.fields.url,
5189
- "onUpdate:modelValue": m[3] || (m[3] = (P) => c.fields.url = P),
5195
+ "onUpdate:modelValue": g[3] || (g[3] = (P) => c.fields.url = P),
5190
5196
  modelModifiers: { trim: !0 },
5191
5197
  class: "gateway-service-url-input gateway-service-form-margin-bottom",
5192
5198
  "data-testid": "gateway-service-url-input",
@@ -5199,12 +5205,12 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5199
5205
  required: ""
5200
5206
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
5201
5207
  ])) : H("", !0),
5202
- x(Z, {
5203
- modelValue: S.value,
5204
- "onUpdate:modelValue": m[4] || (m[4] = (P) => S.value = P),
5208
+ I(Z, {
5209
+ modelValue: C.value,
5210
+ "onUpdate:modelValue": g[4] || (g[4] = (P) => C.value = P),
5205
5211
  "checked-group": "protocol",
5206
5212
  "data-testid": "gateway-service-protocol-radio",
5207
- "selected-value": L.protocol,
5213
+ "selected-value": q.protocol,
5208
5214
  onChange: J
5209
5215
  }, {
5210
5216
  default: y(() => [
@@ -5213,10 +5219,10 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5213
5219
  _: 1
5214
5220
  }, 8, ["modelValue", "selected-value"])
5215
5221
  ])),
5216
- S.value === "protocol" || I.value ? (h(), $("div", Cs, [
5217
- x(ie, {
5222
+ C.value === "protocol" || x.value ? (h(), $("div", Cs, [
5223
+ I(ie, {
5218
5224
  modelValue: c.fields.protocol,
5219
- "onUpdate:modelValue": m[5] || (m[5] = (P) => c.fields.protocol = P),
5225
+ "onUpdate:modelValue": g[5] || (g[5] = (P) => c.fields.protocol = P),
5220
5226
  "data-testid": "gateway-service-protocol-select",
5221
5227
  items: v,
5222
5228
  label: f(l)("gateway_services.form.fields.protocol.label"),
@@ -5226,11 +5232,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5226
5232
  readonly: c.isReadonly,
5227
5233
  required: "",
5228
5234
  width: "100%",
5229
- onSelected: m[6] || (m[6] = (P) => B(c.fields.protocol, P))
5235
+ onSelected: g[6] || (g[6] = (P) => B(c.fields.protocol, P))
5230
5236
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
5231
- x(O, {
5237
+ I(O, {
5232
5238
  modelValue: c.fields.host,
5233
- "onUpdate:modelValue": m[7] || (m[7] = (P) => c.fields.host = P),
5239
+ "onUpdate:modelValue": g[7] || (g[7] = (P) => c.fields.host = P),
5234
5240
  modelModifiers: { trim: !0 },
5235
5241
  class: "gateway-service-form-margin-top",
5236
5242
  "data-testid": "gateway-service-host-input",
@@ -5243,9 +5249,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5243
5249
  required: ""
5244
5250
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
5245
5251
  N.value ? (h(), $("div", Ss, [
5246
- x(O, {
5252
+ I(O, {
5247
5253
  modelValue: c.fields.path,
5248
- "onUpdate:modelValue": m[8] || (m[8] = (P) => c.fields.path = P),
5254
+ "onUpdate:modelValue": g[8] || (g[8] = (P) => c.fields.path = P),
5249
5255
  modelModifiers: { trim: !0 },
5250
5256
  class: "gateway-service-form-margin-top",
5251
5257
  "data-testid": "gateway-service-path-input",
@@ -5257,11 +5263,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5257
5263
  placeholder: f(l)("gateway_services.form.fields.path.placeholder")
5258
5264
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
5259
5265
  ])) : H("", !0),
5260
- x(O, {
5266
+ I(O, {
5261
5267
  modelValue: c.fields.port,
5262
5268
  "onUpdate:modelValue": [
5263
- m[9] || (m[9] = (P) => c.fields.port = P),
5264
- m[10] || (m[10] = () => {
5269
+ g[9] || (g[9] = (P) => c.fields.port = P),
5270
+ g[10] || (g[10] = () => {
5265
5271
  c.fields.port = j(c.fields.port + "");
5266
5272
  })
5267
5273
  ],
@@ -5275,21 +5281,21 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5275
5281
  type: "number"
5276
5282
  }, null, 8, ["modelValue", "label", "label-attributes"])
5277
5283
  ])) : H("", !0),
5278
- x(be, {
5284
+ I(be, {
5279
5285
  modelValue: n.value,
5280
- "onUpdate:modelValue": m[24] || (m[24] = (P) => n.value = P),
5286
+ "onUpdate:modelValue": g[24] || (g[24] = (P) => n.value = P),
5281
5287
  "data-testid": "advanced-fields-collapse",
5282
5288
  "trigger-alignment": "leading",
5283
5289
  "trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
5284
5290
  }, {
5285
5291
  default: y(() => [
5286
- F("div", xs, [
5287
- F("div", As, [
5288
- x(O, {
5292
+ F("div", Is, [
5293
+ F("div", xs, [
5294
+ I(O, {
5289
5295
  modelValue: c.fields.retries,
5290
5296
  "onUpdate:modelValue": [
5291
- m[11] || (m[11] = (P) => c.fields.retries = P),
5292
- m[12] || (m[12] = () => {
5297
+ g[11] || (g[11] = (P) => c.fields.retries = P),
5298
+ g[12] || (g[12] = () => {
5293
5299
  c.fields.retries = j(c.fields.retries + "");
5294
5300
  })
5295
5301
  ],
@@ -5302,12 +5308,12 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5302
5308
  type: "number"
5303
5309
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5304
5310
  ]),
5305
- F("div", Is, [
5306
- x(O, {
5311
+ F("div", As, [
5312
+ I(O, {
5307
5313
  modelValue: c.fields.connect_timeout,
5308
5314
  "onUpdate:modelValue": [
5309
- m[13] || (m[13] = (P) => c.fields.connect_timeout = P),
5310
- m[14] || (m[14] = () => {
5315
+ g[13] || (g[13] = (P) => c.fields.connect_timeout = P),
5316
+ g[14] || (g[14] = () => {
5311
5317
  c.fields.connect_timeout = j(c.fields.connect_timeout + "");
5312
5318
  })
5313
5319
  ],
@@ -5321,11 +5327,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5321
5327
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5322
5328
  ]),
5323
5329
  F("div", Ts, [
5324
- x(O, {
5330
+ I(O, {
5325
5331
  modelValue: c.fields.write_timeout,
5326
5332
  "onUpdate:modelValue": [
5327
- m[15] || (m[15] = (P) => c.fields.write_timeout = P),
5328
- m[16] || (m[16] = () => {
5333
+ g[15] || (g[15] = (P) => c.fields.write_timeout = P),
5334
+ g[16] || (g[16] = () => {
5329
5335
  c.fields.write_timeout = j(c.fields.write_timeout + "");
5330
5336
  })
5331
5337
  ],
@@ -5339,11 +5345,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5339
5345
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5340
5346
  ]),
5341
5347
  F("div", js, [
5342
- x(O, {
5348
+ I(O, {
5343
5349
  modelValue: c.fields.read_timeout,
5344
5350
  "onUpdate:modelValue": [
5345
- m[17] || (m[17] = (P) => c.fields.read_timeout = P),
5346
- m[18] || (m[18] = () => {
5351
+ g[17] || (g[17] = (P) => c.fields.read_timeout = P),
5352
+ g[18] || (g[18] = () => {
5347
5353
  c.fields.read_timeout = j(c.fields.read_timeout + "");
5348
5354
  })
5349
5355
  ],
@@ -5357,9 +5363,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5357
5363
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5358
5364
  ]),
5359
5365
  G.value ? (h(), $("div", $s, [
5360
- x(O, {
5366
+ I(O, {
5361
5367
  modelValue: c.fields.client_certificate,
5362
- "onUpdate:modelValue": m[19] || (m[19] = (P) => c.fields.client_certificate = P),
5368
+ "onUpdate:modelValue": g[19] || (g[19] = (P) => c.fields.client_certificate = P),
5363
5369
  modelModifiers: { trim: !0 },
5364
5370
  autocomplete: "off",
5365
5371
  "data-testid": "gateway-service-clientCert-input",
@@ -5372,9 +5378,9 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5372
5378
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
5373
5379
  ])) : H("", !0),
5374
5380
  Q.value ? (h(), $("div", Ms, [
5375
- x(O, {
5381
+ I(O, {
5376
5382
  modelValue: c.fields.ca_certificates,
5377
- "onUpdate:modelValue": m[20] || (m[20] = (P) => c.fields.ca_certificates = P),
5383
+ "onUpdate:modelValue": g[20] || (g[20] = (P) => c.fields.ca_certificates = P),
5378
5384
  modelModifiers: { trim: !0 },
5379
5385
  autocomplete: "off",
5380
5386
  "data-testid": "gateway-service-ca-certs-input",
@@ -5384,7 +5390,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5384
5390
  type: "text"
5385
5391
  }, {
5386
5392
  "label-tooltip": y(() => [
5387
- x(f(s), {
5393
+ I(f(s), {
5388
5394
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
5389
5395
  scope: "global"
5390
5396
  }, {
@@ -5401,15 +5407,15 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5401
5407
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
5402
5408
  ])) : H("", !0),
5403
5409
  de.value ? (h(), $("div", Os, [
5404
- x(_, {
5410
+ I(k, {
5405
5411
  modelValue: c.fields.tls_verify_enabled,
5406
- "onUpdate:modelValue": m[21] || (m[21] = (P) => c.fields.tls_verify_enabled = P),
5412
+ "onUpdate:modelValue": g[21] || (g[21] = (P) => c.fields.tls_verify_enabled = P),
5407
5413
  "data-testid": "gateway-service-tls-verify-checkbox",
5408
5414
  description: f(l)("gateway_services.form.fields.tls_verify_enabled.help"),
5409
5415
  label: f(l)("gateway_services.form.fields.tls_verify_enabled.label")
5410
5416
  }, {
5411
5417
  tooltip: y(() => [
5412
- x(f(s), {
5418
+ I(f(s), {
5413
5419
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
5414
5420
  scope: "global"
5415
5421
  }, {
@@ -5422,18 +5428,18 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5422
5428
  _: 1
5423
5429
  }, 8, ["modelValue", "description", "label"]),
5424
5430
  c.fields.tls_verify_enabled ? (h(), $("div", Es, [
5425
- x(Z, {
5431
+ I(Z, {
5426
5432
  modelValue: c.fields.tls_verify_value,
5427
- "onUpdate:modelValue": m[22] || (m[22] = (P) => c.fields.tls_verify_value = P),
5433
+ "onUpdate:modelValue": g[22] || (g[22] = (P) => c.fields.tls_verify_value = P),
5428
5434
  "data-testid": "gateway-service-tls-verify-true-option",
5429
5435
  label: f(l)("gateway_services.form.fields.tls_verify_option.true.label"),
5430
5436
  "selected-value": !0
5431
5437
  }, null, 8, ["modelValue", "label"])
5432
5438
  ])) : H("", !0),
5433
5439
  c.fields.tls_verify_enabled ? (h(), $("div", Fs, [
5434
- x(Z, {
5440
+ I(Z, {
5435
5441
  modelValue: c.fields.tls_verify_value,
5436
- "onUpdate:modelValue": m[23] || (m[23] = (P) => c.fields.tls_verify_value = P),
5442
+ "onUpdate:modelValue": g[23] || (g[23] = (P) => c.fields.tls_verify_value = P),
5437
5443
  "data-testid": "gateway-service-tls-verify-false-option",
5438
5444
  label: f(l)("gateway_services.form.fields.tls_verify_option.false.label"),
5439
5445
  "selected-value": !1
@@ -5480,7 +5486,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5480
5486
  },
5481
5487
  emits: ["loading", "fetch:error", "fetch:success"],
5482
5488
  setup(e) {
5483
- const i = e, { i18n: { t }, i18nT: a } = et.useI18n(), r = A(() => Ge.form[i.config.app].edit), { getPropValue: n } = ps(), o = (l, u) => n(l, u) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), s = V({
5489
+ const i = e, { i18n: { t }, i18nT: a } = et.useI18n(), r = A(() => Ge.form[i.config.app].edit), { getPropValue: n } = ps(), o = (l, d) => n(l, d) === !0 ? t("gateway_services.form.fields.tls_verify_option.true.display") : t("gateway_services.form.fields.tls_verify_option.false.display"), s = V({
5484
5490
  id: {},
5485
5491
  name: {
5486
5492
  tooltip: t("gateway_services.form.fields.name.tooltip")
@@ -5540,19 +5546,19 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5540
5546
  hidden: !0
5541
5547
  }
5542
5548
  });
5543
- return (l, u) => (h(), $("div", Vs, [
5544
- x(f(Sl), {
5549
+ return (l, d) => (h(), $("div", Vs, [
5550
+ I(f(Sl), {
5545
5551
  config: e.config,
5546
5552
  "config-card-doc": e.configCardDoc,
5547
5553
  "config-schema": s.value,
5548
5554
  "fetch-url": r.value,
5549
5555
  "hide-title": e.hideTitle,
5550
- "onFetch:error": u[0] || (u[0] = (g) => l.$emit("fetch:error", g)),
5551
- "onFetch:success": u[1] || (u[1] = (g) => l.$emit("fetch:success", g)),
5552
- onLoading: u[2] || (u[2] = (g) => l.$emit("loading", g))
5556
+ "onFetch:error": d[0] || (d[0] = (m) => l.$emit("fetch:error", m)),
5557
+ "onFetch:success": d[1] || (d[1] = (m) => l.$emit("fetch:success", m)),
5558
+ onLoading: d[2] || (d[2] = (m) => l.$emit("loading", m))
5553
5559
  }, {
5554
5560
  "enabled-label-tooltip": y(() => [
5555
- x(f(a), {
5561
+ I(f(a), {
5556
5562
  keypath: "gateway_services.form.fields.enabled.tooltip",
5557
5563
  scope: "global"
5558
5564
  }, {
@@ -5566,7 +5572,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5566
5572
  })
5567
5573
  ]),
5568
5574
  "ca_certificates-label-tooltip": y(() => [
5569
- x(f(a), {
5575
+ I(f(a), {
5570
5576
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
5571
5577
  scope: "global"
5572
5578
  }, {
@@ -5580,7 +5586,7 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5580
5586
  })
5581
5587
  ]),
5582
5588
  "tls_verify-label-tooltip": y(() => [
5583
- x(f(a), {
5589
+ I(f(a), {
5584
5590
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
5585
5591
  scope: "global"
5586
5592
  }, {
@@ -5590,11 +5596,11 @@ const Rn = { class: "yaml-config" }, rr = /* @__PURE__ */ ee({
5590
5596
  _: 1
5591
5597
  })
5592
5598
  ]),
5593
- tls_verify: y((g) => [
5594
- W(M(typeof f(n)("rowValue", g) == "boolean" ? o("rowValue", g) : f(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
5599
+ tls_verify: y((m) => [
5600
+ W(M(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
5595
5601
  ]),
5596
- client_certificate: y((g) => [
5597
- W(M(f(n)("rowValue", g) ? f(n)("rowValue", g).id : "–"), 1)
5602
+ client_certificate: y((m) => [
5603
+ W(M(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
5598
5604
  ]),
5599
5605
  _: 1
5600
5606
  }, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])