@kong-ui-public/entities-upstreams-targets 3.8.6 → 3.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { ref as B, defineComponent as he, computed as I, watch as ye, onBeforeMount as Le, resolveComponent as K, openBlock as T, createElementBlock as oe, createVNode as n, unref as e, createSlots as Ne, withCtx as r, createBlock as E, Teleport as Be, createElementVNode as v, createCommentVNode as j, createTextVNode as J, toDisplayString as f, reactive as Fe, renderSlot as vt, Fragment as Se, renderList as $t, normalizeClass as Pt } from "vue";
1
+ import { ref as R, defineComponent as he, computed as I, watch as pe, onBeforeMount as Le, resolveComponent as K, openBlock as q, createElementBlock as oe, createVNode as n, unref as e, createSlots as Ne, withCtx as r, createBlock as E, Teleport as Be, createElementVNode as _, createCommentVNode as B, createTextVNode as J, toDisplayString as y, reactive as Fe, renderSlot as vt, Fragment as Se, renderList as $t, normalizeClass as Pt } from "vue";
2
2
  import { useAxios as Me, useTableState as At, useFetcher as kt, useDeleteUrlBuilder as _t, FetcherStatus as Ct, EntityBaseTable as St, EntityFilter as Mt, PermissionsWrapper as de, TableTags as Ht, EntityEmptyState as Vt, EntityDeleteModal as Ut, EntityTypes as It, useErrors as wt, EntityBaseFormType as ce, EntityBaseForm as qt, SupportedEntityType as je, useDebouncedFilter as ft, EntityFormSection as Ue, useHelpers as Kt, ConfigurationSchemaSection as ue, ConfigurationSchemaType as Et, EntityBaseConfigCard as Nt } from "@kong-ui-public/entities-shared";
3
3
  import { useRouter as Tt } from "vue-router";
4
4
  import { BookIcon as yt, AddIcon as Qe, CloudUploadIcon as Bt, TrashIcon as Rt } from "@kong/icons";
@@ -385,15 +385,15 @@ function Jt() {
385
385
  };
386
386
  }
387
387
  function He(a) {
388
- const { replaceId: R = !1 } = a, i = B([]);
388
+ const { replaceId: D = !1 } = a, i = R([]);
389
389
  return {
390
390
  addedItems: i,
391
391
  trackNewItems: (h, k) => {
392
392
  if (k) {
393
- const _ = { ...h };
394
- R && (_.value = h.label), i.value.push(_);
393
+ const f = { ...h };
394
+ D && (f.value = h.label), i.value.push(f);
395
395
  } else
396
- i.value = i.value.filter((_) => _.value !== h.value);
396
+ i.value = i.value.filter((f) => f.value !== h.value);
397
397
  }
398
398
  };
399
399
  }
@@ -768,14 +768,14 @@ const xe = [
768
768
  }
769
769
  ], Re = 10, De = 65536, zt = 0, Gt = 65535, ve = 0, ke = 255, Ft = 0, xt = 255, Xt = 0, Zt = 65535, gt = 0, bt = 65535, Yt = 0, ea = 2 ** 31, Oe = ["200", "302"], $e = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Pe = ["429", "404", "500", "501", "502", "503", "504", "505"], Ae = ["429", "500", "503"];
