@kong-ui-public/entities-gateway-services 2.4.1 → 2.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as re, ref as U, computed as T, resolveComponent as L, openBlock as v, createBlock as R, Teleport as lr, createVNode as C, withCtx as y, unref as f, createTextVNode as G, toDisplayString as $, createElementVNode as V, watch as ke, renderSlot as X, createCommentVNode as H, useSlots as rt, onBeforeMount as ht, createSlots as je, createElementBlock as j, renderList as he, Fragment as be, normalizeClass as Ie, withModifiers as Le, withDirectives as Re, vShow as De, useCssVars as ri, resolveDynamicComponent as $e, normalizeProps as sr, guardReactiveProps as cr, mergeProps as dt, onMounted as ai, onUnmounted as ur, normalizeStyle as oi, inject as dr, pushScopeId as ni, popScopeId as li, reactive as Mt } from "vue";
1
+ import { defineComponent as re, ref as U, computed as j, resolveComponent as L, openBlock as v, createBlock as P, Teleport as lr, createVNode as C, withCtx as y, unref as f, createTextVNode as J, toDisplayString as O, createElementVNode as N, watch as _e, renderSlot as Q, createCommentVNode as D, useSlots as rt, onBeforeMount as ht, createSlots as je, createElementBlock as M, renderList as ye, Fragment as ve, normalizeClass as Ie, withModifiers as qe, withDirectives as Re, vShow as De, useCssVars as ri, resolveDynamicComponent as $e, normalizeProps as sr, guardReactiveProps as cr, mergeProps as dt, onMounted as ai, onUnmounted as ur, normalizeStyle as oi, inject as dr, pushScopeId as ni, popScopeId as li, reactive as Mt } from "vue";
2
2
  import { useRouter as bt } from "vue-router";
3
3
  import { createI18n as wt, i18nTComponent as si } from "@kong-ui-public/i18n";
4
4
  import pr from "axios";
@@ -237,7 +237,7 @@ const Ze = {
237
237
  }
238
238
  }
239
239
  };
