@kong-ui-public/entities-upstreams-targets 3.5.43 → 3.5.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { ref as M, defineComponent as oe, computed as q, watch as me, onBeforeMount as Me, resolveComponent as x, openBlock as I, createElementBlock as se, createVNode as h, unref as e, withCtx as n, createBlock as E, Teleport as mt, withDirectives as ft, createTextVNode as W, toDisplayString as f, vShow as yt, createElementVNode as b, Fragment as be, renderList as Ae, reactive as Ie, renderSlot as gt, createCommentVNode as z, createSlots as $t, normalizeClass as Pt } from "vue";
2
- import { useAxios as Te, useFetcher as vt, useDeleteUrlBuilder as bt, FetcherStatus as we, EntityBaseTable as kt, EntityFilter as Mt, PermissionsWrapper as ue, EntityDeleteModal as _t, EntityTypes as Ct, useErrors as Ht, EntityBaseFormType as he, EntityBaseForm as St, SupportedEntityType as Ke, useDebouncedFilter as ct, EntityFormSection as Ce, useHelpers as At, ConfigurationSchemaSection as ne, ConfigurationSchemaType as Kt, EntityBaseConfigCard as Nt } from "@kong-ui-public/entities-shared";
1
+ import { ref as P, defineComponent as ie, computed as q, watch as ce, onBeforeMount as Me, resolveComponent as M, openBlock as x, createElementBlock as le, createVNode as h, unref as e, withCtx as n, createBlock as j, Teleport as pt, withDirectives as mt, createTextVNode as z, toDisplayString as f, vShow as ft, createElementVNode as b, reactive as Ue, renderSlot as yt, createCommentVNode as W, createSlots as $t, Fragment as Ie, renderList as Pt, normalizeClass as Mt } from "vue";
2
+ import { useAxios as Fe, useFetcher as gt, useDeleteUrlBuilder as vt, FetcherStatus as we, EntityBaseTable as bt, EntityFilter as At, PermissionsWrapper as ne, TableTags as kt, EntityDeleteModal as _t, EntityTypes as Ct, useErrors as Ht, EntityBaseFormType as oe, EntityBaseForm as St, SupportedEntityType as Ae, useDebouncedFilter as ut, EntityFormSection as _e, useHelpers as Kt, ConfigurationSchemaSection as re, ConfigurationSchemaType as Nt, EntityBaseConfigCard as Vt } from "@kong-ui-public/entities-shared";
3
3
  import { useRouter as Ut } from "vue-router";
