@kong-ui-public/entities-upstreams-targets 2.3.19 → 2.3.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ae, ref as B, computed as q, watch as ke, renderSlot as le, createCommentVNode as W, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as M, openBlock as b, createBlock as V, createSlots as Oe, withCtx as f, createElementVNode as H, createTextVNode as Y, toDisplayString as S, createVNode as g, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as Ie, withModifiers as Ct, withDirectives as Le, vShow as Re, useCssVars as Nl, inject as Kl, resolveDynamicComponent as Fe, normalizeProps as Js, guardReactiveProps as Ws, mergeProps as _t, onMounted as Qs, onUnmounted as Ys, normalizeStyle as El, pushScopeId as Bl, popScopeId as Pl, reactive as st } from "vue";
1
+ import { defineComponent as ae, ref as B, computed as q, watch as ke, renderSlot as le, createCommentVNode as W, unref as u, useSlots as dt, onBeforeMount as tt, resolveComponent as j, openBlock as b, createBlock as V, createSlots as Oe, withCtx as f, createElementVNode as H, createTextVNode as Y, toDisplayString as S, createVNode as g, createElementBlock as E, renderList as ve, Fragment as de, normalizeClass as Ie, withModifiers as Ct, withDirectives as Le, vShow as Re, useCssVars as Nl, inject as Kl, resolveDynamicComponent as Fe, normalizeProps as Js, guardReactiveProps as Ws, mergeProps as _t, onMounted as Qs, onUnmounted as Ys, normalizeStyle as El, pushScopeId as Bl, popScopeId as Pl, reactive as st } from "vue";
2
2
  import ol from "axios";
3
3
  import { createI18n as $t, i18nTComponent as Vl } from "@kong-ui-public/i18n";
4
4
  import { BadgeMethodAppearances as Zs } from "@kong/kongponents";
5
- import { useRouter as Mt } from "vue-router";
6
- var jt = /* @__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))(jt || {}), _e = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_e || {}), 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 || {}), re = /* @__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))(re || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
5
+ import { useRouter as jt } from "vue-router";
6
+ var Mt = /* @__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))(Mt || {}), _e = /* @__PURE__ */ ((e) => (e.Edit = "edit", e.Create = "create", e))(_e || {}), 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 || {}), re = /* @__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))(re || {}), oe = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Advanced = "advanced", e.Plugin = "plugin", e))(oe || {});
7
7
  function Gs() {
8
8
  return {
9
9
  getAxiosInstance: (e = {}) => {
@@ -262,7 +262,7 @@ function hr(e, l, t, a = {
262
262
  o.value = !1;
263
263
  }
264
264
  }, O = B(""), N = async (F) => {
265
- var j, x, L;
265
+ var M, x, L;
266
266
  if (O.value !== F)
267
267
  if (O.value = F || "", n.value === void 0)
268
268
  try {
@@ -283,7 +283,7 @@ function hr(e, l, t, a = {
283
283
  })
284
284
  );
285
285
  const I = await Promise.all(U), K = /* @__PURE__ */ new Set();