240
- var ci = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(ci || {}), pt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(pt || {}), Te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Te || {}), ie = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(ie || {}), me = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(me || {});
240
+ var ci = /* @__PURE__ */ ((e) => (e.GatewayService = "service", e.Route = "route", e.Consumer = "consumer", e.ConsumerGroup = "consumer group", e.Plugin = "plugin", e.Upstream = "upstream", e.Certificate = "certificate", e.CACertificate = "ca certificate", e.SNI = "SNI", e.Key = "key", e.KeySet = "key set", e.Vault = "vault", e.Application = "application", e.Developer = "developer", e.acls = "ACL Credential", e["basic-auth"] = "Basic Auth Credential", e["key-auth"] = "Key Auth Credential", e["key-auth-enc"] = "Key Auth Encrypted Credential", e.oauth2 = "OAuth 2.0 Credential", e["hmac-auth"] = "HMAC Credential", e.jwt = "JWT Credential", e.Target = "target", e.Policy = "policy", e))(ci || {}), pt = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(pt || {}), Te = /* @__PURE__ */ ((e) => (e[e.Loading = 0] = "Loading", e[e.Idle = 1] = "Idle", e[e.NoResults = 2] = "NoResults", e[e.Error = 3] = "Error", e))(Te || {}), te = /* @__PURE__ */ ((e) => (e.ID = "id", e.IdArray = "id-array", e.Text = "plain-text", e.Date = "date", e.Redacted = "redacted", e.RedactedArray = "redacted-array", e.Json = "json", e.JsonArray = "json-array", e.BadgeTag = "badge-tag", e.BadgeStatus = "badge-status", e.BadgeMethod = "badge-method", e.LinkInternal = "link-internal", e.LinkExternal = "link-external", e))(te || {}), pe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(pe || {});
241
241
  function _t(e = {}) {
242
242
  return {
243
243
  axiosInstance: pr.create({
@@ -460,11 +460,11 @@ function Nr(e, i, t, a = {
460
460
  const { axiosInstance: r } = _t({
461
461
  headers: e.requestHeaders
462
462
  }), { i18n: { t: n } } = kt(), { debounce: o } = Cr(), s = o(async (k) => {
463
- await c(k);
464
- }, 200), l = U(!1), d = U(""), m = U(""), p = U([]), _ = U([]), h = U(void 0), A = f(i);
465
- let b = `${e.apiBaseUrl}${A}`;
463
+ await u(k);
464
+ }, 200), l = U(!1), d = U(""), m = U(""), p = U([]), _ = U([]), h = U(void 0), x = f(i);
465
+ let b = `${e.apiBaseUrl}${x}`;
466
466
  e.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, (e == null ? void 0 : e.controlPlaneId) || "") : e.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, e != null && e.workspace ? `/${e.workspace}` : ""));
467
- const { isValidUuid: M } = ui(), S = async () => {
467
+ const { isValidUuid: $ } = ui(), S = async () => {
468
468
  try {
469
469
  l.value = !0;
470
470
  const { data: k } = await r.get(`${b}?size=${t}`);
@@ -474,50 +474,50 @@ function Nr(e, i, t, a = {
474
474
  } finally {
475
475
  l.value = !1;
476
476
  }
477
- }, x = U(""), c = async (k) => {
478
- var O, N, oe;
479
- if (x.value !== k)
480
- if (x.value = k || "", h.value === void 0)
477
+ }, T = U(""), u = async (k) => {
478
+ var E, q, oe;
479
+ if (T.value !== k)
480
+ if (T.value = k || "", h.value === void 0)
481
481
  try {
482
482
  if (l.value = !0, d.value = "", m.value = "", e.app === "konnect") {
483
- let D = b + "";
484
- k && (D += `/${k}`);
485
- const { data: I } = await r.get(`${D}?size=${t}`);
483
+ let R = b + "";
484
+ k && (R += `/${k}`);
485
+ const { data: I } = await r.get(`${R}?size=${t}`);
486
486
  a.fetchedItemsKey in I ? p.value = I[a.fetchedItemsKey] : I != null && I.id ? p.value = [I] : p.value = [];
487
487
  } else if (k) {
488
- const D = [];
489
- M(k) && a.searchKeys.includes("id") ? D.push((async () => {
488
+ const R = [];
489
+ $(k) && a.searchKeys.includes("id") ? R.push((async () => {
490
490
  const { data: K } = await r.get(`${b}/${k}`);
491
491
  return [K[a.fetchedItemsKey] ?? K];
492
- })()) : D.push(
492
+ })()) : R.push(
493
493
  ...a.searchKeys.filter((K) => K !== "id").map(async (K) => {
494
- const { data: P } = await r.get(`${b}?${K}=${k}`);
495
- return P[a.fetchedItemsKey];
494
+ const { data: B } = await r.get(`${b}?${K}=${k}`);
495
+ return B[a.fetchedItemsKey];
496
496
  })
497
497
  );
498
- const I = await Promise.all(D), z = /* @__PURE__ */ new Set();
499
- p.value = [], (O = I == null ? void 0 : I.forEach) == null || O.call(I, (K) => {
500
- var P;
501
- (P = K == null ? void 0 : K.forEach) == null || P.call(K, (J) => {
502
- z.has(J.id) || (z.add(J.id), p.value.push(J));
498
+ const I = await Promise.all(R), H = /* @__PURE__ */ new Set();
499
+ p.value = [], (E = I == null ? void 0 : I.forEach) == null || E.call(I, (K) => {
500
+ var B;
501
+ (B = K == null ? void 0 : K.forEach) == null || B.call(K, (z) => {
502
+ H.has(z.id) || (H.add(z.id), p.value.push(z));
503
503
  });
504
504
  });
505
505
  } else
506
506
  p.value = _.value;
507
- } catch (D) {
508
- ((N = D == null ? void 0 : D.response) == null ? void 0 : N.status) === 404 ? m.value = n("debouncedFilter.errors.invalid") : (p.value = [], d.value = n("debouncedFilter.errors.fetch"));
507
+ } catch (R) {
508
+ ((q = R == null ? void 0 : R.response) == null ? void 0 : q.status) === 404 ? m.value = n("debouncedFilter.errors.invalid") : (p.value = [], d.value = n("debouncedFilter.errors.fetch"));
509
509
  } finally {
510
510
  l.value = !1;
511
511
  }
512
512
  else
513
- l.value = !0, m.value = "", k ? (p.value = (oe = h.value) == null ? void 0 : oe.filter((D) => {
513
+ l.value = !0, m.value = "", k ? (p.value = (oe = h.value) == null ? void 0 : oe.filter((R) => {
514
514
  var I;
515
- let z = !1;
515
+ let H = !1;
516
516
  for (const K of a.searchKeys) {
517
- const P = typeof D[K] == "string" ? (I = D[K]) == null ? void 0 : I.toLowerCase() : D[K];
518
- P != null && P.includes(k.toLowerCase()) && (z = !0);
517
+ const B = typeof R[K] == "string" ? (I = R[K]) == null ? void 0 : I.toLowerCase() : R[K];
518
+ B != null && B.includes(k.toLowerCase()) && (H = !0);
519
519
  }
520
- return z;
520
+ return H;
521
521
  }), (!p.value || !p.value.length) && (m.value = n("debouncedFilter.errors.invalid"))) : p.value = h.value, l.value = !1;
522
522
  };
523
523
  return {
@@ -531,7 +531,7 @@ function Nr(e, i, t, a = {
531
531
  };
532
532
  }
533
533
  function qr(e, i) {
534
- const t = f(i), a = T(
534
+ const t = f(i), a = j(
535
535
  () => e.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${t}`) : new URL(t)
536
536
  );
537
537
  return a.value.search = "", (r) => `${a.value.href}/${r}`;
@@ -578,17 +578,17 @@ function Lr(e) {
578
578
  }
579
579
  }
580
580
  function di(e, i) {
581
- const t = U(f(e)), a = U(f(i)), r = T(
581
+ const t = U(f(e)), a = U(f(i)), r = j(
582
582
  () => !!(t.value.app === "konnect" || t.value.isExactMatch)
583
- ), n = T(
583
+ ), n = j(
584
584
  () => a.value.startsWith("/") ? new URL(`${window.location.origin}${a.value}`) : new URL(a.value)
585
585
  );
586
586
  return (o) => {
587
587
  const { page: s, pageSize: l, offset: d, sortColumnKey: m, sortColumnOrder: p, query: _ } = o;
588
588
  try {
589
589
  let h = new URL(n.value.href);
590
- return r.value && _ ? (h.search = "", h = t.value.app === "konnect" ? new URL(`${h.href}?filter[name][contains]=${_}`) : new URL(`${h.href}/${_}/`)) : (r.value || new URLSearchParams(_).forEach((A, b) => {
591
- h.searchParams.append(b, A);
590
+ return r.value && _ ? (h.search = "", h = t.value.app === "konnect" ? new URL(`${h.href}?filter[name][contains]=${_}`) : new URL(`${h.href}/${_}/`)) : (r.value || new URLSearchParams(_).forEach((x, b) => {
591
+ h.searchParams.append(b, x);
592
592
  }), m && h.searchParams.append("sort_by", m), p === "desc" && h.searchParams.append("sort_desc", "1"), h.searchParams.append("size", String(l))), d && s !== 1 && h.searchParams.append("offset", String(d)), h.href;
593
593
  } catch (h) {
594
594
  return console.error("RouteList(fetcher)", h), a.value;
@@ -703,13 +703,13 @@ function Jr(e) {
703
703
  }
704
704
  function Gr(e) {
705
705
  const i = U(0), t = U(0), a = U(!1);
706
- return ke(e, (r) => {
706
+ return _e(e, (r) => {
707
707
  r && !a.value && (i.value = r.offsetWidth, t.value = r.scrollWidth, a.value = !0);
708
708
  }), {
709
- isTruncated: T(() => i.value < t.value)
709
+ isTruncated: j(() => i.value < t.value)
710
710
  };
711
711
  }
712
- const ue = {
712
+ const se = {
713
713
  useAxios: _t,
714
714
  useDebouncedFilter: Nr,
715
715
  useDeleteUrlBuilder: qr,
@@ -739,7 +739,7 @@ const ue = {
739
739
  }, ea = (e) => (ni("data-v-89becf03"), e = e(), li(), e), ta = ["aria-hidden"], ia = {
740
740
  key: 0,
741
741
  "data-testid": "kui-icon-svg-title"
742
- }, ra = /* @__PURE__ */ ea(() => /* @__PURE__ */ V("path", {
742
+ }, ra = /* @__PURE__ */ ea(() => /* @__PURE__ */ N("path", {
743
743
  d: "M5 22C4.45 22 3.97917 21.8042 3.5875 21.4125C3.19583 21.0208 3 20.55 3 20V6H5V20H16V22H5ZM9 18C8.45 18 7.97917 17.8042 7.5875 17.4125C7.19583 17.0208 7 16.55 7 16V4C7 3.45 7.19583 2.97917 7.5875 2.5875C7.97917 2.19583 8.45 2 9 2H18C18.55 2 19.0208 2.19583 19.4125 2.5875C19.8042 2.97917 20 3.45 20 4V16C20 16.55 19.8042 17.0208 19.4125 17.4125C19.0208 17.8042 18.55 18 18 18H9ZM9 16H18V4H9V16Z",
744
744
  fill: "currentColor"
745
745
  }, null, -1)), aa = /* @__PURE__ */ re({
@@ -794,7 +794,7 @@ const ue = {
794
794
  }
795
795
  },
796
796
  setup(e) {
797
- const i = e, t = T(() => {
797
+ const i = e, t = j(() => {
798
798
  if (typeof i.size == "number" && i.size > 0)
799
799
  return `${i.size}px`;
800
800
  if (typeof i.size == "string") {
@@ -803,7 +803,7 @@ const ue = {
803
803
  return `${n}px`;
804
804
  }
805
805
  return qt;
806
- }), a = T(() => ({
806
+ }), a = j(() => ({
807
807
  boxSizing: "border-box",
808
808
  color: i.color,
809
809
  display: i.display,
@@ -811,14 +811,14 @@ const ue = {
811
811
  lineHeight: "0",
812
812
  width: t.value
813
813
  }));
814
- return (r, n) => (v(), R($e(e.as), {
814
+ return (r, n) => (v(), P($e(e.as), {
815
815
  "aria-hidden": e.decorative ? "true" : void 0,
816
816
  class: "kui-icon copy-icon",
817
817
  "data-testid": "kui-icon-wrapper-copy-icon",
818
818
  style: oi(a.value)
819
819
  }, {
820
820
  default: y(() => [
821
- (v(), j("svg", {
821
+ (v(), M("svg", {
822
822
  "aria-hidden": e.decorative ? "true" : void 0,
823
823
  "data-testid": "kui-icon-svg-copy-icon",
824
824
  fill: "none",
@@ -828,7 +828,7 @@ const ue = {
828
828
  width: "100%",
829
829
  xmlns: "http://www.w3.org/2000/svg"
830
830
  }, [
831
- e.title ? (v(), j("title", ia, $(e.title), 1)) : H("", !0),
831
+ e.title ? (v(), M("title", ia, O(e.title), 1)) : D("", !0),
832
832
  ra
833
833
  ], 8, ta))
834
834
  ]),
@@ -880,18 +880,18 @@ const ue = {
880
880
  emits: ["success", "error"],
881
881
  setup(e, { emit: i }) {
882
882
  const { t } = wt("en-us", Zr), a = e, r = i, n = a.notify || dr(Qr, () => {
883
- }), o = T(() => a.idTooltip ? {
883
+ }), o = j(() => a.idTooltip ? {
884
884
  label: a.idTooltip,
885
885
  positionFixed: !0,
886
886
  placement: "bottomStart"
887
887
  } : {
888
888
  title: a.uuid
889
- }), s = T(() => !!(a.tooltip && a.successTooltip)), l = U(a.tooltip), d = T(() => a.tooltip ? {
889
+ }), s = j(() => !!(a.tooltip && a.successTooltip)), l = U(a.tooltip), d = j(() => a.tooltip ? {
890
890
  label: l.value,
891
891
  positionFixed: !0,
892
892
  maxWidth: "500px",
893
893
  placement: "bottomStart"
894
- } : {}), m = T(() => {
894
+ } : {}), m = j(() => {
895
895
  var h;
896
896
  return a.format === "redacted" ? "*****" : a.format === "deleted" ? `*${(h = a.uuid) == null ? void 0 : h.substring(0, 5)}` : a.uuid;
897
897
  }), p = (h) => {
@@ -899,7 +899,7 @@ const ue = {
899
899
  l.value = a.tooltip;
900
900
  }, 1800);
901
901
  }, _ = (h) => {
902
- var A, b;
902
+ var x, b;
903
903
  if (!h(a.uuid)) {
904
904
  typeof n == "function" && n({
905
905
  type: "error",
@@ -907,36 +907,36 @@ const ue = {
907
907
  }), s.value ? p(t("message.fail")) : r("error", a.uuid);
908
908
  return;
909
909
  }
910
- const M = ((A = a.uuid) == null ? void 0 : A.length) > Ut, S = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((b = a.uuid) == null ? void 0 : b.substring(0, Ut)) + (M ? "..." : "")}"`;
910
+ const $ = ((x = a.uuid) == null ? void 0 : x.length) > Ut, S = a.format === "hidden" || a.format === "redacted" ? t("message.success.prefix") : `"${((b = a.uuid) == null ? void 0 : b.substring(0, Ut)) + ($ ? "..." : "")}"`;
911
911
  typeof n == "function" && n({
912
912
  type: "success",
913
913
  message: `${S}${t("message.success.content")}`
914
914
  }), s.value ? p(a.successTooltip) : r("success", a.uuid);
915
915
  };
916
- return (h, A) => {
916
+ return (h, x) => {
917
917
  const b = L("KClipboardProvider");
918
- return v(), j("div", la, [
919
- e.format !== "hidden" ? (v(), R($e(e.idTooltip ? "KTooltip" : "div"), dt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
918
+ return v(), M("div", la, [
919
+ e.format !== "hidden" ? (v(), P($e(e.idTooltip ? "KTooltip" : "div"), dt({ key: 0 }, o.value, { "data-testid": "copy-id" }), {
920
920
  default: y(() => [
921
- V("div", {
921
+ N("div", {
922
922
  class: Ie([
923
923
  "uuid-container",
924
924
  e.truncated ? "truncated-uuid" : null,
925
925
  e.useMono ? "mono" : null
926
926
  ])
927
- }, $(m.value), 3)
927
+ }, O(m.value), 3)
928
928
  ]),
929
929
  _: 1
930
- }, 16)) : H("", !0),
931
- (v(), R($e(e.tooltip ? "KTooltip" : "div"), dt(d.value, { class: "uuid-icon-wrapper" }), {
930
+ }, 16)) : D("", !0),
931
+ (v(), P($e(e.tooltip ? "KTooltip" : "div"), dt(d.value, { class: "uuid-icon-wrapper" }), {
932
932
  default: y(() => [
933
933
  C(b, null, {
934
- default: y(({ copyToClipboard: M }) => [
935
- V("span", {
934
+ default: y(({ copyToClipboard: $ }) => [
935
+ N("span", {
936
936
  "data-testid": "copy-to-clipboard",
937
937
  role: "button",
938
938
  tabindex: "0",
939
- onClick: Le((S) => _(M), ["stop"])
939
+ onClick: qe((S) => _($), ["stop"])
940
940
  }, [
941
941
  C(f(oa), {
942
942
  class: "uuid-icon",
@@ -980,21 +980,21 @@ const ue = {
980
980
  }
981
981
  },
982
982
  setup(e) {
983
- const i = e, { i18n: { t } } = ue.useI18n(), { convertKeyToTitle: a } = ue.useStringHelpers(), r = T(() => i.item.key ?? "json-array-item"), n = T(() => i.item.value ?? i.item), o = T(() => {
983
+ const i = e, { i18n: { t } } = se.useI18n(), { convertKeyToTitle: a } = se.useStringHelpers(), r = j(() => i.item.key ?? "json-array-item"), n = j(() => i.item.value ?? i.item), o = j(() => {
984
984
  const l = JSON.parse(JSON.stringify(n.value));
985
985
  return i.isArrayItem && delete l.name, l;
986
- }), s = T(() => {
986
+ }), s = j(() => {
987
987
  var l;
988
988
  return i.isArrayItem ? (l = n.value) != null && l.name ? a(n.value.name, "_") : t("baseConfigCard.general.entryTitle", { index: i.index }) : "";
989
989
  });
990
- return (l, d) => (v(), R($e(e.isArrayItem ? "fieldset" : "div"), {
990
+ return (l, d) => (v(), P($e(e.isArrayItem ? "fieldset" : "div"), {
991
991
  class: Ie(e.isArrayItem ? "config-card-fieldset" : "config-card-json-item")
992
992
  }, {
993
993
  default: y(() => [
994
- e.isArrayItem ? (v(), j("legend", da, [
995
- V("b", null, $(s.value), 1)
996
- ])) : H("", !0),
997
- (v(!0), j(be, null, he(Object.keys(o.value), (m, p) => (v(), R(Ct, {
994
+ e.isArrayItem ? (v(), M("legend", da, [
995
+ N("b", null, O(s.value), 1)
996
+ ])) : D("", !0),
997
+ (v(!0), M(ve, null, ye(Object.keys(o.value), (m, p) => (v(), P(Ct, {
998
998
  key: `${r.value}-property-${p}`,
999
999
  item: {
1000
1000
  key: m,
@@ -1006,12 +1006,12 @@ const ue = {
1006
1006
  _: 1
1007
1007
  }, 8, ["class"]));
1008
1008
  }
1009
- }), we = (e, i) => {
1009
+ }), he = (e, i) => {
1010
1010
  const t = e.__vccOpts || e;
1011
1011
  for (const [a, r] of i)
1012
1012
  t[a] = r;
1013
1013
  return t;
1014
- }, gi = /* @__PURE__ */ we(pa, [["__scopeId", "data-v-68ca83ec"]]), fa = /* @__PURE__ */ re({
1014
+ }, gi = /* @__PURE__ */ he(pa, [["__scopeId", "data-v-68ca83ec"]]), fa = /* @__PURE__ */ re({
1015
1015
  __name: "InternalLinkItem",
1016
1016
  props: {
1017
1017
  item: {
@@ -1021,24 +1021,24 @@ const ue = {
1021
1021
  },
1022
1022
  emits: ["navigation-click"],
1023
1023
  setup(e) {
1024
- const { i18n: { t: i } } = ue.useI18n();
1024
+ const { i18n: { t: i } } = se.useI18n();
1025
1025
  return (t, a) => {
1026
1026
  const r = L("KButton");
1027
- return v(), j("div", null, [
1027
+ return v(), M("div", null, [
1028
1028
  C(r, {
1029
1029
  appearance: "tertiary",
1030
1030
  class: "navigation-button",
1031
1031
  onClick: a[0] || (a[0] = (n) => t.$emit("navigation-click", e.item))
1032
1032
  }, {
1033
1033
  default: y(() => [
1034
- G($(e.item.value || f(i)("baseConfigCard.commonFields.link")), 1)
1034
+ J(O(e.item.value || f(i)("baseConfigCard.commonFields.link")), 1)
1035
1035
  ]),
1036
1036
  _: 1
1037
1037
  })
1038
1038
  ]);
1039
1039
  };
1040
1040
  }
1041
- }), ma = /* @__PURE__ */ we(fa, [["__scopeId", "data-v-c96811e5"]]), ga = /* @__PURE__ */ re({
1041
+ }), ma = /* @__PURE__ */ he(fa, [["__scopeId", "data-v-c96811e5"]]), ga = /* @__PURE__ */ re({
1042
1042
  __name: "StatusBadge",
1043
1043
  props: {
1044
1044
  status: {
@@ -1047,14 +1047,14 @@ const ue = {
1047
1047
  }
1048
1048
  },
1049
1049
  setup(e) {
1050
- const { i18n: { t: i } } = ue.useI18n();
1050
+ const { i18n: { t: i } } = se.useI18n();
1051
1051
  return (t, a) => {
1052
1052
  const r = L("KBadge");
1053
- return v(), R(r, {
1053
+ return v(), P(r, {
1054
1054
  appearance: e.status ? "success" : "neutral"
1055
1055
  }, {
1056
1056
  default: y(() => [
1057
- G($(e.status ? f(i)("baseConfigCard.statusBadge.enabledLabel") : f(i)("baseConfigCard.statusBadge.disabledLabel")), 1)
1057
+ J(O(e.status ? f(i)("baseConfigCard.statusBadge.enabledLabel") : f(i)("baseConfigCard.statusBadge.disabledLabel")), 1)
1058
1058
  ]),
1059
1059
  _: 1
1060
1060
  }, 8, ["appearance"]);
@@ -1083,15 +1083,15 @@ const ue = {
1083
1083
  },
1084
1084
  emits: ["navigation-click"],
1085
1085
  setup(e, { emit: i }) {
1086
- ri((A) => ({
1086
+ ri((x) => ({
1087
1087
  "0da74440": m.value ? "none" : `solid ${f(ba)} ${f(va)}`,
1088
1088
  "02a039da": d.value && s.value ? "block" : "flex",
1089
1089
  "690f3ced": d.value && s.value ? "100%" : t.slim ? "50%" : "25%",
1090
1090
  "691182c8": d.value && s.value ? "100%" : t.slim ? "50%" : "75%"
1091
1091
  }));
1092
- const t = e, a = i, r = rt(), { i18n: { t: n, formatUnixTimeStamp: o } } = ue.useI18n(), s = T(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = T(() => !!(t.item.tooltip || r["label-tooltip"])), d = T(() => t.item.type === ie.Json || t.item.type === ie.JsonArray), m = T(() => t.item.type === ie.JsonArray), p = T(() => {
1092
+ const t = e, a = i, r = rt(), { i18n: { t: n, formatUnixTimeStamp: o } } = se.useI18n(), s = j(() => t.item.value !== void 0 && t.item.value !== null && t.item.value !== ""), l = j(() => !!(t.item.tooltip || r["label-tooltip"])), d = j(() => t.item.type === te.Json || t.item.type === te.JsonArray), m = j(() => t.item.type === te.JsonArray), p = j(() => {
1093
1093
  switch (t.item.type) {
1094
- case ie.ID:
1094
+ case te.ID:
1095
1095
  return {
1096
1096
  tag: "CopyUuid",
1097
1097
  attrs: {
@@ -1104,7 +1104,7 @@ const ue = {
1104
1104
  }
1105
1105
  }
1106
1106
  };
1107
- case ie.IdArray:
1107
+ case te.IdArray:
1108
1108
  return {
1109
1109
  tag: "div",
1110
1110
  additionalComponent: "CopyUuid",
@@ -1116,7 +1116,7 @@ const ue = {
1116
1116
  }
1117
1117
  }
1118
1118
  };
1119
- case ie.Redacted:
1119
+ case te.Redacted:
1120
1120
  return {
1121
1121
  tag: "CopyUuid",
1122
1122
  attrs: {
@@ -1130,7 +1130,7 @@ const ue = {
1130
1130
  }
1131
1131
  }
1132
1132
  };
1133
- case ie.RedactedArray:
1133
+ case te.RedactedArray:
1134
1134
  return {
1135
1135
  tag: "div",
1136
1136
  additionalComponent: "CopyUuid",
@@ -1143,7 +1143,7 @@ const ue = {
1143
1143
  }
1144
1144
  }
1145
1145
  };
1146
- case ie.Date:
1146
+ case te.Date:
1147
1147
  return {
1148
1148
  tag: "div",
1149
1149
  attrs: {
@@ -1151,7 +1151,7 @@ const ue = {
1151
1151
  },
1152
1152
  text: o(t.item.value)
1153
1153
  };
1154
- case ie.BadgeStatus:
1154
+ case te.BadgeStatus:
1155
1155
  return {
1156
1156
  tag: "StatusBadge",
1157
1157
  attrs: {
@@ -1159,28 +1159,28 @@ const ue = {
1159
1159
  status: t.item.value
1160
1160
  }
1161
1161
  };
1162
- case ie.BadgeTag:
1162
+ case te.BadgeTag:
1163
1163
  return {
1164
1164
  tag: "div",
1165
1165
  additionalComponent: "KBadge"
1166
1166
  };
1167
- case ie.BadgeMethod:
1167
+ case te.BadgeMethod:
1168
1168
  return {
1169
1169
  tag: "div",
1170
1170
  additionalComponent: "KMethodBadge"
1171
1171
  };
1172
- case ie.LinkInternal:
1172
+ case te.LinkInternal:
1173
1173
  return {
1174
1174
  tag: "InternalLinkItem",
1175
1175
  attrs: {
1176
1176
  "data-testid": `${t.item.key}-internal-link`,
1177
1177
  item: t.item,
1178
- onNavigationClick: (A) => {
1179
- a("navigation-click", A);
1178
+ onNavigationClick: (x) => {
1179
+ a("navigation-click", x);
1180
1180
  }
1181
1181
  }
1182
1182
  };
1183
- case ie.LinkExternal:
1183
+ case te.LinkExternal:
1184
1184
  return {
1185
1185
  tag: "KExternalLink",
1186
1186
  attrs: {
@@ -1189,7 +1189,7 @@ const ue = {
1189
1189
  },
1190
1190
  text: t.item.value
1191
1191
  };
1192
- case ie.Json:
1192
+ case te.Json:
1193
1193
  return {
1194
1194
  tag: "JsonCardItem",
1195
1195
  attrs: {
@@ -1197,7 +1197,7 @@ const ue = {
1197
1197
  item: t.item
1198
1198
  }
1199
1199
  };
1200
- case ie.JsonArray:
1200
+ case te.JsonArray:
1201
1201
  return {
1202
1202
  tag: "div",
1203
1203
  additionalComponent: "JsonCardItem",
@@ -1215,29 +1215,29 @@ const ue = {
1215
1215
  text: t.item.value
1216
1216
  };
1217
1217
  }
1218
- }), _ = U(), { isTruncated: h } = ue.useTruncationDetector(_);
1219
- return (A, b) => {
1220
- const M = L("KLabel"), S = L("KBadge"), x = L("KTooltip");
1221
- return v(), j("div", _a, [
1222
- V("div", {
1218
+ }), _ = U(), { isTruncated: h } = se.useTruncationDetector(_);
1219
+ return (x, b) => {
1220
+ const $ = L("KLabel"), S = L("KBadge"), T = L("KTooltip");
1221
+ return v(), M("div", _a, [
1222
+ N("div", {
1223
1223
  class: "config-card-details-label",
1224
1224
  "data-testid": `${e.item.key}-label`
1225
1225
  }, [
1226
- X(A.$slots, "label", { item: e.item }, () => [
1227
- C(M, { "tooltip-attributes": { maxWidth: "500px" } }, je({
1226
+ Q(x.$slots, "label", { item: e.item }, () => [
1227
+ C($, { "tooltip-attributes": { maxWidth: "500px" } }, je({
1228
1228
  default: y(() => [
1229
- G($(e.item.label) + " ", 1)
1229
+ J(O(e.item.label) + " ", 1)
1230
1230
  ]),
1231
1231
  _: 2
1232
1232
  }, [
1233
1233
  l.value ? {
1234
1234
  name: "tooltip",
1235
1235
  fn: y(() => [
1236
- V("div", {
1236
+ N("div", {
1237
1237
  "data-testid": `${e.item.key}-label-tooltip`
1238
1238
  }, [
1239
- X(A.$slots, "label-tooltip", {}, () => [
1240
- G($(e.item.tooltip), 1)
1239
+ Q(x.$slots, "label-tooltip", {}, () => [
1240
+ J(O(e.item.tooltip), 1)
1241
1241
  ], !0)
1242
1242
  ], 8, Ca)
1243
1243
  ]),
@@ -1246,87 +1246,87 @@ const ue = {
1246
1246
  ]), 1024)
1247
1247
  ], !0)
1248
1248
  ], 8, ka),
1249
- V("div", {
1249
+ N("div", {
1250
1250
  class: "config-card-details-value",
1251
1251
  "data-testid": `${e.item.key}-property-value`
1252
1252
  }, [
1253
- X(A.$slots, e.item.key, {
1253
+ Q(x.$slots, e.item.key, {
1254
1254
  rowValue: e.item.value
1255
1255
  }, () => [
1256
- s.value ? (v(), j("div", Aa, [
1257
- (v(), R($e(p.value.tag), sr(cr(p.value.attrs)), {
1256
+ s.value ? (v(), M("div", Aa, [
1257
+ (v(), P($e(p.value.tag), sr(cr(p.value.attrs)), {
1258
1258
  default: y(() => [
1259
- p.value.additionalComponent === "KBadge" ? (v(), j("div", {
1259
+ p.value.additionalComponent === "KBadge" ? (v(), M("div", {
1260
1260
  key: 0,
1261
1261
  "data-testid": `${e.item.key}-badge-tags`
1262
1262
  }, [
1263
- (v(!0), j(be, null, he(e.item.value, (c, k) => (v(), R(S, {
1263
+ (v(!0), M(ve, null, ye(e.item.value, (u, k) => (v(), P(S, {
1264
1264
  key: `${e.item.key}-badge-tag-${k}`,
1265
1265
  class: "config-badge",
1266
1266
  "data-testid": `${e.item.key}-badge-tag-${k}`,
1267
- tooltip: c,
1267
+ tooltip: u,
1268
1268
  "truncation-tooltip": ""
1269
1269
  }, {
1270
1270
  default: y(() => [
1271
- G($(c), 1)
1271
+ J(O(u), 1)
1272
1272
  ]),
1273
1273
  _: 2
1274
1274
  }, 1032, ["data-testid", "tooltip"]))), 128))
1275
- ], 8, xa)) : H("", !0),
1276
- p.value.additionalComponent === "CopyUuid" ? (v(), j("div", {
1275
+ ], 8, xa)) : D("", !0),
1276
+ p.value.additionalComponent === "CopyUuid" ? (v(), M("div", {
1277
1277
  key: 1,
1278
1278
  class: "copy-uuid-array",
1279
1279
  "data-testid": `${e.item.key}-copy-uuid-array`
1280
1280
  }, [
1281
- (v(!0), j(be, null, he(e.item.value, (c, k) => (v(), R(f(mi), dt(p.value.childAttrs, {
1281
+ (v(!0), M(ve, null, ye(e.item.value, (u, k) => (v(), P(f(mi), dt(p.value.childAttrs, {
1282
1282
  key: `${e.item.key}-copy-uuid-${k}`,
1283
1283
  "data-testid": `${e.item.key}-copy-uuid-${k}`,
1284
- uuid: c
1284
+ uuid: u
1285
1285
  }), null, 16, ["data-testid", "uuid"]))), 128))
1286
- ], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (v(), j("div", {
1286
+ ], 8, Ta)) : p.value.additionalComponent === "KMethodBadge" ? (v(), M("div", {
1287
1287
  key: 2,
1288
1288
  class: "method-badge-array",
1289
1289
  "data-testid": `${e.item.key}-badge-methods`
1290
1290
  }, [
1291
- (v(!0), j(be, null, he(e.item.value, (c, k) => (v(), R(S, {
1291
+ (v(!0), M(ve, null, ye(e.item.value, (u, k) => (v(), P(S, {
1292
1292
  key: `${e.item.key}-badge-method-${k}`,
1293
- appearance: Object.values(f(fr)).includes(c.toLowerCase()) ? c.toLowerCase() : "custom",
1293
+ appearance: Object.values(f(fr)).includes(u.toLowerCase()) ? u.toLowerCase() : "custom",
1294
1294
  class: "config-badge",
1295
1295
  "data-testid": `${e.item.key}-badge-method-${k}`
1296
1296
  }, {
1297
1297
  default: y(() => [
1298
- G($(c), 1)
1298
+ J(O(u), 1)
1299
1299
  ]),
1300
1300
  _: 2
1301
1301
  }, 1032, ["appearance", "data-testid"]))), 128))
1302
- ], 8, ja)) : H("", !0),
1303
- p.value.additionalComponent === "JsonCardItem" ? (v(), j("div", {
1302
+ ], 8, ja)) : D("", !0),
1303
+ p.value.additionalComponent === "JsonCardItem" ? (v(), M("div", {
1304
1304
  key: 3,
1305
1305
  "data-testid": `${t.item.key}-json-array-content`
1306
1306
  }, [
1307
- (v(!0), j(be, null, he(e.item.value, (c, k) => (v(), R(gi, {
1307
+ (v(!0), M(ve, null, ye(e.item.value, (u, k) => (v(), P(gi, {
1308
1308
  key: `json-array-item-${k}`,
1309
1309
  index: k,
1310
1310
  "is-array-item": "",
1311
- item: c
1311
+ item: u
1312
1312
  }, null, 8, ["index", "item"]))), 128))
1313
- ], 8, Ma)) : (v(), R(x, {
1313
+ ], 8, Ma)) : (v(), P(T, {
1314
1314
  key: 4,
1315
1315
  label: f(h) ? e.item.value : ""
1316
1316
  }, {
1317
1317
  default: y(() => [
1318
- V("span", {
1318
+ N("span", {
1319
1319
  ref_key: "textContent",
1320
1320
  ref: _,
1321
1321
  class: Ie(["attrs-data-text", { truncated: e.truncated }])
1322
- }, $(p.value.text), 3)
1322
+ }, O(p.value.text), 3)
1323
1323
  ]),
1324
1324
  _: 1
1325
1325
  }, 8, ["label"]))
1326
1326
  ]),
1327
1327
  _: 1
1328
1328
  }, 16))
1329
- ])) : (v(), j("div", {
1329
+ ])) : (v(), M("div", {
1330
1330
  key: 0,
1331
1331
  "data-testid": `${e.item.key}-no-value`
1332
1332
  }, " – ", 8, Ia))
@@ -1335,7 +1335,7 @@ const ue = {
1335
1335
  ]);
1336
1336
  };
1337
1337
  }
1338
- }), Ct = /* @__PURE__ */ we(Oa, [["__scopeId", "data-v-9c87856b"]]), Ea = { class: "json-config" }, Fa = {
1338
+ }), Ct = /* @__PURE__ */ he(Oa, [["__scopeId", "data-v-9c87856b"]]), Ea = { class: "json-config" }, Fa = {
1339
1339
  key: 0,
1340
1340
  class: "json-endpoint"
1341
1341
  }, yi = /* @__PURE__ */ re({
@@ -1369,7 +1369,7 @@ const ue = {
1369
1369
  ri((r) => ({
1370
1370
  "2d178975": `${a.value}ch`
1371
1371
  }));
1372
- const i = e, t = T(() => i.jsonRecord), a = T(() => {
1372
+ const i = e, t = j(() => i.jsonRecord), a = j(() => {
1373
1373
  var r;
1374
1374
  if (!i.fetcherUrl)
1375
1375
  return 0;
@@ -1379,13 +1379,13 @@ const ue = {
1379
1379
  return (r, n) => {
1380
1380
  var o;
1381
1381
  const s = L("KBadge"), l = L("KCodeBlock");
1382
- return v(), j("div", Ea, [
1383
- i.fetcherUrl && (o = i.config) != null && o.jsonYamlFormsEnabled ? (v(), j("div", Fa, [
1382
+ return v(), M("div", Ea, [
1383
+ i.fetcherUrl && (o = i.config) != null && o.jsonYamlFormsEnabled ? (v(), M("div", Fa, [
1384
1384
  C(s, {
1385
1385
  appearance: i.requestMethod
1386
1386
  }, {
1387
1387
  default: y(() => [
1388
- G($(i.requestMethod), 1)
1388
+ J(O(i.requestMethod), 1)
1389
1389
  ]),
1390
1390
  _: 1
1391
1391
  }, 8, ["appearance"]),
@@ -1396,15 +1396,15 @@ const ue = {
1396
1396
  language: "json",
1397
1397
  theme: "dark"
1398
1398
  }, null, 8, ["code"])
1399
- ])) : H("", !0),
1400
- i.jsonRecord ? (v(), R(l, {
1399
+ ])) : D("", !0),
1400
+ i.jsonRecord ? (v(), P(l, {
1401
1401
  key: 1,
1402
1402
  id: "json-codeblock",
1403
1403
  class: Ie({ "json-content": i.fetcherUrl }),
1404
1404
  code: JSON.stringify(t.value, null, 2),
1405
1405
  language: "json",
1406
1406
  theme: "dark"
1407
- }, null, 8, ["class", "code"])) : H("", !0)
1407
+ }, null, 8, ["class", "code"])) : D("", !0)
1408
1408
  ]);
1409
1409
  };
1410
1410
  }
@@ -1435,7 +1435,7 @@ function Ua(e, i) {
1435
1435
  function La(e) {
1436
1436
  return e === 0 && Number.NEGATIVE_INFINITY === 1 / e;
1437
1437
  }
1438
- var Ka = vi, Ba = Va, Pa = Na, Ra = Ua, Da = La, Ha = qa, ce = {
1438
+ var Ka = vi, Ba = Va, Pa = Na, Ra = Ua, Da = La, Ha = qa, le = {
1439
1439
  isNothing: Ka,
1440
1440
  isObject: Ba,
1441
1441
  toArray: Pa,
@@ -1457,7 +1457,7 @@ ze.prototype.constructor = ze;
1457
1457
  ze.prototype.toString = function(e) {
1458
1458
  return this.name + ": " + hi(this, e);
1459
1459
  };
1460
- var ye = ze;
1460
+ var me = ze;
1461
1461
  function st(e, i, t, a, r) {
1462
1462
  var n = "", o = "", s = Math.floor(r / 2) - 1;
1463
1463
  return a - i > s && (n = " ... ", i = a - s + n.length), t - a > s && (o = " ...", t = a + s - o.length), {
@@ -1467,7 +1467,7 @@ function st(e, i, t, a, r) {
1467
1467
  };
1468
1468
  }
1469
1469
  function ct(e, i) {
1470
- return ce.repeat(" ", i - e.length) + e;
1470
+ return le.repeat(" ", i - e.length) + e;
1471
1471
  }
1472
1472
  function za(e, i) {
1473
1473
  if (i = Object.create(i || null), !e.buffer)
@@ -1484,10 +1484,10 @@ function za(e, i) {
1484
1484
  r[o - l],
1485
1485
  e.position - (a[o] - a[o - l]),
1486
1486
  p
1487
- ), s = ce.repeat(" ", i.indent) + ct((e.line - l + 1).toString(), m) + " | " + d.str + `
1487
+ ), s = le.repeat(" ", i.indent) + ct((e.line - l + 1).toString(), m) + " | " + d.str + `
1488
1488
  ` + s;
1489
- for (d = st(e.buffer, a[o], r[o], e.position, p), s += ce.repeat(" ", i.indent) + ct((e.line + 1).toString(), m) + " | " + d.str + `
1490
- `, s += ce.repeat("-", i.indent + m + 3 + d.pos) + `^
1489
+ for (d = st(e.buffer, a[o], r[o], e.position, p), s += le.repeat(" ", i.indent) + ct((e.line + 1).toString(), m) + " | " + d.str + `
1490
+ `, s += le.repeat("-", i.indent + m + 3 + d.pos) + `^
1491
1491
  `, l = 1; l <= i.linesAfter && !(o + l >= r.length); l++)
1492
1492
  d = st(
1493
1493
  e.buffer,
@@ -1495,7 +1495,7 @@ function za(e, i) {
1495
1495
  r[o + l],
1496
1496
  e.position - (a[o] - a[o + l]),
1497
1497
  p
1498
- ), s += ce.repeat(" ", i.indent) + ct((e.line + l + 1).toString(), m) + " | " + d.str + `
1498
+ ), s += le.repeat(" ", i.indent) + ct((e.line + l + 1).toString(), m) + " | " + d.str + `
1499
1499
  `;
1500
1500
  return s.replace(/\n$/, "");
1501
1501
  }
@@ -1526,15 +1526,15 @@ function Wa(e) {
1526
1526
  function Za(e, i) {
1527
1527
  if (i = i || {}, Object.keys(i).forEach(function(t) {
1528
1528
  if (Ga.indexOf(t) === -1)
1529
- throw new ye('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1529
+ throw new me('Unknown option "' + t + '" is met in definition of "' + e + '" YAML type.');
1530
1530
  }), this.options = i, this.tag = e, this.kind = i.kind || null, this.resolve = i.resolve || function() {
1531
1531
  return !0;
1532
1532
  }, this.construct = i.construct || function(t) {
1533
1533
  return t;
1534
1534
  }, 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 = Wa(i.styleAliases || null), Ya.indexOf(this.kind) === -1)
1535
- throw new ye('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1535
+ throw new me('Unknown kind "' + this.kind + '" is specified for "' + e + '" YAML type.');
1536
1536
  }
1537
- var fe = Za;
1537
+ var de = Za;
1538
1538
  function Lt(e, i) {
1539
1539
  var t = [];
1540
1540
  return e[i].forEach(function(a) {
@@ -1569,39 +1569,39 @@ function ft(e) {
1569
1569
  }
1570
1570
  ft.prototype.extend = function(e) {
1571
1571
  var i = [], t = [];
1572
- if (e instanceof fe)
1572
+ if (e instanceof de)
1573
1573
  t.push(e);
1574
1574
  else if (Array.isArray(e))
1575
1575
  t = t.concat(e);
1576
1576
  else if (e && (Array.isArray(e.implicit) || Array.isArray(e.explicit)))
1577
1577
  e.implicit && (i = i.concat(e.implicit)), e.explicit && (t = t.concat(e.explicit));
1578
1578
  else
1579
- throw new ye("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1579
+ throw new me("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");
1580
1580
  i.forEach(function(r) {
1581
- if (!(r instanceof fe))
1582
- throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1581
+ if (!(r instanceof de))
1582
+ throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1583
1583
  if (r.loadKind && r.loadKind !== "scalar")
1584
- throw new ye("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1584
+ throw new me("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");
1585
1585
  if (r.multi)
1586
- throw new ye("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1586
+ throw new me("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.");
1587
1587
  }), t.forEach(function(r) {
1588
- if (!(r instanceof fe))
1589
- throw new ye("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1588
+ if (!(r instanceof de))
1589
+ throw new me("Specified list of YAML types (or a single Type object) contains a non-Type object.");
1590
1590
  });
1591
1591
  var a = Object.create(ft.prototype);
1592
1592
  return a.implicit = (this.implicit || []).concat(i), a.explicit = (this.explicit || []).concat(t), a.compiledImplicit = Lt(a, "implicit"), a.compiledExplicit = Lt(a, "explicit"), a.compiledTypeMap = Qa(a.compiledImplicit, a.compiledExplicit), a;
1593
1593
  };
1594
- var bi = ft, wi = new fe("tag:yaml.org,2002:str", {
1594
+ var bi = ft, wi = new de("tag:yaml.org,2002:str", {
1595
1595
  kind: "scalar",
1596
1596
  construct: function(e) {
1597
1597
  return e !== null ? e : "";
1598
1598
  }
1599
- }), _i = new fe("tag:yaml.org,2002:seq", {
1599
+ }), _i = new de("tag:yaml.org,2002:seq", {
1600
1600
  kind: "sequence",
1601
1601
  construct: function(e) {
1602
1602
  return e !== null ? e : [];
1603
1603
  }
1604
- }), ki = new fe("tag:yaml.org,2002:map", {
1604
+ }), ki = new de("tag:yaml.org,2002:map", {
1605
1605
  kind: "mapping",
1606
1606
  construct: function(e) {
1607
1607
  return e !== null ? e : {};
@@ -1625,7 +1625,7 @@ function eo() {
1625
1625
  function to(e) {
1626
1626
  return e === null;
1627
1627
  }
1628
- var Si = new fe("tag:yaml.org,2002:null", {
1628
+ var Si = new de("tag:yaml.org,2002:null", {
1629
1629
  kind: "scalar",
1630
1630
  resolve: Xa,
1631
1631
  construct: eo,
@@ -1661,7 +1661,7 @@ function ro(e) {
1661
1661
  function ao(e) {
1662
1662
  return Object.prototype.toString.call(e) === "[object Boolean]";
1663
1663
  }
1664
- var Ii = new fe("tag:yaml.org,2002:bool", {
1664
+ var Ii = new de("tag:yaml.org,2002:bool", {
1665
1665
  kind: "scalar",
1666
1666
  resolve: io,
1667
1667
  construct: ro,
@@ -1750,9 +1750,9 @@ function co(e) {
1750
1750
  return t * parseInt(i, 10);
1751
1751
  }
1752
1752
  function uo(e) {
1753
- return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !ce.isNegativeZero(e);
1753
+ return Object.prototype.toString.call(e) === "[object Number]" && e % 1 === 0 && !le.isNegativeZero(e);
1754
1754
  }
1755
- var Ai = new fe("tag:yaml.org,2002:int", {
1755
+ var Ai = new de("tag:yaml.org,2002:int", {
1756
1756
  kind: "scalar",
1757
1757
  resolve: so,
1758
1758
  construct: co,
@@ -1822,14 +1822,14 @@ function yo(e, i) {
1822
1822
  case "camelcase":
1823
1823
  return "-.Inf";
1824
1824
  }
1825
- else if (ce.isNegativeZero(e))
1825
+ else if (le.isNegativeZero(e))
1826
1826
  return "-0.0";
1827
1827
  return t = e.toString(10), go.test(t) ? t.replace("e", ".e") : t;
1828
1828
  }
1829
1829
  function vo(e) {
1830
- return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || ce.isNegativeZero(e));
1830
+ return Object.prototype.toString.call(e) === "[object Number]" && (e % 1 !== 0 || le.isNegativeZero(e));
1831
1831
  }
1832
- var xi = new fe("tag:yaml.org,2002:float", {
1832
+ var xi = new de("tag:yaml.org,2002:float", {
1833
1833
  kind: "scalar",
1834
1834
  resolve: fo,
1835
1835
  construct: mo,
@@ -1867,7 +1867,7 @@ function bo(e) {
1867
1867
  function wo(e) {
1868
1868
  return e.toISOString();
1869
1869
  }
1870
- var Oi = new fe("tag:yaml.org,2002:timestamp", {
1870
+ var Oi = new de("tag:yaml.org,2002:timestamp", {
1871
1871
  kind: "scalar",
1872
1872
  resolve: ho,
1873
1873
  construct: bo,
@@ -1877,7 +1877,7 @@ var Oi = new fe("tag:yaml.org,2002:timestamp", {
1877
1877
  function _o(e) {
1878
1878
  return e === "<<" || e === null;
1879
1879
  }
1880
- var Ei = new fe("tag:yaml.org,2002:merge", {
1880
+ var Ei = new de("tag:yaml.org,2002:merge", {
1881
1881
  kind: "scalar",
1882
1882
  resolve: _o
1883
1883
  }), St = `ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
@@ -1909,7 +1909,7 @@ function So(e) {
1909
1909
  function Io(e) {
1910
1910
  return Object.prototype.toString.call(e) === "[object Uint8Array]";
1911
1911
  }
1912
- var Fi = new fe("tag:yaml.org,2002:binary", {
1912
+ var Fi = new de("tag:yaml.org,2002:binary", {
1913
1913
  kind: "scalar",
1914
1914
  resolve: ko,
1915
1915
  construct: Co,
@@ -1941,7 +1941,7 @@ function To(e) {
1941
1941
  function jo(e) {
1942
1942
  return e !== null ? e : [];
1943
1943
  }
1944
- var Vi = new fe("tag:yaml.org,2002:omap", {
1944
+ var Vi = new de("tag:yaml.org,2002:omap", {
1945
1945
  kind: "sequence",
1946
1946
  resolve: To,
1947
1947
  construct: jo
@@ -1965,7 +1965,7 @@ function Oo(e) {
1965
1965
  a = o[i], r = Object.keys(a), n[i] = [r[0], a[r[0]]];
1966
1966
  return n;
1967
1967
  }
1968
- var Ni = new fe("tag:yaml.org,2002:pairs", {
1968
+ var Ni = new de("tag:yaml.org,2002:pairs", {
1969
1969
  kind: "sequence",
1970
1970
  resolve: $o,
1971
1971
  construct: Oo
@@ -1982,7 +1982,7 @@ function Fo(e) {
1982
1982
  function Vo(e) {
1983
1983
  return e !== null ? e : {};
1984
1984
  }
1985
- var qi = new fe("tag:yaml.org,2002:set", {
1985
+ var qi = new de("tag:yaml.org,2002:set", {
1986
1986
  kind: "mapping",
1987
1987
  resolve: Fo,
1988
1988
  construct: Vo
@@ -2001,16 +2001,16 @@ var qi = new fe("tag:yaml.org,2002:set", {
2001
2001
  function Bt(e) {
2002
2002
  return Object.prototype.toString.call(e);
2003
2003
  }
2004
- function _e(e) {
2004
+ function be(e) {
2005
2005
  return e === 10 || e === 13;
2006
2006
  }
2007
2007
  function Me(e) {
2008
2008
  return e === 9 || e === 32;
2009
2009
  }
2010
- function ve(e) {
2010
+ function ge(e) {
2011
2011
  return e === 9 || e === 32 || e === 10 || e === 13;
2012
2012
  }
2013
- function qe(e) {
2013
+ function Ve(e) {
2014
2014
  return e === 44 || e === 91 || e === 93 || e === 123 || e === 125;
2015
2015
  }
2016
2016
  function Ko(e) {
@@ -2034,8 +2034,8 @@ function Ro(e) {
2034
2034
  );
2035
2035
  }
2036
2036
  var Pi = new Array(256), Ri = new Array(256);
2037
- for (var Ve = 0; Ve < 256; Ve++)
2038
- Pi[Ve] = Pt(Ve) ? 1 : 0, Ri[Ve] = Pt(Ve);
2037
+ for (var Ee = 0; Ee < 256; Ee++)
2038
+ Pi[Ee] = Pt(Ee) ? 1 : 0, Ri[Ee] = Pt(Ee);
2039
2039
  function Do(e, i) {
2040
2040
  this.input = e, this.filename = i.filename || null, this.schema = i.schema || It, this.onWarning = i.onWarning || null, this.legacy = i.legacy || !1, this.json = i.json || !1, this.listener = i.listener || null, this.implicitTypes = this.schema.compiledImplicit, this.typeMap = this.schema.compiledTypeMap, this.length = e.length, this.position = 0, this.line = 0, this.lineStart = 0, this.lineIndent = 0, this.firstTabInLine = -1, this.documents = [];
2041
2041
  }
@@ -2048,9 +2048,9 @@ function Di(e, i) {
2048
2048
  line: e.line,
2049
2049
  column: e.position - e.lineStart
2050
2050
  };
2051
- return t.snippet = Ja(t), new ye(i, t);
2051
+ return t.snippet = Ja(t), new me(i, t);
2052
2052
  }
2053
- function E(e, i) {
2053
+ function F(e, i) {
2054
2054
  throw Di(e, i);
2055
2055
  }
2056
2056
  function et(e, i) {
@@ -2059,15 +2059,15 @@ function et(e, i) {
2059
2059
  var Rt = {
2060
2060
  YAML: function(e, i, t) {
2061
2061
  var a, r, n;
2062
- e.version !== null && E(e, "duplication of %YAML directive"), t.length !== 1 && E(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && E(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && E(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 && et(e, "unsupported YAML version of the document");
2062
+ e.version !== null && F(e, "duplication of %YAML directive"), t.length !== 1 && F(e, "YAML directive accepts exactly one argument"), a = /^([0-9]+)\.([0-9]+)$/.exec(t[0]), a === null && F(e, "ill-formed argument of the YAML directive"), r = parseInt(a[1], 10), n = parseInt(a[2], 10), r !== 1 && F(e, "unacceptable YAML version of the document"), e.version = t[0], e.checkLineBreaks = n < 2, n !== 1 && n !== 2 && et(e, "unsupported YAML version of the document");
2063
2063
  },
2064
2064
  TAG: function(e, i, t) {
2065
2065
  var a, r;
2066
- 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'), Bi.test(r) || E(e, "ill-formed tag prefix (second argument) of the TAG directive");
2066
+ t.length !== 2 && F(e, "TAG directive accepts exactly two arguments"), a = t[0], r = t[1], Ki.test(a) || F(e, "ill-formed tag handle (first argument) of the TAG directive"), Ae.call(e.tagMap, a) && F(e, 'there is a previously declared suffix for "' + a + '" tag handle'), Bi.test(r) || F(e, "ill-formed tag prefix (second argument) of the TAG directive");
2067
2067
  try {
2068
2068
  r = decodeURIComponent(r);
2069
2069
  } catch {
2070
- E(e, "tag prefix is malformed: " + r);
2070
+ F(e, "tag prefix is malformed: " + r);
2071
2071
  }
2072
2072
  e.tagMap[a] = r;
2073
2073
  }
@@ -2077,22 +2077,22 @@ function Se(e, i, t, a) {
2077
2077
  if (i < t) {
2078
2078
  if (s = e.input.slice(i, t), a)
2079
2079
  for (r = 0, n = s.length; r < n; r += 1)
2080
- o = s.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || E(e, "expected valid JSON character");
2080
+ o = s.charCodeAt(r), o === 9 || 32 <= o && o <= 1114111 || F(e, "expected valid JSON character");
2081
2081
  else
2082
- qo.test(s) && E(e, "the stream contains non-printable characters");
2082
+ qo.test(s) && F(e, "the stream contains non-printable characters");
2083
2083
  e.result += s;
2084
2084
  }
2085
2085
  }
2086
2086
  function Dt(e, i, t, a) {
2087
2087
  var r, n, o, s;
2088
- for (ce.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)
2088
+ for (le.isObject(t) || F(e, "cannot merge mappings; the provided source object is unacceptable"), r = Object.keys(t), o = 0, s = r.length; o < s; o += 1)
2089
2089
  n = r[o], Ae.call(i, n) || (i[n] = t[n], a[n] = !0);
2090
2090
  }
2091
- function Ue(e, i, t, a, r, n, o, s, l) {
2091
+ function Ne(e, i, t, a, r, n, o, s, l) {
2092
2092
  var d, m;
2093
2093
  if (Array.isArray(r))
2094
2094
  for (r = Array.prototype.slice.call(r), d = 0, m = r.length; d < m; d += 1)
2095
- Array.isArray(r[d]) && E(e, "nested arrays are not supported inside keys"), typeof r == "object" && Bt(r[d]) === "[object Object]" && (r[d] = "[object Object]");
2095
+ Array.isArray(r[d]) && F(e, "nested arrays are not supported inside keys"), typeof r == "object" && Bt(r[d]) === "[object Object]" && (r[d] = "[object Object]");
2096
2096
  if (typeof r == "object" && Bt(r) === "[object Object]" && (r = "[object Object]"), r = String(r), i === null && (i = {}), a === "tag:yaml.org,2002:merge")
2097
2097
  if (Array.isArray(n))
2098
2098
  for (d = 0, m = n.length; d < m; d += 1)
@@ -2100,7 +2100,7 @@ function Ue(e, i, t, a, r, n, o, s, l) {
2100
2100
  else
2101
2101
  Dt(e, i, n, t);
2102
2102
  else
2103
- !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, {
2103
+ !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, F(e, "duplicated mapping key")), r === "__proto__" ? Object.defineProperty(i, r, {
2104
2104
  configurable: !0,
2105
2105
  enumerable: !0,
2106
2106
  writable: !0,
@@ -2110,9 +2110,9 @@ function Ue(e, i, t, a, r, n, o, s, l) {
2110
2110
  }
2111
2111
  function At(e) {
2112
2112
  var i;
2113
- i = e.input.charCodeAt(e.position), i === 10 ? e.position++ : i === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : E(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2113
+ i = e.input.charCodeAt(e.position), i === 10 ? e.position++ : i === 13 ? (e.position++, e.input.charCodeAt(e.position) === 10 && e.position++) : F(e, "a line break is expected"), e.line += 1, e.lineStart = e.position, e.firstTabInLine = -1;
2114
2114
  }
2115
- function se(e, i, t) {
2115
+ function ne(e, i, t) {
2116
2116
  for (var a = 0, r = e.input.charCodeAt(e.position); r !== 0; ) {
2117
2117
  for (; Me(r); )
2118
2118
  r === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), r = e.input.charCodeAt(++e.position);
@@ -2120,7 +2120,7 @@ function se(e, i, t) {
2120
2120
  do
2121
2121
  r = e.input.charCodeAt(++e.position);
2122
2122
  while (r !== 10 && r !== 13 && r !== 0);
2123
- if (_e(r))
2123
+ if (be(r))
2124
2124
  for (At(e), r = e.input.charCodeAt(e.position), a++, e.lineIndent = 0; r === 32; )
2125
2125
  e.lineIndent++, r = e.input.charCodeAt(++e.position);
2126
2126
  else
@@ -2130,28 +2130,28 @@ function se(e, i, t) {
2130
2130
  }
2131
2131
  function at(e) {
2132
2132
  var i = e.position, t;
2133
- return t = e.input.charCodeAt(i), !!((t === 45 || t === 46) && t === e.input.charCodeAt(i + 1) && t === e.input.charCodeAt(i + 2) && (i += 3, t = e.input.charCodeAt(i), t === 0 || ve(t)));
2133
+ return t = e.input.charCodeAt(i), !!((t === 45 || t === 46) && t === e.input.charCodeAt(i + 1) && t === e.input.charCodeAt(i + 2) && (i += 3, t = e.input.charCodeAt(i), t === 0 || ge(t)));
2134
2134
  }
2135
2135
  function xt(e, i) {
2136
- i === 1 ? e.result += " " : i > 1 && (e.result += ce.repeat(`
2136
+ i === 1 ? e.result += " " : i > 1 && (e.result += le.repeat(`
2137
2137
  `, i - 1));
2138
2138
  }
2139
2139
  function Ho(e, i, t) {
2140
2140
  var a, r, n, o, s, l, d, m, p = e.kind, _ = e.result, h;
2141
- if (h = e.input.charCodeAt(e.position), ve(h) || qe(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), ve(r) || t && qe(r)))
2141
+ if (h = e.input.charCodeAt(e.position), ge(h) || Ve(h) || h === 35 || h === 38 || h === 42 || h === 33 || h === 124 || h === 62 || h === 39 || h === 34 || h === 37 || h === 64 || h === 96 || (h === 63 || h === 45) && (r = e.input.charCodeAt(e.position + 1), ge(r) || t && Ve(r)))
2142
2142
  return !1;
2143
2143
  for (e.kind = "scalar", e.result = "", n = o = e.position, s = !1; h !== 0; ) {
2144
2144
  if (h === 58) {
2145
- if (r = e.input.charCodeAt(e.position + 1), ve(r) || t && qe(r))
2145
+ if (r = e.input.charCodeAt(e.position + 1), ge(r) || t && Ve(r))
2146
2146
  break;
2147
2147
  } else if (h === 35) {
2148
- if (a = e.input.charCodeAt(e.position - 1), ve(a))
2148
+ if (a = e.input.charCodeAt(e.position - 1), ge(a))
2149
2149
  break;
2150
2150
  } else {
2151
- if (e.position === e.lineStart && at(e) || t && qe(h))
2151
+ if (e.position === e.lineStart && at(e) || t && Ve(h))
2152
2152
  break;
2153
- if (_e(h))
2154
- if (l = e.line, d = e.lineStart, m = e.lineIndent, se(e, !1, -1), e.lineIndent >= i) {
2153
+ if (be(h))
2154
+ if (l = e.line, d = e.lineStart, m = e.lineIndent, ne(e, !1, -1), e.lineIndent >= i) {
2155
2155
  s = !0, h = e.input.charCodeAt(e.position);
2156
2156
  continue;
2157
2157
  } else {
@@ -2174,8 +2174,8 @@ function zo(e, i) {
2174
2174
  else
2175
2175
  return !0;
2176
2176
  else
2177
- _e(t) ? (Se(e, a, r, !0), xt(e, se(e, !1, i)), a = r = e.position) : e.position === e.lineStart && at(e) ? E(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
2178
- E(e, "unexpected end of the stream within a single quoted scalar");
2177
+ be(t) ? (Se(e, a, r, !0), xt(e, ne(e, !1, i)), a = r = e.position) : e.position === e.lineStart && at(e) ? F(e, "unexpected end of the document within a single quoted scalar") : (e.position++, r = e.position);
2178
+ F(e, "unexpected end of the stream within a single quoted scalar");
2179
2179
  }
2180
2180
  function Jo(e, i) {
2181
2181
  var t, a, r, n, o, s;
@@ -2185,36 +2185,36 @@ function Jo(e, i) {
2185
2185
  if (s === 34)
2186
2186
  return Se(e, t, e.position, !0), e.position++, !0;
2187
2187
  if (s === 92) {
2188
- if (Se(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), _e(s))
2189
- se(e, !1, i);
2188
+ if (Se(e, t, e.position, !0), s = e.input.charCodeAt(++e.position), be(s))
2189
+ ne(e, !1, i);
2190
2190
  else if (s < 256 && Pi[s])
2191
2191
  e.result += Ri[s], e.position++;
2192
2192
  else if ((o = Bo(s)) > 0) {
2193
2193
  for (r = o, n = 0; r > 0; r--)
2194
- s = e.input.charCodeAt(++e.position), (o = Ko(s)) >= 0 ? n = (n << 4) + o : E(e, "expected hexadecimal character");
2194
+ s = e.input.charCodeAt(++e.position), (o = Ko(s)) >= 0 ? n = (n << 4) + o : F(e, "expected hexadecimal character");
2195
2195
  e.result += Ro(n), e.position++;
2196
2196
  } else
2197
- E(e, "unknown escape sequence");
2197
+ F(e, "unknown escape sequence");
2198
2198
  t = a = e.position;
2199
2199
  } else
2200
- _e(s) ? (Se(e, t, a, !0), xt(e, se(e, !1, i)), t = a = e.position) : e.position === e.lineStart && at(e) ? E(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2200
+ be(s) ? (Se(e, t, a, !0), xt(e, ne(e, !1, i)), t = a = e.position) : e.position === e.lineStart && at(e) ? F(e, "unexpected end of the document within a double quoted scalar") : (e.position++, a = e.position);
2201
2201
  }
2202
- E(e, "unexpected end of the stream within a double quoted scalar");
2202
+ F(e, "unexpected end of the stream within a double quoted scalar");
2203
2203
  }
2204
2204
  function Go(e, i) {
2205
- var t = !0, a, r, n, o = e.tag, s, l = e.anchor, d, m, p, _, h, A = /* @__PURE__ */ Object.create(null), b, M, S, x;
2206
- if (x = e.input.charCodeAt(e.position), x === 91)
2205
+ var t = !0, a, r, n, o = e.tag, s, l = e.anchor, d, m, p, _, h, x = /* @__PURE__ */ Object.create(null), b, $, S, T;
2206
+ if (T = e.input.charCodeAt(e.position), T === 91)
2207
2207
  m = 93, h = !1, s = [];
2208
- else if (x === 123)
2208
+ else if (T === 123)
2209
2209
  m = 125, h = !0, s = {};
2210
2210
  else
2211
2211
  return !1;
2212
- for (e.anchor !== null && (e.anchorMap[e.anchor] = s), x = e.input.charCodeAt(++e.position); x !== 0; ) {
2213
- if (se(e, !0, i), x = e.input.charCodeAt(e.position), x === m)
2212
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = s), T = e.input.charCodeAt(++e.position); T !== 0; ) {
2213
+ if (ne(e, !0, i), T = e.input.charCodeAt(e.position), T === m)
2214
2214
  return e.position++, e.tag = o, e.anchor = l, e.kind = h ? "mapping" : "sequence", e.result = s, !0;
2215
- t ? x === 44 && E(e, "expected the node content, but found ','") : E(e, "missed comma between flow collection entries"), M = b = S = null, p = _ = !1, x === 63 && (d = e.input.charCodeAt(e.position + 1), ve(d) && (p = _ = !0, e.position++, se(e, !0, i))), a = e.line, r = e.lineStart, n = e.position, Ke(e, i, Qe, !1, !0), M = e.tag, b = e.result, se(e, !0, i), x = e.input.charCodeAt(e.position), (_ || e.line === a) && x === 58 && (p = !0, x = e.input.charCodeAt(++e.position), se(e, !0, i), Ke(e, i, Qe, !1, !0), S = e.result), h ? Ue(e, s, A, M, b, S, a, r, n) : p ? s.push(Ue(e, null, A, M, b, S, a, r, n)) : s.push(b), se(e, !0, i), x = e.input.charCodeAt(e.position), x === 44 ? (t = !0, x = e.input.charCodeAt(++e.position)) : t = !1;
2215
+ t ? T === 44 && F(e, "expected the node content, but found ','") : F(e, "missed comma between flow collection entries"), $ = b = S = null, p = _ = !1, T === 63 && (d = e.input.charCodeAt(e.position + 1), ge(d) && (p = _ = !0, e.position++, ne(e, !0, i))), a = e.line, r = e.lineStart, n = e.position, Ue(e, i, Qe, !1, !0), $ = e.tag, b = e.result, ne(e, !0, i), T = e.input.charCodeAt(e.position), (_ || e.line === a) && T === 58 && (p = !0, T = e.input.charCodeAt(++e.position), ne(e, !0, i), Ue(e, i, Qe, !1, !0), S = e.result), h ? Ne(e, s, x, $, b, S, a, r, n) : p ? s.push(Ne(e, null, x, $, b, S, a, r, n)) : s.push(b), ne(e, !0, i), T = e.input.charCodeAt(e.position), T === 44 ? (t = !0, T = e.input.charCodeAt(++e.position)) : t = !1;
2216
2216
  }
2217
- E(e, "unexpected end of the stream within a flow collection");
2217
+ F(e, "unexpected end of the stream within a flow collection");
2218
2218
  }
2219
2219
  function Yo(e, i) {
2220
2220
  var t, a, r = ut, n = !1, o = !1, s = i, l = 0, d = !1, m, p;
@@ -2226,9 +2226,9 @@ function Yo(e, i) {
2226
2226
  return !1;
2227
2227
  for (e.kind = "scalar", e.result = ""; p !== 0; )
2228
2228
  if (p = e.input.charCodeAt(++e.position), p === 43 || p === 45)
2229
- ut === r ? r = p === 43 ? Kt : No : E(e, "repeat of a chomping mode identifier");
2229
+ ut === r ? r = p === 43 ? Kt : No : F(e, "repeat of a chomping mode identifier");
2230
2230
  else if ((m = Po(p)) >= 0)
2231
- 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);
2231
+ m === 0 ? F(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : o ? F(e, "repeat of an indentation width identifier") : (s = i + m - 1, o = !0);
2232
2232
  else
2233
2233
  break;
2234
2234
  if (Me(p)) {
@@ -2238,26 +2238,26 @@ function Yo(e, i) {
2238
2238
  if (p === 35)
2239
2239
  do
2240
2240
  p = e.input.charCodeAt(++e.position);
2241
- while (!_e(p) && p !== 0);
2241
+ while (!be(p) && p !== 0);
2242
2242
  }
2243
2243
  for (; p !== 0; ) {
2244
2244
  for (At(e), e.lineIndent = 0, p = e.input.charCodeAt(e.position); (!o || e.lineIndent < s) && p === 32; )
2245
2245
  e.lineIndent++, p = e.input.charCodeAt(++e.position);
2246
- if (!o && e.lineIndent > s && (s = e.lineIndent), _e(p)) {
2246
+ if (!o && e.lineIndent > s && (s = e.lineIndent), be(p)) {
2247
2247
  l++;
2248
2248
  continue;
2249
2249
  }
2250
2250
  if (e.lineIndent < s) {
2251
- r === Kt ? e.result += ce.repeat(`
2251
+ r === Kt ? e.result += le.repeat(`
2252
2252
  `, n ? 1 + l : l) : r === ut && n && (e.result += `
2253
2253
  `);
2254
2254
  break;
2255
2255
  }
2256
- for (a ? Me(p) ? (d = !0, e.result += ce.repeat(`
2257
- `, n ? 1 + l : l)) : d ? (d = !1, e.result += ce.repeat(`
2258
- `, l + 1)) : l === 0 ? n && (e.result += " ") : e.result += ce.repeat(`
2259
- `, l) : e.result += ce.repeat(`
2260
- `, n ? 1 + l : l), n = !0, o = !0, l = 0, t = e.position; !_e(p) && p !== 0; )
2256
+ for (a ? Me(p) ? (d = !0, e.result += le.repeat(`
2257
+ `, n ? 1 + l : l)) : d ? (d = !1, e.result += le.repeat(`
2258
+ `, l + 1)) : l === 0 ? n && (e.result += " ") : e.result += le.repeat(`
2259
+ `, l) : e.result += le.repeat(`
2260
+ `, n ? 1 + l : l), n = !0, o = !0, l = 0, t = e.position; !be(p) && p !== 0; )
2261
2261
  p = e.input.charCodeAt(++e.position);
2262
2262
  Se(e, t, e.position, !1);
2263
2263
  }
@@ -2267,141 +2267,141 @@ function Ht(e, i) {
2267
2267
  var t, a = e.tag, r = e.anchor, n = [], o, s = !1, l;
2268
2268
  if (e.firstTabInLine !== -1)
2269
2269
  return !1;
2270
- for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, E(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !ve(o)))); ) {
2271
- if (s = !0, e.position++, se(e, !0, -1) && e.lineIndent <= i) {
2270
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = n), l = e.input.charCodeAt(e.position); l !== 0 && (e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), !(l !== 45 || (o = e.input.charCodeAt(e.position + 1), !ge(o)))); ) {
2271
+ if (s = !0, e.position++, ne(e, !0, -1) && e.lineIndent <= i) {
2272
2272
  n.push(null), l = e.input.charCodeAt(e.position);
2273
2273
  continue;
2274
2274
  }
2275
- if (t = e.line, Ke(e, i, Li, !1, !0), n.push(e.result), se(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && l !== 0)
2276
- E(e, "bad indentation of a sequence entry");
2275
+ if (t = e.line, Ue(e, i, Li, !1, !0), n.push(e.result), ne(e, !0, -1), l = e.input.charCodeAt(e.position), (e.line === t || e.lineIndent > i) && l !== 0)
2276
+ F(e, "bad indentation of a sequence entry");
2277
2277
  else if (e.lineIndent < i)
2278
2278
  break;
2279
2279
  }
2280
2280
  return s ? (e.tag = a, e.anchor = r, e.kind = "sequence", e.result = n, !0) : !1;
2281
2281
  }
2282
2282
  function Wo(e, i, t) {
2283
- var a, r, n, o, s, l, d = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), h = null, A = null, b = null, M = !1, S = !1, x;
2283
+ var a, r, n, o, s, l, d = e.tag, m = e.anchor, p = {}, _ = /* @__PURE__ */ Object.create(null), h = null, x = null, b = null, $ = !1, S = !1, T;
2284
2284
  if (e.firstTabInLine !== -1)
2285
2285
  return !1;
2286
- for (e.anchor !== null && (e.anchorMap[e.anchor] = p), x = e.input.charCodeAt(e.position); x !== 0; ) {
2287
- if (!M && 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, (x === 63 || x === 58) && ve(a))
2288
- x === 63 ? (M && (Ue(e, p, _, h, A, null, o, s, l), h = A = b = null), S = !0, M = !0, r = !0) : M ? (M = !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, x = a;
2286
+ for (e.anchor !== null && (e.anchorMap[e.anchor] = p), T = e.input.charCodeAt(e.position); T !== 0; ) {
2287
+ if (!$ && e.firstTabInLine !== -1 && (e.position = e.firstTabInLine, F(e, "tab characters must not be used in indentation")), a = e.input.charCodeAt(e.position + 1), n = e.line, (T === 63 || T === 58) && ge(a))
2288
+ T === 63 ? ($ && (Ne(e, p, _, h, x, null, o, s, l), h = x = b = null), S = !0, $ = !0, r = !0) : $ ? ($ = !1, r = !0) : F(e, "incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"), e.position += 1, T = a;
2289
2289
  else {
2290
- if (o = e.line, s = e.lineStart, l = e.position, !Ke(e, t, Ui, !1, !0))
2290
+ if (o = e.line, s = e.lineStart, l = e.position, !Ue(e, t, Ui, !1, !0))
2291
2291
  break;
2292
2292
  if (e.line === n) {
2293
- for (x = e.input.charCodeAt(e.position); Me(x); )
2294
- x = e.input.charCodeAt(++e.position);
2295
- if (x === 58)
2296
- x = e.input.charCodeAt(++e.position), ve(x) || E(e, "a whitespace character is expected after the key-value separator within a block mapping"), M && (Ue(e, p, _, h, A, null, o, s, l), h = A = b = null), S = !0, M = !1, r = !1, h = e.tag, A = e.result;
2293
+ for (T = e.input.charCodeAt(e.position); Me(T); )
2294
+ T = e.input.charCodeAt(++e.position);
2295
+ if (T === 58)
2296
+ T = e.input.charCodeAt(++e.position), ge(T) || F(e, "a whitespace character is expected after the key-value separator within a block mapping"), $ && (Ne(e, p, _, h, x, null, o, s, l), h = x = b = null), S = !0, $ = !1, r = !1, h = e.tag, x = e.result;
2297
2297
  else if (S)
2298
- E(e, "can not read an implicit mapping pair; a colon is missed");
2298
+ F(e, "can not read an implicit mapping pair; a colon is missed");
2299
2299
  else
2300
2300
  return e.tag = d, e.anchor = m, !0;
2301
2301
  } else if (S)
2302
- E(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2302
+ F(e, "can not read a block mapping entry; a multiline key may not be an implicit key");
2303
2303
  else
2304
2304
  return e.tag = d, e.anchor = m, !0;
2305
2305
  }
2306
- if ((e.line === n || e.lineIndent > i) && (M && (o = e.line, s = e.lineStart, l = e.position), Ke(e, i, Xe, !0, r) && (M ? A = e.result : b = e.result), M || (Ue(e, p, _, h, A, b, o, s, l), h = A = b = null), se(e, !0, -1), x = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && x !== 0)
2307
- E(e, "bad indentation of a mapping entry");
2306
+ if ((e.line === n || e.lineIndent > i) && ($ && (o = e.line, s = e.lineStart, l = e.position), Ue(e, i, Xe, !0, r) && ($ ? x = e.result : b = e.result), $ || (Ne(e, p, _, h, x, b, o, s, l), h = x = b = null), ne(e, !0, -1), T = e.input.charCodeAt(e.position)), (e.line === n || e.lineIndent > i) && T !== 0)
2307
+ F(e, "bad indentation of a mapping entry");
2308
2308
  else if (e.lineIndent < i)
2309
2309
  break;
2310
2310
  }
2311
- return M && Ue(e, p, _, h, A, null, o, s, l), S && (e.tag = d, e.anchor = m, e.kind = "mapping", e.result = p), S;
2311
+ return $ && Ne(e, p, _, h, x, null, o, s, l), S && (e.tag = d, e.anchor = m, e.kind = "mapping", e.result = p), S;
2312
2312
  }
2313
2313
  function Zo(e) {
2314
2314
  var i, t = !1, a = !1, r, n, o;
2315
2315
  if (o = e.input.charCodeAt(e.position), o !== 33)
2316
2316
  return !1;
2317
- if (e.tag !== null && E(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (a = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", i = e.position, t) {
2317
+ if (e.tag !== null && F(e, "duplication of a tag property"), o = e.input.charCodeAt(++e.position), o === 60 ? (t = !0, o = e.input.charCodeAt(++e.position)) : o === 33 ? (a = !0, r = "!!", o = e.input.charCodeAt(++e.position)) : r = "!", i = e.position, t) {
2318
2318
  do
2319
2319
  o = e.input.charCodeAt(++e.position);
2320
2320
  while (o !== 0 && o !== 62);
2321
- e.position < e.length ? (n = e.input.slice(i, e.position), o = e.input.charCodeAt(++e.position)) : E(e, "unexpected end of the stream within a verbatim tag");
2321
+ e.position < e.length ? (n = e.input.slice(i, e.position), o = e.input.charCodeAt(++e.position)) : F(e, "unexpected end of the stream within a verbatim tag");
2322
2322
  } else {
2323
- for (; o !== 0 && !ve(o); )
2324
- 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);
2325
- n = e.input.slice(i, e.position), Lo.test(n) && E(e, "tag suffix cannot contain flow indicator characters");
2323
+ for (; o !== 0 && !ge(o); )
2324
+ o === 33 && (a ? F(e, "tag suffix cannot contain exclamation marks") : (r = e.input.slice(i - 1, e.position + 1), Ki.test(r) || F(e, "named tag handle cannot contain such characters"), a = !0, i = e.position + 1)), o = e.input.charCodeAt(++e.position);
2325
+ n = e.input.slice(i, e.position), Lo.test(n) && F(e, "tag suffix cannot contain flow indicator characters");
2326
2326
  }
2327
- n && !Bi.test(n) && E(e, "tag name cannot contain such characters: " + n);
2327
+ n && !Bi.test(n) && F(e, "tag name cannot contain such characters: " + n);
2328
2328
  try {
2329
2329
  n = decodeURIComponent(n);
2330
2330
  } catch {
2331
- E(e, "tag name is malformed: " + n);
2331
+ F(e, "tag name is malformed: " + n);
2332
2332
  }
2333
- 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;
2333
+ 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 : F(e, 'undeclared tag handle "' + r + '"'), !0;
2334
2334
  }
2335
2335
  function Qo(e) {
2336
2336
  var i, t;
2337
2337
  if (t = e.input.charCodeAt(e.position), t !== 38)
2338
2338
  return !1;
2339
- for (e.anchor !== null && E(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), i = e.position; t !== 0 && !ve(t) && !qe(t); )
2339
+ for (e.anchor !== null && F(e, "duplication of an anchor property"), t = e.input.charCodeAt(++e.position), i = e.position; t !== 0 && !ge(t) && !Ve(t); )
2340
2340
  t = e.input.charCodeAt(++e.position);
2341
- 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;
2341
+ return e.position === i && F(e, "name of an anchor node must contain at least one character"), e.anchor = e.input.slice(i, e.position), !0;
2342
2342
  }
2343
2343
  function Xo(e) {
2344
2344
  var i, t, a;
2345
2345
  if (a = e.input.charCodeAt(e.position), a !== 42)
2346
2346
  return !1;
2347
- for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !ve(a) && !qe(a); )
2347
+ for (a = e.input.charCodeAt(++e.position), i = e.position; a !== 0 && !ge(a) && !Ve(a); )
2348
2348
  a = e.input.charCodeAt(++e.position);
2349
- 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], se(e, !0, -1), !0;
2349
+ return e.position === i && F(e, "name of an alias node must contain at least one character"), t = e.input.slice(i, e.position), Ae.call(e.anchorMap, t) || F(e, 'unidentified alias "' + t + '"'), e.result = e.anchorMap[t], ne(e, !0, -1), !0;
2350
2350
  }
2351
- function Ke(e, i, t, a, r) {
2352
- var n, o, s, l = 1, d = !1, m = !1, p, _, h, A, b, M;
2353
- if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = s = Xe === t || Li === t, a && se(e, !0, -1) && (d = !0, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)), l === 1)
2351
+ function Ue(e, i, t, a, r) {
2352
+ var n, o, s, l = 1, d = !1, m = !1, p, _, h, x, b, $;
2353
+ if (e.listener !== null && e.listener("open", e), e.tag = null, e.anchor = null, e.kind = null, e.result = null, n = o = s = Xe === t || Li === t, a && ne(e, !0, -1) && (d = !0, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)), l === 1)
2354
2354
  for (; Zo(e) || Qo(e); )
2355
- se(e, !0, -1) ? (d = !0, s = n, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)) : s = !1;
2356
- if (s && (s = d || r), (l === 1 || Xe === t) && (Qe === t || Ui === t ? b = i : b = i + 1, M = e.position - e.lineStart, l === 1 ? s && (Ht(e, M) || Wo(e, M, b)) || Go(e, b) ? m = !0 : (o && Yo(e, b) || zo(e, b) || Jo(e, b) ? m = !0 : Xo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && E(e, "alias node should not have any properties")) : Ho(e, b, Qe === t) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = s && Ht(e, M))), e.tag === null)
2355
+ ne(e, !0, -1) ? (d = !0, s = n, e.lineIndent > i ? l = 1 : e.lineIndent === i ? l = 0 : e.lineIndent < i && (l = -1)) : s = !1;
2356
+ if (s && (s = d || r), (l === 1 || Xe === t) && (Qe === t || Ui === t ? b = i : b = i + 1, $ = e.position - e.lineStart, l === 1 ? s && (Ht(e, $) || Wo(e, $, b)) || Go(e, b) ? m = !0 : (o && Yo(e, b) || zo(e, b) || Jo(e, b) ? m = !0 : Xo(e) ? (m = !0, (e.tag !== null || e.anchor !== null) && F(e, "alias node should not have any properties")) : Ho(e, b, Qe === t) && (m = !0, e.tag === null && (e.tag = "?")), e.anchor !== null && (e.anchorMap[e.anchor] = e.result)) : l === 0 && (m = s && Ht(e, $))), e.tag === null)
2357
2357
  e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2358
2358
  else if (e.tag === "?") {
2359
- 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)
2360
- if (A = e.implicitTypes[p], A.resolve(e.result)) {
2361
- e.result = A.construct(e.result), e.tag = A.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2359
+ for (e.result !== null && e.kind !== "scalar" && F(e, 'unacceptable node kind for !<?> tag; it should be "scalar", not "' + e.kind + '"'), p = 0, _ = e.implicitTypes.length; p < _; p += 1)
2360
+ if (x = e.implicitTypes[p], x.resolve(e.result)) {
2361
+ e.result = x.construct(e.result), e.tag = x.tag, e.anchor !== null && (e.anchorMap[e.anchor] = e.result);
2362
2362
  break;
2363
2363
  }
2364
2364
  } else if (e.tag !== "!") {
2365
2365
  if (Ae.call(e.typeMap[e.kind || "fallback"], e.tag))
2366
- A = e.typeMap[e.kind || "fallback"][e.tag];
2366
+ x = e.typeMap[e.kind || "fallback"][e.tag];
2367
2367
  else
2368
- for (A = null, h = e.typeMap.multi[e.kind || "fallback"], p = 0, _ = h.length; p < _; p += 1)
2368
+ for (x = null, h = e.typeMap.multi[e.kind || "fallback"], p = 0, _ = h.length; p < _; p += 1)
2369
2369
  if (e.tag.slice(0, h[p].tag.length) === h[p].tag) {
2370
- A = h[p];
2370
+ x = h[p];
2371
2371
  break;
2372
2372
  }
2373
- A || E(e, "unknown tag !<" + e.tag + ">"), e.result !== null && A.kind !== e.kind && E(e, "unacceptable node kind for !<" + e.tag + '> tag; it should be "' + A.kind + '", not "' + e.kind + '"'), A.resolve(e.result, e.tag) ? (e.result = A.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");
2373
+ x || F(e, "unknown tag !<" + e.tag + ">"), e.result !== null && x.kind !== e.kind && F(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)) : F(e, "cannot resolve a node with !<" + e.tag + "> explicit tag");
2374
2374
  }
2375
2375
  return e.listener !== null && e.listener("close", e), e.tag !== null || e.anchor !== null || m;
2376
2376
  }
2377
2377
  function en(e) {
2378
2378
  var i = e.position, t, a, r, n = !1, o;
2379
- for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (se(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2380
- for (n = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ve(o); )
2379
+ for (e.version = null, e.checkLineBreaks = e.legacy, e.tagMap = /* @__PURE__ */ Object.create(null), e.anchorMap = /* @__PURE__ */ Object.create(null); (o = e.input.charCodeAt(e.position)) !== 0 && (ne(e, !0, -1), o = e.input.charCodeAt(e.position), !(e.lineIndent > 0 || o !== 37)); ) {
2380
+ for (n = !0, o = e.input.charCodeAt(++e.position), t = e.position; o !== 0 && !ge(o); )
2381
2381
  o = e.input.charCodeAt(++e.position);
2382
- for (a = e.input.slice(t, e.position), r = [], a.length < 1 && E(e, "directive name must not be less than one character in length"); o !== 0; ) {
2382
+ for (a = e.input.slice(t, e.position), r = [], a.length < 1 && F(e, "directive name must not be less than one character in length"); o !== 0; ) {
2383
2383
  for (; Me(o); )
2384
2384
  o = e.input.charCodeAt(++e.position);
2385
2385
  if (o === 35) {
2386
2386
  do
2387
2387
  o = e.input.charCodeAt(++e.position);
2388
- while (o !== 0 && !_e(o));
2388
+ while (o !== 0 && !be(o));
2389
2389
  break;
2390
2390
  }
2391
- if (_e(o))
2391
+ if (be(o))
2392
2392
  break;
2393
- for (t = e.position; o !== 0 && !ve(o); )
2393
+ for (t = e.position; o !== 0 && !ge(o); )
2394
2394
  o = e.input.charCodeAt(++e.position);
2395
2395
  r.push(e.input.slice(t, e.position));
2396
2396
  }
2397
2397
  o !== 0 && At(e), Ae.call(Rt, a) ? Rt[a](e, a, r) : et(e, 'unknown document directive "' + a + '"');
2398
2398
  }
2399
- if (se(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, se(e, !0, -1)) : n && E(e, "directives end mark is expected"), Ke(e, e.lineIndent - 1, Xe, !1, !0), se(e, !0, -1), e.checkLineBreaks && Uo.test(e.input.slice(i, e.position)) && et(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && at(e)) {
2400
- e.input.charCodeAt(e.position) === 46 && (e.position += 3, se(e, !0, -1));
2399
+ if (ne(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, ne(e, !0, -1)) : n && F(e, "directives end mark is expected"), Ue(e, e.lineIndent - 1, Xe, !1, !0), ne(e, !0, -1), e.checkLineBreaks && Uo.test(e.input.slice(i, e.position)) && et(e, "non-ASCII line breaks are interpreted as content"), e.documents.push(e.result), e.position === e.lineStart && at(e)) {
2400
+ e.input.charCodeAt(e.position) === 46 && (e.position += 3, ne(e, !0, -1));
2401
2401
  return;
2402
2402
  }
2403
2403
  if (e.position < e.length - 1)
2404
- E(e, "end of the stream or a document separator is expected");
2404
+ F(e, "end of the stream or a document separator is expected");
2405
2405
  else
2406
2406
  return;
2407
2407
  }
@@ -2409,7 +2409,7 @@ function Hi(e, i) {
2409
2409
  e = String(e), i = i || {}, e.length !== 0 && (e.charCodeAt(e.length - 1) !== 10 && e.charCodeAt(e.length - 1) !== 13 && (e += `
2410
2410
  `), e.charCodeAt(0) === 65279 && (e = e.slice(1)));
2411
2411
  var t = new Do(e, i), a = e.indexOf("\0");
2412
- for (a !== -1 && (t.position = a, E(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2412
+ for (a !== -1 && (t.position = a, F(t, "null byte is not allowed in input")), t.input += "\0"; t.input.charCodeAt(t.position) === 32; )
2413
2413
  t.lineIndent += 1, t.position += 1;
2414
2414
  for (; t.position < t.length - 1; )
2415
2415
  en(t);
@@ -2428,28 +2428,28 @@ function rn(e, i) {
2428
2428
  if (t.length !== 0) {
2429
2429
  if (t.length === 1)
2430
2430
  return t[0];
2431
- throw new ye("expected a single document in the stream, but found more");
2431
+ throw new me("expected a single document in the stream, but found more");
2432
2432
  }
2433
2433
  }
2434
2434
  var an = tn, on = rn, zi = {
2435
2435
  loadAll: an,
2436
2436
  load: on
2437
- }, Ji = Object.prototype.toString, Gi = Object.prototype.hasOwnProperty, Tt = 65279, nn = 9, Je = 10, ln = 13, sn = 32, cn = 33, un = 34, mt = 35, dn = 37, pn = 38, fn = 39, mn = 42, Yi = 44, gn = 45, tt = 58, yn = 61, vn = 62, hn = 63, bn = 64, Wi = 91, Zi = 93, wn = 96, Qi = 123, _n = 124, Xi = 125, ge = {};
2438
- ge[0] = "\\0";
2439
- ge[7] = "\\a";
2440
- ge[8] = "\\b";
2441
- ge[9] = "\\t";
2442
- ge[10] = "\\n";
2443
- ge[11] = "\\v";
2444
- ge[12] = "\\f";
2445
- ge[13] = "\\r";
2446
- ge[27] = "\\e";
2447
- ge[34] = '\\"';
2448
- ge[92] = "\\\\";
2449
- ge[133] = "\\N";
2450
- ge[160] = "\\_";
2451
- ge[8232] = "\\L";
2452
- ge[8233] = "\\P";
2437
+ }, Ji = Object.prototype.toString, Gi = Object.prototype.hasOwnProperty, Tt = 65279, nn = 9, Je = 10, ln = 13, sn = 32, cn = 33, un = 34, mt = 35, dn = 37, pn = 38, fn = 39, mn = 42, Yi = 44, gn = 45, tt = 58, yn = 61, vn = 62, hn = 63, bn = 64, Wi = 91, Zi = 93, wn = 96, Qi = 123, _n = 124, Xi = 125, fe = {};
2438
+ fe[0] = "\\0";
2439
+ fe[7] = "\\a";
2440
+ fe[8] = "\\b";
2441
+ fe[9] = "\\t";
2442
+ fe[10] = "\\n";
2443
+ fe[11] = "\\v";
2444
+ fe[12] = "\\f";
2445
+ fe[13] = "\\r";
2446
+ fe[27] = "\\e";
2447
+ fe[34] = '\\"';
2448
+ fe[92] = "\\\\";
2449
+ fe[133] = "\\N";
2450
+ fe[160] = "\\_";
2451
+ fe[8232] = "\\L";
2452
+ fe[8233] = "\\P";
2453
2453
  var kn = [
2454
2454
  "y",
2455
2455
  "Y",
@@ -2485,15 +2485,15 @@ function In(e) {
2485
2485
  else if (e <= 4294967295)
2486
2486
  t = "U", a = 8;
2487
2487
  else
2488
- throw new ye("code point within a string may not be greater than 0xFFFFFFFF");
2489
- return "\\" + t + ce.repeat("0", a - i.length) + i;
2488
+ throw new me("code point within a string may not be greater than 0xFFFFFFFF");
2489
+ return "\\" + t + le.repeat("0", a - i.length) + i;
2490
2490
  }
2491
2491
  var An = 1, Ge = 2;
2492
2492
  function xn(e) {
2493
- this.schema = e.schema || It, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = ce.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Sn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ge : An, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2493
+ this.schema = e.schema || It, this.indent = Math.max(1, e.indent || 2), this.noArrayIndent = e.noArrayIndent || !1, this.skipInvalid = e.skipInvalid || !1, this.flowLevel = le.isNothing(e.flowLevel) ? -1 : e.flowLevel, this.styleMap = Sn(this.schema, e.styles || null), this.sortKeys = e.sortKeys || !1, this.lineWidth = e.lineWidth || 80, this.noRefs = e.noRefs || !1, this.noCompatMode = e.noCompatMode || !1, this.condenseFlow = e.condenseFlow || !1, this.quotingType = e.quotingType === '"' ? Ge : An, this.forceQuotes = e.forceQuotes || !1, this.replacer = typeof e.replacer == "function" ? e.replacer : null, this.implicitTypes = this.schema.compiledImplicit, this.explicitTypes = this.schema.compiledExplicit, this.tag = null, this.result = "", this.duplicates = [], this.usedDuplicates = null;
2494
2494
  }
2495
2495
  function zt(e, i) {
2496
- for (var t = ce.repeat(" ", i), a = 0, r = -1, n = "", o, s = e.length; a < s; )
2496
+ for (var t = le.repeat(" ", i), a = 0, r = -1, n = "", o, s = e.length; a < s; )
2497
2497
  r = e.indexOf(`
2498
2498
  `, a), r === -1 ? (o = e.slice(a), a = s) : (o = e.slice(a, r + 1), a = r + 1), o.length && o !== `
2499
2499
  ` && (n += t), n += o;
@@ -2501,7 +2501,7 @@ function zt(e, i) {
2501
2501
  }
2502
2502
  function gt(e, i) {
2503
2503
  return `
2504
- ` + ce.repeat(" ", e.indent * i);
2504
+ ` + le.repeat(" ", e.indent * i);
2505
2505
  }
2506
2506
  function Tn(e, i) {
2507
2507
  var t, a, r;
@@ -2543,27 +2543,27 @@ function er(e) {
2543
2543
  var i = /^\n* /;
2544
2544
  return i.test(e);
2545
2545
  }
2546
- var tr = 1, yt = 2, ir = 3, rr = 4, Ne = 5;
2546
+ var tr = 1, yt = 2, ir = 3, rr = 4, Fe = 5;
2547
2547
  function $n(e, i, t, a, r, n, o, s) {
2548
- var l, d = 0, m = null, p = !1, _ = !1, h = a !== -1, A = -1, b = jn(Pe(e, 0)) && Mn(Pe(e, e.length - 1));
2548
+ var l, d = 0, m = null, p = !1, _ = !1, h = a !== -1, x = -1, b = jn(Pe(e, 0)) && Mn(Pe(e, e.length - 1));
2549
2549
  if (i || o)
2550
2550
  for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
2551
2551
  if (d = Pe(e, l), !Ye(d))
2552
- return Ne;
2552
+ return Fe;
2553
2553
  b = b && Gt(d, m, s), m = d;
2554
2554
  }
2555
2555
  else {
2556
2556
  for (l = 0; l < e.length; d >= 65536 ? l += 2 : l++) {
2557
2557
  if (d = Pe(e, l), d === Je)
2558
2558
  p = !0, h && (_ = _ || // Foldable line = too long, and not more-indented.
2559
- l - A - 1 > a && e[A + 1] !== " ", A = l);
2559
+ l - x - 1 > a && e[x + 1] !== " ", x = l);
2560
2560
  else if (!Ye(d))
2561
- return Ne;
2561
+ return Fe;
2562
2562
  b = b && Gt(d, m, s), m = d;
2563
2563
  }
2564
- _ = _ || h && l - A - 1 > a && e[A + 1] !== " ";
2564
+ _ = _ || h && l - x - 1 > a && e[x + 1] !== " ";
2565
2565
  }
2566
- return !p && !_ ? b && !o && !r(e) ? tr : n === Ge ? Ne : yt : t > 9 && er(e) ? Ne : o ? n === Ge ? Ne : yt : _ ? rr : ir;
2566
+ return !p && !_ ? b && !o && !r(e) ? tr : n === Ge ? Fe : yt : t > 9 && er(e) ? Fe : o ? n === Ge ? Fe : yt : _ ? rr : ir;
2567
2567
  }
2568
2568
  function On(e, i, t, a, r) {
2569
2569
  e.dump = function() {
@@ -2593,10 +2593,10 @@ function On(e, i, t, a, r) {
2593
2593
  return "|" + Yt(i, e.indent) + Wt(zt(i, n));
2594
2594
  case rr:
2595
2595
  return ">" + Yt(i, e.indent) + Wt(zt(En(i, o), n));
2596
- case Ne:
2596
+ case Fe:
2597
2597
  return '"' + Fn(i) + '"';
2598
2598
  default:
2599
- throw new ye("impossible error: invalid scalar style");
2599
+ throw new me("impossible error: invalid scalar style");
2600
2600
  }
2601
2601
  }();
2602
2602
  }
@@ -2637,25 +2637,25 @@ function Zt(e, i) {
2637
2637
  }
2638
2638
  function Fn(e) {
2639
2639
  for (var i = "", t = 0, a, r = 0; r < e.length; t >= 65536 ? r += 2 : r++)
2640
- t = Pe(e, r), a = ge[t], !a && Ye(t) ? (i += e[r], t >= 65536 && (i += e[r + 1])) : i += a || In(t);
2640
+ t = Pe(e, r), a = fe[t], !a && Ye(t) ? (i += e[r], t >= 65536 && (i += e[r + 1])) : i += a || In(t);
2641
2641
  return i;
2642
2642
  }
2643
2643
  function Vn(e, i, t) {
2644
2644
  var a = "", r = e.tag, n, o, s;
2645
2645
  for (n = 0, o = t.length; n < o; n += 1)
2646
- s = t[n], e.replacer && (s = e.replacer.call(t, String(n), s)), (Ce(e, i, s, !1, !1) || typeof s > "u" && Ce(e, i, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
2646
+ s = t[n], e.replacer && (s = e.replacer.call(t, String(n), s)), (ke(e, i, s, !1, !1) || typeof s > "u" && ke(e, i, null, !1, !1)) && (a !== "" && (a += "," + (e.condenseFlow ? "" : " ")), a += e.dump);
2647
2647
  e.tag = r, e.dump = "[" + a + "]";
2648
2648
  }
2649
2649
  function Qt(e, i, t, a) {
2650
2650
  var r = "", n = e.tag, o, s, l;
2651
2651
  for (o = 0, s = t.length; o < s; o += 1)
2652
- l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (Ce(e, i + 1, l, !0, !0, !1, !0) || typeof l > "u" && Ce(e, i + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += gt(e, i)), e.dump && Je === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2652
+ l = t[o], e.replacer && (l = e.replacer.call(t, String(o), l)), (ke(e, i + 1, l, !0, !0, !1, !0) || typeof l > "u" && ke(e, i + 1, null, !0, !0, !1, !0)) && ((!a || r !== "") && (r += gt(e, i)), e.dump && Je === e.dump.charCodeAt(0) ? r += "-" : r += "- ", r += e.dump);
2653
2653
  e.tag = n, e.dump = r || "[]";
2654
2654
  }
2655
2655
  function Nn(e, i, t) {
2656
2656
  var a = "", r = e.tag, n = Object.keys(t), o, s, l, d, m;
2657
2657
  for (o = 0, s = n.length; o < s; o += 1)
2658
- m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], d = t[l], e.replacer && (d = e.replacer.call(t, l, d)), Ce(e, i, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), Ce(e, i, d, !1, !1) && (m += e.dump, a += m));
2658
+ m = "", a !== "" && (m += ", "), e.condenseFlow && (m += '"'), l = n[o], d = t[l], e.replacer && (d = e.replacer.call(t, l, d)), ke(e, i, l, !1, !1) && (e.dump.length > 1024 && (m += "? "), m += e.dump + (e.condenseFlow ? '"' : "") + ":" + (e.condenseFlow ? "" : " "), ke(e, i, d, !1, !1) && (m += e.dump, a += m));
2659
2659
  e.tag = r, e.dump = "{" + a + "}";
2660
2660
  }
2661
2661
  function qn(e, i, t, a) {
@@ -2665,9 +2665,9 @@ function qn(e, i, t, a) {
2665
2665
  else if (typeof e.sortKeys == "function")
2666
2666
  o.sort(e.sortKeys);
2667
2667
  else if (e.sortKeys)
2668
- throw new ye("sortKeys must be a boolean or a function");
2668
+ throw new me("sortKeys must be a boolean or a function");
2669
2669
  for (s = 0, l = o.length; s < l; s += 1)
2670
- _ = "", (!a || r !== "") && (_ += gt(e, i)), d = o[s], m = t[d], e.replacer && (m = e.replacer.call(t, d, m)), Ce(e, i + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Je === e.dump.charCodeAt(0) ? _ += "?" : _ += "? "), _ += e.dump, p && (_ += gt(e, i)), Ce(e, i + 1, m, !0, p) && (e.dump && Je === e.dump.charCodeAt(0) ? _ += ":" : _ += ": ", _ += e.dump, r += _));
2670
+ _ = "", (!a || r !== "") && (_ += gt(e, i)), d = o[s], m = t[d], e.replacer && (m = e.replacer.call(t, d, m)), ke(e, i + 1, d, !0, !0, !0) && (p = e.tag !== null && e.tag !== "?" || e.dump && e.dump.length > 1024, p && (e.dump && Je === e.dump.charCodeAt(0) ? _ += "?" : _ += "? "), _ += e.dump, p && (_ += gt(e, i)), ke(e, i + 1, m, !0, p) && (e.dump && Je === e.dump.charCodeAt(0) ? _ += ":" : _ += ": ", _ += e.dump, r += _));
2671
2671
  e.tag = n, e.dump = r || "{}";
2672
2672
  }
2673
2673
  function Xt(e, i, t) {
@@ -2680,14 +2680,14 @@ function Xt(e, i, t) {
2680
2680
  else if (Gi.call(s.represent, l))
2681
2681
  a = s.represent[l](i, l);
2682
2682
  else
2683
- throw new ye("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2683
+ throw new me("!<" + s.tag + '> tag resolver accepts not "' + l + '" style');
2684
2684
  e.dump = a;
2685
2685
  }
2686
2686
  return !0;
2687
2687
  }
2688
2688
  return !1;
2689
2689
  }
2690
- function Ce(e, i, t, a, r, n, o) {
2690
+ function ke(e, i, t, a, r, n, o) {
2691
2691
  e.tag = null, e.dump = t, Xt(e, t, !1) || Xt(e, t, !0);
2692
2692
  var s = Ji.call(e.dump), l = a, d;
2693
2693
  a && (a = e.flowLevel < 0 || e.flowLevel > i);
@@ -2704,7 +2704,7 @@ function Ce(e, i, t, a, r, n, o) {
2704
2704
  else {
2705
2705
  if (s === "[object Undefined]" || e.skipInvalid)
2706
2706
  return !1;
2707
- throw new ye("unacceptable kind of an object to dump " + s);
2707
+ throw new me("unacceptable kind of an object to dump " + s);
2708
2708
  }
2709
2709
  e.tag !== null && e.tag !== "?" && (d = encodeURI(
2710
2710
  e.tag[0] === "!" ? e.tag.slice(1) : e.tag
@@ -2735,7 +2735,7 @@ function Ln(e, i) {
2735
2735
  var t = new xn(i);
2736
2736
  t.noRefs || Un(e, t);
2737
2737
  var a = e;
2738
- return t.replacer && (a = t.replacer.call({ "": a }, "", a)), Ce(t, 0, a, !0, !0) ? t.dump + `
2738
+ return t.replacer && (a = t.replacer.call({ "": a }, "", a)), ke(t, 0, a, !0, !0) ? t.dump + `
2739
2739
  ` : "";
2740
2740
  }
2741
2741
  var Kn = Ln, Bn = {
@@ -2746,7 +2746,7 @@ function jt(e, i) {
2746
2746
  throw new Error("Function yaml." + e + " is removed in js-yaml 4. Use yaml." + i + " instead, which is now safe by default.");
2747
2747
  };
2748
2748
  }
2749
- var Pn = fe, Rn = bi, Dn = Ci, Hn = Ti, zn = ji, Jn = It, Gn = zi.load, Yn = zi.loadAll, Wn = Bn.dump, Zn = ye, Qn = {
2749
+ var Pn = de, Rn = bi, Dn = Ci, Hn = Ti, zn = ji, Jn = It, Gn = zi.load, Yn = zi.loadAll, Wn = Bn.dump, Zn = me, Qn = {
2750
2750
  binary: Fi,
2751
2751
  float: xi,
2752
2752
  map: ki,
@@ -2786,17 +2786,17 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2786
2786
  }
2787
2787
  },
2788
2788
  setup(e) {
2789
- const i = e, t = T(() => i.yamlRecord);
2789
+ const i = e, t = j(() => i.yamlRecord);
2790
2790
  return (a, r) => {
2791
2791
  const n = L("KCodeBlock");
2792
- return v(), j("div", rl, [
2793
- i.yamlRecord ? (v(), R(n, {
2792
+ return v(), M("div", rl, [
2793
+ i.yamlRecord ? (v(), P(n, {
2794
2794
  key: 0,
2795
2795
  id: "yaml-codeblock",
2796
2796
  code: f(il).dump(t.value),
2797
2797
  language: "yaml",
2798
2798
  theme: "dark"
2799
- }, null, 8, ["code"])) : H("", !0)
2799
+ }, null, 8, ["code"])) : D("", !0)
2800
2800
  ]);
2801
2801
  };
2802
2802
  }
@@ -2845,29 +2845,29 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2845
2845
  }
2846
2846
  },
2847
2847
  setup(e) {
2848
- const i = e, t = rt(), { i18n: { t: a } } = ue.useI18n(), r = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), n = T(() => {
2848
+ const i = e, t = rt(), { i18n: { t: a } } = se.useI18n(), r = (o) => !!(o.tooltip || t[`${o.key}-label-tooltip`]), n = j(() => {
2849
2849
  if (!i.record)
2850
2850
  return i.record;
2851
2851
  const o = JSON.parse(JSON.stringify(i.record));
2852
2852
  return delete o.created_at, delete o.updated_at, o;
2853
2853
  });
2854
- return (o, s) => (v(), j(be, null, [
2855
- e.format === "structured" ? (v(), j("div", al, [
2856
- (v(!0), j(be, null, he(e.propListTypes, (l) => (v(), j("div", {
2854
+ return (o, s) => (v(), M(ve, null, [
2855
+ e.format === "structured" ? (v(), M("div", al, [
2856
+ (v(!0), M(ve, null, ye(e.propListTypes, (l) => (v(), M("div", {
2857
2857
  key: `config-card-details-${l}-props`,
2858
2858
  class: Ie(`config-card-details-${l}-props`),
2859
2859
  "data-testid": `config-card-details-${l}-props`
2860
2860
  }, [
2861
- l !== "basic" ? (v(), j("div", nl, $(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
2862
- (v(!0), j(be, null, he(e.propertyCollections[l], (d) => (v(), R(Ct, {
2861
+ l !== "basic" ? (v(), M("div", nl, O(l === "advanced" ? f(a)("baseConfigCard.sections.advanced") : f(a)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
2862
+ (v(!0), M(ve, null, ye(e.propertyCollections[l], (d) => (v(), P(Ct, {
2863
2863
  key: d.key,
2864
2864
  item: d
2865
2865
  }, je({
2866
2866
  label: y(() => [
2867
- X(o.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2867
+ Q(o.$slots, `${d.key}-label`, { row: d }, void 0, !0)
2868
2868
  ]),
2869
2869
  [d.key]: y(({ rowValue: m }) => [
2870
- X(o.$slots, d.key, {
2870
+ Q(o.$slots, d.key, {
2871
2871
  row: d,
2872
2872
  rowValue: m
2873
2873
  }, void 0, !0)
@@ -2877,27 +2877,27 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2877
2877
  r(d) ? {
2878
2878
  name: "label-tooltip",
2879
2879
  fn: y(() => [
2880
- X(o.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2880
+ Q(o.$slots, `${d.key}-label-tooltip`, { row: d }, void 0, !0)
2881
2881
  ]),
2882
2882
  key: "0"
2883
2883
  } : void 0
2884
2884
  ]), 1032, ["item"]))), 128))
2885
2885
  ], 10, ol))), 128))
2886
- ])) : H("", !0),
2887
- e.format === "json" && i.record ? (v(), R(yi, {
2886
+ ])) : D("", !0),
2887
+ e.format === "json" && i.record ? (v(), P(yi, {
2888
2888
  key: 1,
2889
2889
  config: i.config,
2890
2890
  "fetcher-url": i.fetcherUrl,
2891
2891
  "json-record": n.value,
2892
2892
  "request-method": "get"
2893
- }, null, 8, ["config", "fetcher-url", "json-record"])) : H("", !0),
2894
- e.format === "yaml" && i.record ? (v(), R(ar, {
2893
+ }, null, 8, ["config", "fetcher-url", "json-record"])) : D("", !0),
2894
+ e.format === "yaml" && i.record ? (v(), P(ar, {
2895
2895
  key: 2,
2896
2896
  "yaml-record": n.value
2897
- }, null, 8, ["yaml-record"])) : H("", !0)
2897
+ }, null, 8, ["yaml-record"])) : D("", !0)
2898
2898
  ], 64));
2899
2899
  }
2900
- }), sl = /* @__PURE__ */ we(ll, [["__scopeId", "data-v-2b74ac63"]]), ei = "24px", cl = (e, i) => {
2900
+ }), sl = /* @__PURE__ */ he(ll, [["__scopeId", "data-v-2b74ac63"]]), ei = "24px", cl = (e, i) => {
2901
2901
  const t = e.__vccOpts || e;
2902
2902
  for (const [a, r] of i)
2903
2903
  t[a] = r;
@@ -2905,7 +2905,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2905
2905
  }, ul = (e) => (ni("data-v-0cc5a4d3"), e = e(), li(), e), dl = ["aria-hidden"], pl = {
2906
2906
  key: 0,
2907
2907
  "data-testid": "kui-icon-svg-title"
2908
- }, fl = /* @__PURE__ */ ul(() => /* @__PURE__ */ V("path", {
2908
+ }, fl = /* @__PURE__ */ ul(() => /* @__PURE__ */ N("path", {
2909
2909
  d: "M14 9.9V8.2C14.55 7.96667 15.1125 7.79167 15.6875 7.675C16.2625 7.55833 16.8667 7.5 17.5 7.5C17.9333 7.5 18.3583 7.53333 18.775 7.6C19.1917 7.66667 19.6 7.75 20 7.85V9.45C19.6 9.3 19.1958 9.1875 18.7875 9.1125C18.3792 9.0375 17.95 9 17.5 9C16.8667 9 16.2583 9.07917 15.675 9.2375C15.0917 9.39583 14.5333 9.61667 14 9.9ZM14 15.4V13.7C14.55 13.4667 15.1125 13.2917 15.6875 13.175C16.2625 13.0583 16.8667 13 17.5 13C17.9333 13 18.3583 13.0333 18.775 13.1C19.1917 13.1667 19.6 13.25 20 13.35V14.95C19.6 14.8 19.1958 14.6875 18.7875 14.6125C18.3792 14.5375 17.95 14.5 17.5 14.5C16.8667 14.5 16.2583 14.575 15.675 14.725C15.0917 14.875 14.5333 15.1 14 15.4ZM14 12.65V10.95C14.55 10.7167 15.1125 10.5417 15.6875 10.425C16.2625 10.3083 16.8667 10.25 17.5 10.25C17.9333 10.25 18.3583 10.2833 18.775 10.35C19.1917 10.4167 19.6 10.5 20 10.6V12.2C19.6 12.05 19.1958 11.9375 18.7875 11.8625C18.3792 11.7875 17.95 11.75 17.5 11.75C16.8667 11.75 16.2583 11.8292 15.675 11.9875C15.0917 12.1458 14.5333 12.3667 14 12.65ZM6.5 16C7.28333 16 8.04583 16.0875 8.7875 16.2625C9.52917 16.4375 10.2667 16.7 11 17.05V7.2C10.3167 6.8 9.59167 6.5 8.825 6.3C8.05833 6.1 7.28333 6 6.5 6C5.9 6 5.30417 6.05833 4.7125 6.175C4.12083 6.29167 3.55 6.46667 3 6.7V16.6C3.58333 16.4 4.1625 16.25 4.7375 16.15C5.3125 16.05 5.9 16 6.5 16ZM13 17.05C13.7333 16.7 14.4708 16.4375 15.2125 16.2625C15.9542 16.0875 16.7167 16 17.5 16C18.1 16 18.6875 16.05 19.2625 16.15C19.8375 16.25 20.4167 16.4 21 16.6V6.7C20.45 6.46667 19.8792 6.29167 19.2875 6.175C18.6958 6.05833 18.1 6 17.5 6C16.7167 6 15.9417 6.1 15.175 6.3C14.4083 6.5 13.6833 6.8 13 7.2V17.05ZM12 20C11.2 19.3667 10.3333 18.875 9.4 18.525C8.46667 18.175 7.5 18 6.5 18C5.8 18 5.1125 18.0917 4.4375 18.275C3.7625 18.4583 3.11667 18.7167 2.5 19.05C2.15 19.2333 1.8125 19.225 1.4875 19.025C1.1625 18.825 1 18.5333 1 18.15V6.1C1 5.91667 1.04583 5.74167 1.1375 5.575C1.22917 5.40833 1.36667 5.28333 1.55 5.2C2.31667 4.8 3.11667 4.5 3.95 4.3C4.78333 4.1 5.63333 4 6.5 4C7.46667 4 8.4125 4.125 9.3375 4.375C10.2625 4.625 11.15 5 12 5.5C12.85 5 13.7375 4.625 14.6625 4.375C15.5875 4.125 16.5333 4 17.5 4C18.3667 4 19.2167 4.1 20.05 4.3C20.8833 4.5 21.6833 4.8 22.45 5.2C22.6333 5.28333 22.7708 5.40833 22.8625 5.575C22.9542 5.74167 23 5.91667 23 6.1V18.15C23 18.5333 22.8375 18.825 22.5125 19.025C22.1875 19.225 21.85 19.2333 21.5 19.05C20.8833 18.7167 20.2375 18.4583 19.5625 18.275C18.8875 18.0917 18.2 18 17.5 18C16.5 18 15.5333 18.175 14.6 18.525C13.6667 18.875 12.8 19.3667 12 20Z",
2910
2910
  fill: "currentColor"
2911
2911
  }, null, -1)), ml = /* @__PURE__ */ re({
@@ -2960,7 +2960,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2960
2960
  }
2961
2961
  },
2962
2962
  setup(e) {
2963
- const i = e, t = T(() => {
2963
+ const i = e, t = j(() => {
2964
2964
  if (typeof i.size == "number" && i.size > 0)
2965
2965
  return `${i.size}px`;
2966
2966
  if (typeof i.size == "string") {
@@ -2969,7 +2969,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2969
2969
  return `${n}px`;
2970
2970
  }
2971
2971
  return ei;
2972
- }), a = T(() => ({
2972
+ }), a = j(() => ({
2973
2973
  boxSizing: "border-box",
2974
2974
  color: i.color,
2975
2975
  display: i.display,
@@ -2977,14 +2977,14 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2977
2977
  lineHeight: "0",
2978
2978
  width: t.value
2979
2979
  }));
2980
- return (r, n) => (v(), R($e(e.as), {
2980
+ return (r, n) => (v(), P($e(e.as), {
2981
2981
  "aria-hidden": e.decorative ? "true" : void 0,
2982
2982
  class: "kui-icon book-icon",
2983
2983
  "data-testid": "kui-icon-wrapper-book-icon",
2984
2984
  style: oi(a.value)
2985
2985
  }, {
2986
2986
  default: y(() => [
2987
- (v(), j("svg", {
2987
+ (v(), M("svg", {
2988
2988
  "aria-hidden": e.decorative ? "true" : void 0,
2989
2989
  "data-testid": "kui-icon-svg-book-icon",
2990
2990
  fill: "none",
@@ -2994,7 +2994,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
2994
2994
  width: "100%",
2995
2995
  xmlns: "http://www.w3.org/2000/svg"
2996
2996
  }, [
2997
- e.title ? (v(), j("title", pl, $(e.title), 1)) : H("", !0),
2997
+ e.title ? (v(), M("title", pl, O(e.title), 1)) : D("", !0),
2998
2998
  fl
2999
2999
  ], 8, dl))
3000
3000
  ]),
@@ -3085,7 +3085,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3085
3085
  emits: ["loading", "fetch:success", "fetch:error", "copy:success", "copy:error"],
3086
3086
  setup(e, { emit: i }) {
3087
3087
  var t;
3088
- const a = i, r = e, n = rt(), { i18n: { t: o } } = ue.useI18n(), { getMessageFromError: s } = ue.useErrors(), { convertKeyToTitle: l } = ue.useStringHelpers(), { axiosInstance: d } = ue.useAxios({
3088
+ const a = i, r = e, n = rt(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { convertKeyToTitle: l } = se.useStringHelpers(), { axiosInstance: d } = se.useAxios({
3089
3089
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3090
3090
  }), m = [
3091
3091
  {
@@ -3105,109 +3105,109 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3105
3105
  p.value = I == null ? void 0 : I.value;
3106
3106
  }, h = {
3107
3107
  id: {
3108
- type: ie.ID,
3108
+ type: te.ID,
3109
3109
  label: o("baseConfigCard.commonFields.id_label"),
3110
3110
  order: 0,
3111
- section: me.Basic
3111
+ section: pe.Basic
3112
3112
  },
3113
3113
  name: {
3114
3114
  order: 1,
3115
- section: me.Basic
3115
+ section: pe.Basic
3116
3116
  },
3117
3117
  enabled: {
3118
- type: ie.BadgeStatus,
3118
+ type: te.BadgeStatus,
3119
3119
  order: 2,
3120
- section: me.Basic
3120
+ section: pe.Basic
3121
3121
  },
3122
3122
  updated_at: {
3123
- type: ie.Date,
3123
+ type: te.Date,
3124
3124
  label: o("baseConfigCard.commonFields.updated_at_label"),
3125
3125
  order: 3,
3126
- section: me.Basic
3126
+ section: pe.Basic
3127
3127
  },
3128
3128
  created_at: {
3129
- type: ie.Date,
3129
+ type: te.Date,
3130
3130
  label: o("baseConfigCard.commonFields.created_at_label"),
3131
3131
  order: 4,
3132
- section: me.Basic
3132
+ section: pe.Basic
3133
3133
  },
3134
3134
  tags: {
3135
- type: ie.BadgeTag,
3135
+ type: te.BadgeTag,
3136
3136
  order: -1,
3137
3137
  // the last property displayed
3138
- section: me.Basic
3138
+ section: pe.Basic
3139
3139
  }
3140
- }, A = U(!1), b = U(!1), M = U(""), S = U({}), x = T(() => {
3141
- var I, z, K;
3140
+ }, x = U(!1), b = U(!1), $ = U(""), S = U({}), T = j(() => {
3141
+ var I, H, K;
3142
3142
  if (!S.value)
3143
3143
  return [];
3144
- const P = [], J = Object.keys(S.value).length;
3145
- for (const Y in S.value) {
3146
- const ee = (z = (I = r.configSchema) == null ? void 0 : I[Y]) == null ? void 0 : z.order, W = (K = h[Y]) == null ? void 0 : K.order;
3147
- let ae = J;
3148
- (W || W === 0) && (ae = W === -1 ? J + 1 : W), ee && (ae = ee === -1 ? J + 1 : ee), P.push([Y, ae]);
3144
+ const B = [], z = Object.keys(S.value).length;
3145
+ for (const G in S.value) {
3146
+ const X = (H = (I = r.configSchema) == null ? void 0 : I[G]) == null ? void 0 : H.order, Y = (K = h[G]) == null ? void 0 : K.order;
3147
+ let ae = z;
3148
+ (Y || Y === 0) && (ae = Y === -1 ? z + 1 : Y), X && (ae = X === -1 ? z + 1 : X), B.push([G, ae]);
3149
3149
  }
3150
- return P.sort(function(Y, ee) {
3151
- return Y[1] - ee[1];
3152
- }), P.map((Y) => {
3153
- var ee, W;
3154
- const ae = Y[0], Q = (ee = S.value) == null ? void 0 : ee[ae], te = ((W = r.configSchema) == null ? void 0 : W[ae]) || {}, pe = h[ae];
3150
+ return B.sort(function(G, X) {
3151
+ return G[1] - X[1];
3152
+ }), B.map((G) => {
3153
+ var X, Y;
3154
+ const ae = G[0], Z = (X = S.value) == null ? void 0 : X[ae], ee = ((Y = r.configSchema) == null ? void 0 : Y[ae]) || {}, ue = h[ae];
3155
3155
  return {
3156
3156
  key: ae,
3157
- value: Q,
3158
- hidden: te.hidden || !1,
3159
- type: te.type ?? ((pe == null ? void 0 : pe.type) || ie.Text),
3160
- label: te.label ?? ((pe == null ? void 0 : pe.label) || l(ae)),
3161
- tooltip: te.tooltip ?? ((pe == null ? void 0 : pe.tooltip) || void 0),
3162
- section: te.section ?? ((pe == null ? void 0 : pe.section) || me.Advanced)
3157
+ value: Z,
3158
+ hidden: ee.hidden || !1,
3159
+ type: ee.type ?? ((ue == null ? void 0 : ue.type) || te.Text),
3160
+ label: ee.label ?? ((ue == null ? void 0 : ue.label) || l(ae)),
3161
+ tooltip: ee.tooltip ?? ((ue == null ? void 0 : ue.tooltip) || void 0),
3162
+ section: ee.section ?? ((ue == null ? void 0 : ue.section) || pe.Advanced)
3163
3163
  };
3164
- }).filter((Y) => !Y.hidden && Y.key !== r.pluginConfigKey);
3165
- }), c = T(() => {
3166
- var I, z;
3164
+ }).filter((G) => !G.hidden && G.key !== r.pluginConfigKey);
3165
+ }), u = j(() => {
3166
+ var I, H;
3167
3167
  if (!S.value || !r.pluginConfigKey)
3168
3168
  return [];
3169
- const K = S.value[r.pluginConfigKey] || {}, P = Object.keys(K).length, J = [];
3170
- for (const Y in K) {
3171
- const ee = (z = (I = r.pluginConfigSchema) == null ? void 0 : I[Y]) == null ? void 0 : z.order, W = K[Y];
3172
- let ae = W != null && W !== "" ? P - 1 : P;
3173
- ee && (ae = ee === -1 ? P + 1 : ee), J.push([Y, ae]);
3169
+ const K = S.value[r.pluginConfigKey] || {}, B = Object.keys(K).length, z = [];
3170
+ for (const G in K) {
3171
+ const X = (H = (I = r.pluginConfigSchema) == null ? void 0 : I[G]) == null ? void 0 : H.order, Y = K[G];
3172
+ let ae = Y != null && Y !== "" ? B - 1 : B;
3173
+ X && (ae = X === -1 ? B + 1 : X), z.push([G, ae]);
3174
3174
  }
3175
- return J.sort(function(Y, ee) {
3176
- return Y[1] - ee[1];
3177
- }), J.map((Y) => {
3178
- var ee;
3179
- const W = Y[0], ae = K[W], Q = ((ee = r.pluginConfigSchema) == null ? void 0 : ee[W]) || {};
3175
+ return z.sort(function(G, X) {
3176
+ return G[1] - X[1];
3177
+ }), z.map((G) => {
3178
+ var X;
3179
+ const Y = G[0], ae = K[Y], Z = ((X = r.pluginConfigSchema) == null ? void 0 : X[Y]) || {};
3180
3180
  return {
3181
- key: W,
3181
+ key: Y,
3182
3182
  value: ae,
3183
- hidden: Q.hidden || !1,
3184
- type: Q.type ?? ie.Text,
3185
- label: Q.label ?? l(W),
3186
- tooltip: Q.tooltip ?? void 0,
3187
- section: me.Plugin
3183
+ hidden: Z.hidden || !1,
3184
+ type: Z.type ?? te.Text,
3185
+ label: Z.label ?? l(Y),
3186
+ tooltip: Z.tooltip ?? void 0,
3187
+ section: pe.Plugin
3188
3188
  };
3189
- }).filter((Y) => !Y.hidden);
3190
- }), k = T(() => {
3191
- var I, z, K, P;
3189
+ }).filter((G) => !G.hidden);
3190
+ }), k = j(() => {
3191
+ var I, H, K, B;
3192
3192
  return {
3193
- basic: (I = x.value) == null ? void 0 : I.filter((J) => J.section === me.Basic),
3194
- advanced: (z = x.value) == null ? void 0 : z.filter((J) => J.section === me.Advanced),
3195
- plugin: (P = c.value) == null ? void 0 : P.concat((K = x.value) == null ? void 0 : K.filter((J) => J.section === me.Plugin))
3193
+ basic: (I = T.value) == null ? void 0 : I.filter((z) => z.section === pe.Basic),
3194
+ advanced: (H = T.value) == null ? void 0 : H.filter((z) => z.section === pe.Advanced),
3195
+ plugin: (B = u.value) == null ? void 0 : B.concat((K = T.value) == null ? void 0 : K.filter((z) => z.section === pe.Plugin))
3196
3196
  };
3197
- }), O = T(() => {
3197
+ }), E = j(() => {
3198
3198
  const I = [];
3199
3199
  return k.value.basic.length && I.push("basic"), k.value.advanced.length && I.push("advanced"), k.value.plugin.length && I.push("plugin"), I;
3200
- }), N = (I) => !!(I.tooltip || n[`${I.key}-label-tooltip`]), oe = T(() => {
3201
- var I, z;
3200
+ }), q = (I) => !!(I.tooltip || n[`${I.key}-label-tooltip`]), oe = j(() => {
3201
+ var I, H;
3202
3202
  let K = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3203
- return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (z = r.config) != null && z.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{id}/gi, r.config.entityId), K;
3204
- }), D = (I) => {
3203
+ return r.config.app === "konnect" ? K = K.replace(/{controlPlaneId}/gi, ((I = r.config) == null ? void 0 : I.controlPlaneId) || "") : r.config.app === "kongManager" && (K = K.replace(/\/{workspace}/gi, (H = r.config) != null && H.workspace ? `/${r.config.workspace}` : "")), K = K.replace(/{id}/gi, r.config.entityId), K;
3204
+ }), R = (I) => {
3205
3205
  S.value && I(JSON.stringify(S.value)) ? a("copy:success", S.value) : a("copy:error");
3206
3206
  };
3207
- return ke(A, (I) => {
3207
+ return _e(x, (I) => {
3208
3208
  a("loading", I);
3209
3209
  }, { immediate: !0 }), ht(async () => {
3210
- b.value = !1, A.value = !0;
3210
+ b.value = !1, x.value = !0;
3211
3211
  try {
3212
3212
  const { data: I } = await d.get(oe.value);
3213
3213
  if (r.dataKey)
@@ -3217,45 +3217,45 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3217
3217
  throw new Error(o("errors.dataKeyUndefined", { dataKey: r.dataKey }));
3218
3218
  else
3219
3219
  S.value = { ...I };
3220
- Object.keys(r.configSchema).filter((z) => r.configSchema[z].forceShow).forEach((z) => {
3221
- S.value && typeof S.value[z] > "u" && (S.value[z] = null);
3220
+ Object.keys(r.configSchema).filter((H) => r.configSchema[H].forceShow).forEach((H) => {
3221
+ S.value && typeof S.value[H] > "u" && (S.value[H] = null);
3222
3222
  }), a("fetch:success", I);
3223
3223
  } catch (I) {
3224
- const z = s(I);
3225
- M.value = z.startsWith("code") ? o("baseConfigCard.errors.load") : z, b.value = !0, a("fetch:error", I);
3224
+ const H = s(I);
3225
+ $.value = H.startsWith("code") ? o("baseConfigCard.errors.load") : H, b.value = !0, a("fetch:error", I);
3226
3226
  } finally {
3227
- A.value = !1;
3227
+ x.value = !1;
3228
3228
  }
3229
- }), (I, z) => {
3230
- const K = L("KLabel"), P = L("KSelect"), J = L("KButton"), Y = L("KClipboardProvider"), ee = L("KSkeleton"), W = L("KEmptyState"), ae = L("KCard");
3231
- return v(), R(ae, { class: "kong-ui-entity-base-config-card" }, je({
3229
+ }), (I, H) => {
3230
+ const K = L("KLabel"), B = L("KSelect"), z = L("KButton"), G = L("KClipboardProvider"), X = L("KSkeleton"), Y = L("KEmptyState"), ae = L("KCard");
3231
+ return v(), P(ae, { class: "kong-ui-entity-base-config-card" }, je({
3232
3232
  actions: y(() => [
3233
- V("div", vl, [
3234
- X(I.$slots, "actions", {}, void 0, !0),
3235
- e.config.jsonYamlEnabled ? (v(), R(K, {
3233
+ N("div", vl, [
3234
+ Q(I.$slots, "actions", {}, void 0, !0),
3235
+ e.config.jsonYamlEnabled ? (v(), P(K, {
3236
3236
  key: 0,
3237
3237
  class: "config-format-select-label",
3238
3238
  "data-testid": "config-format-select-label"
3239
3239
  }, {
3240
3240
  default: y(() => [
3241
- G($(e.label), 1)
3241
+ J(O(e.label), 1)
3242
3242
  ]),
3243
3243
  _: 1
3244
- })) : H("", !0),
3245
- e.config.jsonYamlEnabled ? (v(), R(P, {
3244
+ })) : D("", !0),
3245
+ e.config.jsonYamlEnabled ? (v(), P(B, {
3246
3246
  key: 1,
3247
3247
  "data-testid": "select-config-format",
3248
3248
  items: m,
3249
3249
  onChange: _
3250
- })) : H("", !0),
3251
- r.config.jsonYamlEnabled && e.configCardDoc ? (v(), R(J, {
3250
+ })) : D("", !0),
3251
+ r.config.jsonYamlEnabled && e.configCardDoc ? (v(), P(z, {
3252
3252
  key: 2,
3253
3253
  appearance: "tertiary",
3254
3254
  class: "book-icon",
3255
3255
  "data-testid": "book-icon"
3256
3256
  }, {
3257
3257
  default: y(() => [
3258
- V("a", {
3258
+ N("a", {
3259
3259
  href: e.configCardDoc,
3260
3260
  rel: "noopener",
3261
3261
  target: "_blank"
@@ -3264,86 +3264,86 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3264
3264
  ], 8, hl)
3265
3265
  ]),
3266
3266
  _: 1
3267
- })) : H("", !0),
3268
- e.config.jsonYamlEnabled ? H("", !0) : (v(), R(Y, { key: 3 }, {
3269
- default: y(({ copyToClipboard: Q }) => [
3270
- !A.value && !b.value ? (v(), R(J, {
3267
+ })) : D("", !0),
3268
+ e.config.jsonYamlEnabled ? D("", !0) : (v(), P(G, { key: 3 }, {
3269
+ default: y(({ copyToClipboard: Z }) => [
3270
+ !x.value && !b.value ? (v(), P(z, {
3271
3271
  key: 0,
3272
3272
  appearance: "tertiary",
3273
3273
  "data-testid": "json-copy-button",
3274
- onClick: (te) => D(Q)
3274
+ onClick: (ee) => R(Z)
3275
3275
  }, {
3276
3276
  default: y(() => [
3277
- G($(f(o)("baseConfigCard.actions.copy")), 1)
3277
+ J(O(f(o)("baseConfigCard.actions.copy")), 1)
3278
3278
  ]),
3279
3279
  _: 2
3280
- }, 1032, ["onClick"])) : H("", !0)
3280
+ }, 1032, ["onClick"])) : D("", !0)
3281
3281
  ]),
3282
3282
  _: 1
3283
3283
  }))
3284
3284
  ])
3285
3285
  ]),
3286
3286
  default: y(() => [
3287
- A.value ? (v(), R(ee, {
3287
+ x.value ? (v(), P(X, {
3288
3288
  key: 0,
3289
3289
  "data-testid": "config-card-loader",
3290
3290
  "table-columns": 2,
3291
3291
  type: "table"
3292
- })) : b.value ? (v(), R(W, {
3292
+ })) : b.value ? (v(), P(Y, {
3293
3293
  key: 1,
3294
3294
  "data-testid": "config-card-fetch-error",
3295
3295
  "is-error": ""
3296
3296
  }, {
3297
3297
  message: y(() => [
3298
- V("h3", null, $(M.value), 1)
3298
+ N("h3", null, O($.value), 1)
3299
3299
  ]),
3300
3300
  _: 1
3301
- })) : H("", !0),
3302
- e.config.jsonYamlEnabled ? (v(), j("div", bl, [
3301
+ })) : D("", !0),
3302
+ e.config.jsonYamlEnabled ? (v(), M("div", bl, [
3303
3303
  C(sl, {
3304
3304
  config: e.config,
3305
3305
  "fetcher-url": oe.value,
3306
3306
  format: p.value,
3307
- "prop-list-types": O.value,
3307
+ "prop-list-types": E.value,
3308
3308
  "property-collections": k.value,
3309
3309
  record: S.value
3310
3310
  }, je({ _: 2 }, [
3311
- he(Object.keys(I.$slots), (Q) => ({
3312
- name: Q,
3313
- fn: y(({ row: te, rowValue: pe }) => [
3314
- X(I.$slots, Q, {
3315
- row: te,
3316
- rowValue: pe
3311
+ ye(Object.keys(I.$slots), (Z) => ({
3312
+ name: Z,
3313
+ fn: y(({ row: ee, rowValue: ue }) => [
3314
+ Q(I.$slots, Z, {
3315
+ row: ee,
3316
+ rowValue: ue
3317
3317
  }, void 0, !0)
3318
3318
  ])
3319
3319
  }))
3320
3320
  ]), 1032, ["config", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3321
- ])) : (v(), j("div", wl, [
3322
- (v(!0), j(be, null, he(O.value, (Q) => (v(), j("div", {
3323
- key: `config-card-details-${Q}-props`,
3324
- class: Ie(`config-card-details-${Q}-props`),
3325
- "data-testid": `config-card-details-${Q}-props`
3321
+ ])) : (v(), M("div", wl, [
3322
+ (v(!0), M(ve, null, ye(E.value, (Z) => (v(), M("div", {
3323
+ key: `config-card-details-${Z}-props`,
3324
+ class: Ie(`config-card-details-${Z}-props`),
3325
+ "data-testid": `config-card-details-${Z}-props`
3326
3326
  }, [
3327
- Q !== "basic" ? (v(), j("div", kl, $(Q === "advanced" ? f(o)("baseConfigCard.sections.advanced") : f(o)("baseConfigCard.sections.plugin")), 1)) : H("", !0),
3328
- (v(!0), j(be, null, he(k.value[Q], (te) => (v(), R(Ct, {
3329
- key: te.key,
3330
- item: te
3327
+ Z !== "basic" ? (v(), M("div", kl, O(Z === "advanced" ? f(o)("baseConfigCard.sections.advanced") : f(o)("baseConfigCard.sections.plugin")), 1)) : D("", !0),
3328
+ (v(!0), M(ve, null, ye(k.value[Z], (ee) => (v(), P(Ct, {
3329
+ key: ee.key,
3330
+ item: ee
3331
3331
  }, je({
3332
3332
  label: y(() => [
3333
- X(I.$slots, `${te.key}-label`, { row: te }, void 0, !0)
3333
+ Q(I.$slots, `${ee.key}-label`, { row: ee }, void 0, !0)
3334
3334
  ]),
3335
- [te.key]: y(({ rowValue: pe }) => [
3336
- X(I.$slots, te.key, {
3337
- row: te,
3338
- rowValue: pe
3335
+ [ee.key]: y(({ rowValue: ue }) => [
3336
+ Q(I.$slots, ee.key, {
3337
+ row: ee,
3338
+ rowValue: ue
3339
3339
  }, void 0, !0)
3340
3340
  ]),
3341
3341
  _: 2
3342
3342
  }, [
3343
- N(te) ? {
3343
+ q(ee) ? {
3344
3344
  name: "label-tooltip",
3345
3345
  fn: y(() => [
3346
- X(I.$slots, `${te.key}-label-tooltip`, { row: te }, void 0, !0)
3346
+ Q(I.$slots, `${ee.key}-label-tooltip`, { row: ee }, void 0, !0)
3347
3347
  ]),
3348
3348
  key: "0"
3349
3349
  } : void 0
@@ -3356,9 +3356,9 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3356
3356
  e.hideTitle ? void 0 : {
3357
3357
  name: "title",
3358
3358
  fn: y(() => [
3359
- V("div", yl, [
3360
- X(I.$slots, "title", {}, () => [
3361
- G($(f(o)("baseConfigCard.title")), 1)
3359
+ N("div", yl, [
3360
+ Q(I.$slots, "title", {}, () => [
3361
+ J(O(f(o)("baseConfigCard.title")), 1)
3362
3362
  ], !0)
3363
3363
  ])
3364
3364
  ]),
@@ -3367,7 +3367,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3367
3367
  ]), 1024);
3368
3368
  };
3369
3369
  }
3370
- }), Sl = /* @__PURE__ */ we(Cl, [["__scopeId", "data-v-3fd4a3a4"]]), Il = {
3370
+ }), Sl = /* @__PURE__ */ he(Cl, [["__scopeId", "data-v-3fd4a3a4"]]), Il = {
3371
3371
  class: "form-actions",
3372
3372
  "data-testid": "form-actions"
3373
3373
  }, Al = { key: 0 }, xl = /* @__PURE__ */ re({
@@ -3425,21 +3425,21 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3425
3425
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3426
3426
  setup(e, { emit: i }) {
3427
3427
  var t;
3428
- const a = i, r = e, n = bt(), { i18n: { t: o } } = ue.useI18n(), { getMessageFromError: s } = ue.useErrors(), { axiosInstance: l } = ue.useAxios({
3428
+ const a = i, r = e, n = bt(), { i18n: { t: o } } = se.useI18n(), { getMessageFromError: s } = se.useErrors(), { axiosInstance: l } = se.useAxios({
3429
3429
  headers: (t = r.config) == null ? void 0 : t.requestHeaders
3430
- }), d = U(!1), m = U(!1), p = U(""), _ = T(() => r.canSubmit === !1 || r.isReadonly), h = U(!1), A = T(() => {
3431
- var k, O;
3432
- let N = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3433
- return r.config.app === "konnect" ? N = N.replace(/{controlPlaneId}/gi, ((k = r.config) == null ? void 0 : k.controlPlaneId) || "") : r.config.app === "kongManager" && (N = N.replace(/\/{workspace}/gi, (O = r.config) != null && O.workspace ? `/${r.config.workspace}` : "")), r.editId ? (N = N.replace(/{id}/gi, r.editId), N) : (N = N.replace(/\/{id}/gi, ""), N);
3430
+ }), d = U(!1), m = U(!1), p = U(""), _ = j(() => r.canSubmit === !1 || r.isReadonly), h = U(!1), x = j(() => {
3431
+ var k, E;
3432
+ let q = `${r.config.apiBaseUrl}${r.fetchUrl}`;
3433
+ return r.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((k = r.config) == null ? void 0 : k.controlPlaneId) || "") : r.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (E = r.config) != null && E.workspace ? `/${r.config.workspace}` : "")), r.editId ? (q = q.replace(/{id}/gi, r.editId), q) : (q = q.replace(/\/{id}/gi, ""), q);
3434
3434
  }), b = () => {
3435
3435
  h.value = !h.value;
3436
- }, M = () => {
3436
+ }, $ = () => {
3437
3437
  r.config.cancelRoute ? n.push(r.config.cancelRoute) : S();
3438
3438
  }, S = () => {
3439
3439
  a("cancel");
3440
- }, x = () => {
3440
+ }, T = () => {
3441
3441
  _.value || a("submit");
3442
- }, c = U([
3442
+ }, u = U([
3443
3443
  {
3444
3444
  title: o("baseForm.configuration.yaml"),
3445
3445
  hash: "#yaml"
@@ -3449,65 +3449,65 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3449
3449
  hash: "#json"
3450
3450
  }
3451
3451
  ]);
3452
- return ke(() => d.value, (k) => {
3452
+ return _e(() => d.value, (k) => {
3453
3453
  a("loading", k);
3454
3454
  }, { immediate: !0 }), ht(async () => {
3455
3455
  if (r.editId)
3456
3456
  try {
3457
3457
  m.value = !1, d.value = !0;
3458
- const { data: k } = await l.get(A.value);
3458
+ const { data: k } = await l.get(x.value);
3459
3459
  a("fetch:success", k);
3460
3460
  } catch (k) {
3461
- const O = s(k);
3462
- p.value = O.startsWith("code") ? o("baseForm.errors.edit") : O, m.value = !0, a("fetch:error", k);
3461
+ const E = s(k);
3462
+ p.value = E.startsWith("code") ? o("baseForm.errors.edit") : E, m.value = !0, a("fetch:error", k);
3463
3463
  } finally {
3464
3464
  d.value = !1;
3465
3465
  }
3466
- }), (k, O) => {
3467
- const N = L("KSkeleton"), oe = L("KEmptyState"), D = L("KAlert"), I = L("KButton"), z = L("KTabs"), K = L("KSlideout"), P = L("KCard");
3468
- return v(), R(P, { class: "kong-ui-entity-base-form" }, {
3466
+ }), (k, E) => {
3467
+ const q = L("KSkeleton"), oe = L("KEmptyState"), R = L("KAlert"), I = L("KButton"), H = L("KTabs"), K = L("KSlideout"), B = L("KCard");
3468
+ return v(), P(B, { class: "kong-ui-entity-base-form" }, {
3469
3469
  default: y(() => [
3470
- d.value ? (v(), R(N, {
3470
+ d.value ? (v(), P(q, {
3471
3471
  key: 0,
3472
3472
  type: "form"
3473
- })) : m.value ? (v(), R(oe, {
3473
+ })) : m.value ? (v(), P(oe, {
3474
3474
  key: 1,
3475
3475
  "cta-text": f(o)("baseForm.actions.back"),
3476
3476
  "data-testid": "form-fetch-error",
3477
- "handle-click": M,
3477
+ "handle-click": $,
3478
3478
  "is-error": !0
3479
3479
  }, {
3480
3480
  message: y(() => [
3481
- V("h3", null, $(p.value), 1)
3481
+ N("h3", null, O(p.value), 1)
3482
3482
  ]),
3483
3483
  _: 1
3484
- }, 8, ["cta-text"])) : (v(), j("form", {
3484
+ }, 8, ["cta-text"])) : (v(), M("form", {
3485
3485
  key: 2,
3486
3486
  "data-testid": "form-content",
3487
- onReset: Le(S, ["prevent"]),
3488
- onSubmit: Le(x, ["prevent"])
3487
+ onReset: qe(S, ["prevent"]),
3488
+ onSubmit: qe(T, ["prevent"])
3489
3489
  }, [
3490
- X(k.$slots, "default", {}, void 0, !0),
3491
- e.errorMessage ? (v(), R(D, {
3490
+ Q(k.$slots, "default", {}, void 0, !0),
3491
+ e.errorMessage ? (v(), P(R, {
3492
3492
  key: 0,
3493
3493
  "alert-message": e.errorMessage,
3494
3494
  appearance: "danger",
3495
3495
  "data-testid": "form-error"
3496
- }, null, 8, ["alert-message"])) : H("", !0),
3497
- V("div", Il, [
3498
- X(k.$slots, "form-actions", {}, () => [
3499
- e.config.jsonYamlFormsEnabled ? (v(), j("div", Al, [
3496
+ }, null, 8, ["alert-message"])) : D("", !0),
3497
+ N("div", Il, [
3498
+ Q(k.$slots, "form-actions", {}, () => [
3499
+ e.config.jsonYamlFormsEnabled ? (v(), M("div", Al, [
3500
3500
  C(I, {
3501
3501
  appearance: "tertiary",
3502
3502
  "data-testid": "form-view-configuration",
3503
- onClick: O[0] || (O[0] = (J) => b())
3503
+ onClick: E[0] || (E[0] = (z) => b())
3504
3504
  }, {
3505
3505
  default: y(() => [
3506
- G($(f(o)("baseForm.actions.viewConfiguration")), 1)
3506
+ J(O(f(o)("baseForm.actions.viewConfiguration")), 1)
3507
3507
  ]),
3508
3508
  _: 1
3509
3509
  })
3510
- ])) : H("", !0),
3510
+ ])) : D("", !0),
3511
3511
  C(I, {
3512
3512
  appearance: "secondary",
3513
3513
  "data-testid": "form-cancel",
@@ -3515,7 +3515,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3515
3515
  type: "reset"
3516
3516
  }, {
3517
3517
  default: y(() => [
3518
- G($(f(o)("baseForm.actions.cancel")), 1)
3518
+ J(O(f(o)("baseForm.actions.cancel")), 1)
3519
3519
  ]),
3520
3520
  _: 1
3521
3521
  }, 8, ["disabled"]),
@@ -3526,7 +3526,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3526
3526
  type: "submit"
3527
3527
  }, {
3528
3528
  default: y(() => [
3529
- G($(f(o)("baseForm.actions.save")), 1)
3529
+ J(O(f(o)("baseForm.actions.save")), 1)
3530
3530
  ]),
3531
3531
  _: 1
3532
3532
  }, 8, ["disabled"])
@@ -3540,18 +3540,18 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3540
3540
  "is-visible": h.value,
3541
3541
  "prevent-close-on-blur": "",
3542
3542
  title: f(o)("baseForm.configuration.title"),
3543
- onClose: O[1] || (O[1] = (J) => b())
3543
+ onClose: E[1] || (E[1] = (z) => b())
3544
3544
  }, {
3545
3545
  default: y(() => [
3546
- V("div", null, $(f(o)("baseForm.configuration.message")), 1),
3547
- C(z, {
3546
+ N("div", null, O(f(o)("baseForm.configuration.message")), 1),
3547
+ C(H, {
3548
3548
  "data-testid": "form-view-configuration-slideout-tabs",
3549
- tabs: c.value
3549
+ tabs: u.value
3550
3550
  }, {
3551
3551
  json: y(() => [
3552
3552
  C(yi, {
3553
3553
  config: e.config,
3554
- "fetcher-url": A.value,
3554
+ "fetcher-url": x.value,
3555
3555
  "json-record": r.formFields,
3556
3556
  "request-method": r.editId ? "put" : "post"
3557
3557
  }, null, 8, ["config", "fetcher-url", "json-record", "request-method"])
@@ -3571,7 +3571,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3571
3571
  });
3572
3572
  };
3573
3573
  }
3574
- }), Tl = /* @__PURE__ */ we(xl, [["__scopeId", "data-v-4ef70725"]]), jl = {
3574
+ }), Tl = /* @__PURE__ */ he(xl, [["__scopeId", "data-v-4ef70725"]]), jl = {
3575
3575
  key: 0,
3576
3576
  "data-testid": "first-col"
3577
3577
  }, Ml = /* @__PURE__ */ re({
@@ -3587,65 +3587,65 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3587
3587
  }
3588
3588
  },
3589
3589
  setup(e) {
3590
- const i = e, t = T(() => {
3590
+ const i = e, t = j(() => {
3591
3591
  var b;
3592
3592
  return ((b = i.rowEl) == null ? void 0 : b.querySelector(`[data-testid="${i.keyName}"]`)) || null;
3593
- }), a = T(() => {
3593
+ }), a = j(() => {
3594
3594
  var b;
3595
3595
  return ((b = t.value) == null ? void 0 : b.querySelector('[data-testid="first-col"]')) || null;
3596
- }), r = T(() => {
3597
- var b, M;
3596
+ }), r = j(() => {
3597
+ var b, $;
3598
3598
  const S = (b = i.rowEl) == null ? void 0 : b.querySelectorAll("td");
3599
- return S ? ((M = S[0]) == null ? void 0 : M.getAttribute("data-testid")) === i.keyName : !1;
3599
+ return S ? (($ = S[0]) == null ? void 0 : $.getAttribute("data-testid")) === i.keyName : !1;
3600
3600
  });
3601
3601
  let n;
3602
3602
  const o = () => {
3603
3603
  n && (n.disconnect(), n = void 0);
3604
3604
  }, s = () => {
3605
- var b, M, S;
3606
- d.value = ((b = a.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, m.value = ((M = t.value) == null ? void 0 : M.clientWidth) || 0, p.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3607
- }, l = U({}), d = U(0), m = U(0), p = U(""), _ = T(() => [a.value, t.value]), h = ke(
3605
+ var b, $, S;
3606
+ d.value = ((b = a.value) == null ? void 0 : b.getBoundingClientRect().width) || 0, m.value = (($ = t.value) == null ? void 0 : $.clientWidth) || 0, p.value = ((S = l.value) == null ? void 0 : S.innerText) || "";
3607
+ }, l = U({}), d = U(0), m = U(0), p = U(""), _ = j(() => [a.value, t.value]), h = _e(
3608
3608
  _,
3609
3609
  (b) => {
3610
3610
  if (r.value && (o(), "ResizeObserver" in window && window)) {
3611
- n = new ResizeObserver((M) => {
3611
+ n = new ResizeObserver(($) => {
3612
3612
  window.requestAnimationFrame(() => {
3613
- !Array.isArray(M) || !M.length || s();
3613
+ !Array.isArray($) || !$.length || s();
3614
3614
  });
3615
3615
  });
3616
- for (const M of b)
3617
- M && n.observe(M);
3616
+ for (const $ of b)
3617
+ $ && n.observe($);
3618
3618
  }
3619
3619
  },
3620
3620
  { immediate: !0, flush: "post", deep: !0 }
3621
- ), A = T(() => r.value ? d.value > m.value : !1);
3621
+ ), x = j(() => r.value ? d.value > m.value : !1);
3622
3622
  return ai(() => {
3623
3623
  s();
3624
3624
  }), ur(() => {
3625
3625
  h();
3626
- }), (b, M) => {
3626
+ }), (b, $) => {
3627
3627
  const S = L("KTooltip");
3628
- return v(), j("span", {
3628
+ return v(), M("span", {
3629
3629
  ref_key: "contentRef",
3630
3630
  ref: l,
3631
3631
  class: "content-wrapper"
3632
3632
  }, [
3633
- r.value ? (v(), j("span", jl, [
3633
+ r.value ? (v(), M("span", jl, [
3634
3634
  C(S, {
3635
- label: A.value ? p.value : "",
3635
+ label: x.value ? p.value : "",
3636
3636
  "max-width": "300",
3637
3637
  placement: "bottomStart"
3638
3638
  }, {
3639
3639
  default: y(() => [
3640
- X(b.$slots, "default", {}, void 0, !0)
3640
+ Q(b.$slots, "default", {}, void 0, !0)
3641
3641
  ]),
3642
3642
  _: 3
3643
3643
  }, 8, ["label"])
3644
- ])) : X(b.$slots, "default", { key: 1 }, void 0, !0)
3644
+ ])) : Q(b.$slots, "default", { key: 1 }, void 0, !0)
3645
3645
  ], 512);
3646
3646
  };
3647
3647
  }
3648
- }), $l = /* @__PURE__ */ we(Ml, [["__scopeId", "data-v-e42a20c9"]]), Ol = { class: "toolbar-container" }, El = {
3648
+ }), $l = /* @__PURE__ */ he(Ml, [["__scopeId", "data-v-e42a20c9"]]), Ol = { class: "toolbar-container" }, El = {
3649
3649
  key: 0,
3650
3650
  class: "toolbar-button-container"
3651
3651
  }, Fl = ["data-testid"], Vl = /* @__PURE__ */ re({
@@ -3758,72 +3758,72 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3758
3758
  },
3759
3759
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3760
3760
  setup(e, { emit: i }) {
3761
- const t = e, a = i, { i18n: { t: r } } = ue.useI18n(), n = T(() => {
3762
- var O, N;
3761
+ const t = e, a = i, { i18n: { t: r } } = se.useI18n(), n = j(() => {
3762
+ var E, q;
3763
3763
  return typeof t.errorMessage == "string" ? {
3764
3764
  hasError: !!t.errorMessage,
3765
3765
  title: t.errorMessage,
3766
3766
  message: void 0
3767
3767
  } : {
3768
3768
  hasError: !!t.errorMessage,
3769
- title: (O = t.errorMessage) == null ? void 0 : O.title,
3770
- message: (N = t.errorMessage) == null ? void 0 : N.message
3769
+ title: (E = t.errorMessage) == null ? void 0 : E.title,
3770
+ message: (q = t.errorMessage) == null ? void 0 : q.message
3771
3771
  };
3772
- }), o = T(() => t.cacheIdentifier || t.preferencesStorageKey), s = (O) => O.hasData || !!t.query, l = T(() => {
3773
- const O = [];
3774
- return Object.keys(t.tableHeaders).forEach((N) => {
3775
- const oe = t.tableHeaders[N];
3776
- O.push({
3777
- label: oe.label ?? N,
3778
- key: N,
3772
+ }), o = j(() => t.cacheIdentifier || t.preferencesStorageKey), s = (E) => E.hasData || !!t.query, l = j(() => {
3773
+ const E = [];
3774
+ return Object.keys(t.tableHeaders).forEach((q) => {
3775
+ const oe = t.tableHeaders[q];
3776
+ E.push({
3777
+ label: oe.label ?? q,
3778
+ key: q,
3779
3779
  sortable: oe.sortable ?? !1
3780
3780
  });
3781
- }), t.enableEntityActions && O.push({
3781
+ }), t.enableEntityActions && E.push({
3782
3782
  key: "actions",
3783
3783
  hideLabel: !0
3784
- }), O;
3785
- }), d = (O) => ({
3786
- "data-rowid": O.id,
3787
- "data-testid": O.name,
3788
- ...t.rowAttributes(O)
3789
- }), m = U({}), p = (O) => {
3790
- var N;
3791
- return (N = m.value) == null ? void 0 : N.$el.querySelector(`[data-rowid="${O.id}"]`);
3792
- }, _ = (O) => {
3793
- const N = {
3794
- "data-testid": O.headerKey,
3795
- ...t.cellAttributes(O)
3784
+ }), E;
3785
+ }), d = (E) => ({
3786
+ "data-rowid": E.id,
3787
+ "data-testid": E.name,
3788
+ ...t.rowAttributes(E)
3789
+ }), m = U({}), p = (E) => {
3790
+ var q;
3791
+ return (q = m.value) == null ? void 0 : q.$el.querySelector(`[data-rowid="${E.id}"]`);
3792
+ }, _ = (E) => {
3793
+ const q = {
3794
+ "data-testid": E.headerKey,
3795
+ ...t.cellAttributes(E)
3796
3796
  };
3797
- return O.colIndex === 0 && (N.style = {
3797
+ return E.colIndex === 0 && (q.style = {
3798
3798
  maxWidth: "250px",
3799
3799
  overflowX: "hidden",
3800
3800
  textOverflow: "ellipsis"
3801
- }), N;
3801
+ }), q;
3802
3802
  }, h = () => {
3803
- a("empty-state-cta-clicked"), A();
3804
- }, A = () => {
3803
+ a("empty-state-cta-clicked"), x();
3804
+ }, x = () => {
3805
3805
  a("clear-search-input");
3806
- }, b = T(() => t.disableRowClick ? void 0 : (O, N) => {
3807
- a("click:row", N);
3808
- }), M = (O) => {
3809
- a("sort", O);
3810
- }, { setTablePreferences: S, getTablePreferences: x } = Ir(), c = T(() => {
3811
- const O = x(t.preferencesStorageKey);
3806
+ }, b = j(() => t.disableRowClick ? void 0 : (E, q) => {
3807
+ a("click:row", q);
3808
+ }), $ = (E) => {
3809
+ a("sort", E);
3810
+ }, { setTablePreferences: S, getTablePreferences: T } = Ir(), u = j(() => {
3811
+ const E = T(t.preferencesStorageKey);
3812
3812
  return {
3813
3813
  ...t.initialFetcherParams,
3814
- ...O
3814
+ ...E
3815
3815
  };
3816
- }), k = (O) => {
3817
- t.preferencesStorageKey && S(t.preferencesStorageKey, O);
3816
+ }), k = (E) => {
3817
+ t.preferencesStorageKey && S(t.preferencesStorageKey, E);
3818
3818
  };
3819
- return (O, N) => {
3820
- const oe = L("KIcon"), D = L("KButton"), I = L("KDropdown"), z = L("KTable"), K = L("KCard");
3821
- return v(), R(K, {
3819
+ return (E, q) => {
3820
+ const oe = L("KIcon"), R = L("KButton"), I = L("KDropdown"), H = L("KTable"), K = L("KCard");
3821
+ return v(), P(K, {
3822
3822
  class: "kong-ui-entity-base-table",
3823
3823
  title: e.title
3824
3824
  }, {
3825
3825
  default: y(() => [
3826
- C(z, {
3826
+ C(H, {
3827
3827
  ref_key: "tableRefs",
3828
3828
  ref: m,
3829
3829
  "cache-identifier": o.value,
@@ -3845,44 +3845,44 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3845
3845
  "has-error": n.value.hasError,
3846
3846
  headers: l.value,
3847
3847
  "hide-pagination-when-optional": "",
3848
- "initial-fetcher-params": c.value,
3848
+ "initial-fetcher-params": u.value,
3849
3849
  "is-loading": e.isLoading,
3850
3850
  "pagination-type": e.paginationType,
3851
3851
  "row-attrs": d,
3852
3852
  "search-input": e.query,
3853
3853
  onKtableEmptyStateCtaClicked: h,
3854
3854
  "onRow:click": b.value,
3855
- onSort: N[0] || (N[0] = (P) => M(P)),
3855
+ onSort: q[0] || (q[0] = (B) => $(B)),
3856
3856
  "onUpdate:tablePreferences": k
3857
3857
  }, je({
3858
- toolbar: y(({ state: P }) => [
3859
- Re(V("div", Ol, [
3860
- X(O.$slots, "toolbar-filter", {}, void 0, !0),
3861
- O.$slots["toolbar-button"] ? (v(), j("div", El, [
3862
- X(O.$slots, "toolbar-button", {}, void 0, !0)
3863
- ])) : H("", !0)
3858
+ toolbar: y(({ state: B }) => [
3859
+ Re(N("div", Ol, [
3860
+ Q(E.$slots, "toolbar-filter", {}, void 0, !0),
3861
+ E.$slots["toolbar-button"] ? (v(), M("div", El, [
3862
+ Q(E.$slots, "toolbar-button", {}, void 0, !0)
3863
+ ])) : D("", !0)
3864
3864
  ], 512), [
3865
- [De, s(P)]
3865
+ [De, s(B)]
3866
3866
  ])
3867
3867
  ]),
3868
- actions: y(({ row: P, rowKey: J, rowValue: Y }) => [
3869
- V("div", {
3868
+ actions: y(({ row: B, rowKey: z, rowValue: G }) => [
3869
+ N("div", {
3870
3870
  class: "actions-container",
3871
- "data-testid": P.name
3871
+ "data-testid": B.name
3872
3872
  }, [
3873
3873
  C(I, {
3874
3874
  "kpop-attributes": { placement: "bottomEnd" },
3875
3875
  width: e.dropdownMenuWidth
3876
3876
  }, {
3877
3877
  items: y(() => [
3878
- X(O.$slots, "actions", {
3879
- row: P,
3880
- rowKey: J,
3881
- rowValue: Y
3878
+ Q(E.$slots, "actions", {
3879
+ row: B,
3880
+ rowKey: z,
3881
+ rowValue: G
3882
3882
  }, void 0, !0)
3883
3883
  ]),
3884
3884
  default: y(() => [
3885
- C(D, {
3885
+ C(R, {
3886
3886
  class: "actions-trigger",
3887
3887
  "data-testid": "overflow-actions-button",
3888
3888
  size: "small"
@@ -3903,20 +3903,20 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3903
3903
  ]),
3904
3904
  _: 2
3905
3905
  }, [
3906
- he(e.tableHeaders, (P, J) => ({
3907
- name: J,
3908
- fn: y(({ row: Y, rowKey: ee, rowValue: W }) => [
3906
+ ye(e.tableHeaders, (B, z) => ({
3907
+ name: z,
3908
+ fn: y(({ row: G, rowKey: X, rowValue: Y }) => [
3909
3909
  C($l, {
3910
- "key-name": String(J),
3911
- "row-el": p(Y)
3910
+ "key-name": String(z),
3911
+ "row-el": p(G)
3912
3912
  }, {
3913
3913
  default: y(() => [
3914
- X(O.$slots, J, {
3915
- row: Y,
3916
- rowKey: ee,
3917
- rowValue: W
3914
+ Q(E.$slots, z, {
3915
+ row: G,
3916
+ rowKey: X,
3917
+ rowValue: Y
3918
3918
  }, () => [
3919
- G($(W), 1)
3919
+ J(O(Y), 1)
3920
3920
  ], !0)
3921
3921
  ]),
3922
3922
  _: 2
@@ -3929,7 +3929,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3929
3929
  }, 8, ["title"]);
3930
3930
  };
3931
3931
  }
3932
- }), Nl = /* @__PURE__ */ we(Vl, [["__scopeId", "data-v-2b9bf3dd"]]), ql = {
3932
+ }), Nl = /* @__PURE__ */ he(Vl, [["__scopeId", "data-v-2b9bf3dd"]]), ql = {
3933
3933
  key: 0,
3934
3934
  class: "kong-ui-entity-delete-error"
3935
3935
  }, Ul = {
@@ -3974,14 +3974,14 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3974
3974
  },
3975
3975
  emits: ["cancel", "proceed"],
3976
3976
  setup(e, { emit: i }) {
3977
- const { i18nT: t } = ue.useI18n(), a = e, r = i, n = T(() => a.needConfirm ? a.entityName : ""), o = () => {
3977
+ const { i18nT: t } = se.useI18n(), a = e, r = i, n = j(() => a.needConfirm ? a.entityName : ""), o = () => {
3978
3978
  r("cancel");
3979
3979
  }, s = () => {
3980
3980
  r("proceed");
3981
3981
  };
3982
3982
  return (l, d) => {
3983
3983
  const m = L("KAlert"), p = L("KPrompt");
3984
- return v(), R(p, {
3984
+ return v(), P(p, {
3985
3985
  "action-button-text": "Yes, delete",
3986
3986
  "action-pending": e.actionPending,
3987
3987
  class: "kong-ui-entity-delete-modal",
@@ -3993,43 +3993,43 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
3993
3993
  onProceed: s
3994
3994
  }, {
3995
3995
  "body-content": y(() => [
3996
- e.error ? (v(), j("div", ql, [
3996
+ e.error ? (v(), M("div", ql, [
3997
3997
  C(m, { appearance: "danger" }, {
3998
3998
  alertMessage: y(() => [
3999
- G($(e.error), 1)
3999
+ J(O(e.error), 1)
4000
4000
  ]),
4001
4001
  _: 1
4002
4002
  })
4003
- ])) : H("", !0),
4003
+ ])) : D("", !0),
4004
4004
  C(f(t), {
4005
4005
  class: "message",
4006
4006
  keypath: a.entityName ? "deleteModal.messageWithName" : "deleteModal.message",
4007
4007
  tag: "p"
4008
4008
  }, je({
4009
4009
  entityType: y(() => [
4010
- G($(a.entityType), 1)
4010
+ J(O(a.entityType), 1)
4011
4011
  ]),
4012
4012
  _: 2
4013
4013
  }, [
4014
4014
  a.entityName ? {
4015
4015
  name: "entityName",
4016
4016
  fn: y(() => [
4017
- V("strong", null, $(a.entityName), 1)
4017
+ N("strong", null, O(a.entityName), 1)
4018
4018
  ]),
4019
4019
  key: "0"
4020
4020
  } : void 0
4021
4021
  ]), 1032, ["keypath"]),
4022
- a.description || l.$slots.description ? (v(), j("div", Ul, [
4023
- X(l.$slots, "description", {}, () => [
4024
- V("p", null, $(a.description), 1)
4022
+ a.description || l.$slots.description ? (v(), M("div", Ul, [
4023
+ Q(l.$slots, "description", {}, () => [
4024
+ N("p", null, O(a.description), 1)
4025
4025
  ], !0)
4026
- ])) : H("", !0)
4026
+ ])) : D("", !0)
4027
4027
  ]),
4028
4028
  _: 3
4029
4029
  }, 8, ["action-pending", "confirmation-text", "is-visible", "title"]);
4030
4030
  };
4031
4031
  }
4032
- }), Kl = /* @__PURE__ */ we(Ll, [["__scopeId", "data-v-1c9a2a07"]]), Bl = {
4032
+ }), Kl = /* @__PURE__ */ he(Ll, [["__scopeId", "data-v-1c9a2a07"]]), Bl = {
4033
4033
  fill: "none",
4034
4034
  height: "20",
4035
4035
  viewBox: "0 0 20 20",
@@ -4052,16 +4052,16 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4052
4052
  }
4053
4053
  },
4054
4054
  setup(e) {
4055
- return (i, t) => (v(), j("svg", Bl, [
4056
- V("mask", Pl, [
4057
- V("rect", {
4055
+ return (i, t) => (v(), M("svg", Bl, [
4056
+ N("mask", Pl, [
4057
+ N("rect", {
4058
4058
  fill: e.color,
4059
4059
  height: "20",
4060
4060
  width: "20"
4061
4061
  }, null, 8, Rl)
4062
4062
  ]),
4063
- V("g", Dl, [
4064
- V("path", {
4063
+ N("g", Dl, [
4064
+ N("path", {
4065
4065
  d: "M8 14.5V13H12V14.5H8ZM5 10.75V9.25H15V10.75H5ZM3 7V5.5H17V7H3Z",
4066
4066
  fill: e.color
4067
4067
  }, null, 8, Hl)
@@ -4091,21 +4091,21 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4091
4091
  },
4092
4092
  emits: ["update:modelValue"],
4093
4093
  setup(e, { emit: i }) {
4094
- const { i18n: { t } } = ue.useI18n(), a = e, r = i, n = U(!1), o = U({}), s = T(() => {
4094
+ const { i18n: { t } } = se.useI18n(), a = e, r = i, n = U(!1), o = U({}), s = j(() => {
4095
4095
  const S = [];
4096
- return new URLSearchParams(a.modelValue).forEach((x, c) => {
4097
- x !== "" && S.push(c);
4096
+ return new URLSearchParams(a.modelValue).forEach((T, u) => {
4097
+ T !== "" && S.push(u);
4098
4098
  }), S;
4099
- }), l = T(() => {
4099
+ }), l = j(() => {
4100
4100
  const S = a.config.fields;
4101
- return Object.keys(S).filter((x) => S[x].searchable).map((x) => ({
4102
- label: S[x].label || x,
4103
- value: x
4101
+ return Object.keys(S).filter((T) => S[T].searchable).map((T) => ({
4102
+ label: S[T].label || T,
4103
+ value: T
4104
4104
  }));
4105
4105
  });
4106
- ke(() => a.modelValue, (S) => {
4107
- o.value = {}, new URLSearchParams(S).forEach((x, c) => {
4108
- o.value[c] = x;
4106
+ _e(() => a.modelValue, (S) => {
4107
+ o.value = {}, new URLSearchParams(S).forEach((T, u) => {
4108
+ o.value[u] = T;
4109
4109
  });
4110
4110
  });
4111
4111
  const d = () => {
@@ -4113,28 +4113,28 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4113
4113
  }, m = (S) => {
4114
4114
  r("update:modelValue", S);
4115
4115
  }, p = (S) => `filter-${S}`, _ = (S) => {
4116
- var x, c;
4117
- return (((c = (x = a.config.schema) == null ? void 0 : x[S]) == null ? void 0 : c.values) ?? []).map((k) => ({
4116
+ var T, u;
4117
+ return (((u = (T = a.config.schema) == null ? void 0 : T[S]) == null ? void 0 : u.values) ?? []).map((k) => ({
4118
4118
  value: k,
4119
4119
  label: k
4120
4120
  }));
4121
4121
  }, h = (S) => {
4122
- var x, c;
4123
- return ((c = (x = a.config.schema) == null ? void 0 : x[S]) == null ? void 0 : c.type) ?? "text";
4124
- }, A = (S) => {
4122
+ var T, u;
4123
+ return ((u = (T = a.config.schema) == null ? void 0 : T[S]) == null ? void 0 : u.type) ?? "text";
4124
+ }, x = (S) => {
4125
4125
  o.value = {
4126
4126
  ...o.value,
4127
4127
  [S]: ""
4128
- }, M();
4128
+ }, $();
4129
4129
  }, b = () => {
4130
- o.value = {}, M(!0);
4131
- }, M = (S = !1) => {
4132
- const x = Object.keys(o.value).reduce((c, k) => (o.value[k] && (c[k] = `${o.value[k]}`), c), {});
4133
- S && (n.value = !1), r("update:modelValue", new URLSearchParams(x).toString());
4130
+ o.value = {}, $(!0);
4131
+ }, $ = (S = !1) => {
4132
+ const T = Object.keys(o.value).reduce((u, k) => (o.value[k] && (u[k] = `${o.value[k]}`), u), {});
4133
+ S && (n.value = !1), r("update:modelValue", new URLSearchParams(T).toString());
4134
4134
  };
4135
- return (S, x) => {
4136
- const c = L("KInput"), k = L("KButton"), O = L("KSelect"), N = L("KMenuItem"), oe = L("KMenu");
4137
- return e.config.isExactMatch ? (v(), R(c, {
4135
+ return (S, T) => {
4136
+ const u = L("KInput"), k = L("KButton"), E = L("KSelect"), q = L("KMenuItem"), oe = L("KMenu");
4137
+ return e.config.isExactMatch ? (v(), P(u, {
4138
4138
  key: 0,
4139
4139
  autocomplete: "off",
4140
4140
  class: "kong-ui-entity-filter-input",
@@ -4147,7 +4147,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4147
4147
  C(ti)
4148
4148
  ]),
4149
4149
  _: 1
4150
- }, 8, ["model-value", "placeholder"])) : (v(), j("div", zl, [
4150
+ }, 8, ["model-value", "placeholder"])) : (v(), M("div", zl, [
4151
4151
  C(k, {
4152
4152
  appearance: "tertiary",
4153
4153
  "data-testid": "filter-button",
@@ -4155,11 +4155,11 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4155
4155
  }, {
4156
4156
  default: y(() => [
4157
4157
  C(ti),
4158
- G(" " + $(f(t)("filter.filterButtonText")) + " " + $(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4158
+ J(" " + O(f(t)("filter.filterButtonText")) + " " + O(s.value.length > 0 ? `(${s.value.length})` : ""), 1)
4159
4159
  ]),
4160
4160
  _: 1
4161
4161
  }),
4162
- Re(V("div", {
4162
+ Re(N("div", {
4163
4163
  class: "kong-ui-entity-filter-backdrop",
4164
4164
  onClick: d
4165
4165
  }, null, 512), [
@@ -4167,54 +4167,54 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4167
4167
  ]),
4168
4168
  Re(C(oe, { class: "kong-ui-entity-filter-menu" }, {
4169
4169
  body: y(() => [
4170
- (v(!0), j(be, null, he(l.value, (D, I) => (v(), R(N, {
4171
- key: D.value,
4172
- "data-testid": D.value,
4170
+ (v(!0), M(ve, null, ye(l.value, (R, I) => (v(), P(q, {
4171
+ key: R.value,
4172
+ "data-testid": R.value,
4173
4173
  expandable: "",
4174
4174
  "last-menu-item": I === l.value.length - 1
4175
4175
  }, {
4176
4176
  itemTitle: y(() => [
4177
- V("span", Jl, [
4178
- G($(D.label) + " ", 1),
4179
- Re(V("span", Gl, null, 512), [
4180
- [De, s.value.includes(D.value)]
4177
+ N("span", Jl, [
4178
+ J(O(R.label) + " ", 1),
4179
+ Re(N("span", Gl, null, 512), [
4180
+ [De, s.value.includes(R.value)]
4181
4181
  ])
4182
4182
  ])
4183
4183
  ]),
4184
4184
  itemBody: y(() => {
4185
- var z, K;
4185
+ var H, K;
4186
4186
  return [
4187
- V("div", Yl, [
4188
- V("label", {
4187
+ N("div", Yl, [
4188
+ N("label", {
4189
4189
  class: "menu-item-label",
4190
- for: p(D.value)
4191
- }, $(f(t)("filter.fieldLabel")), 9, Wl),
4192
- ((K = (z = e.config.schema) == null ? void 0 : z[D.value]) == null ? void 0 : K.type) === "select" ? (v(), R(O, {
4190
+ for: p(R.value)
4191
+ }, O(f(t)("filter.fieldLabel")), 9, Wl),
4192
+ ((K = (H = e.config.schema) == null ? void 0 : H[R.value]) == null ? void 0 : K.type) === "select" ? (v(), P(E, {
4193
4193
  key: 0,
4194
- id: p(D.value),
4195
- modelValue: o.value[D.value],
4196
- "onUpdate:modelValue": (P) => o.value[D.value] = P,
4197
- items: _(D.value),
4194
+ id: p(R.value),
4195
+ modelValue: o.value[R.value],
4196
+ "onUpdate:modelValue": (B) => o.value[R.value] = B,
4197
+ items: _(R.value),
4198
4198
  placeholder: f(t)("filter.selectPlaceholder")
4199
- }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), R(c, {
4199
+ }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "items", "placeholder"])) : (v(), P(u, {
4200
4200
  key: 1,
4201
- id: p(D.value),
4202
- modelValue: o.value[D.value],
4203
- "onUpdate:modelValue": (P) => o.value[D.value] = P,
4201
+ id: p(R.value),
4202
+ modelValue: o.value[R.value],
4203
+ "onUpdate:modelValue": (B) => o.value[R.value] = B,
4204
4204
  autocomplete: "off",
4205
4205
  placeholder: f(t)("filter.inputPlaceholder"),
4206
- type: h(D.value)
4206
+ type: h(R.value)
4207
4207
  }, null, 8, ["id", "modelValue", "onUpdate:modelValue", "placeholder", "type"]))
4208
4208
  ]),
4209
- V("div", Zl, [
4209
+ N("div", Zl, [
4210
4210
  C(k, {
4211
4211
  appearance: "tertiary",
4212
4212
  "data-testid": "apply-filter",
4213
4213
  size: "small",
4214
- onClick: x[0] || (x[0] = (P) => M(!0))
4214
+ onClick: T[0] || (T[0] = (B) => $(!0))
4215
4215
  }, {
4216
4216
  default: y(() => [
4217
- G($(f(t)("filter.applyButtonText")), 1)
4217
+ J(O(f(t)("filter.applyButtonText")), 1)
4218
4218
  ]),
4219
4219
  _: 1
4220
4220
  }),
@@ -4222,10 +4222,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4222
4222
  appearance: "tertiary",
4223
4223
  "data-testid": "clear-filter",
4224
4224
  size: "small",
4225
- onClick: (P) => A(D.value)
4225
+ onClick: (B) => x(R.value)
4226
4226
  }, {
4227
4227
  default: y(() => [
4228
- G($(f(t)("filter.clearButtonText")), 1)
4228
+ J(O(f(t)("filter.clearButtonText")), 1)
4229
4229
  ]),
4230
4230
  _: 2
4231
4231
  }, 1032, ["onClick"])
@@ -4236,14 +4236,14 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4236
4236
  }, 1032, ["data-testid", "last-menu-item"]))), 128))
4237
4237
  ]),
4238
4238
  actionButton: y(() => [
4239
- V("div", Ql, [
4239
+ N("div", Ql, [
4240
4240
  C(k, {
4241
4241
  appearance: "tertiary",
4242
4242
  size: "small",
4243
4243
  onClick: b
4244
4244
  }, {
4245
4245
  default: y(() => [
4246
- G($(f(t)("filter.clearAllButtonText")), 1)
4246
+ J(O(f(t)("filter.clearAllButtonText")), 1)
4247
4247
  ]),
4248
4248
  _: 1
4249
4249
  })
@@ -4256,7 +4256,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4256
4256
  ]));
4257
4257
  };
4258
4258
  }
4259
- }), es = /* @__PURE__ */ we(Xl, [["__scopeId", "data-v-e9512e8f"]]), ts = /* @__PURE__ */ re({
4259
+ }), es = /* @__PURE__ */ he(Xl, [["__scopeId", "data-v-e9512e8f"]]), ts = /* @__PURE__ */ re({
4260
4260
  __name: "EntityToggleModal",
4261
4261
  props: {
4262
4262
  visible: {
@@ -4288,9 +4288,9 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4288
4288
  },
4289
4289
  emits: ["canceled", "proceed"],
4290
4290
  setup(e, { emit: i }) {
4291
- const { i18n: { t }, i18nT: a } = ue.useI18n(), r = e, n = i, o = U(!1), s = T(
4291
+ const { i18n: { t }, i18nT: a } = se.useI18n(), r = e, n = i, o = U(!1), s = j(
4292
4292
  () => r.action === "enable" ? t("toggleModal.enable.title", { entityType: r.entityType }) : t("toggleModal.disable.title", { entityType: r.entityType })
4293
- ), l = T(
4293
+ ), l = j(
4294
4294
  () => r.action === "enable" ? t("toggleModal.enable.confirmText") : t("toggleModal.disable.confirmText")
4295
4295
  ), d = () => n("canceled"), m = async () => {
4296
4296
  if (r.onConfirm) {
@@ -4306,7 +4306,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4306
4306
  };
4307
4307
  return (p, _) => {
4308
4308
  const h = L("KPrompt");
4309
- return v(), R(lr, { to: "body" }, [
4309
+ return v(), P(lr, { to: "body" }, [
4310
4310
  C(h, {
4311
4311
  "action-button-text": l.value,
4312
4312
  "action-pending": o.value,
@@ -4323,10 +4323,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4323
4323
  scope: "global"
4324
4324
  }, {
4325
4325
  entityType: y(() => [
4326
- G($(e.entityType), 1)
4326
+ J(O(e.entityType), 1)
4327
4327
  ]),
4328
4328
  entityName: y(() => [
4329
- V("strong", null, $(e.entityName), 1)
4329
+ N("strong", null, O(e.entityName), 1)
4330
4330
  ]),
4331
4331
  _: 1
4332
4332
  }, 8, ["keypath"])
@@ -4358,13 +4358,13 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4358
4358
  }
4359
4359
  },
4360
4360
  setup(e) {
4361
- const i = e, t = U(void 0), a = T(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
4362
- return ke(() => i.authFunction, async () => {
4361
+ const i = e, t = U(void 0), a = j(() => t.value === !0 || t.value !== void 0 && i.forceShow === !0);
4362
+ return _e(() => i.authFunction, async () => {
4363
4363
  t.value = await i.authFunction();
4364
- }, { immediate: !0 }), (r, n) => a.value ? X(r.$slots, "default", {
4364
+ }, { immediate: !0 }), (r, n) => a.value ? Q(r.$slots, "default", {
4365
4365
  key: 0,
4366
4366
  isAllowed: t.value
4367
- }) : H("", !0);
4367
+ }) : D("", !0);
4368
4368
  }
4369
4369
  }), is = { class: "form-section-wrapper" }, rs = {
4370
4370
  key: 0,
@@ -4401,31 +4401,31 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4401
4401
  },
4402
4402
  setup(e) {
4403
4403
  const i = rt();
4404
- return (t, a) => (v(), j("fieldset", {
4404
+ return (t, a) => (v(), M("fieldset", {
4405
4405
  class: Ie(["kong-ui-entity-form-section", { "has-divider": e.hasDivider }])
4406
4406
  }, [
4407
- V("div", is, [
4408
- e.hideInfoHeader ? H("", !0) : (v(), j("div", {
4407
+ N("div", is, [
4408
+ e.hideInfoHeader ? D("", !0) : (v(), M("div", {
4409
4409
  key: 0,
4410
4410
  class: Ie(["form-section-info", { sticky: e.stickyInfoHeader }])
4411
4411
  }, [
4412
- e.title ? (v(), j("h4", rs, $(e.title), 1)) : H("", !0),
4413
- e.description || f(i).description ? (v(), j("div", as, [
4414
- X(t.$slots, "description", {}, () => [
4415
- V("p", null, $(e.description), 1)
4412
+ e.title ? (v(), M("h4", rs, O(e.title), 1)) : D("", !0),
4413
+ e.description || f(i).description ? (v(), M("div", as, [
4414
+ Q(t.$slots, "description", {}, () => [
4415
+ N("p", null, O(e.description), 1)
4416
4416
  ], !0)
4417
- ])) : H("", !0),
4418
- f(i).footer ? (v(), j("div", os, [
4419
- X(t.$slots, "footer", {}, void 0, !0)
4420
- ])) : H("", !0)
4417
+ ])) : D("", !0),
4418
+ f(i).footer ? (v(), M("div", os, [
4419
+ Q(t.$slots, "footer", {}, void 0, !0)
4420
+ ])) : D("", !0)
4421
4421
  ], 2)),
4422
- V("div", ns, [
4423
- X(t.$slots, "default", {}, void 0, !0)
4422
+ N("div", ns, [
4423
+ Q(t.$slots, "default", {}, void 0, !0)
4424
4424
  ])
4425
4425
  ])
4426
4426
  ], 2));
4427
4427
  }
4428
- }), ii = /* @__PURE__ */ we(ls, [["__scopeId", "data-v-3565daa7"]]), { useAxios: or, useDeleteUrlBuilder: ss, useErrors: cs, useExternalLinkCreator: Ks, useFetchUrlBuilder: Bs, useFetcher: us, useDebouncedFilter: Ps, useStringHelpers: Rs, useHelpers: ds, useGatewayFeatureSupported: ps, useTruncationDetector: Ds } = ue, fs = { class: "kong-ui-entities-gateway-services-list" }, ms = { key: 1 }, gs = /* @__PURE__ */ re({
4428
+ }), ii = /* @__PURE__ */ he(ls, [["__scopeId", "data-v-3565daa7"]]), { useAxios: or, useDeleteUrlBuilder: ss, useErrors: cs, useExternalLinkCreator: Ks, useFetchUrlBuilder: Bs, useFetcher: us, useDebouncedFilter: Ps, useStringHelpers: Rs, useHelpers: ds, useGatewayFeatureSupported: ps, useTruncationDetector: Ds } = se, fs = { class: "kong-ui-entities-gateway-services-list" }, ms = { key: 1 }, gs = /* @__PURE__ */ re({
4429
4429
  __name: "GatewayServiceList",
4430
4430
  props: {
4431
4431
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -4471,10 +4471,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4471
4471
  },
4472
4472
  emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
4473
4473
  setup(e, { emit: i }) {
4474
- var Fe;
4474
+ var Le;
4475
4475
  const t = i, a = e, { i18n: { t: r } } = Ze.useI18n(), n = bt(), { axiosInstance: o } = or({
4476
- headers: (Fe = a.config) == null ? void 0 : Fe.requestHeaders
4477
- }), s = U(1), l = T(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
4476
+ headers: (Le = a.config) == null ? void 0 : Le.requestHeaders
4477
+ }), s = U(1), l = j(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
4478
4478
  name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0 },
4479
4479
  protocol: { label: r("gateway_services.list.table_headers.protocol"), searchable: !0, sortable: !0 },
4480
4480
  host: { label: r("gateway_services.list.table_headers.host"), searchable: !0, sortable: !0 },
@@ -4482,136 +4482,136 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4482
4482
  path: { label: r("gateway_services.list.table_headers.path"), searchable: !0, sortable: !0 },
4483
4483
  enabled: { label: r("gateway_services.list.table_headers.enabled"), searchable: !0, sortable: !0 },
4484
4484
  tags: { label: r("gateway_services.list.table_headers.tags"), sortable: !1 }
4485
- }, m = d, p = T(() => {
4486
- var u, g;
4487
- let q = `${a.config.apiBaseUrl}${He.list[a.config.app].all}`;
4488
- return a.config.app === "konnect" ? q = q.replace(/{controlPlaneId}/gi, ((u = a.config) == null ? void 0 : u.controlPlaneId) || "") : a.config.app === "kongManager" && (q = q.replace(/\/{workspace}/gi, (g = a.config) != null && g.workspace ? `/${a.config.workspace}` : "")), q;
4489
- }), _ = T(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = U(""), A = T(() => {
4490
- const q = a.config.app === "konnect" || a.config.isExactMatch;
4491
- if (q)
4485
+ }, m = d, p = j(() => {
4486
+ var g, V;
4487
+ let c = `${a.config.apiBaseUrl}${He.list[a.config.app].all}`;
4488
+ return a.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((g = a.config) == null ? void 0 : g.controlPlaneId) || "") : a.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (V = a.config) != null && V.workspace ? `/${a.config.workspace}` : "")), c;
4489
+ }), _ = j(() => a.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${p.value}`) : new URL(p.value)), h = U(""), x = j(() => {
4490
+ const c = a.config.app === "konnect" || a.config.isExactMatch;
4491
+ if (c)
4492
4492
  return {
4493
- isExactMatch: q,
4493
+ isExactMatch: c,
4494
4494
  placeholder: r(`search.placeholder.${a.config.app}`)
4495
4495
  };
4496
- const { name: u, enabled: g, protocol: B, host: ne, port: le, path: de } = d;
4496
+ const { name: g, enabled: V, protocol: W, host: ie, port: ce, path: w } = d;
4497
4497
  return {
4498
- isExactMatch: q,
4499
- fields: { name: u, enabled: g, protocol: B, host: ne, port: le, path: de },
4498
+ isExactMatch: c,
4499
+ fields: { name: g, enabled: V, protocol: W, host: ie, port: ce, path: w },
4500
4500
  schema: a.config.filterSchema
4501
4501
  };
4502
- }), { fetcher: b, fetcherState: M } = us(a.config, p.value), S = () => {
4502
+ }), { fetcher: b, fetcherState: $ } = us(a.config, p.value), S = () => {
4503
4503
  h.value = "";
4504
- }, x = () => {
4504
+ }, T = () => {
4505
4505
  s.value++;
4506
- }, c = U(null), k = T(() => ({
4506
+ }, u = U(null), k = j(() => ({
4507
4507
  ctaPath: a.config.createRoute,
4508
- ctaText: Ee.value ? r("actions.create") : void 0,
4508
+ ctaText: xe.value ? r("actions.create") : void 0,
4509
4509
  message: r("gateway_services.list.empty_state.description"),
4510
- title: Ee.value ? r("gateway_services.list.empty_state.title") : r("gateway_services.title")
4511
- })), O = U(!1), N = U(null), oe = T(() => {
4512
- const q = {
4510
+ title: xe.value ? r("gateway_services.list.empty_state.title") : r("gateway_services.title")
4511
+ })), E = U(!1), q = U(null), oe = j(() => {
4512
+ const c = {
4513
4513
  action: "disable",
4514
4514
  id: "",
4515
4515
  name: ""
4516
4516
  };
4517
- if (N.value) {
4518
- const { enabled: u, id: g, name: B } = N.value;
4519
- q.action = u ? "disable" : "enable", q.id = g, q.name = B || g;
4517
+ if (q.value) {
4518
+ const { enabled: g, id: V, name: W } = q.value;
4519
+ c.action = g ? "disable" : "enable", c.id = V, c.name = W || V;
4520
4520
  }
4521
- return q;
4522
- }), D = (q) => {
4523
- O.value = !0, N.value = q;
4521
+ return c;
4522
+ }), R = (c) => {
4523
+ E.value = !0, q.value = c;
4524
4524
  }, I = () => {
4525
- O.value = !1, N.value = null;
4526
- }, z = async () => {
4527
- var B, ne;
4528
- if (!await ((B = a.canEdit) == null ? void 0 : B.call(a, N.value)) || !N.value)
4525
+ E.value = !1, q.value = null;
4526
+ }, H = async () => {
4527
+ var W, ie;
4528
+ if (!await ((W = a.canEdit) == null ? void 0 : W.call(a, q.value)) || !q.value)
4529
4529
  return;
4530
- const u = `${_.value.href}/${N.value.id}`, g = !N.value.enabled;
4530
+ const g = `${_.value.href}/${q.value.id}`, V = !q.value.enabled;
4531
4531
  try {
4532
- const { data: le } = ((ne = a.config) == null ? void 0 : ne.app) === "konnect" ? await o.put(u, { ...N.value, enabled: g }) : await o.patch(u, { ...N.value, enabled: g });
4533
- t("toggle:success", le);
4534
- } catch (le) {
4535
- t("error", le);
4532
+ const { data: ce } = ((ie = a.config) == null ? void 0 : ie.app) === "konnect" ? await o.put(g, { ...q.value, enabled: V }) : await o.patch(g, { ...q.value, enabled: V });
4533
+ t("toggle:success", ce);
4534
+ } catch (ce) {
4535
+ t("error", ce);
4536
4536
  }
4537
- N.value.enabled = g;
4538
- }, K = (q, u) => {
4539
- const g = q.id;
4540
- if (!u(g)) {
4537
+ q.value.enabled = V;
4538
+ }, K = (c, g) => {
4539
+ const V = c.id;
4540
+ if (!g(V)) {
4541
4541
  t("copy:error", {
4542
- entity: q,
4542
+ entity: c,
4543
4543
  field: "id",
4544
4544
  message: r("errors.copy")
4545
4545
  });
4546
4546
  return;
4547
4547
  }
4548
4548
  t("copy:success", {
4549
- entity: q,
4549
+ entity: c,
4550
4550
  field: "id",
4551
- message: r("copy.success", { val: g })
4551
+ message: r("copy.success", { val: V })
4552
4552
  });
4553
- }, P = (q, u) => {
4554
- const g = JSON.stringify(q);
4555
- if (!u(g)) {
4553
+ }, B = (c, g) => {
4554
+ const V = JSON.stringify(c);
4555
+ if (!g(V)) {
4556
4556
  t("copy:error", {
4557
- entity: q,
4557
+ entity: c,
4558
4558
  message: r("errors.copy")
4559
4559
  });
4560
4560
  return;
4561
4561
  }
4562
4562
  t("copy:success", {
4563
- entity: q,
4563
+ entity: c,
4564
4564
  message: r("copy.success_brief")
4565
4565
  });
4566
- }, J = async (q) => {
4567
- var g;
4568
- await ((g = a.canRetrieve) == null ? void 0 : g.call(a, q)) && n.push(a.config.getViewRoute(q.id));
4569
- }, Y = (q) => ({
4566
+ }, z = async (c) => {
4567
+ var V;
4568
+ await ((V = a.canRetrieve) == null ? void 0 : V.call(a, c)) && n.push(a.config.getViewRoute(c.id));
4569
+ }, G = (c) => ({
4570
4570
  label: r("actions.view"),
4571
- to: a.config.getViewRoute(q)
4572
- }), ee = (q) => ({
4571
+ to: a.config.getViewRoute(c)
4572
+ }), X = (c) => ({
4573
4573
  label: r("actions.edit"),
4574
- to: a.config.getEditRoute(q)
4575
- }), W = U(void 0), ae = U(!1), Q = U(!1), te = U(""), pe = ss(a.config, p.value), ot = (q) => {
4576
- W.value = q, ae.value = !0;
4574
+ to: a.config.getEditRoute(c)
4575
+ }), Y = U(void 0), ae = U(!1), Z = U(!1), ee = U(""), ue = ss(a.config, p.value), ot = (c) => {
4576
+ Y.value = c, ae.value = !0;
4577
4577
  }, Oe = () => {
4578
- ae.value = !1, W.value = void 0;
4578
+ ae.value = !1, Y.value = void 0;
4579
4579
  }, nt = async () => {
4580
- var q, u, g;
4581
- if ((q = W.value) != null && q.id) {
4582
- Q.value = !0;
4580
+ var c, g, V;
4581
+ if ((c = Y.value) != null && c.id) {
4582
+ Z.value = !0;
4583
4583
  try {
4584
- await o.delete(pe(W.value.id)), t("delete:success", W.value), Oe(), s.value++;
4585
- } catch (B) {
4586
- te.value = ((g = (u = B.response) == null ? void 0 : u.data) == null ? void 0 : g.message) || B.message || r("errors.delete"), t("error", B);
4584
+ await o.delete(ue(Y.value.id)), t("delete:success", Y.value), Oe(), s.value++;
4585
+ } catch (W) {
4586
+ ee.value = ((V = (g = W.response) == null ? void 0 : g.data) == null ? void 0 : V.message) || W.message || r("errors.delete"), t("error", W);
4587
4587
  } finally {
4588
- Q.value = !1;
4588
+ Z.value = !1;
4589
4589
  }
4590
4590
  }
4591
- }, xe = U(!0);
4592
- ke(M, (q) => {
4593
- var u, g, B, ne;
4594
- if (Array.isArray((u = q == null ? void 0 : q.response) == null ? void 0 : u.data) && (xe.value = q.response.data.length > 0), q.status === Te.Error) {
4595
- c.value = {
4591
+ }, Ce = U(!0);
4592
+ _e($, (c) => {
4593
+ var g, V, W, ie;
4594
+ if (Array.isArray((g = c == null ? void 0 : c.response) == null ? void 0 : g.data) && (Ce.value = c.response.data.length > 0), c.status === Te.Error) {
4595
+ u.value = {
4596
4596
  title: r("errors.general")
4597
- }, (ne = (B = (g = q.error) == null ? void 0 : g.response) == null ? void 0 : B.data) != null && ne.message && (c.value.message = q.error.response.data.message), t("error", q.error);
4597
+ }, (ie = (W = (V = c.error) == null ? void 0 : V.response) == null ? void 0 : W.data) != null && ie.message && (u.value.message = c.error.response.data.message), t("error", c.error);
4598
4598
  return;
4599
4599
  }
4600
- c.value = null;
4600
+ u.value = null;
4601
4601
  });
4602
- const Ee = U(!1);
4602
+ const xe = U(!1);
4603
4603
  return ht(async () => {
4604
- Ee.value = await a.canCreate();
4605
- }), (q, u) => {
4606
- const g = L("KButton"), B = L("KInputSwitch"), ne = L("KBadge"), le = L("KTruncate"), de = L("KDropdownItem"), w = L("KClipboardProvider");
4607
- return v(), j("div", fs, [
4604
+ xe.value = await a.canCreate();
4605
+ }), (c, g) => {
4606
+ const V = L("KButton"), W = L("KInputSwitch"), ie = L("KBadge"), ce = L("KTruncate"), w = L("KDropdownItem"), Ke = L("KClipboardProvider");
4607
+ return v(), M("div", fs, [
4608
4608
  C(f(Nl), {
4609
4609
  "cache-identifier": e.cacheIdentifier,
4610
4610
  "disable-pagination-page-jump": "",
4611
4611
  "disable-sorting": l.value,
4612
4612
  "empty-state-options": k.value,
4613
4613
  "enable-entity-actions": "",
4614
- "error-message": c.value,
4614
+ "error-message": u.value,
4615
4615
  fetcher: f(b),
4616
4616
  "fetcher-cache-key": s.value,
4617
4617
  "pagination-type": "offset",
@@ -4620,18 +4620,18 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4620
4620
  "table-headers": f(m),
4621
4621
  "use-action-outside": e.useActionOutside,
4622
4622
  onClearSearchInput: S,
4623
- "onClick:row": u[3] || (u[3] = (Z) => J(Z)),
4624
- onSort: x
4623
+ "onClick:row": g[3] || (g[3] = (A) => z(A)),
4624
+ onSort: T
4625
4625
  }, {
4626
4626
  "toolbar-filter": y(() => [
4627
4627
  C(f(es), {
4628
4628
  modelValue: h.value,
4629
- "onUpdate:modelValue": u[0] || (u[0] = (Z) => h.value = Z),
4630
- config: A.value
4629
+ "onUpdate:modelValue": g[0] || (g[0] = (A) => h.value = A),
4630
+ config: x.value
4631
4631
  }, null, 8, ["modelValue", "config"])
4632
4632
  ]),
4633
4633
  "toolbar-button": y(() => [
4634
- (v(), R($e(e.useActionOutside ? "Teleport" : "div"), {
4634
+ (v(), P($e(e.useActionOutside ? "Teleport" : "div"), {
4635
4635
  to: e.useActionOutside ? "#kong-ui-app-page-header-action-button" : void 0
4636
4636
  }, {
4637
4637
  default: y(() => [
@@ -4639,18 +4639,18 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4639
4639
  "auth-function": () => e.canCreate()
4640
4640
  }, {
4641
4641
  default: y(() => [
4642
- Re(C(g, {
4642
+ Re(C(V, {
4643
4643
  appearance: "primary",
4644
4644
  "data-testid": "toolbar-add-gateway-service",
4645
4645
  icon: "plus",
4646
4646
  to: e.config.createRoute
4647
4647
  }, {
4648
4648
  default: y(() => [
4649
- G($(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
4649
+ J(O(f(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
4650
4650
  ]),
4651
4651
  _: 1
4652
4652
  }, 8, ["to"]), [
4653
- [De, xe.value]
4653
+ [De, Ce.value]
4654
4654
  ])
4655
4655
  ]),
4656
4656
  _: 1
@@ -4659,72 +4659,72 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4659
4659
  _: 1
4660
4660
  }, 8, ["to"]))
4661
4661
  ]),
4662
- name: y(({ rowValue: Z }) => [
4663
- V("b", null, $(Z ?? "-"), 1)
4662
+ name: y(({ rowValue: A }) => [
4663
+ N("b", null, O(A ?? "-"), 1)
4664
4664
  ]),
4665
- enabled: y(({ row: Z }) => [
4665
+ enabled: y(({ row: A }) => [
4666
4666
  C(f(Be), {
4667
- "auth-function": () => e.canEdit(Z),
4667
+ "auth-function": () => e.canEdit(A),
4668
4668
  "force-show": ""
4669
4669
  }, {
4670
- default: y(({ isAllowed: F }) => [
4671
- V("div", {
4672
- onClick: u[1] || (u[1] = Le(() => {
4670
+ default: y(({ isAllowed: we }) => [
4671
+ N("div", {
4672
+ onClick: g[1] || (g[1] = qe(() => {
4673
4673
  }, ["stop"]))
4674
4674
  }, [
4675
- C(B, {
4676
- modelValue: Z.enabled,
4677
- "onUpdate:modelValue": (We) => Z.enabled = We,
4678
- "data-testid": `row-${Z.id}-toggle-input`,
4679
- disabled: !F,
4680
- label: Z.enabled ? f(r)("actions.enable.enabled_label") : f(r)("actions.enable.disabled_label"),
4681
- onClick: Le((We) => D(Z), ["prevent"])
4675
+ C(W, {
4676
+ modelValue: A.enabled,
4677
+ "onUpdate:modelValue": (We) => A.enabled = We,
4678
+ "data-testid": `row-${A.id}-toggle-input`,
4679
+ disabled: !we,
4680
+ label: A.enabled ? f(r)("actions.enable.enabled_label") : f(r)("actions.enable.disabled_label"),
4681
+ onClick: qe((We) => R(A), ["prevent"])
4682
4682
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "label", "onClick"])
4683
4683
  ])
4684
4684
  ]),
4685
4685
  _: 2
4686
4686
  }, 1032, ["auth-function"])
4687
4687
  ]),
4688
- tags: y(({ rowValue: Z }) => [
4689
- (Z == null ? void 0 : Z.length) > 0 ? (v(), R(le, { key: 0 }, {
4688
+ tags: y(({ rowValue: A }) => [
4689
+ (A == null ? void 0 : A.length) > 0 ? (v(), P(ce, { key: 0 }, {
4690
4690
  default: y(() => [
4691
- (v(!0), j(be, null, he(Z, (F) => (v(), R(ne, {
4692
- key: F,
4693
- onClick: u[2] || (u[2] = Le(() => {
4691
+ (v(!0), M(ve, null, ye(A, (we) => (v(), P(ie, {
4692
+ key: we,
4693
+ onClick: g[2] || (g[2] = qe(() => {
4694
4694
  }, ["stop"]))
4695
4695
  }, {
4696
4696
  default: y(() => [
4697
- G($(F), 1)
4697
+ J(O(we), 1)
4698
4698
  ]),
4699
4699
  _: 2
4700
4700
  }, 1024))), 128))
4701
4701
  ]),
4702
4702
  _: 2
4703
- }, 1024)) : (v(), j("span", ms, "-"))
4703
+ }, 1024)) : (v(), M("span", ms, "-"))
4704
4704
  ]),
4705
- actions: y(({ row: Z }) => [
4706
- C(w, null, {
4707
- default: y(({ copyToClipboard: F }) => [
4708
- C(de, {
4705
+ actions: y(({ row: A }) => [
4706
+ C(Ke, null, {
4707
+ default: y(({ copyToClipboard: we }) => [
4708
+ C(w, {
4709
4709
  "data-testid": "action-entity-copy-id",
4710
- onClick: (We) => K(Z, F)
4710
+ onClick: (We) => K(A, we)
4711
4711
  }, {
4712
4712
  default: y(() => [
4713
- G($(f(r)("actions.copy_id")), 1)
4713
+ J(O(f(r)("actions.copy_id")), 1)
4714
4714
  ]),
4715
4715
  _: 2
4716
4716
  }, 1032, ["onClick"])
4717
4717
  ]),
4718
4718
  _: 2
4719
4719
  }, 1024),
4720
- C(w, null, {
4721
- default: y(({ copyToClipboard: F }) => [
4722
- C(de, {
4720
+ C(Ke, null, {
4721
+ default: y(({ copyToClipboard: we }) => [
4722
+ C(w, {
4723
4723
  "data-testid": "action-entity-copy-json",
4724
- onClick: (We) => P(Z, F)
4724
+ onClick: (We) => B(A, we)
4725
4725
  }, {
4726
4726
  default: y(() => [
4727
- G($(f(r)("actions.copy_json")), 1)
4727
+ J(O(f(r)("actions.copy_json")), 1)
4728
4728
  ]),
4729
4729
  _: 2
4730
4730
  }, 1032, ["onClick"])
@@ -4732,40 +4732,40 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4732
4732
  _: 2
4733
4733
  }, 1024),
4734
4734
  C(f(Be), {
4735
- "auth-function": () => e.canRetrieve(Z)
4735
+ "auth-function": () => e.canRetrieve(A)
4736
4736
  }, {
4737
4737
  default: y(() => [
4738
- C(de, {
4738
+ C(w, {
4739
4739
  "data-testid": "action-entity-view",
4740
4740
  "has-divider": "",
4741
- item: Y(Z.id)
4741
+ item: G(A.id)
4742
4742
  }, null, 8, ["item"])
4743
4743
  ]),
4744
4744
  _: 2
4745
4745
  }, 1032, ["auth-function"]),
4746
4746
  C(f(Be), {
4747
- "auth-function": () => e.canEdit(Z)
4747
+ "auth-function": () => e.canEdit(A)
4748
4748
  }, {
4749
4749
  default: y(() => [
4750
- C(de, {
4750
+ C(w, {
4751
4751
  "data-testid": "action-entity-edit",
4752
- item: ee(Z.id)
4752
+ item: X(A.id)
4753
4753
  }, null, 8, ["item"])
4754
4754
  ]),
4755
4755
  _: 2
4756
4756
  }, 1032, ["auth-function"]),
4757
4757
  C(f(Be), {
4758
- "auth-function": () => e.canDelete(Z)
4758
+ "auth-function": () => e.canDelete(A)
4759
4759
  }, {
4760
4760
  default: y(() => [
4761
- C(de, {
4761
+ C(w, {
4762
4762
  danger: "",
4763
4763
  "data-testid": "action-entity-delete",
4764
4764
  "has-divider": "",
4765
- onClick: (F) => ot(Z)
4765
+ onClick: (we) => ot(A)
4766
4766
  }, {
4767
4767
  default: y(() => [
4768
- G($(f(r)("actions.delete.menu_label")), 1)
4768
+ J(O(f(r)("actions.delete.menu_label")), 1)
4769
4769
  ]),
4770
4770
  _: 2
4771
4771
  }, 1032, ["onClick"])
@@ -4780,17 +4780,17 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4780
4780
  "entity-id": oe.value.id,
4781
4781
  "entity-name": oe.value.name,
4782
4782
  "entity-type": f(r)("glossary.gateway_services"),
4783
- "on-confirm": z,
4784
- visible: O.value,
4783
+ "on-confirm": H,
4784
+ visible: E.value,
4785
4785
  onCanceled: I,
4786
4786
  onProceed: I
4787
4787
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
4788
4788
  C(f(Kl), {
4789
- "action-pending": Q.value,
4789
+ "action-pending": Z.value,
4790
4790
  description: f(r)("actions.delete.description"),
4791
- "entity-name": W.value && (W.value.name || W.value.id),
4791
+ "entity-name": Y.value && (Y.value.name || Y.value.id),
4792
4792
  "entity-type": f(ci).GatewayService,
4793
- error: te.value,
4793
+ error: ee.value,
4794
4794
  title: f(r)("actions.delete.title"),
4795
4795
  visible: ae.value,
4796
4796
  onCancel: Oe,
@@ -4849,10 +4849,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4849
4849
  },
4850
4850
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
4851
4851
  setup(e, { expose: i, emit: t }) {
4852
- var q;
4852
+ var Le;
4853
4853
  const a = t, r = e, n = U(!0), o = bt(), { i18nT: s, i18n: { t: l } } = Ze.useI18n(), { getMessageFromError: d } = cs(), { axiosInstance: m } = or({
4854
- headers: (q = r.config) == null ? void 0 : q.requestHeaders
4855
- }), p = T(() => He.form[r.config.app].edit), _ = T(() => r.gatewayServiceId ? pt.Edit : pt.Create), h = U(!1), A = T(() => !!r.gatewayServiceId), b = U(A.value ? "protocol" : "url"), M = Ze.usePortFromProtocol(), S = U(""), x = T(() => !!S.value), c = Mt({
4854
+ headers: (Le = r.config) == null ? void 0 : Le.requestHeaders
4855
+ }), p = j(() => He.form[r.config.app].edit), _ = j(() => r.gatewayServiceId ? pt.Edit : pt.Create), h = U(!1), x = j(() => !!r.gatewayServiceId), b = U(x.value ? "protocol" : "url"), $ = Ze.usePortFromProtocol(), S = U(""), T = j(() => !!S.value), u = Mt({
4856
4856
  fields: {
4857
4857
  name: "",
4858
4858
  protocol: "http",
@@ -4888,13 +4888,13 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4888
4888
  tls_verify_enabled: !1,
4889
4889
  tls_verify_value: !1,
4890
4890
  tags: ""
4891
- }), O = r.config.app === "konnect" || ps({
4891
+ }), E = r.config.app === "konnect" || ps({
4892
4892
  gatewayInfo: r.config.gatewayInfo,
4893
4893
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
4894
4894
  supportedRange: {
4895
4895
  enterprise: ["3.0"]
4896
4896
  }
4897
- }), N = [
4897
+ }), q = [
4898
4898
  {
4899
4899
  label: l("gateway_services.form.fields.protocol.options.http"),
4900
4900
  value: "http",
@@ -4930,7 +4930,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4930
4930
  value: "grpcs",
4931
4931
  group: "grpc"
4932
4932
  },
4933
- ...O ? [
4933
+ ...E ? [
4934
4934
  {
4935
4935
  label: l("gateway_services.form.fields.protocol.options.ws"),
4936
4936
  value: "ws",
@@ -4947,126 +4947,126 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
4947
4947
  value: "udp",
4948
4948
  group: "udp"
4949
4949
  }
4950
- ], oe = { url: "url", protocol: "protocol" }, D = (u, g) => {
4950
+ ], oe = { url: "url", protocol: "protocol" }, R = (c, g) => {
4951
4951
  g.value;
4952
- }, I = (u) => u ? parseFloat(u) : 0, z = () => {
4953
- n.value = !0, c.errorMessage = "", c.fields.host = k.host, c.fields.path = k.path, c.fields.port = k.port, c.fields.protocol = k.protocol, c.fields.url = k.url, c.fields.retries = k.retries, c.fields.connect_timeout = k.connect_timeout, c.fields.write_timeout = k.write_timeout, c.fields.read_timeout = k.read_timeout, c.fields.client_certificate = k.client_certificate, c.fields.ca_certificates = k.ca_certificates, c.fields.tls_verify_enabled = k.tls_verify_enabled, c.fields.tls_verify_value = k.tls_verify_value;
4952
+ }, I = (c) => c ? parseFloat(c) : 0, H = () => {
4953
+ n.value = !0, u.errorMessage = "", u.fields.host = k.host, u.fields.path = k.path, u.fields.port = k.port, u.fields.protocol = k.protocol, u.fields.url = k.url, u.fields.retries = k.retries, u.fields.connect_timeout = k.connect_timeout, u.fields.write_timeout = k.write_timeout, u.fields.read_timeout = k.read_timeout, u.fields.client_certificate = k.client_certificate, u.fields.ca_certificates = k.ca_certificates, u.fields.tls_verify_enabled = k.tls_verify_enabled, u.fields.tls_verify_value = k.tls_verify_value;
4954
4954
  }, K = () => {
4955
- if (c.fields.url && b.value === "url")
4955
+ if (u.fields.url && b.value === "url")
4956
4956
  try {
4957
- const u = new URL(c.fields.url);
4958
- c.errorMessage = "", c.fields.protocol = u.protocol.slice(0, -1), c.fields.host = u.hostname, c.fields.path = u.pathname;
4959
- const g = Number(u.port);
4960
- h.value = !!g, c.fields.port = g || M.getPortFromProtocol(c.fields.protocol), c.errorMessage = "", a("url-valid:success");
4961
- } catch (u) {
4962
- c.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", d(u));
4957
+ const c = new URL(u.fields.url);
4958
+ u.errorMessage = "", u.fields.protocol = c.protocol.slice(0, -1), u.fields.host = c.hostname, u.fields.path = c.pathname;
4959
+ const g = Number(c.port);
4960
+ h.value = !!g, u.fields.port = g || $.getPortFromProtocol(u.fields.protocol), u.errorMessage = "", a("url-valid:success");
4961
+ } catch (c) {
4962
+ u.errorMessage = l("errors.urlErrorMessage"), a("url-valid:error", d(c));
4963
4963
  }
4964
4964
  else
4965
- a("url-valid:success"), c.errorMessage = "";
4966
- }, P = T(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(c.fields.protocol)), J = T(() => {
4965
+ a("url-valid:success"), u.errorMessage = "";
4966
+ }, B = j(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(u.fields.protocol)), z = j(() => {
4967
4967
  if (b.value === "url")
4968
4968
  return !0;
4969
- const u = ["https", "wss", "tls"].includes(c.fields.protocol);
4970
- return b.value === "protocol" && u;
4971
- }), Y = T(() => {
4969
+ const c = ["https", "wss", "tls"].includes(u.fields.protocol);
4970
+ return b.value === "protocol" && c;
4971
+ }), G = j(() => {
4972
4972
  if (b.value === "url")
4973
4973
  return !0;
4974
- const u = ["https", "tls"].includes(c.fields.protocol);
4975
- return b.value === "protocol" && u;
4976
- }), ee = T(() => {
4974
+ const c = ["https", "tls"].includes(u.fields.protocol);
4975
+ return b.value === "protocol" && c;
4976
+ }), X = j(() => {
4977
4977
  if (b.value === "url")
4978
4978
  return !0;
4979
- const u = ["https", "wss", "tls"].includes(c.fields.protocol);
4980
- return b.value === "protocol" && u;
4981
- }), W = (u) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(u) ? "" : l("errors.validationNameError"), ae = (u) => {
4982
- S.value = W(u);
4983
- }, Q = T(() => A.value && JSON.stringify(c.fields) !== JSON.stringify(k) || b.value === "url" && !!c.fields.url || b.value === "protocol" && !!c.fields.host), te = (u) => {
4984
- var g, B, ne;
4985
- 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 = ((B = u == null ? void 0 : u.ca_certificates) == null ? void 0 : B.join(",")) || "", c.fields.client_certificate = ((ne = u == null ? void 0 : u.client_certificate) == null ? void 0 : ne.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(k, c.fields);
4986
- }, pe = () => {
4979
+ const c = ["https", "wss", "tls"].includes(u.fields.protocol);
4980
+ return b.value === "protocol" && c;
4981
+ }), Y = (c) => new RegExp("^[0-9a-zA-Z.\\-_~]*$").test(c) ? "" : l("errors.validationNameError"), ae = (c) => {
4982
+ S.value = Y(c);
4983
+ }, Z = j(() => x.value && JSON.stringify(u.fields) !== JSON.stringify(k) || b.value === "url" && !!u.fields.url || b.value === "protocol" && !!u.fields.host), ee = (c) => {
4984
+ var g, V, W;
4985
+ u.fields.name = (c == null ? void 0 : c.name) || "", u.fields.tags = ((g = c == null ? void 0 : c.tags) == null ? void 0 : g.join(",")) || "", u.fields.protocol = (c == null ? void 0 : c.protocol) || "http", u.fields.path = (c == null ? void 0 : c.path) || "", u.fields.read_timeout = c != null && c.read_timeout || (c == null ? void 0 : c.read_timeout) === 0 ? c == null ? void 0 : c.read_timeout : 6e4, u.fields.retries = c != null && c.retries || (c == null ? void 0 : c.retries) === 0 ? c == null ? void 0 : c.retries : 5, u.fields.host = (c == null ? void 0 : c.host) || "", u.fields.connect_timeout = c != null && c.connect_timeout || (c == null ? void 0 : c.connect_timeout) === 0 ? c == null ? void 0 : c.connect_timeout : 6e4, u.fields.tls_verify_enabled = (c == null ? void 0 : c.tls_verify) !== "" && (c == null ? void 0 : c.tls_verify) !== null && (c == null ? void 0 : c.tls_verify) !== void 0, u.fields.tls_verify_value = c != null && c.tls_verify ? c == null ? void 0 : c.tls_verify : !1, u.fields.ca_certificates = ((V = c == null ? void 0 : c.ca_certificates) == null ? void 0 : V.join(",")) || "", u.fields.client_certificate = ((W = c == null ? void 0 : c.client_certificate) == null ? void 0 : W.id) || "", u.fields.write_timeout = c != null && c.write_timeout || (c == null ? void 0 : c.write_timeout) === 0 ? c == null ? void 0 : c.write_timeout : 6e4, u.fields.port = c != null && c.port || (c == null ? void 0 : c.port) === 0 ? c == null ? void 0 : c.port : 80, Object.assign(k, u.fields);
4986
+ }, ue = () => {
4987
4987
  o.push(r.config.cancelRoute);
4988
- }, ot = T(() => {
4989
- var g, B;
4990
- let u = `${r.config.apiBaseUrl}${He.form[r.config.app].validate}`;
4991
- 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, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), u = u.replace(/{id}/gi, r.gatewayServiceId), u;
4992
- }), Oe = T(() => {
4993
- var g, B;
4994
- let u = `${r.config.apiBaseUrl}${He.form[r.config.app][_.value]}`;
4995
- 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, (B = r.config) != null && B.workspace ? `/${r.config.workspace}` : "")), u = u.replace(/{id}/gi, r.gatewayServiceId), u;
4996
- }), nt = (u) => {
4988
+ }, ot = j(() => {
4989
+ var g, V;
4990
+ let c = `${r.config.apiBaseUrl}${He.form[r.config.app].validate}`;
4991
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (V = r.config) != null && V.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.gatewayServiceId), c;
4992
+ }), Oe = j(() => {
4993
+ var g, V;
4994
+ let c = `${r.config.apiBaseUrl}${He.form[r.config.app][_.value]}`;
4995
+ return r.config.app === "konnect" ? c = c.replace(/{controlPlaneId}/gi, ((g = r.config) == null ? void 0 : g.controlPlaneId) || "") : r.config.app === "kongManager" && (c = c.replace(/\/{workspace}/gi, (V = r.config) != null && V.workspace ? `/${r.config.workspace}` : "")), c = c.replace(/{id}/gi, r.gatewayServiceId), c;
4996
+ }), nt = (c) => {
4997
4997
  let g = "";
4998
- 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;
4999
- }, xe = T(() => {
5000
- var g, B;
5001
- const u = {
5002
- name: c.fields.name || null,
5003
- tags: c.fields.tags ? (g = c.fields.tags) == null ? void 0 : g.split(",").filter((ne) => ne !== "") : null,
5004
- protocol: c.fields.protocol,
5005
- path: c.fields.path || null,
5006
- read_timeout: c.fields.read_timeout,
5007
- retries: c.fields.retries,
5008
- host: c.fields.host,
5009
- connect_timeout: c.fields.connect_timeout,
5010
- tls_verify_value: c.fields.tls_verify_value,
5011
- tls_verify_enabled: c.fields.tls_verify_enabled,
5012
- ca_certificates: c.fields.ca_certificates ? (B = c.fields.ca_certificates) == null ? void 0 : B.split(",").filter((ne) => ne !== "") : null,
5013
- client_certificate: c.fields.client_certificate ? { id: c.fields.client_certificate } : null,
5014
- write_timeout: c.fields.write_timeout,
5015
- port: c.fields.port,
5016
- url: c.fields.url
4998
+ c.url && (g = new URL(c.url).protocol), (["https", "wss", "tls"].includes(c.protocol) || ["https", "wss", "tls"].includes(g)) && (c.tls_verify = c.tls_verify_enabled ? c.tls_verify_value : null), delete c.tls_verify_enabled, delete c.tls_verify_value;
4999
+ }, Ce = j(() => {
5000
+ var g, V;
5001
+ const c = {
5002
+ name: u.fields.name || null,
5003
+ tags: u.fields.tags ? (g = u.fields.tags) == null ? void 0 : g.split(",").filter((W) => W !== "") : null,
5004
+ protocol: u.fields.protocol,
5005
+ path: u.fields.path || null,
5006
+ read_timeout: u.fields.read_timeout,
5007
+ retries: u.fields.retries,
5008
+ host: u.fields.host,
5009
+ connect_timeout: u.fields.connect_timeout,
5010
+ tls_verify_value: u.fields.tls_verify_value,
5011
+ tls_verify_enabled: u.fields.tls_verify_enabled,
5012
+ ca_certificates: u.fields.ca_certificates ? (V = u.fields.ca_certificates) == null ? void 0 : V.split(",").filter((W) => W !== "") : null,
5013
+ client_certificate: u.fields.client_certificate ? { id: u.fields.client_certificate } : null,
5014
+ write_timeout: u.fields.write_timeout,
5015
+ port: u.fields.port,
5016
+ url: u.fields.url
5017
5017
  };
5018
- 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), P.value || (u.path = null), _.value === "create" ? b.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;
5019
- }), Ee = () => (K(), xe.value), Fe = async () => {
5020
- var u, g, B, ne;
5018
+ return u.fields.client_certificate && ["https", "wss", "tls"].includes(u.fields.protocol) && (c.client_certificate = { id: u.fields.client_certificate }), u.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(u.fields.protocol) && (c.tls_verify = u.fields.tls_verify_value), B.value || (c.path = null), _.value === "create" ? b.value === "url" ? (delete c.protocol, delete c.host, delete c.path, r.config.app === "konnect" && delete c.port) : delete c.url : _.value === "edit" && delete c.url, c;
5019
+ }), xe = async () => {
5020
+ var c, g, V, W;
5021
5021
  try {
5022
- c.isReadonly = !0;
5023
- const le = Ee();
5024
- nt(le);
5025
- let de;
5026
- if (await m.post(ot.value, le), _.value === "create" ? de = await m.post(Oe.value, le) : _.value === "edit" && (de = ((u = r.config) == null ? void 0 : u.app) === "konnect" ? await m.put(Oe.value, le) : await m.patch(Oe.value, le)), de) {
5027
- const { data: w } = de;
5028
- c.fields.name = (w == null ? void 0 : w.name) || "", c.fields.port = w.port || M.getPortFromProtocol(w.protocol), c.fields.protocol = (w == null ? void 0 : w.protocol) || "http", c.fields.host = (w == null ? void 0 : w.host) || "", c.fields.path = (w == null ? void 0 : w.path) || "", c.fields.url = (w == null ? void 0 : w.url) || "", c.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, c.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, c.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, c.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, c.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", c.fields.ca_certificates = (B = w == null ? void 0 : w.ca_certificates) != null && B.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", c.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, c.fields.tls_verify_value = c.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), c.fields.tags = (ne = w == null ? void 0 : w.tags) != null && ne.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(k, c.fields), a("update", de == null ? void 0 : de.data);
5022
+ u.isReadonly = !0, K();
5023
+ const ie = Ce.value;
5024
+ nt(ie);
5025
+ let ce;
5026
+ if (await m.post(ot.value, ie), _.value === "create" ? ce = await m.post(Oe.value, ie) : _.value === "edit" && (ce = ((c = r.config) == null ? void 0 : c.app) === "konnect" ? await m.put(Oe.value, ie) : await m.patch(Oe.value, ie)), ce) {
5027
+ const { data: w } = ce;
5028
+ u.fields.name = (w == null ? void 0 : w.name) || "", u.fields.port = w.port || $.getPortFromProtocol(w.protocol), u.fields.protocol = (w == null ? void 0 : w.protocol) || "http", u.fields.host = (w == null ? void 0 : w.host) || "", u.fields.path = (w == null ? void 0 : w.path) || "", u.fields.url = (w == null ? void 0 : w.url) || "", u.fields.retries = w != null && w.retries || (w == null ? void 0 : w.retries) === 0 ? w == null ? void 0 : w.retries : 5, u.fields.connect_timeout = w != null && w.connect_timeout || (w == null ? void 0 : w.connect_timeout) === 0 ? w == null ? void 0 : w.connect_timeout : 6e4, u.fields.write_timeout = w != null && w.write_timeout || (w == null ? void 0 : w.write_timeout) === 0 ? w == null ? void 0 : w.write_timeout : 6e4, u.fields.read_timeout = w != null && w.read_timeout || (w == null ? void 0 : w.read_timeout) === 0 ? w == null ? void 0 : w.read_timeout : 6e4, u.fields.client_certificate = ((g = w == null ? void 0 : w.client_certificate) == null ? void 0 : g.id) || "", u.fields.ca_certificates = (V = w == null ? void 0 : w.ca_certificates) != null && V.length ? w == null ? void 0 : w.ca_certificates.join(",") : "", u.fields.tls_verify_enabled = (w == null ? void 0 : w.tls_verify) !== "" && (w == null ? void 0 : w.tls_verify) !== null && (w == null ? void 0 : w.tls_verify) !== void 0, u.fields.tls_verify_value = u.fields.tls_verify_enabled && (w == null ? void 0 : w.tls_verify), u.fields.tags = (W = w == null ? void 0 : w.tags) != null && W.length ? w == null ? void 0 : w.tags.join(",") : "", Object.assign(k, u.fields), a("update", ce == null ? void 0 : ce.data);
5029
5029
  }
5030
- return de;
5031
- } catch (le) {
5032
- c.errorMessage = d(le), a("error", le);
5030
+ return ce;
5031
+ } catch (ie) {
5032
+ u.errorMessage = d(ie), a("error", ie);
5033
5033
  } finally {
5034
- c.isReadonly = !1;
5034
+ u.isReadonly = !1;
5035
5035
  }
5036
5036
  };
5037
- return ke(() => r.gatewayServiceId, () => {
5038
- Object.assign(c.fields, k);
5039
- }), ke(c.fields, (u) => {
5040
- c.fields.port = M.getPortFromProtocol(u.protocol, String(u.port)), a("model-updated", xe.value);
5037
+ return _e(() => r.gatewayServiceId, () => {
5038
+ Object.assign(u.fields, k);
5039
+ }), _e(u.fields, (c) => {
5040
+ u.fields.port = $.getPortFromProtocol(c.protocol, String(c.port)), a("model-updated", Ce.value);
5041
5041
  }), ai(() => {
5042
- a("model-updated", xe.value);
5042
+ a("model-updated", Ce.value);
5043
5043
  }), i({
5044
5044
  validateUrl: K,
5045
- getPayload: xe,
5046
- saveFormData: Fe,
5047
- canSubmit: Q
5048
- }), (u, g) => {
5049
- const B = L("KInput"), ne = L("KLabel"), le = L("KRadio"), de = L("KSelect"), w = L("KCheckbox"), Z = L("KCollapse");
5050
- return v(), j("div", ys, [
5045
+ getPayload: Ce,
5046
+ saveFormData: xe,
5047
+ canSubmit: Z
5048
+ }), (c, g) => {
5049
+ const V = L("KInput"), W = L("KLabel"), ie = L("KRadio"), ce = L("KSelect"), w = L("KCheckbox"), Ke = L("KCollapse");
5050
+ return v(), M("div", ys, [
5051
5051
  C(f(Tl), {
5052
- "can-submit": Q.value,
5052
+ "can-submit": Z.value,
5053
5053
  config: e.config,
5054
5054
  "edit-id": e.gatewayServiceId,
5055
- "error-message": c.errorMessage,
5055
+ "error-message": u.errorMessage,
5056
5056
  "fetch-url": p.value,
5057
- "form-fields": Ee(),
5058
- "is-readonly": c.isReadonly,
5059
- onCancel: pe,
5060
- "onFetch:error": g[25] || (g[25] = (F) => u.$emit("error", F)),
5061
- "onFetch:success": te,
5062
- onLoading: g[26] || (g[26] = (F) => u.$emit("loading", F)),
5063
- onSubmit: Fe
5057
+ "form-fields": Ce.value.value,
5058
+ "is-readonly": u.isReadonly,
5059
+ onCancel: ue,
5060
+ "onFetch:error": g[25] || (g[25] = (A) => c.$emit("error", A)),
5061
+ "onFetch:success": ee,
5062
+ onLoading: g[26] || (g[26] = (A) => c.$emit("loading", A)),
5063
+ onSubmit: xe
5064
5064
  }, {
5065
5065
  "form-actions": y(() => [
5066
- X(u.$slots, "form-actions", {
5067
- canSubmit: Q.value,
5068
- cancel: pe,
5069
- submit: Fe
5066
+ Q(c.$slots, "form-actions", {
5067
+ canSubmit: Z.value,
5068
+ cancel: ue,
5069
+ submit: xe
5070
5070
  }, void 0, !0)
5071
5071
  ]),
5072
5072
  default: y(() => [
@@ -5076,25 +5076,25 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5076
5076
  title: f(l)("gateway_services.form.sections.general.title")
5077
5077
  }, {
5078
5078
  default: y(() => [
5079
- C(B, {
5080
- modelValue: c.fields.name,
5081
- "onUpdate:modelValue": g[0] || (g[0] = (F) => c.fields.name = F),
5079
+ C(V, {
5080
+ modelValue: u.fields.name,
5081
+ "onUpdate:modelValue": g[0] || (g[0] = (A) => u.fields.name = A),
5082
5082
  modelModifiers: { trim: !0 },
5083
5083
  autocomplete: "off",
5084
5084
  "data-testid": "gateway-service-name-input",
5085
- error: x.value,
5085
+ error: T.value,
5086
5086
  "error-message": S.value,
5087
5087
  label: f(l)("gateway_services.form.fields.name.label"),
5088
5088
  "label-attributes": { info: f(l)("gateway_services.form.fields.name.tooltip") },
5089
5089
  name: "name",
5090
5090
  placeholder: f(l)("gateway_services.form.fields.name.placeholder"),
5091
- readonly: c.isReadonly,
5091
+ readonly: u.isReadonly,
5092
5092
  type: "text",
5093
5093
  onInput: ae
5094
5094
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
5095
- C(B, {
5096
- modelValue: c.fields.tags,
5097
- "onUpdate:modelValue": g[1] || (g[1] = (F) => c.fields.tags = F),
5095
+ C(V, {
5096
+ modelValue: u.fields.tags,
5097
+ "onUpdate:modelValue": g[1] || (g[1] = (A) => u.fields.tags = A),
5098
5098
  modelModifiers: { trim: !0 },
5099
5099
  autocomplete: "off",
5100
5100
  "data-testid": "gateway-service-tags-input",
@@ -5103,7 +5103,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5103
5103
  "label-attributes": { info: f(l)("gateway_services.form.fields.tags.tooltip") },
5104
5104
  name: "tags",
5105
5105
  placeholder: f(l)("gateway_services.form.fields.tags.placeholder"),
5106
- readonly: c.isReadonly,
5106
+ readonly: u.isReadonly,
5107
5107
  type: "text"
5108
5108
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"])
5109
5109
  ]),
@@ -5115,33 +5115,33 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5115
5115
  title: f(l)("gateway_services.form.sections.keys.title")
5116
5116
  }, {
5117
5117
  default: y(() => [
5118
- A.value ? H("", !0) : (v(), j("div", vs, [
5119
- V("div", hs, [
5120
- C(ne, { required: "" }, {
5118
+ x.value ? D("", !0) : (v(), M("div", vs, [
5119
+ N("div", hs, [
5120
+ C(W, { required: "" }, {
5121
5121
  default: y(() => [
5122
- G($(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
5122
+ J(O(f(l)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
5123
5123
  ]),
5124
5124
  _: 1
5125
5125
  })
5126
5126
  ]),
5127
- V("div", bs, [
5128
- C(le, {
5127
+ N("div", bs, [
5128
+ C(ie, {
5129
5129
  modelValue: b.value,
5130
- "onUpdate:modelValue": g[2] || (g[2] = (F) => b.value = F),
5130
+ "onUpdate:modelValue": g[2] || (g[2] = (A) => b.value = A),
5131
5131
  "data-testid": "gateway-service-url-radio",
5132
5132
  "selected-value": oe.url,
5133
- onChange: z
5133
+ onChange: H
5134
5134
  }, {
5135
5135
  default: y(() => [
5136
- G($(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
5136
+ J(O(f(l)("gateway_services.form.sections.keys.urlLabel")), 1)
5137
5137
  ]),
5138
5138
  _: 1
5139
5139
  }, 8, ["modelValue", "selected-value"])
5140
5140
  ]),
5141
- b.value === "url" ? (v(), j("div", ws, [
5142
- C(B, {
5143
- modelValue: c.fields.url,
5144
- "onUpdate:modelValue": g[3] || (g[3] = (F) => c.fields.url = F),
5141
+ b.value === "url" ? (v(), M("div", ws, [
5142
+ C(V, {
5143
+ modelValue: u.fields.url,
5144
+ "onUpdate:modelValue": g[3] || (g[3] = (A) => u.fields.url = A),
5145
5145
  modelModifiers: { trim: !0 },
5146
5146
  class: "gateway-service-url-input gateway-service-form-margin-bottom",
5147
5147
  "data-testid": "gateway-service-url-input",
@@ -5153,39 +5153,39 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5153
5153
  placeholder: f(l)("gateway_services.form.fields.upstream_url.placeholder"),
5154
5154
  required: ""
5155
5155
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
5156
- ])) : H("", !0),
5157
- C(le, {
5156
+ ])) : D("", !0),
5157
+ C(ie, {
5158
5158
  modelValue: b.value,
5159
- "onUpdate:modelValue": g[4] || (g[4] = (F) => b.value = F),
5159
+ "onUpdate:modelValue": g[4] || (g[4] = (A) => b.value = A),
5160
5160
  "checked-group": "protocol",
5161
5161
  "data-testid": "gateway-service-protocol-radio",
5162
5162
  "selected-value": oe.protocol,
5163
- onChange: z
5163
+ onChange: H
5164
5164
  }, {
5165
5165
  default: y(() => [
5166
- G($(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
5166
+ J(O(f(l)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
5167
5167
  ]),
5168
5168
  _: 1
5169
5169
  }, 8, ["modelValue", "selected-value"])
5170
5170
  ])),
5171
- b.value === "protocol" || A.value ? (v(), j("div", _s, [
5172
- C(de, {
5173
- modelValue: c.fields.protocol,
5174
- "onUpdate:modelValue": g[5] || (g[5] = (F) => c.fields.protocol = F),
5171
+ b.value === "protocol" || x.value ? (v(), M("div", _s, [
5172
+ C(ce, {
5173
+ modelValue: u.fields.protocol,
5174
+ "onUpdate:modelValue": g[5] || (g[5] = (A) => u.fields.protocol = A),
5175
5175
  "data-testid": "gateway-service-protocol-select",
5176
- items: N,
5176
+ items: q,
5177
5177
  label: f(l)("gateway_services.form.fields.protocol.label"),
5178
5178
  "label-attributes": {
5179
5179
  info: f(l)("gateway_services.form.fields.protocol.tooltip")
5180
5180
  },
5181
- readonly: c.isReadonly,
5181
+ readonly: u.isReadonly,
5182
5182
  required: "",
5183
5183
  width: "100%",
5184
- onSelected: g[6] || (g[6] = (F) => D(c.fields.protocol, F))
5184
+ onSelected: g[6] || (g[6] = (A) => R(u.fields.protocol, A))
5185
5185
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
5186
- C(B, {
5187
- modelValue: c.fields.host,
5188
- "onUpdate:modelValue": g[7] || (g[7] = (F) => c.fields.host = F),
5186
+ C(V, {
5187
+ modelValue: u.fields.host,
5188
+ "onUpdate:modelValue": g[7] || (g[7] = (A) => u.fields.host = A),
5189
5189
  modelModifiers: { trim: !0 },
5190
5190
  class: "gateway-service-form-margin-top",
5191
5191
  "data-testid": "gateway-service-host-input",
@@ -5197,10 +5197,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5197
5197
  placeholder: f(l)("gateway_services.form.fields.host.placeholder"),
5198
5198
  required: ""
5199
5199
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
5200
- P.value ? (v(), j("div", ks, [
5201
- C(B, {
5202
- modelValue: c.fields.path,
5203
- "onUpdate:modelValue": g[8] || (g[8] = (F) => c.fields.path = F),
5200
+ B.value ? (v(), M("div", ks, [
5201
+ C(V, {
5202
+ modelValue: u.fields.path,
5203
+ "onUpdate:modelValue": g[8] || (g[8] = (A) => u.fields.path = A),
5204
5204
  modelModifiers: { trim: !0 },
5205
5205
  class: "gateway-service-form-margin-top",
5206
5206
  "data-testid": "gateway-service-path-input",
@@ -5211,13 +5211,13 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5211
5211
  name: "path",
5212
5212
  placeholder: f(l)("gateway_services.form.fields.path.placeholder")
5213
5213
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
5214
- ])) : H("", !0),
5215
- C(B, {
5216
- modelValue: c.fields.port,
5214
+ ])) : D("", !0),
5215
+ C(V, {
5216
+ modelValue: u.fields.port,
5217
5217
  "onUpdate:modelValue": [
5218
- g[9] || (g[9] = (F) => c.fields.port = F),
5218
+ g[9] || (g[9] = (A) => u.fields.port = A),
5219
5219
  g[10] || (g[10] = () => {
5220
- c.fields.port = I(c.fields.port + "");
5220
+ u.fields.port = I(u.fields.port + "");
5221
5221
  })
5222
5222
  ],
5223
5223
  class: "gateway-service-form-margin-top",
@@ -5229,23 +5229,23 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5229
5229
  name: "port",
5230
5230
  type: "number"
5231
5231
  }, null, 8, ["modelValue", "label", "label-attributes"])
5232
- ])) : H("", !0),
5233
- C(Z, {
5232
+ ])) : D("", !0),
5233
+ C(Ke, {
5234
5234
  modelValue: n.value,
5235
- "onUpdate:modelValue": g[24] || (g[24] = (F) => n.value = F),
5235
+ "onUpdate:modelValue": g[24] || (g[24] = (A) => n.value = A),
5236
5236
  "data-testid": "advanced-fields-collapse",
5237
5237
  "trigger-alignment": "leading",
5238
5238
  "trigger-label": f(l)("gateway_services.form.sections.keys.viewAdvancedFields")
5239
5239
  }, {
5240
5240
  default: y(() => [
5241
- V("div", Cs, [
5242
- V("div", Ss, [
5243
- C(B, {
5244
- modelValue: c.fields.retries,
5241
+ N("div", Cs, [
5242
+ N("div", Ss, [
5243
+ C(V, {
5244
+ modelValue: u.fields.retries,
5245
5245
  "onUpdate:modelValue": [
5246
- g[11] || (g[11] = (F) => c.fields.retries = F),
5246
+ g[11] || (g[11] = (A) => u.fields.retries = A),
5247
5247
  g[12] || (g[12] = () => {
5248
- c.fields.retries = I(c.fields.retries + "");
5248
+ u.fields.retries = I(u.fields.retries + "");
5249
5249
  })
5250
5250
  ],
5251
5251
  autocomplete: "off",
@@ -5253,17 +5253,17 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5253
5253
  label: f(l)("gateway_services.form.fields.retries.label"),
5254
5254
  "label-attributes": { info: f(l)("gateway_services.form.fields.retries.tooltip") },
5255
5255
  name: "retries",
5256
- readonly: c.isReadonly,
5256
+ readonly: u.isReadonly,
5257
5257
  type: "number"
5258
5258
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5259
5259
  ]),
5260
- V("div", Is, [
5261
- C(B, {
5262
- modelValue: c.fields.connect_timeout,
5260
+ N("div", Is, [
5261
+ C(V, {
5262
+ modelValue: u.fields.connect_timeout,
5263
5263
  "onUpdate:modelValue": [
5264
- g[13] || (g[13] = (F) => c.fields.connect_timeout = F),
5264
+ g[13] || (g[13] = (A) => u.fields.connect_timeout = A),
5265
5265
  g[14] || (g[14] = () => {
5266
- c.fields.connect_timeout = I(c.fields.connect_timeout + "");
5266
+ u.fields.connect_timeout = I(u.fields.connect_timeout + "");
5267
5267
  })
5268
5268
  ],
5269
5269
  autocomplete: "off",
@@ -5271,17 +5271,17 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5271
5271
  label: f(l)("gateway_services.form.fields.connect_timeout.label"),
5272
5272
  "label-attributes": { info: f(l)("gateway_services.form.fields.connect_timeout.tooltip") },
5273
5273
  name: "connTimeout",
5274
- readonly: c.isReadonly,
5274
+ readonly: u.isReadonly,
5275
5275
  type: "number"
5276
5276
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5277
5277
  ]),
5278
- V("div", As, [
5279
- C(B, {
5280
- modelValue: c.fields.write_timeout,
5278
+ N("div", As, [
5279
+ C(V, {
5280
+ modelValue: u.fields.write_timeout,
5281
5281
  "onUpdate:modelValue": [
5282
- g[15] || (g[15] = (F) => c.fields.write_timeout = F),
5282
+ g[15] || (g[15] = (A) => u.fields.write_timeout = A),
5283
5283
  g[16] || (g[16] = () => {
5284
- c.fields.write_timeout = I(c.fields.write_timeout + "");
5284
+ u.fields.write_timeout = I(u.fields.write_timeout + "");
5285
5285
  })
5286
5286
  ],
5287
5287
  autocomplete: "off",
@@ -5289,17 +5289,17 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5289
5289
  label: f(l)("gateway_services.form.fields.write_timeout.label"),
5290
5290
  "label-attributes": { info: f(l)("gateway_services.form.fields.write_timeout.tooltip") },
5291
5291
  name: "writeTimeout",
5292
- readonly: c.isReadonly,
5292
+ readonly: u.isReadonly,
5293
5293
  type: "number"
5294
5294
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5295
5295
  ]),
5296
- V("div", xs, [
5297
- C(B, {
5298
- modelValue: c.fields.read_timeout,
5296
+ N("div", xs, [
5297
+ C(V, {
5298
+ modelValue: u.fields.read_timeout,
5299
5299
  "onUpdate:modelValue": [
5300
- g[17] || (g[17] = (F) => c.fields.read_timeout = F),
5300
+ g[17] || (g[17] = (A) => u.fields.read_timeout = A),
5301
5301
  g[18] || (g[18] = () => {
5302
- c.fields.read_timeout = I(c.fields.read_timeout + "");
5302
+ u.fields.read_timeout = I(u.fields.read_timeout + "");
5303
5303
  })
5304
5304
  ],
5305
5305
  autocomplete: "off",
@@ -5307,14 +5307,14 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5307
5307
  label: f(l)("gateway_services.form.fields.read_timeout.label"),
5308
5308
  "label-attributes": { info: f(l)("gateway_services.form.fields.read_timeout.tooltip") },
5309
5309
  name: "readTimeout",
5310
- readonly: c.isReadonly,
5310
+ readonly: u.isReadonly,
5311
5311
  type: "number"
5312
5312
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
5313
5313
  ]),
5314
- J.value ? (v(), j("div", Ts, [
5315
- C(B, {
5316
- modelValue: c.fields.client_certificate,
5317
- "onUpdate:modelValue": g[19] || (g[19] = (F) => c.fields.client_certificate = F),
5314
+ z.value ? (v(), M("div", Ts, [
5315
+ C(V, {
5316
+ modelValue: u.fields.client_certificate,
5317
+ "onUpdate:modelValue": g[19] || (g[19] = (A) => u.fields.client_certificate = A),
5318
5318
  modelModifiers: { trim: !0 },
5319
5319
  autocomplete: "off",
5320
5320
  "data-testid": "gateway-service-clientCert-input",
@@ -5322,20 +5322,20 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5322
5322
  "label-attributes": { info: f(l)("gateway_services.form.fields.client_certificate.tooltip") },
5323
5323
  name: "clientCert",
5324
5324
  placeholder: f(l)("gateway_services.form.fields.client_certificate.placeholder"),
5325
- readonly: c.isReadonly,
5325
+ readonly: u.isReadonly,
5326
5326
  type: "text"
5327
5327
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
5328
- ])) : H("", !0),
5329
- Y.value ? (v(), j("div", js, [
5330
- C(B, {
5331
- modelValue: c.fields.ca_certificates,
5332
- "onUpdate:modelValue": g[20] || (g[20] = (F) => c.fields.ca_certificates = F),
5328
+ ])) : D("", !0),
5329
+ G.value ? (v(), M("div", js, [
5330
+ C(V, {
5331
+ modelValue: u.fields.ca_certificates,
5332
+ "onUpdate:modelValue": g[20] || (g[20] = (A) => u.fields.ca_certificates = A),
5333
5333
  modelModifiers: { trim: !0 },
5334
5334
  autocomplete: "off",
5335
5335
  "data-testid": "gateway-service-ca-certs-input",
5336
5336
  label: f(l)("gateway_services.form.fields.ca_certificates.label"),
5337
5337
  placeholder: f(l)("gateway_services.form.fields.ca_certificates.placeholder"),
5338
- readonly: c.isReadonly,
5338
+ readonly: u.isReadonly,
5339
5339
  type: "text"
5340
5340
  }, {
5341
5341
  "label-tooltip": y(() => [
@@ -5344,21 +5344,21 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5344
5344
  scope: "global"
5345
5345
  }, {
5346
5346
  code1: y(() => [
5347
- V("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
5347
+ N("code", null, O(f(l)("gateway_services.form.fields.ca_certificates.code1")), 1)
5348
5348
  ]),
5349
5349
  code2: y(() => [
5350
- V("code", null, $(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
5350
+ N("code", null, O(f(l)("gateway_services.form.fields.ca_certificates.code2")), 1)
5351
5351
  ]),
5352
5352
  _: 1
5353
5353
  })
5354
5354
  ]),
5355
5355
  _: 1
5356
5356
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
5357
- ])) : H("", !0),
5358
- ee.value ? (v(), j("div", Ms, [
5357
+ ])) : D("", !0),
5358
+ X.value ? (v(), M("div", Ms, [
5359
5359
  C(w, {
5360
- modelValue: c.fields.tls_verify_enabled,
5361
- "onUpdate:modelValue": g[21] || (g[21] = (F) => c.fields.tls_verify_enabled = F),
5360
+ modelValue: u.fields.tls_verify_enabled,
5361
+ "onUpdate:modelValue": g[21] || (g[21] = (A) => u.fields.tls_verify_enabled = A),
5362
5362
  "data-testid": "gateway-service-tls-verify-checkbox",
5363
5363
  description: f(l)("gateway_services.form.fields.tls_verify_enabled.help"),
5364
5364
  label: f(l)("gateway_services.form.fields.tls_verify_enabled.label")
@@ -5369,32 +5369,32 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5369
5369
  scope: "global"
5370
5370
  }, {
5371
5371
  code1: y(() => [
5372
- V("code", null, $(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
5372
+ N("code", null, O(f(l)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
5373
5373
  ]),
5374
5374
  _: 1
5375
5375
  })
5376
5376
  ]),
5377
5377
  _: 1
5378
5378
  }, 8, ["modelValue", "description", "label"]),
5379
- c.fields.tls_verify_enabled ? (v(), j("div", $s, [
5380
- C(le, {
5381
- modelValue: c.fields.tls_verify_value,
5382
- "onUpdate:modelValue": g[22] || (g[22] = (F) => c.fields.tls_verify_value = F),
5379
+ u.fields.tls_verify_enabled ? (v(), M("div", $s, [
5380
+ C(ie, {
5381
+ modelValue: u.fields.tls_verify_value,
5382
+ "onUpdate:modelValue": g[22] || (g[22] = (A) => u.fields.tls_verify_value = A),
5383
5383
  "data-testid": "gateway-service-tls-verify-true-option",
5384
5384
  label: f(l)("gateway_services.form.fields.tls_verify_option.true.label"),
5385
5385
  "selected-value": !0
5386
5386
  }, null, 8, ["modelValue", "label"])
5387
- ])) : H("", !0),
5388
- c.fields.tls_verify_enabled ? (v(), j("div", Os, [
5389
- C(le, {
5390
- modelValue: c.fields.tls_verify_value,
5391
- "onUpdate:modelValue": g[23] || (g[23] = (F) => c.fields.tls_verify_value = F),
5387
+ ])) : D("", !0),
5388
+ u.fields.tls_verify_enabled ? (v(), M("div", Os, [
5389
+ C(ie, {
5390
+ modelValue: u.fields.tls_verify_value,
5391
+ "onUpdate:modelValue": g[23] || (g[23] = (A) => u.fields.tls_verify_value = A),
5392
5392
  "data-testid": "gateway-service-tls-verify-false-option",
5393
5393
  label: f(l)("gateway_services.form.fields.tls_verify_option.false.label"),
5394
5394
  "selected-value": !1
5395
5395
  }, null, 8, ["modelValue", "label"])
5396
- ])) : H("", !0)
5397
- ])) : H("", !0)
5396
+ ])) : D("", !0)
5397
+ ])) : D("", !0)
5398
5398
  ])
5399
5399
  ]),
5400
5400
  _: 1
@@ -5408,7 +5408,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5408
5408
  ]);
5409
5409
  };
5410
5410
  }
5411
- }), zs = /* @__PURE__ */ nr(Es, [["__scopeId", "data-v-20c02225"]]), Fs = { class: "kong-ui-gateway-service-entity-config-card" }, Js = /* @__PURE__ */ re({
5411
+ }), zs = /* @__PURE__ */ nr(Es, [["__scopeId", "data-v-48105482"]]), Fs = { class: "kong-ui-gateway-service-entity-config-card" }, Js = /* @__PURE__ */ re({
5412
5412
  __name: "GatewayServiceConfigCard",
5413
5413
  props: {
5414
5414
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -5435,7 +5435,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5435
5435
  },
5436
5436
  emits: ["loading", "fetch:error", "fetch:success", "copy:success"],
5437
5437
  setup(e) {
5438
- const i = e, { i18n: { t }, i18nT: a } = Ze.useI18n(), r = T(() => He.form[i.config.app].edit), { getPropValue: n } = ds(), 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 = U({
5438
+ const i = e, { i18n: { t }, i18nT: a } = Ze.useI18n(), r = j(() => He.form[i.config.app].edit), { getPropValue: n } = ds(), 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 = U({
5439
5439
  id: {},
5440
5440
  name: {
5441
5441
  tooltip: t("gateway_services.form.fields.name.tooltip")
@@ -5444,19 +5444,19 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5444
5444
  updated_at: {},
5445
5445
  created_at: {},
5446
5446
  protocol: {
5447
- section: me.Basic,
5447
+ section: pe.Basic,
5448
5448
  tooltip: t("gateway_services.form.fields.protocol.tooltip")
5449
5449
  },
5450
5450
  host: {
5451
- section: me.Basic,
5451
+ section: pe.Basic,
5452
5452
  tooltip: t("gateway_services.form.fields.host.tooltip")
5453
5453
  },
5454
5454
  path: {
5455
- section: me.Basic,
5455
+ section: pe.Basic,
5456
5456
  tooltip: t("gateway_services.form.fields.path.tooltip")
5457
5457
  },
5458
5458
  port: {
5459
- section: me.Basic,
5459
+ section: pe.Basic,
5460
5460
  tooltip: t("gateway_services.form.fields.port.tooltip")
5461
5461
  },
5462
5462
  tags: {
@@ -5484,7 +5484,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5484
5484
  tooltip: t("gateway_services.form.fields.client_certificate.tooltip")
5485
5485
  },
5486
5486
  ca_certificates: {
5487
- type: ie.BadgeTag,
5487
+ type: te.BadgeTag,
5488
5488
  label: t("gateway_services.form.fields.ca_certificates.label"),
5489
5489
  order: 6
5490
5490
  },
@@ -5495,7 +5495,7 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5495
5495
  hidden: !0
5496
5496
  }
5497
5497
  });
5498
- return (l, d) => (v(), j("div", Fs, [
5498
+ return (l, d) => (v(), M("div", Fs, [
5499
5499
  C(f(Sl), {
5500
5500
  config: e.config,
5501
5501
  "config-card-doc": e.configCardDoc,
@@ -5513,10 +5513,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5513
5513
  scope: "global"
5514
5514
  }, {
5515
5515
  false: y(() => [
5516
- V("code", null, $(f(t)("gateway_services.form.fields.enabled.false")), 1)
5516
+ N("code", null, O(f(t)("gateway_services.form.fields.enabled.false")), 1)
5517
5517
  ]),
5518
5518
  true: y(() => [
5519
- V("code", null, $(f(t)("gateway_services.form.fields.enabled.true")), 1)
5519
+ N("code", null, O(f(t)("gateway_services.form.fields.enabled.true")), 1)
5520
5520
  ]),
5521
5521
  _: 1
5522
5522
  })
@@ -5527,10 +5527,10 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5527
5527
  scope: "global"
5528
5528
  }, {
5529
5529
  code1: y(() => [
5530
- V("code", null, $(f(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
5530
+ N("code", null, O(f(t)("gateway_services.form.fields.ca_certificates.code1")), 1)
5531
5531
  ]),
5532
5532
  code2: y(() => [
5533
- V("code", null, $(f(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
5533
+ N("code", null, O(f(t)("gateway_services.form.fields.ca_certificates.code2")), 1)
5534
5534
  ]),
5535
5535
  _: 1
5536
5536
  })
@@ -5541,16 +5541,16 @@ const rl = { class: "yaml-config" }, ar = /* @__PURE__ */ re({
5541
5541
  scope: "global"
5542
5542
  }, {
5543
5543
  code1: y(() => [
5544
- V("code", null, $(f(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
5544
+ N("code", null, O(f(t)("gateway_services.form.fields.tls_verify_enabled.code1")), 1)
5545
5545
  ]),
5546
5546
  _: 1
5547
5547
  })
5548
5548
  ]),
5549
5549
  tls_verify: y((m) => [
5550
- G($(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
5550
+ J(O(typeof f(n)("rowValue", m) == "boolean" ? o("rowValue", m) : f(t)("gateway_services.form.fields.tls_verify_option.unset.display")), 1)
5551
5551
  ]),
5552
5552
  client_certificate: y((m) => [
5553
- G($(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
5553
+ J(O(f(n)("rowValue", m) ? f(n)("rowValue", m).id : "–"), 1)
5554
5554
  ]),
5555
5555
  _: 1
5556
5556
  }, 8, ["config", "config-card-doc", "config-schema", "fetch-url", "hide-title"])