770
770
  function Ve() {
771
- const a = (s) => /^\d+$/.test(s), R = (s, c, S) => {
771
+ const a = (s) => /^\d+$/.test(s), D = (s, c, S) => {
772
772
  if (a(s)) {
773
773
  const m = Number(s);
774
774
  return m >= c && m <= S;
775
775
  } else
776
776
  return !1;
777
777
  }, i = (s) => s.map((c) => Number(c)), l = (s) => s.map((c) => c.toString()), h = (s) => {
778
- var S, m, t, N, U, d, H, ee, O, X, G, b, q, x, A, g, Q, W, z, le, $, V, Z, se, te, ae, w, L, y, C, M, P, p, o, u, Y, ie, re, ne, fe, Ce, Ie, We, Je, ze, Ge, Xe, Ze, Ye, et, tt, at, lt, st, it, ot, rt, nt, ht, ut, ct, dt, pt, mt;
778
+ var S, m, t, N, U, d, H, ee, O, X, G, v, T, x, A, b, Q, W, z, le, $, V, Z, se, te, ae, w, j, g, C, M, P, p, o, u, Y, ie, re, ne, ye, Ce, Ie, We, Je, ze, Ge, Xe, Ze, Ye, et, tt, at, lt, st, it, ot, rt, nt, ht, ut, ct, dt, pt, mt;
779
779
  return {
780
780
  name: (s == null ? void 0 : s.name) || "",
781
781
  hostHeader: (s == null ? void 0 : s.host_header) || "",
@@ -796,8 +796,8 @@ function Ve() {
796
796
  hashFallbackQueryArgument: (s == null ? void 0 : s.hash_fallback_query_arg) || "",
797
797
  hashFallbackUriCapture: (s == null ? void 0 : s.hash_fallback_uri_capture) || "",
798
798
  activeHealthSwitch: s ? ((U = (N = s.healthchecks.active) == null ? void 0 : N.healthy) == null ? void 0 : U.interval) !== 0 || ((H = (d = s.healthchecks.active) == null ? void 0 : d.unhealthy) == null ? void 0 : H.interval) !== 0 : !1,
799
- passiveHealthSwitch: s ? ((O = (ee = s.healthchecks.passive) == null ? void 0 : ee.healthy) == null ? void 0 : O.successes) !== 0 || ((G = (X = s.healthchecks.passive) == null ? void 0 : X.unhealthy) == null ? void 0 : G.timeouts) !== 0 || ((q = (b = s.healthchecks.passive) == null ? void 0 : b.unhealthy) == null ? void 0 : q.tcp_failures) !== 0 || ((A = (x = s.healthchecks.passive) == null ? void 0 : x.unhealthy) == null ? void 0 : A.http_failures) !== 0 : !1,
800
- healthchecksThreshold: ((g = s == null ? void 0 : s.healthchecks.threshold) == null ? void 0 : g.toString()) || "0",
799
+ passiveHealthSwitch: s ? ((O = (ee = s.healthchecks.passive) == null ? void 0 : ee.healthy) == null ? void 0 : O.successes) !== 0 || ((G = (X = s.healthchecks.passive) == null ? void 0 : X.unhealthy) == null ? void 0 : G.timeouts) !== 0 || ((T = (v = s.healthchecks.passive) == null ? void 0 : v.unhealthy) == null ? void 0 : T.tcp_failures) !== 0 || ((A = (x = s.healthchecks.passive) == null ? void 0 : x.unhealthy) == null ? void 0 : A.http_failures) !== 0 : !1,
800
+ healthchecksThreshold: ((b = s == null ? void 0 : s.healthchecks.threshold) == null ? void 0 : b.toString()) || "0",
801
801
  activeHealthCheck: {
802
802
  type: ((Q = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Q.type) || "http",
803
803
  httpPath: ((W = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : W.http_path) || "/",
@@ -807,14 +807,14 @@ function Ve() {
807
807
  verifySsl: ((se = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : se.https_verify_certificate) || !1,
808
808
  headers: (te = s == null ? void 0 : s.healthchecks.active) != null && te.headers && Object.entries(s.healthchecks.active.headers).length > 0 ? Object.entries(s.healthchecks.active.headers).map(([Ot, Ee]) => ({ key: Ot, values: Ee == null ? void 0 : Ee.join(", ") })) : [{ key: "", values: "" }],
809
809
  healthy: {
810
- interval: ((L = (w = (ae = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ae.healthy) == null ? void 0 : w.interval) == null ? void 0 : L.toString()) || "0",
811
- successes: ((M = (C = (y = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : y.healthy) == null ? void 0 : C.successes) == null ? void 0 : M.toString()) || "5",
810
+ interval: ((j = (w = (ae = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ae.healthy) == null ? void 0 : w.interval) == null ? void 0 : j.toString()) || "0",
811
+ successes: ((M = (C = (g = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : g.healthy) == null ? void 0 : C.successes) == null ? void 0 : M.toString()) || "5",
812
812
  httpStatuses: (p = (P = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : P.healthy) != null && p.http_statuses ? l(s.healthchecks.active.healthy.http_statuses) : Oe
813
813
  },
814
814
  unhealthy: {
815
815
  interval: ((Y = (u = (o = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : o.unhealthy) == null ? void 0 : u.interval) == null ? void 0 : Y.toString()) || "0",
816
816
  httpFailures: ((ne = (re = (ie = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ie.unhealthy) == null ? void 0 : re.http_failures) == null ? void 0 : ne.toString()) || "5",
817
- tcpFailures: ((Ie = (Ce = (fe = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : fe.unhealthy) == null ? void 0 : Ce.tcp_failures) == null ? void 0 : Ie.toString()) || "5",
817
+ tcpFailures: ((Ie = (Ce = (ye = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ye.unhealthy) == null ? void 0 : Ce.tcp_failures) == null ? void 0 : Ie.toString()) || "5",
818
818
  httpStatuses: (Je = (We = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : We.unhealthy) != null && Je.http_statuses ? l(s.healthchecks.active.unhealthy.http_statuses) : Pe,
819
819
  timeouts: ((Xe = (Ge = (ze = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ze.unhealthy) == null ? void 0 : Ge.timeouts) == null ? void 0 : Xe.toString()) || "0"
820
820
  }
@@ -836,7 +836,7 @@ function Ve() {
836
836
  };
837
837
  return {
838
838
  isInteger: a,
839
- inRange: R,
839
+ inRange: D,
840
840
  stringToNumberArray: i,
841
841
  numberToStringArray: l,
842
842
  upstreamsResponseToFields: (s) => h(s),
@@ -851,7 +851,7 @@ function Ve() {
851
851
  cloneDeep: (s) => JSON.parse(JSON.stringify(s))
852
852
  };
853
853
  }
854
- const pe = {
854
+ const me = {
855
855
  useI18n: Jt,
856
856
  useMultiselectCreation: He,
857
857
  useHelpers: Ve
@@ -929,27 +929,27 @@ const pe = {
929
929
  }
930
930
  },
931
931
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
932
- setup(a, { emit: R }) {
933
- var L;
934
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), k = Tt(), { axiosInstance: _ } = Me((L = l.config) == null ? void 0 : L.axiosRequestConfig), { hasRecords: D, handleStateChange: F } = At(() => U.value), s = I(() => D.value && l.config.app === "konnect"), c = I(() => !l.enableV2EmptyStates && l.config.app === "konnect"), S = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), m = {
932
+ setup(a, { emit: D }) {
933
+ var j;
934
+ const i = D, l = a, { i18n: { t: h } } = me.useI18n(), k = Tt(), { axiosInstance: f } = Me((j = l.config) == null ? void 0 : j.axiosRequestConfig), { hasRecords: L, handleStateChange: F } = At(() => U.value), s = I(() => L.value && l.config.app === "konnect"), c = I(() => !l.enableV2EmptyStates && l.config.app === "konnect"), S = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), m = {
935
935
  // the Name column is non-hidable
936
936
  name: { label: h("upstreams.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
937
937
  slots: { label: h("upstreams.list.table_headers.slots"), searchable: !0, sortable: !0 },
938
938
  tags: { label: h("upstreams.list.table_headers.tags"), sortable: !1 }
939
939
  }, t = m, N = I(() => {
940
940
  var C, M;
941
- let y = `${l.config.apiBaseUrl}${_e.list[l.config.app]}`;
942
- return l.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((C = l.config) == null ? void 0 : C.controlPlaneId) || "") : l.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (M = l.config) != null && M.workspace ? `/${l.config.workspace}` : "")), y;
943
- }), U = B(""), d = I(() => {
944
- const y = l.config.app === "konnect" || l.config.isExactMatch;
945
- if (y)
941
+ let g = `${l.config.apiBaseUrl}${_e.list[l.config.app]}`;
942
+ return l.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((C = l.config) == null ? void 0 : C.controlPlaneId) || "") : l.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (M = l.config) != null && M.workspace ? `/${l.config.workspace}` : "")), g;
943
+ }), U = R(""), d = I(() => {
944
+ const g = l.config.app === "konnect" || l.config.isExactMatch;
945
+ if (g)
946
946
  return {
947
- isExactMatch: y,
947
+ isExactMatch: g,
948
948
  placeholder: h("upstreams.search.placeholder")
949
949
  };
950
950
  const { name: C, slots: M } = m;
951
951
  return {
952
- isExactMatch: y,
952
+ isExactMatch: g,
953
953
  fields: { name: C, slots: M },
954
954
  schema: l.config.filterSchema
955
955
  };
@@ -961,53 +961,53 @@ const pe = {
961
961
  U.value = "";
962
962
  }, G = () => {
963
963
  O.value++;
964
- }, b = B(null), q = async (y, C) => {
965
- const M = y.id;
964
+ }, v = R(null), T = async (g, C) => {
965
+ const M = g.id;
966
966
  if (!await C(M)) {
967
967
  i("copy:error", {
968
- entity: y,
968
+ entity: g,
969
969
  field: "id",
970
970
  message: h("upstreams.errors.copy")
971
971
  });
972
972
  return;
973
973
  }
974
974
  i("copy:success", {
975
- entity: y,
975
+ entity: g,
976
976
  field: "id",
977
977
  message: h("upstreams.copy.success", { val: M })
978
978
  });
979
- }, x = async (y, C) => {
980
- const M = JSON.stringify(y);
979
+ }, x = async (g, C) => {
980
+ const M = JSON.stringify(g);
981
981
  if (!await C(M)) {
982
982
  i("copy:error", {
983
- entity: y,
983
+ entity: g,
984
984
  message: h("upstreams.errors.copy")
985
985
  });
986
986
  return;
987
987
  }
988
988
  i("copy:success", {
989
- entity: y,
989
+ entity: g,
990
990
  message: h("upstreams.copy.success_brief")
991
991
  });
992
- }, A = async (y) => {
992
+ }, A = async (g) => {
993
993
  var M;
994
- await ((M = l.canRetrieve) == null ? void 0 : M.call(l, y)) && k.push(l.config.getViewRoute(y.id));
995
- }, g = (y) => ({
994
+ await ((M = l.canRetrieve) == null ? void 0 : M.call(l, g)) && k.push(l.config.getViewRoute(g.id));
995
+ }, b = (g) => ({
996
996
  label: h("upstreams.actions.view"),
997
- to: l.config.getViewRoute(y)
998
- }), Q = (y) => ({
997
+ to: l.config.getViewRoute(g)
998
+ }), Q = (g) => ({
999
999
  label: h("upstreams.actions.edit"),
1000
- to: l.config.getEditRoute(y)
1001
- }), W = B(void 0), z = B(!1), le = B(!1), $ = B(""), V = _t(l.config, N.value), Z = (y) => {
1002
- W.value = y, z.value = !0;
1000
+ to: l.config.getEditRoute(g)
1001
+ }), W = R(void 0), z = R(!1), le = R(!1), $ = R(""), V = _t(l.config, N.value), Z = (g) => {
1002
+ W.value = g, z.value = !0;
1003
1003
  }, se = () => {
1004
1004
  z.value = !1;
1005
1005
  }, te = async () => {
1006
- var y, C, M;
1007
- if ((y = W.value) != null && y.id) {
1006
+ var g, C, M;
1007
+ if ((g = W.value) != null && g.id) {
1008
1008
  le.value = !0;
1009
1009
  try {
1010
- await _.delete(V(W.value.id)), le.value = !1, z.value = !1, O.value++, i("delete:success", W.value);
1010
+ await f.delete(V(W.value.id)), le.value = !1, z.value = !1, O.value++, i("delete:success", W.value);
1011
1011
  } catch (P) {
1012
1012
  $.value = ((M = (C = P.response) == null ? void 0 : C.data) == null ? void 0 : M.message) || P.message || h("upstreams.errors.delete"), i("error", P);
1013
1013
  } finally {
@@ -1017,17 +1017,17 @@ const pe = {
1017
1017
  }, ae = () => {
1018
1018
  k.push(l.config.createRoute);
1019
1019
  };
1020
- ye(ee, (y) => {
1020
+ pe(ee, (g) => {
1021
1021
  var C, M, P;
1022
- if (y.status === Ct.Error) {
1023
- b.value = {
1022
+ if (g.status === Ct.Error) {
1023
+ v.value = {
1024
1024
  title: h("upstreams.errors.general")
1025
- }, (P = (M = (C = y.error) == null ? void 0 : C.response) == null ? void 0 : M.data) != null && P.message && (b.value.message = y.error.response.data.message), i("error", y.error);
1025
+ }, (P = (M = (C = g.error) == null ? void 0 : C.response) == null ? void 0 : M.data) != null && P.message && (v.value.message = g.error.response.data.message), i("error", g.error);
1026
1026
  return;
1027
1027
  }
1028
- b.value = null;
1028
+ v.value = null;
1029
1029
  });
1030
- const w = B({
1030
+ const w = R({
1031
1031
  ctaPath: l.config.createRoute,
1032
1032
  ctaText: void 0,
1033
1033
  message: `${h("upstreams.list.empty_state.description")}${l.config.additionMessageForEmptyState ? ` ${l.config.additionMessageForEmptyState}` : ""}`,
@@ -1035,15 +1035,15 @@ const pe = {
1035
1035
  });
1036
1036
  return Le(async () => {
1037
1037
  await l.canCreate() && (w.value.title = h("upstreams.list.empty_state.title"), w.value.ctaText = h("upstreams.actions.create"));
1038
- }), (y, C) => {
1038
+ }), (g, C) => {
1039
1039
  const M = K("KButton"), P = K("KDropdownItem"), p = K("KClipboardProvider");
1040
- return T(), oe("div", sa, [
1040
+ return q(), oe("div", sa, [
1041
1041
  n(e(St), {
1042
1042
  "cache-identifier": a.cacheIdentifier,
1043
1043
  "disable-sorting": S.value,
1044
1044
  "empty-state-options": w.value,
1045
1045
  "enable-entity-actions": "",
1046
- "error-message": b.value,
1046
+ "error-message": v.value,
1047
1047
  fetcher: e(H),
1048
1048
  "fetcher-cache-key": e(O),
1049
1049
  "pagination-type": "offset",
@@ -1063,24 +1063,24 @@ const pe = {
1063
1063
  }, null, 8, ["modelValue", "config"])
1064
1064
  ]),
1065
1065
  "toolbar-button": r(() => [
1066
- (T(), E(Be, {
1066
+ (q(), E(Be, {
1067
1067
  disabled: !a.useActionOutside,
1068
1068
  to: "#kong-ui-app-page-header-action-button"
1069
1069
  }, [
1070
- v("div", ia, [
1071
- s.value ? (T(), E(M, {
1070
+ _("div", ia, [
1071
+ s.value ? (q(), E(M, {
1072
1072
  key: 0,
1073
1073
  appearance: "secondary",
1074
1074
  class: "open-learning-hub",
1075
1075
  "data-testid": "upstream-learn-more-button",
1076
1076
  icon: "",
1077
- onClick: C[1] || (C[1] = (o) => y.$emit("click:learn-more"))
1077
+ onClick: C[1] || (C[1] = (o) => g.$emit("click:learn-more"))
1078
1078
  }, {
1079
1079
  default: r(() => [
1080
1080
  n(e(yt), { decorative: "" })
1081
1081
  ]),
1082
1082
  _: 1
1083
- })) : j("", !0),
1083
+ })) : B("", !0),
1084
1084
  n(e(de), {
1085
1085
  "auth-function": () => a.canCreate()
1086
1086
  }, {
@@ -1093,7 +1093,7 @@ const pe = {
1093
1093
  }, {
1094
1094
  default: r(() => [
1095
1095
  n(e(Qe)),
1096
- J(" " + f(e(h)("upstreams.list.toolbar_actions.new_upstream")), 1)
1096
+ J(" " + y(e(h)("upstreams.list.toolbar_actions.new_upstream")), 1)
1097
1097
  ]),
1098
1098
  _: 1
1099
1099
  }, 8, ["size", "to"])
@@ -1104,7 +1104,7 @@ const pe = {
1104
1104
  ], 8, ["disabled"]))
1105
1105
  ]),
1106
1106
  name: r(({ rowValue: o }) => [
1107
- v("span", ra, f(o), 1)
1107
+ _("span", ra, y(o), 1)
1108
1108
  ]),
1109
1109
  tags: r(({ rowValue: o }) => [
1110
1110
  n(e(Ht), {
@@ -1117,10 +1117,10 @@ const pe = {
1117
1117
  default: r(({ copyToClipboard: u }) => [
1118
1118
  n(P, {
1119
1119
  "data-testid": "action-entity-copy-id",
1120
- onClick: (Y) => q(o, u)
1120
+ onClick: (Y) => T(o, u)
1121
1121
  }, {
1122
1122
  default: r(() => [
1123
- J(f(e(h)("upstreams.actions.copy_id")), 1)
1123
+ J(y(e(h)("upstreams.actions.copy_id")), 1)
1124
1124
  ]),
1125
1125
  _: 2
1126
1126
  }, 1032, ["onClick"])
@@ -1134,7 +1134,7 @@ const pe = {
1134
1134
  onClick: (Y) => x(o, u)
1135
1135
  }, {
1136
1136
  default: r(() => [
1137
- J(f(e(h)("upstreams.actions.copy_json")), 1)
1137
+ J(y(e(h)("upstreams.actions.copy_json")), 1)
1138
1138
  ]),
1139
1139
  _: 2
1140
1140
  }, 1032, ["onClick"])
@@ -1148,7 +1148,7 @@ const pe = {
1148
1148
  n(P, {
1149
1149
  "data-testid": "action-entity-view",
1150
1150
  "has-divider": "",
1151
- item: g(o.id)
1151
+ item: b(o.id)
1152
1152
  }, null, 8, ["item"])
1153
1153
  ]),
1154
1154
  _: 2
@@ -1175,7 +1175,7 @@ const pe = {
1175
1175
  onClick: (u) => Z(o)
1176
1176
  }, {
1177
1177
  default: r(() => [
1178
- J(f(e(h)("upstreams.actions.delete")), 1)
1178
+ J(y(e(h)("upstreams.actions.delete")), 1)
1179
1179
  ]),
1180
1180
  _: 2
1181
1181
  }, 1032, ["onClick"])
@@ -1185,10 +1185,10 @@ const pe = {
1185
1185
  ]),
1186
1186
  _: 2
1187
1187
  }, [
1188
- !e(D) && c.value ? {
1188
+ !e(L) && c.value ? {
1189
1189
  name: "outside-actions",
1190
1190
  fn: r(() => [
1191
- (T(), E(Be, {
1191
+ (q(), E(Be, {
1192
1192
  disabled: !a.useActionOutside,
1193
1193
  to: "#kong-ui-app-page-header-action-button"
1194
1194
  }, [
@@ -1197,7 +1197,7 @@ const pe = {
1197
1197
  class: "open-learning-hub",
1198
1198
  "data-testid": "upstreams-learn-more-button",
1199
1199
  icon: "",
1200
- onClick: C[2] || (C[2] = (o) => y.$emit("click:learn-more"))
1200
+ onClick: C[2] || (C[2] = (o) => g.$emit("click:learn-more"))
1201
1201
  }, {
1202
1202
  default: r(() => [
1203
1203
  n(e(yt), { decorative: "" })
@@ -1222,10 +1222,10 @@ const pe = {
1222
1222
  "learn-more": a.config.app === "konnect",
1223
1223
  title: e(h)("upstreams.list.empty_state_v2.title"),
1224
1224
  "onClick:create": ae,
1225
- "onClick:learnMore": C[3] || (C[3] = (u) => y.$emit("click:learn-more"))
1225
+ "onClick:learnMore": C[3] || (C[3] = (u) => g.$emit("click:learn-more"))
1226
1226
  }, Ne({
1227
1227
  image: r(() => [
1228
- v("div", oa, [
1228
+ _("div", oa, [
1229
1229
  n(e(Bt), {
1230
1230
  color: e(aa),
1231
1231
  size: e(la)
@@ -1237,7 +1237,7 @@ const pe = {
1237
1237
  (o = a.config) != null && o.isControlPlaneGroup ? {
1238
1238
  name: "message",
1239
1239
  fn: r(() => [
1240
- J(f(e(h)("upstreams.list.empty_state_v2.group")), 1)
1240
+ J(y(e(h)("upstreams.list.empty_state_v2.group")), 1)
1241
1241
  ]),
1242
1242
  key: "0"
1243
1243
  } : void 0
@@ -1261,12 +1261,12 @@ const pe = {
1261
1261
  ]);
1262
1262
  };
1263
1263
  }
1264
- }), me = (a, R) => {
1264
+ }), fe = (a, D) => {
1265
1265
  const i = a.__vccOpts || a;
1266
- for (const [l, h] of R)
1266
+ for (const [l, h] of D)
1267
1267
  i[l] = h;
1268
1268
  return i;
1269
- }, Ya = /* @__PURE__ */ me(na, [["__scopeId", "data-v-ab9fd150"]]), we = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}", Te = {
1269
+ }, Ya = /* @__PURE__ */ fe(na, [["__scopeId", "data-v-ab9fd150"]]), we = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}", Te = {
1270
1270
  list: {
1271
1271
  konnect: `${we}/upstreams/{upstreamId}/targets`,
1272
1272
  kongManager: `${qe}/upstreams/{upstreamId}/targets`
@@ -1309,11 +1309,11 @@ const pe = {
1309
1309
  }
1310
1310
  },
1311
1311
  emits: ["update", "error", "loading", "cancel"],
1312
- setup(a, { emit: R }) {
1312
+ setup(a, { emit: D }) {
1313
1313
  var G;
1314
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), { getMessageFromError: k } = wt(), { axiosInstance: _ } = Me((G = l.config) == null ? void 0 : G.axiosRequestConfig), D = I(() => {
1315
- var b;
1316
- return Te.form[l.config.app].edit.replace(/{upstreamId}/gi, ((b = l.config) == null ? void 0 : b.upstreamId) || "");
1314
+ const i = D, l = a, { i18n: { t: h } } = me.useI18n(), { getMessageFromError: k } = wt(), { axiosInstance: f } = Me((G = l.config) == null ? void 0 : G.axiosRequestConfig), L = I(() => {
1315
+ var v;
1316
+ return Te.form[l.config.app].edit.replace(/{upstreamId}/gi, ((v = l.config) == null ? void 0 : v.upstreamId) || "");
1317
1317
  }), F = I(() => l.targetId ? ce.Edit : ce.Create), s = I(() => F.value === ce.Edit ? h("targets.form.edit.title") : h("targets.form.create.title")), c = Fe({
1318
1318
  fields: {
1319
1319
  target: "",
@@ -1331,39 +1331,39 @@ const pe = {
1331
1331
  weight: 100,
1332
1332
  tags: ""
1333
1333
  }, t = I(() => {
1334
- const b = parseInt(c.fields.weight.toString(), 10);
1335
- return b < 0 || b > 65535;
1334
+ const v = parseInt(c.fields.weight.toString(), 10);
1335
+ return v < 0 || v > 65535;
1336
1336
  }), N = I(
1337
1337
  () => JSON.stringify(c.fields) !== JSON.stringify(S) && !!c.fields.target && !!c.fields.weight && !t.value
1338
- ), U = (b) => {
1339
- var q;
1340
- c.fields.target = (b == null ? void 0 : b.target) || "", c.fields.weight = (b == null ? void 0 : b.weight) ?? "", c.fields.tags = ((q = b == null ? void 0 : b.tags) == null ? void 0 : q.join(", ")) || "", Object.assign(S, c.fields);
1338
+ ), U = (v) => {
1339
+ var T;
1340
+ c.fields.target = (v == null ? void 0 : v.target) || "", c.fields.weight = (v == null ? void 0 : v.weight) ?? "", c.fields.tags = ((T = v == null ? void 0 : v.tags) == null ? void 0 : T.join(", ")) || "", Object.assign(S, c.fields);
1341
1341
  }, d = () => {
1342
1342
  c.errorMessage = "", i("cancel");
1343
1343
  }, H = I(() => {
1344
- var q, x;
1345
- let b = `${l.config.apiBaseUrl}${Te.form[l.config.app].validate}`;
1346
- return l.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((q = l.config) == null ? void 0 : q.controlPlaneId) || "") : l.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (x = l.config) != null && x.workspace ? `/${l.config.workspace}` : "")), b = b.replace(/{id}/gi, l.targetId), b;
1344
+ var T, x;
1345
+ let v = `${l.config.apiBaseUrl}${Te.form[l.config.app].validate}`;
1346
+ return l.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((T = l.config) == null ? void 0 : T.controlPlaneId) || "") : l.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (x = l.config) != null && x.workspace ? `/${l.config.workspace}` : "")), v = v.replace(/{id}/gi, l.targetId), v;
1347
1347
  }), ee = I(() => {
1348
- var q, x, A, g;
1349
- let b = `${l.config.apiBaseUrl}${Te.form[l.config.app][F.value]}`;
1350
- return l.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((q = l.config) == null ? void 0 : q.controlPlaneId) || "").replace(/{upstreamId}/gi, ((x = l.config) == null ? void 0 : x.upstreamId) || "") : l.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = l.config) != null && A.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((g = l.config) == null ? void 0 : g.upstreamId) || "")), b = b.replace(/{id}/gi, l.targetId), b;
1348
+ var T, x, A, b;
1349
+ let v = `${l.config.apiBaseUrl}${Te.form[l.config.app][F.value]}`;
1350
+ return l.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((T = l.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{upstreamId}/gi, ((x = l.config) == null ? void 0 : x.upstreamId) || "") : l.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (A = l.config) != null && A.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((b = l.config) == null ? void 0 : b.upstreamId) || "")), v = v.replace(/{id}/gi, l.targetId), v;
1351
1351
  }), O = I(() => {
1352
- var b, q, x;
1352
+ var v, T, x;
1353
1353
  return {
1354
1354
  target: c.fields.target,
1355
1355
  weight: parseInt(c.fields.weight),
1356
- tags: (x = (q = (b = c.fields.tags) == null ? void 0 : b.split(",")) == null ? void 0 : q.map((A) => String(A || "").trim())) == null ? void 0 : x.filter((A) => A !== ""),
1356
+ tags: (x = (T = (v = c.fields.tags) == null ? void 0 : v.split(",")) == null ? void 0 : T.map((A) => String(A || "").trim())) == null ? void 0 : x.filter((A) => A !== ""),
1357
1357
  upstream: { id: l.config.upstreamId }
1358
1358
  };
1359
1359
  }), X = async () => {
1360
- var b, q;
1360
+ var v, T;
1361
1361
  try {
1362
1362
  c.isReadonly = !0, c.errorMessage = "";
1363
1363
  let x;
1364
- if (await _.post(H.value, O.value), F.value === "create" ? x = await _.post(ee.value, O.value) : F.value === "edit" && (x = ((b = l.config) == null ? void 0 : b.app) === "konnect" ? await _.put(ee.value, O.value) : await _.patch(ee.value, O.value)), x) {
1364
+ if (await f.post(H.value, O.value), F.value === "create" ? x = await f.post(ee.value, O.value) : F.value === "edit" && (x = ((v = l.config) == null ? void 0 : v.app) === "konnect" ? await f.put(ee.value, O.value) : await f.patch(ee.value, O.value)), x) {
1365
1365
  const { data: A } = x;
1366
- c.fields.target = (A == null ? void 0 : A.name) || "", c.fields.weight = (A == null ? void 0 : A.weight) ?? 100, c.fields.tags = ((q = A == null ? void 0 : A.tags) == null ? void 0 : q.join(", ")) || "", i("update", A), Object.assign(c.fields, m);
1366
+ c.fields.target = (A == null ? void 0 : A.name) || "", c.fields.weight = (A == null ? void 0 : A.weight) ?? 100, c.fields.tags = ((T = A == null ? void 0 : A.tags) == null ? void 0 : T.join(", ")) || "", i("update", A), Object.assign(c.fields, m);
1367
1367
  }
1368
1368
  } catch (x) {
1369
1369
  c.errorMessage = k(x), i("error", x);
@@ -1371,11 +1371,11 @@ const pe = {
1371
1371
  c.isReadonly = !1;
1372
1372
  }
1373
1373
  };
1374
- return ye(() => l.targetId, () => {
1374
+ return pe(() => l.targetId, () => {
1375
1375
  Object.assign(c.fields, m);
1376
- }), (b, q) => {
1376
+ }), (v, T) => {
1377
1377
  const x = K("KInput"), A = K("KPrompt");
1378
- return T(), E(A, {
1378
+ return q(), E(A, {
1379
1379
  "action-button-disabled": !N.value || c.isReadonly,
1380
1380
  "action-button-text": e(h)("targets.form.buttons.save"),
1381
1381
  "cancel-button-text": e(h)("targets.form.buttons.cancel"),
@@ -1385,28 +1385,28 @@ const pe = {
1385
1385
  onProceed: X
1386
1386
  }, {
1387
1387
  default: r(() => [
1388
- v("div", ha, [
1388
+ _("div", ha, [
1389
1389
  n(e(qt), {
1390
1390
  config: a.config,
1391
1391
  "edit-id": a.targetId,
1392
1392
  "entity-type": e(je).Target,
1393
1393
  "error-message": c.errorMessage,
1394
- "fetch-url": D.value,
1394
+ "fetch-url": L.value,
1395
1395
  "form-fields": O.value,
1396
1396
  "is-readonly": c.isReadonly,
1397
1397
  onCancel: d,
1398
- "onFetch:error": q[3] || (q[3] = (g) => b.$emit("error", g)),
1398
+ "onFetch:error": T[3] || (T[3] = (b) => v.$emit("error", b)),
1399
1399
  "onFetch:success": U,
1400
- onLoading: q[4] || (q[4] = (g) => b.$emit("loading", g))
1400
+ onLoading: T[4] || (T[4] = (b) => v.$emit("loading", b))
1401
1401
  }, {
1402
1402
  default: r(() => [
1403
- v("div", ua, [
1404
- b.$slots.info ? (T(), oe("div", ca, [
1405
- vt(b.$slots, "info", {}, void 0, !0)
1406
- ])) : j("", !0),
1403
+ _("div", ua, [
1404
+ v.$slots.info ? (q(), oe("div", ca, [
1405
+ vt(v.$slots, "info", {}, void 0, !0)
1406
+ ])) : B("", !0),
1407
1407
  n(x, {
1408
1408
  modelValue: c.fields.target,
1409
- "onUpdate:modelValue": q[0] || (q[0] = (g) => c.fields.target = g),
1409
+ "onUpdate:modelValue": T[0] || (T[0] = (b) => c.fields.target = b),
1410
1410
  modelModifiers: { trim: !0 },
1411
1411
  autocomplete: "off",
1412
1412
  class: "target-form-input",
@@ -1423,7 +1423,7 @@ const pe = {
1423
1423
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1424
1424
  n(x, {
1425
1425
  modelValue: c.fields.weight,
1426
- "onUpdate:modelValue": q[1] || (q[1] = (g) => c.fields.weight = g),
1426
+ "onUpdate:modelValue": T[1] || (T[1] = (b) => c.fields.weight = b),
1427
1427
  autocomplete: "off",
1428
1428
  class: "target-form-input",
1429
1429
  "data-testid": "target-form-weight",
@@ -1442,7 +1442,7 @@ const pe = {
1442
1442
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
1443
1443
  n(x, {
1444
1444
  modelValue: c.fields.tags,
1445
- "onUpdate:modelValue": q[2] || (q[2] = (g) => c.fields.tags = g),
1445
+ "onUpdate:modelValue": T[2] || (T[2] = (b) => c.fields.tags = b),
1446
1446
  modelModifiers: { trim: !0 },
1447
1447
  autocomplete: "off",
1448
1448
  class: "target-form-input",
@@ -1463,7 +1463,7 @@ const pe = {
1463
1463
  }, 8, ["action-button-disabled", "action-button-text", "cancel-button-text", "title", "visible"]);
1464
1464
  };
1465
1465
  }
1466
- }), pa = /* @__PURE__ */ me(da, [["__scopeId", "data-v-b5bbee74"]]), ma = { class: "kong-ui-entities-targets-list" }, fa = { class: "target-address" }, ya = /* @__PURE__ */ he({
1466
+ }), pa = /* @__PURE__ */ fe(da, [["__scopeId", "data-v-b5bbee74"]]), ma = { class: "kong-ui-entities-targets-list" }, fa = { class: "target-address" }, ya = /* @__PURE__ */ he({
1467
1467
  __name: "TargetsList",
1468
1468
  props: {
1469
1469
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1502,28 +1502,28 @@ const pe = {
1502
1502
  }
1503
1503
  },
1504
1504
  emits: ["error", "copy:success", "copy:error", "delete:success", "health-actions:healthy", "health-actions:unhealthy", "create:target", "update:target"],
1505
- setup(a, { emit: R }) {
1505
+ setup(a, { emit: D }) {
1506
1506
  var ae;
1507
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), { axiosInstance: k } = Me((ae = l.config) == null ? void 0 : ae.axiosRequestConfig), _ = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), F = {
1507
+ const i = D, l = a, { i18n: { t: h } } = me.useI18n(), { axiosInstance: k } = Me((ae = l.config) == null ? void 0 : ae.axiosRequestConfig), f = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), F = {
1508
1508
  // the Target Address column is non-hidable
1509
1509
  target: { label: h("targets.list.table_headers.target_address"), sortable: !0, hidable: !1 },
1510
1510
  weight: { label: h("targets.list.table_headers.weight"), sortable: !0 },
1511
1511
  tags: { label: h("targets.list.table_headers.tags"), sortable: !1 }
1512
1512
  }, s = I(() => {
1513
- var L, y, C, M;
1513
+ var j, g, C, M;
1514
1514
  let w = `${l.config.apiBaseUrl}${Te.list[l.config.app]}`;
1515
- return l.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((L = l.config) == null ? void 0 : L.controlPlaneId) || "").replace(/{upstreamId}/gi, ((y = l.config) == null ? void 0 : y.upstreamId) || "") : l.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (C = l.config) != null && C.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((M = l.config) == null ? void 0 : M.upstreamId) || "")), w;
1515
+ return l.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((j = l.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{upstreamId}/gi, ((g = l.config) == null ? void 0 : g.upstreamId) || "") : l.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (C = l.config) != null && C.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((M = l.config) == null ? void 0 : M.upstreamId) || "")), w;
1516
1516
  }), {
1517
1517
  fetcher: c,
1518
1518
  fetcherState: S,
1519
1519
  fetcherCacheKey: m
1520
1520
  } = kt(I(() => ({ ...l.config, cacheIdentifier: l.cacheIdentifier })), s), t = () => {
1521
1521
  m.value++;
1522
- }, N = B(null), U = () => {
1522
+ }, N = R(null), U = () => {
1523
1523
  V.value = !0;
1524
- }, d = async (w, L) => {
1525
- const y = w.id;
1526
- if (!await L(y)) {
1524
+ }, d = async (w, j) => {
1525
+ const g = w.id;
1526
+ if (!await j(g)) {
1527
1527
  i("copy:error", {
1528
1528
  entity: w,
1529
1529
  field: "id",
@@ -1534,11 +1534,11 @@ const pe = {
1534
1534
  i("copy:success", {
1535
1535
  entity: w,
1536
1536
  field: "id",
1537
- message: h("targets.copy.success", { val: y })
1537
+ message: h("targets.copy.success", { val: g })
1538
1538
  });
1539
- }, H = async (w, L) => {
1540
- const y = JSON.stringify(w);
1541
- if (!await L(y)) {
1539
+ }, H = async (w, j) => {
1540
+ const g = JSON.stringify(w);
1541
+ if (!await j(g)) {
1542
1542
  i("copy:error", {
1543
1543
  entity: w,
1544
1544
  message: h("targets.errors.copy")
@@ -1551,34 +1551,34 @@ const pe = {
1551
1551
  });
1552
1552
  }, ee = (w) => {
1553
1553
  $.value = w, V.value = !0;
1554
- }, O = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(w), X = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(w), G = B(void 0), b = B(!1), q = B(!1), x = B(""), A = _t(l.config, s.value), g = (w) => {
1555
- G.value = w, b.value = !0;
1554
+ }, O = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(w), X = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(w), G = R(void 0), v = R(!1), T = R(!1), x = R(""), A = _t(l.config, s.value), b = (w) => {
1555
+ G.value = w, v.value = !0;
1556
1556
  }, Q = () => {
1557
- b.value = !1;
1557
+ v.value = !1;
1558
1558
  }, W = async () => {
1559
- var w, L, y;
1559
+ var w, j, g;
1560
1560
  if ((w = G.value) != null && w.id) {
1561
- q.value = !0;
1561
+ T.value = !0;
1562
1562
  try {
1563
- await k.delete(A(G.value.id)), q.value = !1, b.value = !1, m.value++, i("delete:success", G.value);
1563
+ await k.delete(A(G.value.id)), T.value = !1, v.value = !1, m.value++, i("delete:success", G.value);
1564
1564
  } catch (C) {
1565
- x.value = ((y = (L = C.response) == null ? void 0 : L.data) == null ? void 0 : y.message) || C.message || h("targets.errors.delete"), i("error", C);
1565
+ x.value = ((g = (j = C.response) == null ? void 0 : j.data) == null ? void 0 : g.message) || C.message || h("targets.errors.delete"), i("error", C);
1566
1566
  } finally {
1567
- q.value = !1;
1567
+ T.value = !1;
1568
1568
  }
1569
1569
  }
1570
1570
  };
1571
- ye(S, (w) => {
1572
- var L, y, C;
1571
+ pe(S, (w) => {
1572
+ var j, g, C;
1573
1573
  if (w.status === Ct.Error) {
1574
1574
  N.value = {
1575
1575
  title: h("targets.errors.general")
1576
- }, (C = (y = (L = w.error) == null ? void 0 : L.response) == null ? void 0 : y.data) != null && C.message && (N.value.message = w.error.response.data.message), i("error", w.error);
1576
+ }, (C = (g = (j = w.error) == null ? void 0 : j.response) == null ? void 0 : g.data) != null && C.message && (N.value.message = w.error.response.data.message), i("error", w.error);
1577
1577
  return;
1578
1578
  }
1579
1579
  N.value = null;
1580
1580
  });
1581
- const z = B({
1581
+ const z = R({
1582
1582
  ctaText: void 0,
1583
1583
  message: `${h("targets.list.empty_state.description")}${l.config.additionMessageForEmptyState ? ` ${l.config.additionMessageForEmptyState}` : ""}`,
1584
1584
  title: h("targets.title"),
@@ -1603,19 +1603,19 @@ const pe = {
1603
1603
  ...l.config.app === "kongManager" && {
1604
1604
  workspace: l.config.workspace
1605
1605
  }
1606
- })), $ = B(""), V = B(!1), Z = (w) => {
1606
+ })), $ = R(""), V = R(!1), Z = (w) => {
1607
1607
  $.value ? i("update:target", w) : i("create:target", w), se();
1608
1608
  }, se = () => {
1609
1609
  te(), m.value++;
1610
1610
  }, te = () => {
1611
1611
  V.value = !1, $.value = "";
1612
1612
  };
1613
- return (w, L) => {
1614
- const y = K("KButton"), C = K("KDropdownItem"), M = K("KClipboardProvider");
1615
- return T(), oe("div", ma, [
1613
+ return (w, j) => {
1614
+ const g = K("KButton"), C = K("KDropdownItem"), M = K("KClipboardProvider");
1615
+ return q(), oe("div", ma, [
1616
1616
  n(e(St), {
1617
1617
  "cache-identifier": a.cacheIdentifier,
1618
- "disable-sorting": _.value,
1618
+ "disable-sorting": f.value,
1619
1619
  "empty-state-options": z.value,
1620
1620
  "enable-entity-actions": "",
1621
1621
  "error-message": N.value,
@@ -1624,11 +1624,11 @@ const pe = {
1624
1624
  "pagination-type": "offset",
1625
1625
  "preferences-storage-key": "kong-ui-entities-targets-list",
1626
1626
  "table-headers": e(F),
1627
- onEmptyStateCtaClicked: L[1] || (L[1] = () => l.config.createRoute ? void 0 : U()),
1627
+ onEmptyStateCtaClicked: j[1] || (j[1] = () => l.config.createRoute ? void 0 : U()),
1628
1628
  onSort: t
1629
1629
  }, {
1630
1630
  "toolbar-button": r(() => [
1631
- (T(), E(Be, {
1631
+ (q(), E(Be, {
1632
1632
  disabled: !a.useActionOutside,
1633
1633
  to: "#kong-ui-app-page-header-action-button"
1634
1634
  }, [
@@ -1636,16 +1636,16 @@ const pe = {
1636
1636
  "auth-function": () => a.canCreate()
1637
1637
  }, {
1638
1638
  default: r(() => [
1639
- n(y, {
1639
+ n(g, {
1640
1640
  appearance: "primary",
1641
1641
  "data-testid": "toolbar-new-target",
1642
1642
  size: a.useActionOutside ? "medium" : "large",
1643
1643
  to: l.config.createRoute ? l.config.createRoute : void 0,
1644
- onClick: L[0] || (L[0] = () => l.config.createRoute ? void 0 : U())
1644
+ onClick: j[0] || (j[0] = () => l.config.createRoute ? void 0 : U())
1645
1645
  }, {
1646
1646
  default: r(() => [
1647
1647
  n(e(Qe)),
1648
- J(" " + f(e(h)("targets.list.toolbar_actions.new_target")), 1)
1648
+ J(" " + y(e(h)("targets.list.toolbar_actions.new_target")), 1)
1649
1649
  ]),
1650
1650
  _: 1
1651
1651
  }, 8, ["size", "to"])
@@ -1655,7 +1655,7 @@ const pe = {
1655
1655
  ], 8, ["disabled"]))
1656
1656
  ]),
1657
1657
  target: r(({ rowValue: P }) => [
1658
- v("span", fa, f(P), 1)
1658
+ _("span", fa, y(P), 1)
1659
1659
  ]),
1660
1660
  tags: r(({ rowValue: P }) => [
1661
1661
  n(e(Ht), {
@@ -1671,7 +1671,7 @@ const pe = {
1671
1671
  onClick: (o) => d(P, p)
1672
1672
  }, {
1673
1673
  default: r(() => [
1674
- J(f(e(h)("targets.actions.copy_id")), 1)
1674
+ J(y(e(h)("targets.actions.copy_id")), 1)
1675
1675
  ]),
1676
1676
  _: 2
1677
1677
  }, 1032, ["onClick"])
@@ -1685,7 +1685,7 @@ const pe = {
1685
1685
  onClick: (o) => H(P, p)
1686
1686
  }, {
1687
1687
  default: r(() => [
1688
- J(f(e(h)("targets.actions.copy_json")), 1)
1688
+ J(y(e(h)("targets.actions.copy_json")), 1)
1689
1689
  ]),
1690
1690
  _: 2
1691
1691
  }, 1032, ["onClick"])
@@ -1702,7 +1702,7 @@ const pe = {
1702
1702
  onClick: (p) => ee(P.id)
1703
1703
  }, {
1704
1704
  default: r(() => [
1705
- J(f(e(h)("targets.actions.edit")), 1)
1705
+ J(y(e(h)("targets.actions.edit")), 1)
1706
1706
  ]),
1707
1707
  _: 2
1708
1708
  }, 1032, ["onClick"])
@@ -1718,7 +1718,7 @@ const pe = {
1718
1718
  onClick: (p) => i("health-actions:healthy", P)
1719
1719
  }, {
1720
1720
  default: r(() => [
1721
- J(f(e(h)("targets.actions.mark_healthy")), 1)
1721
+ J(y(e(h)("targets.actions.mark_healthy")), 1)
1722
1722
  ]),
1723
1723
  _: 2
1724
1724
  }, 1032, ["onClick"])
@@ -1734,7 +1734,7 @@ const pe = {
1734
1734
  onClick: (p) => i("health-actions:unhealthy", P)
1735
1735
  }, {
1736
1736
  default: r(() => [
1737
- J(f(e(h)("targets.actions.mark_unhealthy")), 1)
1737
+ J(y(e(h)("targets.actions.mark_unhealthy")), 1)
1738
1738
  ]),
1739
1739
  _: 2
1740
1740
  }, 1032, ["onClick"])
@@ -1749,10 +1749,10 @@ const pe = {
1749
1749
  danger: "",
1750
1750
  "data-testid": "action-entity-delete",
1751
1751
  "has-divider": "",
1752
- onClick: (p) => g(P)
1752
+ onClick: (p) => b(P)
1753
1753
  }, {
1754
1754
  default: r(() => [
1755
- J(f(e(h)("targets.actions.delete")), 1)
1755
+ J(y(e(h)("targets.actions.delete")), 1)
1756
1756
  ]),
1757
1757
  _: 2
1758
1758
  }, 1032, ["onClick"])
@@ -1763,13 +1763,13 @@ const pe = {
1763
1763
  _: 1
1764
1764
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
1765
1765
  n(e(Ut), {
1766
- "action-pending": q.value,
1766
+ "action-pending": T.value,
1767
1767
  description: e(h)("targets.delete.description"),
1768
1768
  "entity-type": e(It).Target,
1769
1769
  error: x.value,
1770
1770
  "need-confirm": !1,
1771
1771
  title: e(h)("targets.delete.title"),
1772
- visible: b.value,
1772
+ visible: v.value,
1773
1773
  onCancel: Q,
1774
1774
  onProceed: W
1775
1775
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
@@ -1791,7 +1791,7 @@ const pe = {
1791
1791
  ]);
1792
1792
  };
1793
1793
  }
1794
- }), el = /* @__PURE__ */ me(ya, [["__scopeId", "data-v-4ecc7a36"]]), ga = { key: 1 }, ba = /* @__PURE__ */ he({
1794
+ }), el = /* @__PURE__ */ fe(ya, [["__scopeId", "data-v-4ecc7a36"]]), ga = { key: 1 }, ba = /* @__PURE__ */ he({
1795
1795
  __name: "UpstreamsFormGeneralInfo",
1796
1796
  props: {
1797
1797
  config: {
@@ -1821,11 +1821,11 @@ const pe = {
1821
1821
  }
1822
1822
  },
1823
1823
  emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
1824
- setup(a, { emit: R }) {
1824
+ setup(a, { emit: D }) {
1825
1825
  var Q, W, z, le;
1826
- const { i18nT: i, i18n: { t: l } } = pe.useI18n(), h = a, k = R, {
1827
- debouncedQueryChange: _,
1828
- loading: D,
1826
+ const { i18nT: i, i18n: { t: l } } = me.useI18n(), h = a, k = D, {
1827
+ debouncedQueryChange: f,
1828
+ loading: L,
1829
1829
  loadItems: F,
1830
1830
  results: s,
1831
1831
  allRecords: c
@@ -1837,7 +1837,7 @@ const pe = {
1837
1837
  loading: m,
1838
1838
  loadItems: t,
1839
1839
  results: N
1840
- } = ft(h.config, (le = _e.form[(z = h.config) == null ? void 0 : z.app]) == null ? void 0 : le.getCertificates), U = B(""), d = I(() => {
1840
+ } = ft(h.config, (le = _e.form[(z = h.config) == null ? void 0 : z.app]) == null ? void 0 : le.getCertificates), U = R(""), d = I(() => {
1841
1841
  var $;
1842
1842
  return !!h.name && !(($ = c.value) != null && $.some((V) => V.host === h.name));
1843
1843
  }), H = I(() => {
@@ -1849,37 +1849,37 @@ const pe = {
1849
1849
  }), ee = I(() => {
1850
1850
  var $;
1851
1851
  return ($ = N.value) == null ? void 0 : $.map((V) => ({ label: V.id, value: V.id }));
1852
- }), O = B(""), X = B({ value: "", label: "" }), G = I(() => {
1852
+ }), O = R(""), X = R({ value: "", label: "" }), G = I(() => {
1853
1853
  var $, V;
1854
1854
  return (($ = H.value.find((Z) => Z.value === O.value)) == null ? void 0 : $.label) || ((V = X.value) == null ? void 0 : V.label);
1855
- }), b = ($) => {
1856
- U.value = $, _($);
1857
- }, q = ($) => {
1855
+ }), v = ($) => {
1856
+ U.value = $, f($);
1857
+ }, T = ($) => {
1858
1858
  X.value = $;
1859
1859
  }, x = () => {
1860
1860
  X.value = { value: "", label: "" };
1861
1861
  }, A = ($) => {
1862
1862
  O.value = $, k("update:name", G.value);
1863
- }, g = B(!1);
1863
+ }, b = R(!1);
1864
1864
  return Le(async () => {
1865
1865
  var $, V;
1866
1866
  try {
1867
- g.value = !0, await F(), h.name && (O.value = ((V = ($ = H.value.find((Z) => Z.label === h.name)) == null ? void 0 : $.value) == null ? void 0 : V.toString()) || h.name), await t();
1867
+ b.value = !0, await F(), h.name && (O.value = ((V = ($ = H.value.find((Z) => Z.label === h.name)) == null ? void 0 : $.value) == null ? void 0 : V.toString()) || h.name), await t();
1868
1868
  } finally {
1869
- g.value = !1;
1869
+ b.value = !1;
1870
1870
  }
1871
1871
  }), ($, V) => {
1872
1872
  const Z = K("KSkeleton"), se = K("KSelect"), te = K("KInput");
1873
- return T(), E(e(Ue), {
1873
+ return q(), E(e(Ue), {
1874
1874
  class: "kong-ui-entities-upstreams-general-info",
1875
1875
  description: e(l)("upstreams.form.general_info.help"),
1876
1876
  title: e(l)("upstreams.form.general_info.title")
1877
1877
  }, {
1878
1878
  default: r(() => [
1879
- g.value ? (T(), E(Z, {
1879
+ b.value ? (q(), E(Z, {
1880
1880
  key: 0,
1881
1881
  type: "form"
1882
- })) : (T(), oe("div", ga, [
1882
+ })) : (q(), oe("div", ga, [
1883
1883
  n(se, {
1884
1884
  class: "name-select margin-bottom-6",
1885
1885
  clearable: "",
@@ -1890,15 +1890,15 @@ const pe = {
1890
1890
  items: H.value,
1891
1891
  label: e(l)("upstreams.form.fields.name.label"),
1892
1892
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } },
1893
- loading: e(D),
1893
+ loading: e(L),
1894
1894
  "model-value": O.value,
1895
1895
  placeholder: e(l)("upstreams.form.fields.name.placeholder"),
1896
1896
  readonly: a.readonly,
1897
1897
  required: "",
1898
1898
  width: "100%",
1899
- onItemAdded: q,
1899
+ onItemAdded: T,
1900
1900
  onItemRemoved: x,
1901
- onQueryChange: b,
1901
+ onQueryChange: v,
1902
1902
  "onUpdate:modelValue": A
1903
1903
  }, {
1904
1904
  "label-tooltip": r(() => [
@@ -1907,7 +1907,7 @@ const pe = {
1907
1907
  scope: "global"
1908
1908
  }, {
1909
1909
  host: r(() => [
1910
- v("code", null, f(e(l)("upstreams.form.fields.name.host")), 1)
1910
+ _("code", null, y(e(l)("upstreams.form.fields.name.host")), 1)
1911
1911
  ]),
1912
1912
  _: 1
1913
1913
  })
@@ -1965,7 +1965,7 @@ const pe = {
1965
1965
  }, 8, ["description", "title"]);
1966
1966
  };
1967
1967
  }
1968
- }), va = /* @__PURE__ */ me(ba, [["__scopeId", "data-v-1a71740c"]]), Ke = {
1968
+ }), va = /* @__PURE__ */ fe(ba, [["__scopeId", "data-v-1a71740c"]]), Ke = {
1969
1969
  upstreamObject: "https://developer.konghq.com/gateway/entities/upstream/",
1970
1970
  loadBalancing: "https://developer.konghq.com/gateway/traffic-control/load-balancing-reference/"
1971
1971
  }, ka = { class: "fields-group-title" }, _a = { class: "fields-group-text" }, Ca = { class: "fields-group-title" }, Sa = { class: "fields-group-text" }, Ha = /* @__PURE__ */ he({
@@ -2039,8 +2039,8 @@ const pe = {
2039
2039
  }
2040
2040
  },
2041
2041
  emits: ["update:algorithm", "update:sticky-sessions-cookie", "update:sticky-sessions-cookie-path", "update:slots", "update:hash-on", "update:hash-fallback", "update:hash-on-header", "update:hash-on-cookie", "update:hash-on-cookie-path", "update:hash-on-query-argument", "update:hash-on-uri-capture", "update:hash-fallback-header", "update:hash-fallback-query-argument", "update:hash-fallback-uri-capture"],
2042
- setup(a, { emit: R }) {
2043
- const { i18nT: i, i18n: { t: l } } = pe.useI18n(), { inRange: h } = Ve(), k = a, _ = R, D = B([
2042
+ setup(a, { emit: D }) {
2043
+ const { i18nT: i, i18n: { t: l } } = me.useI18n(), { inRange: h } = Ve(), k = a, f = D, L = R([
2044
2044
  {
2045
2045
  label: l("upstreams.form.algorithms.round_robin_label"),
2046
2046
  value: "round-robin",
@@ -2066,7 +2066,7 @@ const pe = {
2066
2066
  value: "sticky-sessions",
2067
2067
  selected: !1
2068
2068
  }] : []
2069
- ]), F = B([
2069
+ ]), F = R([
2070
2070
  {
2071
2071
  label: l("upstreams.form.hash_labels.none"),
2072
2072
  value: "none",
@@ -2108,27 +2108,29 @@ const pe = {
2108
2108
  selected: !1
2109
2109
  }
2110
2110
  ]);
2111
- ye(() => k.hashOn, (S, m) => {
2112
- m === "header" && S !== m && _("update:hash-on-header", ""), m === "cookie" && S !== m && (_("update:hash-on-cookie", ""), _("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && _("update:hash-on-query-argument", ""), m === "uri_capture" && S !== m && _("update:hash-on-uri-capture", ""), (S === "cookie" || S === "none") && (_("update:hash-fallback", "none"), _("update:hash-fallback-header", ""), _("update:hash-fallback-query-argument", ""), _("update:hash-fallback-uri-capture", ""));
2113
- }), ye(() => k.hashFallback, (S, m) => {
2114
- m === "header" && S !== m && _("update:hash-fallback-header", ""), m === "cookie" && S !== m && (_("update:hash-on-cookie", ""), _("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && _("update:hash-fallback-query-argument", ""), m === "uri_capture" && S !== m && _("update:hash-fallback-uri-capture", "");
2115
- });
2111
+ pe(() => k.hashOn, (S, m) => {
2112
+ m === "header" && S !== m && f("update:hash-on-header", ""), m === "cookie" && S !== m && (f("update:hash-on-cookie", ""), f("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && f("update:hash-on-query-argument", ""), m === "uri_capture" && S !== m && f("update:hash-on-uri-capture", ""), (S === "cookie" || S === "none") && (f("update:hash-fallback", "none"), f("update:hash-fallback-header", ""), f("update:hash-fallback-query-argument", ""), f("update:hash-fallback-uri-capture", ""));
2113
+ }), pe(() => k.hashFallback, (S, m) => {
2114
+ m === "header" && S !== m && f("update:hash-fallback-header", ""), m === "cookie" && S !== m && (f("update:hash-on-cookie", ""), f("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && f("update:hash-fallback-query-argument", ""), m === "uri_capture" && S !== m && f("update:hash-fallback-uri-capture", "");
2115
+ }), pe(() => k.algorithm, (S) => {
2116
+ S === "sticky-sessions" && (f("update:slots", "10000"), f("update:hash-on", "none"), f("update:hash-fallback", "none"), f("update:hash-on-header", ""), f("update:hash-on-cookie", ""), f("update:hash-on-cookie-path", "/"), f("update:hash-on-query-argument", ""), f("update:hash-on-uri-capture", ""), f("update:hash-fallback-header", ""), f("update:hash-fallback-query-argument", ""), f("update:hash-fallback-uri-capture", ""));
2117
+ }, { immediate: !0 });
2116
2118
  const s = I(() => k.hashOn === "cookie" || k.hashOn === "none"), c = I(() => k.slots ? h(k.slots, Re, De) ? "" : l("upstreams.form.errors.in_range") : "");
2117
2119
  return (S, m) => {
2118
2120
  const t = K("KExternalLink"), N = K("KSelect"), U = K("KInput"), d = K("KCard");
2119
- return T(), E(e(Ue), {
2121
+ return q(), E(e(Ue), {
2120
2122
  class: "kong-ui-entities-upstreams-load-balancing",
2121
2123
  title: e(l)("upstreams.form.load_balancing.title")
2122
2124
  }, {
2123
2125
  description: r(() => [
2124
- v("p", null, [
2125
- J(f(e(l)("upstreams.form.load_balancing.help")) + " ", 1),
2126
+ _("p", null, [
2127
+ J(y(e(l)("upstreams.form.load_balancing.help")) + " ", 1),
2126
2128
  n(t, {
2127
2129
  "hide-icon": "",
2128
2130
  href: e(Ke).upstreamObject
2129
2131
  }, {
2130
2132
  default: r(() => [
2131
- J(f(e(l)("upstreams.form.buttons.view_documentation")), 1)
2133
+ J(y(e(l)("upstreams.form.buttons.view_documentation")), 1)
2132
2134
  ]),
2133
2135
  _: 1
2134
2136
  }, 8, ["href"])
@@ -2137,14 +2139,14 @@ const pe = {
2137
2139
  default: r(() => [
2138
2140
  n(N, {
2139
2141
  class: "algorithm-select",
2140
- items: D.value,
2142
+ items: L.value,
2141
2143
  label: e(l)("upstreams.form.fields.algorithm.label"),
2142
2144
  "model-value": a.algorithm,
2143
2145
  readonly: a.readonly,
2144
2146
  width: "100%",
2145
- "onUpdate:modelValue": m[0] || (m[0] = (H) => _("update:algorithm", H))
2147
+ "onUpdate:modelValue": m[0] || (m[0] = (H) => f("update:algorithm", H))
2146
2148
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2147
- a.algorithm === "sticky-sessions" ? (T(), oe(Se, { key: 0 }, [
2149
+ a.algorithm === "sticky-sessions" ? (q(), oe(Se, { key: 0 }, [
2148
2150
  n(U, {
2149
2151
  autocomplete: "off",
2150
2152
  "data-testid": "upstreams-form-sticky-sessions-cookie",
@@ -2157,7 +2159,7 @@ const pe = {
2157
2159
  readonly: a.readonly,
2158
2160
  required: "",
2159
2161
  type: "text",
2160
- "onUpdate:modelValue": m[1] || (m[1] = (H) => _("update:sticky-sessions-cookie", H))
2162
+ "onUpdate:modelValue": m[1] || (m[1] = (H) => f("update:sticky-sessions-cookie", H))
2161
2163
  }, null, 8, ["label", "label-attributes", "model-value", "readonly"]),
2162
2164
  n(U, {
2163
2165
  autocomplete: "off",
@@ -2171,10 +2173,11 @@ const pe = {
2171
2173
  readonly: a.readonly,
2172
2174
  required: "",
2173
2175
  type: "text",
2174
- "onUpdate:modelValue": m[2] || (m[2] = (H) => _("update:sticky-sessions-cookie-path", H))
2176
+ "onUpdate:modelValue": m[2] || (m[2] = (H) => f("update:sticky-sessions-cookie-path", H))
2175
2177
  }, null, 8, ["label", "label-attributes", "model-value", "readonly"])
2176
- ], 64)) : j("", !0),
2177
- n(U, {
2178
+ ], 64)) : B("", !0),
2179
+ a.algorithm !== "sticky-sessions" ? (q(), E(U, {
2180
+ key: 1,
2178
2181
  autocomplete: "off",
2179
2182
  "data-testid": "upstreams-form-slots",
2180
2183
  error: !!c.value,
@@ -2186,12 +2189,12 @@ const pe = {
2186
2189
  "model-value": a.slots,
2187
2190
  readonly: a.readonly,
2188
2191
  type: "number",
2189
- "onUpdate:modelValue": m[3] || (m[3] = (H) => _("update:slots", H))
2190
- }, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
2191
- n(d, null, {
2192
+ "onUpdate:modelValue": m[3] || (m[3] = (H) => f("update:slots", H))
2193
+ }, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"])) : B("", !0),
2194
+ a.algorithm !== "sticky-sessions" ? (q(), E(d, { key: 2 }, {
2192
2195
  default: r(() => [
2193
- v("h5", ka, f(e(l)("upstreams.form.fields.hash_on.label")), 1),
2194
- v("p", _a, f(e(l)("upstreams.form.fields.hash_on.help")), 1),
2196
+ _("h5", ka, y(e(l)("upstreams.form.fields.hash_on.label")), 1),
2197
+ _("p", _a, y(e(l)("upstreams.form.fields.hash_on.help")), 1),
2195
2198
  n(N, {
2196
2199
  class: "hash-on-select",
2197
2200
  items: F.value,
@@ -2199,9 +2202,9 @@ const pe = {
2199
2202
  "model-value": a.hashOn,
2200
2203
  readonly: a.readonly,
2201
2204
  width: "100%",
2202
- "onUpdate:modelValue": m[4] || (m[4] = (H) => _("update:hash-on", H))
2205
+ "onUpdate:modelValue": m[4] || (m[4] = (H) => f("update:hash-on", H))
2203
2206
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2204
- a.hashOn === "header" ? (T(), E(U, {
2207
+ a.hashOn === "header" ? (q(), E(U, {
2205
2208
  key: 0,
2206
2209
  autocomplete: "off",
2207
2210
  class: "margin-top-6",
@@ -2211,9 +2214,9 @@ const pe = {
2211
2214
  readonly: a.readonly,
2212
2215
  required: "",
2213
2216
  type: "text",
2214
- "onUpdate:modelValue": m[5] || (m[5] = (H) => _("update:hash-on-header", H))
2215
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0),
2216
- a.hashOn === "cookie" ? (T(), oe(Se, { key: 1 }, [
2217
+ "onUpdate:modelValue": m[5] || (m[5] = (H) => f("update:hash-on-header", H))
2218
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0),
2219
+ a.hashOn === "cookie" ? (q(), oe(Se, { key: 1 }, [
2217
2220
  n(U, {
2218
2221
  autocomplete: "off",
2219
2222
  class: "margin-top-6",
@@ -2223,7 +2226,7 @@ const pe = {
2223
2226
  readonly: a.readonly,
2224
2227
  required: "",
2225
2228
  type: "text",
2226
- "onUpdate:modelValue": m[6] || (m[6] = (H) => _("update:hash-on-cookie", H))
2229
+ "onUpdate:modelValue": m[6] || (m[6] = (H) => f("update:hash-on-cookie", H))
2227
2230
  }, null, 8, ["label", "model-value", "readonly"]),
2228
2231
  n(U, {
2229
2232
  autocomplete: "off",
@@ -2234,10 +2237,10 @@ const pe = {
2234
2237
  readonly: a.readonly,
2235
2238
  required: "",
2236
2239
  type: "text",
2237
- "onUpdate:modelValue": m[7] || (m[7] = (H) => _("update:hash-on-cookie-path", H))
2240
+ "onUpdate:modelValue": m[7] || (m[7] = (H) => f("update:hash-on-cookie-path", H))
2238
2241
  }, null, 8, ["label", "model-value", "readonly"])
2239
- ], 64)) : j("", !0),
2240
- a.hashOn === "query_arg" ? (T(), E(U, {
2242
+ ], 64)) : B("", !0),
2243
+ a.hashOn === "query_arg" ? (q(), E(U, {
2241
2244
  key: 2,
2242
2245
  autocomplete: "off",
2243
2246
  class: "margin-top-6",
@@ -2247,9 +2250,9 @@ const pe = {
2247
2250
  readonly: a.readonly,
2248
2251
  required: "",
2249
2252
  type: "text",
2250
- "onUpdate:modelValue": m[8] || (m[8] = (H) => _("update:hash-on-query-argument", H))
2251
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0),
2252
- a.hashOn === "uri_capture" ? (T(), E(U, {
2253
+ "onUpdate:modelValue": m[8] || (m[8] = (H) => f("update:hash-on-query-argument", H))
2254
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0),
2255
+ a.hashOn === "uri_capture" ? (q(), E(U, {
2253
2256
  key: 3,
2254
2257
  autocomplete: "off",
2255
2258
  class: "margin-top-6",
@@ -2259,15 +2262,15 @@ const pe = {
2259
2262
  readonly: a.readonly,
2260
2263
  required: "",
2261
2264
  type: "text",
2262
- "onUpdate:modelValue": m[9] || (m[9] = (H) => _("update:hash-on-uri-capture", H))
2263
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0)
2265
+ "onUpdate:modelValue": m[9] || (m[9] = (H) => f("update:hash-on-uri-capture", H))
2266
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0)
2264
2267
  ]),
2265
2268
  _: 1
2266
- }),
2267
- n(d, null, {
2269
+ })) : B("", !0),
2270
+ a.algorithm !== "sticky-sessions" ? (q(), E(d, { key: 3 }, {
2268
2271
  default: r(() => [
2269
- v("h5", Ca, f(e(l)("upstreams.form.fields.hash_fallback.label")), 1),
2270
- v("p", Sa, f(e(l)("upstreams.form.fields.hash_fallback.help")), 1),
2272
+ _("h5", Ca, y(e(l)("upstreams.form.fields.hash_fallback.label")), 1),
2273
+ _("p", Sa, y(e(l)("upstreams.form.fields.hash_fallback.help")), 1),
2271
2274
  n(N, {
2272
2275
  class: "hash-fallback-select",
2273
2276
  disabled: s.value,
@@ -2277,7 +2280,7 @@ const pe = {
2277
2280
  "model-value": a.hashFallback,
2278
2281
  readonly: a.readonly,
2279
2282
  width: "100%",
2280
- "onUpdate:modelValue": m[10] || (m[10] = (H) => _("update:hash-fallback", H))
2283
+ "onUpdate:modelValue": m[10] || (m[10] = (H) => f("update:hash-fallback", H))
2281
2284
  }, {
2282
2285
  "label-tooltip": r(() => [
2283
2286
  n(e(i), {
@@ -2285,17 +2288,17 @@ const pe = {
2285
2288
  scope: "global"
2286
2289
  }, {
2287
2290
  hash_on: r(() => [
2288
- v("code", null, f(e(l)("upstreams.form.fields.hash_fallback.hash_on")), 1)
2291
+ _("code", null, y(e(l)("upstreams.form.fields.hash_fallback.hash_on")), 1)
2289
2292
  ]),
2290
2293
  cookie: r(() => [
2291
- v("code", null, f(e(l)("upstreams.form.fields.hash_fallback.cookie")), 1)
2294
+ _("code", null, y(e(l)("upstreams.form.fields.hash_fallback.cookie")), 1)
2292
2295
  ]),
2293
2296
  _: 1
2294
2297
  })
2295
2298
  ]),
2296
2299
  _: 1
2297
2300
  }, 8, ["disabled", "items", "label", "model-value", "readonly"]),
2298
- a.hashFallback === "header" ? (T(), E(U, {
2301
+ a.hashFallback === "header" ? (q(), E(U, {
2299
2302
  key: 0,
2300
2303
  autocomplete: "off",
2301
2304
  class: "margin-top-6",
@@ -2305,9 +2308,9 @@ const pe = {
2305
2308
  readonly: a.readonly,
2306
2309
  required: "",
2307
2310
  type: "text",
2308
- "onUpdate:modelValue": m[11] || (m[11] = (H) => _("update:hash-fallback-header", H))
2309
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0),
2310
- a.hashFallback === "cookie" ? (T(), oe(Se, { key: 1 }, [
2311
+ "onUpdate:modelValue": m[11] || (m[11] = (H) => f("update:hash-fallback-header", H))
2312
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0),
2313
+ a.hashFallback === "cookie" ? (q(), oe(Se, { key: 1 }, [
2311
2314
  n(U, {
2312
2315
  autocomplete: "off",
2313
2316
  class: "margin-top-6",
@@ -2317,7 +2320,7 @@ const pe = {
2317
2320
  readonly: a.readonly,
2318
2321
  required: "",
2319
2322
  type: "text",
2320
- "onUpdate:modelValue": m[12] || (m[12] = (H) => _("update:hash-on-cookie", H))
2323
+ "onUpdate:modelValue": m[12] || (m[12] = (H) => f("update:hash-on-cookie", H))
2321
2324
  }, null, 8, ["label", "model-value", "readonly"]),
2322
2325
  n(U, {
2323
2326
  autocomplete: "off",
@@ -2328,10 +2331,10 @@ const pe = {
2328
2331
  readonly: a.readonly,
2329
2332
  required: "",
2330
2333
  type: "text",
2331
- "onUpdate:modelValue": m[13] || (m[13] = (H) => _("update:hash-on-cookie-path", H))
2334
+ "onUpdate:modelValue": m[13] || (m[13] = (H) => f("update:hash-on-cookie-path", H))
2332
2335
  }, null, 8, ["label", "model-value", "readonly"])
2333
- ], 64)) : j("", !0),
2334
- a.hashFallback === "query_arg" ? (T(), E(U, {
2336
+ ], 64)) : B("", !0),
2337
+ a.hashFallback === "query_arg" ? (q(), E(U, {
2335
2338
  key: 2,
2336
2339
  autocomplete: "off",
2337
2340
  class: "margin-top-6",
@@ -2341,9 +2344,9 @@ const pe = {
2341
2344
  readonly: a.readonly,
2342
2345
  required: "",
2343
2346
  type: "text",
2344
- "onUpdate:modelValue": m[14] || (m[14] = (H) => _("update:hash-fallback-query-argument", H))
2345
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0),
2346
- a.hashFallback === "uri_capture" ? (T(), E(U, {
2347
+ "onUpdate:modelValue": m[14] || (m[14] = (H) => f("update:hash-fallback-query-argument", H))
2348
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0),
2349
+ a.hashFallback === "uri_capture" ? (q(), E(U, {
2347
2350
  key: 3,
2348
2351
  autocomplete: "off",
2349
2352
  class: "margin-top-6",
@@ -2353,17 +2356,17 @@ const pe = {
2353
2356
  readonly: a.readonly,
2354
2357
  required: "",
2355
2358
  type: "text",
2356
- "onUpdate:modelValue": m[15] || (m[15] = (H) => _("update:hash-fallback-uri-capture", H))
2357
- }, null, 8, ["label", "model-value", "readonly"])) : j("", !0)
2359
+ "onUpdate:modelValue": m[15] || (m[15] = (H) => f("update:hash-fallback-uri-capture", H))
2360
+ }, null, 8, ["label", "model-value", "readonly"])) : B("", !0)
2358
2361
  ]),
2359
2362
  _: 1
2360
- })
2363
+ })) : B("", !0)
2361
2364
  ]),
2362
2365
  _: 1
2363
2366
  }, 8, ["title"]);
2364
2367
  };
2365
2368
  }
2366
- }), Ua = /* @__PURE__ */ me(Ha, [["__scopeId", "data-v-e04d4309"]]), Ia = { class: "fields-group-title" }, wa = { class: "fields-group-text" }, qa = { class: "fields-group-title" }, Ta = { class: "fields-group-text" }, Fa = /* @__PURE__ */ he({
2369
+ }), Ua = /* @__PURE__ */ fe(Ha, [["__scopeId", "data-v-656aa4f4"]]), Ia = { class: "fields-group-title" }, wa = { class: "fields-group-text" }, qa = { class: "fields-group-title" }, Ta = { class: "fields-group-text" }, Fa = /* @__PURE__ */ he({
2367
2370
  __name: "UpstreamsFormHealthChecks",
2368
2371
  props: {
2369
2372
  activeHealthSwitch: {
@@ -2385,23 +2388,23 @@ const pe = {
2385
2388
  }
2386
2389
  },
2387
2390
  emits: ["update:active-health-switch", "update:passive-health-switch", "update:healthchecks-threshold"],
2388
- setup(a, { emit: R }) {
2389
- const { i18n: { t: i } } = pe.useI18n(), l = R;
2391
+ setup(a, { emit: D }) {
2392
+ const { i18n: { t: i } } = me.useI18n(), l = D;
2390
2393
  return (h, k) => {
2391
- const _ = K("KExternalLink"), D = K("KInputSwitch"), F = K("KCard"), s = K("KInput");
2392
- return T(), E(e(Ue), {
2394
+ const f = K("KExternalLink"), L = K("KInputSwitch"), F = K("KCard"), s = K("KInput");
2395
+ return q(), E(e(Ue), {
2393
2396
  class: "kong-ui-entities-upstreams-healthchecks",
2394
2397
  title: e(i)("upstreams.form.health_check.title")
2395
2398
  }, {
2396
2399
  description: r(() => [
2397
- v("p", null, [
2398
- J(f(e(i)("upstreams.form.health_check.help")) + " ", 1),
2399
- n(_, {
2400
+ _("p", null, [
2401
+ J(y(e(i)("upstreams.form.health_check.help")) + " ", 1),
2402
+ n(f, {
2400
2403
  "hide-icon": "",
2401
2404
  href: e(Ke).loadBalancing
2402
2405
  }, {
2403
2406
  default: r(() => [
2404
- J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
2407
+ J(y(e(i)("upstreams.form.buttons.view_documentation")), 1)
2405
2408
  ]),
2406
2409
  _: 1
2407
2410
  }, 8, ["href"])
@@ -2410,9 +2413,9 @@ const pe = {
2410
2413
  default: r(() => [
2411
2414
  n(F, null, {
2412
2415
  default: r(() => [
2413
- v("h5", Ia, f(e(i)("upstreams.form.fields.active_health_checks.label")), 1),
2414
- v("p", wa, f(e(i)("upstreams.form.fields.active_health_checks.help")), 1),
2415
- n(D, {
2416
+ _("h5", Ia, y(e(i)("upstreams.form.fields.active_health_checks.label")), 1),
2417
+ _("p", wa, y(e(i)("upstreams.form.fields.active_health_checks.help")), 1),
2418
+ n(L, {
2416
2419
  class: "active-health-switch",
2417
2420
  "data-testid": "active-health-switch",
2418
2421
  disabled: a.readonly,
@@ -2424,9 +2427,9 @@ const pe = {
2424
2427
  }),
2425
2428
  n(F, null, {
2426
2429
  default: r(() => [
2427
- v("h5", qa, f(e(i)("upstreams.form.fields.passive_health_checks.label")), 1),
2428
- v("p", Ta, f(e(i)("upstreams.form.fields.passive_health_checks.help")), 1),
2429
- n(D, {
2430
+ _("h5", qa, y(e(i)("upstreams.form.fields.passive_health_checks.label")), 1),
2431
+ _("p", Ta, y(e(i)("upstreams.form.fields.passive_health_checks.help")), 1),
2432
+ n(L, {
2430
2433
  class: "passive-health-switch",
2431
2434
  "data-testid": "passive-health-switch",
2432
2435
  disabled: a.readonly,
@@ -2452,7 +2455,7 @@ const pe = {
2452
2455
  }, 8, ["title"]);
2453
2456
  };
2454
2457
  }
2455
- }), xa = /* @__PURE__ */ me(Fa, [["__scopeId", "data-v-c2ff95ff"]]), Oa = { key: 2 }, $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Aa = { class: "fields-group-title" }, Ma = { class: "fields-group-text" }, Va = /* @__PURE__ */ he({
2458
+ }), xa = /* @__PURE__ */ fe(Fa, [["__scopeId", "data-v-c2ff95ff"]]), Oa = { key: 2 }, $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Aa = { class: "fields-group-title" }, Ma = { class: "fields-group-text" }, Va = /* @__PURE__ */ he({
2456
2459
  __name: "UpstreamsFormActiveHealthCheck",
2457
2460
  props: {
2458
2461
  config: {
@@ -2526,8 +2529,8 @@ const pe = {
2526
2529
  }
2527
2530
  },
2528
2531
  emits: ["update:type", "update:http-path", "update:timeout", "update:concurrency", "update:https-sni", "update:verify-ssl", "update:headers", "update:healthy-interval", "update:healthy-successes", "update:healthy-http-statuses", "update:unhealthy-interval", "update:unhealthy-http-failures", "update:unhealthy-tcp-failures", "update:unhealthy-http-statuses", "update:unhealthy-timeouts"],
2529
- setup(a, { emit: R }) {
2530
- const { i18n: { t: i } } = pe.useI18n(), { objectsAreEqual: l } = Ve(), h = a, k = R, _ = B([
2532
+ setup(a, { emit: D }) {
2533
+ const { i18n: { t: i } } = me.useI18n(), { objectsAreEqual: l } = Ve(), h = a, k = D, f = R([
2531
2534
  {
2532
2535
  label: i("upstreams.form.healthcheck_type_labels.http"),
2533
2536
  value: "http",
@@ -2553,16 +2556,16 @@ const pe = {
2553
2556
  value: "grpcs",
2554
2557
  selected: !1
2555
2558
  }
2556
- ]), D = I(() => h.type === "https" || h.type === "grpcs"), F = I(() => h.type === "tcp"), {
2559
+ ]), L = I(() => h.type === "https" || h.type === "grpcs"), F = I(() => h.type === "tcp"), {
2557
2560
  trackNewItems: s
2558
2561
  } = He({ replaceId: !0 }), {
2559
2562
  trackNewItems: c
2560
2563
  } = He({ replaceId: !0 });
2561
- ye(() => h.type, (U, d) => {
2564
+ pe(() => h.type, (U, d) => {
2562
2565
  d === "tcp" && U !== d && k("update:unhealthy-tcp-failures", "5"), (d === "https" || d === "grpcs") && U !== d && (k("update:https-sni", ""), k("update:verify-ssl", !1)), d !== "tcp" && U === "tcp" && (k("update:http-path", "/"), k("update:healthy-http-statuses", Oe), k("update:unhealthy-http-statuses", Pe));
2563
2566
  });
2564
- const S = B([{ key: "", values: "" }]);
2565
- ye(() => h.headers, (U) => {
2567
+ const S = R([{ key: "", values: "" }]);
2568
+ pe(() => h.headers, (U) => {
2566
2569
  l(S.value, U) || (S.value = [...U]);
2567
2570
  }, {
2568
2571
  immediate: !0,
@@ -2576,20 +2579,20 @@ const pe = {
2576
2579
  U === 0 && S.value.length === 1 ? S.value[0] = { key: "", values: "" } : S.value.splice(U, 1), m();
2577
2580
  };
2578
2581
  return (U, d) => {
2579
- const H = K("KExternalLink"), ee = K("KSelect"), O = K("KInput"), X = K("KCheckbox"), G = K("KLabel"), b = K("KButton"), q = K("KMultiselect"), x = K("KCard");
2580
- return T(), E(e(Ue), {
2582
+ const H = K("KExternalLink"), ee = K("KSelect"), O = K("KInput"), X = K("KCheckbox"), G = K("KLabel"), v = K("KButton"), T = K("KMultiselect"), x = K("KCard");
2583
+ return q(), E(e(Ue), {
2581
2584
  class: "kong-ui-entities-upstreams-active-healthcheck",
2582
2585
  title: e(i)("upstreams.form.active_health_check.title")
2583
2586
  }, {
2584
2587
  description: r(() => [
2585
- v("p", null, [
2586
- J(f(e(i)("upstreams.form.active_health_check.help")) + " ", 1),
2588
+ _("p", null, [
2589
+ J(y(e(i)("upstreams.form.active_health_check.help")) + " ", 1),
2587
2590
  n(H, {
2588
2591
  "hide-icon": "",
2589
2592
  href: e(Ke).upstreamObject
2590
2593
  }, {
2591
2594
  default: r(() => [
2592
- J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
2595
+ J(y(e(i)("upstreams.form.buttons.view_documentation")), 1)
2593
2596
  ]),
2594
2597
  _: 1
2595
2598
  }, 8, ["href"])
@@ -2600,14 +2603,14 @@ const pe = {
2600
2603
  return [
2601
2604
  n(ee, {
2602
2605
  class: "active-healthcheck-type-select",
2603
- items: _.value,
2606
+ items: f.value,
2604
2607
  label: e(i)("upstreams.form.fields.active_healthcheck_type.label"),
2605
2608
  "model-value": a.type,
2606
2609
  readonly: a.readonly,
2607
2610
  width: "100%",
2608
- "onUpdate:modelValue": d[0] || (d[0] = (g) => k("update:type", g))
2611
+ "onUpdate:modelValue": d[0] || (d[0] = (b) => k("update:type", b))
2609
2612
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2610
- F.value ? j("", !0) : (T(), E(O, {
2613
+ F.value ? B("", !0) : (q(), E(O, {
2611
2614
  key: 0,
2612
2615
  autocomplete: "off",
2613
2616
  "data-testid": "active-healthcheck-http-path",
@@ -2615,7 +2618,7 @@ const pe = {
2615
2618
  "model-value": a.httpPath,
2616
2619
  readonly: a.readonly,
2617
2620
  type: "text",
2618
- "onUpdate:modelValue": d[1] || (d[1] = (g) => k("update:http-path", g))
2621
+ "onUpdate:modelValue": d[1] || (d[1] = (b) => k("update:http-path", b))
2619
2622
  }, null, 8, ["label", "model-value", "readonly"])),
2620
2623
  n(O, {
2621
2624
  autocomplete: "off",
@@ -2626,7 +2629,7 @@ const pe = {
2626
2629
  "model-value": a.timeout,
2627
2630
  readonly: a.readonly,
2628
2631
  type: "number",
2629
- "onUpdate:modelValue": d[2] || (d[2] = (g) => k("update:timeout", g))
2632
+ "onUpdate:modelValue": d[2] || (d[2] = (b) => k("update:timeout", b))
2630
2633
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2631
2634
  n(O, {
2632
2635
  autocomplete: "off",
@@ -2637,9 +2640,9 @@ const pe = {
2637
2640
  "model-value": a.concurrency,
2638
2641
  readonly: a.readonly,
2639
2642
  type: "number",
2640
- "onUpdate:modelValue": d[3] || (d[3] = (g) => k("update:concurrency", g))
2643
+ "onUpdate:modelValue": d[3] || (d[3] = (b) => k("update:concurrency", b))
2641
2644
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2642
- D.value ? (T(), oe(Se, { key: 1 }, [
2645
+ L.value ? (q(), oe(Se, { key: 1 }, [
2643
2646
  n(O, {
2644
2647
  autocomplete: "off",
2645
2648
  class: "margin-bottom-6",
@@ -2648,29 +2651,29 @@ const pe = {
2648
2651
  "model-value": a.httpsSni,
2649
2652
  readonly: a.readonly,
2650
2653
  type: "text",
2651
- "onUpdate:modelValue": d[4] || (d[4] = (g) => k("update:https-sni", g))
2654
+ "onUpdate:modelValue": d[4] || (d[4] = (b) => k("update:https-sni", b))
2652
2655
  }, null, 8, ["label", "model-value", "readonly"]),
2653
2656
  n(X, {
2654
2657
  "data-testid": "active-healthcheck-verify-ssl",
2655
2658
  disabled: a.readonly,
2656
2659
  label: e(i)("upstreams.form.fields.verify_ssl.label"),
2657
2660
  "model-value": a.verifySsl,
2658
- "onUpdate:modelValue": d[5] || (d[5] = (g) => k("update:verify-ssl", g))
2661
+ "onUpdate:modelValue": d[5] || (d[5] = (b) => k("update:verify-ssl", b))
2659
2662
  }, null, 8, ["disabled", "label", "model-value"])
2660
- ], 64)) : j("", !0),
2661
- ((A = a.config) == null ? void 0 : A.app) === "kongManager" ? (T(), oe("div", Oa, [
2663
+ ], 64)) : B("", !0),
2664
+ ((A = a.config) == null ? void 0 : A.app) === "kongManager" ? (q(), oe("div", Oa, [
2662
2665
  n(G, {
2663
2666
  info: e(i)("upstreams.form.fields.headers.tooltip_active"),
2664
2667
  "tooltip-attributes": { maxWidth: "250px" }
2665
2668
  }, {
2666
2669
  default: r(() => [
2667
- J(f(e(i)("upstreams.form.fields.headers.label")), 1)
2670
+ J(y(e(i)("upstreams.form.fields.headers.label")), 1)
2668
2671
  ]),
2669
2672
  _: 1
2670
2673
  }, 8, ["info"]),
2671
- v("div", null, [
2672
- (T(!0), oe(Se, null, $t(S.value, (g, Q) => (T(), oe("div", {
2673
- key: `${g.header}_${Q}`,
2674
+ _("div", null, [
2675
+ (q(!0), oe(Se, null, $t(S.value, (b, Q) => (q(), oe("div", {
2676
+ key: `${b.header}_${Q}`,
2674
2677
  class: Pt(["headers-row", { "margin-top-6": Q > 0 }])
2675
2678
  }, [
2676
2679
  n(O, {
@@ -2691,7 +2694,7 @@ const pe = {
2691
2694
  type: "text",
2692
2695
  onBlur: m
2693
2696
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
2694
- n(b, {
2697
+ n(v, {
2695
2698
  appearance: "tertiary",
2696
2699
  class: "btn-remove",
2697
2700
  "data-testid": "btn-remove-header",
@@ -2707,7 +2710,7 @@ const pe = {
2707
2710
  ]),
2708
2711
  _: 2
2709
2712
  }, 1032, ["disabled", "onClick"]),
2710
- S.value && Q === S.value.length - 1 ? (T(), E(b, {
2713
+ S.value && Q === S.value.length - 1 ? (q(), E(v, {
2711
2714
  key: 0,
2712
2715
  appearance: "tertiary",
2713
2716
  class: "btn-add-header",
@@ -2719,14 +2722,14 @@ const pe = {
2719
2722
  n(e(Qe))
2720
2723
  ]),
2721
2724
  _: 1
2722
- })) : j("", !0)
2725
+ })) : B("", !0)
2723
2726
  ], 2))), 128))
2724
2727
  ])
2725
- ])) : j("", !0),
2728
+ ])) : B("", !0),
2726
2729
  n(x, null, {
2727
2730
  default: r(() => [
2728
- v("h5", $a, f(e(i)("upstreams.form.healthy.label")), 1),
2729
- v("p", Pa, f(e(i)("upstreams.form.healthy.help")), 1),
2731
+ _("h5", $a, y(e(i)("upstreams.form.healthy.label")), 1),
2732
+ _("p", Pa, y(e(i)("upstreams.form.healthy.help")), 1),
2730
2733
  n(O, {
2731
2734
  autocomplete: "off",
2732
2735
  class: "margin-bottom-6",
@@ -2738,7 +2741,7 @@ const pe = {
2738
2741
  "model-value": a.healthyInterval,
2739
2742
  readonly: a.readonly,
2740
2743
  type: "number",
2741
- "onUpdate:modelValue": d[6] || (d[6] = (g) => k("update:healthy-interval", g))
2744
+ "onUpdate:modelValue": d[6] || (d[6] = (b) => k("update:healthy-interval", b))
2742
2745
  }, null, 8, ["help", "label", "max", "min", "model-value", "readonly"]),
2743
2746
  n(O, {
2744
2747
  autocomplete: "off",
@@ -2749,9 +2752,9 @@ const pe = {
2749
2752
  "model-value": a.healthySuccesses,
2750
2753
  readonly: a.readonly,
2751
2754
  type: "number",
2752
- "onUpdate:modelValue": d[7] || (d[7] = (g) => k("update:healthy-successes", g))
2755
+ "onUpdate:modelValue": d[7] || (d[7] = (b) => k("update:healthy-successes", b))
2753
2756
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2754
- F.value ? j("", !0) : (T(), E(q, {
2757
+ F.value ? B("", !0) : (q(), E(T, {
2755
2758
  key: 0,
2756
2759
  autocomplete: "off",
2757
2760
  class: "margin-top-6 active-healthcheck-healthy-http-statuses",
@@ -2762,17 +2765,17 @@ const pe = {
2762
2765
  "model-value": a.healthyHttpStatuses,
2763
2766
  readonly: a.readonly,
2764
2767
  width: "100%",
2765
- onItemAdded: d[8] || (d[8] = (g) => e(s)(g, !0)),
2766
- onItemRemoved: d[9] || (d[9] = (g) => e(s)(g, !1)),
2767
- "onUpdate:modelValue": d[10] || (d[10] = (g) => k("update:healthy-http-statuses", g))
2768
+ onItemAdded: d[8] || (d[8] = (b) => e(s)(b, !0)),
2769
+ onItemRemoved: d[9] || (d[9] = (b) => e(s)(b, !1)),
2770
+ "onUpdate:modelValue": d[10] || (d[10] = (b) => k("update:healthy-http-statuses", b))
2768
2771
  }, null, 8, ["items", "label", "model-value", "readonly"]))
2769
2772
  ]),
2770
2773
  _: 1
2771
2774
  }),
2772
2775
  n(x, null, {
2773
2776
  default: r(() => [
2774
- v("h5", Aa, f(e(i)("upstreams.form.unhealthy.label")), 1),
2775
- v("p", Ma, f(e(i)("upstreams.form.unhealthy.help")), 1),
2777
+ _("h5", Aa, y(e(i)("upstreams.form.unhealthy.label")), 1),
2778
+ _("p", Ma, y(e(i)("upstreams.form.unhealthy.help")), 1),
2776
2779
  n(O, {
2777
2780
  autocomplete: "off",
2778
2781
  class: "margin-bottom-6",
@@ -2784,7 +2787,7 @@ const pe = {
2784
2787
  "model-value": a.unhealthyInterval,
2785
2788
  readonly: a.readonly,
2786
2789
  type: "number",
2787
- "onUpdate:modelValue": d[11] || (d[11] = (g) => k("update:unhealthy-interval", g))
2790
+ "onUpdate:modelValue": d[11] || (d[11] = (b) => k("update:unhealthy-interval", b))
2788
2791
  }, null, 8, ["help", "label", "max", "min", "model-value", "readonly"]),
2789
2792
  n(O, {
2790
2793
  autocomplete: "off",
@@ -2796,9 +2799,9 @@ const pe = {
2796
2799
  "model-value": a.unhealthyTcpFailures,
2797
2800
  readonly: a.readonly,
2798
2801
  type: "number",
2799
- "onUpdate:modelValue": d[12] || (d[12] = (g) => k("update:unhealthy-tcp-failures", g))
2802
+ "onUpdate:modelValue": d[12] || (d[12] = (b) => k("update:unhealthy-tcp-failures", b))
2800
2803
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2801
- F.value ? j("", !0) : (T(), E(O, {
2804
+ F.value ? B("", !0) : (q(), E(O, {
2802
2805
  key: 0,
2803
2806
  autocomplete: "off",
2804
2807
  class: "margin-bottom-6",
@@ -2809,9 +2812,9 @@ const pe = {
2809
2812
  "model-value": a.unhealthyHttpFailures,
2810
2813
  readonly: a.readonly,
2811
2814
  type: "number",
2812
- "onUpdate:modelValue": d[13] || (d[13] = (g) => k("update:unhealthy-http-failures", g))
2815
+ "onUpdate:modelValue": d[13] || (d[13] = (b) => k("update:unhealthy-http-failures", b))
2813
2816
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
2814
- F.value ? j("", !0) : (T(), E(q, {
2817
+ F.value ? B("", !0) : (q(), E(T, {
2815
2818
  key: 1,
2816
2819
  autocomplete: "off",
2817
2820
  class: "margin-bottom-6 active-healthcheck-unhealthy-http-statuses",
@@ -2822,9 +2825,9 @@ const pe = {
2822
2825
  "model-value": a.unhealthyHttpStatuses,
2823
2826
  readonly: a.readonly,
2824
2827
  width: "100%",
2825
- onItemAdded: d[14] || (d[14] = (g) => e(c)(g, !0)),
2826
- onItemRemoved: d[15] || (d[15] = (g) => e(c)(g, !1)),
2827
- "onUpdate:modelValue": d[16] || (d[16] = (g) => k("update:unhealthy-http-statuses", g))
2828
+ onItemAdded: d[14] || (d[14] = (b) => e(c)(b, !0)),
2829
+ onItemRemoved: d[15] || (d[15] = (b) => e(c)(b, !1)),
2830
+ "onUpdate:modelValue": d[16] || (d[16] = (b) => k("update:unhealthy-http-statuses", b))
2828
2831
  }, null, 8, ["items", "label", "model-value", "readonly"])),
2829
2832
  n(O, {
2830
2833
  autocomplete: "off",
@@ -2835,7 +2838,7 @@ const pe = {
2835
2838
  "model-value": a.unhealthyTimeouts,
2836
2839
  readonly: a.readonly,
2837
2840
  type: "number",
2838
- "onUpdate:modelValue": d[17] || (d[17] = (g) => k("update:unhealthy-timeouts", g))
2841
+ "onUpdate:modelValue": d[17] || (d[17] = (b) => k("update:unhealthy-timeouts", b))
2839
2842
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])
2840
2843
  ]),
2841
2844
  _: 1
@@ -2846,7 +2849,7 @@ const pe = {
2846
2849
  }, 8, ["title"]);
2847
2850
  };
2848
2851
  }
2849
- }), Ka = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-d079157c"]]), Ea = { class: "fields-group-title" }, Na = { class: "fields-group-text" }, Ba = { class: "fields-group-title" }, Ra = { class: "fields-group-text" }, Da = /* @__PURE__ */ he({
2852
+ }), Ka = /* @__PURE__ */ fe(Va, [["__scopeId", "data-v-d079157c"]]), Ea = { class: "fields-group-title" }, Na = { class: "fields-group-text" }, Ba = { class: "fields-group-title" }, Ra = { class: "fields-group-text" }, Da = /* @__PURE__ */ he({
2850
2853
  __name: "UpstreamsFormPassiveHealthCheck",
2851
2854
  props: {
2852
2855
  type: {
@@ -2884,8 +2887,8 @@ const pe = {
2884
2887
  }
2885
2888
  },
2886
2889
  emits: ["update:type", "update:healthy-successes", "update:healthy-http-statuses", "update:unhealthy-timeouts", "update:unhealthy-http-failures", "update:unhealthy-http-statuses", "update:unhealthy-tcp-failures"],
2887
- setup(a, { emit: R }) {
2888
- const { i18n: { t: i } } = pe.useI18n(), l = a, h = R, k = B([
2890
+ setup(a, { emit: D }) {
2891
+ const { i18n: { t: i } } = me.useI18n(), l = a, h = D, k = R([
2889
2892
  {
2890
2893
  label: i("upstreams.form.healthcheck_type_labels.http"),
2891
2894
  value: "http",
@@ -2911,28 +2914,28 @@ const pe = {
2911
2914
  value: "grpcs",
2912
2915
  selected: !1
2913
2916
  }
2914
- ]), _ = I(() => l.type === "tcp"), {
2915
- trackNewItems: D
2917
+ ]), f = I(() => l.type === "tcp"), {
2918
+ trackNewItems: L
2916
2919
  } = He({ replaceId: !0 }), {
2917
2920
  trackNewItems: F
2918
2921
  } = He({ replaceId: !0 });
2919
- return ye(() => l.type, (s, c) => {
2922
+ return pe(() => l.type, (s, c) => {
2920
2923
  c === "tcp" && s !== c && h("update:unhealthy-tcp-failures", "5"), c !== "tcp" && s === "tcp" && (h("update:healthy-http-statuses", $e), h("update:unhealthy-http-statuses", Ae));
2921
2924
  }), (s, c) => {
2922
2925
  const S = K("KExternalLink"), m = K("KSelect"), t = K("KInput"), N = K("KMultiselect"), U = K("KCard");
2923
- return T(), E(e(Ue), {
2926
+ return q(), E(e(Ue), {
2924
2927
  class: "kong-ui-entities-upstreams-passive-healthcheck",
2925
2928
  title: e(i)("upstreams.form.passive_health_check.title")
2926
2929
  }, {
2927
2930
  description: r(() => [
2928
- v("p", null, [
2929
- J(f(e(i)("upstreams.form.passive_health_check.help")) + " ", 1),
2931
+ _("p", null, [
2932
+ J(y(e(i)("upstreams.form.passive_health_check.help")) + " ", 1),
2930
2933
  n(S, {
2931
2934
  "hide-icon": "",
2932
2935
  href: e(Ke).upstreamObject
2933
2936
  }, {
2934
2937
  default: r(() => [
2935
- J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
2938
+ J(y(e(i)("upstreams.form.buttons.view_documentation")), 1)
2936
2939
  ]),
2937
2940
  _: 1
2938
2941
  }, 8, ["href"])
@@ -2950,8 +2953,8 @@ const pe = {
2950
2953
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2951
2954
  n(U, null, {
2952
2955
  default: r(() => [
2953
- v("h5", Ea, f(e(i)("upstreams.form.passive_healthy.label")), 1),
2954
- v("p", Na, f(e(i)("upstreams.form.passive_healthy.help")), 1),
2956
+ _("h5", Ea, y(e(i)("upstreams.form.passive_healthy.label")), 1),
2957
+ _("p", Na, y(e(i)("upstreams.form.passive_healthy.help")), 1),
2955
2958
  n(t, {
2956
2959
  autocomplete: "off",
2957
2960
  "data-testid": "passive-healthcheck-healthy-successes",
@@ -2963,7 +2966,7 @@ const pe = {
2963
2966
  type: "number",
2964
2967
  "onUpdate:modelValue": c[1] || (c[1] = (d) => h("update:healthy-successes", d))
2965
2968
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2966
- _.value ? j("", !0) : (T(), E(N, {
2969
+ f.value ? B("", !0) : (q(), E(N, {
2967
2970
  key: 0,
2968
2971
  class: "margin-top-6 passive-healthcheck-healthy-http-statuses",
2969
2972
  "enable-item-creation": "",
@@ -2972,8 +2975,8 @@ const pe = {
2972
2975
  "model-value": a.healthyHttpStatuses,
2973
2976
  readonly: a.readonly,
2974
2977
  width: "100%",
2975
- onItemAdded: c[2] || (c[2] = (d) => e(D)(d, !0)),
2976
- onItemRemoved: c[3] || (c[3] = (d) => e(D)(d, !1)),
2978
+ onItemAdded: c[2] || (c[2] = (d) => e(L)(d, !0)),
2979
+ onItemRemoved: c[3] || (c[3] = (d) => e(L)(d, !1)),
2977
2980
  "onUpdate:modelValue": c[4] || (c[4] = (d) => h("update:healthy-http-statuses", d))
2978
2981
  }, null, 8, ["items", "label", "model-value", "readonly"]))
2979
2982
  ]),
@@ -2981,8 +2984,8 @@ const pe = {
2981
2984
  }),
2982
2985
  n(U, null, {
2983
2986
  default: r(() => [
2984
- v("h5", Ba, f(e(i)("upstreams.form.passive_unhealthy.label")), 1),
2985
- v("p", Ra, f(e(i)("upstreams.form.passive_unhealthy.help")), 1),
2987
+ _("h5", Ba, y(e(i)("upstreams.form.passive_unhealthy.label")), 1),
2988
+ _("p", Ra, y(e(i)("upstreams.form.passive_unhealthy.help")), 1),
2986
2989
  n(t, {
2987
2990
  autocomplete: "off",
2988
2991
  "data-testid": "passive-healthcheck-unhealthy-timeouts",
@@ -3006,7 +3009,7 @@ const pe = {
3006
3009
  type: "number",
3007
3010
  "onUpdate:modelValue": c[6] || (c[6] = (d) => h("update:unhealthy-tcp-failures", d))
3008
3011
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
3009
- _.value ? j("", !0) : (T(), E(t, {
3012
+ f.value ? B("", !0) : (q(), E(t, {
3010
3013
  key: 0,
3011
3014
  autocomplete: "off",
3012
3015
  class: "margin-top-6",
@@ -3019,7 +3022,7 @@ const pe = {
3019
3022
  type: "number",
3020
3023
  "onUpdate:modelValue": c[7] || (c[7] = (d) => h("update:unhealthy-http-failures", d))
3021
3024
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
3022
- _.value ? j("", !0) : (T(), E(N, {
3025
+ f.value ? B("", !0) : (q(), E(N, {
3023
3026
  key: 1,
3024
3027
  autocomplete: "off",
3025
3028
  class: "margin-top-6 passive-healthcheck-unhealthy-http-statuses",
@@ -3042,7 +3045,7 @@ const pe = {
3042
3045
  }, 8, ["title"]);
3043
3046
  };
3044
3047
  }
3045
- }), La = /* @__PURE__ */ me(Da, [["__scopeId", "data-v-7c20c5c5"]]), ja = { class: "kong-ui-entities-upstreams-form" }, Qa = /* @__PURE__ */ he({
3048
+ }), La = /* @__PURE__ */ fe(Da, [["__scopeId", "data-v-7c20c5c5"]]), ja = { class: "kong-ui-entities-upstreams-form" }, Qa = /* @__PURE__ */ he({
3046
3049
  __name: "UpstreamsForm",
3047
3050
  props: {
3048
3051
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3059,21 +3062,21 @@ const pe = {
3059
3062
  }
3060
3063
  },
3061
3064
  emits: ["update", "error", "loading"],
3062
- setup(a, { emit: R }) {
3065
+ setup(a, { emit: D }) {
3063
3066
  var P;
3064
- const i = a, l = R, { inRange: h, stringToNumberArray: k, upstreamsResponseToFields: _, getDefaultUpstreamFields: D, objectsAreEqual: F, cloneDeep: s } = Ve(), { axiosInstance: c } = Me((P = i.config) == null ? void 0 : P.axiosRequestConfig), { getMessageFromError: S } = wt(), m = Tt(), t = Fe({
3065
- fields: D(),
3067
+ const i = a, l = D, { inRange: h, stringToNumberArray: k, upstreamsResponseToFields: f, getDefaultUpstreamFields: L, objectsAreEqual: F, cloneDeep: s } = Ve(), { axiosInstance: c } = Me((P = i.config) == null ? void 0 : P.axiosRequestConfig), { getMessageFromError: S } = wt(), m = Tt(), t = Fe({
3068
+ fields: L(),
3066
3069
  readonly: !1,
3067
3070
  errorMessage: ""
3068
- }), N = Fe(D()), U = I(() => !F(t.fields, N)), d = (p) => {
3071
+ }), N = Fe(L()), U = I(() => !F(t.fields, N)), d = (p) => {
3069
3072
  t.fields.activeHealthCheck.healthy.interval = p ? "5" : "0", t.fields.activeHealthCheck.healthy.successes = p ? "5" : "0", t.fields.activeHealthCheck.healthy.httpStatuses = p ? Oe : [], t.fields.activeHealthCheck.unhealthy.httpStatuses = p ? Pe : [], t.fields.activeHealthCheck.unhealthy.httpFailures = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.interval = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.tcpFailures = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.timeouts = p ? "5" : "0", t.fields.activeHealthCheck.timeout = p ? "1" : "0", t.fields.activeHealthCheck.concurrency = p ? "10" : "0", t.fields.activeHealthCheck.httpPath = p ? "/" : "", t.fields.activeHealthCheck.httpsSni = "", t.fields.activeHealthCheck.type = "http";
3070
3073
  }, H = (p) => {
3071
3074
  t.fields.passiveHealthCheck.healthy.successes = p ? "80" : "0", t.fields.passiveHealthCheck.healthy.httpStatuses = p ? $e : [], t.fields.passiveHealthCheck.unhealthy.timeouts = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.tcpFailures = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpFailures = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpStatuses = p ? Ae : [], t.fields.passiveHealthCheck.type = "http";
3072
- }, ee = I(() => t.fields.algorithm !== "sticky-sessions" ? !0 : !!t.fields.stickySessionsCookie && !!t.fields.stickySessionsCookiePath), O = I(() => t.fields.slots ? h(t.fields.slots, Re, De) : !0), X = I(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), G = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), b = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), q = I(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), x = I(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), A = I(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), g = I(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), Q = I(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), W = I(() => !!t.fields.name && ee.value && O.value && X.value && G.value && b.value && q.value && x.value && A.value && g.value && Q.value), z = I(() => i.upstreamId ? ce.Edit : ce.Create), le = I(() => {
3075
+ }, ee = I(() => t.fields.algorithm !== "sticky-sessions" ? !0 : !!t.fields.stickySessionsCookie && !!t.fields.stickySessionsCookiePath), O = I(() => t.fields.slots ? h(t.fields.slots, Re, De) : !0), X = I(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), G = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), v = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), T = I(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), x = I(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), A = I(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), b = I(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), Q = I(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), W = I(() => !!t.fields.name && ee.value && O.value && X.value && G.value && v.value && T.value && x.value && A.value && b.value && Q.value), z = I(() => i.upstreamId ? ce.Edit : ce.Create), le = I(() => {
3073
3076
  var p, o;
3074
3077
  return (o = _e.form[(p = i.config) == null ? void 0 : p.app]) == null ? void 0 : o.edit;
3075
3078
  }), $ = (p) => {
3076
- Object.assign(t.fields, _(p)), Object.assign(N, s(t.fields));
3079
+ Object.assign(t.fields, f(p)), Object.assign(N, s(t.fields));
3077
3080
  }, V = () => {
3078
3081
  var p;
3079
3082
  m.push(((p = i.config) == null ? void 0 : p.cancelRoute) || { name: "upstreams-list" });
@@ -3129,13 +3132,13 @@ const pe = {
3129
3132
  p.healthy.http_statuses = k(ne);
3130
3133
  }
3131
3134
  return ["https", "grpcs"].includes(t.fields.activeHealthCheck.type) && (p.https_sni = t.fields.activeHealthCheck.httpsSni || null, p.https_verify_certificate = t.fields.activeHealthCheck.verifySsl), ((ie = i.config) == null ? void 0 : ie.app) === "kongManager" && (p.headers = t.fields.activeHealthCheck.headers.reduce((re, ne) => {
3132
- var fe, Ce;
3135
+ var ye, Ce;
3133
3136
  return ne.key ? {
3134
3137
  ...re,
3135
- [ne.key]: (Ce = (fe = ne.values.split(",")) == null ? void 0 : fe.map((Ie) => Ie.trim())) == null ? void 0 : Ce.filter(Boolean)
3138
+ [ne.key]: (Ce = (ye = ne.values.split(",")) == null ? void 0 : ye.map((Ie) => Ie.trim())) == null ? void 0 : Ce.filter(Boolean)
3136
3139
  } : re;
3137
3140
  }, {})), p;
3138
- }), L = I(() => {
3141
+ }), j = I(() => {
3139
3142
  var o, u, Y;
3140
3143
  if (!t.fields.passiveHealthSwitch)
3141
3144
  return ((o = i.config) == null ? void 0 : o.app) === "kongManager" && z.value === ce.Edit ? {
@@ -3165,7 +3168,7 @@ const pe = {
3165
3168
  p.unhealthy.http_statuses = k(re);
3166
3169
  }
3167
3170
  return p;
3168
- }), y = I(() => {
3171
+ }), g = I(() => {
3169
3172
  const p = {
3170
3173
  name: t.fields.name,
3171
3174
  slots: Number(t.fields.slots),
@@ -3177,7 +3180,7 @@ const pe = {
3177
3180
  },
3178
3181
  host_header: t.fields.hostHeader || null,
3179
3182
  client_certificate: t.fields.clientCertificate ? { id: t.fields.clientCertificate } : null
3180
- }, o = w.value, u = L.value, Y = {
3183
+ }, o = w.value, u = j.value, Y = {
3181
3184
  ...p,
3182
3185
  ...te.value,
3183
3186
  healthchecks: {
@@ -3188,22 +3191,22 @@ const pe = {
3188
3191
  };
3189
3192
  return Y.tags = t.fields.tags ? t.fields.tags.split(",").map((ie) => String(ie || "").trim()).filter((ie) => ie !== "") : [], Object.assign(Y, ae.value), Y;
3190
3193
  }), C = (p) => {
3191
- var u, Y, ie, re, ne, fe;
3194
+ var u, Y, ie, re, ne, ye;
3192
3195
  let o = `${(u = i.config) == null ? void 0 : u.apiBaseUrl}${_e.form[(Y = i.config) == null ? void 0 : Y.app][p]}`;
3193
- return ((ie = i.config) == null ? void 0 : ie.app) === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((re = i.config) == null ? void 0 : re.controlPlaneId) || "") : ((ne = i.config) == null ? void 0 : ne.app) === "kongManager" && (o = o.replace(/\/{workspace}/gi, (fe = i.config) != null && fe.workspace ? `/${i.config.workspace}` : "")), o = o.replace(/{id}/gi, i.upstreamId), o;
3196
+ return ((ie = i.config) == null ? void 0 : ie.app) === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((re = i.config) == null ? void 0 : re.controlPlaneId) || "") : ((ne = i.config) == null ? void 0 : ne.app) === "kongManager" && (o = o.replace(/\/{workspace}/gi, (ye = i.config) != null && ye.workspace ? `/${i.config.workspace}` : "")), o = o.replace(/{id}/gi, i.upstreamId), o;
3194
3197
  }, M = async () => {
3195
3198
  var p;
3196
3199
  try {
3197
- t.readonly = !0, await c.post(C("validate"), y.value);
3200
+ t.readonly = !0, await c.post(C("validate"), g.value);
3198
3201
  let o;
3199
- z.value === ce.Create ? o = await c.post(C("create"), y.value) : z.value === ce.Edit && (o = ((p = i.config) == null ? void 0 : p.app) === "konnect" ? await c.put(C("edit"), y.value) : await c.patch(C("edit"), y.value)), l("update", o == null ? void 0 : o.data);
3202
+ z.value === ce.Create ? o = await c.post(C("create"), g.value) : z.value === ce.Edit && (o = ((p = i.config) == null ? void 0 : p.app) === "konnect" ? await c.put(C("edit"), g.value) : await c.patch(C("edit"), g.value)), l("update", o == null ? void 0 : o.data);
3200
3203
  } catch (o) {
3201
3204
  t.errorMessage = S(o), l("error", o);
3202
3205
  } finally {
3203
3206
  t.readonly = !1;
3204
3207
  }
3205
3208
  };
3206
- return (p, o) => (T(), oe("div", ja, [
3209
+ return (p, o) => (q(), oe("div", ja, [
3207
3210
  n(e(qt), {
3208
3211
  "can-submit": W.value && U.value,
3209
3212
  config: a.config,
@@ -3211,7 +3214,7 @@ const pe = {
3211
3214
  "entity-type": e(je).Upstream,
3212
3215
  "error-message": t.errorMessage,
3213
3216
  "fetch-url": le.value,
3214
- "form-fields": y.value,
3217
+ "form-fields": g.value,
3215
3218
  "is-readonly": t.readonly,
3216
3219
  onCancel: V,
3217
3220
  "onFetch:error": se,
@@ -3279,7 +3282,7 @@ const pe = {
3279
3282
  ],
3280
3283
  readonly: t.readonly
3281
3284
  }, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
3282
- t.fields.activeHealthSwitch ? (T(), E(Ka, {
3285
+ t.fields.activeHealthSwitch ? (q(), E(Ka, {
3283
3286
  key: 0,
3284
3287
  concurrency: t.fields.activeHealthCheck.concurrency,
3285
3288
  "onUpdate:concurrency": o[21] || (o[21] = (u) => t.fields.activeHealthCheck.concurrency = u),
@@ -3313,8 +3316,8 @@ const pe = {
3313
3316
  "onUpdate:verifySsl": o[35] || (o[35] = (u) => t.fields.activeHealthCheck.verifySsl = u),
3314
3317
  config: a.config,
3315
3318
  readonly: t.readonly
3316
- }, null, 8, ["concurrency", "headers", "healthy-http-statuses", "healthy-interval", "healthy-successes", "http-path", "https-sni", "timeout", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-tcp-failures", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : j("", !0),
3317
- t.fields.passiveHealthSwitch ? (T(), E(La, {
3319
+ }, null, 8, ["concurrency", "headers", "healthy-http-statuses", "healthy-interval", "healthy-successes", "http-path", "https-sni", "timeout", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-tcp-failures", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : B("", !0),
3320
+ t.fields.passiveHealthSwitch ? (q(), E(La, {
3318
3321
  key: 1,
3319
3322
  "healthy-http-statuses": t.fields.passiveHealthCheck.healthy.httpStatuses,
3320
3323
  "onUpdate:healthyHttpStatuses": o[36] || (o[36] = (u) => t.fields.passiveHealthCheck.healthy.httpStatuses = u),
@@ -3331,13 +3334,13 @@ const pe = {
3331
3334
  "unhealthy-timeouts": t.fields.passiveHealthCheck.unhealthy.timeouts,
3332
3335
  "onUpdate:unhealthyTimeouts": o[42] || (o[42] = (u) => t.fields.passiveHealthCheck.unhealthy.timeouts = u),
3333
3336
  readonly: t.readonly
3334
- }, null, 8, ["healthy-http-statuses", "healthy-successes", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-tcp-failures", "unhealthy-timeouts", "readonly"])) : j("", !0)
3337
+ }, null, 8, ["healthy-http-statuses", "healthy-successes", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-tcp-failures", "unhealthy-timeouts", "readonly"])) : B("", !0)
3335
3338
  ]),
3336
3339
  _: 1
3337
3340
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
3338
3341
  ]));
3339
3342
  }
3340
- }), tl = /* @__PURE__ */ me(Qa, [["__scopeId", "data-v-b5373197"]]), Wa = { "data-testid": "client_certificate-plain-text" }, al = /* @__PURE__ */ he({
3343
+ }), tl = /* @__PURE__ */ fe(Qa, [["__scopeId", "data-v-b5373197"]]), Wa = { "data-testid": "client_certificate-plain-text" }, al = /* @__PURE__ */ he({
3341
3344
  __name: "UpstreamsConfigCard",
3342
3345
  props: {
3343
3346
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3364,7 +3367,7 @@ const pe = {
3364
3367
  },
3365
3368
  emits: ["loading", "fetch:error", "fetch:success"],
3366
3369
  setup(a) {
3367
- const R = a, { i18n: { t: i }, i18nT: l } = pe.useI18n(), { getPropValue: h } = Kt(), k = I(() => _e.form[R.config.app].edit), _ = B({
3370
+ const D = a, { i18n: { t: i }, i18nT: l } = me.useI18n(), { getPropValue: h } = Kt(), k = I(() => _e.form[D.config.app].edit), f = R({
3368
3371
  id: {},
3369
3372
  name: {},
3370
3373
  created_at: {},
@@ -3438,17 +3441,17 @@ const pe = {
3438
3441
  tooltip: i("upstreams.form.hash_tooltips.client_certificate")
3439
3442
  }
3440
3443
  });
3441
- return (D, F) => (T(), oe("div", null, [
3444
+ return (L, F) => (q(), oe("div", null, [
3442
3445
  n(e(Nt), {
3443
3446
  config: a.config,
3444
3447
  "config-card-doc": a.configCardDoc,
3445
- "config-schema": _.value,
3448
+ "config-schema": f.value,
3446
3449
  "entity-type": e(je).Upstream,
3447
3450
  "fetch-url": k.value,
3448
3451
  "hide-title": a.hideTitle,
3449
- "onFetch:error": F[0] || (F[0] = (s) => D.$emit("fetch:error", s)),
3450
- "onFetch:success": F[1] || (F[1] = (s) => D.$emit("fetch:success", s)),
3451
- onLoading: F[2] || (F[2] = (s) => D.$emit("loading", s))
3452
+ "onFetch:error": F[0] || (F[0] = (s) => L.$emit("fetch:error", s)),
3453
+ "onFetch:success": F[1] || (F[1] = (s) => L.$emit("fetch:success", s)),
3454
+ onLoading: F[2] || (F[2] = (s) => L.$emit("loading", s))
3452
3455
  }, {
3453
3456
  "name-label-tooltip": r(() => [
3454
3457
  n(e(l), {
@@ -3456,7 +3459,7 @@ const pe = {
3456
3459
  scope: "global"
3457
3460
  }, {
3458
3461
  host: r(() => [
3459
- v("code", null, f(e(i)("upstreams.form.fields.name.host")), 1)
3462
+ _("code", null, y(e(i)("upstreams.form.fields.name.host")), 1)
3460
3463
  ]),
3461
3464
  _: 1
3462
3465
  })
@@ -3467,7 +3470,7 @@ const pe = {
3467
3470
  scope: "global"
3468
3471
  }, {
3469
3472
  result: r(() => [
3470
- v("code", null, f(s.value), 1)
3473
+ _("code", null, y(s.value), 1)
3471
3474
  ]),
3472
3475
  _: 2
3473
3476
  }, 1024)
@@ -3478,10 +3481,10 @@ const pe = {
3478
3481
  scope: "global"
3479
3482
  }, {
3480
3483
  hash_on: r(() => [
3481
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.hash_on")), 1)
3484
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_header.hash_on")), 1)
3482
3485
  ]),
3483
3486
  header: r(() => [
3484
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.header")), 1)
3487
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_header.header")), 1)
3485
3488
  ]),
3486
3489
  _: 1
3487
3490
  })
@@ -3492,10 +3495,10 @@ const pe = {
3492
3495
  scope: "global"
3493
3496
  }, {
3494
3497
  hash_on: r(() => [
3495
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")), 1)
3498
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")), 1)
3496
3499
  ]),
3497
3500
  uri_capture: r(() => [
3498
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")), 1)
3501
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")), 1)
3499
3502
  ]),
3500
3503
  _: 1
3501
3504
  })
@@ -3506,10 +3509,10 @@ const pe = {
3506
3509
  scope: "global"
3507
3510
  }, {
3508
3511
  hash_on: r(() => [
3509
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")), 1)
3512
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")), 1)
3510
3513
  ]),
3511
3514
  query_arg: r(() => [
3512
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")), 1)
3515
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")), 1)
3513
3516
  ]),
3514
3517
  _: 1
3515
3518
  })
@@ -3520,13 +3523,13 @@ const pe = {
3520
3523
  scope: "global"
3521
3524
  }, {
3522
3525
  hash_on: r(() => [
3523
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")), 1)
3526
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")), 1)
3524
3527
  ]),
3525
3528
  hash_fallback: r(() => [
3526
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")), 1)
3529
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")), 1)
3527
3530
  ]),
3528
3531
  cookie: r(() => [
3529
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")), 1)
3532
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")), 1)
3530
3533
  ]),
3531
3534
  _: 1
3532
3535
  })
@@ -3537,13 +3540,13 @@ const pe = {
3537
3540
  scope: "global"
3538
3541
  }, {
3539
3542
  hash_on: r(() => [
3540
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")), 1)
3543
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")), 1)
3541
3544
  ]),
3542
3545
  hash_fallback: r(() => [
3543
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")), 1)
3546
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")), 1)
3544
3547
  ]),
3545
3548
  cookie: r(() => [
3546
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")), 1)
3549
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")), 1)
3547
3550
  ]),
3548
3551
  _: 1
3549
3552
  })
@@ -3554,19 +3557,19 @@ const pe = {
3554
3557
  scope: "global"
3555
3558
  }, {
3556
3559
  algorithm: r(() => [
3557
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.algorithm")), 1)
3560
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.slots.algorithm")), 1)
3558
3561
  ]),
3559
3562
  round_robin: r(() => [
3560
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.round_robin")), 1)
3563
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.slots.round_robin")), 1)
3561
3564
  ]),
3562
3565
  consistent_hashing: r(() => [
3563
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
3566
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
3564
3567
  ]),
3565
3568
  min: r(() => F[3] || (F[3] = [
3566
- v("code", null, "10", -1)
3569
+ _("code", null, "10", -1)
3567
3570
  ])),
3568
3571
  max: r(() => F[4] || (F[4] = [
3569
- v("code", null, "65536", -1)
3572
+ _("code", null, "65536", -1)
3570
3573
  ])),
3571
3574
  _: 1
3572
3575
  })
@@ -3577,10 +3580,10 @@ const pe = {
3577
3580
  scope: "global"
3578
3581
  }, {
3579
3582
  hash_on: r(() => [
3580
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.hash_on")), 1)
3583
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback.hash_on")), 1)
3581
3584
  ]),
3582
3585
  cookie: r(() => [
3583
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.cookie")), 1)
3586
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback.cookie")), 1)
3584
3587
  ]),
3585
3588
  _: 1
3586
3589
  })
@@ -3591,10 +3594,10 @@ const pe = {
3591
3594
  scope: "global"
3592
3595
  }, {
3593
3596
  hash_fallback: r(() => [
3594
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")), 1)
3597
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")), 1)
3595
3598
  ]),
3596
3599
  header: r(() => [
3597
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.header")), 1)
3600
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.header")), 1)
3598
3601
  ]),
3599
3602
  _: 1
3600
3603
  })
@@ -3605,10 +3608,10 @@ const pe = {
3605
3608
  scope: "global"
3606
3609
  }, {
3607
3610
  hash_fallback: r(() => [
3608
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")), 1)
3611
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")), 1)
3609
3612
  ]),
3610
3613
  query_arg: r(() => [
3611
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")), 1)
3614
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")), 1)
3612
3615
  ]),
3613
3616
  _: 1
3614
3617
  })
@@ -3619,10 +3622,10 @@ const pe = {
3619
3622
  scope: "global"
3620
3623
  }, {
3621
3624
  hash_fallback: r(() => [
3622
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")), 1)
3625
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")), 1)
3623
3626
  ]),
3624
3627
  uri_capture: r(() => [
3625
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")), 1)
3628
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")), 1)
3626
3629
  ]),
3627
3630
  _: 1
3628
3631
  })
@@ -3633,7 +3636,7 @@ const pe = {
3633
3636
  scope: "global"
3634
3637
  }, {
3635
3638
  host: r(() => [
3636
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.host_header.host")), 1)
3639
+ _("code", null, y(e(i)("upstreams.form.hash_tooltips.host_header.host")), 1)
3637
3640
  ]),
3638
3641
  _: 1
3639
3642
  })
@@ -3641,9 +3644,9 @@ const pe = {
3641
3644
  client_certificate: r((s) => {
3642
3645
  var c;
3643
3646
  return [
3644
- v("div", null, [
3645
- v("div", Wa, [
3646
- v("span", null, f((c = e(h)("rowValue", s)) == null ? void 0 : c.id), 1)
3647
+ _("div", null, [
3648
+ _("div", Wa, [
3649
+ _("span", null, y((c = e(h)("rowValue", s)) == null ? void 0 : c.id), 1)
3647
3650
  ])
3648
3651
  ])
3649
3652
  ];