286
- p.value = [], (j = I == null ? void 0 : I.forEach) == null || j.call(I, (A) => {
286
+ p.value = [], (M = I == null ? void 0 : I.forEach) == null || M.call(I, (A) => {
287
287
  var P;
288
288
  (P = A == null ? void 0 : A.forEach) == null || P.call(A, (Q) => {
289
289
  K.has(Q.id) || (K.add(Q.id), p.value.push(Q));
@@ -622,7 +622,7 @@ const he = {
622
622
  _: 1
623
623
  }, 8, ["aria-hidden", "style"]));
624
624
  }
625
- }), Mr = /* @__PURE__ */ Tr($r, [["__scopeId", "data-v-13f41aa3"]]), jr = "16px", Nr = { class: "kong-ui-copy-uuid" }, Kr = ["onClick"], gl = 15, Er = /* @__PURE__ */ ae({
625
+ }), jr = /* @__PURE__ */ Tr($r, [["__scopeId", "data-v-13f41aa3"]]), Mr = "16px", Nr = { class: "kong-ui-copy-uuid" }, Kr = ["onClick"], gl = 15, Er = /* @__PURE__ */ ae({
626
626
  __name: "CopyUuid",
627
627
  props: {
628
628
  uuid: {
@@ -701,7 +701,7 @@ const he = {
701
701
  }), c.value ? p(a.successTooltip) : s("success", a.uuid);
702
702
  };
703
703
  return (n, T) => {
704
- const _ = M("KClipboardProvider");
704
+ const _ = j("KClipboardProvider");
705
705
  return b(), E("div", Nr, [
706
706
  e.format !== "hidden" ? (b(), V(Fe(e.idTooltip ? "KTooltip" : "div"), _t({ key: 0 }, r.value, { "data-testid": "copy-id" }), {
707
707
  default: f(() => [
@@ -725,11 +725,11 @@ const he = {
725
725
  tabindex: "0",
726
726
  onClick: Ct((C) => m(y), ["stop"])
727
727
  }, [
728
- g(u(Mr), {
728
+ g(u(jr), {
729
729
  class: "uuid-icon",
730
730
  color: e.iconColor,
731
731
  decorative: !!e.tooltip,
732
- size: u(jr),
732
+ size: u(Mr),
733
733
  title: u(t)("iconTitle")
734
734
  }, null, 8, ["color", "decorative", "size", "title"])
735
735
  ], 8, Kr)
@@ -810,7 +810,7 @@ const he = {
810
810
  setup(e) {
811
811
  const { i18n: { t: l } } = he.useI18n();
812
812
  return (t, a) => {
813
- const s = M("KButton");
813
+ const s = j("KButton");
814
814
  return b(), E("div", null, [
815
815
  g(s, {
816
816
  appearance: "tertiary",
@@ -836,7 +836,7 @@ const he = {
836
836
  setup(e) {
837
837
  const { i18n: { t: l } } = he.useI18n();
838
838
  return (t, a) => {
839
- const s = M("KBadge");
839
+ const s = j("KBadge");
840
840
  return b(), V(s, {
841
841
  appearance: e.status ? "success" : "neutral"
842
842
  }, {
@@ -1004,7 +1004,7 @@ const he = {
1004
1004
  }
1005
1005
  }), m = B(), { isTruncated: n } = he.useTruncationDetector(m);
1006
1006
  return (T, _) => {
1007
- const y = M("KLabel"), C = M("KBadge"), O = M("KTooltip");
1007
+ const y = j("KLabel"), C = j("KBadge"), O = j("KTooltip");
1008
1008
  return b(), E("div", Zr, [
1009
1009
  H("div", {
1010
1010
  class: "config-card-details-label",
@@ -1165,7 +1165,7 @@ const he = {
1165
1165
  });
1166
1166
  return (s, i) => {
1167
1167
  var r;
1168
- const c = M("KBadge"), o = M("KCodeBlock");
1168
+ const c = j("KBadge"), o = j("KCodeBlock");
1169
1169
  return b(), E("div", ui, [
1170
1170
  l.fetcherUrl && (r = l.config) != null && r.jsonYamlFormsEnabled ? (b(), E("div", ci, [
1171
1171
  g(c, {
@@ -1466,10 +1466,10 @@ var ss = new fe("tag:yaml.org,2002:bool", {
1466
1466
  },
1467
1467
  defaultStyle: "lowercase"
1468
1468
  });
1469
- function Mi(e) {
1469
+ function ji(e) {
1470
1470
  return 48 <= e && e <= 57 || 65 <= e && e <= 70 || 97 <= e && e <= 102;
1471
1471
  }
1472
- function ji(e) {
1472
+ function Mi(e) {
1473
1473
  return 48 <= e && e <= 55;
1474
1474
  }
1475
1475
  function Ni(e) {
@@ -1496,7 +1496,7 @@ function Ki(e) {
1496
1496
  if (s === "x") {
1497
1497
  for (t++; t < l; t++)
1498
1498
  if (s = e[t], s !== "_") {
1499
- if (!Mi(e.charCodeAt(t)))
1499
+ if (!ji(e.charCodeAt(t)))
1500
1500
  return !1;
1501
1501
  a = !0;
1502
1502
  }
@@ -1505,7 +1505,7 @@ function Ki(e) {
1505
1505
  if (s === "o") {
1506
1506
  for (t++; t < l; t++)
1507
1507
  if (s = e[t], s !== "_") {
1508
- if (!ji(e.charCodeAt(t)))
1508
+ if (!Mi(e.charCodeAt(t)))
1509
1509
  return !1;
1510
1510
  a = !0;
1511
1511
  }
@@ -1791,7 +1791,7 @@ function bl(e) {
1791
1791
  function we(e) {
1792
1792
  return e === 10 || e === 13;
1793
1793
  }
1794
- function Me(e) {
1794
+ function je(e) {
1795
1795
  return e === 9 || e === 32;
1796
1796
  }
1797
1797
  function be(e) {
@@ -1901,7 +1901,7 @@ function Vt(e) {
1901
1901
  }
1902
1902
  function ue(e, l, t) {
1903
1903
  for (var a = 0, s = e.input.charCodeAt(e.position); s !== 0; ) {
1904
- for (; Me(s); )
1904
+ for (; je(s); )
1905
1905
  s === 9 && e.firstTabInLine === -1 && (e.firstTabInLine = e.position), s = e.input.charCodeAt(++e.position);
1906
1906
  if (l && s === 35)
1907
1907
  do
@@ -1946,7 +1946,7 @@ function Cn(e, l, t) {
1946
1946
  break;
1947
1947
  }
1948
1948
  }
1949
- c && (qe(e, i, r, !1), Lt(e, e.line - o), i = r = e.position, c = !1), Me(n) || (r = e.position + 1), n = e.input.charCodeAt(++e.position);
1949
+ c && (qe(e, i, r, !1), Lt(e, e.line - o), i = r = e.position, c = !1), je(n) || (r = e.position + 1), n = e.input.charCodeAt(++e.position);
1950
1950
  }
1951
1951
  return qe(e, i, r, !1), e.result ? !0 : (e.kind = p, e.result = m, !1);
1952
1952
  }
@@ -2018,10 +2018,10 @@ function In(e, l) {
2018
2018
  h === 0 ? R(e, "bad explicit indentation width of a block scalar; it cannot be less than one") : r ? R(e, "repeat of an indentation width identifier") : (c = l + h - 1, r = !0);
2019
2019
  else
2020
2020
  break;
2021
- if (Me(p)) {
2021
+ if (je(p)) {
2022
2022
  do
2023
2023
  p = e.input.charCodeAt(++e.position);
2024
- while (Me(p));
2024
+ while (je(p));
2025
2025
  if (p === 35)
2026
2026
  do
2027
2027
  p = e.input.charCodeAt(++e.position);
@@ -2040,7 +2040,7 @@ function In(e, l) {
2040
2040
  `);
2041
2041
  break;
2042
2042
  }
2043
- for (a ? Me(p) ? (d = !0, e.result += ce.repeat(`
2043
+ for (a ? je(p) ? (d = !0, e.result += ce.repeat(`
2044
2044
  `, i ? 1 + o : o)) : d ? (d = !1, e.result += ce.repeat(`
2045
2045
  `, o + 1)) : o === 0 ? i && (e.result += " ") : e.result += ce.repeat(`
2046
2046
  `, o) : e.result += ce.repeat(`
@@ -2077,7 +2077,7 @@ function xn(e, l, t) {
2077
2077
  if (r = e.line, c = e.lineStart, o = e.position, !Je(e, t, ys, !1, !0))
2078
2078
  break;
2079
2079
  if (e.line === i) {
2080
- for (O = e.input.charCodeAt(e.position); Me(O); )
2080
+ for (O = e.input.charCodeAt(e.position); je(O); )
2081
2081
  O = e.input.charCodeAt(++e.position);
2082
2082
  if (O === 58)
2083
2083
  O = e.input.charCodeAt(++e.position), be(O) || R(e, "a whitespace character is expected after the key-value separator within a block mapping"), y && (Ve(e, p, m, n, T, null, r, c, o), n = T = _ = null), C = !0, y = !1, s = !1, n = e.tag, T = e.result;
@@ -2167,7 +2167,7 @@ function On(e) {
2167
2167
  for (i = !0, r = e.input.charCodeAt(++e.position), t = e.position; r !== 0 && !be(r); )
2168
2168
  r = e.input.charCodeAt(++e.position);
2169
2169
  for (a = e.input.slice(t, e.position), s = [], a.length < 1 && R(e, "directive name must not be less than one character in length"); r !== 0; ) {
2170
- for (; Me(r); )
2170
+ for (; je(r); )
2171
2171
  r = e.input.charCodeAt(++e.position);
2172
2172
  if (r === 35) {
2173
2173
  do
@@ -2221,7 +2221,7 @@ function Fn(e, l) {
2221
2221
  var Un = qn, $n = Fn, Is = {
2222
2222
  loadAll: Un,
2223
2223
  load: $n
2224
- }, xs = Object.prototype.toString, As = Object.prototype.hasOwnProperty, Rt = 65279, Mn = 9, Ze = 10, jn = 13, Nn = 32, Kn = 33, En = 34, St = 35, Bn = 37, Pn = 38, Vn = 39, Ln = 42, Hs = 44, Rn = 45, ot = 58, Dn = 61, zn = 62, Jn = 63, Wn = 64, Ts = 91, Os = 93, Qn = 96, qs = 123, Yn = 124, Fs = 125, ge = {};
2224
+ }, xs = Object.prototype.toString, As = Object.prototype.hasOwnProperty, Rt = 65279, jn = 9, Ze = 10, Mn = 13, Nn = 32, Kn = 33, En = 34, St = 35, Bn = 37, Pn = 38, Vn = 39, Ln = 42, Hs = 44, Rn = 45, ot = 58, Dn = 61, zn = 62, Jn = 63, Wn = 64, Ts = 91, Os = 93, Qn = 96, qs = 123, Yn = 124, Fs = 125, ge = {};
2225
2225
  ge[0] = "\\0";
2226
2226
  ge[7] = "\\a";
2227
2227
  ge[8] = "\\b";
@@ -2298,13 +2298,13 @@ function lo(e, l) {
2298
2298
  return !1;
2299
2299
  }
2300
2300
  function ut(e) {
2301
- return e === Nn || e === Mn;
2301
+ return e === Nn || e === jn;
2302
2302
  }
2303
2303
  function Xe(e) {
2304
2304
  return 32 <= e && e <= 126 || 161 <= e && e <= 55295 && e !== 8232 && e !== 8233 || 57344 <= e && e <= 65533 && e !== Rt || 65536 <= e && e <= 1114111;
2305
2305
  }
2306
2306
  function Il(e) {
2307
- return Xe(e) && e !== Rt && e !== jn && e !== Ze;
2307
+ return Xe(e) && e !== Rt && e !== Mn && e !== Ze;
2308
2308
  }
2309
2309
  function xl(e, l, t) {
2310
2310
  var a = Il(e), s = a && !ut(e);
@@ -2330,7 +2330,7 @@ function Us(e) {
2330
2330
  var l = /^\n* /;
2331
2331
  return l.test(e);
2332
2332
  }
2333
- var $s = 1, xt = 2, Ms = 3, js = 4, Be = 5;
2333
+ var $s = 1, xt = 2, js = 3, Ms = 4, Be = 5;
2334
2334
  function io(e, l, t, a, s, i, r, c) {
2335
2335
  var o, d = 0, h = null, p = !1, m = !1, n = a !== -1, T = -1, _ = so(Qe(e, 0)) && ro(Qe(e, e.length - 1));
2336
2336
  if (l || r)
@@ -2350,7 +2350,7 @@ function io(e, l, t, a, s, i, r, c) {
2350
2350
  }
2351
2351
  m = m || n && o - T - 1 > a && e[T + 1] !== " ";
2352
2352
  }
2353
- return !p && !m ? _ && !r && !s(e) ? $s : i === Ge ? Be : xt : t > 9 && Us(e) ? Be : r ? i === Ge ? Be : xt : m ? js : Ms;
2353
+ return !p && !m ? _ && !r && !s(e) ? $s : i === Ge ? Be : xt : t > 9 && Us(e) ? Be : r ? i === Ge ? Be : xt : m ? Ms : js;
2354
2354
  }
2355
2355
  function no(e, l, t, a, s) {
2356
2356
  e.dump = function() {
@@ -2376,9 +2376,9 @@ function no(e, l, t, a, s) {
2376
2376
  return l;
2377
2377
  case xt:
2378
2378
  return "'" + l.replace(/'/g, "''") + "'";
2379
- case Ms:
2380
- return "|" + Al(l, e.indent) + Hl(Sl(l, i));
2381
2379
  case js:
2380
+ return "|" + Al(l, e.indent) + Hl(Sl(l, i));
2381
+ case Ms:
2382
2382
  return ">" + Al(l, e.indent) + Hl(Sl(oo(l, r), i));
2383
2383
  case Be:
2384
2384
  return '"' + uo(l) + '"';
@@ -2573,14 +2573,17 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
2573
2573
  }
2574
2574
  },
2575
2575
  setup(e) {
2576
- const l = e, t = q(() => l.yamlRecord);
2576
+ const l = e, t = q(() => {
2577
+ const a = Object.fromEntries(Object.entries(l.yamlRecord).filter(([, s]) => s && (Array.isArray(s) ? s.length !== 0 : !0)));
2578
+ return Object.keys(a).length === 0 && a.constructor === Object ? "" : Fo.dump(a).trim();
2579
+ });
2577
2580
  return (a, s) => {
2578
- const i = M("KCodeBlock");
2581
+ const i = j("KCodeBlock");
2579
2582
  return b(), E("div", Uo, [
2580
2583
  l.yamlRecord ? (b(), V(i, {
2581
2584
  key: 0,
2582
2585
  id: "yaml-codeblock",
2583
- code: u(Fo).dump(t.value),
2586
+ code: t.value,
2584
2587
  language: "yaml",
2585
2588
  theme: "dark"
2586
2589
  }, null, 8, ["code"])) : W("", !0)
@@ -2590,7 +2593,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
2590
2593
  }), $o = {
2591
2594
  key: 0,
2592
2595
  class: "config-card-display-form"
2593
- }, Mo = ["data-testid"], jo = {
2596
+ }, jo = ["data-testid"], Mo = {
2594
2597
  key: 0,
2595
2598
  class: "config-card-prop-section-title"
2596
2599
  }, No = /* @__PURE__ */ ae({
@@ -2645,7 +2648,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
2645
2648
  class: Ie(`config-card-details-${o}-props`),
2646
2649
  "data-testid": `config-card-details-${o}-props`
2647
2650
  }, [
2648
- o !== "basic" ? (b(), E("div", jo, S(o === "advanced" ? u(a)("baseConfigCard.sections.advanced") : u(a)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
2651
+ o !== "basic" ? (b(), E("div", Mo, S(o === "advanced" ? u(a)("baseConfigCard.sections.advanced") : u(a)("baseConfigCard.sections.plugin")), 1)) : W("", !0),
2649
2652
  (b(!0), E(de, null, ve(e.propertyCollections[o], (d) => (b(), V(Et, {
2650
2653
  key: d.key,
2651
2654
  item: d
@@ -2669,7 +2672,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
2669
2672
  key: "0"
2670
2673
  } : void 0
2671
2674
  ]), 1032, ["item"]))), 128))
2672
- ], 10, Mo))), 128))
2675
+ ], 10, jo))), 128))
2673
2676
  ])) : W("", !0),
2674
2677
  e.format === "json" && l.record ? (b(), V(Ql, {
2675
2678
  key: 1,
@@ -2981,7 +2984,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
2981
2984
  advanced: (K = O.value) == null ? void 0 : K.filter((Q) => Q.section === oe.Advanced),
2982
2985
  plugin: (P = N.value) == null ? void 0 : P.concat((A = O.value) == null ? void 0 : A.filter((Q) => Q.section === oe.Plugin))
2983
2986
  };
2984
- }), j = q(() => {
2987
+ }), M = q(() => {
2985
2988
  const I = [];
2986
2989
  return F.value.basic.length && I.push("basic"), F.value.advanced.length && I.push("advanced"), F.value.plugin.length && I.push("plugin"), I;
2987
2990
  }), x = (I) => !!(I.tooltip || i[`${I.key}-label-tooltip`]), L = q(() => {
@@ -3014,7 +3017,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3014
3017
  T.value = !1;
3015
3018
  }
3016
3019
  }), (I, K) => {
3017
- const A = M("KLabel"), P = M("KSelect"), Q = M("KButton"), Z = M("KClipboardProvider"), z = M("KSkeleton"), D = M("KEmptyState"), G = M("KCard");
3020
+ const A = j("KLabel"), P = j("KSelect"), Q = j("KButton"), Z = j("KClipboardProvider"), z = j("KSkeleton"), D = j("KEmptyState"), G = j("KCard");
3018
3021
  return b(), V(G, { class: "kong-ui-entity-base-config-card" }, Oe({
3019
3022
  actions: f(() => [
3020
3023
  H("div", Jo, [
@@ -3091,7 +3094,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3091
3094
  config: e.config,
3092
3095
  "fetcher-url": L.value,
3093
3096
  format: p.value,
3094
- "prop-list-types": j.value,
3097
+ "prop-list-types": M.value,
3095
3098
  "property-collections": F.value,
3096
3099
  record: C.value
3097
3100
  }, Oe({ _: 2 }, [
@@ -3106,7 +3109,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3106
3109
  }))
3107
3110
  ]), 1032, ["config", "fetcher-url", "format", "prop-list-types", "property-collections", "record"])
3108
3111
  ])) : (b(), E("div", Yo, [
3109
- (b(!0), E(de, null, ve(j.value, (X) => (b(), E("div", {
3112
+ (b(!0), E(de, null, ve(M.value, (X) => (b(), E("div", {
3110
3113
  key: `config-card-details-${X}-props`,
3111
3114
  class: Ie(`config-card-details-${X}-props`),
3112
3115
  "data-testid": `config-card-details-${X}-props`
@@ -3212,12 +3215,12 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3212
3215
  emits: ["loading", "fetch:success", "fetch:error", "submit", "cancel"],
3213
3216
  setup(e, { emit: l }) {
3214
3217
  var t;
3215
- const a = l, s = e, i = Mt(), { i18n: { t: r } } = he.useI18n(), { getMessageFromError: c } = he.useErrors(), { axiosInstance: o } = he.useAxios({
3218
+ const a = l, s = e, i = jt(), { i18n: { t: r } } = he.useI18n(), { getMessageFromError: c } = he.useErrors(), { axiosInstance: o } = he.useAxios({
3216
3219
  headers: (t = s.config) == null ? void 0 : t.requestHeaders
3217
3220
  }), d = B(!1), h = B(!1), p = B(""), m = q(() => s.canSubmit === !1 || s.isReadonly), n = B(!1), T = q(() => {
3218
- var F, j;
3221
+ var F, M;
3219
3222
  let x = `${s.config.apiBaseUrl}${s.fetchUrl}`;
3220
- return s.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((F = s.config) == null ? void 0 : F.controlPlaneId) || "") : s.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (j = s.config) != null && j.workspace ? `/${s.config.workspace}` : "")), s.editId ? (x = x.replace(/{id}/gi, s.editId), x) : (x = x.replace(/\/{id}/gi, ""), x);
3223
+ return s.config.app === "konnect" ? x = x.replace(/{controlPlaneId}/gi, ((F = s.config) == null ? void 0 : F.controlPlaneId) || "") : s.config.app === "kongManager" && (x = x.replace(/\/{workspace}/gi, (M = s.config) != null && M.workspace ? `/${s.config.workspace}` : "")), s.editId ? (x = x.replace(/{id}/gi, s.editId), x) : (x = x.replace(/\/{id}/gi, ""), x);
3221
3224
  }), _ = () => {
3222
3225
  n.value = !n.value;
3223
3226
  }, y = () => {
@@ -3245,13 +3248,13 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3245
3248
  const { data: F } = await o.get(T.value);
3246
3249
  a("fetch:success", F);
3247
3250
  } catch (F) {
3248
- const j = c(F);
3249
- p.value = j.startsWith("code") ? r("baseForm.errors.edit") : j, h.value = !0, a("fetch:error", F);
3251
+ const M = c(F);
3252
+ p.value = M.startsWith("code") ? r("baseForm.errors.edit") : M, h.value = !0, a("fetch:error", F);
3250
3253
  } finally {
3251
3254
  d.value = !1;
3252
3255
  }
3253
- }), (F, j) => {
3254
- const x = M("KSkeleton"), L = M("KEmptyState"), U = M("KAlert"), I = M("KButton"), K = M("KTabs"), A = M("KSlideout"), P = M("KCard");
3256
+ }), (F, M) => {
3257
+ const x = j("KSkeleton"), L = j("KEmptyState"), U = j("KAlert"), I = j("KButton"), K = j("KTabs"), A = j("KSlideout"), P = j("KCard");
3255
3258
  return b(), V(P, { class: "kong-ui-entity-base-form" }, {
3256
3259
  default: f(() => [
3257
3260
  d.value ? (b(), V(x, {
@@ -3287,7 +3290,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3287
3290
  g(I, {
3288
3291
  appearance: "tertiary",
3289
3292
  "data-testid": "form-view-configuration",
3290
- onClick: j[0] || (j[0] = (Q) => _())
3293
+ onClick: M[0] || (M[0] = (Q) => _())
3291
3294
  }, {
3292
3295
  default: f(() => [
3293
3296
  Y(S(u(r)("baseForm.actions.viewConfiguration")), 1)
@@ -3327,7 +3330,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3327
3330
  "is-visible": n.value,
3328
3331
  "prevent-close-on-blur": "",
3329
3332
  title: u(r)("baseForm.configuration.title"),
3330
- onClose: j[1] || (j[1] = (Q) => _())
3333
+ onClose: M[1] || (M[1] = (Q) => _())
3331
3334
  }, {
3332
3335
  default: f(() => [
3333
3336
  H("div", null, S(u(r)("baseForm.configuration.message")), 1),
@@ -3411,7 +3414,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3411
3414
  }), Ys(() => {
3412
3415
  n();
3413
3416
  }), (_, y) => {
3414
- const C = M("KTooltip");
3417
+ const C = j("KTooltip");
3415
3418
  return b(), E("span", {
3416
3419
  ref_key: "contentRef",
3417
3420
  ref: o,
@@ -3546,42 +3549,42 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3546
3549
  emits: ["click:row", "sort", "clear-search-input", "empty-state-cta-clicked"],
3547
3550
  setup(e, { emit: l }) {
3548
3551
  const t = e, a = l, { i18n: { t: s } } = he.useI18n(), i = q(() => {
3549
- var j, x;
3552
+ var M, x;
3550
3553
  return typeof t.errorMessage == "string" ? {
3551
3554
  hasError: !!t.errorMessage,
3552
3555
  title: t.errorMessage,
3553
3556
  message: void 0
3554
3557
  } : {
3555
3558
  hasError: !!t.errorMessage,
3556
- title: (j = t.errorMessage) == null ? void 0 : j.title,
3559
+ title: (M = t.errorMessage) == null ? void 0 : M.title,
3557
3560
  message: (x = t.errorMessage) == null ? void 0 : x.message
3558
3561
  };
3559
- }), r = q(() => t.cacheIdentifier || t.preferencesStorageKey), c = (j) => j.hasData || !!t.query, o = q(() => {
3560
- const j = [];
3562
+ }), r = q(() => t.cacheIdentifier || t.preferencesStorageKey), c = (M) => M.hasData || !!t.query, o = q(() => {
3563
+ const M = [];
3561
3564
  return Object.keys(t.tableHeaders).forEach((x) => {
3562
3565
  const L = t.tableHeaders[x];
3563
- j.push({
3566
+ M.push({
3564
3567
  label: L.label ?? x,
3565
3568
  key: x,
3566
3569
  sortable: L.sortable ?? !1
3567
3570
  });
3568
- }), t.enableEntityActions && j.push({
3571
+ }), t.enableEntityActions && M.push({
3569
3572
  key: "actions",
3570
3573
  hideLabel: !0
3571
- }), j;
3572
- }), d = (j) => ({
3573
- "data-rowid": j.id,
3574
- "data-testid": j.name,
3575
- ...t.rowAttributes(j)
3576
- }), h = B({}), p = (j) => {
3574
+ }), M;
3575
+ }), d = (M) => ({
3576
+ "data-rowid": M.id,
3577
+ "data-testid": M.name,
3578
+ ...t.rowAttributes(M)
3579
+ }), h = B({}), p = (M) => {
3577
3580
  var x;
3578
- return (x = h.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${j.id}"]`);
3579
- }, m = (j) => {
3581
+ return (x = h.value) == null ? void 0 : x.$el.querySelector(`[data-rowid="${M.id}"]`);
3582
+ }, m = (M) => {
3580
3583
  const x = {
3581
- "data-testid": j.headerKey,
3582
- ...t.cellAttributes(j)
3584
+ "data-testid": M.headerKey,
3585
+ ...t.cellAttributes(M)
3583
3586
  };
3584
- return j.colIndex === 0 && (x.style = {
3587
+ return M.colIndex === 0 && (x.style = {
3585
3588
  maxWidth: "250px",
3586
3589
  overflowX: "hidden",
3587
3590
  textOverflow: "ellipsis"
@@ -3590,21 +3593,21 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3590
3593
  a("empty-state-cta-clicked"), T();
3591
3594
  }, T = () => {
3592
3595
  a("clear-search-input");
3593
- }, _ = q(() => t.disableRowClick ? void 0 : (j, x) => {
3596
+ }, _ = q(() => t.disableRowClick ? void 0 : (M, x) => {
3594
3597
  a("click:row", x);
3595
- }), y = (j) => {
3596
- a("sort", j);
3598
+ }), y = (M) => {
3599
+ a("sort", M);
3597
3600
  }, { setTablePreferences: C, getTablePreferences: O } = tr(), N = q(() => {
3598
- const j = O(t.preferencesStorageKey);
3601
+ const M = O(t.preferencesStorageKey);
3599
3602
  return {
3600
3603
  ...t.initialFetcherParams,
3601
- ...j
3604
+ ...M
3602
3605
  };
3603
- }), F = (j) => {
3604
- t.preferencesStorageKey && C(t.preferencesStorageKey, j);
3606
+ }), F = (M) => {
3607
+ t.preferencesStorageKey && C(t.preferencesStorageKey, M);
3605
3608
  };
3606
- return (j, x) => {
3607
- const L = M("KIcon"), U = M("KButton"), I = M("KDropdown"), K = M("KTable"), A = M("KCard");
3609
+ return (M, x) => {
3610
+ const L = j("KIcon"), U = j("KButton"), I = j("KDropdown"), K = j("KTable"), A = j("KCard");
3608
3611
  return b(), V(A, {
3609
3612
  class: "kong-ui-entity-base-table",
3610
3613
  title: e.title
@@ -3644,9 +3647,9 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3644
3647
  }, Oe({
3645
3648
  toolbar: f(({ state: P }) => [
3646
3649
  Le(H("div", nu, [
3647
- le(j.$slots, "toolbar-filter", {}, void 0, !0),
3648
- j.$slots["toolbar-button"] ? (b(), E("div", ou, [
3649
- le(j.$slots, "toolbar-button", {}, void 0, !0)
3650
+ le(M.$slots, "toolbar-filter", {}, void 0, !0),
3651
+ M.$slots["toolbar-button"] ? (b(), E("div", ou, [
3652
+ le(M.$slots, "toolbar-button", {}, void 0, !0)
3650
3653
  ])) : W("", !0)
3651
3654
  ], 512), [
3652
3655
  [Re, c(P)]
@@ -3662,7 +3665,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3662
3665
  width: e.dropdownMenuWidth
3663
3666
  }, {
3664
3667
  items: f(() => [
3665
- le(j.$slots, "actions", {
3668
+ le(M.$slots, "actions", {
3666
3669
  row: P,
3667
3670
  rowKey: Q,
3668
3671
  rowValue: Z
@@ -3698,7 +3701,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3698
3701
  "row-el": p(Z)
3699
3702
  }, {
3700
3703
  default: f(() => [
3701
- le(j.$slots, Q, {
3704
+ le(M.$slots, Q, {
3702
3705
  row: Z,
3703
3706
  rowKey: z,
3704
3707
  rowValue: D
@@ -3767,7 +3770,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3767
3770
  s("proceed");
3768
3771
  };
3769
3772
  return (o, d) => {
3770
- const h = M("KAlert"), p = M("KPrompt");
3773
+ const h = j("KAlert"), p = j("KPrompt");
3771
3774
  return b(), V(p, {
3772
3775
  "action-button-appearance": "danger",
3773
3776
  "action-button-disabled": e.actionPending,
@@ -3920,7 +3923,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3920
3923
  C && (i.value = !1), s("update:modelValue", new URLSearchParams(O).toString());
3921
3924
  };
3922
3925
  return (C, O) => {
3923
- const N = M("KInput"), F = M("KButton"), j = M("KSelect"), x = M("KMenuItem"), L = M("KMenu");
3926
+ const N = j("KInput"), F = j("KButton"), M = j("KSelect"), x = j("KMenuItem"), L = j("KMenu");
3924
3927
  return e.config.isExactMatch ? (b(), V(N, {
3925
3928
  key: 0,
3926
3929
  autocomplete: "off",
@@ -3976,7 +3979,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
3976
3979
  class: "menu-item-label",
3977
3980
  for: p(U.value)
3978
3981
  }, S(u(t)("filter.fieldLabel")), 9, wu),
3979
- ((A = (K = e.config.schema) == null ? void 0 : K[U.value]) == null ? void 0 : A.type) === "select" ? (b(), V(j, {
3982
+ ((A = (K = e.config.schema) == null ? void 0 : K[U.value]) == null ? void 0 : A.type) === "select" ? (b(), V(M, {
3980
3983
  key: 0,
3981
3984
  id: p(U.value),
3982
3985
  modelValue: r.value[U.value],
@@ -4132,7 +4135,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
4132
4135
  ])
4133
4136
  ], 2));
4134
4137
  }
4135
- }), at = /* @__PURE__ */ Ce(Uu, [["__scopeId", "data-v-3565daa7"]]), { useAxios: pt, useDeleteUrlBuilder: Ps, useErrors: Vs, useExternalLinkCreator: Bc, useFetchUrlBuilder: Pc, useFetcher: Ls, useDebouncedFilter: $l, useStringHelpers: Vc, useHelpers: $u, useGatewayFeatureSupported: Lc, useTruncationDetector: Rc } = he, Mu = {
4138
+ }), at = /* @__PURE__ */ Ce(Uu, [["__scopeId", "data-v-3565daa7"]]), { useAxios: pt, useDeleteUrlBuilder: Ps, useErrors: Vs, useExternalLinkCreator: Bc, useFetchUrlBuilder: Pc, useFetcher: Ls, useDebouncedFilter: $l, useStringHelpers: Vc, useHelpers: $u, useGatewayFeatureSupported: Lc, useTruncationDetector: Rc } = he, ju = {
4136
4139
  list: {
4137
4140
  table_headers: {
4138
4141
  id: "ID",
@@ -4418,7 +4421,7 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
4418
4421
  labels: {
4419
4422
  created_at: "Created at"
4420
4423
  }
4421
- }, ju = {
4424
+ }, Mu = {
4422
4425
  list: {
4423
4426
  table_headers: {
4424
4427
  id: "ID",
@@ -4487,8 +4490,8 @@ const Uo = { class: "yaml-config" }, Ns = /* @__PURE__ */ ae({
4487
4490
  }
4488
4491
  }
4489
4492
  }, Nu = {
4490
- upstreams: Mu,
4491
- targets: ju
4493
+ upstreams: ju,
4494
+ targets: Mu
4492
4495
  };
4493
4496
  function Ku() {
4494
4497
  const e = $t("en-us", Nu);
@@ -4880,7 +4883,7 @@ const ct = [
4880
4883
  label: "599",
4881
4884
  value: "599"
4882
4885
  }
4883
- ], Ht = 10, Tt = 65536, Eu = 0, Bu = 65535, De = 0, ze = 255, Rs = 0, Ds = 255, Pu = 0, Vu = 65535, Ml = 0, jl = 65535, Lu = 0, Ru = 2 ** 31, Ot = ["200", "302"], qt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], Ut = ["429", "500", "503"];
4886
+ ], Ht = 10, Tt = 65536, Eu = 0, Bu = 65535, De = 0, ze = 255, Rs = 0, Ds = 255, Pu = 0, Vu = 65535, jl = 0, Ml = 65535, Lu = 0, Ru = 2 ** 31, Ot = ["200", "302"], qt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], Ut = ["429", "500", "503"];
4884
4887
  function ft() {
4885
4888
  const e = (o) => /^\d+$/.test(o), l = (o, d, h) => {
4886
4889
  if (e(o)) {
@@ -4941,9 +4944,9 @@ function ft() {
4941
4944
  stringToNumberArray: t,
4942
4945
  numberToStringArray: a,
4943
4946
  upstreamsResponseToFields: (o) => {
4944
- var h, p, m, n, T, _, y, C, O, N, F, j, x, L, U, I, K, A, P, Q, Z, z, D, G, X, $, J, te, k, v, w, ie, ee, ne, pe, se, me, $e, je, zt, Jt, Wt, Qt, Yt, Zt, Gt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Aa, Ha, Ta, Oa, qa, Fa, Ua, $a, Ma, ja, Na, Ka, Ea, Ba, Pa, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Za, Ga, Xa, el, tl, al, ll, sl, rl, il, nl;
4947
+ var h, p, m, n, T, _, y, C, O, N, F, M, x, L, U, I, K, A, P, Q, Z, z, D, G, X, $, J, te, k, v, w, ie, ee, ne, pe, se, me, $e, Me, zt, Jt, Wt, Qt, Yt, Zt, Gt, Xt, ea, ta, aa, la, sa, ra, ia, na, oa, ua, ca, da, ha, pa, fa, ma, ga, ya, va, ba, ka, Ca, _a, wa, Sa, Ia, xa, Aa, Ha, Ta, Oa, qa, Fa, Ua, $a, ja, Ma, Na, Ka, Ea, Ba, Pa, Va, La, Ra, Da, za, Ja, Wa, Qa, Ya, Za, Ga, Xa, el, tl, al, ll, sl, rl, il, nl;
4945
4948
  const d = s();
4946
- return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (T = o.healthchecks.active) == null ? void 0 : T.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((y = o.healthchecks.active) == null ? void 0 : y.type) || "http", d.activeHealthCheck.httpPath = ((C = o.healthchecks.active) == null ? void 0 : C.http_path) || "/", d.activeHealthCheck.timeout = ((O = o.healthchecks.active) == null ? void 0 : O.timeout) !== null && ((N = o.healthchecks.active) == null ? void 0 : N.timeout) !== void 0 ? (j = (F = o.healthchecks.active) == null ? void 0 : F.timeout) == null ? void 0 : j.toString() : "", d.activeHealthCheck.concurrency = ((x = o.healthchecks.active) == null ? void 0 : x.concurrency) !== null && ((L = o.healthchecks.active) == null ? void 0 : L.concurrency) !== void 0 ? (I = (U = o.healthchecks.active) == null ? void 0 : U.concurrency) == null ? void 0 : I.toString() : "", d.activeHealthCheck.httpsSni = ((K = o.healthchecks.active) == null ? void 0 : K.https_sni) || "", d.activeHealthCheck.verifySsl = ((A = o.healthchecks.active) == null ? void 0 : A.https_verify_certificate) || !1, d.activeHealthCheck.headers = (P = o.healthchecks.active) != null && P.headers && Object.entries((Q = o.healthchecks.active) == null ? void 0 : Q.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([zs, gt]) => ({ key: zs, values: gt == null ? void 0 : gt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((D = (z = o.healthchecks.active) == null ? void 0 : z.healthy) == null ? void 0 : D.interval) !== null && ((X = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : X.interval) !== void 0 ? (te = (J = ($ = o.healthchecks.active) == null ? void 0 : $.healthy) == null ? void 0 : J.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((v = (k = o.healthchecks.active) == null ? void 0 : k.healthy) == null ? void 0 : v.interval) !== null && ((ie = (w = o.healthchecks.active) == null ? void 0 : w.healthy) == null ? void 0 : ie.interval) !== void 0 ? (pe = (ne = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ne.interval) == null ? void 0 : pe.toString() : "0", d.activeHealthCheck.successes = ((me = (se = o.healthchecks.active) == null ? void 0 : se.healthy) == null ? void 0 : me.successes) !== null && ((je = ($e = o.healthchecks.active) == null ? void 0 : $e.healthy) == null ? void 0 : je.successes) !== void 0 ? (Wt = (Jt = (zt = o.healthchecks.active) == null ? void 0 : zt.healthy) == null ? void 0 : Jt.successes) == null ? void 0 : Wt.toString() : "0", d.activeHealthCheck.httpStatuses = (Yt = (Qt = o.healthchecks.active) == null ? void 0 : Qt.healthy) != null && Yt.http_statuses ? a(((Gt = (Zt = o.healthchecks.active) == null ? void 0 : Zt.healthy) == null ? void 0 : Gt.http_statuses) || []) : Ot, d.activeHealthCheck.unhealthyInterval = ((ea = (Xt = o.healthchecks.active) == null ? void 0 : Xt.unhealthy) == null ? void 0 : ea.interval) !== null && ((aa = (ta = o.healthchecks.active) == null ? void 0 : ta.unhealthy) == null ? void 0 : aa.interval) !== void 0 ? (ra = (sa = (la = o.healthchecks.active) == null ? void 0 : la.unhealthy) == null ? void 0 : sa.interval) == null ? void 0 : ra.toString() : "0", d.activeHealthCheck.httpFailures = ((na = (ia = o.healthchecks.active) == null ? void 0 : ia.unhealthy) == null ? void 0 : na.http_failures) !== null && ((ua = (oa = o.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.http_failures) !== void 0 ? (ha = (da = (ca = o.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.http_failures) == null ? void 0 : ha.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((fa = (pa = o.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.timeouts) !== null && ((ga = (ma = o.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.timeouts) !== void 0 ? (ba = (va = (ya = o.healthchecks.active) == null ? void 0 : ya.unhealthy) == null ? void 0 : va.timeouts) == null ? void 0 : ba.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (Ca = (ka = o.healthchecks.active) == null ? void 0 : ka.unhealthy) != null && Ca.http_statuses ? a(((wa = (_a = o.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.http_statuses) || []) : Ft, d.passiveHealthSwitch = ((Ia = (Sa = o.healthchecks.passive) == null ? void 0 : Sa.healthy) == null ? void 0 : Ia.successes) !== 0 || ((Aa = (xa = o.healthchecks.passive) == null ? void 0 : xa.unhealthy) == null ? void 0 : Aa.timeouts) !== 0 || ((Ta = (Ha = o.healthchecks.passive) == null ? void 0 : Ha.unhealthy) == null ? void 0 : Ta.tcp_failures) !== 0 || ((qa = (Oa = o.healthchecks.passive) == null ? void 0 : Oa.unhealthy) == null ? void 0 : qa.http_failures) !== 0, d.passiveHealthCheck.type = ((Fa = o.healthchecks.passive) == null ? void 0 : Fa.type) || "http", d.passiveHealthCheck.successes = (($a = (Ua = o.healthchecks.passive) == null ? void 0 : Ua.healthy) == null ? void 0 : $a.successes) !== null && ((ja = (Ma = o.healthchecks.passive) == null ? void 0 : Ma.healthy) == null ? void 0 : ja.successes) !== void 0 ? (Ea = (Ka = (Na = o.healthchecks.passive) == null ? void 0 : Na.healthy) == null ? void 0 : Ka.successes) == null ? void 0 : Ea.toString() : "0", d.passiveHealthCheck.httpStatuses = (Pa = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) != null && Pa.http_statuses ? a(((La = (Va = o.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.http_statuses) || []) : qt, d.passiveHealthCheck.timeouts = ((Da = (Ra = o.healthchecks.passive) == null ? void 0 : Ra.unhealthy) == null ? void 0 : Da.timeouts) !== null && ((Ja = (za = o.healthchecks.passive) == null ? void 0 : za.unhealthy) == null ? void 0 : Ja.timeouts) !== void 0 ? (Ya = (Qa = (Wa = o.healthchecks.passive) == null ? void 0 : Wa.unhealthy) == null ? void 0 : Qa.timeouts) == null ? void 0 : Ya.toString() : "0", d.passiveHealthCheck.tcpFailures = ((Ga = (Za = o.healthchecks.passive) == null ? void 0 : Za.unhealthy) == null ? void 0 : Ga.tcp_failures) !== null && ((el = (Xa = o.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.tcp_failures) !== void 0 ? (ll = (al = (tl = o.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.tcp_failures) == null ? void 0 : ll.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (rl = (sl = o.healthchecks.passive) == null ? void 0 : sl.unhealthy) != null && rl.http_statuses ? a(((nl = (il = o.healthchecks.passive) == null ? void 0 : il.unhealthy) == null ? void 0 : nl.http_statuses) || []) : Ut, d;
4949
+ return d.name = o.name || "", d.algorithm = o.algorithm || "round-robin", d.hostHeader = o.host_header || "", d.clientCertificate = o.client_certificate ? (h = o.client_certificate) == null ? void 0 : h.id : "", d.tags = ((p = o.tags) == null ? void 0 : p.join(", ")) || "", d.slots = o.slots !== null && o.slots !== void 0 ? o.slots.toString() : "10000", d.hashOn = o.hash_on || "none", d.hashFallback = o.hash_fallback || "none", d.hashOnHeader = o.hash_on_header || "", d.hashOnCookie = o.hash_on_cookie || "", d.hashOnCookiePath = o.hash_on_cookie_path || "/", d.hashOnQueryArgument = o.hash_on_query_arg || "", d.hashOnUriCapture = o.hash_on_uri_capture || "", d.hashFallbackHeader = o.hash_fallback_header || "", d.hashFallbackQueryArgument = o.hash_fallback_query_arg || "", d.hashFallbackUriCapture = o.hash_fallback_uri_capture || "", d.healthchecksThreshold = o.healthchecks.threshold !== null && o.healthchecks.threshold !== void 0 ? o.healthchecks.threshold.toString() : "", d.activeHealthSwitch = ((n = (m = o.healthchecks.active) == null ? void 0 : m.healthy) == null ? void 0 : n.interval) !== 0 || ((_ = (T = o.healthchecks.active) == null ? void 0 : T.unhealthy) == null ? void 0 : _.interval) !== 0, d.activeHealthCheck.type = ((y = o.healthchecks.active) == null ? void 0 : y.type) || "http", d.activeHealthCheck.httpPath = ((C = o.healthchecks.active) == null ? void 0 : C.http_path) || "/", d.activeHealthCheck.timeout = ((O = o.healthchecks.active) == null ? void 0 : O.timeout) !== null && ((N = o.healthchecks.active) == null ? void 0 : N.timeout) !== void 0 ? (M = (F = o.healthchecks.active) == null ? void 0 : F.timeout) == null ? void 0 : M.toString() : "", d.activeHealthCheck.concurrency = ((x = o.healthchecks.active) == null ? void 0 : x.concurrency) !== null && ((L = o.healthchecks.active) == null ? void 0 : L.concurrency) !== void 0 ? (I = (U = o.healthchecks.active) == null ? void 0 : U.concurrency) == null ? void 0 : I.toString() : "", d.activeHealthCheck.httpsSni = ((K = o.healthchecks.active) == null ? void 0 : K.https_sni) || "", d.activeHealthCheck.verifySsl = ((A = o.healthchecks.active) == null ? void 0 : A.https_verify_certificate) || !1, d.activeHealthCheck.headers = (P = o.healthchecks.active) != null && P.headers && Object.entries((Q = o.healthchecks.active) == null ? void 0 : Q.headers).length > 0 ? Object.entries((Z = o.healthchecks.active) == null ? void 0 : Z.headers).map(([zs, gt]) => ({ key: zs, values: gt == null ? void 0 : gt.join(", ") })) : [{ key: "", values: "" }], d.activeHealthCheck.interval = ((D = (z = o.healthchecks.active) == null ? void 0 : z.healthy) == null ? void 0 : D.interval) !== null && ((X = (G = o.healthchecks.active) == null ? void 0 : G.healthy) == null ? void 0 : X.interval) !== void 0 ? (te = (J = ($ = o.healthchecks.active) == null ? void 0 : $.healthy) == null ? void 0 : J.interval) == null ? void 0 : te.toString() : "0", d.activeHealthCheck.interval = ((v = (k = o.healthchecks.active) == null ? void 0 : k.healthy) == null ? void 0 : v.interval) !== null && ((ie = (w = o.healthchecks.active) == null ? void 0 : w.healthy) == null ? void 0 : ie.interval) !== void 0 ? (pe = (ne = (ee = o.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : ne.interval) == null ? void 0 : pe.toString() : "0", d.activeHealthCheck.successes = ((me = (se = o.healthchecks.active) == null ? void 0 : se.healthy) == null ? void 0 : me.successes) !== null && ((Me = ($e = o.healthchecks.active) == null ? void 0 : $e.healthy) == null ? void 0 : Me.successes) !== void 0 ? (Wt = (Jt = (zt = o.healthchecks.active) == null ? void 0 : zt.healthy) == null ? void 0 : Jt.successes) == null ? void 0 : Wt.toString() : "0", d.activeHealthCheck.httpStatuses = (Yt = (Qt = o.healthchecks.active) == null ? void 0 : Qt.healthy) != null && Yt.http_statuses ? a(((Gt = (Zt = o.healthchecks.active) == null ? void 0 : Zt.healthy) == null ? void 0 : Gt.http_statuses) || []) : Ot, d.activeHealthCheck.unhealthyInterval = ((ea = (Xt = o.healthchecks.active) == null ? void 0 : Xt.unhealthy) == null ? void 0 : ea.interval) !== null && ((aa = (ta = o.healthchecks.active) == null ? void 0 : ta.unhealthy) == null ? void 0 : aa.interval) !== void 0 ? (ra = (sa = (la = o.healthchecks.active) == null ? void 0 : la.unhealthy) == null ? void 0 : sa.interval) == null ? void 0 : ra.toString() : "0", d.activeHealthCheck.httpFailures = ((na = (ia = o.healthchecks.active) == null ? void 0 : ia.unhealthy) == null ? void 0 : na.http_failures) !== null && ((ua = (oa = o.healthchecks.active) == null ? void 0 : oa.unhealthy) == null ? void 0 : ua.http_failures) !== void 0 ? (ha = (da = (ca = o.healthchecks.active) == null ? void 0 : ca.unhealthy) == null ? void 0 : da.http_failures) == null ? void 0 : ha.toString() : "0", d.activeHealthCheck.unhealthyTimeouts = ((fa = (pa = o.healthchecks.active) == null ? void 0 : pa.unhealthy) == null ? void 0 : fa.timeouts) !== null && ((ga = (ma = o.healthchecks.active) == null ? void 0 : ma.unhealthy) == null ? void 0 : ga.timeouts) !== void 0 ? (ba = (va = (ya = o.healthchecks.active) == null ? void 0 : ya.unhealthy) == null ? void 0 : va.timeouts) == null ? void 0 : ba.toString() : "0", d.activeHealthCheck.unhealthyHttpStatuses = (Ca = (ka = o.healthchecks.active) == null ? void 0 : ka.unhealthy) != null && Ca.http_statuses ? a(((wa = (_a = o.healthchecks.active) == null ? void 0 : _a.unhealthy) == null ? void 0 : wa.http_statuses) || []) : Ft, d.passiveHealthSwitch = ((Ia = (Sa = o.healthchecks.passive) == null ? void 0 : Sa.healthy) == null ? void 0 : Ia.successes) !== 0 || ((Aa = (xa = o.healthchecks.passive) == null ? void 0 : xa.unhealthy) == null ? void 0 : Aa.timeouts) !== 0 || ((Ta = (Ha = o.healthchecks.passive) == null ? void 0 : Ha.unhealthy) == null ? void 0 : Ta.tcp_failures) !== 0 || ((qa = (Oa = o.healthchecks.passive) == null ? void 0 : Oa.unhealthy) == null ? void 0 : qa.http_failures) !== 0, d.passiveHealthCheck.type = ((Fa = o.healthchecks.passive) == null ? void 0 : Fa.type) || "http", d.passiveHealthCheck.successes = (($a = (Ua = o.healthchecks.passive) == null ? void 0 : Ua.healthy) == null ? void 0 : $a.successes) !== null && ((Ma = (ja = o.healthchecks.passive) == null ? void 0 : ja.healthy) == null ? void 0 : Ma.successes) !== void 0 ? (Ea = (Ka = (Na = o.healthchecks.passive) == null ? void 0 : Na.healthy) == null ? void 0 : Ka.successes) == null ? void 0 : Ea.toString() : "0", d.passiveHealthCheck.httpStatuses = (Pa = (Ba = o.healthchecks.passive) == null ? void 0 : Ba.healthy) != null && Pa.http_statuses ? a(((La = (Va = o.healthchecks.passive) == null ? void 0 : Va.healthy) == null ? void 0 : La.http_statuses) || []) : qt, d.passiveHealthCheck.timeouts = ((Da = (Ra = o.healthchecks.passive) == null ? void 0 : Ra.unhealthy) == null ? void 0 : Da.timeouts) !== null && ((Ja = (za = o.healthchecks.passive) == null ? void 0 : za.unhealthy) == null ? void 0 : Ja.timeouts) !== void 0 ? (Ya = (Qa = (Wa = o.healthchecks.passive) == null ? void 0 : Wa.unhealthy) == null ? void 0 : Qa.timeouts) == null ? void 0 : Ya.toString() : "0", d.passiveHealthCheck.tcpFailures = ((Ga = (Za = o.healthchecks.passive) == null ? void 0 : Za.unhealthy) == null ? void 0 : Ga.tcp_failures) !== null && ((el = (Xa = o.healthchecks.passive) == null ? void 0 : Xa.unhealthy) == null ? void 0 : el.tcp_failures) !== void 0 ? (ll = (al = (tl = o.healthchecks.passive) == null ? void 0 : tl.unhealthy) == null ? void 0 : al.tcp_failures) == null ? void 0 : ll.toString() : "", d.passiveHealthCheck.unhealthyHttpStatuses = (rl = (sl = o.healthchecks.passive) == null ? void 0 : sl.unhealthy) != null && rl.http_statuses ? a(((nl = (il = o.healthchecks.passive) == null ? void 0 : il.unhealthy) == null ? void 0 : nl.http_statuses) || []) : Ut, d;
4947
4950
  },
4948
4951
  getDefaultUpstreamFields: s,
4949
4952
  objectsAreEqual: (o, d) => {
@@ -5028,7 +5031,7 @@ const Ae = {
5028
5031
  emits: ["error", "copy:success", "copy:error", "delete:success"],
5029
5032
  setup(e, { emit: l }) {
5030
5033
  var X;
5031
- const t = l, a = e, { i18n: { t: s } } = Ae.useI18n(), i = Mt(), { axiosInstance: r } = pt({
5034
+ const t = l, a = e, { i18n: { t: s } } = Ae.useI18n(), i = jt(), { axiosInstance: r } = pt({
5032
5035
  headers: (X = a.config) == null ? void 0 : X.requestHeaders
5033
5036
  }), c = B(1), o = q(() => a.config.app !== "kongManager" || !!a.config.disableSorting), d = {
5034
5037
  name: { label: s("upstreams.list.table_headers.name"), searchable: !0, sortable: !0 },
@@ -5083,7 +5086,7 @@ const Ae = {
5083
5086
  entity: $,
5084
5087
  message: s("upstreams.copy.success_brief")
5085
5088
  });
5086
- }, j = async ($) => {
5089
+ }, M = async ($) => {
5087
5090
  var te;
5088
5091
  await ((te = a.canRetrieve) == null ? void 0 : te.call(a, $)) && i.push(a.config.getViewRoute($.id));
5089
5092
  }, x = ($) => ({
@@ -5128,7 +5131,7 @@ const Ae = {
5128
5131
  return tt(async () => {
5129
5132
  await a.canCreate() && (G.value.title = s("upstreams.list.empty_state.title"), G.value.ctaText = s("upstreams.actions.create"));
5130
5133
  }), ($, J) => {
5131
- const te = M("KButton"), k = M("KBadge"), v = M("KTruncate"), w = M("KDropdownItem"), ie = M("KClipboardProvider");
5134
+ const te = j("KButton"), k = j("KBadge"), v = j("KTruncate"), w = j("KDropdownItem"), ie = j("KClipboardProvider");
5132
5135
  return b(), E("div", Du, [
5133
5136
  g(u(Es), {
5134
5137
  "cache-identifier": e.cacheIdentifier,
@@ -5145,7 +5148,7 @@ const Ae = {
5145
5148
  "table-headers": u(h),
5146
5149
  "use-action-outside": e.useActionOutside,
5147
5150
  onClearSearchInput: y,
5148
- "onClick:row": J[1] || (J[1] = (ee) => j(ee)),
5151
+ "onClick:row": J[1] || (J[1] = (ee) => M(ee)),
5149
5152
  onSort: C
5150
5153
  }, {
5151
5154
  "toolbar-filter": f(() => [
@@ -5280,7 +5283,7 @@ const Ae = {
5280
5283
  "action-pending": K.value,
5281
5284
  description: u(s)("upstreams.delete.description"),
5282
5285
  "entity-name": U.value && (U.value.name || U.value.id),
5283
- "entity-type": u(jt).Upstream,
5286
+ "entity-type": u(Mt).Upstream,
5284
5287
  error: A.value,
5285
5288
  title: u(s)("upstreams.delete.title"),
5286
5289
  visible: I.value,
@@ -5339,9 +5342,9 @@ const Ae = {
5339
5342
  },
5340
5343
  emits: ["update", "error", "loading", "cancel"],
5341
5344
  setup(e, { emit: l }) {
5342
- var j;
5345
+ var M;
5343
5346
  const t = l, a = e, { i18n: { t: s } } = Ae.useI18n(), { getMessageFromError: i } = Vs(), { axiosInstance: r } = pt({
5344
- headers: (j = a.config) == null ? void 0 : j.requestHeaders
5347
+ headers: (M = a.config) == null ? void 0 : M.requestHeaders
5345
5348
  }), c = q(() => {
5346
5349
  var x;
5347
5350
  return lt.form[a.config.app].edit.replace(/{upstreamId}/gi, ((x = a.config) == null ? void 0 : x.upstreamId) || "");
@@ -5405,7 +5408,7 @@ const Ae = {
5405
5408
  return ke(() => a.targetId, () => {
5406
5409
  Object.assign(h.fields, m);
5407
5410
  }), (x, L) => {
5408
- const U = M("KInput"), I = M("KPrompt");
5411
+ const U = j("KInput"), I = j("KPrompt");
5409
5412
  return b(), V(I, {
5410
5413
  "action-button-disabled": !T.value || h.isReadonly,
5411
5414
  "action-button-text": u(s)("targets.form.buttons.save"),
@@ -5572,16 +5575,16 @@ const Ae = {
5572
5575
  });
5573
5576
  }, O = (k) => {
5574
5577
  D.value = k, G.value = !0;
5575
- }, N = (k) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(k), F = (k) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(k), j = B(void 0), x = B(!1), L = B(!1), U = B(""), I = Ps(a.config, h.value), K = (k) => {
5576
- j.value = k, x.value = !0;
5578
+ }, N = (k) => a.config.app === "konnect" ? !1 : a.config.canMarkHealthy(k), F = (k) => a.config.app === "konnect" ? !1 : a.config.canMarkUnhealthy(k), M = B(void 0), x = B(!1), L = B(!1), U = B(""), I = Ps(a.config, h.value), K = (k) => {
5579
+ M.value = k, x.value = !0;
5577
5580
  }, A = () => {
5578
5581
  x.value = !1;
5579
5582
  }, P = async () => {
5580
5583
  var k, v, w;
5581
- if ((k = j.value) != null && k.id) {
5584
+ if ((k = M.value) != null && k.id) {
5582
5585
  L.value = !0;
5583
5586
  try {
5584
- await i.delete(I(j.value.id)), L.value = !1, x.value = !1, r.value++, t("delete:success", j.value);
5587
+ await i.delete(I(M.value.id)), L.value = !1, x.value = !1, r.value++, t("delete:success", M.value);
5585
5588
  } catch (ie) {
5586
5589
  U.value = ((w = (v = ie.response) == null ? void 0 : v.data) == null ? void 0 : w.message) || ie.message || s("targets.errors.delete"), t("error", ie);
5587
5590
  } finally {
@@ -5632,7 +5635,7 @@ const Ae = {
5632
5635
  G.value = !1, D.value = "";
5633
5636
  };
5634
5637
  return (k, v) => {
5635
- const w = M("KButton"), ie = M("KBadge"), ee = M("KTruncate"), ne = M("KDropdownItem"), pe = M("KClipboardProvider");
5638
+ const w = j("KButton"), ie = j("KBadge"), ee = j("KTruncate"), ne = j("KDropdownItem"), pe = j("KClipboardProvider");
5636
5639
  return b(), E("div", Xu, [
5637
5640
  g(u(Es), {
5638
5641
  "cache-identifier": e.cacheIdentifier,
@@ -5801,7 +5804,7 @@ const Ae = {
5801
5804
  g(u(Bs), {
5802
5805
  "action-pending": L.value,
5803
5806
  description: u(s)("targets.delete.description"),
5804
- "entity-type": u(jt).Target,
5807
+ "entity-type": u(Mt).Target,
5805
5808
  error: U.value,
5806
5809
  "need-confirm": !1,
5807
5810
  title: u(s)("targets.delete.title"),
@@ -5885,7 +5888,7 @@ const Ae = {
5885
5888
  }), O = q(() => {
5886
5889
  var z;
5887
5890
  return (z = T.value) == null ? void 0 : z.map((D) => ({ label: D.id, value: D.id }));
5888
- }), N = B(""), F = B({ value: "", label: "" }), j = q(() => {
5891
+ }), N = B(""), F = B({ value: "", label: "" }), M = q(() => {
5889
5892
  var z, D;
5890
5893
  return ((z = C.value.find((G) => G.value === N.value)) == null ? void 0 : z.label) || ((D = F.value) == null ? void 0 : D.label);
5891
5894
  }), x = (z) => {
@@ -5895,7 +5898,7 @@ const Ae = {
5895
5898
  }, U = () => {
5896
5899
  F.value = { value: "", label: "" };
5897
5900
  }, I = (z) => {
5898
- N.value = z, i("update:name", j.value);
5901
+ N.value = z, i("update:name", M.value);
5899
5902
  }, K = B(!1);
5900
5903
  return tt(async () => {
5901
5904
  var z, D;
@@ -5905,7 +5908,7 @@ const Ae = {
5905
5908
  K.value = !1;
5906
5909
  }
5907
5910
  }), (z, D) => {
5908
- const G = M("KSkeleton"), X = M("KSelect"), $ = M("KInput");
5911
+ const G = j("KSkeleton"), X = j("KSelect"), $ = j("KInput");
5909
5912
  return b(), V(u(at), {
5910
5913
  class: "kong-ui-entities-upstreams-general-info",
5911
5914
  description: u(a)("upstreams.form.general_info.help"),
@@ -6127,7 +6130,7 @@ const Ae = {
6127
6130
  });
6128
6131
  const d = q(() => i.hashOn === "cookie" || i.hashOn === "none"), h = q(() => i.slots ? s(i.slots, Ht, Tt) ? "" : a("upstreams.form.errors.in_range") : "");
6129
6132
  return (p, m) => {
6130
- const n = M("KExternalLink"), T = M("KSelect"), _ = M("KInput"), y = M("KCard");
6133
+ const n = j("KExternalLink"), T = j("KSelect"), _ = j("KInput"), y = j("KCard");
6131
6134
  return b(), V(u(at), {
6132
6135
  class: "kong-ui-entities-upstreams-load-balancing",
6133
6136
  title: u(a)("upstreams.form.load_balancing.title")
@@ -6370,7 +6373,7 @@ const Ae = {
6370
6373
  setup(e, { emit: l }) {
6371
6374
  const { i18n: { t } } = Ae.useI18n(), a = l;
6372
6375
  return (s, i) => {
6373
- const r = M("KExternalLink"), c = M("KInputSwitch"), o = M("KCard"), d = M("KInput");
6376
+ const r = j("KExternalLink"), c = j("KInputSwitch"), o = j("KCard"), d = j("KInput");
6374
6377
  return b(), V(u(at), {
6375
6378
  class: "kong-ui-entities-upstreams-healthchecks",
6376
6379
  title: u(t)("upstreams.form.health_check.title")
@@ -6558,7 +6561,7 @@ const Ae = {
6558
6561
  _ === 0 && p.value.length === 1 ? p.value[0] = { key: "", values: "" } : p.value.splice(_, 1), m();
6559
6562
  };
6560
6563
  return (_, y) => {
6561
- const C = M("KExternalLink"), O = M("KSelect"), N = M("KInput"), F = M("KCheckbox"), j = M("KLabel"), x = M("KIcon"), L = M("KButton"), U = M("KMultiselect"), I = M("KCard");
6564
+ const C = j("KExternalLink"), O = j("KSelect"), N = j("KInput"), F = j("KCheckbox"), M = j("KLabel"), x = j("KIcon"), L = j("KButton"), U = j("KMultiselect"), I = j("KCard");
6562
6565
  return b(), V(u(at), {
6563
6566
  class: "kong-ui-entities-upstreams-active-healthcheck",
6564
6567
  title: u(t)("upstreams.form.active_health_check.title")
@@ -6641,7 +6644,7 @@ const Ae = {
6641
6644
  }, null, 8, ["disabled", "label", "model-value"])
6642
6645
  ], 64)) : W("", !0),
6643
6646
  ((K = e.config) == null ? void 0 : K.app) === "kongManager" ? (b(), E("div", yc, [
6644
- g(j, {
6647
+ g(M, {
6645
6648
  info: u(t)("upstreams.form.fields.headers.tooltip_active"),
6646
6649
  "tooltip-attributes": { maxWidth: "250px" }
6647
6650
  }, {
@@ -6716,8 +6719,8 @@ const Ae = {
6716
6719
  "data-testid": "active-healthcheck-interval",
6717
6720
  help: u(t)("upstreams.form.fields.interval.help"),
6718
6721
  label: u(t)("upstreams.form.fields.interval.label"),
6719
- max: u(jl),
6720
- min: u(Ml),
6722
+ max: u(Ml),
6723
+ min: u(jl),
6721
6724
  "model-value": e.interval,
6722
6725
  readonly: e.readonly,
6723
6726
  type: "number",
@@ -6761,8 +6764,8 @@ const Ae = {
6761
6764
  "data-testid": "active-healthcheck-unhealthy-interval",
6762
6765
  help: u(t)("upstreams.form.fields.interval.help"),
6763
6766
  label: u(t)("upstreams.form.fields.interval.label"),
6764
- max: u(jl),
6765
- min: u(Ml),
6767
+ max: u(Ml),
6768
+ min: u(jl),
6766
6769
  "model-value": e.unhealthyInterval,
6767
6770
  readonly: e.readonly,
6768
6771
  type: "number",
@@ -6900,7 +6903,7 @@ const Ae = {
6900
6903
  return ke(() => a.type, (d, h) => {
6901
6904
  h === "tcp" && d !== h && s("update:tcp-failures", "5"), h !== "tcp" && d === "tcp" && (s("update:http-statuses", qt), s("update:unhealthy-http-statuses", Ut));
6902
6905
  }), (d, h) => {
6903
- const p = M("KExternalLink"), m = M("KSelect"), n = M("KInput"), T = M("KMultiselect"), _ = M("KCard");
6906
+ const p = j("KExternalLink"), m = j("KSelect"), n = j("KInput"), T = j("KMultiselect"), _ = j("KCard");
6904
6907
  return b(), V(u(at), {
6905
6908
  class: "kong-ui-entities-upstreams-passive-healthcheck",
6906
6909
  title: u(t)("upstreams.form.passive_health_check.title")
@@ -7043,7 +7046,7 @@ const Ae = {
7043
7046
  var te;
7044
7047
  const t = e, a = l, { inRange: s, stringToNumberArray: i, upstreamsResponseToFields: r, getDefaultUpstreamFields: c, objectsAreEqual: o, cloneDeep: d } = ft(), { axiosInstance: h } = pt({
7045
7048
  headers: (te = t.config) == null ? void 0 : te.requestHeaders
7046
- }), { getMessageFromError: p } = Vs(), m = Mt(), n = st({
7049
+ }), { getMessageFromError: p } = Vs(), m = jt(), n = st({
7047
7050
  fields: c(),
7048
7051
  readonly: !1,
7049
7052
  errorMessage: ""
@@ -7051,7 +7054,7 @@ const Ae = {
7051
7054
  n.fields.activeHealthCheck.interval = k ? "5" : "0", n.fields.activeHealthCheck.successes = k ? "5" : "0", n.fields.activeHealthCheck.httpFailures = k ? "5" : "0", n.fields.activeHealthCheck.unhealthyInterval = k ? "5" : "0";
7052
7055
  }, C = (k) => {
7053
7056
  n.fields.passiveHealthCheck.timeouts = k ? "5" : "0", n.fields.passiveHealthCheck.successes = k ? "80" : "0";
7054
- }, O = q(() => n.fields.slots ? s(n.fields.slots, Ht, Tt) : !0), N = q(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), F = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), j = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), x = q(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), L = q(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), U = q(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), I = q(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), K = q(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), A = q(() => !!n.fields.name && O.value && N.value && F.value && j.value && x.value && L.value && U.value && I.value && K.value), P = q(() => t.upstreamId ? _e.Edit : _e.Create), Q = q(() => {
7057
+ }, O = q(() => n.fields.slots ? s(n.fields.slots, Ht, Tt) : !0), N = q(() => n.fields.hashOn === "header" ? !!n.fields.hashOnHeader : !0), F = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookie : !0), M = q(() => n.fields.hashOn === "cookie" || n.fields.hashFallback === "cookie" ? !!n.fields.hashOnCookiePath : !0), x = q(() => n.fields.hashOn === "query_arg" ? !!n.fields.hashOnQueryArgument : !0), L = q(() => n.fields.hashOn === "uri_capture" ? !!n.fields.hashOnUriCapture : !0), U = q(() => n.fields.hashFallback === "header" ? !!n.fields.hashFallbackHeader : !0), I = q(() => n.fields.hashFallback === "query_arg" ? !!n.fields.hashFallbackQueryArgument : !0), K = q(() => n.fields.hashFallback === "uri_capture" ? !!n.fields.hashFallbackUriCapture : !0), A = q(() => !!n.fields.name && O.value && N.value && F.value && M.value && x.value && L.value && U.value && I.value && K.value), P = q(() => t.upstreamId ? _e.Edit : _e.Create), Q = q(() => {
7055
7058
  var k, v;
7056
7059
  return (v = We.form[(k = t.config) == null ? void 0 : k.app]) == null ? void 0 : v.edit;
7057
7060
  }), Z = (k) => {
@@ -7081,7 +7084,7 @@ const Ae = {
7081
7084
  var me, $e;
7082
7085
  return se.key ? {
7083
7086
  ...pe,
7084
- [se.key]: ($e = (me = se.values.split(",")) == null ? void 0 : me.map((je) => String(je || "").trim())) == null ? void 0 : $e.filter((je) => je !== "")
7087
+ [se.key]: ($e = (me = se.values.split(",")) == null ? void 0 : me.map((Me) => String(Me || "").trim())) == null ? void 0 : $e.filter((Me) => Me !== "")
7085
7088
  } : {
7086
7089
  ...pe
7087
7090
  };