4
- import { AddIcon as Ne, TrashIcon as Vt } from "@kong/icons";
5
- import { createI18n as Bt, i18nTComponent as Et } from "@kong-ui-public/i18n";
6
- const Rt = {
4
+ import { AddIcon as Ke, TrashIcon as Et } from "@kong/icons";
5
+ import { createI18n as Rt, i18nTComponent as Bt } from "@kong-ui-public/i18n";
6
+ const Dt = {
7
7
  list: {
8
8
  table_headers: {
9
9
  id: "ID",
@@ -289,7 +289,7 @@ const Rt = {
289
289
  labels: {
290
290
  created_at: "Created at"
291
291
  }
292
- }, Dt = {
292
+ }, jt = {
293
293
  list: {
294
294
  table_headers: {
295
295
  id: "ID",
@@ -357,20 +357,20 @@ const Rt = {
357
357
  }
358
358
  }
359
359
  }
360
- }, jt = {
361
- upstreams: Rt,
362
- targets: Dt
360
+ }, Lt = {
361
+ upstreams: Dt,
362
+ targets: jt
363
363
  };
364
- function Lt() {
365
- const a = Bt("en-us", jt);
364
+ function Qt() {
365
+ const a = Rt("en-us", Lt);
366
366
  return {
367
367
  i18n: a,
368
- i18nT: Et(a)
368
+ i18nT: Bt(a)
369
369
  // Translation component <i18n-t>
370
370
  };
371
371
  }
372
- function _e(a) {
373
- const { replaceId: R = !1 } = a, r = M([]);
372
+ function ke(a) {
373
+ const { replaceId: R = !1 } = a, r = P([]);
374
374
  return {
375
375
  addedItems: r,
376
376
  trackNewItems: (u, k) => {
@@ -751,8 +751,8 @@ const qe = [
751
751
  label: "599",
752
752
  value: "599"
753
753
  }
754
- ], $e = 10, Pe = 65536, Qt = 0, Wt = 65535, ge = 0, ve = 255, It = 0, wt = 255, Jt = 0, zt = 65535, dt = 0, pt = 65535, Gt = 0, Xt = 2 ** 31, qt = ["200", "302"], Tt = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Ft = ["429", "404", "500", "501", "502", "503", "504", "505"], xt = ["429", "500", "503"];
755
- function Fe() {
754
+ ], $e = 10, Pe = 65536, Wt = 0, Jt = 65535, ye = 0, ge = 255, It = 0, wt = 255, zt = 0, Gt = 65535, ct = 0, dt = 65535, Xt = 0, Yt = 2 ** 31, qt = ["200", "302"], Ft = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Tt = ["429", "404", "500", "501", "502", "503", "504", "505"], xt = ["429", "500", "503"];
755
+ function Te() {
756
756
  const a = (l) => /^\d+$/.test(l), R = (l, c, C) => {
757
757
  if (a(l)) {
758
758
  const m = Number(l);
@@ -760,7 +760,7 @@ function Fe() {
760
760
  } else
761
761
  return !1;
762
762
  }, r = (l) => l.map((c) => Number(c)), s = (l) => l.map((c) => c.toString()), u = (l) => {
763
- var C, m, t, D, U, p, H, Y, O, ee, ae, v, S, F, w, y, j, G, re, ie, P, K, J, L, Z, _, N, d, i, o, A, Q, $, B, le, X, te, pe, Ve, Be, Ee, Re, De, je, Le, Qe, We, Je, ze, Ge, Xe, Ye, Ze, et, tt, at, lt, st, it, rt, ot, nt, ht, ut;
763
+ var C, m, t, B, U, p, H, G, O, Z, te, v, S, T, w, y, D, J, se, ae, $, K, Q, L, Y, _, N, d, i, o, I, A, X, E, ee, de, be, pe, Ne, Ve, Ee, Re, Be, De, je, Le, Qe, We, Je, ze, Ge, Xe, Ye, Ze, et, tt, at, lt, st, it, rt, ot, nt, ht;
764
764
  return {
765
765
  name: (l == null ? void 0 : l.name) || "",
766
766
  hostHeader: (l == null ? void 0 : l.host_header) || "",
@@ -778,34 +778,34 @@ function Fe() {
778
778
  hashFallbackHeader: (l == null ? void 0 : l.hash_fallback_header) || "",
779
779
  hashFallbackQueryArgument: (l == null ? void 0 : l.hash_fallback_query_arg) || "",
780
780
  hashFallbackUriCapture: (l == null ? void 0 : l.hash_fallback_uri_capture) || "",
781
- activeHealthSwitch: l ? ((U = (D = l.healthchecks.active) == null ? void 0 : D.healthy) == null ? void 0 : U.interval) !== 0 || ((H = (p = l.healthchecks.active) == null ? void 0 : p.unhealthy) == null ? void 0 : H.interval) !== 0 : !1,
782
- passiveHealthSwitch: l ? ((O = (Y = l.healthchecks.passive) == null ? void 0 : Y.healthy) == null ? void 0 : O.successes) !== 0 || ((ae = (ee = l.healthchecks.passive) == null ? void 0 : ee.unhealthy) == null ? void 0 : ae.timeouts) !== 0 || ((S = (v = l.healthchecks.passive) == null ? void 0 : v.unhealthy) == null ? void 0 : S.tcp_failures) !== 0 || ((w = (F = l.healthchecks.passive) == null ? void 0 : F.unhealthy) == null ? void 0 : w.http_failures) !== 0 : !1,
781
+ activeHealthSwitch: l ? ((U = (B = l.healthchecks.active) == null ? void 0 : B.healthy) == null ? void 0 : U.interval) !== 0 || ((H = (p = l.healthchecks.active) == null ? void 0 : p.unhealthy) == null ? void 0 : H.interval) !== 0 : !1,
782
+ passiveHealthSwitch: l ? ((O = (G = l.healthchecks.passive) == null ? void 0 : G.healthy) == null ? void 0 : O.successes) !== 0 || ((te = (Z = l.healthchecks.passive) == null ? void 0 : Z.unhealthy) == null ? void 0 : te.timeouts) !== 0 || ((S = (v = l.healthchecks.passive) == null ? void 0 : v.unhealthy) == null ? void 0 : S.tcp_failures) !== 0 || ((w = (T = l.healthchecks.passive) == null ? void 0 : T.unhealthy) == null ? void 0 : w.http_failures) !== 0 : !1,
783
783
  healthchecksThreshold: ((y = l == null ? void 0 : l.healthchecks.threshold) == null ? void 0 : y.toString()) || "0",
784
784
  activeHealthCheck: {
785
- type: ((j = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : j.type) || "http",
786
- httpPath: ((G = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : G.http_path) || "/",
787
- timeout: ((ie = (re = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : re.timeout) == null ? void 0 : ie.toString()) || "1",
788
- concurrency: ((K = (P = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : P.concurrency) == null ? void 0 : K.toString()) || "10",
789
- httpsSni: ((J = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : J.https_sni) || "",
785
+ type: ((D = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : D.type) || "http",
786
+ httpPath: ((J = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : J.http_path) || "/",
787
+ timeout: ((ae = (se = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : se.timeout) == null ? void 0 : ae.toString()) || "1",
788
+ concurrency: ((K = ($ = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : $.concurrency) == null ? void 0 : K.toString()) || "10",
789
+ httpsSni: ((Q = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Q.https_sni) || "",
790
790
  verifySsl: ((L = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : L.https_verify_certificate) || !1,
791
- headers: (Z = l == null ? void 0 : l.healthchecks.active) != null && Z.headers && Object.entries(l.healthchecks.active.headers).length > 0 ? Object.entries(l.healthchecks.active.headers).map(([Ot, Oe]) => ({ key: Ot, values: Oe == null ? void 0 : Oe.join(", ") })) : [{ key: "", values: "" }],
791
+ headers: (Y = l == null ? void 0 : l.healthchecks.active) != null && Y.headers && Object.entries(l.healthchecks.active.headers).length > 0 ? Object.entries(l.healthchecks.active.headers).map(([Ot, Oe]) => ({ key: Ot, values: Oe == null ? void 0 : Oe.join(", ") })) : [{ key: "", values: "" }],
792
792
  interval: ((d = (N = (_ = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : _.healthy) == null ? void 0 : N.interval) == null ? void 0 : d.toString()) || "0",
793
- successes: ((A = (o = (i = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : i.healthy) == null ? void 0 : o.successes) == null ? void 0 : A.toString()) || "5",
794
- httpStatuses: ($ = (Q = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Q.healthy) != null && $.http_statuses ? s(l.healthchecks.active.healthy.http_statuses) : qt,
795
- unhealthyInterval: ((X = (le = (B = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : B.unhealthy) == null ? void 0 : le.interval) == null ? void 0 : X.toString()) || "0",
796
- httpFailures: ((Ve = (pe = (te = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : te.unhealthy) == null ? void 0 : pe.http_failures) == null ? void 0 : Ve.toString()) || "5",
797
- tcpFailures: ((Re = (Ee = (Be = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Be.unhealthy) == null ? void 0 : Ee.tcp_failures) == null ? void 0 : Re.toString()) || "5",
798
- unhealthyHttpStatuses: (je = (De = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : De.unhealthy) != null && je.http_statuses ? s(l.healthchecks.active.unhealthy.http_statuses) : Ft,
799
- unhealthyTimeouts: ((We = (Qe = (Le = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Le.unhealthy) == null ? void 0 : Qe.timeouts) == null ? void 0 : We.toString()) || "0"
793
+ successes: ((I = (o = (i = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : i.healthy) == null ? void 0 : o.successes) == null ? void 0 : I.toString()) || "5",
794
+ httpStatuses: (X = (A = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : A.healthy) != null && X.http_statuses ? s(l.healthchecks.active.healthy.http_statuses) : qt,
795
+ unhealthyInterval: ((de = (ee = (E = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : E.unhealthy) == null ? void 0 : ee.interval) == null ? void 0 : de.toString()) || "0",
796
+ httpFailures: ((Ne = (pe = (be = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : be.unhealthy) == null ? void 0 : pe.http_failures) == null ? void 0 : Ne.toString()) || "5",
797
+ tcpFailures: ((Re = (Ee = (Ve = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Ve.unhealthy) == null ? void 0 : Ee.tcp_failures) == null ? void 0 : Re.toString()) || "5",
798
+ unhealthyHttpStatuses: (De = (Be = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : Be.unhealthy) != null && De.http_statuses ? s(l.healthchecks.active.unhealthy.http_statuses) : Tt,
799
+ unhealthyTimeouts: ((Qe = (Le = (je = l == null ? void 0 : l.healthchecks.active) == null ? void 0 : je.unhealthy) == null ? void 0 : Le.timeouts) == null ? void 0 : Qe.toString()) || "0"
800
800
  },
801
801
  passiveHealthCheck: {
802
- type: ((Je = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : Je.type) || "http",
803
- successes: ((Xe = (Ge = (ze = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : ze.healthy) == null ? void 0 : Ge.successes) == null ? void 0 : Xe.toString()) || "0",
804
- httpStatuses: (Ze = (Ye = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : Ye.healthy) != null && Ze.http_statuses ? s(l.healthchecks.passive.healthy.http_statuses) : Tt,
805
- timeouts: ((at = (tt = (et = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : et.unhealthy) == null ? void 0 : tt.timeouts) == null ? void 0 : at.toString()) || "0",
806
- httpFailures: ((it = (st = (lt = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : lt.unhealthy) == null ? void 0 : st.http_failures) == null ? void 0 : it.toString()) || "5",
807
- tcpFailures: ((nt = (ot = (rt = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : rt.unhealthy) == null ? void 0 : ot.tcp_failures) == null ? void 0 : nt.toString()) || "5",
808
- unhealthyHttpStatuses: (ut = (ht = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : ht.unhealthy) != null && ut.http_statuses ? s(l.healthchecks.passive.unhealthy.http_statuses) : xt
802
+ type: ((We = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : We.type) || "http",
803
+ successes: ((Ge = (ze = (Je = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : Je.healthy) == null ? void 0 : ze.successes) == null ? void 0 : Ge.toString()) || "0",
804
+ httpStatuses: (Ye = (Xe = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : Xe.healthy) != null && Ye.http_statuses ? s(l.healthchecks.passive.healthy.http_statuses) : Ft,
805
+ timeouts: ((tt = (et = (Ze = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : Ze.unhealthy) == null ? void 0 : et.timeouts) == null ? void 0 : tt.toString()) || "0",
806
+ httpFailures: ((st = (lt = (at = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : at.unhealthy) == null ? void 0 : lt.http_failures) == null ? void 0 : st.toString()) || "5",
807
+ tcpFailures: ((ot = (rt = (it = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : it.unhealthy) == null ? void 0 : rt.tcp_failures) == null ? void 0 : ot.toString()) || "5",
808
+ unhealthyHttpStatuses: (ht = (nt = l == null ? void 0 : l.healthchecks.passive) == null ? void 0 : nt.unhealthy) != null && ht.http_statuses ? s(l.healthchecks.passive.unhealthy.http_statuses) : xt
809
809
  }
810
810
  };
811
811
  };
@@ -826,32 +826,32 @@ function Fe() {
826
826
  cloneDeep: (l) => JSON.parse(JSON.stringify(l))
827
827
  };
828
828
  }
829
- const ce = {
830
- useI18n: Lt,
831
- useMultiselectCreation: _e,
832
- useHelpers: Fe
833
- }, fe = "/v2/control-planes/{controlPlaneId}/core-entities", ye = "/{workspace}", ke = {
829
+ const he = {
830
+ useI18n: Qt,
831
+ useMultiselectCreation: ke,
832
+ useHelpers: Te
833
+ }, me = "/v2/control-planes/{controlPlaneId}/core-entities", fe = "/{workspace}", ve = {
834
834
  list: {
835
- konnect: `${fe}/upstreams`,
836
- kongManager: `${ye}/upstreams`
835
+ konnect: `${me}/upstreams`,
836
+ kongManager: `${fe}/upstreams`
837
837
  },
838
838
  form: {
839
839
  konnect: {
840
+ getServices: `${me}/services`,
841
+ getCertificates: `${me}/certificates`,
842
+ validate: `${me}/v1/schemas/json/upstream/validate`,
843
+ create: `${me}/upstreams`,
844
+ edit: `${me}/upstreams/{id}`
845
+ },
846
+ kongManager: {
840
847
  getServices: `${fe}/services`,
841
848
  getCertificates: `${fe}/certificates`,
842
- validate: `${fe}/v1/schemas/json/upstream/validate`,
849
+ validate: `${fe}/schemas/upstreams/validate`,
843
850
  create: `${fe}/upstreams`,
844
851
  edit: `${fe}/upstreams/{id}`
845
- },
846
- kongManager: {
847
- getServices: `${ye}/services`,
848
- getCertificates: `${ye}/certificates`,
849
- validate: `${ye}/schemas/upstreams/validate`,
850
- create: `${ye}/upstreams`,
851
- edit: `${ye}/upstreams/{id}`
852
852
  }
853
853
  }
854
- }, Yt = { class: "kong-ui-entities-upstreams-list" }, Zt = { class: "upstream-name" }, ea = /* @__PURE__ */ oe({
854
+ }, Zt = { class: "kong-ui-entities-upstreams-list" }, ea = { class: "upstream-name" }, ta = /* @__PURE__ */ ie({
855
855
  __name: "UpstreamsList",
856
856
  props: {
857
857
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -897,17 +897,17 @@ const ce = {
897
897
  },
898
898
  emits: ["error", "copy:success", "copy:error", "delete:success"],
899
899
  setup(a, { emit: R }) {
900
- var Z;
901
- const r = R, s = a, { i18n: { t: u } } = ce.useI18n(), k = Ut(), { axiosInstance: g } = Te((Z = s.config) == null ? void 0 : Z.axiosRequestConfig), V = M(1), T = q(() => s.config.app !== "kongManager" || !!s.config.disableSorting), l = {
900
+ var Y;
901
+ const r = R, s = a, { i18n: { t: u } } = he.useI18n(), k = Ut(), { axiosInstance: g } = Fe((Y = s.config) == null ? void 0 : Y.axiosRequestConfig), V = P(1), F = q(() => s.config.app !== "kongManager" || !!s.config.disableSorting), l = {
902
902
  // the Name column is non-hidable
903
903
  name: { label: u("upstreams.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
904
904
  slots: { label: u("upstreams.list.table_headers.slots"), searchable: !0, sortable: !0 },
905
905
  tags: { label: u("upstreams.list.table_headers.tags"), sortable: !1 }
906
906
  }, c = l, C = q(() => {
907
907
  var N, d;
908
- let _ = `${s.config.apiBaseUrl}${ke.list[s.config.app]}`;
908
+ let _ = `${s.config.apiBaseUrl}${ve.list[s.config.app]}`;
909
909
  return s.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((N = s.config) == null ? void 0 : N.controlPlaneId) || "") : s.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (d = s.config) != null && d.workspace ? `/${s.config.workspace}` : "")), _;
910
- }), m = M(""), t = q(() => {
910
+ }), m = P(""), t = q(() => {
911
911
  const _ = s.config.app === "konnect" || s.config.isExactMatch;
912
912
  if (_)
913
913
  return {
@@ -920,11 +920,11 @@ const ce = {
920
920
  fields: { name: N, slots: d },
921
921
  schema: s.config.filterSchema
922
922
  };
923
- }), { fetcher: D, fetcherState: U } = vt(s.config, C.value), p = () => {
923
+ }), { fetcher: B, fetcherState: U } = gt(s.config, C.value), p = () => {
924
924
  m.value = "";
925
925
  }, H = () => {
926
926
  V.value++;
927
- }, Y = M(null), O = M(!1), ee = (_, N) => {
927
+ }, G = P(null), O = P(!1), Z = (_, N) => {
928
928
  const d = _.id;
929
929
  if (!N(d)) {
930
930
  r("copy:error", {
@@ -939,7 +939,7 @@ const ce = {
939
939
  field: "id",
940
940
  message: u("upstreams.copy.success", { val: d })
941
941
  });
942
- }, ae = (_, N) => {
942
+ }, te = (_, N) => {
943
943
  const d = JSON.stringify(_);
944
944
  if (!N(d)) {
945
945
  r("copy:error", {
@@ -958,37 +958,37 @@ const ce = {
958
958
  }, S = (_) => ({
959
959
  label: u("upstreams.actions.view"),
960
960
  to: s.config.getViewRoute(_)
961
- }), F = (_) => ({
961
+ }), T = (_) => ({
962
962
  label: u("upstreams.actions.edit"),
963
963
  to: s.config.getEditRoute(_)
964
- }), w = M(void 0), y = M(!1), j = M(!1), G = M(""), re = bt(s.config, C.value), ie = (_) => {
964
+ }), w = P(void 0), y = P(!1), D = P(!1), J = P(""), se = vt(s.config, C.value), ae = (_) => {
965
965
  w.value = _, y.value = !0;
966
- }, P = () => {
966
+ }, $ = () => {
967
967
  y.value = !1;
968
968
  }, K = async () => {
969
969
  var _, N, d;
970
970
  if ((_ = w.value) != null && _.id) {
971
- j.value = !0;
971
+ D.value = !0;
972
972
  try {
973
- await g.delete(re(w.value.id)), j.value = !1, y.value = !1, V.value++, r("delete:success", w.value);
973
+ await g.delete(se(w.value.id)), D.value = !1, y.value = !1, V.value++, r("delete:success", w.value);
974
974
  } catch (i) {
975
- G.value = ((d = (N = i.response) == null ? void 0 : N.data) == null ? void 0 : d.message) || i.message || u("upstreams.errors.delete"), r("error", i);
975
+ J.value = ((d = (N = i.response) == null ? void 0 : N.data) == null ? void 0 : d.message) || i.message || u("upstreams.errors.delete"), r("error", i);
976
976
  } finally {
977
- j.value = !1;
977
+ D.value = !1;
978
978
  }
979
979
  }
980
- }, J = M(!1);
981
- me(U, (_) => {
980
+ }, Q = P(!1);
981
+ ce(U, (_) => {
982
982
  var N, d, i, o;
983
- if (Array.isArray((N = _ == null ? void 0 : _.response) == null ? void 0 : N.data) && (J.value = _.response.data.length > 0), _.status === we.NoRecords ? O.value = !0 : O.value = !1, _.status === we.Error) {
984
- Y.value = {
983
+ if (Array.isArray((N = _ == null ? void 0 : _.response) == null ? void 0 : N.data) && (Q.value = _.response.data.length > 0), _.status === we.NoRecords ? O.value = !0 : O.value = !1, _.status === we.Error) {
984
+ G.value = {
985
985
  title: u("upstreams.errors.general")
986
- }, (o = (i = (d = _.error) == null ? void 0 : d.response) == null ? void 0 : i.data) != null && o.message && (Y.value.message = _.error.response.data.message), r("error", _.error);
986
+ }, (o = (i = (d = _.error) == null ? void 0 : d.response) == null ? void 0 : i.data) != null && o.message && (G.value.message = _.error.response.data.message), r("error", _.error);
987
987
  return;
988
988
  }
989
- Y.value = null;
989
+ G.value = null;
990
990
  });
991
- const L = M({
991
+ const L = P({
992
992
  ctaPath: s.config.createRoute,
993
993
  ctaText: void 0,
994
994
  message: `${u("upstreams.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
@@ -997,15 +997,15 @@ const ce = {
997
997
  return Me(async () => {
998
998
  await s.canCreate() && (L.value.title = u("upstreams.list.empty_state.title"), L.value.ctaText = u("upstreams.actions.create"));
999
999
  }), (_, N) => {
1000
- const d = x("KButton"), i = x("KBadge"), o = x("KTruncate"), A = x("KDropdownItem"), Q = x("KClipboardProvider");
1001
- return I(), se("div", Yt, [
1002
- h(e(kt), {
1000
+ const d = M("KButton"), i = M("KDropdownItem"), o = M("KClipboardProvider");
1001
+ return x(), le("div", Zt, [
1002
+ h(e(bt), {
1003
1003
  "cache-identifier": a.cacheIdentifier,
1004
- "disable-sorting": T.value,
1004
+ "disable-sorting": F.value,
1005
1005
  "empty-state-options": L.value,
1006
1006
  "enable-entity-actions": "",
1007
- "error-message": Y.value,
1008
- fetcher: e(D),
1007
+ "error-message": G.value,
1008
+ fetcher: e(B),
1009
1009
  "fetcher-cache-key": V.value,
1010
1010
  "hide-toolbar": O.value,
1011
1011
  "pagination-type": "offset",
@@ -1013,127 +1013,117 @@ const ce = {
1013
1013
  query: m.value,
1014
1014
  "table-headers": e(c),
1015
1015
  onClearSearchInput: p,
1016
- "onClick:row": N[1] || (N[1] = ($) => v($)),
1016
+ "onClick:row": N[1] || (N[1] = (I) => v(I)),
1017
1017
  onSort: H
1018
1018
  }, {
1019
1019
  "toolbar-filter": n(() => [
1020
- h(e(Mt), {
1020
+ h(e(At), {
1021
1021
  modelValue: m.value,
1022
- "onUpdate:modelValue": N[0] || (N[0] = ($) => m.value = $),
1022
+ "onUpdate:modelValue": N[0] || (N[0] = (I) => m.value = I),
1023
1023
  config: t.value
1024
1024
  }, null, 8, ["modelValue", "config"])
1025
1025
  ]),
1026
1026
  "toolbar-button": n(() => [
1027
- (I(), E(mt, {
1027
+ (x(), j(pt, {
1028
1028
  disabled: !a.useActionOutside,
1029
1029
  to: "#kong-ui-app-page-header-action-button"
1030
1030
  }, [
1031
- h(e(ue), {
1031
+ h(e(ne), {
1032
1032
  "auth-function": () => a.canCreate()
1033
1033
  }, {
1034
1034
  default: n(() => [
1035
- ft(h(d, {
1035
+ mt(h(d, {
1036
1036
  appearance: "primary",
1037
1037
  "data-testid": "toolbar-add-upstream",
1038
1038
  size: a.useActionOutside ? "medium" : "large",
1039
1039
  to: a.config.createRoute
1040
1040
  }, {
1041
1041
  default: n(() => [
1042
- h(e(Ne)),
1043
- W(" " + f(e(u)("upstreams.list.toolbar_actions.new_upstream")), 1)
1042
+ h(e(Ke)),
1043
+ z(" " + f(e(u)("upstreams.list.toolbar_actions.new_upstream")), 1)
1044
1044
  ]),
1045
1045
  _: 1
1046
1046
  }, 8, ["size", "to"]), [
1047
- [yt, J.value]
1047
+ [ft, Q.value]
1048
1048
  ])
1049
1049
  ]),
1050
1050
  _: 1
1051
1051
  }, 8, ["auth-function"])
1052
1052
  ], 8, ["disabled"]))
1053
1053
  ]),
1054
- name: n(({ rowValue: $ }) => [
1055
- b("span", Zt, f($), 1)
1054
+ name: n(({ rowValue: I }) => [
1055
+ b("span", ea, f(I), 1)
1056
1056
  ]),
1057
- tags: n(({ rowValue: $ }) => [
1058
- h(o, null, {
1059
- default: n(() => [
1060
- (I(!0), se(be, null, Ae($, (B) => (I(), E(i, {
1061
- key: B,
1062
- "max-width": "auto"
1063
- }, {
1064
- default: n(() => [
1065
- W(f(B), 1)
1066
- ]),
1067
- _: 2
1068
- }, 1024))), 128))
1069
- ]),
1070
- _: 2
1071
- }, 1024)
1057
+ tags: n(({ rowValue: I }) => [
1058
+ h(e(kt), {
1059
+ "tag-max-width": "auto",
1060
+ tags: I
1061
+ }, null, 8, ["tags"])
1072
1062
  ]),
1073
- actions: n(({ row: $ }) => [
1074
- h(Q, null, {
1075
- default: n(({ copyToClipboard: B }) => [
1076
- h(A, {
1063
+ actions: n(({ row: I }) => [
1064
+ h(o, null, {
1065
+ default: n(({ copyToClipboard: A }) => [
1066
+ h(i, {
1077
1067
  "data-testid": "action-entity-copy-id",
1078
- onClick: (le) => ee($, B)
1068
+ onClick: (X) => Z(I, A)
1079
1069
  }, {
1080
1070
  default: n(() => [
1081
- W(f(e(u)("upstreams.actions.copy_id")), 1)
1071
+ z(f(e(u)("upstreams.actions.copy_id")), 1)
1082
1072
  ]),
1083
1073
  _: 2
1084
1074
  }, 1032, ["onClick"])
1085
1075
  ]),
1086
1076
  _: 2
1087
1077
  }, 1024),
1088
- h(Q, null, {
1089
- default: n(({ copyToClipboard: B }) => [
1090
- h(A, {
1078
+ h(o, null, {
1079
+ default: n(({ copyToClipboard: A }) => [
1080
+ h(i, {
1091
1081
  "data-testid": "action-entity-copy-json",
1092
- onClick: (le) => ae($, B)
1082
+ onClick: (X) => te(I, A)
1093
1083
  }, {
1094
1084
  default: n(() => [
1095
- W(f(e(u)("upstreams.actions.copy_json")), 1)
1085
+ z(f(e(u)("upstreams.actions.copy_json")), 1)
1096
1086
  ]),
1097
1087
  _: 2
1098
1088
  }, 1032, ["onClick"])
1099
1089
  ]),
1100
1090
  _: 2
1101
1091
  }, 1024),
1102
- h(e(ue), {
1103
- "auth-function": () => a.canRetrieve($)
1092
+ h(e(ne), {
1093
+ "auth-function": () => a.canRetrieve(I)
1104
1094
  }, {
1105
1095
  default: n(() => [
1106
- h(A, {
1096
+ h(i, {
1107
1097
  "data-testid": "action-entity-view",
1108
1098
  "has-divider": "",
1109
- item: S($.id)
1099
+ item: S(I.id)
1110
1100
  }, null, 8, ["item"])
1111
1101
  ]),
1112
1102
  _: 2
1113
1103
  }, 1032, ["auth-function"]),
1114
- h(e(ue), {
1115
- "auth-function": () => a.canEdit($)
1104
+ h(e(ne), {
1105
+ "auth-function": () => a.canEdit(I)
1116
1106
  }, {
1117
1107
  default: n(() => [
1118
- h(A, {
1108
+ h(i, {
1119
1109
  "data-testid": "action-entity-edit",
1120
- item: F($.id)
1110
+ item: T(I.id)
1121
1111
  }, null, 8, ["item"])
1122
1112
  ]),
1123
1113
  _: 2
1124
1114
  }, 1032, ["auth-function"]),
1125
- h(e(ue), {
1126
- "auth-function": () => a.canDelete($)
1115
+ h(e(ne), {
1116
+ "auth-function": () => a.canDelete(I)
1127
1117
  }, {
1128
1118
  default: n(() => [
1129
- h(A, {
1119
+ h(i, {
1130
1120
  danger: "",
1131
1121
  "data-testid": "action-entity-delete",
1132
1122
  "has-divider": "",
1133
- onClick: (B) => ie($)
1123
+ onClick: (A) => ae(I)
1134
1124
  }, {
1135
1125
  default: n(() => [
1136
- W(f(e(u)("upstreams.actions.delete")), 1)
1126
+ z(f(e(u)("upstreams.actions.delete")), 1)
1137
1127
  ]),
1138
1128
  _: 2
1139
1129
  }, 1032, ["onClick"])
@@ -1144,45 +1134,45 @@ const ce = {
1144
1134
  _: 1
1145
1135
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "query", "table-headers"]),
1146
1136
  h(e(_t), {
1147
- "action-pending": j.value,
1137
+ "action-pending": D.value,
1148
1138
  description: e(u)("upstreams.delete.description"),
1149
1139
  "entity-name": w.value && (w.value.name || w.value.id),
1150
1140
  "entity-type": e(Ct).Upstream,
1151
- error: G.value,
1141
+ error: J.value,
1152
1142
  title: e(u)("upstreams.delete.title"),
1153
1143
  visible: y.value,
1154
- onCancel: P,
1144
+ onCancel: $,
1155
1145
  onProceed: K
1156
1146
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
1157
1147
  ]);
1158
1148
  };
1159
1149
  }
1160
- }), de = (a, R) => {
1150
+ }), ue = (a, R) => {
1161
1151
  const r = a.__vccOpts || a;
1162
1152
  for (const [s, u] of R)
1163
1153
  r[s] = u;
1164
1154
  return r;
1165
- }, Qa = /* @__PURE__ */ de(ea, [["__scopeId", "data-v-f95599ac"]]), He = "/v2/control-planes/{controlPlaneId}/core-entities", Se = "/{workspace}", Ue = {
1155
+ }, Wa = /* @__PURE__ */ ue(ta, [["__scopeId", "data-v-f1bada7c"]]), Ce = "/v2/control-planes/{controlPlaneId}/core-entities", He = "/{workspace}", Se = {
1166
1156
  list: {
1167
- konnect: `${He}/upstreams/{upstreamId}/targets`,
1168
- kongManager: `${Se}/upstreams/{upstreamId}/targets`
1157
+ konnect: `${Ce}/upstreams/{upstreamId}/targets`,
1158
+ kongManager: `${He}/upstreams/{upstreamId}/targets`
1169
1159
  },
1170
1160
  form: {
1171
1161
  konnect: {
1172
- create: `${He}/upstreams/{upstreamId}/targets`,
1173
- edit: `${He}/upstreams/{upstreamId}/targets/{id}`,
1174
- validate: `${He}/v1/schemas/json/target/validate`
1162
+ create: `${Ce}/upstreams/{upstreamId}/targets`,
1163
+ edit: `${Ce}/upstreams/{upstreamId}/targets/{id}`,
1164
+ validate: `${Ce}/v1/schemas/json/target/validate`
1175
1165
  },
1176
1166
  kongManager: {
1177
- create: `${Se}/upstreams/{upstreamId}/targets`,
1178
- edit: `${Se}/upstreams/{upstreamId}/targets/{id}`,
1179
- validate: `${Se}/schemas/targets/validate`
1167
+ create: `${He}/upstreams/{upstreamId}/targets`,
1168
+ edit: `${He}/upstreams/{upstreamId}/targets/{id}`,
1169
+ validate: `${He}/schemas/targets/validate`
1180
1170
  }
1181
1171
  }
1182
- }, ta = { class: "kong-ui-entities-target-form" }, aa = { class: "target-form-container" }, la = {
1172
+ }, aa = { class: "kong-ui-entities-target-form" }, la = { class: "target-form-container" }, sa = {
1183
1173
  key: 0,
1184
1174
  class: "target-form-info"
1185
- }, sa = /* @__PURE__ */ oe({
1175
+ }, ia = /* @__PURE__ */ ie({
1186
1176
  __name: "TargetForm",
1187
1177
  props: {
1188
1178
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1206,11 +1196,11 @@ const ce = {
1206
1196
  },
1207
1197
  emits: ["update", "error", "loading", "cancel"],
1208
1198
  setup(a, { emit: R }) {
1209
- var ae;
1210
- const r = R, s = a, { i18n: { t: u } } = ce.useI18n(), { getMessageFromError: k } = Ht(), { axiosInstance: g } = Te((ae = s.config) == null ? void 0 : ae.axiosRequestConfig), V = q(() => {
1199
+ var te;
1200
+ const r = R, s = a, { i18n: { t: u } } = he.useI18n(), { getMessageFromError: k } = Ht(), { axiosInstance: g } = Fe((te = s.config) == null ? void 0 : te.axiosRequestConfig), V = q(() => {
1211
1201
  var v;
1212
- return Ue.form[s.config.app].edit.replace(/{upstreamId}/gi, ((v = s.config) == null ? void 0 : v.upstreamId) || "");
1213
- }), T = q(() => s.targetId ? he.Edit : he.Create), l = q(() => T.value === he.Edit ? u("targets.form.edit.title") : u("targets.form.create.title")), c = Ie({
1202
+ return Se.form[s.config.app].edit.replace(/{upstreamId}/gi, ((v = s.config) == null ? void 0 : v.upstreamId) || "");
1203
+ }), F = q(() => s.targetId ? oe.Edit : oe.Create), l = q(() => F.value === oe.Edit ? u("targets.form.edit.title") : u("targets.form.create.title")), c = Ue({
1214
1204
  fields: {
1215
1205
  target: "",
1216
1206
  weight: 100,
@@ -1218,7 +1208,7 @@ const ce = {
1218
1208
  },
1219
1209
  isReadonly: !1,
1220
1210
  errorMessage: ""
1221
- }), C = Ie({
1211
+ }), C = Ue({
1222
1212
  target: "",
1223
1213
  weight: 100,
1224
1214
  tags: ""
@@ -1229,7 +1219,7 @@ const ce = {
1229
1219
  }, t = q(() => {
1230
1220
  const v = parseInt(c.fields.weight.toString(), 10);
1231
1221
  return v < 0 || v > 65535;
1232
- }), D = q(
1222
+ }), B = q(
1233
1223
  () => JSON.stringify(c.fields) !== JSON.stringify(C) && !!c.fields.target && !!c.fields.weight && !t.value
1234
1224
  ), U = (v) => {
1235
1225
  var S;
@@ -1237,55 +1227,55 @@ const ce = {
1237
1227
  }, p = () => {
1238
1228
  c.errorMessage = "", r("cancel");
1239
1229
  }, H = q(() => {
1240
- var S, F;
1241
- let v = `${s.config.apiBaseUrl}${Ue.form[s.config.app].validate}`;
1242
- return s.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((S = s.config) == null ? void 0 : S.controlPlaneId) || "") : s.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (F = s.config) != null && F.workspace ? `/${s.config.workspace}` : "")), v = v.replace(/{id}/gi, s.targetId), v;
1243
- }), Y = q(() => {
1244
- var S, F, w, y;
1245
- let v = `${s.config.apiBaseUrl}${Ue.form[s.config.app][T.value]}`;
1246
- return s.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((S = s.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{upstreamId}/gi, ((F = s.config) == null ? void 0 : F.upstreamId) || "") : s.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (w = s.config) != null && w.workspace ? `/${s.config.workspace}` : "").replace(/{upstreamId}/gi, ((y = s.config) == null ? void 0 : y.upstreamId) || "")), v = v.replace(/{id}/gi, s.targetId), v;
1230
+ var S, T;
1231
+ let v = `${s.config.apiBaseUrl}${Se.form[s.config.app].validate}`;
1232
+ return s.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((S = s.config) == null ? void 0 : S.controlPlaneId) || "") : s.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (T = s.config) != null && T.workspace ? `/${s.config.workspace}` : "")), v = v.replace(/{id}/gi, s.targetId), v;
1233
+ }), G = q(() => {
1234
+ var S, T, w, y;
1235
+ let v = `${s.config.apiBaseUrl}${Se.form[s.config.app][F.value]}`;
1236
+ return s.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((S = s.config) == null ? void 0 : S.controlPlaneId) || "").replace(/{upstreamId}/gi, ((T = s.config) == null ? void 0 : T.upstreamId) || "") : s.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (w = s.config) != null && w.workspace ? `/${s.config.workspace}` : "").replace(/{upstreamId}/gi, ((y = s.config) == null ? void 0 : y.upstreamId) || "")), v = v.replace(/{id}/gi, s.targetId), v;
1247
1237
  }), O = q(() => {
1248
- var v, S, F;
1238
+ var v, S, T;
1249
1239
  return {
1250
1240
  target: c.fields.target,
1251
1241
  weight: parseInt(c.fields.weight),
1252
- tags: (F = (S = (v = c.fields.tags) == null ? void 0 : v.split(",")) == null ? void 0 : S.map((w) => String(w || "").trim())) == null ? void 0 : F.filter((w) => w !== ""),
1242
+ tags: (T = (S = (v = c.fields.tags) == null ? void 0 : v.split(",")) == null ? void 0 : S.map((w) => String(w || "").trim())) == null ? void 0 : T.filter((w) => w !== ""),
1253
1243
  upstream: { id: s.config.upstreamId }
1254
1244
  };
1255
- }), ee = async () => {
1245
+ }), Z = async () => {
1256
1246
  var v, S;
1257
1247
  try {
1258
1248
  c.isReadonly = !0, c.errorMessage = "";
1259
- let F;
1260
- if (await g.post(H.value, O.value), T.value === "create" ? F = await g.post(Y.value, O.value) : T.value === "edit" && (F = ((v = s.config) == null ? void 0 : v.app) === "konnect" ? await g.put(Y.value, O.value) : await g.patch(Y.value, O.value)), F) {
1261
- const { data: w } = F;
1249
+ let T;
1250
+ if (await g.post(H.value, O.value), F.value === "create" ? T = await g.post(G.value, O.value) : F.value === "edit" && (T = ((v = s.config) == null ? void 0 : v.app) === "konnect" ? await g.put(G.value, O.value) : await g.patch(G.value, O.value)), T) {
1251
+ const { data: w } = T;
1262
1252
  c.fields.target = (w == null ? void 0 : w.name) || "", c.fields.weight = (w == null ? void 0 : w.weight) ?? 100, c.fields.tags = ((S = w == null ? void 0 : w.tags) == null ? void 0 : S.join(", ")) || "", r("update", w), Object.assign(c.fields, m);
1263
1253
  }
1264
- } catch (F) {
1265
- c.errorMessage = k(F), r("error", F);
1254
+ } catch (T) {
1255
+ c.errorMessage = k(T), r("error", T);
1266
1256
  } finally {
1267
1257
  c.isReadonly = !1;
1268
1258
  }
1269
1259
  };
1270
- return me(() => s.targetId, () => {
1260
+ return ce(() => s.targetId, () => {
1271
1261
  Object.assign(c.fields, m);
1272
1262
  }), (v, S) => {
1273
- const F = x("KInput"), w = x("KPrompt");
1274
- return I(), E(w, {
1275
- "action-button-disabled": !D.value || c.isReadonly,
1263
+ const T = M("KInput"), w = M("KPrompt");
1264
+ return x(), j(w, {
1265
+ "action-button-disabled": !B.value || c.isReadonly,
1276
1266
  "action-button-text": e(u)("targets.form.buttons.save"),
1277
1267
  "cancel-button-text": e(u)("targets.form.buttons.cancel"),
1278
1268
  title: l.value,
1279
1269
  visible: a.isVisible,
1280
1270
  onCancel: p,
1281
- onProceed: ee
1271
+ onProceed: Z
1282
1272
  }, {
1283
1273
  default: n(() => [
1284
- b("div", ta, [
1274
+ b("div", aa, [
1285
1275
  h(e(St), {
1286
1276
  config: a.config,
1287
1277
  "edit-id": a.targetId,
1288
- "entity-type": e(Ke).Target,
1278
+ "entity-type": e(Ae).Target,
1289
1279
  "error-message": c.errorMessage,
1290
1280
  "fetch-url": V.value,
1291
1281
  "form-fields": O.value,
@@ -1296,11 +1286,11 @@ const ce = {
1296
1286
  onLoading: S[4] || (S[4] = (y) => v.$emit("loading", y))
1297
1287
  }, {
1298
1288
  default: n(() => [
1299
- b("div", aa, [
1300
- v.$slots.info ? (I(), se("div", la, [
1301
- gt(v.$slots, "info", {}, void 0, !0)
1302
- ])) : z("", !0),
1303
- h(F, {
1289
+ b("div", la, [
1290
+ v.$slots.info ? (x(), le("div", sa, [
1291
+ yt(v.$slots, "info", {}, void 0, !0)
1292
+ ])) : W("", !0),
1293
+ h(T, {
1304
1294
  modelValue: c.fields.target,
1305
1295
  "onUpdate:modelValue": S[0] || (S[0] = (y) => c.fields.target = y),
1306
1296
  modelModifiers: { trim: !0 },
@@ -1317,7 +1307,7 @@ const ce = {
1317
1307
  required: "",
1318
1308
  type: "text"
1319
1309
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1320
- h(F, {
1310
+ h(T, {
1321
1311
  modelValue: c.fields.weight,
1322
1312
  "onUpdate:modelValue": S[1] || (S[1] = (y) => c.fields.weight = y),
1323
1313
  autocomplete: "off",
@@ -1336,7 +1326,7 @@ const ce = {
1336
1326
  required: "",
1337
1327
  type: "number"
1338
1328
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
1339
- h(F, {
1329
+ h(T, {
1340
1330
  modelValue: c.fields.tags,
1341
1331
  "onUpdate:modelValue": S[2] || (S[2] = (y) => c.fields.tags = y),
1342
1332
  modelModifiers: { trim: !0 },
@@ -1359,7 +1349,7 @@ const ce = {
1359
1349
  }, 8, ["action-button-disabled", "action-button-text", "cancel-button-text", "title", "visible"]);
1360
1350
  };
1361
1351
  }
1362
- }), ia = /* @__PURE__ */ de(sa, [["__scopeId", "data-v-6a64b86e"]]), ra = { class: "kong-ui-entities-targets-list" }, oa = { class: "target-address" }, na = /* @__PURE__ */ oe({
1352
+ }), ra = /* @__PURE__ */ ue(ia, [["__scopeId", "data-v-6a64b86e"]]), oa = { class: "kong-ui-entities-targets-list" }, na = { class: "target-address" }, ha = /* @__PURE__ */ ie({
1363
1353
  __name: "TargetsList",
1364
1354
  props: {
1365
1355
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1400,22 +1390,22 @@ const ce = {
1400
1390
  emits: ["error", "copy:success", "copy:error", "delete:success", "health-actions:healthy", "health-actions:unhealthy", "create:target", "update:target"],
1401
1391
  setup(a, { emit: R }) {
1402
1392
  var d;
1403
- const r = R, s = a, { i18n: { t: u } } = ce.useI18n(), { axiosInstance: k } = Te((d = s.config) == null ? void 0 : d.axiosRequestConfig), g = M(1), V = q(() => s.config.app !== "kongManager" || !!s.config.disableSorting), l = {
1393
+ const r = R, s = a, { i18n: { t: u } } = he.useI18n(), { axiosInstance: k } = Fe((d = s.config) == null ? void 0 : d.axiosRequestConfig), g = P(1), V = q(() => s.config.app !== "kongManager" || !!s.config.disableSorting), l = {
1404
1394
  // the Target Address column is non-hidable
1405
1395
  target: { label: u("targets.list.table_headers.target_address"), sortable: !0, hidable: !1 },
1406
1396
  weight: { label: u("targets.list.table_headers.weight"), sortable: !0 },
1407
1397
  tags: { label: u("targets.list.table_headers.tags"), sortable: !1 }
1408
1398
  }, c = q(() => {
1409
- var o, A, Q, $;
1410
- let i = `${s.config.apiBaseUrl}${Ue.list[s.config.app]}`;
1411
- return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "").replace(/{upstreamId}/gi, ((A = s.config) == null ? void 0 : A.upstreamId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (Q = s.config) != null && Q.workspace ? `/${s.config.workspace}` : "").replace(/{upstreamId}/gi, (($ = s.config) == null ? void 0 : $.upstreamId) || "")), i;
1412
- }), { fetcher: C, fetcherState: m } = vt(s.config, c.value), t = () => {
1399
+ var o, I, A, X;
1400
+ let i = `${s.config.apiBaseUrl}${Se.list[s.config.app]}`;
1401
+ return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "").replace(/{upstreamId}/gi, ((I = s.config) == null ? void 0 : I.upstreamId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (A = s.config) != null && A.workspace ? `/${s.config.workspace}` : "").replace(/{upstreamId}/gi, ((X = s.config) == null ? void 0 : X.upstreamId) || "")), i;
1402
+ }), { fetcher: C, fetcherState: m } = gt(s.config, c.value), t = () => {
1413
1403
  g.value++;
1414
- }, D = M(null), U = M(!1), p = () => {
1404
+ }, B = P(null), U = P(!1), p = () => {
1415
1405
  L.value = !0;
1416
1406
  }, H = (i, o) => {
1417
- const A = i.id;
1418
- if (!o(A)) {
1407
+ const I = i.id;
1408
+ if (!o(I)) {
1419
1409
  r("copy:error", {
1420
1410
  entity: i,
1421
1411
  field: "id",
@@ -1426,11 +1416,11 @@ const ce = {
1426
1416
  r("copy:success", {
1427
1417
  entity: i,
1428
1418
  field: "id",
1429
- message: u("targets.copy.success", { val: A })
1419
+ message: u("targets.copy.success", { val: I })
1430
1420
  });
1431
- }, Y = (i, o) => {
1432
- const A = JSON.stringify(i);
1433
- if (!o(A)) {
1421
+ }, G = (i, o) => {
1422
+ const I = JSON.stringify(i);
1423
+ if (!o(I)) {
1434
1424
  r("copy:error", {
1435
1425
  entity: i,
1436
1426
  message: u("targets.errors.copy")
@@ -1442,35 +1432,35 @@ const ce = {
1442
1432
  message: u("targets.copy.success_brief")
1443
1433
  });
1444
1434
  }, O = (i) => {
1445
- J.value = i, L.value = !0;
1446
- }, ee = (i) => s.config.app === "konnect" ? !1 : s.config.canMarkHealthy(i), ae = (i) => s.config.app === "konnect" ? !1 : s.config.canMarkUnhealthy(i), v = M(void 0), S = M(!1), F = M(!1), w = M(""), y = bt(s.config, c.value), j = (i) => {
1435
+ Q.value = i, L.value = !0;
1436
+ }, Z = (i) => s.config.app === "konnect" ? !1 : s.config.canMarkHealthy(i), te = (i) => s.config.app === "konnect" ? !1 : s.config.canMarkUnhealthy(i), v = P(void 0), S = P(!1), T = P(!1), w = P(""), y = vt(s.config, c.value), D = (i) => {
1447
1437
  v.value = i, S.value = !0;
1448
- }, G = () => {
1438
+ }, J = () => {
1449
1439
  S.value = !1;
1450
- }, re = async () => {
1451
- var i, o, A;
1440
+ }, se = async () => {
1441
+ var i, o, I;
1452
1442
  if ((i = v.value) != null && i.id) {
1453
- F.value = !0;
1443
+ T.value = !0;
1454
1444
  try {
1455
- await k.delete(y(v.value.id)), F.value = !1, S.value = !1, g.value++, r("delete:success", v.value);
1456
- } catch (Q) {
1457
- w.value = ((A = (o = Q.response) == null ? void 0 : o.data) == null ? void 0 : A.message) || Q.message || u("targets.errors.delete"), r("error", Q);
1445
+ await k.delete(y(v.value.id)), T.value = !1, S.value = !1, g.value++, r("delete:success", v.value);
1446
+ } catch (A) {
1447
+ w.value = ((I = (o = A.response) == null ? void 0 : o.data) == null ? void 0 : I.message) || A.message || u("targets.errors.delete"), r("error", A);
1458
1448
  } finally {
1459
- F.value = !1;
1449
+ T.value = !1;
1460
1450
  }
1461
1451
  }
1462
- }, ie = M(!1);
1463
- me(m, (i) => {
1464
- var o, A, Q, $;
1465
- if (Array.isArray((o = i == null ? void 0 : i.response) == null ? void 0 : o.data) && (ie.value = i.response.data.length > 0), i.status === we.NoRecords ? U.value = !0 : U.value = !1, i.status === we.Error) {
1466
- D.value = {
1452
+ }, ae = P(!1);
1453
+ ce(m, (i) => {
1454
+ var o, I, A, X;
1455
+ if (Array.isArray((o = i == null ? void 0 : i.response) == null ? void 0 : o.data) && (ae.value = i.response.data.length > 0), i.status === we.NoRecords ? U.value = !0 : U.value = !1, i.status === we.Error) {
1456
+ B.value = {
1467
1457
  title: u("targets.errors.general")
1468
- }, ($ = (Q = (A = i.error) == null ? void 0 : A.response) == null ? void 0 : Q.data) != null && $.message && (D.value.message = i.error.response.data.message), r("error", i.error);
1458
+ }, (X = (A = (I = i.error) == null ? void 0 : I.response) == null ? void 0 : A.data) != null && X.message && (B.value.message = i.error.response.data.message), r("error", i.error);
1469
1459
  return;
1470
1460
  }
1471
- D.value = null;
1461
+ B.value = null;
1472
1462
  });
1473
- const P = M({
1463
+ const $ = P({
1474
1464
  ctaText: void 0,
1475
1465
  message: `${u("targets.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
1476
1466
  title: u("targets.title"),
@@ -1480,7 +1470,7 @@ const ce = {
1480
1470
  }
1481
1471
  });
1482
1472
  Me(async () => {
1483
- await s.canCreate() && (P.value.title = u("targets.list.empty_state.title"), P.value.ctaText = u("targets.actions.create"));
1473
+ await s.canCreate() && ($.value.title = u("targets.list.empty_state.title"), $.value.ctaText = u("targets.actions.create"));
1484
1474
  });
1485
1475
  const K = q(() => ({
1486
1476
  app: s.config.app,
@@ -1495,22 +1485,22 @@ const ce = {
1495
1485
  ...s.config.app === "kongManager" && {
1496
1486
  workspace: s.config.workspace
1497
1487
  }
1498
- })), J = M(""), L = M(!1), Z = (i) => {
1499
- J.value ? r("update:target", i) : r("create:target", i), _();
1488
+ })), Q = P(""), L = P(!1), Y = (i) => {
1489
+ Q.value ? r("update:target", i) : r("create:target", i), _();
1500
1490
  }, _ = () => {
1501
1491
  N(), g.value++;
1502
1492
  }, N = () => {
1503
- L.value = !1, J.value = "";
1493
+ L.value = !1, Q.value = "";
1504
1494
  };
1505
1495
  return (i, o) => {
1506
- const A = x("KButton"), Q = x("KBadge"), $ = x("KTruncate"), B = x("KDropdownItem"), le = x("KClipboardProvider");
1507
- return I(), se("div", ra, [
1508
- h(e(kt), {
1496
+ const I = M("KButton"), A = M("KDropdownItem"), X = M("KClipboardProvider");
1497
+ return x(), le("div", oa, [
1498
+ h(e(bt), {
1509
1499
  "cache-identifier": a.cacheIdentifier,
1510
1500
  "disable-sorting": V.value,
1511
- "empty-state-options": P.value,
1501
+ "empty-state-options": $.value,
1512
1502
  "enable-entity-actions": "",
1513
- "error-message": D.value,
1503
+ "error-message": B.value,
1514
1504
  fetcher: e(C),
1515
1505
  "fetcher-cache-key": g.value,
1516
1506
  "hide-toolbar": U.value,
@@ -1521,15 +1511,15 @@ const ce = {
1521
1511
  onSort: t
1522
1512
  }, {
1523
1513
  "toolbar-button": n(() => [
1524
- (I(), E(mt, {
1514
+ (x(), j(pt, {
1525
1515
  disabled: !a.useActionOutside,
1526
1516
  to: "#kong-ui-app-page-header-action-button"
1527
1517
  }, [
1528
- h(e(ue), {
1518
+ h(e(ne), {
1529
1519
  "auth-function": () => a.canCreate()
1530
1520
  }, {
1531
1521
  default: n(() => [
1532
- ft(h(A, {
1522
+ mt(h(I, {
1533
1523
  appearance: "primary",
1534
1524
  "data-testid": "toolbar-new-target",
1535
1525
  size: a.useActionOutside ? "medium" : "large",
@@ -1537,127 +1527,117 @@ const ce = {
1537
1527
  onClick: o[0] || (o[0] = () => s.config.createRoute ? void 0 : p())
1538
1528
  }, {
1539
1529
  default: n(() => [
1540
- h(e(Ne)),
1541
- W(" " + f(e(u)("targets.list.toolbar_actions.new_target")), 1)
1530
+ h(e(Ke)),
1531
+ z(" " + f(e(u)("targets.list.toolbar_actions.new_target")), 1)
1542
1532
  ]),
1543
1533
  _: 1
1544
1534
  }, 8, ["size", "to"]), [
1545
- [yt, ie.value]
1535
+ [ft, ae.value]
1546
1536
  ])
1547
1537
  ]),
1548
1538
  _: 1
1549
1539
  }, 8, ["auth-function"])
1550
1540
  ], 8, ["disabled"]))
1551
1541
  ]),
1552
- target: n(({ rowValue: X }) => [
1553
- b("span", oa, f(X), 1)
1542
+ target: n(({ rowValue: E }) => [
1543
+ b("span", na, f(E), 1)
1554
1544
  ]),
1555
- tags: n(({ rowValue: X }) => [
1556
- h($, null, {
1557
- default: n(() => [
1558
- (I(!0), se(be, null, Ae(X, (te) => (I(), E(Q, {
1559
- key: te,
1560
- "max-width": "auto"
1561
- }, {
1562
- default: n(() => [
1563
- W(f(te), 1)
1564
- ]),
1565
- _: 2
1566
- }, 1024))), 128))
1567
- ]),
1568
- _: 2
1569
- }, 1024)
1545
+ tags: n(({ rowValue: E }) => [
1546
+ h(e(kt), {
1547
+ "tag-max-width": "auto",
1548
+ tags: E
1549
+ }, null, 8, ["tags"])
1570
1550
  ]),
1571
- actions: n(({ row: X }) => [
1572
- h(le, null, {
1573
- default: n(({ copyToClipboard: te }) => [
1574
- h(B, {
1551
+ actions: n(({ row: E }) => [
1552
+ h(X, null, {
1553
+ default: n(({ copyToClipboard: ee }) => [
1554
+ h(A, {
1575
1555
  "data-testid": "action-entity-copy-id",
1576
- onClick: (pe) => H(X, te)
1556
+ onClick: (de) => H(E, ee)
1577
1557
  }, {
1578
1558
  default: n(() => [
1579
- W(f(e(u)("targets.actions.copy_id")), 1)
1559
+ z(f(e(u)("targets.actions.copy_id")), 1)
1580
1560
  ]),
1581
1561
  _: 2
1582
1562
  }, 1032, ["onClick"])
1583
1563
  ]),
1584
1564
  _: 2
1585
1565
  }, 1024),
1586
- h(le, null, {
1587
- default: n(({ copyToClipboard: te }) => [
1588
- h(B, {
1566
+ h(X, null, {
1567
+ default: n(({ copyToClipboard: ee }) => [
1568
+ h(A, {
1589
1569
  "data-testid": "action-entity-copy-json",
1590
- onClick: (pe) => Y(X, te)
1570
+ onClick: (de) => G(E, ee)
1591
1571
  }, {
1592
1572
  default: n(() => [
1593
- W(f(e(u)("targets.actions.copy_json")), 1)
1573
+ z(f(e(u)("targets.actions.copy_json")), 1)
1594
1574
  ]),
1595
1575
  _: 2
1596
1576
  }, 1032, ["onClick"])
1597
1577
  ]),
1598
1578
  _: 2
1599
1579
  }, 1024),
1600
- h(e(ue), {
1601
- "auth-function": () => a.canEdit(X)
1580
+ h(e(ne), {
1581
+ "auth-function": () => a.canEdit(E)
1602
1582
  }, {
1603
1583
  default: n(() => [
1604
- h(B, {
1584
+ h(A, {
1605
1585
  "data-testid": "action-entity-edit",
1606
1586
  "has-divider": "",
1607
- onClick: (te) => O(X.id)
1587
+ onClick: (ee) => O(E.id)
1608
1588
  }, {
1609
1589
  default: n(() => [
1610
- W(f(e(u)("targets.actions.edit")), 1)
1590
+ z(f(e(u)("targets.actions.edit")), 1)
1611
1591
  ]),
1612
1592
  _: 2
1613
1593
  }, 1032, ["onClick"])
1614
1594
  ]),
1615
1595
  _: 2
1616
1596
  }, 1032, ["auth-function"]),
1617
- h(e(ue), {
1618
- "auth-function": () => ee(X)
1597
+ h(e(ne), {
1598
+ "auth-function": () => Z(E)
1619
1599
  }, {
1620
1600
  default: n(() => [
1621
- h(B, {
1601
+ h(A, {
1622
1602
  "data-testid": "action-target-mark-healthy",
1623
- onClick: (te) => r("health-actions:healthy", X)
1603
+ onClick: (ee) => r("health-actions:healthy", E)
1624
1604
  }, {
1625
1605
  default: n(() => [
1626
- W(f(e(u)("targets.actions.mark_healthy")), 1)
1606
+ z(f(e(u)("targets.actions.mark_healthy")), 1)
1627
1607
  ]),
1628
1608
  _: 2
1629
1609
  }, 1032, ["onClick"])
1630
1610
  ]),
1631
1611
  _: 2
1632
1612
  }, 1032, ["auth-function"]),
1633
- h(e(ue), {
1634
- "auth-function": () => ae(X)
1613
+ h(e(ne), {
1614
+ "auth-function": () => te(E)
1635
1615
  }, {
1636
1616
  default: n(() => [
1637
- h(B, {
1617
+ h(A, {
1638
1618
  "data-testid": "action-target-mark-unhealthy",
1639
- onClick: (te) => r("health-actions:unhealthy", X)
1619
+ onClick: (ee) => r("health-actions:unhealthy", E)
1640
1620
  }, {
1641
1621
  default: n(() => [
1642
- W(f(e(u)("targets.actions.mark_unhealthy")), 1)
1622
+ z(f(e(u)("targets.actions.mark_unhealthy")), 1)
1643
1623
  ]),
1644
1624
  _: 2
1645
1625
  }, 1032, ["onClick"])
1646
1626
  ]),
1647
1627
  _: 2
1648
1628
  }, 1032, ["auth-function"]),
1649
- h(e(ue), {
1650
- "auth-function": () => a.canDelete(X)
1629
+ h(e(ne), {
1630
+ "auth-function": () => a.canDelete(E)
1651
1631
  }, {
1652
1632
  default: n(() => [
1653
- h(B, {
1633
+ h(A, {
1654
1634
  danger: "",
1655
1635
  "data-testid": "action-entity-delete",
1656
1636
  "has-divider": "",
1657
- onClick: (te) => j(X)
1637
+ onClick: (ee) => D(E)
1658
1638
  }, {
1659
1639
  default: n(() => [
1660
- W(f(e(u)("targets.actions.delete")), 1)
1640
+ z(f(e(u)("targets.actions.delete")), 1)
1661
1641
  ]),
1662
1642
  _: 2
1663
1643
  }, 1032, ["onClick"])
@@ -1668,27 +1648,27 @@ const ce = {
1668
1648
  _: 1
1669
1649
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "table-headers"]),
1670
1650
  h(e(_t), {
1671
- "action-pending": F.value,
1651
+ "action-pending": T.value,
1672
1652
  description: e(u)("targets.delete.description"),
1673
1653
  "entity-type": e(Ct).Target,
1674
1654
  error: w.value,
1675
1655
  "need-confirm": !1,
1676
1656
  title: e(u)("targets.delete.title"),
1677
1657
  visible: S.value,
1678
- onCancel: G,
1679
- onProceed: re
1658
+ onCancel: J,
1659
+ onProceed: se
1680
1660
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
1681
- h(ia, {
1661
+ h(ra, {
1682
1662
  config: K.value,
1683
1663
  "is-visible": L.value,
1684
- "target-id": J.value,
1664
+ "target-id": Q.value,
1685
1665
  onCancel: N,
1686
- onUpdate: Z
1666
+ onUpdate: Y
1687
1667
  }, $t({ _: 2 }, [
1688
1668
  i.$slots["form-info"] ? {
1689
1669
  name: "info",
1690
1670
  fn: n(() => [
1691
- gt(i.$slots, "form-info", {}, void 0, !0)
1671
+ yt(i.$slots, "form-info", {}, void 0, !0)
1692
1672
  ]),
1693
1673
  key: "0"
1694
1674
  } : void 0
@@ -1696,7 +1676,7 @@ const ce = {
1696
1676
  ]);
1697
1677
  };
1698
1678
  }
1699
- }), Wa = /* @__PURE__ */ de(na, [["__scopeId", "data-v-980cfece"]]), ha = { key: 1 }, ua = /* @__PURE__ */ oe({
1679
+ }), Ja = /* @__PURE__ */ ue(ha, [["__scopeId", "data-v-bdb1416b"]]), ua = { key: 1 }, ca = /* @__PURE__ */ ie({
1700
1680
  __name: "UpstreamsFormGeneralInfo",
1701
1681
  props: {
1702
1682
  config: {
@@ -1727,64 +1707,64 @@ const ce = {
1727
1707
  },
1728
1708
  emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
1729
1709
  setup(a, { emit: R }) {
1730
- var j, G, re, ie;
1731
- const { i18nT: r, i18n: { t: s } } = ce.useI18n(), u = a, k = R, {
1710
+ var D, J, se, ae;
1711
+ const { i18nT: r, i18n: { t: s } } = he.useI18n(), u = a, k = R, {
1732
1712
  debouncedQueryChange: g,
1733
1713
  loading: V,
1734
- loadItems: T,
1714
+ loadItems: F,
1735
1715
  results: l,
1736
1716
  allRecords: c
1737
- } = ct(u.config, (G = ke.form[(j = u.config) == null ? void 0 : j.app]) == null ? void 0 : G.getServices, "", {
1717
+ } = ut(u.config, (J = ve.form[(D = u.config) == null ? void 0 : D.app]) == null ? void 0 : J.getServices, "", {
1738
1718
  fetchedItemsKey: "data",
1739
1719
  searchKeys: ["host"]
1740
1720
  }), {
1741
1721
  debouncedQueryChange: C,
1742
1722
  loading: m,
1743
1723
  loadItems: t,
1744
- results: D
1745
- } = ct(u.config, (ie = ke.form[(re = u.config) == null ? void 0 : re.app]) == null ? void 0 : ie.getCertificates), U = M(""), p = q(() => {
1746
- var P;
1747
- return !!u.name && !((P = c.value) != null && P.some((K) => K.host === u.name));
1724
+ results: B
1725
+ } = ut(u.config, (ae = ve.form[(se = u.config) == null ? void 0 : se.app]) == null ? void 0 : ae.getCertificates), U = P(""), p = q(() => {
1726
+ var $;
1727
+ return !!u.name && !(($ = c.value) != null && $.some((K) => K.host === u.name));
1748
1728
  }), H = q(() => {
1749
- var K, J, L;
1750
- const P = p.value && u.name.includes((K = U.value) == null ? void 0 : K.toLowerCase());
1751
- return (L = l.value) == null ? void 0 : L.map((Z) => ({ label: Z.host, value: Z.id })).concat(
1752
- P ? [{ label: u.name, value: ((J = ee.value) == null ? void 0 : J.value) || u.name }] : []
1729
+ var K, Q, L;
1730
+ const $ = p.value && u.name.includes((K = U.value) == null ? void 0 : K.toLowerCase());
1731
+ return (L = l.value) == null ? void 0 : L.map((Y) => ({ label: Y.host, value: Y.id })).concat(
1732
+ $ ? [{ label: u.name, value: ((Q = Z.value) == null ? void 0 : Q.value) || u.name }] : []
1753
1733
  );
1754
- }), Y = q(() => {
1755
- var P;
1756
- return (P = D.value) == null ? void 0 : P.map((K) => ({ label: K.id, value: K.id }));
1757
- }), O = M(""), ee = M({ value: "", label: "" }), ae = q(() => {
1758
- var P, K;
1759
- return ((P = H.value.find((J) => J.value === O.value)) == null ? void 0 : P.label) || ((K = ee.value) == null ? void 0 : K.label);
1760
- }), v = (P) => {
1761
- U.value = P, g(P);
1762
- }, S = (P) => {
1763
- ee.value = P;
1764
- }, F = () => {
1765
- ee.value = { value: "", label: "" };
1766
- }, w = (P) => {
1767
- O.value = P, k("update:name", ae.value);
1768
- }, y = M(!1);
1734
+ }), G = q(() => {
1735
+ var $;
1736
+ return ($ = B.value) == null ? void 0 : $.map((K) => ({ label: K.id, value: K.id }));
1737
+ }), O = P(""), Z = P({ value: "", label: "" }), te = q(() => {
1738
+ var $, K;
1739
+ return (($ = H.value.find((Q) => Q.value === O.value)) == null ? void 0 : $.label) || ((K = Z.value) == null ? void 0 : K.label);
1740
+ }), v = ($) => {
1741
+ U.value = $, g($);
1742
+ }, S = ($) => {
1743
+ Z.value = $;
1744
+ }, T = () => {
1745
+ Z.value = { value: "", label: "" };
1746
+ }, w = ($) => {
1747
+ O.value = $, k("update:name", te.value);
1748
+ }, y = P(!1);
1769
1749
  return Me(async () => {
1770
- var P, K;
1750
+ var $, K;
1771
1751
  try {
1772
- y.value = !0, await T(), u.name && (O.value = ((K = (P = H.value.find((J) => J.label === u.name)) == null ? void 0 : P.value) == null ? void 0 : K.toString()) || u.name), await t();
1752
+ y.value = !0, await F(), u.name && (O.value = ((K = ($ = H.value.find((Q) => Q.label === u.name)) == null ? void 0 : $.value) == null ? void 0 : K.toString()) || u.name), await t();
1773
1753
  } finally {
1774
1754
  y.value = !1;
1775
1755
  }
1776
- }), (P, K) => {
1777
- const J = x("KSkeleton"), L = x("KSelect"), Z = x("KInput");
1778
- return I(), E(e(Ce), {
1756
+ }), ($, K) => {
1757
+ const Q = M("KSkeleton"), L = M("KSelect"), Y = M("KInput");
1758
+ return x(), j(e(_e), {
1779
1759
  class: "kong-ui-entities-upstreams-general-info",
1780
1760
  description: e(s)("upstreams.form.general_info.help"),
1781
1761
  title: e(s)("upstreams.form.general_info.title")
1782
1762
  }, {
1783
1763
  default: n(() => [
1784
- y.value ? (I(), E(J, {
1764
+ y.value ? (x(), j(Q, {
1785
1765
  key: 0,
1786
1766
  type: "form"
1787
- })) : (I(), se("div", ha, [
1767
+ })) : (x(), le("div", ua, [
1788
1768
  h(L, {
1789
1769
  class: "name-select margin-bottom-6",
1790
1770
  clearable: "",
@@ -1802,7 +1782,7 @@ const ce = {
1802
1782
  required: "",
1803
1783
  width: "100%",
1804
1784
  onItemAdded: S,
1805
- onItemRemoved: F,
1785
+ onItemRemoved: T,
1806
1786
  onQueryChange: v,
1807
1787
  "onUpdate:modelValue": w
1808
1788
  }, {
@@ -1819,7 +1799,7 @@ const ce = {
1819
1799
  ]),
1820
1800
  _: 1
1821
1801
  }, 8, ["items", "label", "loading", "model-value", "placeholder", "readonly", "onUpdate:modelValue"]),
1822
- h(Z, {
1802
+ h(Y, {
1823
1803
  autocomplete: "off",
1824
1804
  class: "margin-bottom-6",
1825
1805
  "data-testid": "upstreams-form-host-header",
@@ -1835,7 +1815,7 @@ const ce = {
1835
1815
  "data-testid": "upstreams-form-client-certificate",
1836
1816
  "enable-filtering": "",
1837
1817
  "filter-function": () => !0,
1838
- items: Y.value,
1818
+ items: G.value,
1839
1819
  label: e(s)("upstreams.form.fields.client_certificate.label"),
1840
1820
  "label-attributes": {
1841
1821
  info: e(s)("upstreams.form.fields.client_certificate.tooltip"),
@@ -1849,7 +1829,7 @@ const ce = {
1849
1829
  onQueryChange: e(C),
1850
1830
  "onUpdate:modelValue": K[1] || (K[1] = (_) => k("update:client-certificate", _))
1851
1831
  }, null, 8, ["items", "label", "label-attributes", "loading", "model-value", "placeholder", "readonly", "onQueryChange"]),
1852
- h(Z, {
1832
+ h(Y, {
1853
1833
  autocomplete: "off",
1854
1834
  "data-testid": "upstreams-form-tags",
1855
1835
  help: e(s)("upstreams.form.fields.tags.help"),
@@ -1870,10 +1850,10 @@ const ce = {
1870
1850
  }, 8, ["description", "title"]);
1871
1851
  };
1872
1852
  }
1873
- }), ca = /* @__PURE__ */ de(ua, [["__scopeId", "data-v-626ed41f"]]), xe = {
1853
+ }), da = /* @__PURE__ */ ue(ca, [["__scopeId", "data-v-626ed41f"]]), xe = {
1874
1854
  upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
1875
1855
  loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
1876
- }, da = { class: "fields-group-title" }, pa = { class: "fields-group-text" }, ma = { class: "fields-group-title" }, fa = { class: "fields-group-text" }, ya = /* @__PURE__ */ oe({
1856
+ }, pa = { class: "fields-group-title" }, ma = { class: "fields-group-text" }, fa = { class: "fields-group-title" }, ya = { class: "fields-group-text" }, ga = /* @__PURE__ */ ie({
1877
1857
  __name: "UpstreamsFormLoadBalancing",
1878
1858
  props: {
1879
1859
  algorithm: {
@@ -1932,7 +1912,7 @@ const ce = {
1932
1912
  },
1933
1913
  emits: ["update:algorithm", "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"],
1934
1914
  setup(a, { emit: R }) {
1935
- const { i18nT: r, i18n: { t: s } } = ce.useI18n(), { inRange: u } = Fe(), k = a, g = R, V = M([
1915
+ const { i18nT: r, i18n: { t: s } } = he.useI18n(), { inRange: u } = Te(), k = a, g = R, V = P([
1936
1916
  {
1937
1917
  label: s("upstreams.form.algorithms.round_robin_label"),
1938
1918
  value: "round-robin",
@@ -1953,7 +1933,7 @@ const ce = {
1953
1933
  value: "latency",
1954
1934
  selected: !1
1955
1935
  }
1956
- ]), T = M([
1936
+ ]), F = P([
1957
1937
  {
1958
1938
  label: s("upstreams.form.hash_labels.none"),
1959
1939
  value: "none",
@@ -1995,34 +1975,34 @@ const ce = {
1995
1975
  selected: !1
1996
1976
  }
1997
1977
  ]);
1998
- me(() => k.hashOn, (C, m) => {
1978
+ ce(() => k.hashOn, (C, m) => {
1999
1979
  m === "header" && C !== m && g("update:hash-on-header", ""), m === "cookie" && C !== m && (g("update:hash-on-cookie", ""), g("update:hash-on-cookie-path", "/")), m === "query_arg" && C !== m && g("update:hash-on-query-argument", ""), m === "uri_capture" && C !== m && g("update:hash-on-uri-capture", ""), (C === "cookie" || C === "none") && (g("update:hash-fallback", "none"), g("update:hash-fallback-header", ""), g("update:hash-fallback-query-argument", ""), g("update:hash-fallback-uri-capture", ""));
2000
- }), me(() => k.hashFallback, (C, m) => {
1980
+ }), ce(() => k.hashFallback, (C, m) => {
2001
1981
  m === "header" && C !== m && g("update:hash-fallback-header", ""), m === "cookie" && C !== m && (g("update:hash-on-cookie", ""), g("update:hash-on-cookie-path", "/")), m === "query_arg" && C !== m && g("update:hash-fallback-query-argument", ""), m === "uri_capture" && C !== m && g("update:hash-fallback-uri-capture", "");
2002
1982
  });
2003
1983
  const l = q(() => k.hashOn === "cookie" || k.hashOn === "none"), c = q(() => k.slots ? u(k.slots, $e, Pe) ? "" : s("upstreams.form.errors.in_range") : "");
2004
1984
  return (C, m) => {
2005
- const t = x("KExternalLink"), D = x("KSelect"), U = x("KInput"), p = x("KCard");
2006
- return I(), E(e(Ce), {
1985
+ const t = M("KExternalLink"), B = M("KSelect"), U = M("KInput"), p = M("KCard");
1986
+ return x(), j(e(_e), {
2007
1987
  class: "kong-ui-entities-upstreams-load-balancing",
2008
1988
  title: e(s)("upstreams.form.load_balancing.title")
2009
1989
  }, {
2010
1990
  description: n(() => [
2011
1991
  b("p", null, [
2012
- W(f(e(s)("upstreams.form.load_balancing.help")) + " ", 1),
1992
+ z(f(e(s)("upstreams.form.load_balancing.help")) + " ", 1),
2013
1993
  h(t, {
2014
1994
  "hide-icon": "",
2015
1995
  href: e(xe).upstreamObject
2016
1996
  }, {
2017
1997
  default: n(() => [
2018
- W(f(e(s)("upstreams.form.buttons.view_documentation")), 1)
1998
+ z(f(e(s)("upstreams.form.buttons.view_documentation")), 1)
2019
1999
  ]),
2020
2000
  _: 1
2021
2001
  }, 8, ["href"])
2022
2002
  ])
2023
2003
  ]),
2024
2004
  default: n(() => [
2025
- h(D, {
2005
+ h(B, {
2026
2006
  class: "algorithm-select",
2027
2007
  items: V.value,
2028
2008
  label: e(s)("upstreams.form.fields.algorithm.label"),
@@ -2047,18 +2027,18 @@ const ce = {
2047
2027
  }, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
2048
2028
  h(p, null, {
2049
2029
  default: n(() => [
2050
- b("h5", da, f(e(s)("upstreams.form.fields.hash_on.label")), 1),
2051
- b("p", pa, f(e(s)("upstreams.form.fields.hash_on.help")), 1),
2052
- h(D, {
2030
+ b("h5", pa, f(e(s)("upstreams.form.fields.hash_on.label")), 1),
2031
+ b("p", ma, f(e(s)("upstreams.form.fields.hash_on.help")), 1),
2032
+ h(B, {
2053
2033
  class: "hash-on-select",
2054
- items: T.value,
2034
+ items: F.value,
2055
2035
  label: e(s)("upstreams.form.fields.hash_on.label"),
2056
2036
  "model-value": a.hashOn,
2057
2037
  readonly: a.readonly,
2058
2038
  width: "100%",
2059
2039
  "onUpdate:modelValue": m[2] || (m[2] = (H) => g("update:hash-on", H))
2060
2040
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2061
- a.hashOn === "header" ? (I(), E(U, {
2041
+ a.hashOn === "header" ? (x(), j(U, {
2062
2042
  key: 0,
2063
2043
  autocomplete: "off",
2064
2044
  class: "margin-top-6",
@@ -2069,8 +2049,8 @@ const ce = {
2069
2049
  required: "",
2070
2050
  type: "text",
2071
2051
  "onUpdate:modelValue": m[3] || (m[3] = (H) => g("update:hash-on-header", H))
2072
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0),
2073
- a.hashOn === "cookie" ? (I(), se(be, { key: 1 }, [
2052
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0),
2053
+ a.hashOn === "cookie" ? (x(), le(Ie, { key: 1 }, [
2074
2054
  h(U, {
2075
2055
  autocomplete: "off",
2076
2056
  class: "margin-top-6",
@@ -2093,8 +2073,8 @@ const ce = {
2093
2073
  type: "text",
2094
2074
  "onUpdate:modelValue": m[5] || (m[5] = (H) => g("update:hash-on-cookie-path", H))
2095
2075
  }, null, 8, ["label", "model-value", "readonly"])
2096
- ], 64)) : z("", !0),
2097
- a.hashOn === "query_arg" ? (I(), E(U, {
2076
+ ], 64)) : W("", !0),
2077
+ a.hashOn === "query_arg" ? (x(), j(U, {
2098
2078
  key: 2,
2099
2079
  autocomplete: "off",
2100
2080
  class: "margin-top-6",
@@ -2105,8 +2085,8 @@ const ce = {
2105
2085
  required: "",
2106
2086
  type: "text",
2107
2087
  "onUpdate:modelValue": m[6] || (m[6] = (H) => g("update:hash-on-query-argument", H))
2108
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0),
2109
- a.hashOn === "uri_capture" ? (I(), E(U, {
2088
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0),
2089
+ a.hashOn === "uri_capture" ? (x(), j(U, {
2110
2090
  key: 3,
2111
2091
  autocomplete: "off",
2112
2092
  class: "margin-top-6",
@@ -2117,18 +2097,18 @@ const ce = {
2117
2097
  required: "",
2118
2098
  type: "text",
2119
2099
  "onUpdate:modelValue": m[7] || (m[7] = (H) => g("update:hash-on-uri-capture", H))
2120
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0)
2100
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0)
2121
2101
  ]),
2122
2102
  _: 1
2123
2103
  }),
2124
2104
  h(p, null, {
2125
2105
  default: n(() => [
2126
- b("h5", ma, f(e(s)("upstreams.form.fields.hash_fallback.label")), 1),
2127
- b("p", fa, f(e(s)("upstreams.form.fields.hash_fallback.help")), 1),
2128
- h(D, {
2106
+ b("h5", fa, f(e(s)("upstreams.form.fields.hash_fallback.label")), 1),
2107
+ b("p", ya, f(e(s)("upstreams.form.fields.hash_fallback.help")), 1),
2108
+ h(B, {
2129
2109
  class: "hash-fallback-select",
2130
2110
  disabled: l.value,
2131
- items: T.value,
2111
+ items: F.value,
2132
2112
  label: e(s)("upstreams.form.fields.hash_fallback.label"),
2133
2113
  "label-attributes": { tooltipAttributes: { "max-width": "400" } },
2134
2114
  "model-value": a.hashFallback,
@@ -2152,7 +2132,7 @@ const ce = {
2152
2132
  ]),
2153
2133
  _: 1
2154
2134
  }, 8, ["disabled", "items", "label", "model-value", "readonly"]),
2155
- a.hashFallback === "header" ? (I(), E(U, {
2135
+ a.hashFallback === "header" ? (x(), j(U, {
2156
2136
  key: 0,
2157
2137
  autocomplete: "off",
2158
2138
  class: "margin-top-6",
@@ -2163,8 +2143,8 @@ const ce = {
2163
2143
  required: "",
2164
2144
  type: "text",
2165
2145
  "onUpdate:modelValue": m[9] || (m[9] = (H) => g("update:hash-fallback-header", H))
2166
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0),
2167
- a.hashFallback === "cookie" ? (I(), se(be, { key: 1 }, [
2146
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0),
2147
+ a.hashFallback === "cookie" ? (x(), le(Ie, { key: 1 }, [
2168
2148
  h(U, {
2169
2149
  autocomplete: "off",
2170
2150
  class: "margin-top-6",
@@ -2187,8 +2167,8 @@ const ce = {
2187
2167
  type: "text",
2188
2168
  "onUpdate:modelValue": m[11] || (m[11] = (H) => g("update:hash-on-cookie-path", H))
2189
2169
  }, null, 8, ["label", "model-value", "readonly"])
2190
- ], 64)) : z("", !0),
2191
- a.hashFallback === "query_arg" ? (I(), E(U, {
2170
+ ], 64)) : W("", !0),
2171
+ a.hashFallback === "query_arg" ? (x(), j(U, {
2192
2172
  key: 2,
2193
2173
  autocomplete: "off",
2194
2174
  class: "margin-top-6",
@@ -2199,8 +2179,8 @@ const ce = {
2199
2179
  required: "",
2200
2180
  type: "text",
2201
2181
  "onUpdate:modelValue": m[12] || (m[12] = (H) => g("update:hash-fallback-query-argument", H))
2202
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0),
2203
- a.hashFallback === "uri_capture" ? (I(), E(U, {
2182
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0),
2183
+ a.hashFallback === "uri_capture" ? (x(), j(U, {
2204
2184
  key: 3,
2205
2185
  autocomplete: "off",
2206
2186
  class: "margin-top-6",
@@ -2211,7 +2191,7 @@ const ce = {
2211
2191
  required: "",
2212
2192
  type: "text",
2213
2193
  "onUpdate:modelValue": m[13] || (m[13] = (H) => g("update:hash-fallback-uri-capture", H))
2214
- }, null, 8, ["label", "model-value", "readonly"])) : z("", !0)
2194
+ }, null, 8, ["label", "model-value", "readonly"])) : W("", !0)
2215
2195
  ]),
2216
2196
  _: 1
2217
2197
  })
@@ -2220,7 +2200,7 @@ const ce = {
2220
2200
  }, 8, ["title"]);
2221
2201
  };
2222
2202
  }
2223
- }), ga = /* @__PURE__ */ de(ya, [["__scopeId", "data-v-d662db8e"]]), va = { class: "fields-group-title" }, ba = { class: "fields-group-text" }, ka = { class: "fields-group-title" }, _a = { class: "fields-group-text" }, Ca = /* @__PURE__ */ oe({
2203
+ }), va = /* @__PURE__ */ ue(ga, [["__scopeId", "data-v-d662db8e"]]), ba = { class: "fields-group-title" }, ka = { class: "fields-group-text" }, _a = { class: "fields-group-title" }, Ca = { class: "fields-group-text" }, Ha = /* @__PURE__ */ ie({
2224
2204
  __name: "UpstreamsFormHealthChecks",
2225
2205
  props: {
2226
2206
  activeHealthSwitch: {
@@ -2243,32 +2223,32 @@ const ce = {
2243
2223
  },
2244
2224
  emits: ["update:active-health-switch", "update:passive-health-switch", "update:healthchecks-threshold"],
2245
2225
  setup(a, { emit: R }) {
2246
- const { i18n: { t: r } } = ce.useI18n(), s = R;
2226
+ const { i18n: { t: r } } = he.useI18n(), s = R;
2247
2227
  return (u, k) => {
2248
- const g = x("KExternalLink"), V = x("KInputSwitch"), T = x("KCard"), l = x("KInput");
2249
- return I(), E(e(Ce), {
2228
+ const g = M("KExternalLink"), V = M("KInputSwitch"), F = M("KCard"), l = M("KInput");
2229
+ return x(), j(e(_e), {
2250
2230
  class: "kong-ui-entities-upstreams-healthchecks",
2251
2231
  title: e(r)("upstreams.form.health_check.title")
2252
2232
  }, {
2253
2233
  description: n(() => [
2254
2234
  b("p", null, [
2255
- W(f(e(r)("upstreams.form.health_check.help")) + " ", 1),
2235
+ z(f(e(r)("upstreams.form.health_check.help")) + " ", 1),
2256
2236
  h(g, {
2257
2237
  "hide-icon": "",
2258
2238
  href: e(xe).loadBalancing
2259
2239
  }, {
2260
2240
  default: n(() => [
2261
- W(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2241
+ z(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2262
2242
  ]),
2263
2243
  _: 1
2264
2244
  }, 8, ["href"])
2265
2245
  ])
2266
2246
  ]),
2267
2247
  default: n(() => [
2268
- h(T, null, {
2248
+ h(F, null, {
2269
2249
  default: n(() => [
2270
- b("h5", va, f(e(r)("upstreams.form.fields.active_health_checks.label")), 1),
2271
- b("p", ba, f(e(r)("upstreams.form.fields.active_health_checks.help")), 1),
2250
+ b("h5", ba, f(e(r)("upstreams.form.fields.active_health_checks.label")), 1),
2251
+ b("p", ka, f(e(r)("upstreams.form.fields.active_health_checks.help")), 1),
2272
2252
  h(V, {
2273
2253
  class: "active-health-switch",
2274
2254
  "data-testid": "active-health-switch",
@@ -2279,10 +2259,10 @@ const ce = {
2279
2259
  ]),
2280
2260
  _: 1
2281
2261
  }),
2282
- h(T, null, {
2262
+ h(F, null, {
2283
2263
  default: n(() => [
2284
- b("h5", ka, f(e(r)("upstreams.form.fields.passive_health_checks.label")), 1),
2285
- b("p", _a, f(e(r)("upstreams.form.fields.passive_health_checks.help")), 1),
2264
+ b("h5", _a, f(e(r)("upstreams.form.fields.passive_health_checks.label")), 1),
2265
+ b("p", Ca, f(e(r)("upstreams.form.fields.passive_health_checks.help")), 1),
2286
2266
  h(V, {
2287
2267
  class: "passive-health-switch",
2288
2268
  "data-testid": "passive-health-switch",
@@ -2297,8 +2277,8 @@ const ce = {
2297
2277
  autocomplete: "off",
2298
2278
  "data-testid": "upstreams-form-healthchecks-threshold",
2299
2279
  label: e(r)("upstreams.form.fields.healthchecks_threshold.label"),
2300
- max: e(Wt),
2301
- min: e(Qt),
2280
+ max: e(Jt),
2281
+ min: e(Wt),
2302
2282
  "model-value": a.healthchecksThreshold,
2303
2283
  readonly: a.readonly,
2304
2284
  type: "number",
@@ -2309,7 +2289,7 @@ const ce = {
2309
2289
  }, 8, ["title"]);
2310
2290
  };
2311
2291
  }
2312
- }), Ha = /* @__PURE__ */ de(Ca, [["__scopeId", "data-v-bfdc5a59"]]), Sa = "#d60027", Ua = { key: 2 }, Ia = { class: "fields-group-title" }, wa = { class: "fields-group-text" }, qa = { class: "fields-group-title" }, Ta = { class: "fields-group-text" }, Fa = /* @__PURE__ */ oe({
2292
+ }), Sa = /* @__PURE__ */ ue(Ha, [["__scopeId", "data-v-bfdc5a59"]]), Ua = "#d60027", Ia = { key: 2 }, wa = { class: "fields-group-title" }, qa = { class: "fields-group-text" }, Fa = { class: "fields-group-title" }, Ta = { class: "fields-group-text" }, xa = /* @__PURE__ */ ie({
2313
2293
  __name: "UpstreamsFormActiveHealthCheck",
2314
2294
  props: {
2315
2295
  config: {
@@ -2384,7 +2364,7 @@ const ce = {
2384
2364
  },
2385
2365
  emits: ["update:type", "update:http-path", "update:timeout", "update:concurrency", "update:https-sni", "update:verify-ssl", "update:headers", "update:interval", "update:successes", "update:http-statuses", "update:unhealthy-interval", "update:http-failures", "update:tcp-failures", "update:unhealthy-http-statuses", "update:unhealthy-timeouts"],
2386
2366
  setup(a, { emit: R }) {
2387
- const { i18n: { t: r } } = ce.useI18n(), { objectsAreEqual: s } = Fe(), u = a, k = R, g = M([
2367
+ const { i18n: { t: r } } = he.useI18n(), { objectsAreEqual: s } = Te(), u = a, k = R, g = P([
2388
2368
  {
2389
2369
  label: r("upstreams.form.healthcheck_type_labels.http"),
2390
2370
  value: "http",
@@ -2410,16 +2390,16 @@ const ce = {
2410
2390
  value: "grpcs",
2411
2391
  selected: !1
2412
2392
  }
2413
- ]), V = q(() => u.type === "https" || u.type === "grpcs"), T = q(() => u.type === "tcp"), {
2393
+ ]), V = q(() => u.type === "https" || u.type === "grpcs"), F = q(() => u.type === "tcp"), {
2414
2394
  trackNewItems: l
2415
- } = _e({ replaceId: !0 }), {
2395
+ } = ke({ replaceId: !0 }), {
2416
2396
  trackNewItems: c
2417
- } = _e({ replaceId: !0 });
2418
- me(() => u.type, (U, p) => {
2419
- p === "tcp" && U !== p && k("update:tcp-failures", "5"), (p === "https" || p === "grpcs") && U !== p && (k("update:https-sni", ""), k("update:verify-ssl", !1)), p !== "tcp" && U === "tcp" && (k("update:http-path", "/"), k("update:http-statuses", qt), k("update:unhealthy-http-statuses", Ft));
2397
+ } = ke({ replaceId: !0 });
2398
+ ce(() => u.type, (U, p) => {
2399
+ p === "tcp" && U !== p && k("update:tcp-failures", "5"), (p === "https" || p === "grpcs") && U !== p && (k("update:https-sni", ""), k("update:verify-ssl", !1)), p !== "tcp" && U === "tcp" && (k("update:http-path", "/"), k("update:http-statuses", qt), k("update:unhealthy-http-statuses", Tt));
2420
2400
  });
2421
- const C = M([{ key: "", values: "" }]);
2422
- me(() => u.headers, (U) => {
2401
+ const C = P([{ key: "", values: "" }]);
2402
+ ce(() => u.headers, (U) => {
2423
2403
  s(C.value, U) || (C.value = [...U]);
2424
2404
  }, {
2425
2405
  immediate: !0,
@@ -2429,24 +2409,24 @@ const ce = {
2429
2409
  k("update:headers", C.value);
2430
2410
  }, t = () => {
2431
2411
  C.value.push({ key: "", values: "" }), m();
2432
- }, D = (U) => {
2412
+ }, B = (U) => {
2433
2413
  U === 0 && C.value.length === 1 ? C.value[0] = { key: "", values: "" } : C.value.splice(U, 1), m();
2434
2414
  };
2435
2415
  return (U, p) => {
2436
- const H = x("KExternalLink"), Y = x("KSelect"), O = x("KInput"), ee = x("KCheckbox"), ae = x("KLabel"), v = x("KButton"), S = x("KMultiselect"), F = x("KCard");
2437
- return I(), E(e(Ce), {
2416
+ const H = M("KExternalLink"), G = M("KSelect"), O = M("KInput"), Z = M("KCheckbox"), te = M("KLabel"), v = M("KButton"), S = M("KMultiselect"), T = M("KCard");
2417
+ return x(), j(e(_e), {
2438
2418
  class: "kong-ui-entities-upstreams-active-healthcheck",
2439
2419
  title: e(r)("upstreams.form.active_health_check.title")
2440
2420
  }, {
2441
2421
  description: n(() => [
2442
2422
  b("p", null, [
2443
- W(f(e(r)("upstreams.form.active_health_check.help")) + " ", 1),
2423
+ z(f(e(r)("upstreams.form.active_health_check.help")) + " ", 1),
2444
2424
  h(H, {
2445
2425
  "hide-icon": "",
2446
2426
  href: e(xe).upstreamObject
2447
2427
  }, {
2448
2428
  default: n(() => [
2449
- W(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2429
+ z(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2450
2430
  ]),
2451
2431
  _: 1
2452
2432
  }, 8, ["href"])
@@ -2455,7 +2435,7 @@ const ce = {
2455
2435
  default: n(() => {
2456
2436
  var w;
2457
2437
  return [
2458
- h(Y, {
2438
+ h(G, {
2459
2439
  class: "active-healthcheck-type-select",
2460
2440
  items: g.value,
2461
2441
  label: e(r)("upstreams.form.fields.active_healthcheck_type.label"),
@@ -2464,7 +2444,7 @@ const ce = {
2464
2444
  width: "100%",
2465
2445
  "onUpdate:modelValue": p[0] || (p[0] = (y) => k("update:type", y))
2466
2446
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2467
- T.value ? z("", !0) : (I(), E(O, {
2447
+ F.value ? W("", !0) : (x(), j(O, {
2468
2448
  key: 0,
2469
2449
  autocomplete: "off",
2470
2450
  "data-testid": "active-healthcheck-http-path",
@@ -2478,8 +2458,8 @@ const ce = {
2478
2458
  autocomplete: "off",
2479
2459
  "data-testid": "active-healthcheck-timeout",
2480
2460
  label: e(r)("upstreams.form.fields.timeout.label"),
2481
- max: e(zt),
2482
- min: e(Jt),
2461
+ max: e(Gt),
2462
+ min: e(zt),
2483
2463
  "model-value": a.timeout,
2484
2464
  readonly: a.readonly,
2485
2465
  type: "number",
@@ -2489,14 +2469,14 @@ const ce = {
2489
2469
  autocomplete: "off",
2490
2470
  "data-testid": "active-healthcheck-concurrency",
2491
2471
  label: e(r)("upstreams.form.fields.concurrency.label"),
2492
- max: e(Xt),
2493
- min: e(Gt),
2472
+ max: e(Yt),
2473
+ min: e(Xt),
2494
2474
  "model-value": a.concurrency,
2495
2475
  readonly: a.readonly,
2496
2476
  type: "number",
2497
2477
  "onUpdate:modelValue": p[3] || (p[3] = (y) => k("update:concurrency", y))
2498
2478
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2499
- V.value ? (I(), se(be, { key: 1 }, [
2479
+ V.value ? (x(), le(Ie, { key: 1 }, [
2500
2480
  h(O, {
2501
2481
  autocomplete: "off",
2502
2482
  class: "margin-bottom-6",
@@ -2507,43 +2487,43 @@ const ce = {
2507
2487
  type: "text",
2508
2488
  "onUpdate:modelValue": p[4] || (p[4] = (y) => k("update:https-sni", y))
2509
2489
  }, null, 8, ["label", "model-value", "readonly"]),
2510
- h(ee, {
2490
+ h(Z, {
2511
2491
  "data-testid": "active-healthcheck-verify-ssl",
2512
2492
  disabled: a.readonly,
2513
2493
  label: e(r)("upstreams.form.fields.verify_ssl.label"),
2514
2494
  "model-value": a.verifySsl,
2515
2495
  "onUpdate:modelValue": p[5] || (p[5] = (y) => k("update:verify-ssl", y))
2516
2496
  }, null, 8, ["disabled", "label", "model-value"])
2517
- ], 64)) : z("", !0),
2518
- ((w = a.config) == null ? void 0 : w.app) === "kongManager" ? (I(), se("div", Ua, [
2519
- h(ae, {
2497
+ ], 64)) : W("", !0),
2498
+ ((w = a.config) == null ? void 0 : w.app) === "kongManager" ? (x(), le("div", Ia, [
2499
+ h(te, {
2520
2500
  info: e(r)("upstreams.form.fields.headers.tooltip_active"),
2521
2501
  "tooltip-attributes": { maxWidth: "250px" }
2522
2502
  }, {
2523
2503
  default: n(() => [
2524
- W(f(e(r)("upstreams.form.fields.headers.label")), 1)
2504
+ z(f(e(r)("upstreams.form.fields.headers.label")), 1)
2525
2505
  ]),
2526
2506
  _: 1
2527
2507
  }, 8, ["info"]),
2528
2508
  b("div", null, [
2529
- (I(!0), se(be, null, Ae(C.value, (y, j) => (I(), se("div", {
2530
- key: `${y.header}_${j}`,
2531
- class: Pt(["headers-row", { "margin-top-6": j > 0 }])
2509
+ (x(!0), le(Ie, null, Pt(C.value, (y, D) => (x(), le("div", {
2510
+ key: `${y.header}_${D}`,
2511
+ class: Mt(["headers-row", { "margin-top-6": D > 0 }])
2532
2512
  }, [
2533
2513
  h(O, {
2534
- modelValue: C.value[j].key,
2535
- "onUpdate:modelValue": (G) => C.value[j].key = G,
2514
+ modelValue: C.value[D].key,
2515
+ "onUpdate:modelValue": (J) => C.value[D].key = J,
2536
2516
  autocomplete: "off",
2537
- "data-testid": `active-healthcheck-headers-header-${j + 1}`,
2517
+ "data-testid": `active-healthcheck-headers-header-${D + 1}`,
2538
2518
  readonly: a.readonly,
2539
2519
  type: "text",
2540
2520
  onBlur: m
2541
2521
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
2542
2522
  h(O, {
2543
- modelValue: C.value[j].values,
2544
- "onUpdate:modelValue": (G) => C.value[j].values = G,
2523
+ modelValue: C.value[D].values,
2524
+ "onUpdate:modelValue": (J) => C.value[D].values = J,
2545
2525
  autocomplete: "off",
2546
- "data-testid": `active-healthcheck-headers-value-${j + 1}`,
2526
+ "data-testid": `active-healthcheck-headers-value-${D + 1}`,
2547
2527
  readonly: a.readonly,
2548
2528
  type: "text",
2549
2529
  onBlur: m
@@ -2554,17 +2534,17 @@ const ce = {
2554
2534
  "data-testid": "btn-remove-header",
2555
2535
  disabled: C.value.length === 1,
2556
2536
  icon: "",
2557
- onClick: (G) => D(j)
2537
+ onClick: (J) => B(D)
2558
2538
  }, {
2559
2539
  default: n(() => [
2560
- h(e(Vt), {
2540
+ h(e(Et), {
2561
2541
  class: "delete-item",
2562
- color: C.value.length > 1 ? e(Sa) : void 0
2542
+ color: C.value.length > 1 ? e(Ua) : void 0
2563
2543
  }, null, 8, ["color"])
2564
2544
  ]),
2565
2545
  _: 2
2566
2546
  }, 1032, ["disabled", "onClick"]),
2567
- C.value && j === C.value.length - 1 ? (I(), E(v, {
2547
+ C.value && D === C.value.length - 1 ? (x(), j(v, {
2568
2548
  key: 0,
2569
2549
  appearance: "tertiary",
2570
2550
  class: "btn-add-header",
@@ -2573,25 +2553,25 @@ const ce = {
2573
2553
  onClick: t
2574
2554
  }, {
2575
2555
  default: n(() => [
2576
- h(e(Ne))
2556
+ h(e(Ke))
2577
2557
  ]),
2578
2558
  _: 1
2579
- })) : z("", !0)
2559
+ })) : W("", !0)
2580
2560
  ], 2))), 128))
2581
2561
  ])
2582
- ])) : z("", !0),
2583
- h(F, null, {
2562
+ ])) : W("", !0),
2563
+ h(T, null, {
2584
2564
  default: n(() => [
2585
- b("h5", Ia, f(e(r)("upstreams.form.healthy.label")), 1),
2586
- b("p", wa, f(e(r)("upstreams.form.healthy.help")), 1),
2565
+ b("h5", wa, f(e(r)("upstreams.form.healthy.label")), 1),
2566
+ b("p", qa, f(e(r)("upstreams.form.healthy.help")), 1),
2587
2567
  h(O, {
2588
2568
  autocomplete: "off",
2589
2569
  class: "margin-bottom-6",
2590
2570
  "data-testid": "active-healthcheck-interval",
2591
2571
  help: e(r)("upstreams.form.fields.interval.help"),
2592
2572
  label: e(r)("upstreams.form.fields.interval.label"),
2593
- max: e(pt),
2594
- min: e(dt),
2573
+ max: e(dt),
2574
+ min: e(ct),
2595
2575
  "model-value": a.interval,
2596
2576
  readonly: a.readonly,
2597
2577
  type: "number",
@@ -2601,14 +2581,14 @@ const ce = {
2601
2581
  autocomplete: "off",
2602
2582
  "data-testid": "active-healthcheck-successes",
2603
2583
  label: e(r)("upstreams.form.fields.successes.label"),
2604
- max: e(ve),
2605
- min: e(ge),
2584
+ max: e(ge),
2585
+ min: e(ye),
2606
2586
  "model-value": a.successes,
2607
2587
  readonly: a.readonly,
2608
2588
  type: "number",
2609
2589
  "onUpdate:modelValue": p[7] || (p[7] = (y) => k("update:successes", y))
2610
2590
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2611
- T.value ? z("", !0) : (I(), E(S, {
2591
+ F.value ? W("", !0) : (x(), j(S, {
2612
2592
  key: 0,
2613
2593
  autocomplete: "off",
2614
2594
  class: "margin-top-6 active-healthcheck-http-statuses",
@@ -2625,9 +2605,9 @@ const ce = {
2625
2605
  ]),
2626
2606
  _: 1
2627
2607
  }),
2628
- h(F, null, {
2608
+ h(T, null, {
2629
2609
  default: n(() => [
2630
- b("h5", qa, f(e(r)("upstreams.form.unhealthy.label")), 1),
2610
+ b("h5", Fa, f(e(r)("upstreams.form.unhealthy.label")), 1),
2631
2611
  b("p", Ta, f(e(r)("upstreams.form.unhealthy.help")), 1),
2632
2612
  h(O, {
2633
2613
  autocomplete: "off",
@@ -2635,8 +2615,8 @@ const ce = {
2635
2615
  "data-testid": "active-healthcheck-unhealthy-interval",
2636
2616
  help: e(r)("upstreams.form.fields.interval.help"),
2637
2617
  label: e(r)("upstreams.form.fields.interval.label"),
2638
- max: e(pt),
2639
- min: e(dt),
2618
+ max: e(dt),
2619
+ min: e(ct),
2640
2620
  "model-value": a.unhealthyInterval,
2641
2621
  readonly: a.readonly,
2642
2622
  type: "number",
@@ -2647,27 +2627,27 @@ const ce = {
2647
2627
  class: "margin-bottom-6",
2648
2628
  "data-testid": "active-healthcheck-tcp-failures",
2649
2629
  label: e(r)("upstreams.form.fields.tcp_failures.label"),
2650
- max: e(ve),
2651
- min: e(ge),
2630
+ max: e(ge),
2631
+ min: e(ye),
2652
2632
  "model-value": a.tcpFailures,
2653
2633
  readonly: a.readonly,
2654
2634
  type: "number",
2655
2635
  "onUpdate:modelValue": p[12] || (p[12] = (y) => k("update:tcp-failures", y))
2656
2636
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2657
- T.value ? z("", !0) : (I(), E(O, {
2637
+ F.value ? W("", !0) : (x(), j(O, {
2658
2638
  key: 0,
2659
2639
  autocomplete: "off",
2660
2640
  class: "margin-bottom-6",
2661
2641
  "data-testid": "active-healthcheck-http-failures",
2662
2642
  label: e(r)("upstreams.form.fields.http_failures.label"),
2663
- max: e(ve),
2664
- min: e(ge),
2643
+ max: e(ge),
2644
+ min: e(ye),
2665
2645
  "model-value": a.httpFailures,
2666
2646
  readonly: a.readonly,
2667
2647
  type: "number",
2668
2648
  "onUpdate:modelValue": p[13] || (p[13] = (y) => k("update:http-failures", y))
2669
2649
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
2670
- T.value ? z("", !0) : (I(), E(S, {
2650
+ F.value ? W("", !0) : (x(), j(S, {
2671
2651
  key: 1,
2672
2652
  autocomplete: "off",
2673
2653
  class: "margin-bottom-6 active-healthcheck-unhealthy-http-statuses",
@@ -2701,7 +2681,7 @@ const ce = {
2701
2681
  }, 8, ["title"]);
2702
2682
  };
2703
2683
  }
2704
- }), xa = /* @__PURE__ */ de(Fa, [["__scopeId", "data-v-efccf560"]]), Oa = { class: "fields-group-title" }, $a = { class: "fields-group-text" }, Pa = { class: "fields-group-title" }, Ma = { class: "fields-group-text" }, Aa = /* @__PURE__ */ oe({
2684
+ }), Oa = /* @__PURE__ */ ue(xa, [["__scopeId", "data-v-efccf560"]]), $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Ma = { class: "fields-group-title" }, Aa = { class: "fields-group-text" }, Ka = /* @__PURE__ */ ie({
2705
2685
  __name: "UpstreamsFormPassiveHealthCheck",
2706
2686
  props: {
2707
2687
  type: {
@@ -2740,7 +2720,7 @@ const ce = {
2740
2720
  },
2741
2721
  emits: ["update:type", "update:successes", "update:http-statuses", "update:timeouts", "update:http-failures", "update:unhealthy-http-statuses", "update:tcp-failures"],
2742
2722
  setup(a, { emit: R }) {
2743
- const { i18n: { t: r } } = ce.useI18n(), s = a, u = R, k = M([
2723
+ const { i18n: { t: r } } = he.useI18n(), s = a, u = R, k = P([
2744
2724
  {
2745
2725
  label: r("upstreams.form.healthcheck_type_labels.http"),
2746
2726
  value: "http",
@@ -2768,26 +2748,26 @@ const ce = {
2768
2748
  }
2769
2749
  ]), g = q(() => s.type === "tcp"), {
2770
2750
  trackNewItems: V
2771
- } = _e({ replaceId: !0 }), {
2772
- trackNewItems: T
2773
- } = _e({ replaceId: !0 });
2774
- return me(() => s.type, (l, c) => {
2775
- c === "tcp" && l !== c && u("update:tcp-failures", "5"), c !== "tcp" && l === "tcp" && (u("update:http-statuses", Tt), u("update:unhealthy-http-statuses", xt));
2751
+ } = ke({ replaceId: !0 }), {
2752
+ trackNewItems: F
2753
+ } = ke({ replaceId: !0 });
2754
+ return ce(() => s.type, (l, c) => {
2755
+ c === "tcp" && l !== c && u("update:tcp-failures", "5"), c !== "tcp" && l === "tcp" && (u("update:http-statuses", Ft), u("update:unhealthy-http-statuses", xt));
2776
2756
  }), (l, c) => {
2777
- const C = x("KExternalLink"), m = x("KSelect"), t = x("KInput"), D = x("KMultiselect"), U = x("KCard");
2778
- return I(), E(e(Ce), {
2757
+ const C = M("KExternalLink"), m = M("KSelect"), t = M("KInput"), B = M("KMultiselect"), U = M("KCard");
2758
+ return x(), j(e(_e), {
2779
2759
  class: "kong-ui-entities-upstreams-passive-healthcheck",
2780
2760
  title: e(r)("upstreams.form.passive_health_check.title")
2781
2761
  }, {
2782
2762
  description: n(() => [
2783
2763
  b("p", null, [
2784
- W(f(e(r)("upstreams.form.passive_health_check.help")) + " ", 1),
2764
+ z(f(e(r)("upstreams.form.passive_health_check.help")) + " ", 1),
2785
2765
  h(C, {
2786
2766
  "hide-icon": "",
2787
2767
  href: e(xe).upstreamObject
2788
2768
  }, {
2789
2769
  default: n(() => [
2790
- W(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2770
+ z(f(e(r)("upstreams.form.buttons.view_documentation")), 1)
2791
2771
  ]),
2792
2772
  _: 1
2793
2773
  }, 8, ["href"])
@@ -2805,20 +2785,20 @@ const ce = {
2805
2785
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2806
2786
  h(U, null, {
2807
2787
  default: n(() => [
2808
- b("h5", Oa, f(e(r)("upstreams.form.passive_healthy.label")), 1),
2809
- b("p", $a, f(e(r)("upstreams.form.passive_healthy.help")), 1),
2788
+ b("h5", $a, f(e(r)("upstreams.form.passive_healthy.label")), 1),
2789
+ b("p", Pa, f(e(r)("upstreams.form.passive_healthy.help")), 1),
2810
2790
  h(t, {
2811
2791
  autocomplete: "off",
2812
2792
  "data-testid": "passive-healthcheck-successes",
2813
2793
  label: e(r)("upstreams.form.fields.successes.label"),
2814
- max: e(ve),
2815
- min: e(ge),
2794
+ max: e(ge),
2795
+ min: e(ye),
2816
2796
  "model-value": a.successes,
2817
2797
  readonly: a.readonly,
2818
2798
  type: "number",
2819
2799
  "onUpdate:modelValue": c[1] || (c[1] = (p) => u("update:successes", p))
2820
2800
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2821
- g.value ? z("", !0) : (I(), E(D, {
2801
+ g.value ? W("", !0) : (x(), j(B, {
2822
2802
  key: 0,
2823
2803
  class: "margin-top-6 passive-healthcheck-http-statuses",
2824
2804
  "enable-item-creation": "",
@@ -2836,8 +2816,8 @@ const ce = {
2836
2816
  }),
2837
2817
  h(U, null, {
2838
2818
  default: n(() => [
2839
- b("h5", Pa, f(e(r)("upstreams.form.passive_unhealthy.label")), 1),
2840
- b("p", Ma, f(e(r)("upstreams.form.passive_unhealthy.help")), 1),
2819
+ b("h5", Ma, f(e(r)("upstreams.form.passive_unhealthy.label")), 1),
2820
+ b("p", Aa, f(e(r)("upstreams.form.passive_unhealthy.help")), 1),
2841
2821
  h(t, {
2842
2822
  autocomplete: "off",
2843
2823
  "data-testid": "passive-healthcheck-timeouts",
@@ -2854,27 +2834,27 @@ const ce = {
2854
2834
  class: "margin-top-6",
2855
2835
  "data-testid": "passive-healthcheck-tcp-failures",
2856
2836
  label: e(r)("upstreams.form.fields.tcp_failures.label"),
2857
- max: e(ve),
2858
- min: e(ge),
2837
+ max: e(ge),
2838
+ min: e(ye),
2859
2839
  "model-value": a.tcpFailures,
2860
2840
  readonly: a.readonly,
2861
2841
  type: "number",
2862
2842
  "onUpdate:modelValue": c[6] || (c[6] = (p) => u("update:tcp-failures", p))
2863
2843
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2864
- g.value ? z("", !0) : (I(), E(t, {
2844
+ g.value ? W("", !0) : (x(), j(t, {
2865
2845
  key: 0,
2866
2846
  autocomplete: "off",
2867
2847
  class: "margin-top-6",
2868
2848
  "data-testid": "passive-healthcheck-http-failures",
2869
2849
  label: e(r)("upstreams.form.fields.http_failures.label"),
2870
- max: e(ve),
2871
- min: e(ge),
2850
+ max: e(ge),
2851
+ min: e(ye),
2872
2852
  "model-value": a.httpFailures,
2873
2853
  readonly: a.readonly,
2874
2854
  type: "number",
2875
2855
  "onUpdate:modelValue": c[7] || (c[7] = (p) => u("update:http-failures", p))
2876
2856
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
2877
- g.value ? z("", !0) : (I(), E(D, {
2857
+ g.value ? W("", !0) : (x(), j(B, {
2878
2858
  key: 1,
2879
2859
  autocomplete: "off",
2880
2860
  class: "margin-top-6 passive-healthcheck-unhealthy-http-statuses",
@@ -2884,8 +2864,8 @@ const ce = {
2884
2864
  "model-value": a.unhealthyHttpStatuses,
2885
2865
  readonly: a.readonly,
2886
2866
  width: "100%",
2887
- onItemAdded: c[8] || (c[8] = (p) => e(T)(p, !0)),
2888
- onItemRemoved: c[9] || (c[9] = (p) => e(T)(p, !1)),
2867
+ onItemAdded: c[8] || (c[8] = (p) => e(F)(p, !0)),
2868
+ onItemRemoved: c[9] || (c[9] = (p) => e(F)(p, !1)),
2889
2869
  "onUpdate:modelValue": c[10] || (c[10] = (p) => u("update:unhealthy-http-statuses", p))
2890
2870
  }, null, 8, ["items", "label", "model-value", "readonly"]))
2891
2871
  ]),
@@ -2896,7 +2876,7 @@ const ce = {
2896
2876
  }, 8, ["title"]);
2897
2877
  };
2898
2878
  }
2899
- }), Ka = /* @__PURE__ */ de(Aa, [["__scopeId", "data-v-5bd9952e"]]), Na = { class: "kong-ui-entities-upstreams-form" }, Va = /* @__PURE__ */ oe({
2879
+ }), Na = /* @__PURE__ */ ue(Ka, [["__scopeId", "data-v-5bd9952e"]]), Va = { class: "kong-ui-entities-upstreams-form" }, Ea = /* @__PURE__ */ ie({
2900
2880
  __name: "UpstreamsForm",
2901
2881
  props: {
2902
2882
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2915,28 +2895,28 @@ const ce = {
2915
2895
  emits: ["update", "error", "loading"],
2916
2896
  setup(a, { emit: R }) {
2917
2897
  var N;
2918
- const r = a, s = R, { inRange: u, stringToNumberArray: k, upstreamsResponseToFields: g, getDefaultUpstreamFields: V, objectsAreEqual: T, cloneDeep: l } = Fe(), { axiosInstance: c } = Te((N = r.config) == null ? void 0 : N.axiosRequestConfig), { getMessageFromError: C } = Ht(), m = Ut(), t = Ie({
2898
+ const r = a, s = R, { inRange: u, stringToNumberArray: k, upstreamsResponseToFields: g, getDefaultUpstreamFields: V, objectsAreEqual: F, cloneDeep: l } = Te(), { axiosInstance: c } = Fe((N = r.config) == null ? void 0 : N.axiosRequestConfig), { getMessageFromError: C } = Ht(), m = Ut(), t = Ue({
2919
2899
  fields: V(),
2920
2900
  readonly: !1,
2921
2901
  errorMessage: ""
2922
- }), D = Ie(V()), U = q(() => !T(t.fields, D)), p = (d) => {
2902
+ }), B = Ue(V()), U = q(() => !F(t.fields, B)), p = (d) => {
2923
2903
  t.fields.activeHealthCheck.interval = d ? "5" : "0", t.fields.activeHealthCheck.successes = d ? "5" : "0", t.fields.activeHealthCheck.httpFailures = d ? "5" : "0", t.fields.activeHealthCheck.unhealthyInterval = d ? "5" : "0", t.fields.activeHealthCheck.tcpFailures = d ? "5" : "0";
2924
2904
  }, H = (d) => {
2925
2905
  t.fields.passiveHealthCheck.timeouts = d ? "5" : "0", t.fields.passiveHealthCheck.successes = d ? "80" : "0", t.fields.passiveHealthCheck.tcpFailures = d ? "5" : "0", t.fields.passiveHealthCheck.httpFailures = d ? "5" : "0";
2926
- }, Y = q(() => t.fields.slots ? u(t.fields.slots, $e, Pe) : !0), O = q(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), ee = q(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), ae = q(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), v = q(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), S = q(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), F = q(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), w = q(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), y = q(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), j = q(() => !!t.fields.name && Y.value && O.value && ee.value && ae.value && v.value && S.value && F.value && w.value && y.value), G = q(() => r.upstreamId ? he.Edit : he.Create), re = q(() => {
2906
+ }, G = q(() => t.fields.slots ? u(t.fields.slots, $e, Pe) : !0), O = q(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), Z = q(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), te = q(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), v = q(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), S = q(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), T = q(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), w = q(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), y = q(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), D = q(() => !!t.fields.name && G.value && O.value && Z.value && te.value && v.value && S.value && T.value && w.value && y.value), J = q(() => r.upstreamId ? oe.Edit : oe.Create), se = q(() => {
2927
2907
  var d, i;
2928
- return (i = ke.form[(d = r.config) == null ? void 0 : d.app]) == null ? void 0 : i.edit;
2929
- }), ie = (d) => {
2930
- Object.assign(t.fields, g(d)), Object.assign(D, l(t.fields));
2931
- }, P = () => {
2908
+ return (i = ve.form[(d = r.config) == null ? void 0 : d.app]) == null ? void 0 : i.edit;
2909
+ }), ae = (d) => {
2910
+ Object.assign(t.fields, g(d)), Object.assign(B, l(t.fields));
2911
+ }, $ = () => {
2932
2912
  var d;
2933
2913
  m.push(((d = r.config) == null ? void 0 : d.cancelRoute) || { name: "upstreams-list" });
2934
2914
  }, K = (d) => {
2935
2915
  s("loading", d);
2936
- }, J = (d) => {
2916
+ }, Q = (d) => {
2937
2917
  s("error", d);
2938
2918
  }, L = q(() => {
2939
- var i, o, A, Q, $;
2919
+ var i, o, I, A, X;
2940
2920
  const d = {
2941
2921
  name: t.fields.name,
2942
2922
  slots: Number(t.fields.slots),
@@ -2945,19 +2925,19 @@ const ce = {
2945
2925
  hash_fallback: t.fields.hashFallback,
2946
2926
  healthchecks: {}
2947
2927
  };
2948
- return t.fields.hostHeader && (d.host_header = t.fields.hostHeader), t.fields.clientCertificate && (d.client_certificate = { id: t.fields.clientCertificate }), t.fields.healthchecksThreshold && (d.healthchecks.threshold = Number(t.fields.healthchecksThreshold)), t.fields.tags && (d.tags = (o = (i = t.fields.tags.split(",")) == null ? void 0 : i.map((B) => String(B || "").trim())) == null ? void 0 : o.filter((B) => B !== "")), t.fields.hashOn === "header" && (d.hash_on_header = t.fields.hashOnHeader), (t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie") && (d.hash_on_cookie = t.fields.hashOnCookie, d.hash_on_cookie_path = t.fields.hashOnCookiePath), t.fields.hashOn === "query_arg" && (d.hash_on_query_arg = t.fields.hashOnQueryArgument), t.fields.hashOn === "uri_capture" && (d.hash_on_uri_capture = t.fields.hashOnUriCapture), t.fields.hashFallback === "header" && (d.hash_fallback_header = t.fields.hashFallbackHeader), t.fields.hashFallback === "query_arg" && (d.hash_fallback_query_arg = t.fields.hashFallbackQueryArgument), t.fields.hashFallback === "uri_capture" && (d.hash_fallback_uri_capture = t.fields.hashFallbackUriCapture), t.fields.activeHealthSwitch ? (d.healthchecks.active = {
2928
+ return t.fields.hostHeader && (d.host_header = t.fields.hostHeader), t.fields.clientCertificate && (d.client_certificate = { id: t.fields.clientCertificate }), t.fields.healthchecksThreshold && (d.healthchecks.threshold = Number(t.fields.healthchecksThreshold)), t.fields.tags && (d.tags = (o = (i = t.fields.tags.split(",")) == null ? void 0 : i.map((E) => String(E || "").trim())) == null ? void 0 : o.filter((E) => E !== "")), t.fields.hashOn === "header" && (d.hash_on_header = t.fields.hashOnHeader), (t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie") && (d.hash_on_cookie = t.fields.hashOnCookie, d.hash_on_cookie_path = t.fields.hashOnCookiePath), t.fields.hashOn === "query_arg" && (d.hash_on_query_arg = t.fields.hashOnQueryArgument), t.fields.hashOn === "uri_capture" && (d.hash_on_uri_capture = t.fields.hashOnUriCapture), t.fields.hashFallback === "header" && (d.hash_fallback_header = t.fields.hashFallbackHeader), t.fields.hashFallback === "query_arg" && (d.hash_fallback_query_arg = t.fields.hashFallbackQueryArgument), t.fields.hashFallback === "uri_capture" && (d.hash_fallback_uri_capture = t.fields.hashFallbackUriCapture), t.fields.activeHealthSwitch ? (d.healthchecks.active = {
2949
2929
  type: t.fields.activeHealthCheck.type,
2950
2930
  healthy: {},
2951
2931
  unhealthy: {}
2952
- }, t.fields.activeHealthCheck.timeout && (d.healthchecks.active.timeout = Number(t.fields.activeHealthCheck.timeout)), t.fields.activeHealthCheck.concurrency && (d.healthchecks.active.concurrency = Number(t.fields.activeHealthCheck.concurrency)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpPath && (d.healthchecks.active.http_path = t.fields.activeHealthCheck.httpPath), ((A = r.config) == null ? void 0 : A.app) === "kongManager" && (t.fields.activeHealthCheck.headers.length === 0 ? d.healthchecks.active.headers = [] : d.healthchecks.active.headers = t.fields.activeHealthCheck.headers.reduce((B, le) => {
2953
- var X, te;
2954
- return le.key ? {
2955
- ...B,
2956
- [le.key]: (te = (X = le.values.split(",")) == null ? void 0 : X.map((pe) => String(pe || "").trim())) == null ? void 0 : te.filter((pe) => pe !== "")
2932
+ }, t.fields.activeHealthCheck.timeout && (d.healthchecks.active.timeout = Number(t.fields.activeHealthCheck.timeout)), t.fields.activeHealthCheck.concurrency && (d.healthchecks.active.concurrency = Number(t.fields.activeHealthCheck.concurrency)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpPath && (d.healthchecks.active.http_path = t.fields.activeHealthCheck.httpPath), ((I = r.config) == null ? void 0 : I.app) === "kongManager" && (t.fields.activeHealthCheck.headers.length === 0 ? d.healthchecks.active.headers = [] : d.healthchecks.active.headers = t.fields.activeHealthCheck.headers.reduce((E, ee) => {
2933
+ var de, be;
2934
+ return ee.key ? {
2935
+ ...E,
2936
+ [ee.key]: (be = (de = ee.values.split(",")) == null ? void 0 : de.map((pe) => String(pe || "").trim())) == null ? void 0 : be.filter((pe) => pe !== "")
2957
2937
  } : {
2958
- ...B
2938
+ ...E
2959
2939
  };
2960
- }, {})), (t.fields.activeHealthCheck.type === "https" || t.fields.activeHealthCheck.type === "grpcs") && t.fields.activeHealthCheck.httpsSni && (d.healthchecks.active.https_sni = t.fields.activeHealthCheck.httpsSni), (t.fields.activeHealthCheck.type === "https" || t.fields.activeHealthCheck.type === "grpcs") && (d.healthchecks.active.https_verify_certificate = t.fields.activeHealthCheck.verifySsl), t.fields.activeHealthCheck.interval && (d.healthchecks.active.healthy.interval = Number(t.fields.activeHealthCheck.interval)), t.fields.activeHealthCheck.successes && (d.healthchecks.active.healthy.successes = Number(t.fields.activeHealthCheck.successes)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpStatuses && (d.healthchecks.active.healthy.http_statuses = k(t.fields.activeHealthCheck.httpStatuses)), t.fields.activeHealthCheck.unhealthyInterval && (d.healthchecks.active.unhealthy.interval = Number(t.fields.activeHealthCheck.unhealthyInterval)), t.fields.activeHealthCheck.unhealthyTimeouts && (d.healthchecks.active.unhealthy.timeouts = Number(t.fields.activeHealthCheck.unhealthyTimeouts)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.unhealthyHttpStatuses && (d.healthchecks.active.unhealthy.http_statuses = k(t.fields.activeHealthCheck.unhealthyHttpStatuses)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpFailures && (d.healthchecks.active.unhealthy.http_failures = Number(t.fields.activeHealthCheck.httpFailures)), t.fields.activeHealthCheck.tcpFailures && (d.healthchecks.active.unhealthy.tcp_failures = Number(t.fields.activeHealthCheck.tcpFailures))) : ((Q = r.config) == null ? void 0 : Q.app) === "kongManager" && G.value === he.Edit && (d.healthchecks.active = {
2940
+ }, {})), (t.fields.activeHealthCheck.type === "https" || t.fields.activeHealthCheck.type === "grpcs") && t.fields.activeHealthCheck.httpsSni && (d.healthchecks.active.https_sni = t.fields.activeHealthCheck.httpsSni), (t.fields.activeHealthCheck.type === "https" || t.fields.activeHealthCheck.type === "grpcs") && (d.healthchecks.active.https_verify_certificate = t.fields.activeHealthCheck.verifySsl), t.fields.activeHealthCheck.interval && (d.healthchecks.active.healthy.interval = Number(t.fields.activeHealthCheck.interval)), t.fields.activeHealthCheck.successes && (d.healthchecks.active.healthy.successes = Number(t.fields.activeHealthCheck.successes)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpStatuses && (d.healthchecks.active.healthy.http_statuses = k(t.fields.activeHealthCheck.httpStatuses)), t.fields.activeHealthCheck.unhealthyInterval && (d.healthchecks.active.unhealthy.interval = Number(t.fields.activeHealthCheck.unhealthyInterval)), t.fields.activeHealthCheck.unhealthyTimeouts && (d.healthchecks.active.unhealthy.timeouts = Number(t.fields.activeHealthCheck.unhealthyTimeouts)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.unhealthyHttpStatuses && (d.healthchecks.active.unhealthy.http_statuses = k(t.fields.activeHealthCheck.unhealthyHttpStatuses)), t.fields.activeHealthCheck.type !== "tcp" && t.fields.activeHealthCheck.httpFailures && (d.healthchecks.active.unhealthy.http_failures = Number(t.fields.activeHealthCheck.httpFailures)), t.fields.activeHealthCheck.tcpFailures && (d.healthchecks.active.unhealthy.tcp_failures = Number(t.fields.activeHealthCheck.tcpFailures))) : ((A = r.config) == null ? void 0 : A.app) === "kongManager" && J.value === oe.Edit && (d.healthchecks.active = {
2961
2941
  type: t.fields.activeHealthCheck.type,
2962
2942
  headers: {},
2963
2943
  healthy: {
@@ -2973,7 +2953,7 @@ const ce = {
2973
2953
  type: t.fields.passiveHealthCheck.type,
2974
2954
  healthy: {},
2975
2955
  unhealthy: {}
2976
- }, t.fields.passiveHealthCheck.successes && (d.healthchecks.passive.healthy.successes = Number(t.fields.passiveHealthCheck.successes)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.httpStatuses && (d.healthchecks.passive.healthy.http_statuses = k(t.fields.passiveHealthCheck.httpStatuses)), t.fields.passiveHealthCheck.timeouts && (d.healthchecks.passive.unhealthy.timeouts = Number(t.fields.passiveHealthCheck.timeouts)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.unhealthyHttpStatuses && (d.healthchecks.passive.unhealthy.http_statuses = k(t.fields.passiveHealthCheck.unhealthyHttpStatuses)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.httpFailures && (d.healthchecks.passive.unhealthy.http_failures = Number(t.fields.passiveHealthCheck.httpFailures)), t.fields.passiveHealthCheck.tcpFailures && (d.healthchecks.passive.unhealthy.tcp_failures = Number(t.fields.passiveHealthCheck.tcpFailures))) : (($ = r.config) == null ? void 0 : $.app) === "kongManager" && G.value === he.Edit && (d.healthchecks.passive = {
2956
+ }, t.fields.passiveHealthCheck.successes && (d.healthchecks.passive.healthy.successes = Number(t.fields.passiveHealthCheck.successes)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.httpStatuses && (d.healthchecks.passive.healthy.http_statuses = k(t.fields.passiveHealthCheck.httpStatuses)), t.fields.passiveHealthCheck.timeouts && (d.healthchecks.passive.unhealthy.timeouts = Number(t.fields.passiveHealthCheck.timeouts)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.unhealthyHttpStatuses && (d.healthchecks.passive.unhealthy.http_statuses = k(t.fields.passiveHealthCheck.unhealthyHttpStatuses)), t.fields.passiveHealthCheck.type !== "tcp" && t.fields.passiveHealthCheck.httpFailures && (d.healthchecks.passive.unhealthy.http_failures = Number(t.fields.passiveHealthCheck.httpFailures)), t.fields.passiveHealthCheck.tcpFailures && (d.healthchecks.passive.unhealthy.tcp_failures = Number(t.fields.passiveHealthCheck.tcpFailures))) : ((X = r.config) == null ? void 0 : X.app) === "kongManager" && J.value === oe.Edit && (d.healthchecks.passive = {
2977
2957
  type: t.fields.passiveHealthCheck.type,
2978
2958
  healthy: {
2979
2959
  successes: 0
@@ -2984,40 +2964,40 @@ const ce = {
2984
2964
  http_failures: 0
2985
2965
  }
2986
2966
  }), d;
2987
- }), Z = (d) => {
2988
- var o, A, Q, $, B, le;
2989
- let i = `${(o = r.config) == null ? void 0 : o.apiBaseUrl}${ke.form[(A = r.config) == null ? void 0 : A.app][d]}`;
2990
- return ((Q = r.config) == null ? void 0 : Q.app) === "konnect" ? i = i.replace(/{controlPlaneId}/gi, (($ = r.config) == null ? void 0 : $.controlPlaneId) || "") : ((B = r.config) == null ? void 0 : B.app) === "kongManager" && (i = i.replace(/\/{workspace}/gi, (le = r.config) != null && le.workspace ? `/${r.config.workspace}` : "")), i = i.replace(/{id}/gi, r.upstreamId), i;
2967
+ }), Y = (d) => {
2968
+ var o, I, A, X, E, ee;
2969
+ let i = `${(o = r.config) == null ? void 0 : o.apiBaseUrl}${ve.form[(I = r.config) == null ? void 0 : I.app][d]}`;
2970
+ return ((A = r.config) == null ? void 0 : A.app) === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((X = r.config) == null ? void 0 : X.controlPlaneId) || "") : ((E = r.config) == null ? void 0 : E.app) === "kongManager" && (i = i.replace(/\/{workspace}/gi, (ee = r.config) != null && ee.workspace ? `/${r.config.workspace}` : "")), i = i.replace(/{id}/gi, r.upstreamId), i;
2991
2971
  }, _ = async () => {
2992
2972
  var d;
2993
2973
  try {
2994
- t.readonly = !0, await c.post(Z("validate"), L.value);
2974
+ t.readonly = !0, await c.post(Y("validate"), L.value);
2995
2975
  let i;
2996
- G.value === he.Create ? i = await c.post(Z("create"), L.value) : G.value === he.Edit && (i = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await c.put(Z("edit"), L.value) : await c.patch(Z("edit"), L.value)), s("update", i == null ? void 0 : i.data);
2976
+ J.value === oe.Create ? i = await c.post(Y("create"), L.value) : J.value === oe.Edit && (i = ((d = r.config) == null ? void 0 : d.app) === "konnect" ? await c.put(Y("edit"), L.value) : await c.patch(Y("edit"), L.value)), s("update", i == null ? void 0 : i.data);
2997
2977
  } catch (i) {
2998
2978
  t.errorMessage = C(i), s("error", i);
2999
2979
  } finally {
3000
2980
  t.readonly = !1;
3001
2981
  }
3002
2982
  };
3003
- return (d, i) => (I(), se("div", Na, [
2983
+ return (d, i) => (x(), le("div", Va, [
3004
2984
  h(e(St), {
3005
- "can-submit": j.value && U.value,
2985
+ "can-submit": D.value && U.value,
3006
2986
  config: a.config,
3007
2987
  "edit-id": a.upstreamId,
3008
- "entity-type": e(Ke).Upstream,
2988
+ "entity-type": e(Ae).Upstream,
3009
2989
  "error-message": t.errorMessage,
3010
- "fetch-url": re.value,
2990
+ "fetch-url": se.value,
3011
2991
  "form-fields": L.value,
3012
2992
  "is-readonly": t.readonly,
3013
- onCancel: P,
3014
- "onFetch:error": J,
3015
- "onFetch:success": ie,
2993
+ onCancel: $,
2994
+ "onFetch:error": Q,
2995
+ "onFetch:success": ae,
3016
2996
  onLoading: K,
3017
2997
  onSubmit: _
3018
2998
  }, {
3019
2999
  default: n(() => [
3020
- h(ca, {
3000
+ h(da, {
3021
3001
  "client-certificate": t.fields.clientCertificate,
3022
3002
  "onUpdate:clientCertificate": i[0] || (i[0] = (o) => t.fields.clientCertificate = o),
3023
3003
  "host-header": t.fields.hostHeader,
@@ -3029,7 +3009,7 @@ const ce = {
3029
3009
  config: a.config,
3030
3010
  readonly: t.readonly
3031
3011
  }, null, 8, ["client-certificate", "host-header", "name", "tags", "config", "readonly"]),
3032
- h(ga, {
3012
+ h(va, {
3033
3013
  algorithm: t.fields.algorithm,
3034
3014
  "onUpdate:algorithm": i[4] || (i[4] = (o) => t.fields.algorithm = o),
3035
3015
  "hash-fallback": t.fields.hashFallback,
@@ -3056,7 +3036,7 @@ const ce = {
3056
3036
  "onUpdate:slots": i[15] || (i[15] = (o) => t.fields.slots = o),
3057
3037
  readonly: t.readonly
3058
3038
  }, null, 8, ["algorithm", "hash-fallback", "hash-fallback-header", "hash-fallback-query-argument", "hash-fallback-uri-capture", "hash-on", "hash-on-cookie", "hash-on-cookie-path", "hash-on-header", "hash-on-query-argument", "hash-on-uri-capture", "slots", "readonly"]),
3059
- h(Ha, {
3039
+ h(Sa, {
3060
3040
  "active-health-switch": t.fields.activeHealthSwitch,
3061
3041
  "onUpdate:activeHealthSwitch": [
3062
3042
  i[16] || (i[16] = (o) => t.fields.activeHealthSwitch = o),
@@ -3071,7 +3051,7 @@ const ce = {
3071
3051
  ],
3072
3052
  readonly: t.readonly
3073
3053
  }, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
3074
- t.fields.activeHealthSwitch ? (I(), E(xa, {
3054
+ t.fields.activeHealthSwitch ? (x(), j(Oa, {
3075
3055
  key: 0,
3076
3056
  concurrency: t.fields.activeHealthCheck.concurrency,
3077
3057
  "onUpdate:concurrency": i[19] || (i[19] = (o) => t.fields.activeHealthCheck.concurrency = o),
@@ -3105,8 +3085,8 @@ const ce = {
3105
3085
  "onUpdate:verifySsl": i[33] || (i[33] = (o) => t.fields.activeHealthCheck.verifySsl = o),
3106
3086
  config: a.config,
3107
3087
  readonly: t.readonly
3108
- }, null, 8, ["concurrency", "headers", "http-failures", "http-path", "http-statuses", "https-sni", "interval", "successes", "tcp-failures", "timeout", "type", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : z("", !0),
3109
- t.fields.passiveHealthSwitch ? (I(), E(Ka, {
3088
+ }, null, 8, ["concurrency", "headers", "http-failures", "http-path", "http-statuses", "https-sni", "interval", "successes", "tcp-failures", "timeout", "type", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : W("", !0),
3089
+ t.fields.passiveHealthSwitch ? (x(), j(Na, {
3110
3090
  key: 1,
3111
3091
  "http-failures": t.fields.passiveHealthCheck.httpFailures,
3112
3092
  "onUpdate:httpFailures": i[34] || (i[34] = (o) => t.fields.passiveHealthCheck.httpFailures = o),
@@ -3123,13 +3103,13 @@ const ce = {
3123
3103
  "unhealthy-http-statuses": t.fields.passiveHealthCheck.unhealthyHttpStatuses,
3124
3104
  "onUpdate:unhealthyHttpStatuses": i[40] || (i[40] = (o) => t.fields.passiveHealthCheck.unhealthyHttpStatuses = o),
3125
3105
  readonly: t.readonly
3126
- }, null, 8, ["http-failures", "http-statuses", "successes", "tcp-failures", "timeouts", "type", "unhealthy-http-statuses", "readonly"])) : z("", !0)
3106
+ }, null, 8, ["http-failures", "http-statuses", "successes", "tcp-failures", "timeouts", "type", "unhealthy-http-statuses", "readonly"])) : W("", !0)
3127
3107
  ]),
3128
3108
  _: 1
3129
3109
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
3130
3110
  ]));
3131
3111
  }
3132
- }), Ja = /* @__PURE__ */ de(Va, [["__scopeId", "data-v-0669debc"]]), Ba = { "data-testid": "client_certificate-plain-text" }, za = /* @__PURE__ */ oe({
3112
+ }), za = /* @__PURE__ */ ue(Ea, [["__scopeId", "data-v-0669debc"]]), Ra = { "data-testid": "client_certificate-plain-text" }, Ga = /* @__PURE__ */ ie({
3133
3113
  __name: "UpstreamsConfigCard",
3134
3114
  props: {
3135
3115
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3156,50 +3136,50 @@ const ce = {
3156
3136
  },
3157
3137
  emits: ["loading", "fetch:error", "fetch:success"],
3158
3138
  setup(a) {
3159
- const R = a, { i18n: { t: r }, i18nT: s } = ce.useI18n(), { getPropValue: u } = At(), k = q(() => ke.form[R.config.app].edit), g = M({
3139
+ const R = a, { i18n: { t: r }, i18nT: s } = he.useI18n(), { getPropValue: u } = Kt(), k = q(() => ve.form[R.config.app].edit), g = P({
3160
3140
  id: {},
3161
3141
  name: {},
3162
3142
  created_at: {},
3163
3143
  updated_at: {},
3164
3144
  algorithm: {
3165
3145
  order: 5,
3166
- section: ne.Basic,
3146
+ section: re.Basic,
3167
3147
  tooltip: r("upstreams.form.fields.algorithm.tooltip")
3168
3148
  },
3169
3149
  slots: {
3170
3150
  order: 6,
3171
- section: ne.Basic
3151
+ section: re.Basic
3172
3152
  },
3173
3153
  hash_on: {
3174
3154
  order: 7,
3175
- section: ne.Basic
3155
+ section: re.Basic
3176
3156
  },
3177
3157
  hash_on_header: {
3178
3158
  order: 8,
3179
- section: ne.Basic
3159
+ section: re.Basic
3180
3160
  },
3181
3161
  hash_on_uri_capture: {
3182
3162
  order: 9,
3183
- section: ne.Basic
3163
+ section: re.Basic
3184
3164
  },
3185
3165
  hash_on_query_arg: {
3186
3166
  order: 10,
3187
- section: ne.Basic,
3167
+ section: re.Basic,
3188
3168
  label: `${r("upstreams.form.fields.hash_on.label")} ${r("upstreams.form.hash_labels.query_argument")}`
3189
3169
  },
3190
3170
  hash_on_cookie: {
3191
3171
  order: 11,
3192
- section: ne.Basic
3172
+ section: re.Basic
3193
3173
  },
3194
3174
  hash_on_cookie_path: {
3195
3175
  order: 12,
3196
- section: ne.Basic
3176
+ section: re.Basic
3197
3177
  },
3198
3178
  healthchecks: {
3199
3179
  order: 13,
3200
- section: ne.Basic,
3180
+ section: re.Basic,
3201
3181
  // TODO: change to JsonArray
3202
- type: Kt.Json
3182
+ type: Nt.Json
3203
3183
  },
3204
3184
  tags: {
3205
3185
  order: 14,
@@ -3230,17 +3210,17 @@ const ce = {
3230
3210
  tooltip: r("upstreams.form.hash_tooltips.client_certificate")
3231
3211
  }
3232
3212
  });
3233
- return (V, T) => (I(), se("div", null, [
3234
- h(e(Nt), {
3213
+ return (V, F) => (x(), le("div", null, [
3214
+ h(e(Vt), {
3235
3215
  config: a.config,
3236
3216
  "config-card-doc": a.configCardDoc,
3237
3217
  "config-schema": g.value,
3238
- "entity-type": e(Ke).Upstream,
3218
+ "entity-type": e(Ae).Upstream,
3239
3219
  "fetch-url": k.value,
3240
3220
  "hide-title": a.hideTitle,
3241
- "onFetch:error": T[0] || (T[0] = (l) => V.$emit("fetch:error", l)),
3242
- "onFetch:success": T[1] || (T[1] = (l) => V.$emit("fetch:success", l)),
3243
- onLoading: T[2] || (T[2] = (l) => V.$emit("loading", l))
3221
+ "onFetch:error": F[0] || (F[0] = (l) => V.$emit("fetch:error", l)),
3222
+ "onFetch:success": F[1] || (F[1] = (l) => V.$emit("fetch:success", l)),
3223
+ onLoading: F[2] || (F[2] = (l) => V.$emit("loading", l))
3244
3224
  }, {
3245
3225
  "name-label-tooltip": n(() => [
3246
3226
  h(e(s), {
@@ -3354,10 +3334,10 @@ const ce = {
3354
3334
  consistent_hashing: n(() => [
3355
3335
  b("code", null, f(e(r)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
3356
3336
  ]),
3357
- min: n(() => T[3] || (T[3] = [
3337
+ min: n(() => F[3] || (F[3] = [
3358
3338
  b("code", null, "10", -1)
3359
3339
  ])),
3360
- max: n(() => T[4] || (T[4] = [
3340
+ max: n(() => F[4] || (F[4] = [
3361
3341
  b("code", null, "65536", -1)
3362
3342
  ])),
3363
3343
  _: 1
@@ -3434,7 +3414,7 @@ const ce = {
3434
3414
  var c;
3435
3415
  return [
3436
3416
  b("div", null, [
3437
- b("div", Ba, [
3417
+ b("div", Ra, [
3438
3418
  b("span", null, f((c = e(u)("rowValue", l)) == null ? void 0 : c.id), 1)
3439
3419
  ])
3440
3420
  ])
@@ -3446,9 +3426,9 @@ const ce = {
3446
3426
  }
3447
3427
  });
3448
3428
  export {
3449
- ia as TargetForm,
3450
- Wa as TargetsList,
3451
- za as UpstreamsConfigCard,
3452
- Ja as UpstreamsForm,
3453
- Qa as UpstreamsList
3429
+ ra as TargetForm,
3430
+ Ja as TargetsList,
3431
+ Ga as UpstreamsConfigCard,
3432
+ za as UpstreamsForm,
3433
+ Wa as UpstreamsList
3454
3434
  };