@kong-ui-public/entities-upstreams-targets 3.8.0 → 3.8.1-pr.2114.d6a8378f0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
- import { ref as B, defineComponent as he, computed as I, watch as ye, onBeforeMount as je, resolveComponent as K, openBlock as T, createElementBlock as oe, createVNode as n, unref as e, createSlots as Ne, withCtx as r, createBlock as E, Teleport as Be, createElementVNode as v, createCommentVNode as L, createTextVNode as J, toDisplayString as f, reactive as Fe, renderSlot as vt, Fragment as Se, renderList as $t, normalizeClass as Pt } from "vue";
2
- import { useAxios as Me, useTableState as At, useFetcher as kt, useDeleteUrlBuilder as _t, FetcherStatus as Ct, EntityBaseTable as St, EntityFilter as Mt, PermissionsWrapper as de, TableTags as Ht, EntityEmptyState as Vt, EntityDeleteModal as Ut, EntityTypes as It, useErrors as wt, EntityBaseFormType as ce, EntityBaseForm as qt, SupportedEntityType as Le, useDebouncedFilter as ft, EntityFormSection as Ue, useHelpers as Kt, ConfigurationSchemaSection as ue, ConfigurationSchemaType as Et, EntityBaseConfigCard as Nt } from "@kong-ui-public/entities-shared";
3
- import { useRouter as Tt } from "vue-router";
4
- import { BookIcon as yt, AddIcon as Qe, CloudUploadIcon as Bt, TrashIcon as Rt } from "@kong/icons";
1
+ import { ref as E, defineComponent as he, computed as I, watch as ye, onBeforeMount as De, resolveComponent as K, openBlock as F, createElementBlock as ie, createVNode as n, unref as e, createSlots as Ee, withCtx as r, createBlock as R, Teleport as gt, createElementVNode as b, createCommentVNode as Q, createTextVNode as J, toDisplayString as f, reactive as Fe, renderSlot as bt, Fragment as Se, renderList as Ot, normalizeClass as $t } from "vue";
2
+ import { useAxios as Me, useTableState as Pt, useFetcher as vt, useDeleteUrlBuilder as kt, FetcherStatus as _t, EntityBaseTable as Ct, EntityFilter as At, PermissionsWrapper as de, TableTags as St, EntityEmptyState as Mt, EntityDeleteModal as Ht, EntityTypes as Ut, useErrors as It, EntityBaseFormType as ce, EntityBaseForm as wt, SupportedEntityType as je, useDebouncedFilter as mt, EntityFormSection as Ue, useHelpers as Kt, ConfigurationSchemaSection as ue, ConfigurationSchemaType as Vt, EntityBaseConfigCard as Nt } from "@kong-ui-public/entities-shared";
3
+ import { useRouter as qt } from "vue-router";
4
+ import { BookIcon as Et, AddIcon as Le, CloudUploadIcon as Rt, TrashIcon as Bt } from "@kong/icons";
5
5
  import { createI18n as Dt, i18nTComponent as jt } from "@kong-ui-public/i18n";
6
6
  const Lt = {
7
7
  list: {
@@ -385,15 +385,15 @@ function Jt() {
385
385
  };
386
386
  }
387
387
  function He(a) {
388
- const { replaceId: R = !1 } = a, i = B([]);
388
+ const { replaceId: B = !1 } = a, i = E([]);
389
389
  return {
390
390
  addedItems: i,
391
- trackNewItems: (h, k) => {
392
- if (k) {
393
- const _ = { ...h };
394
- R && (_.value = h.label), i.value.push(_);
391
+ trackNewItems: (h, v) => {
392
+ if (v) {
393
+ const k = { ...h };
394
+ B && (k.value = h.label), i.value.push(k);
395
395
  } else
396
- i.value = i.value.filter((_) => _.value !== h.value);
396
+ i.value = i.value.filter((k) => k.value !== h.value);
397
397
  }
398
398
  };
399
399
  }
@@ -766,20 +766,20 @@ const xe = [
766
766
  label: "599",
767
767
  value: "599"
768
768
  }
769
- ], Re = 10, De = 65536, zt = 0, Gt = 65535, ve = 0, ke = 255, Ft = 0, xt = 255, Xt = 0, Zt = 65535, gt = 0, bt = 65535, Yt = 0, ea = 2 ** 31, Oe = ["200", "302"], $e = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Pe = ["429", "404", "500", "501", "502", "503", "504", "505"], Ae = ["429", "500", "503"];
770
- function Ve() {
771
- const a = (s) => /^\d+$/.test(s), R = (s, c, S) => {
769
+ ], Re = 10, Be = 65536, zt = 0, Gt = 65535, ve = 0, ke = 255, Tt = 0, Ft = 255, Xt = 0, Zt = 65535, ft = 0, yt = 65535, Yt = 0, ea = 2 ** 31, Oe = ["200", "302"], $e = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226", "300", "301", "302", "303", "304", "305", "306", "307", "308"], Pe = ["429", "404", "500", "501", "502", "503", "504", "505"], Ae = ["429", "500", "503"];
770
+ function Ke() {
771
+ const a = (s) => /^\d+$/.test(s), B = (s, d, C) => {
772
772
  if (a(s)) {
773
773
  const m = Number(s);
774
- return m >= c && m <= S;
774
+ return m >= d && m <= C;
775
775
  } else
776
776
  return !1;
777
- }, i = (s) => s.map((c) => Number(c)), l = (s) => s.map((c) => c.toString()), h = (s) => {
778
- var S, m, t, N, U, d, H, ee, O, X, G, b, q, x, A, g, Q, W, z, le, $, V, Z, se, te, ae, w, j, y, C, M, P, p, o, u, Y, ie, re, ne, fe, Ce, Ie, We, Je, ze, Ge, Xe, Ze, Ye, et, tt, at, lt, st, it, ot, rt, nt, ht, ut, ct, dt, pt, mt;
777
+ }, i = (s) => s.map((d) => Number(d)), l = (s) => s.map((d) => d.toString()), h = (s) => {
778
+ var C, m, t, V, q, p, H, X, A, Z, W, _, T, O, $, y, N, z, G, oe, P, M, Y, le, te, ee, w, g, S, U, j, L, c, o, u, ae, se, re, ne, fe, Ce, Ie, Qe, We, Je, ze, Ge, Xe, Ze, Ye, et, tt, at, lt, st, it, ot, rt, nt, ht, ut, ct, dt, pt;
779
779
  return {
780
780
  name: (s == null ? void 0 : s.name) || "",
781
781
  hostHeader: (s == null ? void 0 : s.host_header) || "",
782
- clientCertificate: ((S = s == null ? void 0 : s.client_certificate) == null ? void 0 : S.id) || "",
782
+ clientCertificate: ((C = s == null ? void 0 : s.client_certificate) == null ? void 0 : C.id) || "",
783
783
  tags: ((m = s == null ? void 0 : s.tags) == null ? void 0 : m.join(", ")) || "",
784
784
  algorithm: (s == null ? void 0 : s.algorithm) || "round-robin",
785
785
  stickySessionsCookie: (s == null ? void 0 : s.sticky_sessions_cookie) || "",
@@ -795,55 +795,55 @@ function Ve() {
795
795
  hashFallbackHeader: (s == null ? void 0 : s.hash_fallback_header) || "",
796
796
  hashFallbackQueryArgument: (s == null ? void 0 : s.hash_fallback_query_arg) || "",
797
797
  hashFallbackUriCapture: (s == null ? void 0 : s.hash_fallback_uri_capture) || "",
798
- activeHealthSwitch: s ? ((U = (N = s.healthchecks.active) == null ? void 0 : N.healthy) == null ? void 0 : U.interval) !== 0 || ((H = (d = s.healthchecks.active) == null ? void 0 : d.unhealthy) == null ? void 0 : H.interval) !== 0 : !1,
799
- passiveHealthSwitch: s ? ((O = (ee = s.healthchecks.passive) == null ? void 0 : ee.healthy) == null ? void 0 : O.successes) !== 0 || ((G = (X = s.healthchecks.passive) == null ? void 0 : X.unhealthy) == null ? void 0 : G.timeouts) !== 0 || ((q = (b = s.healthchecks.passive) == null ? void 0 : b.unhealthy) == null ? void 0 : q.tcp_failures) !== 0 || ((A = (x = s.healthchecks.passive) == null ? void 0 : x.unhealthy) == null ? void 0 : A.http_failures) !== 0 : !1,
800
- healthchecksThreshold: ((g = s == null ? void 0 : s.healthchecks.threshold) == null ? void 0 : g.toString()) || "0",
798
+ activeHealthSwitch: s ? ((q = (V = s.healthchecks.active) == null ? void 0 : V.healthy) == null ? void 0 : q.interval) !== 0 || ((H = (p = s.healthchecks.active) == null ? void 0 : p.unhealthy) == null ? void 0 : H.interval) !== 0 : !1,
799
+ passiveHealthSwitch: s ? ((A = (X = s.healthchecks.passive) == null ? void 0 : X.healthy) == null ? void 0 : A.successes) !== 0 || ((W = (Z = s.healthchecks.passive) == null ? void 0 : Z.unhealthy) == null ? void 0 : W.timeouts) !== 0 || ((T = (_ = s.healthchecks.passive) == null ? void 0 : _.unhealthy) == null ? void 0 : T.tcp_failures) !== 0 || (($ = (O = s.healthchecks.passive) == null ? void 0 : O.unhealthy) == null ? void 0 : $.http_failures) !== 0 : !1,
800
+ healthchecksThreshold: ((y = s == null ? void 0 : s.healthchecks.threshold) == null ? void 0 : y.toString()) || "0",
801
801
  activeHealthCheck: {
802
- type: ((Q = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Q.type) || "http",
803
- httpPath: ((W = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : W.http_path) || "/",
804
- timeout: ((le = (z = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : z.timeout) == null ? void 0 : le.toString()) || "1",
805
- concurrency: ((V = ($ = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : $.concurrency) == null ? void 0 : V.toString()) || "10",
806
- httpsSni: ((Z = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Z.https_sni) || "",
807
- verifySsl: ((se = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : se.https_verify_certificate) || !1,
808
- headers: (te = s == null ? void 0 : s.healthchecks.active) != null && te.headers && Object.entries(s.healthchecks.active.headers).length > 0 ? Object.entries(s.healthchecks.active.headers).map(([Ot, Ee]) => ({ key: Ot, values: Ee == null ? void 0 : Ee.join(", ") })) : [{ key: "", values: "" }],
802
+ type: ((N = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : N.type) || "http",
803
+ httpPath: ((z = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : z.http_path) || "/",
804
+ timeout: ((oe = (G = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : G.timeout) == null ? void 0 : oe.toString()) || "1",
805
+ concurrency: ((M = (P = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : P.concurrency) == null ? void 0 : M.toString()) || "10",
806
+ httpsSni: ((Y = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Y.https_sni) || "",
807
+ verifySsl: ((le = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : le.https_verify_certificate) || !1,
808
+ headers: (te = s == null ? void 0 : s.healthchecks.active) != null && te.headers && Object.entries(s.healthchecks.active.headers).length > 0 ? Object.entries(s.healthchecks.active.headers).map(([xt, Ne]) => ({ key: xt, values: Ne == null ? void 0 : Ne.join(", ") })) : [{ key: "", values: "" }],
809
809
  healthy: {
810
- interval: ((j = (w = (ae = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ae.healthy) == null ? void 0 : w.interval) == null ? void 0 : j.toString()) || "0",
811
- successes: ((M = (C = (y = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : y.healthy) == null ? void 0 : C.successes) == null ? void 0 : M.toString()) || "5",
812
- httpStatuses: (p = (P = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : P.healthy) != null && p.http_statuses ? l(s.healthchecks.active.healthy.http_statuses) : Oe
810
+ interval: ((g = (w = (ee = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ee.healthy) == null ? void 0 : w.interval) == null ? void 0 : g.toString()) || "0",
811
+ successes: ((j = (U = (S = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : S.healthy) == null ? void 0 : U.successes) == null ? void 0 : j.toString()) || "5",
812
+ httpStatuses: (c = (L = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : L.healthy) != null && c.http_statuses ? l(s.healthchecks.active.healthy.http_statuses) : Oe
813
813
  },
814
814
  unhealthy: {
815
- interval: ((Y = (u = (o = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : o.unhealthy) == null ? void 0 : u.interval) == null ? void 0 : Y.toString()) || "0",
816
- httpFailures: ((ne = (re = (ie = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ie.unhealthy) == null ? void 0 : re.http_failures) == null ? void 0 : ne.toString()) || "5",
815
+ interval: ((ae = (u = (o = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : o.unhealthy) == null ? void 0 : u.interval) == null ? void 0 : ae.toString()) || "0",
816
+ httpFailures: ((ne = (re = (se = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : se.unhealthy) == null ? void 0 : re.http_failures) == null ? void 0 : ne.toString()) || "5",
817
817
  tcpFailures: ((Ie = (Ce = (fe = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : fe.unhealthy) == null ? void 0 : Ce.tcp_failures) == null ? void 0 : Ie.toString()) || "5",
818
- httpStatuses: (Je = (We = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : We.unhealthy) != null && Je.http_statuses ? l(s.healthchecks.active.unhealthy.http_statuses) : Pe,
819
- timeouts: ((Xe = (Ge = (ze = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : ze.unhealthy) == null ? void 0 : Ge.timeouts) == null ? void 0 : Xe.toString()) || "0"
818
+ httpStatuses: (We = (Qe = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Qe.unhealthy) != null && We.http_statuses ? l(s.healthchecks.active.unhealthy.http_statuses) : Pe,
819
+ timeouts: ((Ge = (ze = (Je = s == null ? void 0 : s.healthchecks.active) == null ? void 0 : Je.unhealthy) == null ? void 0 : ze.timeouts) == null ? void 0 : Ge.toString()) || "0"
820
820
  }
821
821
  },
822
822
  passiveHealthCheck: {
823
- type: ((Ze = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : Ze.type) || "http",
823
+ type: ((Xe = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : Xe.type) || "http",
824
824
  healthy: {
825
- successes: ((tt = (et = (Ye = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : Ye.healthy) == null ? void 0 : et.successes) == null ? void 0 : tt.toString()) || "5",
826
- httpStatuses: (lt = (at = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : at.healthy) != null && lt.http_statuses ? l(s.healthchecks.passive.healthy.http_statuses) : $e
825
+ successes: ((et = (Ye = (Ze = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : Ze.healthy) == null ? void 0 : Ye.successes) == null ? void 0 : et.toString()) || "5",
826
+ httpStatuses: (at = (tt = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : tt.healthy) != null && at.http_statuses ? l(s.healthchecks.passive.healthy.http_statuses) : $e
827
827
  },
828
828
  unhealthy: {
829
- timeouts: ((ot = (it = (st = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : st.unhealthy) == null ? void 0 : it.timeouts) == null ? void 0 : ot.toString()) || "0",
830
- httpFailures: ((ht = (nt = (rt = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : rt.unhealthy) == null ? void 0 : nt.http_failures) == null ? void 0 : ht.toString()) || "5",
831
- tcpFailures: ((dt = (ct = (ut = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : ut.unhealthy) == null ? void 0 : ct.tcp_failures) == null ? void 0 : dt.toString()) || "5",
832
- httpStatuses: (mt = (pt = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : pt.unhealthy) != null && mt.http_statuses ? l(s.healthchecks.passive.unhealthy.http_statuses) : Ae
829
+ timeouts: ((it = (st = (lt = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : lt.unhealthy) == null ? void 0 : st.timeouts) == null ? void 0 : it.toString()) || "0",
830
+ httpFailures: ((nt = (rt = (ot = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : ot.unhealthy) == null ? void 0 : rt.http_failures) == null ? void 0 : nt.toString()) || "5",
831
+ tcpFailures: ((ct = (ut = (ht = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : ht.unhealthy) == null ? void 0 : ut.tcp_failures) == null ? void 0 : ct.toString()) || "5",
832
+ httpStatuses: (pt = (dt = s == null ? void 0 : s.healthchecks.passive) == null ? void 0 : dt.unhealthy) != null && pt.http_statuses ? l(s.healthchecks.passive.unhealthy.http_statuses) : Ae
833
833
  }
834
834
  }
835
835
  };
836
836
  };
837
837
  return {
838
838
  isInteger: a,
839
- inRange: R,
839
+ inRange: B,
840
840
  stringToNumberArray: i,
841
841
  numberToStringArray: l,
842
842
  upstreamsResponseToFields: (s) => h(s),
843
843
  getDefaultUpstreamFields: () => h(),
844
- objectsAreEqual: (s, c) => {
844
+ objectsAreEqual: (s, d) => {
845
845
  try {
846
- return JSON.stringify(s) === JSON.stringify(c);
846
+ return JSON.stringify(s) === JSON.stringify(d);
847
847
  } catch {
848
848
  return !1;
849
849
  }
@@ -854,7 +854,7 @@ function Ve() {
854
854
  const pe = {
855
855
  useI18n: Jt,
856
856
  useMultiselectCreation: He,
857
- useHelpers: Ve
857
+ useHelpers: Ke
858
858
  }, ge = "/v2/control-planes/{controlPlaneId}/core-entities", be = "/{workspace}", _e = {
859
859
  list: {
860
860
  konnect: `${ge}/upstreams`,
@@ -918,181 +918,173 @@ const pe = {
918
918
  useActionOutside: {
919
919
  type: Boolean,
920
920
  default: !1
921
- },
922
- /**
923
- * Enables the new empty state design, this prop can be removed when
924
- * the khcp-14756-empty-states-m2 FF is removed.
925
- */
926
- enableV2EmptyStates: {
927
- type: Boolean,
928
- default: !1
929
921
  }
930
922
  },
931
923
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
932
- setup(a, { emit: R }) {
933
- var j;
934
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), k = Tt(), { axiosInstance: _ } = Me((j = l.config) == null ? void 0 : j.axiosRequestConfig), { hasRecords: D, handleStateChange: F } = At(() => U.value), s = I(() => D.value && l.config.app === "konnect"), c = I(() => !l.enableV2EmptyStates && l.config.app === "konnect"), S = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), m = {
924
+ setup(a, { emit: B }) {
925
+ var w;
926
+ const i = B, l = a, { i18n: { t: h } } = pe.useI18n(), v = qt(), { axiosInstance: k } = Me((w = l.config) == null ? void 0 : w.axiosRequestConfig), { hasRecords: D, handleStateChange: x } = Pt(() => V.value), s = I(() => D.value && l.config.app === "konnect"), d = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), C = {
935
927
  // the Name column is non-hidable
936
928
  name: { label: h("upstreams.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
937
929
  slots: { label: h("upstreams.list.table_headers.slots"), searchable: !0, sortable: !0 },
938
930
  tags: { label: h("upstreams.list.table_headers.tags"), sortable: !1 }
939
- }, t = m, N = I(() => {
940
- var C, M;
941
- let y = `${l.config.apiBaseUrl}${_e.list[l.config.app]}`;
942
- return l.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((C = l.config) == null ? void 0 : C.controlPlaneId) || "") : l.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (M = l.config) != null && M.workspace ? `/${l.config.workspace}` : "")), y;
943
- }), U = B(""), d = I(() => {
944
- const y = l.config.app === "konnect" || l.config.isExactMatch;
945
- if (y)
931
+ }, m = C, t = I(() => {
932
+ var S, U;
933
+ let g = `${l.config.apiBaseUrl}${_e.list[l.config.app]}`;
934
+ return l.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((S = l.config) == null ? void 0 : S.controlPlaneId) || "") : l.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (U = l.config) != null && U.workspace ? `/${l.config.workspace}` : "")), g;
935
+ }), V = E(""), q = I(() => {
936
+ const g = l.config.app === "konnect" || l.config.isExactMatch;
937
+ if (g)
946
938
  return {
947
- isExactMatch: y,
939
+ isExactMatch: g,
948
940
  placeholder: h("upstreams.search.placeholder")
949
941
  };
950
- const { name: C, slots: M } = m;
942
+ const { name: S, slots: U } = C;
951
943
  return {
952
- isExactMatch: y,
953
- fields: { name: C, slots: M },
944
+ isExactMatch: g,
945
+ fields: { name: S, slots: U },
954
946
  schema: l.config.filterSchema
955
947
  };
956
948
  }), {
957
- fetcher: H,
958
- fetcherState: ee,
959
- fetcherCacheKey: O
960
- } = kt(I(() => ({ ...l.config, cacheIdentifier: l.cacheIdentifier })), N), X = () => {
961
- U.value = "";
962
- }, G = () => {
963
- O.value++;
964
- }, b = B(null), q = async (y, C) => {
965
- const M = y.id;
966
- if (!await C(M)) {
949
+ fetcher: p,
950
+ fetcherState: H,
951
+ fetcherCacheKey: X
952
+ } = vt(I(() => ({ ...l.config, cacheIdentifier: l.cacheIdentifier })), t), A = () => {
953
+ V.value = "";
954
+ }, Z = () => {
955
+ X.value++;
956
+ }, W = E(null), _ = async (g, S) => {
957
+ const U = g.id;
958
+ if (!await S(U)) {
967
959
  i("copy:error", {
968
- entity: y,
960
+ entity: g,
969
961
  field: "id",
970
962
  message: h("upstreams.errors.copy")
971
963
  });
972
964
  return;
973
965
  }
974
966
  i("copy:success", {
975
- entity: y,
967
+ entity: g,
976
968
  field: "id",
977
- message: h("upstreams.copy.success", { val: M })
969
+ message: h("upstreams.copy.success", { val: U })
978
970
  });
979
- }, x = async (y, C) => {
980
- const M = JSON.stringify(y);
981
- if (!await C(M)) {
971
+ }, T = async (g, S) => {
972
+ const U = JSON.stringify(g);
973
+ if (!await S(U)) {
982
974
  i("copy:error", {
983
- entity: y,
975
+ entity: g,
984
976
  message: h("upstreams.errors.copy")
985
977
  });
986
978
  return;
987
979
  }
988
980
  i("copy:success", {
989
- entity: y,
981
+ entity: g,
990
982
  message: h("upstreams.copy.success_brief")
991
983
  });
992
- }, A = async (y) => {
993
- var M;
994
- await ((M = l.canRetrieve) == null ? void 0 : M.call(l, y)) && k.push(l.config.getViewRoute(y.id));
995
- }, g = (y) => ({
984
+ }, O = async (g) => {
985
+ var U;
986
+ await ((U = l.canRetrieve) == null ? void 0 : U.call(l, g)) && v.push(l.config.getViewRoute(g.id));
987
+ }, $ = (g) => ({
996
988
  label: h("upstreams.actions.view"),
997
- to: l.config.getViewRoute(y)
998
- }), Q = (y) => ({
989
+ to: l.config.getViewRoute(g)
990
+ }), y = (g) => ({
999
991
  label: h("upstreams.actions.edit"),
1000
- to: l.config.getEditRoute(y)
1001
- }), W = B(void 0), z = B(!1), le = B(!1), $ = B(""), V = _t(l.config, N.value), Z = (y) => {
1002
- W.value = y, z.value = !0;
1003
- }, se = () => {
992
+ to: l.config.getEditRoute(g)
993
+ }), N = E(void 0), z = E(!1), G = E(!1), oe = E(""), P = kt(l.config, t.value), M = (g) => {
994
+ N.value = g, z.value = !0;
995
+ }, Y = () => {
1004
996
  z.value = !1;
1005
- }, te = async () => {
1006
- var y, C, M;
1007
- if ((y = W.value) != null && y.id) {
1008
- le.value = !0;
997
+ }, le = async () => {
998
+ var g, S, U;
999
+ if ((g = N.value) != null && g.id) {
1000
+ G.value = !0;
1009
1001
  try {
1010
- await _.delete(V(W.value.id)), le.value = !1, z.value = !1, O.value++, i("delete:success", W.value);
1011
- } catch (P) {
1012
- $.value = ((M = (C = P.response) == null ? void 0 : C.data) == null ? void 0 : M.message) || P.message || h("upstreams.errors.delete"), i("error", P);
1002
+ await k.delete(P(N.value.id)), G.value = !1, z.value = !1, X.value++, i("delete:success", N.value);
1003
+ } catch (j) {
1004
+ oe.value = ((U = (S = j.response) == null ? void 0 : S.data) == null ? void 0 : U.message) || j.message || h("upstreams.errors.delete"), i("error", j);
1013
1005
  } finally {
1014
- le.value = !1;
1006
+ G.value = !1;
1015
1007
  }
1016
1008
  }
1017
- }, ae = () => {
1018
- k.push(l.config.createRoute);
1009
+ }, te = () => {
1010
+ v.push(l.config.createRoute);
1019
1011
  };
1020
- ye(ee, (y) => {
1021
- var C, M, P;
1022
- if (y.status === Ct.Error) {
1023
- b.value = {
1012
+ ye(H, (g) => {
1013
+ var S, U, j;
1014
+ if (g.status === _t.Error) {
1015
+ W.value = {
1024
1016
  title: h("upstreams.errors.general")
1025
- }, (P = (M = (C = y.error) == null ? void 0 : C.response) == null ? void 0 : M.data) != null && P.message && (b.value.message = y.error.response.data.message), i("error", y.error);
1017
+ }, (j = (U = (S = g.error) == null ? void 0 : S.response) == null ? void 0 : U.data) != null && j.message && (W.value.message = g.error.response.data.message), i("error", g.error);
1026
1018
  return;
1027
1019
  }
1028
- b.value = null;
1020
+ W.value = null;
1029
1021
  });
1030
- const w = B({
1022
+ const ee = E({
1031
1023
  ctaPath: l.config.createRoute,
1032
1024
  ctaText: void 0,
1033
1025
  message: `${h("upstreams.list.empty_state.description")}${l.config.additionMessageForEmptyState ? ` ${l.config.additionMessageForEmptyState}` : ""}`,
1034
1026
  title: h("upstreams.title")
1035
1027
  });
1036
- return je(async () => {
1037
- await l.canCreate() && (w.value.title = h("upstreams.list.empty_state.title"), w.value.ctaText = h("upstreams.actions.create"));
1038
- }), (y, C) => {
1039
- const M = K("KButton"), P = K("KDropdownItem"), p = K("KClipboardProvider");
1040
- return T(), oe("div", sa, [
1041
- n(e(St), {
1028
+ return De(async () => {
1029
+ await l.canCreate() && (ee.value.title = h("upstreams.list.empty_state.title"), ee.value.ctaText = h("upstreams.actions.create"));
1030
+ }), (g, S) => {
1031
+ const U = K("KButton"), j = K("KDropdownItem"), L = K("KClipboardProvider");
1032
+ return F(), ie("div", sa, [
1033
+ n(e(Ct), {
1042
1034
  "cache-identifier": a.cacheIdentifier,
1043
- "disable-sorting": S.value,
1044
- "empty-state-options": w.value,
1035
+ "disable-sorting": d.value,
1036
+ "empty-state-options": ee.value,
1045
1037
  "enable-entity-actions": "",
1046
- "error-message": b.value,
1047
- fetcher: e(H),
1048
- "fetcher-cache-key": e(O),
1038
+ "error-message": W.value,
1039
+ fetcher: e(p),
1040
+ "fetcher-cache-key": e(X),
1049
1041
  "pagination-type": "offset",
1050
1042
  "preferences-storage-key": "kong-ui-entities-upstreams-list",
1051
- query: U.value,
1052
- "table-headers": e(t),
1053
- onClearSearchInput: X,
1054
- "onClick:row": C[4] || (C[4] = (o) => A(o)),
1055
- onSort: G,
1056
- onState: e(F)
1057
- }, Ne({
1043
+ query: V.value,
1044
+ "table-headers": e(m),
1045
+ onClearSearchInput: A,
1046
+ "onClick:row": S[3] || (S[3] = (c) => O(c)),
1047
+ onSort: Z,
1048
+ onState: e(x)
1049
+ }, Ee({
1058
1050
  "toolbar-filter": r(() => [
1059
- n(e(Mt), {
1060
- modelValue: U.value,
1061
- "onUpdate:modelValue": C[0] || (C[0] = (o) => U.value = o),
1062
- config: d.value
1051
+ n(e(At), {
1052
+ modelValue: V.value,
1053
+ "onUpdate:modelValue": S[0] || (S[0] = (c) => V.value = c),
1054
+ config: q.value
1063
1055
  }, null, 8, ["modelValue", "config"])
1064
1056
  ]),
1065
1057
  "toolbar-button": r(() => [
1066
- (T(), E(Be, {
1058
+ (F(), R(gt, {
1067
1059
  disabled: !a.useActionOutside,
1068
1060
  to: "#kong-ui-app-page-header-action-button"
1069
1061
  }, [
1070
- v("div", ia, [
1071
- s.value ? (T(), E(M, {
1062
+ b("div", ia, [
1063
+ s.value ? (F(), R(U, {
1072
1064
  key: 0,
1073
1065
  appearance: "secondary",
1074
1066
  class: "open-learning-hub",
1075
1067
  "data-testid": "upstream-learn-more-button",
1076
1068
  icon: "",
1077
- onClick: C[1] || (C[1] = (o) => y.$emit("click:learn-more"))
1069
+ onClick: S[1] || (S[1] = (c) => g.$emit("click:learn-more"))
1078
1070
  }, {
1079
1071
  default: r(() => [
1080
- n(e(yt), { decorative: "" })
1072
+ n(e(Et), { decorative: "" })
1081
1073
  ]),
1082
1074
  _: 1
1083
- })) : L("", !0),
1075
+ })) : Q("", !0),
1084
1076
  n(e(de), {
1085
1077
  "auth-function": () => a.canCreate()
1086
1078
  }, {
1087
1079
  default: r(() => [
1088
- n(M, {
1080
+ n(U, {
1089
1081
  appearance: "primary",
1090
1082
  "data-testid": "toolbar-add-upstream",
1091
1083
  size: a.useActionOutside ? "medium" : "large",
1092
1084
  to: a.config.createRoute
1093
1085
  }, {
1094
1086
  default: r(() => [
1095
- n(e(Qe)),
1087
+ n(e(Le)),
1096
1088
  J(" " + f(e(h)("upstreams.list.toolbar_actions.new_upstream")), 1)
1097
1089
  ]),
1098
1090
  _: 1
@@ -1103,21 +1095,21 @@ const pe = {
1103
1095
  ])
1104
1096
  ], 8, ["disabled"]))
1105
1097
  ]),
1106
- name: r(({ rowValue: o }) => [
1107
- v("span", ra, f(o), 1)
1098
+ name: r(({ rowValue: c }) => [
1099
+ b("span", ra, f(c), 1)
1108
1100
  ]),
1109
- tags: r(({ rowValue: o }) => [
1110
- n(e(Ht), {
1101
+ tags: r(({ rowValue: c }) => [
1102
+ n(e(St), {
1111
1103
  "tag-max-width": "auto",
1112
- tags: o
1104
+ tags: c
1113
1105
  }, null, 8, ["tags"])
1114
1106
  ]),
1115
- actions: r(({ row: o }) => [
1116
- n(p, null, {
1117
- default: r(({ copyToClipboard: u }) => [
1118
- n(P, {
1107
+ actions: r(({ row: c }) => [
1108
+ n(L, null, {
1109
+ default: r(({ copyToClipboard: o }) => [
1110
+ n(j, {
1119
1111
  "data-testid": "action-entity-copy-id",
1120
- onClick: (Y) => q(o, u)
1112
+ onClick: (u) => _(c, o)
1121
1113
  }, {
1122
1114
  default: r(() => [
1123
1115
  J(f(e(h)("upstreams.actions.copy_id")), 1)
@@ -1127,11 +1119,11 @@ const pe = {
1127
1119
  ]),
1128
1120
  _: 2
1129
1121
  }, 1024),
1130
- n(p, null, {
1131
- default: r(({ copyToClipboard: u }) => [
1132
- n(P, {
1122
+ n(L, null, {
1123
+ default: r(({ copyToClipboard: o }) => [
1124
+ n(j, {
1133
1125
  "data-testid": "action-entity-copy-json",
1134
- onClick: (Y) => x(o, u)
1126
+ onClick: (u) => T(c, o)
1135
1127
  }, {
1136
1128
  default: r(() => [
1137
1129
  J(f(e(h)("upstreams.actions.copy_json")), 1)
@@ -1142,37 +1134,37 @@ const pe = {
1142
1134
  _: 2
1143
1135
  }, 1024),
1144
1136
  n(e(de), {
1145
- "auth-function": () => a.canRetrieve(o)
1137
+ "auth-function": () => a.canRetrieve(c)
1146
1138
  }, {
1147
1139
  default: r(() => [
1148
- n(P, {
1140
+ n(j, {
1149
1141
  "data-testid": "action-entity-view",
1150
1142
  "has-divider": "",
1151
- item: g(o.id)
1143
+ item: $(c.id)
1152
1144
  }, null, 8, ["item"])
1153
1145
  ]),
1154
1146
  _: 2
1155
1147
  }, 1032, ["auth-function"]),
1156
1148
  n(e(de), {
1157
- "auth-function": () => a.canEdit(o)
1149
+ "auth-function": () => a.canEdit(c)
1158
1150
  }, {
1159
1151
  default: r(() => [
1160
- n(P, {
1152
+ n(j, {
1161
1153
  "data-testid": "action-entity-edit",
1162
- item: Q(o.id)
1154
+ item: y(c.id)
1163
1155
  }, null, 8, ["item"])
1164
1156
  ]),
1165
1157
  _: 2
1166
1158
  }, 1032, ["auth-function"]),
1167
1159
  n(e(de), {
1168
- "auth-function": () => a.canDelete(o)
1160
+ "auth-function": () => a.canDelete(c)
1169
1161
  }, {
1170
1162
  default: r(() => [
1171
- n(P, {
1163
+ n(j, {
1172
1164
  danger: "",
1173
1165
  "data-testid": "action-entity-delete",
1174
1166
  "has-divider": "",
1175
- onClick: (u) => Z(o)
1167
+ onClick: (o) => M(c)
1176
1168
  }, {
1177
1169
  default: r(() => [
1178
1170
  J(f(e(h)("upstreams.actions.delete")), 1)
@@ -1185,35 +1177,12 @@ const pe = {
1185
1177
  ]),
1186
1178
  _: 2
1187
1179
  }, [
1188
- !e(D) && c.value ? {
1189
- name: "outside-actions",
1190
- fn: r(() => [
1191
- (T(), E(Be, {
1192
- disabled: !a.useActionOutside,
1193
- to: "#kong-ui-app-page-header-action-button"
1194
- }, [
1195
- n(M, {
1196
- appearance: "secondary",
1197
- class: "open-learning-hub",
1198
- "data-testid": "upstreams-learn-more-button",
1199
- icon: "",
1200
- onClick: C[2] || (C[2] = (o) => y.$emit("click:learn-more"))
1201
- }, {
1202
- default: r(() => [
1203
- n(e(yt), { decorative: "" })
1204
- ]),
1205
- _: 1
1206
- })
1207
- ], 8, ["disabled"]))
1208
- ]),
1209
- key: "0"
1210
- } : void 0,
1211
- !U.value && a.enableV2EmptyStates && a.config.app === "konnect" ? {
1180
+ !V.value && a.config.app === "konnect" ? {
1212
1181
  name: "empty-state",
1213
1182
  fn: r(() => {
1214
- var o;
1183
+ var c;
1215
1184
  return [
1216
- n(e(Vt), {
1185
+ n(e(Mt), {
1217
1186
  "action-button-text": e(h)("upstreams.list.empty_state_v2.create_cta"),
1218
1187
  appearance: "secondary",
1219
1188
  "can-create": () => a.canCreate(),
@@ -1221,12 +1190,12 @@ const pe = {
1221
1190
  description: e(h)("upstreams.list.empty_state_v2.description"),
1222
1191
  "learn-more": a.config.app === "konnect",
1223
1192
  title: e(h)("upstreams.list.empty_state_v2.title"),
1224
- "onClick:create": ae,
1225
- "onClick:learnMore": C[3] || (C[3] = (u) => y.$emit("click:learn-more"))
1226
- }, Ne({
1193
+ "onClick:create": te,
1194
+ "onClick:learnMore": S[2] || (S[2] = (o) => g.$emit("click:learn-more"))
1195
+ }, Ee({
1227
1196
  image: r(() => [
1228
- v("div", oa, [
1229
- n(e(Bt), {
1197
+ b("div", oa, [
1198
+ n(e(Rt), {
1230
1199
  color: e(aa),
1231
1200
  size: e(la)
1232
1201
  }, null, 8, ["color", "size"])
@@ -1234,7 +1203,7 @@ const pe = {
1234
1203
  ]),
1235
1204
  _: 2
1236
1205
  }, [
1237
- (o = a.config) != null && o.isControlPlaneGroup ? {
1206
+ (c = a.config) != null && c.isControlPlaneGroup ? {
1238
1207
  name: "message",
1239
1208
  fn: r(() => [
1240
1209
  J(f(e(h)("upstreams.list.empty_state_v2.group")), 1)
@@ -1244,29 +1213,29 @@ const pe = {
1244
1213
  ]), 1032, ["action-button-text", "can-create", "description", "learn-more", "title"])
1245
1214
  ];
1246
1215
  }),
1247
- key: "1"
1216
+ key: "0"
1248
1217
  } : void 0
1249
1218
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
1250
- n(e(Ut), {
1251
- "action-pending": le.value,
1219
+ n(e(Ht), {
1220
+ "action-pending": G.value,
1252
1221
  description: e(h)("upstreams.delete.description"),
1253
- "entity-name": W.value && (W.value.name || W.value.id),
1254
- "entity-type": e(It).Upstream,
1255
- error: $.value,
1222
+ "entity-name": N.value && (N.value.name || N.value.id),
1223
+ "entity-type": e(Ut).Upstream,
1224
+ error: oe.value,
1256
1225
  title: e(h)("upstreams.delete.title"),
1257
1226
  visible: z.value,
1258
- onCancel: se,
1259
- onProceed: te
1227
+ onCancel: Y,
1228
+ onProceed: le
1260
1229
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
1261
1230
  ]);
1262
1231
  };
1263
1232
  }
1264
- }), me = (a, R) => {
1233
+ }), me = (a, B) => {
1265
1234
  const i = a.__vccOpts || a;
1266
- for (const [l, h] of R)
1235
+ for (const [l, h] of B)
1267
1236
  i[l] = h;
1268
1237
  return i;
1269
- }, Ya = /* @__PURE__ */ me(na, [["__scopeId", "data-v-ab9fd150"]]), we = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}", Te = {
1238
+ }, Ya = /* @__PURE__ */ me(na, [["__scopeId", "data-v-18b86085"]]), we = "/v2/control-planes/{controlPlaneId}/core-entities", qe = "/{workspace}", Te = {
1270
1239
  list: {
1271
1240
  konnect: `${we}/upstreams/{upstreamId}/targets`,
1272
1241
  kongManager: `${qe}/upstreams/{upstreamId}/targets`
@@ -1309,12 +1278,12 @@ const pe = {
1309
1278
  }
1310
1279
  },
1311
1280
  emits: ["update", "error", "loading", "cancel"],
1312
- setup(a, { emit: R }) {
1313
- var G;
1314
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), { getMessageFromError: k } = wt(), { axiosInstance: _ } = Me((G = l.config) == null ? void 0 : G.axiosRequestConfig), D = I(() => {
1315
- var b;
1316
- return Te.form[l.config.app].edit.replace(/{upstreamId}/gi, ((b = l.config) == null ? void 0 : b.upstreamId) || "");
1317
- }), F = I(() => l.targetId ? ce.Edit : ce.Create), s = I(() => F.value === ce.Edit ? h("targets.form.edit.title") : h("targets.form.create.title")), c = Fe({
1281
+ setup(a, { emit: B }) {
1282
+ var W;
1283
+ const i = B, l = a, { i18n: { t: h } } = pe.useI18n(), { getMessageFromError: v } = It(), { axiosInstance: k } = Me((W = l.config) == null ? void 0 : W.axiosRequestConfig), D = I(() => {
1284
+ var _;
1285
+ return Te.form[l.config.app].edit.replace(/{upstreamId}/gi, ((_ = l.config) == null ? void 0 : _.upstreamId) || "");
1286
+ }), x = I(() => l.targetId ? ce.Edit : ce.Create), s = I(() => x.value === ce.Edit ? h("targets.form.edit.title") : h("targets.form.create.title")), d = Fe({
1318
1287
  fields: {
1319
1288
  target: "",
1320
1289
  weight: 100,
@@ -1322,7 +1291,7 @@ const pe = {
1322
1291
  },
1323
1292
  isReadonly: !1,
1324
1293
  errorMessage: ""
1325
- }), S = Fe({
1294
+ }), C = Fe({
1326
1295
  target: "",
1327
1296
  weight: 100,
1328
1297
  tags: ""
@@ -1331,82 +1300,82 @@ const pe = {
1331
1300
  weight: 100,
1332
1301
  tags: ""
1333
1302
  }, t = I(() => {
1334
- const b = parseInt(c.fields.weight.toString(), 10);
1335
- return b < 0 || b > 65535;
1336
- }), N = I(
1337
- () => JSON.stringify(c.fields) !== JSON.stringify(S) && !!c.fields.target && !!c.fields.weight && !t.value
1338
- ), U = (b) => {
1339
- var q;
1340
- c.fields.target = (b == null ? void 0 : b.target) || "", c.fields.weight = (b == null ? void 0 : b.weight) ?? "", c.fields.tags = ((q = b == null ? void 0 : b.tags) == null ? void 0 : q.join(", ")) || "", Object.assign(S, c.fields);
1341
- }, d = () => {
1342
- c.errorMessage = "", i("cancel");
1303
+ const _ = parseInt(d.fields.weight.toString(), 10);
1304
+ return _ < 0 || _ > 65535;
1305
+ }), V = I(
1306
+ () => JSON.stringify(d.fields) !== JSON.stringify(C) && !!d.fields.target && !!d.fields.weight && !t.value
1307
+ ), q = (_) => {
1308
+ var T;
1309
+ d.fields.target = (_ == null ? void 0 : _.target) || "", d.fields.weight = (_ == null ? void 0 : _.weight) ?? "", d.fields.tags = ((T = _ == null ? void 0 : _.tags) == null ? void 0 : T.join(", ")) || "", Object.assign(C, d.fields);
1310
+ }, p = () => {
1311
+ d.errorMessage = "", i("cancel");
1343
1312
  }, H = I(() => {
1344
- var q, x;
1345
- let b = `${l.config.apiBaseUrl}${Te.form[l.config.app].validate}`;
1346
- return l.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((q = l.config) == null ? void 0 : q.controlPlaneId) || "") : l.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (x = l.config) != null && x.workspace ? `/${l.config.workspace}` : "")), b = b.replace(/{id}/gi, l.targetId), b;
1347
- }), ee = I(() => {
1348
- var q, x, A, g;
1349
- let b = `${l.config.apiBaseUrl}${Te.form[l.config.app][F.value]}`;
1350
- return l.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((q = l.config) == null ? void 0 : q.controlPlaneId) || "").replace(/{upstreamId}/gi, ((x = l.config) == null ? void 0 : x.upstreamId) || "") : l.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = l.config) != null && A.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((g = l.config) == null ? void 0 : g.upstreamId) || "")), b = b.replace(/{id}/gi, l.targetId), b;
1351
- }), O = I(() => {
1352
- var b, q, x;
1313
+ var T, O;
1314
+ let _ = `${l.config.apiBaseUrl}${Te.form[l.config.app].validate}`;
1315
+ return l.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((T = l.config) == null ? void 0 : T.controlPlaneId) || "") : l.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (O = l.config) != null && O.workspace ? `/${l.config.workspace}` : "")), _ = _.replace(/{id}/gi, l.targetId), _;
1316
+ }), X = I(() => {
1317
+ var T, O, $, y;
1318
+ let _ = `${l.config.apiBaseUrl}${Te.form[l.config.app][x.value]}`;
1319
+ return l.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((T = l.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{upstreamId}/gi, ((O = l.config) == null ? void 0 : O.upstreamId) || "") : l.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, ($ = l.config) != null && $.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((y = l.config) == null ? void 0 : y.upstreamId) || "")), _ = _.replace(/{id}/gi, l.targetId), _;
1320
+ }), A = I(() => {
1321
+ var _, T, O;
1353
1322
  return {
1354
- target: c.fields.target,
1355
- weight: parseInt(c.fields.weight),
1356
- tags: (x = (q = (b = c.fields.tags) == null ? void 0 : b.split(",")) == null ? void 0 : q.map((A) => String(A || "").trim())) == null ? void 0 : x.filter((A) => A !== ""),
1323
+ target: d.fields.target,
1324
+ weight: parseInt(d.fields.weight),
1325
+ tags: (O = (T = (_ = d.fields.tags) == null ? void 0 : _.split(",")) == null ? void 0 : T.map(($) => String($ || "").trim())) == null ? void 0 : O.filter(($) => $ !== ""),
1357
1326
  upstream: { id: l.config.upstreamId }
1358
1327
  };
1359
- }), X = async () => {
1360
- var b, q;
1328
+ }), Z = async () => {
1329
+ var _, T;
1361
1330
  try {
1362
- c.isReadonly = !0, c.errorMessage = "";
1363
- let x;
1364
- if (await _.post(H.value, O.value), F.value === "create" ? x = await _.post(ee.value, O.value) : F.value === "edit" && (x = ((b = l.config) == null ? void 0 : b.app) === "konnect" ? await _.put(ee.value, O.value) : await _.patch(ee.value, O.value)), x) {
1365
- const { data: A } = x;
1366
- c.fields.target = (A == null ? void 0 : A.name) || "", c.fields.weight = (A == null ? void 0 : A.weight) ?? 100, c.fields.tags = ((q = A == null ? void 0 : A.tags) == null ? void 0 : q.join(", ")) || "", i("update", A), Object.assign(c.fields, m);
1331
+ d.isReadonly = !0, d.errorMessage = "";
1332
+ let O;
1333
+ if (await k.post(H.value, A.value), x.value === "create" ? O = await k.post(X.value, A.value) : x.value === "edit" && (O = ((_ = l.config) == null ? void 0 : _.app) === "konnect" ? await k.put(X.value, A.value) : await k.patch(X.value, A.value)), O) {
1334
+ const { data: $ } = O;
1335
+ d.fields.target = ($ == null ? void 0 : $.name) || "", d.fields.weight = ($ == null ? void 0 : $.weight) ?? 100, d.fields.tags = ((T = $ == null ? void 0 : $.tags) == null ? void 0 : T.join(", ")) || "", i("update", $), Object.assign(d.fields, m);
1367
1336
  }
1368
- } catch (x) {
1369
- c.errorMessage = k(x), i("error", x);
1337
+ } catch (O) {
1338
+ d.errorMessage = v(O), i("error", O);
1370
1339
  } finally {
1371
- c.isReadonly = !1;
1340
+ d.isReadonly = !1;
1372
1341
  }
1373
1342
  };
1374
1343
  return ye(() => l.targetId, () => {
1375
- Object.assign(c.fields, m);
1376
- }), (b, q) => {
1377
- const x = K("KInput"), A = K("KPrompt");
1378
- return T(), E(A, {
1379
- "action-button-disabled": !N.value || c.isReadonly,
1344
+ Object.assign(d.fields, m);
1345
+ }), (_, T) => {
1346
+ const O = K("KInput"), $ = K("KPrompt");
1347
+ return F(), R($, {
1348
+ "action-button-disabled": !V.value || d.isReadonly,
1380
1349
  "action-button-text": e(h)("targets.form.buttons.save"),
1381
1350
  "cancel-button-text": e(h)("targets.form.buttons.cancel"),
1382
1351
  title: s.value,
1383
1352
  visible: a.isVisible,
1384
- onCancel: d,
1385
- onProceed: X
1353
+ onCancel: p,
1354
+ onProceed: Z
1386
1355
  }, {
1387
1356
  default: r(() => [
1388
- v("div", ha, [
1389
- n(e(qt), {
1357
+ b("div", ha, [
1358
+ n(e(wt), {
1390
1359
  config: a.config,
1391
1360
  "edit-id": a.targetId,
1392
- "entity-type": e(Le).Target,
1393
- "error-message": c.errorMessage,
1361
+ "entity-type": e(je).Target,
1362
+ "error-message": d.errorMessage,
1394
1363
  "fetch-url": D.value,
1395
- "form-fields": O.value,
1396
- "is-readonly": c.isReadonly,
1397
- onCancel: d,
1398
- "onFetch:error": q[3] || (q[3] = (g) => b.$emit("error", g)),
1399
- "onFetch:success": U,
1400
- onLoading: q[4] || (q[4] = (g) => b.$emit("loading", g))
1364
+ "form-fields": A.value,
1365
+ "is-readonly": d.isReadonly,
1366
+ onCancel: p,
1367
+ "onFetch:error": T[3] || (T[3] = (y) => _.$emit("error", y)),
1368
+ "onFetch:success": q,
1369
+ onLoading: T[4] || (T[4] = (y) => _.$emit("loading", y))
1401
1370
  }, {
1402
1371
  default: r(() => [
1403
- v("div", ua, [
1404
- b.$slots.info ? (T(), oe("div", ca, [
1405
- vt(b.$slots, "info", {}, void 0, !0)
1406
- ])) : L("", !0),
1407
- n(x, {
1408
- modelValue: c.fields.target,
1409
- "onUpdate:modelValue": q[0] || (q[0] = (g) => c.fields.target = g),
1372
+ b("div", ua, [
1373
+ _.$slots.info ? (F(), ie("div", ca, [
1374
+ bt(_.$slots, "info", {}, void 0, !0)
1375
+ ])) : Q("", !0),
1376
+ n(O, {
1377
+ modelValue: d.fields.target,
1378
+ "onUpdate:modelValue": T[0] || (T[0] = (y) => d.fields.target = y),
1410
1379
  modelModifiers: { trim: !0 },
1411
1380
  autocomplete: "off",
1412
1381
  class: "target-form-input",
@@ -1417,13 +1386,13 @@ const pe = {
1417
1386
  tooltipAttributes: { maxWidth: "400" }
1418
1387
  },
1419
1388
  placeholder: e(h)("targets.form.fields.target.placeholder"),
1420
- readonly: c.isReadonly,
1389
+ readonly: d.isReadonly,
1421
1390
  required: "",
1422
1391
  type: "text"
1423
1392
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1424
- n(x, {
1425
- modelValue: c.fields.weight,
1426
- "onUpdate:modelValue": q[1] || (q[1] = (g) => c.fields.weight = g),
1393
+ n(O, {
1394
+ modelValue: d.fields.weight,
1395
+ "onUpdate:modelValue": T[1] || (T[1] = (y) => d.fields.weight = y),
1427
1396
  autocomplete: "off",
1428
1397
  class: "target-form-input",
1429
1398
  "data-testid": "target-form-weight",
@@ -1436,13 +1405,13 @@ const pe = {
1436
1405
  },
1437
1406
  max: "65535",
1438
1407
  min: "0",
1439
- readonly: c.isReadonly,
1408
+ readonly: d.isReadonly,
1440
1409
  required: "",
1441
1410
  type: "number"
1442
1411
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "readonly"]),
1443
- n(x, {
1444
- modelValue: c.fields.tags,
1445
- "onUpdate:modelValue": q[2] || (q[2] = (g) => c.fields.tags = g),
1412
+ n(O, {
1413
+ modelValue: d.fields.tags,
1414
+ "onUpdate:modelValue": T[2] || (T[2] = (y) => d.fields.tags = y),
1446
1415
  modelModifiers: { trim: !0 },
1447
1416
  autocomplete: "off",
1448
1417
  class: "target-form-input",
@@ -1450,7 +1419,7 @@ const pe = {
1450
1419
  help: e(h)("targets.form.fields.tags.help"),
1451
1420
  label: e(h)("targets.form.fields.tags.label"),
1452
1421
  placeholder: e(h)("targets.form.fields.tags.placeholder"),
1453
- readonly: c.isReadonly,
1422
+ readonly: d.isReadonly,
1454
1423
  type: "text"
1455
1424
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])
1456
1425
  ])
@@ -1502,28 +1471,28 @@ const pe = {
1502
1471
  }
1503
1472
  },
1504
1473
  emits: ["error", "copy:success", "copy:error", "delete:success", "health-actions:healthy", "health-actions:unhealthy", "create:target", "update:target"],
1505
- setup(a, { emit: R }) {
1506
- var ae;
1507
- const i = R, l = a, { i18n: { t: h } } = pe.useI18n(), { axiosInstance: k } = Me((ae = l.config) == null ? void 0 : ae.axiosRequestConfig), _ = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), F = {
1474
+ setup(a, { emit: B }) {
1475
+ var ee;
1476
+ const i = B, l = a, { i18n: { t: h } } = pe.useI18n(), { axiosInstance: v } = Me((ee = l.config) == null ? void 0 : ee.axiosRequestConfig), k = I(() => l.config.app !== "kongManager" || !!l.config.disableSorting), x = {
1508
1477
  // the Target Address column is non-hidable
1509
1478
  target: { label: h("targets.list.table_headers.target_address"), sortable: !0, hidable: !1 },
1510
1479
  weight: { label: h("targets.list.table_headers.weight"), sortable: !0 },
1511
1480
  tags: { label: h("targets.list.table_headers.tags"), sortable: !1 }
1512
1481
  }, s = I(() => {
1513
- var j, y, C, M;
1482
+ var g, S, U, j;
1514
1483
  let w = `${l.config.apiBaseUrl}${Te.list[l.config.app]}`;
1515
- return l.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((j = l.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{upstreamId}/gi, ((y = l.config) == null ? void 0 : y.upstreamId) || "") : l.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (C = l.config) != null && C.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((M = l.config) == null ? void 0 : M.upstreamId) || "")), w;
1484
+ return l.config.app === "konnect" ? w = w.replace(/{controlPlaneId}/gi, ((g = l.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{upstreamId}/gi, ((S = l.config) == null ? void 0 : S.upstreamId) || "") : l.config.app === "kongManager" && (w = w.replace(/\/{workspace}/gi, (U = l.config) != null && U.workspace ? `/${l.config.workspace}` : "").replace(/{upstreamId}/gi, ((j = l.config) == null ? void 0 : j.upstreamId) || "")), w;
1516
1485
  }), {
1517
- fetcher: c,
1518
- fetcherState: S,
1486
+ fetcher: d,
1487
+ fetcherState: C,
1519
1488
  fetcherCacheKey: m
1520
- } = kt(I(() => ({ ...l.config, cacheIdentifier: l.cacheIdentifier })), s), t = () => {
1489
+ } = vt(I(() => ({ ...l.config, cacheIdentifier: l.cacheIdentifier })), s), t = () => {
1521
1490
  m.value++;
1522
- }, N = B(null), U = () => {
1523
- V.value = !0;
1524
- }, d = async (w, j) => {
1525
- const y = w.id;
1526
- if (!await j(y)) {
1491
+ }, V = E(null), q = () => {
1492
+ M.value = !0;
1493
+ }, p = async (w, g) => {
1494
+ const S = w.id;
1495
+ if (!await g(S)) {
1527
1496
  i("copy:error", {
1528
1497
  entity: w,
1529
1498
  field: "id",
@@ -1534,11 +1503,11 @@ const pe = {
1534
1503
  i("copy:success", {
1535
1504
  entity: w,
1536
1505
  field: "id",
1537
- message: h("targets.copy.success", { val: y })
1506
+ message: h("targets.copy.success", { val: S })
1538
1507
  });
1539
- }, H = async (w, j) => {
1540
- const y = JSON.stringify(w);
1541
- if (!await j(y)) {
1508
+ }, H = async (w, g) => {
1509
+ const S = JSON.stringify(w);
1510
+ if (!await g(S)) {
1542
1511
  i("copy:error", {
1543
1512
  entity: w,
1544
1513
  message: h("targets.errors.copy")
@@ -1549,36 +1518,36 @@ const pe = {
1549
1518
  entity: w,
1550
1519
  message: h("targets.copy.success_brief")
1551
1520
  });
1552
- }, ee = (w) => {
1553
- $.value = w, V.value = !0;
1554
- }, O = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(w), X = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(w), G = B(void 0), b = B(!1), q = B(!1), x = B(""), A = _t(l.config, s.value), g = (w) => {
1555
- G.value = w, b.value = !0;
1556
- }, Q = () => {
1557
- b.value = !1;
1558
- }, W = async () => {
1559
- var w, j, y;
1560
- if ((w = G.value) != null && w.id) {
1561
- q.value = !0;
1521
+ }, X = (w) => {
1522
+ P.value = w, M.value = !0;
1523
+ }, A = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkHealthy(w), Z = (w) => l.config.app === "konnect" ? !1 : l.config.canMarkUnhealthy(w), W = E(void 0), _ = E(!1), T = E(!1), O = E(""), $ = kt(l.config, s.value), y = (w) => {
1524
+ W.value = w, _.value = !0;
1525
+ }, N = () => {
1526
+ _.value = !1;
1527
+ }, z = async () => {
1528
+ var w, g, S;
1529
+ if ((w = W.value) != null && w.id) {
1530
+ T.value = !0;
1562
1531
  try {
1563
- await k.delete(A(G.value.id)), q.value = !1, b.value = !1, m.value++, i("delete:success", G.value);
1564
- } catch (C) {
1565
- x.value = ((y = (j = C.response) == null ? void 0 : j.data) == null ? void 0 : y.message) || C.message || h("targets.errors.delete"), i("error", C);
1532
+ await v.delete($(W.value.id)), T.value = !1, _.value = !1, m.value++, i("delete:success", W.value);
1533
+ } catch (U) {
1534
+ O.value = ((S = (g = U.response) == null ? void 0 : g.data) == null ? void 0 : S.message) || U.message || h("targets.errors.delete"), i("error", U);
1566
1535
  } finally {
1567
- q.value = !1;
1536
+ T.value = !1;
1568
1537
  }
1569
1538
  }
1570
1539
  };
1571
- ye(S, (w) => {
1572
- var j, y, C;
1573
- if (w.status === Ct.Error) {
1574
- N.value = {
1540
+ ye(C, (w) => {
1541
+ var g, S, U;
1542
+ if (w.status === _t.Error) {
1543
+ V.value = {
1575
1544
  title: h("targets.errors.general")
1576
- }, (C = (y = (j = w.error) == null ? void 0 : j.response) == null ? void 0 : y.data) != null && C.message && (N.value.message = w.error.response.data.message), i("error", w.error);
1545
+ }, (U = (S = (g = w.error) == null ? void 0 : g.response) == null ? void 0 : S.data) != null && U.message && (V.value.message = w.error.response.data.message), i("error", w.error);
1577
1546
  return;
1578
1547
  }
1579
- N.value = null;
1548
+ V.value = null;
1580
1549
  });
1581
- const z = B({
1550
+ const G = E({
1582
1551
  ctaText: void 0,
1583
1552
  message: `${h("targets.list.empty_state.description")}${l.config.additionMessageForEmptyState ? ` ${l.config.additionMessageForEmptyState}` : ""}`,
1584
1553
  title: h("targets.title"),
@@ -1587,10 +1556,10 @@ const pe = {
1587
1556
  ctaPath: l.config.createRoute
1588
1557
  }
1589
1558
  });
1590
- je(async () => {
1591
- await l.canCreate() && (z.value.title = h("targets.list.empty_state.title"), z.value.ctaText = h("targets.actions.create"));
1559
+ De(async () => {
1560
+ await l.canCreate() && (G.value.title = h("targets.list.empty_state.title"), G.value.ctaText = h("targets.actions.create"));
1592
1561
  });
1593
- const le = I(() => ({
1562
+ const oe = I(() => ({
1594
1563
  app: l.config.app,
1595
1564
  apiBaseUrl: l.config.apiBaseUrl,
1596
1565
  upstreamId: l.config.upstreamId,
@@ -1603,32 +1572,32 @@ const pe = {
1603
1572
  ...l.config.app === "kongManager" && {
1604
1573
  workspace: l.config.workspace
1605
1574
  }
1606
- })), $ = B(""), V = B(!1), Z = (w) => {
1607
- $.value ? i("update:target", w) : i("create:target", w), se();
1608
- }, se = () => {
1575
+ })), P = E(""), M = E(!1), Y = (w) => {
1576
+ P.value ? i("update:target", w) : i("create:target", w), le();
1577
+ }, le = () => {
1609
1578
  te(), m.value++;
1610
1579
  }, te = () => {
1611
- V.value = !1, $.value = "";
1580
+ M.value = !1, P.value = "";
1612
1581
  };
1613
- return (w, j) => {
1614
- const y = K("KButton"), C = K("KDropdownItem"), M = K("KClipboardProvider");
1615
- return T(), oe("div", ma, [
1616
- n(e(St), {
1582
+ return (w, g) => {
1583
+ const S = K("KButton"), U = K("KDropdownItem"), j = K("KClipboardProvider");
1584
+ return F(), ie("div", ma, [
1585
+ n(e(Ct), {
1617
1586
  "cache-identifier": a.cacheIdentifier,
1618
- "disable-sorting": _.value,
1619
- "empty-state-options": z.value,
1587
+ "disable-sorting": k.value,
1588
+ "empty-state-options": G.value,
1620
1589
  "enable-entity-actions": "",
1621
- "error-message": N.value,
1622
- fetcher: e(c),
1590
+ "error-message": V.value,
1591
+ fetcher: e(d),
1623
1592
  "fetcher-cache-key": e(m),
1624
1593
  "pagination-type": "offset",
1625
1594
  "preferences-storage-key": "kong-ui-entities-targets-list",
1626
- "table-headers": e(F),
1627
- onEmptyStateCtaClicked: j[1] || (j[1] = () => l.config.createRoute ? void 0 : U()),
1595
+ "table-headers": e(x),
1596
+ onEmptyStateCtaClicked: g[1] || (g[1] = () => l.config.createRoute ? void 0 : q()),
1628
1597
  onSort: t
1629
1598
  }, {
1630
1599
  "toolbar-button": r(() => [
1631
- (T(), E(Be, {
1600
+ (F(), R(gt, {
1632
1601
  disabled: !a.useActionOutside,
1633
1602
  to: "#kong-ui-app-page-header-action-button"
1634
1603
  }, [
@@ -1636,15 +1605,15 @@ const pe = {
1636
1605
  "auth-function": () => a.canCreate()
1637
1606
  }, {
1638
1607
  default: r(() => [
1639
- n(y, {
1608
+ n(S, {
1640
1609
  appearance: "primary",
1641
1610
  "data-testid": "toolbar-new-target",
1642
1611
  size: a.useActionOutside ? "medium" : "large",
1643
1612
  to: l.config.createRoute ? l.config.createRoute : void 0,
1644
- onClick: j[0] || (j[0] = () => l.config.createRoute ? void 0 : U())
1613
+ onClick: g[0] || (g[0] = () => l.config.createRoute ? void 0 : q())
1645
1614
  }, {
1646
1615
  default: r(() => [
1647
- n(e(Qe)),
1616
+ n(e(Le)),
1648
1617
  J(" " + f(e(h)("targets.list.toolbar_actions.new_target")), 1)
1649
1618
  ]),
1650
1619
  _: 1
@@ -1654,21 +1623,21 @@ const pe = {
1654
1623
  }, 8, ["auth-function"])
1655
1624
  ], 8, ["disabled"]))
1656
1625
  ]),
1657
- target: r(({ rowValue: P }) => [
1658
- v("span", fa, f(P), 1)
1626
+ target: r(({ rowValue: L }) => [
1627
+ b("span", fa, f(L), 1)
1659
1628
  ]),
1660
- tags: r(({ rowValue: P }) => [
1661
- n(e(Ht), {
1629
+ tags: r(({ rowValue: L }) => [
1630
+ n(e(St), {
1662
1631
  "tag-max-width": "auto",
1663
- tags: P
1632
+ tags: L
1664
1633
  }, null, 8, ["tags"])
1665
1634
  ]),
1666
- actions: r(({ row: P }) => [
1667
- n(M, null, {
1668
- default: r(({ copyToClipboard: p }) => [
1669
- n(C, {
1635
+ actions: r(({ row: L }) => [
1636
+ n(j, null, {
1637
+ default: r(({ copyToClipboard: c }) => [
1638
+ n(U, {
1670
1639
  "data-testid": "action-entity-copy-id",
1671
- onClick: (o) => d(P, p)
1640
+ onClick: (o) => p(L, c)
1672
1641
  }, {
1673
1642
  default: r(() => [
1674
1643
  J(f(e(h)("targets.actions.copy_id")), 1)
@@ -1678,11 +1647,11 @@ const pe = {
1678
1647
  ]),
1679
1648
  _: 2
1680
1649
  }, 1024),
1681
- n(M, null, {
1682
- default: r(({ copyToClipboard: p }) => [
1683
- n(C, {
1650
+ n(j, null, {
1651
+ default: r(({ copyToClipboard: c }) => [
1652
+ n(U, {
1684
1653
  "data-testid": "action-entity-copy-json",
1685
- onClick: (o) => H(P, p)
1654
+ onClick: (o) => H(L, c)
1686
1655
  }, {
1687
1656
  default: r(() => [
1688
1657
  J(f(e(h)("targets.actions.copy_json")), 1)
@@ -1693,13 +1662,13 @@ const pe = {
1693
1662
  _: 2
1694
1663
  }, 1024),
1695
1664
  n(e(de), {
1696
- "auth-function": () => a.canEdit(P)
1665
+ "auth-function": () => a.canEdit(L)
1697
1666
  }, {
1698
1667
  default: r(() => [
1699
- n(C, {
1668
+ n(U, {
1700
1669
  "data-testid": "action-entity-edit",
1701
1670
  "has-divider": "",
1702
- onClick: (p) => ee(P.id)
1671
+ onClick: (c) => X(L.id)
1703
1672
  }, {
1704
1673
  default: r(() => [
1705
1674
  J(f(e(h)("targets.actions.edit")), 1)
@@ -1710,12 +1679,12 @@ const pe = {
1710
1679
  _: 2
1711
1680
  }, 1032, ["auth-function"]),
1712
1681
  n(e(de), {
1713
- "auth-function": () => O(P)
1682
+ "auth-function": () => A(L)
1714
1683
  }, {
1715
1684
  default: r(() => [
1716
- n(C, {
1685
+ n(U, {
1717
1686
  "data-testid": "action-target-mark-healthy",
1718
- onClick: (p) => i("health-actions:healthy", P)
1687
+ onClick: (c) => i("health-actions:healthy", L)
1719
1688
  }, {
1720
1689
  default: r(() => [
1721
1690
  J(f(e(h)("targets.actions.mark_healthy")), 1)
@@ -1726,12 +1695,12 @@ const pe = {
1726
1695
  _: 2
1727
1696
  }, 1032, ["auth-function"]),
1728
1697
  n(e(de), {
1729
- "auth-function": () => X(P)
1698
+ "auth-function": () => Z(L)
1730
1699
  }, {
1731
1700
  default: r(() => [
1732
- n(C, {
1701
+ n(U, {
1733
1702
  "data-testid": "action-target-mark-unhealthy",
1734
- onClick: (p) => i("health-actions:unhealthy", P)
1703
+ onClick: (c) => i("health-actions:unhealthy", L)
1735
1704
  }, {
1736
1705
  default: r(() => [
1737
1706
  J(f(e(h)("targets.actions.mark_unhealthy")), 1)
@@ -1742,14 +1711,14 @@ const pe = {
1742
1711
  _: 2
1743
1712
  }, 1032, ["auth-function"]),
1744
1713
  n(e(de), {
1745
- "auth-function": () => a.canDelete(P)
1714
+ "auth-function": () => a.canDelete(L)
1746
1715
  }, {
1747
1716
  default: r(() => [
1748
- n(C, {
1717
+ n(U, {
1749
1718
  danger: "",
1750
1719
  "data-testid": "action-entity-delete",
1751
1720
  "has-divider": "",
1752
- onClick: (p) => g(P)
1721
+ onClick: (c) => y(L)
1753
1722
  }, {
1754
1723
  default: r(() => [
1755
1724
  J(f(e(h)("targets.actions.delete")), 1)
@@ -1762,28 +1731,28 @@ const pe = {
1762
1731
  ]),
1763
1732
  _: 1
1764
1733
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "table-headers"]),
1765
- n(e(Ut), {
1766
- "action-pending": q.value,
1734
+ n(e(Ht), {
1735
+ "action-pending": T.value,
1767
1736
  description: e(h)("targets.delete.description"),
1768
- "entity-type": e(It).Target,
1769
- error: x.value,
1737
+ "entity-type": e(Ut).Target,
1738
+ error: O.value,
1770
1739
  "need-confirm": !1,
1771
1740
  title: e(h)("targets.delete.title"),
1772
- visible: b.value,
1773
- onCancel: Q,
1774
- onProceed: W
1741
+ visible: _.value,
1742
+ onCancel: N,
1743
+ onProceed: z
1775
1744
  }, null, 8, ["action-pending", "description", "entity-type", "error", "title", "visible"]),
1776
1745
  n(pa, {
1777
- config: le.value,
1778
- "is-visible": V.value,
1779
- "target-id": $.value,
1746
+ config: oe.value,
1747
+ "is-visible": M.value,
1748
+ "target-id": P.value,
1780
1749
  onCancel: te,
1781
- onUpdate: Z
1782
- }, Ne({ _: 2 }, [
1750
+ onUpdate: Y
1751
+ }, Ee({ _: 2 }, [
1783
1752
  w.$slots["form-info"] ? {
1784
1753
  name: "info",
1785
1754
  fn: r(() => [
1786
- vt(w.$slots, "form-info", {}, void 0, !0)
1755
+ bt(w.$slots, "form-info", {}, void 0, !0)
1787
1756
  ]),
1788
1757
  key: "0"
1789
1758
  } : void 0
@@ -1821,66 +1790,66 @@ const pe = {
1821
1790
  }
1822
1791
  },
1823
1792
  emits: ["update:name", "update:host-header", "update:client-certificate", "update:tags"],
1824
- setup(a, { emit: R }) {
1825
- var Q, W, z, le;
1826
- const { i18nT: i, i18n: { t: l } } = pe.useI18n(), h = a, k = R, {
1827
- debouncedQueryChange: _,
1793
+ setup(a, { emit: B }) {
1794
+ var N, z, G, oe;
1795
+ const { i18nT: i, i18n: { t: l } } = pe.useI18n(), h = a, v = B, {
1796
+ debouncedQueryChange: k,
1828
1797
  loading: D,
1829
- loadItems: F,
1798
+ loadItems: x,
1830
1799
  results: s,
1831
- allRecords: c
1832
- } = ft(h.config, (W = _e.form[(Q = h.config) == null ? void 0 : Q.app]) == null ? void 0 : W.getServices, "", {
1800
+ allRecords: d
1801
+ } = mt(h.config, (z = _e.form[(N = h.config) == null ? void 0 : N.app]) == null ? void 0 : z.getServices, "", {
1833
1802
  fetchedItemsKey: "data",
1834
1803
  searchKeys: ["host"]
1835
1804
  }), {
1836
- debouncedQueryChange: S,
1805
+ debouncedQueryChange: C,
1837
1806
  loading: m,
1838
1807
  loadItems: t,
1839
- results: N
1840
- } = ft(h.config, (le = _e.form[(z = h.config) == null ? void 0 : z.app]) == null ? void 0 : le.getCertificates), U = B(""), d = I(() => {
1841
- var $;
1842
- return !!h.name && !(($ = c.value) != null && $.some((V) => V.host === h.name));
1808
+ results: V
1809
+ } = mt(h.config, (oe = _e.form[(G = h.config) == null ? void 0 : G.app]) == null ? void 0 : oe.getCertificates), q = E(""), p = I(() => {
1810
+ var P;
1811
+ return !!h.name && !((P = d.value) != null && P.some((M) => M.host === h.name));
1843
1812
  }), H = I(() => {
1844
- var V, Z, se;
1845
- const $ = d.value && h.name.includes((V = U.value) == null ? void 0 : V.toLowerCase());
1846
- return (se = s.value) == null ? void 0 : se.map((te) => ({ label: te.host, value: te.id })).concat(
1847
- $ ? [{ label: h.name, value: ((Z = X.value) == null ? void 0 : Z.value) || h.name }] : []
1813
+ var M, Y, le;
1814
+ const P = p.value && h.name.includes((M = q.value) == null ? void 0 : M.toLowerCase());
1815
+ return (le = s.value) == null ? void 0 : le.map((te) => ({ label: te.host, value: te.id })).concat(
1816
+ P ? [{ label: h.name, value: ((Y = Z.value) == null ? void 0 : Y.value) || h.name }] : []
1848
1817
  );
1849
- }), ee = I(() => {
1850
- var $;
1851
- return ($ = N.value) == null ? void 0 : $.map((V) => ({ label: V.id, value: V.id }));
1852
- }), O = B(""), X = B({ value: "", label: "" }), G = I(() => {
1853
- var $, V;
1854
- return (($ = H.value.find((Z) => Z.value === O.value)) == null ? void 0 : $.label) || ((V = X.value) == null ? void 0 : V.label);
1855
- }), b = ($) => {
1856
- U.value = $, _($);
1857
- }, q = ($) => {
1858
- X.value = $;
1859
- }, x = () => {
1860
- X.value = { value: "", label: "" };
1861
- }, A = ($) => {
1862
- O.value = $, k("update:name", G.value);
1863
- }, g = B(!1);
1864
- return je(async () => {
1865
- var $, V;
1818
+ }), X = I(() => {
1819
+ var P;
1820
+ return (P = V.value) == null ? void 0 : P.map((M) => ({ label: M.id, value: M.id }));
1821
+ }), A = E(""), Z = E({ value: "", label: "" }), W = I(() => {
1822
+ var P, M;
1823
+ return ((P = H.value.find((Y) => Y.value === A.value)) == null ? void 0 : P.label) || ((M = Z.value) == null ? void 0 : M.label);
1824
+ }), _ = (P) => {
1825
+ q.value = P, k(P);
1826
+ }, T = (P) => {
1827
+ Z.value = P;
1828
+ }, O = () => {
1829
+ Z.value = { value: "", label: "" };
1830
+ }, $ = (P) => {
1831
+ A.value = P, v("update:name", W.value);
1832
+ }, y = E(!1);
1833
+ return De(async () => {
1834
+ var P, M;
1866
1835
  try {
1867
- g.value = !0, await F(), h.name && (O.value = ((V = ($ = H.value.find((Z) => Z.label === h.name)) == null ? void 0 : $.value) == null ? void 0 : V.toString()) || h.name), await t();
1836
+ y.value = !0, await x(), h.name && (A.value = ((M = (P = H.value.find((Y) => Y.label === h.name)) == null ? void 0 : P.value) == null ? void 0 : M.toString()) || h.name), await t();
1868
1837
  } finally {
1869
- g.value = !1;
1838
+ y.value = !1;
1870
1839
  }
1871
- }), ($, V) => {
1872
- const Z = K("KSkeleton"), se = K("KSelect"), te = K("KInput");
1873
- return T(), E(e(Ue), {
1840
+ }), (P, M) => {
1841
+ const Y = K("KSkeleton"), le = K("KSelect"), te = K("KInput");
1842
+ return F(), R(e(Ue), {
1874
1843
  class: "kong-ui-entities-upstreams-general-info",
1875
1844
  description: e(l)("upstreams.form.general_info.help"),
1876
1845
  title: e(l)("upstreams.form.general_info.title")
1877
1846
  }, {
1878
1847
  default: r(() => [
1879
- g.value ? (T(), E(Z, {
1848
+ y.value ? (F(), R(Y, {
1880
1849
  key: 0,
1881
1850
  type: "form"
1882
- })) : (T(), oe("div", ga, [
1883
- n(se, {
1851
+ })) : (F(), ie("div", ga, [
1852
+ n(le, {
1884
1853
  class: "name-select margin-bottom-6",
1885
1854
  clearable: "",
1886
1855
  "data-testid": "upstreams-form-name",
@@ -1891,15 +1860,15 @@ const pe = {
1891
1860
  label: e(l)("upstreams.form.fields.name.label"),
1892
1861
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } },
1893
1862
  loading: e(D),
1894
- "model-value": O.value,
1863
+ "model-value": A.value,
1895
1864
  placeholder: e(l)("upstreams.form.fields.name.placeholder"),
1896
1865
  readonly: a.readonly,
1897
1866
  required: "",
1898
1867
  width: "100%",
1899
- onItemAdded: q,
1900
- onItemRemoved: x,
1901
- onQueryChange: b,
1902
- "onUpdate:modelValue": A
1868
+ onItemAdded: T,
1869
+ onItemRemoved: O,
1870
+ onQueryChange: _,
1871
+ "onUpdate:modelValue": $
1903
1872
  }, {
1904
1873
  "label-tooltip": r(() => [
1905
1874
  n(e(i), {
@@ -1907,7 +1876,7 @@ const pe = {
1907
1876
  scope: "global"
1908
1877
  }, {
1909
1878
  host: r(() => [
1910
- v("code", null, f(e(l)("upstreams.form.fields.name.host")), 1)
1879
+ b("code", null, f(e(l)("upstreams.form.fields.name.host")), 1)
1911
1880
  ]),
1912
1881
  _: 1
1913
1882
  })
@@ -1922,15 +1891,15 @@ const pe = {
1922
1891
  "model-value": a.hostHeader,
1923
1892
  readonly: a.readonly,
1924
1893
  type: "text",
1925
- "onUpdate:modelValue": V[0] || (V[0] = (ae) => k("update:host-header", ae))
1894
+ "onUpdate:modelValue": M[0] || (M[0] = (ee) => v("update:host-header", ee))
1926
1895
  }, null, 8, ["label", "model-value", "readonly"]),
1927
- n(se, {
1896
+ n(le, {
1928
1897
  class: "certificate-select margin-bottom-6",
1929
1898
  clearable: "",
1930
1899
  "data-testid": "upstreams-form-client-certificate",
1931
1900
  "enable-filtering": "",
1932
1901
  "filter-function": () => !0,
1933
- items: ee.value,
1902
+ items: X.value,
1934
1903
  label: e(l)("upstreams.form.fields.client_certificate.label"),
1935
1904
  "label-attributes": {
1936
1905
  info: e(l)("upstreams.form.fields.client_certificate.tooltip"),
@@ -1941,8 +1910,8 @@ const pe = {
1941
1910
  placeholder: e(l)("upstreams.form.fields.client_certificate.placeholder"),
1942
1911
  readonly: a.readonly,
1943
1912
  width: "100%",
1944
- onQueryChange: e(S),
1945
- "onUpdate:modelValue": V[1] || (V[1] = (ae) => k("update:client-certificate", ae))
1913
+ onQueryChange: e(C),
1914
+ "onUpdate:modelValue": M[1] || (M[1] = (ee) => v("update:client-certificate", ee))
1946
1915
  }, null, 8, ["items", "label", "label-attributes", "loading", "model-value", "placeholder", "readonly", "onQueryChange"]),
1947
1916
  n(te, {
1948
1917
  autocomplete: "off",
@@ -1957,7 +1926,7 @@ const pe = {
1957
1926
  placeholder: e(l)("upstreams.form.fields.tags.placeholder"),
1958
1927
  readonly: a.readonly,
1959
1928
  type: "text",
1960
- "onUpdate:modelValue": V[2] || (V[2] = (ae) => k("update:tags", ae))
1929
+ "onUpdate:modelValue": M[2] || (M[2] = (ee) => v("update:tags", ee))
1961
1930
  }, null, 8, ["help", "label", "label-attributes", "model-value", "placeholder", "readonly"])
1962
1931
  ]))
1963
1932
  ]),
@@ -1965,7 +1934,7 @@ const pe = {
1965
1934
  }, 8, ["description", "title"]);
1966
1935
  };
1967
1936
  }
1968
- }), va = /* @__PURE__ */ me(ba, [["__scopeId", "data-v-1a71740c"]]), Ke = {
1937
+ }), va = /* @__PURE__ */ me(ba, [["__scopeId", "data-v-1a71740c"]]), Ve = {
1969
1938
  upstreamObject: "https://docs.konghq.com/gateway/latest/admin-api/#upstream-object",
1970
1939
  loadBalancing: "https://docs.konghq.com/gateway/latest/how-kong-works/load-balancing/#main"
1971
1940
  }, ka = { class: "fields-group-title" }, _a = { class: "fields-group-text" }, Ca = { class: "fields-group-title" }, Sa = { class: "fields-group-text" }, Ha = /* @__PURE__ */ he({
@@ -2039,8 +2008,8 @@ const pe = {
2039
2008
  }
2040
2009
  },
2041
2010
  emits: ["update:algorithm", "update:sticky-sessions-cookie", "update:sticky-sessions-cookie-path", "update:slots", "update:hash-on", "update:hash-fallback", "update:hash-on-header", "update:hash-on-cookie", "update:hash-on-cookie-path", "update:hash-on-query-argument", "update:hash-on-uri-capture", "update:hash-fallback-header", "update:hash-fallback-query-argument", "update:hash-fallback-uri-capture"],
2042
- setup(a, { emit: R }) {
2043
- const { i18nT: i, i18n: { t: l } } = pe.useI18n(), { inRange: h } = Ve(), k = a, _ = R, D = B([
2011
+ setup(a, { emit: B }) {
2012
+ const { i18nT: i, i18n: { t: l } } = pe.useI18n(), { inRange: h } = Ke(), v = a, k = B, D = E([
2044
2013
  {
2045
2014
  label: l("upstreams.form.algorithms.round_robin_label"),
2046
2015
  value: "round-robin",
@@ -2061,12 +2030,12 @@ const pe = {
2061
2030
  value: "latency",
2062
2031
  selected: !1
2063
2032
  },
2064
- ...k.stickySessionsAvailable ? [{
2033
+ ...v.stickySessionsAvailable ? [{
2065
2034
  label: l("upstreams.form.algorithms.sticky_sessions_label"),
2066
2035
  value: "sticky-sessions",
2067
2036
  selected: !1
2068
2037
  }] : []
2069
- ]), F = B([
2038
+ ]), x = E([
2070
2039
  {
2071
2040
  label: l("upstreams.form.hash_labels.none"),
2072
2041
  value: "none",
@@ -2108,24 +2077,24 @@ const pe = {
2108
2077
  selected: !1
2109
2078
  }
2110
2079
  ]);
2111
- ye(() => k.hashOn, (S, m) => {
2112
- m === "header" && S !== m && _("update:hash-on-header", ""), m === "cookie" && S !== m && (_("update:hash-on-cookie", ""), _("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && _("update:hash-on-query-argument", ""), m === "uri_capture" && S !== m && _("update:hash-on-uri-capture", ""), (S === "cookie" || S === "none") && (_("update:hash-fallback", "none"), _("update:hash-fallback-header", ""), _("update:hash-fallback-query-argument", ""), _("update:hash-fallback-uri-capture", ""));
2113
- }), ye(() => k.hashFallback, (S, m) => {
2114
- m === "header" && S !== m && _("update:hash-fallback-header", ""), m === "cookie" && S !== m && (_("update:hash-on-cookie", ""), _("update:hash-on-cookie-path", "/")), m === "query_arg" && S !== m && _("update:hash-fallback-query-argument", ""), m === "uri_capture" && S !== m && _("update:hash-fallback-uri-capture", "");
2080
+ ye(() => v.hashOn, (C, m) => {
2081
+ m === "header" && C !== m && k("update:hash-on-header", ""), m === "cookie" && C !== m && (k("update:hash-on-cookie", ""), k("update:hash-on-cookie-path", "/")), m === "query_arg" && C !== m && k("update:hash-on-query-argument", ""), m === "uri_capture" && C !== m && k("update:hash-on-uri-capture", ""), (C === "cookie" || C === "none") && (k("update:hash-fallback", "none"), k("update:hash-fallback-header", ""), k("update:hash-fallback-query-argument", ""), k("update:hash-fallback-uri-capture", ""));
2082
+ }), ye(() => v.hashFallback, (C, m) => {
2083
+ m === "header" && C !== m && k("update:hash-fallback-header", ""), m === "cookie" && C !== m && (k("update:hash-on-cookie", ""), k("update:hash-on-cookie-path", "/")), m === "query_arg" && C !== m && k("update:hash-fallback-query-argument", ""), m === "uri_capture" && C !== m && k("update:hash-fallback-uri-capture", "");
2115
2084
  });
2116
- const s = I(() => k.hashOn === "cookie" || k.hashOn === "none"), c = I(() => k.slots ? h(k.slots, Re, De) ? "" : l("upstreams.form.errors.in_range") : "");
2117
- return (S, m) => {
2118
- const t = K("KExternalLink"), N = K("KSelect"), U = K("KInput"), d = K("KCard");
2119
- return T(), E(e(Ue), {
2085
+ const s = I(() => v.hashOn === "cookie" || v.hashOn === "none"), d = I(() => v.slots ? h(v.slots, Re, Be) ? "" : l("upstreams.form.errors.in_range") : "");
2086
+ return (C, m) => {
2087
+ const t = K("KExternalLink"), V = K("KSelect"), q = K("KInput"), p = K("KCard");
2088
+ return F(), R(e(Ue), {
2120
2089
  class: "kong-ui-entities-upstreams-load-balancing",
2121
2090
  title: e(l)("upstreams.form.load_balancing.title")
2122
2091
  }, {
2123
2092
  description: r(() => [
2124
- v("p", null, [
2093
+ b("p", null, [
2125
2094
  J(f(e(l)("upstreams.form.load_balancing.help")) + " ", 1),
2126
2095
  n(t, {
2127
2096
  "hide-icon": "",
2128
- href: e(Ke).upstreamObject
2097
+ href: e(Ve).upstreamObject
2129
2098
  }, {
2130
2099
  default: r(() => [
2131
2100
  J(f(e(l)("upstreams.form.buttons.view_documentation")), 1)
@@ -2135,17 +2104,17 @@ const pe = {
2135
2104
  ])
2136
2105
  ]),
2137
2106
  default: r(() => [
2138
- n(N, {
2107
+ n(V, {
2139
2108
  class: "algorithm-select",
2140
2109
  items: D.value,
2141
2110
  label: e(l)("upstreams.form.fields.algorithm.label"),
2142
2111
  "model-value": a.algorithm,
2143
2112
  readonly: a.readonly,
2144
2113
  width: "100%",
2145
- "onUpdate:modelValue": m[0] || (m[0] = (H) => _("update:algorithm", H))
2114
+ "onUpdate:modelValue": m[0] || (m[0] = (H) => k("update:algorithm", H))
2146
2115
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2147
- a.algorithm === "sticky-sessions" ? (T(), oe(Se, { key: 0 }, [
2148
- n(U, {
2116
+ a.algorithm === "sticky-sessions" ? (F(), ie(Se, { key: 0 }, [
2117
+ n(q, {
2149
2118
  autocomplete: "off",
2150
2119
  "data-testid": "upstreams-form-sticky-sessions-cookie",
2151
2120
  label: e(l)("upstreams.form.fields.sticky_sessions_cookie.label"),
@@ -2157,9 +2126,9 @@ const pe = {
2157
2126
  readonly: a.readonly,
2158
2127
  required: "",
2159
2128
  type: "text",
2160
- "onUpdate:modelValue": m[1] || (m[1] = (H) => _("update:sticky-sessions-cookie", H))
2129
+ "onUpdate:modelValue": m[1] || (m[1] = (H) => k("update:sticky-sessions-cookie", H))
2161
2130
  }, null, 8, ["label", "label-attributes", "model-value", "readonly"]),
2162
- n(U, {
2131
+ n(q, {
2163
2132
  autocomplete: "off",
2164
2133
  "data-testid": "upstreams-form-sticky-sessions-cookie-path",
2165
2134
  label: e(l)("upstreams.form.fields.sticky_sessions_cookie_path.label"),
@@ -2171,37 +2140,37 @@ const pe = {
2171
2140
  readonly: a.readonly,
2172
2141
  required: "",
2173
2142
  type: "text",
2174
- "onUpdate:modelValue": m[2] || (m[2] = (H) => _("update:sticky-sessions-cookie-path", H))
2143
+ "onUpdate:modelValue": m[2] || (m[2] = (H) => k("update:sticky-sessions-cookie-path", H))
2175
2144
  }, null, 8, ["label", "label-attributes", "model-value", "readonly"])
2176
- ], 64)) : L("", !0),
2177
- n(U, {
2145
+ ], 64)) : Q("", !0),
2146
+ n(q, {
2178
2147
  autocomplete: "off",
2179
2148
  "data-testid": "upstreams-form-slots",
2180
- error: !!c.value,
2181
- "error-message": c.value,
2149
+ error: !!d.value,
2150
+ "error-message": d.value,
2182
2151
  help: e(l)("upstreams.form.fields.slots.help"),
2183
2152
  label: e(l)("upstreams.form.fields.slots.label"),
2184
- max: e(De),
2153
+ max: e(Be),
2185
2154
  min: e(Re),
2186
2155
  "model-value": a.slots,
2187
2156
  readonly: a.readonly,
2188
2157
  type: "number",
2189
- "onUpdate:modelValue": m[3] || (m[3] = (H) => _("update:slots", H))
2158
+ "onUpdate:modelValue": m[3] || (m[3] = (H) => k("update:slots", H))
2190
2159
  }, null, 8, ["error", "error-message", "help", "label", "max", "min", "model-value", "readonly"]),
2191
- n(d, null, {
2160
+ n(p, null, {
2192
2161
  default: r(() => [
2193
- v("h5", ka, f(e(l)("upstreams.form.fields.hash_on.label")), 1),
2194
- v("p", _a, f(e(l)("upstreams.form.fields.hash_on.help")), 1),
2195
- n(N, {
2162
+ b("h5", ka, f(e(l)("upstreams.form.fields.hash_on.label")), 1),
2163
+ b("p", _a, f(e(l)("upstreams.form.fields.hash_on.help")), 1),
2164
+ n(V, {
2196
2165
  class: "hash-on-select",
2197
- items: F.value,
2166
+ items: x.value,
2198
2167
  label: e(l)("upstreams.form.fields.hash_on.label"),
2199
2168
  "model-value": a.hashOn,
2200
2169
  readonly: a.readonly,
2201
2170
  width: "100%",
2202
- "onUpdate:modelValue": m[4] || (m[4] = (H) => _("update:hash-on", H))
2171
+ "onUpdate:modelValue": m[4] || (m[4] = (H) => k("update:hash-on", H))
2203
2172
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2204
- a.hashOn === "header" ? (T(), E(U, {
2173
+ a.hashOn === "header" ? (F(), R(q, {
2205
2174
  key: 0,
2206
2175
  autocomplete: "off",
2207
2176
  class: "margin-top-6",
@@ -2211,10 +2180,10 @@ const pe = {
2211
2180
  readonly: a.readonly,
2212
2181
  required: "",
2213
2182
  type: "text",
2214
- "onUpdate:modelValue": m[5] || (m[5] = (H) => _("update:hash-on-header", H))
2215
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0),
2216
- a.hashOn === "cookie" ? (T(), oe(Se, { key: 1 }, [
2217
- n(U, {
2183
+ "onUpdate:modelValue": m[5] || (m[5] = (H) => k("update:hash-on-header", H))
2184
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
2185
+ a.hashOn === "cookie" ? (F(), ie(Se, { key: 1 }, [
2186
+ n(q, {
2218
2187
  autocomplete: "off",
2219
2188
  class: "margin-top-6",
2220
2189
  "data-testid": "upstreams-form-hash-on-cookie",
@@ -2223,9 +2192,9 @@ const pe = {
2223
2192
  readonly: a.readonly,
2224
2193
  required: "",
2225
2194
  type: "text",
2226
- "onUpdate:modelValue": m[6] || (m[6] = (H) => _("update:hash-on-cookie", H))
2195
+ "onUpdate:modelValue": m[6] || (m[6] = (H) => k("update:hash-on-cookie", H))
2227
2196
  }, null, 8, ["label", "model-value", "readonly"]),
2228
- n(U, {
2197
+ n(q, {
2229
2198
  autocomplete: "off",
2230
2199
  class: "margin-top-6",
2231
2200
  "data-testid": "upstreams-form-hash-on-cookie-path",
@@ -2234,10 +2203,10 @@ const pe = {
2234
2203
  readonly: a.readonly,
2235
2204
  required: "",
2236
2205
  type: "text",
2237
- "onUpdate:modelValue": m[7] || (m[7] = (H) => _("update:hash-on-cookie-path", H))
2206
+ "onUpdate:modelValue": m[7] || (m[7] = (H) => k("update:hash-on-cookie-path", H))
2238
2207
  }, null, 8, ["label", "model-value", "readonly"])
2239
- ], 64)) : L("", !0),
2240
- a.hashOn === "query_arg" ? (T(), E(U, {
2208
+ ], 64)) : Q("", !0),
2209
+ a.hashOn === "query_arg" ? (F(), R(q, {
2241
2210
  key: 2,
2242
2211
  autocomplete: "off",
2243
2212
  class: "margin-top-6",
@@ -2247,9 +2216,9 @@ const pe = {
2247
2216
  readonly: a.readonly,
2248
2217
  required: "",
2249
2218
  type: "text",
2250
- "onUpdate:modelValue": m[8] || (m[8] = (H) => _("update:hash-on-query-argument", H))
2251
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0),
2252
- a.hashOn === "uri_capture" ? (T(), E(U, {
2219
+ "onUpdate:modelValue": m[8] || (m[8] = (H) => k("update:hash-on-query-argument", H))
2220
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
2221
+ a.hashOn === "uri_capture" ? (F(), R(q, {
2253
2222
  key: 3,
2254
2223
  autocomplete: "off",
2255
2224
  class: "margin-top-6",
@@ -2259,25 +2228,25 @@ const pe = {
2259
2228
  readonly: a.readonly,
2260
2229
  required: "",
2261
2230
  type: "text",
2262
- "onUpdate:modelValue": m[9] || (m[9] = (H) => _("update:hash-on-uri-capture", H))
2263
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0)
2231
+ "onUpdate:modelValue": m[9] || (m[9] = (H) => k("update:hash-on-uri-capture", H))
2232
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0)
2264
2233
  ]),
2265
2234
  _: 1
2266
2235
  }),
2267
- n(d, null, {
2236
+ n(p, null, {
2268
2237
  default: r(() => [
2269
- v("h5", Ca, f(e(l)("upstreams.form.fields.hash_fallback.label")), 1),
2270
- v("p", Sa, f(e(l)("upstreams.form.fields.hash_fallback.help")), 1),
2271
- n(N, {
2238
+ b("h5", Ca, f(e(l)("upstreams.form.fields.hash_fallback.label")), 1),
2239
+ b("p", Sa, f(e(l)("upstreams.form.fields.hash_fallback.help")), 1),
2240
+ n(V, {
2272
2241
  class: "hash-fallback-select",
2273
2242
  disabled: s.value,
2274
- items: F.value,
2243
+ items: x.value,
2275
2244
  label: e(l)("upstreams.form.fields.hash_fallback.label"),
2276
2245
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } },
2277
2246
  "model-value": a.hashFallback,
2278
2247
  readonly: a.readonly,
2279
2248
  width: "100%",
2280
- "onUpdate:modelValue": m[10] || (m[10] = (H) => _("update:hash-fallback", H))
2249
+ "onUpdate:modelValue": m[10] || (m[10] = (H) => k("update:hash-fallback", H))
2281
2250
  }, {
2282
2251
  "label-tooltip": r(() => [
2283
2252
  n(e(i), {
@@ -2285,17 +2254,17 @@ const pe = {
2285
2254
  scope: "global"
2286
2255
  }, {
2287
2256
  hash_on: r(() => [
2288
- v("code", null, f(e(l)("upstreams.form.fields.hash_fallback.hash_on")), 1)
2257
+ b("code", null, f(e(l)("upstreams.form.fields.hash_fallback.hash_on")), 1)
2289
2258
  ]),
2290
2259
  cookie: r(() => [
2291
- v("code", null, f(e(l)("upstreams.form.fields.hash_fallback.cookie")), 1)
2260
+ b("code", null, f(e(l)("upstreams.form.fields.hash_fallback.cookie")), 1)
2292
2261
  ]),
2293
2262
  _: 1
2294
2263
  })
2295
2264
  ]),
2296
2265
  _: 1
2297
2266
  }, 8, ["disabled", "items", "label", "model-value", "readonly"]),
2298
- a.hashFallback === "header" ? (T(), E(U, {
2267
+ a.hashFallback === "header" ? (F(), R(q, {
2299
2268
  key: 0,
2300
2269
  autocomplete: "off",
2301
2270
  class: "margin-top-6",
@@ -2305,10 +2274,10 @@ const pe = {
2305
2274
  readonly: a.readonly,
2306
2275
  required: "",
2307
2276
  type: "text",
2308
- "onUpdate:modelValue": m[11] || (m[11] = (H) => _("update:hash-fallback-header", H))
2309
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0),
2310
- a.hashFallback === "cookie" ? (T(), oe(Se, { key: 1 }, [
2311
- n(U, {
2277
+ "onUpdate:modelValue": m[11] || (m[11] = (H) => k("update:hash-fallback-header", H))
2278
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
2279
+ a.hashFallback === "cookie" ? (F(), ie(Se, { key: 1 }, [
2280
+ n(q, {
2312
2281
  autocomplete: "off",
2313
2282
  class: "margin-top-6",
2314
2283
  "data-testid": "upstreams-form-hash-on-cookie",
@@ -2317,9 +2286,9 @@ const pe = {
2317
2286
  readonly: a.readonly,
2318
2287
  required: "",
2319
2288
  type: "text",
2320
- "onUpdate:modelValue": m[12] || (m[12] = (H) => _("update:hash-on-cookie", H))
2289
+ "onUpdate:modelValue": m[12] || (m[12] = (H) => k("update:hash-on-cookie", H))
2321
2290
  }, null, 8, ["label", "model-value", "readonly"]),
2322
- n(U, {
2291
+ n(q, {
2323
2292
  autocomplete: "off",
2324
2293
  class: "margin-top-6",
2325
2294
  "data-testid": "upstreams-form-hash-on-cookie-path",
@@ -2328,10 +2297,10 @@ const pe = {
2328
2297
  readonly: a.readonly,
2329
2298
  required: "",
2330
2299
  type: "text",
2331
- "onUpdate:modelValue": m[13] || (m[13] = (H) => _("update:hash-on-cookie-path", H))
2300
+ "onUpdate:modelValue": m[13] || (m[13] = (H) => k("update:hash-on-cookie-path", H))
2332
2301
  }, null, 8, ["label", "model-value", "readonly"])
2333
- ], 64)) : L("", !0),
2334
- a.hashFallback === "query_arg" ? (T(), E(U, {
2302
+ ], 64)) : Q("", !0),
2303
+ a.hashFallback === "query_arg" ? (F(), R(q, {
2335
2304
  key: 2,
2336
2305
  autocomplete: "off",
2337
2306
  class: "margin-top-6",
@@ -2341,9 +2310,9 @@ const pe = {
2341
2310
  readonly: a.readonly,
2342
2311
  required: "",
2343
2312
  type: "text",
2344
- "onUpdate:modelValue": m[14] || (m[14] = (H) => _("update:hash-fallback-query-argument", H))
2345
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0),
2346
- a.hashFallback === "uri_capture" ? (T(), E(U, {
2313
+ "onUpdate:modelValue": m[14] || (m[14] = (H) => k("update:hash-fallback-query-argument", H))
2314
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0),
2315
+ a.hashFallback === "uri_capture" ? (F(), R(q, {
2347
2316
  key: 3,
2348
2317
  autocomplete: "off",
2349
2318
  class: "margin-top-6",
@@ -2353,8 +2322,8 @@ const pe = {
2353
2322
  readonly: a.readonly,
2354
2323
  required: "",
2355
2324
  type: "text",
2356
- "onUpdate:modelValue": m[15] || (m[15] = (H) => _("update:hash-fallback-uri-capture", H))
2357
- }, null, 8, ["label", "model-value", "readonly"])) : L("", !0)
2325
+ "onUpdate:modelValue": m[15] || (m[15] = (H) => k("update:hash-fallback-uri-capture", H))
2326
+ }, null, 8, ["label", "model-value", "readonly"])) : Q("", !0)
2358
2327
  ]),
2359
2328
  _: 1
2360
2329
  })
@@ -2385,20 +2354,20 @@ const pe = {
2385
2354
  }
2386
2355
  },
2387
2356
  emits: ["update:active-health-switch", "update:passive-health-switch", "update:healthchecks-threshold"],
2388
- setup(a, { emit: R }) {
2389
- const { i18n: { t: i } } = pe.useI18n(), l = R;
2390
- return (h, k) => {
2391
- const _ = K("KExternalLink"), D = K("KInputSwitch"), F = K("KCard"), s = K("KInput");
2392
- return T(), E(e(Ue), {
2357
+ setup(a, { emit: B }) {
2358
+ const { i18n: { t: i } } = pe.useI18n(), l = B;
2359
+ return (h, v) => {
2360
+ const k = K("KExternalLink"), D = K("KInputSwitch"), x = K("KCard"), s = K("KInput");
2361
+ return F(), R(e(Ue), {
2393
2362
  class: "kong-ui-entities-upstreams-healthchecks",
2394
2363
  title: e(i)("upstreams.form.health_check.title")
2395
2364
  }, {
2396
2365
  description: r(() => [
2397
- v("p", null, [
2366
+ b("p", null, [
2398
2367
  J(f(e(i)("upstreams.form.health_check.help")) + " ", 1),
2399
- n(_, {
2368
+ n(k, {
2400
2369
  "hide-icon": "",
2401
- href: e(Ke).loadBalancing
2370
+ href: e(Ve).loadBalancing
2402
2371
  }, {
2403
2372
  default: r(() => [
2404
2373
  J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
@@ -2408,30 +2377,30 @@ const pe = {
2408
2377
  ])
2409
2378
  ]),
2410
2379
  default: r(() => [
2411
- n(F, null, {
2380
+ n(x, null, {
2412
2381
  default: r(() => [
2413
- v("h5", Ia, f(e(i)("upstreams.form.fields.active_health_checks.label")), 1),
2414
- v("p", wa, f(e(i)("upstreams.form.fields.active_health_checks.help")), 1),
2382
+ b("h5", Ia, f(e(i)("upstreams.form.fields.active_health_checks.label")), 1),
2383
+ b("p", wa, f(e(i)("upstreams.form.fields.active_health_checks.help")), 1),
2415
2384
  n(D, {
2416
2385
  class: "active-health-switch",
2417
2386
  "data-testid": "active-health-switch",
2418
2387
  disabled: a.readonly,
2419
2388
  "model-value": a.activeHealthSwitch,
2420
- onChange: k[0] || (k[0] = (c) => l("update:active-health-switch", c))
2389
+ onChange: v[0] || (v[0] = (d) => l("update:active-health-switch", d))
2421
2390
  }, null, 8, ["disabled", "model-value"])
2422
2391
  ]),
2423
2392
  _: 1
2424
2393
  }),
2425
- n(F, null, {
2394
+ n(x, null, {
2426
2395
  default: r(() => [
2427
- v("h5", qa, f(e(i)("upstreams.form.fields.passive_health_checks.label")), 1),
2428
- v("p", Ta, f(e(i)("upstreams.form.fields.passive_health_checks.help")), 1),
2396
+ b("h5", qa, f(e(i)("upstreams.form.fields.passive_health_checks.label")), 1),
2397
+ b("p", Ta, f(e(i)("upstreams.form.fields.passive_health_checks.help")), 1),
2429
2398
  n(D, {
2430
2399
  class: "passive-health-switch",
2431
2400
  "data-testid": "passive-health-switch",
2432
2401
  disabled: a.readonly,
2433
2402
  "model-value": a.passiveHealthSwitch,
2434
- onChange: k[1] || (k[1] = (c) => l("update:passive-health-switch", c))
2403
+ onChange: v[1] || (v[1] = (d) => l("update:passive-health-switch", d))
2435
2404
  }, null, 8, ["disabled", "model-value"])
2436
2405
  ]),
2437
2406
  _: 1
@@ -2445,14 +2414,14 @@ const pe = {
2445
2414
  "model-value": a.healthchecksThreshold,
2446
2415
  readonly: a.readonly,
2447
2416
  type: "number",
2448
- "onUpdate:modelValue": k[2] || (k[2] = (c) => l("update:healthchecks-threshold", c))
2417
+ "onUpdate:modelValue": v[2] || (v[2] = (d) => l("update:healthchecks-threshold", d))
2449
2418
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])
2450
2419
  ]),
2451
2420
  _: 1
2452
2421
  }, 8, ["title"]);
2453
2422
  };
2454
2423
  }
2455
- }), xa = /* @__PURE__ */ me(Fa, [["__scopeId", "data-v-c2ff95ff"]]), Oa = { key: 2 }, $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Aa = { class: "fields-group-title" }, Ma = { class: "fields-group-text" }, Va = /* @__PURE__ */ he({
2424
+ }), xa = /* @__PURE__ */ me(Fa, [["__scopeId", "data-v-c2ff95ff"]]), Oa = { key: 2 }, $a = { class: "fields-group-title" }, Pa = { class: "fields-group-text" }, Aa = { class: "fields-group-title" }, Ma = { class: "fields-group-text" }, Ka = /* @__PURE__ */ he({
2456
2425
  __name: "UpstreamsFormActiveHealthCheck",
2457
2426
  props: {
2458
2427
  config: {
@@ -2526,8 +2495,8 @@ const pe = {
2526
2495
  }
2527
2496
  },
2528
2497
  emits: ["update:type", "update:http-path", "update:timeout", "update:concurrency", "update:https-sni", "update:verify-ssl", "update:headers", "update:healthy-interval", "update:healthy-successes", "update:healthy-http-statuses", "update:unhealthy-interval", "update:unhealthy-http-failures", "update:unhealthy-tcp-failures", "update:unhealthy-http-statuses", "update:unhealthy-timeouts"],
2529
- setup(a, { emit: R }) {
2530
- const { i18n: { t: i } } = pe.useI18n(), { objectsAreEqual: l } = Ve(), h = a, k = R, _ = B([
2498
+ setup(a, { emit: B }) {
2499
+ const { i18n: { t: i } } = pe.useI18n(), { objectsAreEqual: l } = Ke(), h = a, v = B, k = E([
2531
2500
  {
2532
2501
  label: i("upstreams.form.healthcheck_type_labels.http"),
2533
2502
  value: "http",
@@ -2553,40 +2522,40 @@ const pe = {
2553
2522
  value: "grpcs",
2554
2523
  selected: !1
2555
2524
  }
2556
- ]), D = I(() => h.type === "https" || h.type === "grpcs"), F = I(() => h.type === "tcp"), {
2525
+ ]), D = I(() => h.type === "https" || h.type === "grpcs"), x = I(() => h.type === "tcp"), {
2557
2526
  trackNewItems: s
2558
2527
  } = He({ replaceId: !0 }), {
2559
- trackNewItems: c
2528
+ trackNewItems: d
2560
2529
  } = He({ replaceId: !0 });
2561
- ye(() => h.type, (U, d) => {
2562
- d === "tcp" && U !== d && k("update:unhealthy-tcp-failures", "5"), (d === "https" || d === "grpcs") && U !== d && (k("update:https-sni", ""), k("update:verify-ssl", !1)), d !== "tcp" && U === "tcp" && (k("update:http-path", "/"), k("update:healthy-http-statuses", Oe), k("update:unhealthy-http-statuses", Pe));
2530
+ ye(() => h.type, (q, p) => {
2531
+ p === "tcp" && q !== p && v("update:unhealthy-tcp-failures", "5"), (p === "https" || p === "grpcs") && q !== p && (v("update:https-sni", ""), v("update:verify-ssl", !1)), p !== "tcp" && q === "tcp" && (v("update:http-path", "/"), v("update:healthy-http-statuses", Oe), v("update:unhealthy-http-statuses", Pe));
2563
2532
  });
2564
- const S = B([{ key: "", values: "" }]);
2565
- ye(() => h.headers, (U) => {
2566
- l(S.value, U) || (S.value = [...U]);
2533
+ const C = E([{ key: "", values: "" }]);
2534
+ ye(() => h.headers, (q) => {
2535
+ l(C.value, q) || (C.value = [...q]);
2567
2536
  }, {
2568
2537
  immediate: !0,
2569
2538
  deep: !0
2570
2539
  });
2571
2540
  const m = () => {
2572
- k("update:headers", S.value);
2541
+ v("update:headers", C.value);
2573
2542
  }, t = () => {
2574
- S.value.push({ key: "", values: "" }), m();
2575
- }, N = (U) => {
2576
- U === 0 && S.value.length === 1 ? S.value[0] = { key: "", values: "" } : S.value.splice(U, 1), m();
2543
+ C.value.push({ key: "", values: "" }), m();
2544
+ }, V = (q) => {
2545
+ q === 0 && C.value.length === 1 ? C.value[0] = { key: "", values: "" } : C.value.splice(q, 1), m();
2577
2546
  };
2578
- return (U, d) => {
2579
- const H = K("KExternalLink"), ee = K("KSelect"), O = K("KInput"), X = K("KCheckbox"), G = K("KLabel"), b = K("KButton"), q = K("KMultiselect"), x = K("KCard");
2580
- return T(), E(e(Ue), {
2547
+ return (q, p) => {
2548
+ const H = K("KExternalLink"), X = K("KSelect"), A = K("KInput"), Z = K("KCheckbox"), W = K("KLabel"), _ = K("KButton"), T = K("KMultiselect"), O = K("KCard");
2549
+ return F(), R(e(Ue), {
2581
2550
  class: "kong-ui-entities-upstreams-active-healthcheck",
2582
2551
  title: e(i)("upstreams.form.active_health_check.title")
2583
2552
  }, {
2584
2553
  description: r(() => [
2585
- v("p", null, [
2554
+ b("p", null, [
2586
2555
  J(f(e(i)("upstreams.form.active_health_check.help")) + " ", 1),
2587
2556
  n(H, {
2588
2557
  "hide-icon": "",
2589
- href: e(Ke).upstreamObject
2558
+ href: e(Ve).upstreamObject
2590
2559
  }, {
2591
2560
  default: r(() => [
2592
2561
  J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
@@ -2596,18 +2565,18 @@ const pe = {
2596
2565
  ])
2597
2566
  ]),
2598
2567
  default: r(() => {
2599
- var A;
2568
+ var $;
2600
2569
  return [
2601
- n(ee, {
2570
+ n(X, {
2602
2571
  class: "active-healthcheck-type-select",
2603
- items: _.value,
2572
+ items: k.value,
2604
2573
  label: e(i)("upstreams.form.fields.active_healthcheck_type.label"),
2605
2574
  "model-value": a.type,
2606
2575
  readonly: a.readonly,
2607
2576
  width: "100%",
2608
- "onUpdate:modelValue": d[0] || (d[0] = (g) => k("update:type", g))
2577
+ "onUpdate:modelValue": p[0] || (p[0] = (y) => v("update:type", y))
2609
2578
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2610
- F.value ? L("", !0) : (T(), E(O, {
2579
+ x.value ? Q("", !0) : (F(), R(A, {
2611
2580
  key: 0,
2612
2581
  autocomplete: "off",
2613
2582
  "data-testid": "active-healthcheck-http-path",
@@ -2615,9 +2584,9 @@ const pe = {
2615
2584
  "model-value": a.httpPath,
2616
2585
  readonly: a.readonly,
2617
2586
  type: "text",
2618
- "onUpdate:modelValue": d[1] || (d[1] = (g) => k("update:http-path", g))
2587
+ "onUpdate:modelValue": p[1] || (p[1] = (y) => v("update:http-path", y))
2619
2588
  }, null, 8, ["label", "model-value", "readonly"])),
2620
- n(O, {
2589
+ n(A, {
2621
2590
  autocomplete: "off",
2622
2591
  "data-testid": "active-healthcheck-timeout",
2623
2592
  label: e(i)("upstreams.form.fields.timeout.label"),
@@ -2626,9 +2595,9 @@ const pe = {
2626
2595
  "model-value": a.timeout,
2627
2596
  readonly: a.readonly,
2628
2597
  type: "number",
2629
- "onUpdate:modelValue": d[2] || (d[2] = (g) => k("update:timeout", g))
2598
+ "onUpdate:modelValue": p[2] || (p[2] = (y) => v("update:timeout", y))
2630
2599
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2631
- n(O, {
2600
+ n(A, {
2632
2601
  autocomplete: "off",
2633
2602
  "data-testid": "active-healthcheck-concurrency",
2634
2603
  label: e(i)("upstreams.form.fields.concurrency.label"),
@@ -2637,10 +2606,10 @@ const pe = {
2637
2606
  "model-value": a.concurrency,
2638
2607
  readonly: a.readonly,
2639
2608
  type: "number",
2640
- "onUpdate:modelValue": d[3] || (d[3] = (g) => k("update:concurrency", g))
2609
+ "onUpdate:modelValue": p[3] || (p[3] = (y) => v("update:concurrency", y))
2641
2610
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2642
- D.value ? (T(), oe(Se, { key: 1 }, [
2643
- n(O, {
2611
+ D.value ? (F(), ie(Se, { key: 1 }, [
2612
+ n(A, {
2644
2613
  autocomplete: "off",
2645
2614
  class: "margin-bottom-6",
2646
2615
  "data-testid": "active-healthcheck-https-sni",
@@ -2648,18 +2617,18 @@ const pe = {
2648
2617
  "model-value": a.httpsSni,
2649
2618
  readonly: a.readonly,
2650
2619
  type: "text",
2651
- "onUpdate:modelValue": d[4] || (d[4] = (g) => k("update:https-sni", g))
2620
+ "onUpdate:modelValue": p[4] || (p[4] = (y) => v("update:https-sni", y))
2652
2621
  }, null, 8, ["label", "model-value", "readonly"]),
2653
- n(X, {
2622
+ n(Z, {
2654
2623
  "data-testid": "active-healthcheck-verify-ssl",
2655
2624
  disabled: a.readonly,
2656
2625
  label: e(i)("upstreams.form.fields.verify_ssl.label"),
2657
2626
  "model-value": a.verifySsl,
2658
- "onUpdate:modelValue": d[5] || (d[5] = (g) => k("update:verify-ssl", g))
2627
+ "onUpdate:modelValue": p[5] || (p[5] = (y) => v("update:verify-ssl", y))
2659
2628
  }, null, 8, ["disabled", "label", "model-value"])
2660
- ], 64)) : L("", !0),
2661
- ((A = a.config) == null ? void 0 : A.app) === "kongManager" ? (T(), oe("div", Oa, [
2662
- n(G, {
2629
+ ], 64)) : Q("", !0),
2630
+ (($ = a.config) == null ? void 0 : $.app) === "kongManager" ? (F(), ie("div", Oa, [
2631
+ n(W, {
2663
2632
  info: e(i)("upstreams.form.fields.headers.tooltip_active"),
2664
2633
  "tooltip-attributes": { maxWidth: "250px" }
2665
2634
  }, {
@@ -2668,46 +2637,46 @@ const pe = {
2668
2637
  ]),
2669
2638
  _: 1
2670
2639
  }, 8, ["info"]),
2671
- v("div", null, [
2672
- (T(!0), oe(Se, null, $t(S.value, (g, Q) => (T(), oe("div", {
2673
- key: `${g.header}_${Q}`,
2674
- class: Pt(["headers-row", { "margin-top-6": Q > 0 }])
2640
+ b("div", null, [
2641
+ (F(!0), ie(Se, null, Ot(C.value, (y, N) => (F(), ie("div", {
2642
+ key: `${y.header}_${N}`,
2643
+ class: $t(["headers-row", { "margin-top-6": N > 0 }])
2675
2644
  }, [
2676
- n(O, {
2677
- modelValue: S.value[Q].key,
2678
- "onUpdate:modelValue": (W) => S.value[Q].key = W,
2645
+ n(A, {
2646
+ modelValue: C.value[N].key,
2647
+ "onUpdate:modelValue": (z) => C.value[N].key = z,
2679
2648
  autocomplete: "off",
2680
- "data-testid": `active-healthcheck-headers-header-${Q + 1}`,
2649
+ "data-testid": `active-healthcheck-headers-header-${N + 1}`,
2681
2650
  readonly: a.readonly,
2682
2651
  type: "text",
2683
2652
  onBlur: m
2684
2653
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
2685
- n(O, {
2686
- modelValue: S.value[Q].values,
2687
- "onUpdate:modelValue": (W) => S.value[Q].values = W,
2654
+ n(A, {
2655
+ modelValue: C.value[N].values,
2656
+ "onUpdate:modelValue": (z) => C.value[N].values = z,
2688
2657
  autocomplete: "off",
2689
- "data-testid": `active-healthcheck-headers-value-${Q + 1}`,
2658
+ "data-testid": `active-healthcheck-headers-value-${N + 1}`,
2690
2659
  readonly: a.readonly,
2691
2660
  type: "text",
2692
2661
  onBlur: m
2693
2662
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "readonly"]),
2694
- n(b, {
2663
+ n(_, {
2695
2664
  appearance: "tertiary",
2696
2665
  class: "btn-remove",
2697
2666
  "data-testid": "btn-remove-header",
2698
- disabled: S.value.length === 1,
2667
+ disabled: C.value.length === 1,
2699
2668
  icon: "",
2700
- onClick: (W) => N(Q)
2669
+ onClick: (z) => V(N)
2701
2670
  }, {
2702
2671
  default: r(() => [
2703
- n(e(Rt), {
2672
+ n(e(Bt), {
2704
2673
  class: "delete-item",
2705
- color: S.value.length > 1 ? e(ta) : void 0
2674
+ color: C.value.length > 1 ? e(ta) : void 0
2706
2675
  }, null, 8, ["color"])
2707
2676
  ]),
2708
2677
  _: 2
2709
2678
  }, 1032, ["disabled", "onClick"]),
2710
- S.value && Q === S.value.length - 1 ? (T(), E(b, {
2679
+ C.value && N === C.value.length - 1 ? (F(), R(_, {
2711
2680
  key: 0,
2712
2681
  appearance: "tertiary",
2713
2682
  class: "btn-add-header",
@@ -2716,31 +2685,31 @@ const pe = {
2716
2685
  onClick: t
2717
2686
  }, {
2718
2687
  default: r(() => [
2719
- n(e(Qe))
2688
+ n(e(Le))
2720
2689
  ]),
2721
2690
  _: 1
2722
- })) : L("", !0)
2691
+ })) : Q("", !0)
2723
2692
  ], 2))), 128))
2724
2693
  ])
2725
- ])) : L("", !0),
2726
- n(x, null, {
2694
+ ])) : Q("", !0),
2695
+ n(O, null, {
2727
2696
  default: r(() => [
2728
- v("h5", $a, f(e(i)("upstreams.form.healthy.label")), 1),
2729
- v("p", Pa, f(e(i)("upstreams.form.healthy.help")), 1),
2730
- n(O, {
2697
+ b("h5", $a, f(e(i)("upstreams.form.healthy.label")), 1),
2698
+ b("p", Pa, f(e(i)("upstreams.form.healthy.help")), 1),
2699
+ n(A, {
2731
2700
  autocomplete: "off",
2732
2701
  class: "margin-bottom-6",
2733
2702
  "data-testid": "active-healthcheck-healthy-interval",
2734
2703
  help: e(i)("upstreams.form.fields.interval.help"),
2735
2704
  label: e(i)("upstreams.form.fields.interval.label"),
2736
- max: e(bt),
2737
- min: e(gt),
2705
+ max: e(yt),
2706
+ min: e(ft),
2738
2707
  "model-value": a.healthyInterval,
2739
2708
  readonly: a.readonly,
2740
2709
  type: "number",
2741
- "onUpdate:modelValue": d[6] || (d[6] = (g) => k("update:healthy-interval", g))
2710
+ "onUpdate:modelValue": p[6] || (p[6] = (y) => v("update:healthy-interval", y))
2742
2711
  }, null, 8, ["help", "label", "max", "min", "model-value", "readonly"]),
2743
- n(O, {
2712
+ n(A, {
2744
2713
  autocomplete: "off",
2745
2714
  "data-testid": "active-healthcheck-healthy-successes",
2746
2715
  label: e(i)("upstreams.form.fields.successes.label"),
@@ -2749,9 +2718,9 @@ const pe = {
2749
2718
  "model-value": a.healthySuccesses,
2750
2719
  readonly: a.readonly,
2751
2720
  type: "number",
2752
- "onUpdate:modelValue": d[7] || (d[7] = (g) => k("update:healthy-successes", g))
2721
+ "onUpdate:modelValue": p[7] || (p[7] = (y) => v("update:healthy-successes", y))
2753
2722
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2754
- F.value ? L("", !0) : (T(), E(q, {
2723
+ x.value ? Q("", !0) : (F(), R(T, {
2755
2724
  key: 0,
2756
2725
  autocomplete: "off",
2757
2726
  class: "margin-top-6 active-healthcheck-healthy-http-statuses",
@@ -2762,31 +2731,31 @@ const pe = {
2762
2731
  "model-value": a.healthyHttpStatuses,
2763
2732
  readonly: a.readonly,
2764
2733
  width: "100%",
2765
- onItemAdded: d[8] || (d[8] = (g) => e(s)(g, !0)),
2766
- onItemRemoved: d[9] || (d[9] = (g) => e(s)(g, !1)),
2767
- "onUpdate:modelValue": d[10] || (d[10] = (g) => k("update:healthy-http-statuses", g))
2734
+ onItemAdded: p[8] || (p[8] = (y) => e(s)(y, !0)),
2735
+ onItemRemoved: p[9] || (p[9] = (y) => e(s)(y, !1)),
2736
+ "onUpdate:modelValue": p[10] || (p[10] = (y) => v("update:healthy-http-statuses", y))
2768
2737
  }, null, 8, ["items", "label", "model-value", "readonly"]))
2769
2738
  ]),
2770
2739
  _: 1
2771
2740
  }),
2772
- n(x, null, {
2741
+ n(O, null, {
2773
2742
  default: r(() => [
2774
- v("h5", Aa, f(e(i)("upstreams.form.unhealthy.label")), 1),
2775
- v("p", Ma, f(e(i)("upstreams.form.unhealthy.help")), 1),
2776
- n(O, {
2743
+ b("h5", Aa, f(e(i)("upstreams.form.unhealthy.label")), 1),
2744
+ b("p", Ma, f(e(i)("upstreams.form.unhealthy.help")), 1),
2745
+ n(A, {
2777
2746
  autocomplete: "off",
2778
2747
  class: "margin-bottom-6",
2779
2748
  "data-testid": "active-healthcheck-unhealthy-interval",
2780
2749
  help: e(i)("upstreams.form.fields.interval.help"),
2781
2750
  label: e(i)("upstreams.form.fields.interval.label"),
2782
- max: e(bt),
2783
- min: e(gt),
2751
+ max: e(yt),
2752
+ min: e(ft),
2784
2753
  "model-value": a.unhealthyInterval,
2785
2754
  readonly: a.readonly,
2786
2755
  type: "number",
2787
- "onUpdate:modelValue": d[11] || (d[11] = (g) => k("update:unhealthy-interval", g))
2756
+ "onUpdate:modelValue": p[11] || (p[11] = (y) => v("update:unhealthy-interval", y))
2788
2757
  }, null, 8, ["help", "label", "max", "min", "model-value", "readonly"]),
2789
- n(O, {
2758
+ n(A, {
2790
2759
  autocomplete: "off",
2791
2760
  class: "margin-bottom-6",
2792
2761
  "data-testid": "active-healthcheck-unhealthy-tcp-failures",
@@ -2796,9 +2765,9 @@ const pe = {
2796
2765
  "model-value": a.unhealthyTcpFailures,
2797
2766
  readonly: a.readonly,
2798
2767
  type: "number",
2799
- "onUpdate:modelValue": d[12] || (d[12] = (g) => k("update:unhealthy-tcp-failures", g))
2768
+ "onUpdate:modelValue": p[12] || (p[12] = (y) => v("update:unhealthy-tcp-failures", y))
2800
2769
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2801
- F.value ? L("", !0) : (T(), E(O, {
2770
+ x.value ? Q("", !0) : (F(), R(A, {
2802
2771
  key: 0,
2803
2772
  autocomplete: "off",
2804
2773
  class: "margin-bottom-6",
@@ -2809,9 +2778,9 @@ const pe = {
2809
2778
  "model-value": a.unhealthyHttpFailures,
2810
2779
  readonly: a.readonly,
2811
2780
  type: "number",
2812
- "onUpdate:modelValue": d[13] || (d[13] = (g) => k("update:unhealthy-http-failures", g))
2781
+ "onUpdate:modelValue": p[13] || (p[13] = (y) => v("update:unhealthy-http-failures", y))
2813
2782
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
2814
- F.value ? L("", !0) : (T(), E(q, {
2783
+ x.value ? Q("", !0) : (F(), R(T, {
2815
2784
  key: 1,
2816
2785
  autocomplete: "off",
2817
2786
  class: "margin-bottom-6 active-healthcheck-unhealthy-http-statuses",
@@ -2822,20 +2791,20 @@ const pe = {
2822
2791
  "model-value": a.unhealthyHttpStatuses,
2823
2792
  readonly: a.readonly,
2824
2793
  width: "100%",
2825
- onItemAdded: d[14] || (d[14] = (g) => e(c)(g, !0)),
2826
- onItemRemoved: d[15] || (d[15] = (g) => e(c)(g, !1)),
2827
- "onUpdate:modelValue": d[16] || (d[16] = (g) => k("update:unhealthy-http-statuses", g))
2794
+ onItemAdded: p[14] || (p[14] = (y) => e(d)(y, !0)),
2795
+ onItemRemoved: p[15] || (p[15] = (y) => e(d)(y, !1)),
2796
+ "onUpdate:modelValue": p[16] || (p[16] = (y) => v("update:unhealthy-http-statuses", y))
2828
2797
  }, null, 8, ["items", "label", "model-value", "readonly"])),
2829
- n(O, {
2798
+ n(A, {
2830
2799
  autocomplete: "off",
2831
2800
  "data-testid": "active-healthcheck-unhealthy-timeouts",
2832
2801
  label: e(i)("upstreams.form.fields.timeouts.label"),
2833
- max: e(xt),
2834
- min: e(Ft),
2802
+ max: e(Ft),
2803
+ min: e(Tt),
2835
2804
  "model-value": a.unhealthyTimeouts,
2836
2805
  readonly: a.readonly,
2837
2806
  type: "number",
2838
- "onUpdate:modelValue": d[17] || (d[17] = (g) => k("update:unhealthy-timeouts", g))
2807
+ "onUpdate:modelValue": p[17] || (p[17] = (y) => v("update:unhealthy-timeouts", y))
2839
2808
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])
2840
2809
  ]),
2841
2810
  _: 1
@@ -2846,7 +2815,7 @@ const pe = {
2846
2815
  }, 8, ["title"]);
2847
2816
  };
2848
2817
  }
2849
- }), Ka = /* @__PURE__ */ me(Va, [["__scopeId", "data-v-d079157c"]]), Ea = { class: "fields-group-title" }, Na = { class: "fields-group-text" }, Ba = { class: "fields-group-title" }, Ra = { class: "fields-group-text" }, Da = /* @__PURE__ */ he({
2818
+ }), Va = /* @__PURE__ */ me(Ka, [["__scopeId", "data-v-d079157c"]]), Na = { class: "fields-group-title" }, Ea = { class: "fields-group-text" }, Ra = { class: "fields-group-title" }, Ba = { class: "fields-group-text" }, Da = /* @__PURE__ */ he({
2850
2819
  __name: "UpstreamsFormPassiveHealthCheck",
2851
2820
  props: {
2852
2821
  type: {
@@ -2884,8 +2853,8 @@ const pe = {
2884
2853
  }
2885
2854
  },
2886
2855
  emits: ["update:type", "update:healthy-successes", "update:healthy-http-statuses", "update:unhealthy-timeouts", "update:unhealthy-http-failures", "update:unhealthy-http-statuses", "update:unhealthy-tcp-failures"],
2887
- setup(a, { emit: R }) {
2888
- const { i18n: { t: i } } = pe.useI18n(), l = a, h = R, k = B([
2856
+ setup(a, { emit: B }) {
2857
+ const { i18n: { t: i } } = pe.useI18n(), l = a, h = B, v = E([
2889
2858
  {
2890
2859
  label: i("upstreams.form.healthcheck_type_labels.http"),
2891
2860
  value: "http",
@@ -2911,25 +2880,25 @@ const pe = {
2911
2880
  value: "grpcs",
2912
2881
  selected: !1
2913
2882
  }
2914
- ]), _ = I(() => l.type === "tcp"), {
2883
+ ]), k = I(() => l.type === "tcp"), {
2915
2884
  trackNewItems: D
2916
2885
  } = He({ replaceId: !0 }), {
2917
- trackNewItems: F
2886
+ trackNewItems: x
2918
2887
  } = He({ replaceId: !0 });
2919
- return ye(() => l.type, (s, c) => {
2920
- c === "tcp" && s !== c && h("update:unhealthy-tcp-failures", "5"), c !== "tcp" && s === "tcp" && (h("update:healthy-http-statuses", $e), h("update:unhealthy-http-statuses", Ae));
2921
- }), (s, c) => {
2922
- const S = K("KExternalLink"), m = K("KSelect"), t = K("KInput"), N = K("KMultiselect"), U = K("KCard");
2923
- return T(), E(e(Ue), {
2888
+ return ye(() => l.type, (s, d) => {
2889
+ d === "tcp" && s !== d && h("update:unhealthy-tcp-failures", "5"), d !== "tcp" && s === "tcp" && (h("update:healthy-http-statuses", $e), h("update:unhealthy-http-statuses", Ae));
2890
+ }), (s, d) => {
2891
+ const C = K("KExternalLink"), m = K("KSelect"), t = K("KInput"), V = K("KMultiselect"), q = K("KCard");
2892
+ return F(), R(e(Ue), {
2924
2893
  class: "kong-ui-entities-upstreams-passive-healthcheck",
2925
2894
  title: e(i)("upstreams.form.passive_health_check.title")
2926
2895
  }, {
2927
2896
  description: r(() => [
2928
- v("p", null, [
2897
+ b("p", null, [
2929
2898
  J(f(e(i)("upstreams.form.passive_health_check.help")) + " ", 1),
2930
- n(S, {
2899
+ n(C, {
2931
2900
  "hide-icon": "",
2932
- href: e(Ke).upstreamObject
2901
+ href: e(Ve).upstreamObject
2933
2902
  }, {
2934
2903
  default: r(() => [
2935
2904
  J(f(e(i)("upstreams.form.buttons.view_documentation")), 1)
@@ -2941,17 +2910,17 @@ const pe = {
2941
2910
  default: r(() => [
2942
2911
  n(m, {
2943
2912
  class: "passive-healthcheck-type-select",
2944
- items: k.value,
2913
+ items: v.value,
2945
2914
  label: e(i)("upstreams.form.fields.passive_health_check_type.label"),
2946
2915
  "model-value": a.type,
2947
2916
  readonly: a.readonly,
2948
2917
  width: "100%",
2949
- "onUpdate:modelValue": c[0] || (c[0] = (d) => h("update:type", d))
2918
+ "onUpdate:modelValue": d[0] || (d[0] = (p) => h("update:type", p))
2950
2919
  }, null, 8, ["items", "label", "model-value", "readonly"]),
2951
- n(U, null, {
2920
+ n(q, null, {
2952
2921
  default: r(() => [
2953
- v("h5", Ea, f(e(i)("upstreams.form.passive_healthy.label")), 1),
2954
- v("p", Na, f(e(i)("upstreams.form.passive_healthy.help")), 1),
2922
+ b("h5", Na, f(e(i)("upstreams.form.passive_healthy.label")), 1),
2923
+ b("p", Ea, f(e(i)("upstreams.form.passive_healthy.help")), 1),
2955
2924
  n(t, {
2956
2925
  autocomplete: "off",
2957
2926
  "data-testid": "passive-healthcheck-healthy-successes",
@@ -2961,9 +2930,9 @@ const pe = {
2961
2930
  "model-value": a.healthySuccesses,
2962
2931
  readonly: a.readonly,
2963
2932
  type: "number",
2964
- "onUpdate:modelValue": c[1] || (c[1] = (d) => h("update:healthy-successes", d))
2933
+ "onUpdate:modelValue": d[1] || (d[1] = (p) => h("update:healthy-successes", p))
2965
2934
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2966
- _.value ? L("", !0) : (T(), E(N, {
2935
+ k.value ? Q("", !0) : (F(), R(V, {
2967
2936
  key: 0,
2968
2937
  class: "margin-top-6 passive-healthcheck-healthy-http-statuses",
2969
2938
  "enable-item-creation": "",
@@ -2972,27 +2941,27 @@ const pe = {
2972
2941
  "model-value": a.healthyHttpStatuses,
2973
2942
  readonly: a.readonly,
2974
2943
  width: "100%",
2975
- onItemAdded: c[2] || (c[2] = (d) => e(D)(d, !0)),
2976
- onItemRemoved: c[3] || (c[3] = (d) => e(D)(d, !1)),
2977
- "onUpdate:modelValue": c[4] || (c[4] = (d) => h("update:healthy-http-statuses", d))
2944
+ onItemAdded: d[2] || (d[2] = (p) => e(D)(p, !0)),
2945
+ onItemRemoved: d[3] || (d[3] = (p) => e(D)(p, !1)),
2946
+ "onUpdate:modelValue": d[4] || (d[4] = (p) => h("update:healthy-http-statuses", p))
2978
2947
  }, null, 8, ["items", "label", "model-value", "readonly"]))
2979
2948
  ]),
2980
2949
  _: 1
2981
2950
  }),
2982
- n(U, null, {
2951
+ n(q, null, {
2983
2952
  default: r(() => [
2984
- v("h5", Ba, f(e(i)("upstreams.form.passive_unhealthy.label")), 1),
2985
- v("p", Ra, f(e(i)("upstreams.form.passive_unhealthy.help")), 1),
2953
+ b("h5", Ra, f(e(i)("upstreams.form.passive_unhealthy.label")), 1),
2954
+ b("p", Ba, f(e(i)("upstreams.form.passive_unhealthy.help")), 1),
2986
2955
  n(t, {
2987
2956
  autocomplete: "off",
2988
2957
  "data-testid": "passive-healthcheck-unhealthy-timeouts",
2989
2958
  label: e(i)("upstreams.form.fields.timeouts.label"),
2990
- max: e(xt),
2991
- min: e(Ft),
2959
+ max: e(Ft),
2960
+ min: e(Tt),
2992
2961
  "model-value": a.unhealthyTimeouts,
2993
2962
  readonly: a.readonly,
2994
2963
  type: "number",
2995
- "onUpdate:modelValue": c[5] || (c[5] = (d) => h("update:unhealthy-timeouts", d))
2964
+ "onUpdate:modelValue": d[5] || (d[5] = (p) => h("update:unhealthy-timeouts", p))
2996
2965
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
2997
2966
  n(t, {
2998
2967
  autocomplete: "off",
@@ -3004,9 +2973,9 @@ const pe = {
3004
2973
  "model-value": a.unhealthyTcpFailures,
3005
2974
  readonly: a.readonly,
3006
2975
  type: "number",
3007
- "onUpdate:modelValue": c[6] || (c[6] = (d) => h("update:unhealthy-tcp-failures", d))
2976
+ "onUpdate:modelValue": d[6] || (d[6] = (p) => h("update:unhealthy-tcp-failures", p))
3008
2977
  }, null, 8, ["label", "max", "min", "model-value", "readonly"]),
3009
- _.value ? L("", !0) : (T(), E(t, {
2978
+ k.value ? Q("", !0) : (F(), R(t, {
3010
2979
  key: 0,
3011
2980
  autocomplete: "off",
3012
2981
  class: "margin-top-6",
@@ -3017,9 +2986,9 @@ const pe = {
3017
2986
  "model-value": a.unhealthyHttpFailures,
3018
2987
  readonly: a.readonly,
3019
2988
  type: "number",
3020
- "onUpdate:modelValue": c[7] || (c[7] = (d) => h("update:unhealthy-http-failures", d))
2989
+ "onUpdate:modelValue": d[7] || (d[7] = (p) => h("update:unhealthy-http-failures", p))
3021
2990
  }, null, 8, ["label", "max", "min", "model-value", "readonly"])),
3022
- _.value ? L("", !0) : (T(), E(N, {
2991
+ k.value ? Q("", !0) : (F(), R(V, {
3023
2992
  key: 1,
3024
2993
  autocomplete: "off",
3025
2994
  class: "margin-top-6 passive-healthcheck-unhealthy-http-statuses",
@@ -3030,9 +2999,9 @@ const pe = {
3030
2999
  "model-value": a.unhealthyHttpStatuses,
3031
3000
  readonly: a.readonly,
3032
3001
  width: "100%",
3033
- onItemAdded: c[8] || (c[8] = (d) => e(F)(d, !0)),
3034
- onItemRemoved: c[9] || (c[9] = (d) => e(F)(d, !1)),
3035
- "onUpdate:modelValue": c[10] || (c[10] = (d) => h("update:unhealthy-http-statuses", d))
3002
+ onItemAdded: d[8] || (d[8] = (p) => e(x)(p, !0)),
3003
+ onItemRemoved: d[9] || (d[9] = (p) => e(x)(p, !1)),
3004
+ "onUpdate:modelValue": d[10] || (d[10] = (p) => h("update:unhealthy-http-statuses", p))
3036
3005
  }, null, 8, ["items", "label", "model-value", "readonly"]))
3037
3006
  ]),
3038
3007
  _: 1
@@ -3059,41 +3028,41 @@ const pe = {
3059
3028
  }
3060
3029
  },
3061
3030
  emits: ["update", "error", "loading"],
3062
- setup(a, { emit: R }) {
3063
- var P;
3064
- const i = a, l = R, { inRange: h, stringToNumberArray: k, upstreamsResponseToFields: _, getDefaultUpstreamFields: D, objectsAreEqual: F, cloneDeep: s } = Ve(), { axiosInstance: c } = Me((P = i.config) == null ? void 0 : P.axiosRequestConfig), { getMessageFromError: S } = wt(), m = Tt(), t = Fe({
3031
+ setup(a, { emit: B }) {
3032
+ var L;
3033
+ const i = a, l = B, { inRange: h, stringToNumberArray: v, upstreamsResponseToFields: k, getDefaultUpstreamFields: D, objectsAreEqual: x, cloneDeep: s } = Ke(), { axiosInstance: d } = Me((L = i.config) == null ? void 0 : L.axiosRequestConfig), { getMessageFromError: C } = It(), m = qt(), t = Fe({
3065
3034
  fields: D(),
3066
3035
  readonly: !1,
3067
3036
  errorMessage: ""
3068
- }), N = Fe(D()), U = I(() => !F(t.fields, N)), d = (p) => {
3069
- t.fields.activeHealthCheck.healthy.interval = p ? "5" : "0", t.fields.activeHealthCheck.healthy.successes = p ? "5" : "0", t.fields.activeHealthCheck.healthy.httpStatuses = p ? Oe : [], t.fields.activeHealthCheck.unhealthy.httpStatuses = p ? Pe : [], t.fields.activeHealthCheck.unhealthy.httpFailures = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.interval = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.tcpFailures = p ? "5" : "0", t.fields.activeHealthCheck.unhealthy.timeouts = p ? "5" : "0", t.fields.activeHealthCheck.timeout = p ? "1" : "0", t.fields.activeHealthCheck.concurrency = p ? "10" : "0", t.fields.activeHealthCheck.httpPath = p ? "/" : "", t.fields.activeHealthCheck.httpsSni = "", t.fields.activeHealthCheck.type = "http";
3070
- }, H = (p) => {
3071
- t.fields.passiveHealthCheck.healthy.successes = p ? "80" : "0", t.fields.passiveHealthCheck.healthy.httpStatuses = p ? $e : [], t.fields.passiveHealthCheck.unhealthy.timeouts = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.tcpFailures = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpFailures = p ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpStatuses = p ? Ae : [], t.fields.passiveHealthCheck.type = "http";
3072
- }, ee = I(() => t.fields.algorithm !== "sticky-sessions" ? !0 : !!t.fields.stickySessionsCookie && !!t.fields.stickySessionsCookiePath), O = I(() => t.fields.slots ? h(t.fields.slots, Re, De) : !0), X = I(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), G = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), b = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), q = I(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), x = I(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), A = I(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), g = I(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), Q = I(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), W = I(() => !!t.fields.name && ee.value && O.value && X.value && G.value && b.value && q.value && x.value && A.value && g.value && Q.value), z = I(() => i.upstreamId ? ce.Edit : ce.Create), le = I(() => {
3073
- var p, o;
3074
- return (o = _e.form[(p = i.config) == null ? void 0 : p.app]) == null ? void 0 : o.edit;
3075
- }), $ = (p) => {
3076
- Object.assign(t.fields, _(p)), Object.assign(N, s(t.fields));
3077
- }, V = () => {
3078
- var p;
3079
- m.push(((p = i.config) == null ? void 0 : p.cancelRoute) || { name: "upstreams-list" });
3080
- }, Z = (p) => {
3081
- l("loading", p);
3082
- }, se = (p) => {
3083
- l("error", p);
3037
+ }), V = Fe(D()), q = I(() => !x(t.fields, V)), p = (c) => {
3038
+ t.fields.activeHealthCheck.healthy.interval = c ? "5" : "0", t.fields.activeHealthCheck.healthy.successes = c ? "5" : "0", t.fields.activeHealthCheck.healthy.httpStatuses = c ? Oe : [], t.fields.activeHealthCheck.unhealthy.httpStatuses = c ? Pe : [], t.fields.activeHealthCheck.unhealthy.httpFailures = c ? "5" : "0", t.fields.activeHealthCheck.unhealthy.interval = c ? "5" : "0", t.fields.activeHealthCheck.unhealthy.tcpFailures = c ? "5" : "0", t.fields.activeHealthCheck.unhealthy.timeouts = c ? "5" : "0", t.fields.activeHealthCheck.timeout = c ? "1" : "0", t.fields.activeHealthCheck.concurrency = c ? "10" : "0", t.fields.activeHealthCheck.httpPath = c ? "/" : "", t.fields.activeHealthCheck.httpsSni = "", t.fields.activeHealthCheck.type = "http";
3039
+ }, H = (c) => {
3040
+ t.fields.passiveHealthCheck.healthy.successes = c ? "80" : "0", t.fields.passiveHealthCheck.healthy.httpStatuses = c ? $e : [], t.fields.passiveHealthCheck.unhealthy.timeouts = c ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.tcpFailures = c ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpFailures = c ? "5" : "0", t.fields.passiveHealthCheck.unhealthy.httpStatuses = c ? Ae : [], t.fields.passiveHealthCheck.type = "http";
3041
+ }, X = I(() => t.fields.algorithm !== "sticky-sessions" ? !0 : !!t.fields.stickySessionsCookie && !!t.fields.stickySessionsCookiePath), A = I(() => t.fields.slots ? h(t.fields.slots, Re, Be) : !0), Z = I(() => t.fields.hashOn === "header" ? !!t.fields.hashOnHeader : !0), W = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookie : !0), _ = I(() => t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie" ? !!t.fields.hashOnCookiePath : !0), T = I(() => t.fields.hashOn === "query_arg" ? !!t.fields.hashOnQueryArgument : !0), O = I(() => t.fields.hashOn === "uri_capture" ? !!t.fields.hashOnUriCapture : !0), $ = I(() => t.fields.hashFallback === "header" ? !!t.fields.hashFallbackHeader : !0), y = I(() => t.fields.hashFallback === "query_arg" ? !!t.fields.hashFallbackQueryArgument : !0), N = I(() => t.fields.hashFallback === "uri_capture" ? !!t.fields.hashFallbackUriCapture : !0), z = I(() => !!t.fields.name && X.value && A.value && Z.value && W.value && _.value && T.value && O.value && $.value && y.value && N.value), G = I(() => i.upstreamId ? ce.Edit : ce.Create), oe = I(() => {
3042
+ var c, o;
3043
+ return (o = _e.form[(c = i.config) == null ? void 0 : c.app]) == null ? void 0 : o.edit;
3044
+ }), P = (c) => {
3045
+ Object.assign(t.fields, k(c)), Object.assign(V, s(t.fields));
3046
+ }, M = () => {
3047
+ var c;
3048
+ m.push(((c = i.config) == null ? void 0 : c.cancelRoute) || { name: "upstreams-list" });
3049
+ }, Y = (c) => {
3050
+ l("loading", c);
3051
+ }, le = (c) => {
3052
+ l("error", c);
3084
3053
  }, te = I(() => {
3085
- const p = i.config.stickySessionsAvailable ? {
3054
+ const c = i.config.stickySessionsAvailable ? {
3086
3055
  sticky_sessions_cookie: null,
3087
3056
  sticky_sessions_cookie_path: null
3088
3057
  } : {};
3089
- return t.fields.algorithm === "sticky-sessions" && (p.sticky_sessions_cookie = t.fields.stickySessionsCookie || null, p.sticky_sessions_cookie_path = t.fields.stickySessionsCookiePath || null), p;
3090
- }), ae = I(() => {
3091
- const p = {};
3092
- return t.fields.hashOn === "header" && (p.hash_on_header = t.fields.hashOnHeader), (t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie") && (p.hash_on_cookie = t.fields.hashOnCookie, p.hash_on_cookie_path = t.fields.hashOnCookiePath), t.fields.hashOn === "query_arg" && (p.hash_on_query_arg = t.fields.hashOnQueryArgument), t.fields.hashOn === "uri_capture" && (p.hash_on_uri_capture = t.fields.hashOnUriCapture), t.fields.hashFallback === "header" && (p.hash_fallback_header = t.fields.hashFallbackHeader), t.fields.hashFallback === "query_arg" && (p.hash_fallback_query_arg = t.fields.hashFallbackQueryArgument), t.fields.hashFallback === "uri_capture" && (p.hash_fallback_uri_capture = t.fields.hashFallbackUriCapture), p;
3058
+ return t.fields.algorithm === "sticky-sessions" && (c.sticky_sessions_cookie = t.fields.stickySessionsCookie || null, c.sticky_sessions_cookie_path = t.fields.stickySessionsCookiePath || null), c;
3059
+ }), ee = I(() => {
3060
+ const c = {};
3061
+ return t.fields.hashOn === "header" && (c.hash_on_header = t.fields.hashOnHeader), (t.fields.hashOn === "cookie" || t.fields.hashFallback === "cookie") && (c.hash_on_cookie = t.fields.hashOnCookie, c.hash_on_cookie_path = t.fields.hashOnCookiePath), t.fields.hashOn === "query_arg" && (c.hash_on_query_arg = t.fields.hashOnQueryArgument), t.fields.hashOn === "uri_capture" && (c.hash_on_uri_capture = t.fields.hashOnUriCapture), t.fields.hashFallback === "header" && (c.hash_fallback_header = t.fields.hashFallbackHeader), t.fields.hashFallback === "query_arg" && (c.hash_fallback_query_arg = t.fields.hashFallbackQueryArgument), t.fields.hashFallback === "uri_capture" && (c.hash_fallback_uri_capture = t.fields.hashFallbackUriCapture), c;
3093
3062
  }), w = I(() => {
3094
- var o, u, Y, ie;
3063
+ var o, u, ae, se;
3095
3064
  if (!t.fields.activeHealthSwitch)
3096
- return ((o = i.config) == null ? void 0 : o.app) === "kongManager" && z.value === ce.Edit ? {
3065
+ return ((o = i.config) == null ? void 0 : o.app) === "kongManager" && G.value === ce.Edit ? {
3097
3066
  type: t.fields.activeHealthCheck.type,
3098
3067
  headers: {},
3099
3068
  healthy: {
@@ -3107,7 +3076,7 @@ const pe = {
3107
3076
  timeouts: 0
3108
3077
  }
3109
3078
  } : void 0;
3110
- const p = {
3079
+ const c = {
3111
3080
  type: t.fields.activeHealthCheck.type,
3112
3081
  healthy: {
3113
3082
  interval: Number(t.fields.activeHealthCheck.healthy.interval || "0"),
@@ -3122,23 +3091,23 @@ const pe = {
3122
3091
  concurrency: Number(t.fields.activeHealthCheck.concurrency || "10")
3123
3092
  };
3124
3093
  if (t.fields.activeHealthCheck.type !== "tcp") {
3125
- p.http_path = t.fields.activeHealthCheck.httpPath || "/", p.unhealthy.http_failures = Number(t.fields.activeHealthCheck.unhealthy.httpFailures || "5");
3094
+ c.http_path = t.fields.activeHealthCheck.httpPath || "/", c.unhealthy.http_failures = Number(t.fields.activeHealthCheck.unhealthy.httpFailures || "5");
3126
3095
  const re = (u = t.fields.activeHealthCheck.unhealthy.httpStatuses) != null && u.length ? t.fields.activeHealthCheck.unhealthy.httpStatuses : Pe;
3127
- p.unhealthy.http_statuses = k(re);
3128
- const ne = (Y = t.fields.activeHealthCheck.healthy.httpStatuses) != null && Y.length ? t.fields.activeHealthCheck.healthy.httpStatuses : Oe;
3129
- p.healthy.http_statuses = k(ne);
3096
+ c.unhealthy.http_statuses = v(re);
3097
+ const ne = (ae = t.fields.activeHealthCheck.healthy.httpStatuses) != null && ae.length ? t.fields.activeHealthCheck.healthy.httpStatuses : Oe;
3098
+ c.healthy.http_statuses = v(ne);
3130
3099
  }
3131
- return ["https", "grpcs"].includes(t.fields.activeHealthCheck.type) && (p.https_sni = t.fields.activeHealthCheck.httpsSni || null, p.https_verify_certificate = t.fields.activeHealthCheck.verifySsl), ((ie = i.config) == null ? void 0 : ie.app) === "kongManager" && (p.headers = t.fields.activeHealthCheck.headers.reduce((re, ne) => {
3100
+ return ["https", "grpcs"].includes(t.fields.activeHealthCheck.type) && (c.https_sni = t.fields.activeHealthCheck.httpsSni || null, c.https_verify_certificate = t.fields.activeHealthCheck.verifySsl), ((se = i.config) == null ? void 0 : se.app) === "kongManager" && (c.headers = t.fields.activeHealthCheck.headers.reduce((re, ne) => {
3132
3101
  var fe, Ce;
3133
3102
  return ne.key ? {
3134
3103
  ...re,
3135
3104
  [ne.key]: (Ce = (fe = ne.values.split(",")) == null ? void 0 : fe.map((Ie) => Ie.trim())) == null ? void 0 : Ce.filter(Boolean)
3136
3105
  } : re;
3137
- }, {})), p;
3138
- }), j = I(() => {
3139
- var o, u, Y;
3106
+ }, {})), c;
3107
+ }), g = I(() => {
3108
+ var o, u, ae;
3140
3109
  if (!t.fields.passiveHealthSwitch)
3141
- return ((o = i.config) == null ? void 0 : o.app) === "kongManager" && z.value === ce.Edit ? {
3110
+ return ((o = i.config) == null ? void 0 : o.app) === "kongManager" && G.value === ce.Edit ? {
3142
3111
  type: t.fields.passiveHealthCheck.type,
3143
3112
  healthy: { successes: 0 },
3144
3113
  unhealthy: {
@@ -3147,7 +3116,7 @@ const pe = {
3147
3116
  http_failures: 0
3148
3117
  }
3149
3118
  } : void 0;
3150
- const p = {
3119
+ const c = {
3151
3120
  type: t.fields.passiveHealthCheck.type,
3152
3121
  healthy: {
3153
3122
  successes: Number(t.fields.passiveHealthCheck.healthy.successes || "0")
@@ -3158,15 +3127,15 @@ const pe = {
3158
3127
  }
3159
3128
  };
3160
3129
  if (t.fields.passiveHealthCheck.type !== "tcp") {
3161
- p.unhealthy.http_failures = Number(t.fields.passiveHealthCheck.unhealthy.httpFailures || "5");
3162
- const ie = (u = t.fields.passiveHealthCheck.healthy.httpStatuses) != null && u.length ? t.fields.passiveHealthCheck.healthy.httpStatuses : $e;
3163
- p.healthy.http_statuses = k(ie);
3164
- const re = (Y = t.fields.passiveHealthCheck.unhealthy.httpStatuses) != null && Y.length ? t.fields.passiveHealthCheck.unhealthy.httpStatuses : Ae;
3165
- p.unhealthy.http_statuses = k(re);
3130
+ c.unhealthy.http_failures = Number(t.fields.passiveHealthCheck.unhealthy.httpFailures || "5");
3131
+ const se = (u = t.fields.passiveHealthCheck.healthy.httpStatuses) != null && u.length ? t.fields.passiveHealthCheck.healthy.httpStatuses : $e;
3132
+ c.healthy.http_statuses = v(se);
3133
+ const re = (ae = t.fields.passiveHealthCheck.unhealthy.httpStatuses) != null && ae.length ? t.fields.passiveHealthCheck.unhealthy.httpStatuses : Ae;
3134
+ c.unhealthy.http_statuses = v(re);
3166
3135
  }
3167
- return p;
3168
- }), y = I(() => {
3169
- const p = {
3136
+ return c;
3137
+ }), S = I(() => {
3138
+ const c = {
3170
3139
  name: t.fields.name,
3171
3140
  slots: Number(t.fields.slots),
3172
3141
  algorithm: t.fields.algorithm,
@@ -3177,47 +3146,47 @@ const pe = {
3177
3146
  },
3178
3147
  host_header: t.fields.hostHeader || null,
3179
3148
  client_certificate: t.fields.clientCertificate ? { id: t.fields.clientCertificate } : null
3180
- }, o = w.value, u = j.value, Y = {
3181
- ...p,
3149
+ }, o = w.value, u = g.value, ae = {
3150
+ ...c,
3182
3151
  ...te.value,
3183
3152
  healthchecks: {
3184
- ...p.healthchecks,
3153
+ ...c.healthchecks,
3185
3154
  active: o || void 0,
3186
3155
  passive: u || void 0
3187
3156
  }
3188
3157
  };
3189
- return Y.tags = t.fields.tags ? t.fields.tags.split(",").map((ie) => String(ie || "").trim()).filter((ie) => ie !== "") : [], Object.assign(Y, ae.value), Y;
3190
- }), C = (p) => {
3191
- var u, Y, ie, re, ne, fe;
3192
- let o = `${(u = i.config) == null ? void 0 : u.apiBaseUrl}${_e.form[(Y = i.config) == null ? void 0 : Y.app][p]}`;
3193
- return ((ie = i.config) == null ? void 0 : ie.app) === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((re = i.config) == null ? void 0 : re.controlPlaneId) || "") : ((ne = i.config) == null ? void 0 : ne.app) === "kongManager" && (o = o.replace(/\/{workspace}/gi, (fe = i.config) != null && fe.workspace ? `/${i.config.workspace}` : "")), o = o.replace(/{id}/gi, i.upstreamId), o;
3194
- }, M = async () => {
3195
- var p;
3158
+ return ae.tags = t.fields.tags ? t.fields.tags.split(",").map((se) => String(se || "").trim()).filter((se) => se !== "") : [], Object.assign(ae, ee.value), ae;
3159
+ }), U = (c) => {
3160
+ var u, ae, se, re, ne, fe;
3161
+ let o = `${(u = i.config) == null ? void 0 : u.apiBaseUrl}${_e.form[(ae = i.config) == null ? void 0 : ae.app][c]}`;
3162
+ return ((se = i.config) == null ? void 0 : se.app) === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((re = i.config) == null ? void 0 : re.controlPlaneId) || "") : ((ne = i.config) == null ? void 0 : ne.app) === "kongManager" && (o = o.replace(/\/{workspace}/gi, (fe = i.config) != null && fe.workspace ? `/${i.config.workspace}` : "")), o = o.replace(/{id}/gi, i.upstreamId), o;
3163
+ }, j = async () => {
3164
+ var c;
3196
3165
  try {
3197
- t.readonly = !0, await c.post(C("validate"), y.value);
3166
+ t.readonly = !0, await d.post(U("validate"), S.value);
3198
3167
  let o;
3199
- z.value === ce.Create ? o = await c.post(C("create"), y.value) : z.value === ce.Edit && (o = ((p = i.config) == null ? void 0 : p.app) === "konnect" ? await c.put(C("edit"), y.value) : await c.patch(C("edit"), y.value)), l("update", o == null ? void 0 : o.data);
3168
+ G.value === ce.Create ? o = await d.post(U("create"), S.value) : G.value === ce.Edit && (o = ((c = i.config) == null ? void 0 : c.app) === "konnect" ? await d.put(U("edit"), S.value) : await d.patch(U("edit"), S.value)), l("update", o == null ? void 0 : o.data);
3200
3169
  } catch (o) {
3201
- t.errorMessage = S(o), l("error", o);
3170
+ t.errorMessage = C(o), l("error", o);
3202
3171
  } finally {
3203
3172
  t.readonly = !1;
3204
3173
  }
3205
3174
  };
3206
- return (p, o) => (T(), oe("div", La, [
3207
- n(e(qt), {
3208
- "can-submit": W.value && U.value,
3175
+ return (c, o) => (F(), ie("div", La, [
3176
+ n(e(wt), {
3177
+ "can-submit": z.value && q.value,
3209
3178
  config: a.config,
3210
3179
  "edit-id": a.upstreamId,
3211
- "entity-type": e(Le).Upstream,
3180
+ "entity-type": e(je).Upstream,
3212
3181
  "error-message": t.errorMessage,
3213
- "fetch-url": le.value,
3214
- "form-fields": y.value,
3182
+ "fetch-url": oe.value,
3183
+ "form-fields": S.value,
3215
3184
  "is-readonly": t.readonly,
3216
- onCancel: V,
3217
- "onFetch:error": se,
3218
- "onFetch:success": $,
3219
- onLoading: Z,
3220
- onSubmit: M
3185
+ onCancel: M,
3186
+ "onFetch:error": le,
3187
+ "onFetch:success": P,
3188
+ onLoading: Y,
3189
+ onSubmit: j
3221
3190
  }, {
3222
3191
  default: r(() => [
3223
3192
  n(va, {
@@ -3268,7 +3237,7 @@ const pe = {
3268
3237
  "active-health-switch": t.fields.activeHealthSwitch,
3269
3238
  "onUpdate:activeHealthSwitch": [
3270
3239
  o[18] || (o[18] = (u) => t.fields.activeHealthSwitch = u),
3271
- d
3240
+ p
3272
3241
  ],
3273
3242
  "healthchecks-threshold": t.fields.healthchecksThreshold,
3274
3243
  "onUpdate:healthchecksThreshold": o[19] || (o[19] = (u) => t.fields.healthchecksThreshold = u),
@@ -3279,7 +3248,7 @@ const pe = {
3279
3248
  ],
3280
3249
  readonly: t.readonly
3281
3250
  }, null, 8, ["active-health-switch", "healthchecks-threshold", "passive-health-switch", "readonly"]),
3282
- t.fields.activeHealthSwitch ? (T(), E(Ka, {
3251
+ t.fields.activeHealthSwitch ? (F(), R(Va, {
3283
3252
  key: 0,
3284
3253
  concurrency: t.fields.activeHealthCheck.concurrency,
3285
3254
  "onUpdate:concurrency": o[21] || (o[21] = (u) => t.fields.activeHealthCheck.concurrency = u),
@@ -3313,8 +3282,8 @@ const pe = {
3313
3282
  "onUpdate:verifySsl": o[35] || (o[35] = (u) => t.fields.activeHealthCheck.verifySsl = u),
3314
3283
  config: a.config,
3315
3284
  readonly: t.readonly
3316
- }, null, 8, ["concurrency", "headers", "healthy-http-statuses", "healthy-interval", "healthy-successes", "http-path", "https-sni", "timeout", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-tcp-failures", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : L("", !0),
3317
- t.fields.passiveHealthSwitch ? (T(), E(ja, {
3285
+ }, null, 8, ["concurrency", "headers", "healthy-http-statuses", "healthy-interval", "healthy-successes", "http-path", "https-sni", "timeout", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-interval", "unhealthy-tcp-failures", "unhealthy-timeouts", "verify-ssl", "config", "readonly"])) : Q("", !0),
3286
+ t.fields.passiveHealthSwitch ? (F(), R(ja, {
3318
3287
  key: 1,
3319
3288
  "healthy-http-statuses": t.fields.passiveHealthCheck.healthy.httpStatuses,
3320
3289
  "onUpdate:healthyHttpStatuses": o[36] || (o[36] = (u) => t.fields.passiveHealthCheck.healthy.httpStatuses = u),
@@ -3331,7 +3300,7 @@ const pe = {
3331
3300
  "unhealthy-timeouts": t.fields.passiveHealthCheck.unhealthy.timeouts,
3332
3301
  "onUpdate:unhealthyTimeouts": o[42] || (o[42] = (u) => t.fields.passiveHealthCheck.unhealthy.timeouts = u),
3333
3302
  readonly: t.readonly
3334
- }, null, 8, ["healthy-http-statuses", "healthy-successes", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-tcp-failures", "unhealthy-timeouts", "readonly"])) : L("", !0)
3303
+ }, null, 8, ["healthy-http-statuses", "healthy-successes", "type", "unhealthy-http-failures", "unhealthy-http-statuses", "unhealthy-tcp-failures", "unhealthy-timeouts", "readonly"])) : Q("", !0)
3335
3304
  ]),
3336
3305
  _: 1
3337
3306
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
@@ -3364,7 +3333,7 @@ const pe = {
3364
3333
  },
3365
3334
  emits: ["loading", "fetch:error", "fetch:success"],
3366
3335
  setup(a) {
3367
- const R = a, { i18n: { t: i }, i18nT: l } = pe.useI18n(), { getPropValue: h } = Kt(), k = I(() => _e.form[R.config.app].edit), _ = B({
3336
+ const B = a, { i18n: { t: i }, i18nT: l } = pe.useI18n(), { getPropValue: h } = Kt(), v = I(() => _e.form[B.config.app].edit), k = E({
3368
3337
  id: {},
3369
3338
  name: {},
3370
3339
  created_at: {},
@@ -3407,7 +3376,7 @@ const pe = {
3407
3376
  order: 13,
3408
3377
  section: ue.Basic,
3409
3378
  // TODO: change to JsonArray
3410
- type: Et.Json
3379
+ type: Vt.Json
3411
3380
  },
3412
3381
  tags: {
3413
3382
  order: 14,
@@ -3438,17 +3407,17 @@ const pe = {
3438
3407
  tooltip: i("upstreams.form.hash_tooltips.client_certificate")
3439
3408
  }
3440
3409
  });
3441
- return (D, F) => (T(), oe("div", null, [
3410
+ return (D, x) => (F(), ie("div", null, [
3442
3411
  n(e(Nt), {
3443
3412
  config: a.config,
3444
3413
  "config-card-doc": a.configCardDoc,
3445
- "config-schema": _.value,
3446
- "entity-type": e(Le).Upstream,
3447
- "fetch-url": k.value,
3414
+ "config-schema": k.value,
3415
+ "entity-type": e(je).Upstream,
3416
+ "fetch-url": v.value,
3448
3417
  "hide-title": a.hideTitle,
3449
- "onFetch:error": F[0] || (F[0] = (s) => D.$emit("fetch:error", s)),
3450
- "onFetch:success": F[1] || (F[1] = (s) => D.$emit("fetch:success", s)),
3451
- onLoading: F[2] || (F[2] = (s) => D.$emit("loading", s))
3418
+ "onFetch:error": x[0] || (x[0] = (s) => D.$emit("fetch:error", s)),
3419
+ "onFetch:success": x[1] || (x[1] = (s) => D.$emit("fetch:success", s)),
3420
+ onLoading: x[2] || (x[2] = (s) => D.$emit("loading", s))
3452
3421
  }, {
3453
3422
  "name-label-tooltip": r(() => [
3454
3423
  n(e(l), {
@@ -3456,7 +3425,7 @@ const pe = {
3456
3425
  scope: "global"
3457
3426
  }, {
3458
3427
  host: r(() => [
3459
- v("code", null, f(e(i)("upstreams.form.fields.name.host")), 1)
3428
+ b("code", null, f(e(i)("upstreams.form.fields.name.host")), 1)
3460
3429
  ]),
3461
3430
  _: 1
3462
3431
  })
@@ -3467,7 +3436,7 @@ const pe = {
3467
3436
  scope: "global"
3468
3437
  }, {
3469
3438
  result: r(() => [
3470
- v("code", null, f(s.value), 1)
3439
+ b("code", null, f(s.value), 1)
3471
3440
  ]),
3472
3441
  _: 2
3473
3442
  }, 1024)
@@ -3478,10 +3447,10 @@ const pe = {
3478
3447
  scope: "global"
3479
3448
  }, {
3480
3449
  hash_on: r(() => [
3481
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.hash_on")), 1)
3450
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.hash_on")), 1)
3482
3451
  ]),
3483
3452
  header: r(() => [
3484
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.header")), 1)
3453
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_header.header")), 1)
3485
3454
  ]),
3486
3455
  _: 1
3487
3456
  })
@@ -3492,10 +3461,10 @@ const pe = {
3492
3461
  scope: "global"
3493
3462
  }, {
3494
3463
  hash_on: r(() => [
3495
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")), 1)
3464
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.hash_on")), 1)
3496
3465
  ]),
3497
3466
  uri_capture: r(() => [
3498
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")), 1)
3467
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_uri_capture.uri_capture")), 1)
3499
3468
  ]),
3500
3469
  _: 1
3501
3470
  })
@@ -3506,10 +3475,10 @@ const pe = {
3506
3475
  scope: "global"
3507
3476
  }, {
3508
3477
  hash_on: r(() => [
3509
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")), 1)
3478
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.hash_on")), 1)
3510
3479
  ]),
3511
3480
  query_arg: r(() => [
3512
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")), 1)
3481
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_query_arg.query_arg")), 1)
3513
3482
  ]),
3514
3483
  _: 1
3515
3484
  })
@@ -3520,13 +3489,13 @@ const pe = {
3520
3489
  scope: "global"
3521
3490
  }, {
3522
3491
  hash_on: r(() => [
3523
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")), 1)
3492
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_on")), 1)
3524
3493
  ]),
3525
3494
  hash_fallback: r(() => [
3526
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")), 1)
3495
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.hash_fallback")), 1)
3527
3496
  ]),
3528
3497
  cookie: r(() => [
3529
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")), 1)
3498
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie.cookie")), 1)
3530
3499
  ]),
3531
3500
  _: 1
3532
3501
  })
@@ -3537,13 +3506,13 @@ const pe = {
3537
3506
  scope: "global"
3538
3507
  }, {
3539
3508
  hash_on: r(() => [
3540
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")), 1)
3509
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_on")), 1)
3541
3510
  ]),
3542
3511
  hash_fallback: r(() => [
3543
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")), 1)
3512
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.hash_fallback")), 1)
3544
3513
  ]),
3545
3514
  cookie: r(() => [
3546
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")), 1)
3515
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_on_cookie_path.cookie")), 1)
3547
3516
  ]),
3548
3517
  _: 1
3549
3518
  })
@@ -3554,19 +3523,19 @@ const pe = {
3554
3523
  scope: "global"
3555
3524
  }, {
3556
3525
  algorithm: r(() => [
3557
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.algorithm")), 1)
3526
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.algorithm")), 1)
3558
3527
  ]),
3559
3528
  round_robin: r(() => [
3560
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.round_robin")), 1)
3529
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.round_robin")), 1)
3561
3530
  ]),
3562
3531
  consistent_hashing: r(() => [
3563
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
3532
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.slots.consistent_hashing")), 1)
3564
3533
  ]),
3565
- min: r(() => F[3] || (F[3] = [
3566
- v("code", null, "10", -1)
3534
+ min: r(() => x[3] || (x[3] = [
3535
+ b("code", null, "10", -1)
3567
3536
  ])),
3568
- max: r(() => F[4] || (F[4] = [
3569
- v("code", null, "65536", -1)
3537
+ max: r(() => x[4] || (x[4] = [
3538
+ b("code", null, "65536", -1)
3570
3539
  ])),
3571
3540
  _: 1
3572
3541
  })
@@ -3577,10 +3546,10 @@ const pe = {
3577
3546
  scope: "global"
3578
3547
  }, {
3579
3548
  hash_on: r(() => [
3580
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.hash_on")), 1)
3549
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.hash_on")), 1)
3581
3550
  ]),
3582
3551
  cookie: r(() => [
3583
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.cookie")), 1)
3552
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback.cookie")), 1)
3584
3553
  ]),
3585
3554
  _: 1
3586
3555
  })
@@ -3591,10 +3560,10 @@ const pe = {
3591
3560
  scope: "global"
3592
3561
  }, {
3593
3562
  hash_fallback: r(() => [
3594
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")), 1)
3563
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.hash_fallback")), 1)
3595
3564
  ]),
3596
3565
  header: r(() => [
3597
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.header")), 1)
3566
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_header.header")), 1)
3598
3567
  ]),
3599
3568
  _: 1
3600
3569
  })
@@ -3605,10 +3574,10 @@ const pe = {
3605
3574
  scope: "global"
3606
3575
  }, {
3607
3576
  hash_fallback: r(() => [
3608
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")), 1)
3577
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.hash_fallback")), 1)
3609
3578
  ]),
3610
3579
  query_arg: r(() => [
3611
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")), 1)
3580
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_query_arg.query_arg")), 1)
3612
3581
  ]),
3613
3582
  _: 1
3614
3583
  })
@@ -3619,10 +3588,10 @@ const pe = {
3619
3588
  scope: "global"
3620
3589
  }, {
3621
3590
  hash_fallback: r(() => [
3622
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")), 1)
3591
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.hash_fallback")), 1)
3623
3592
  ]),
3624
3593
  uri_capture: r(() => [
3625
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")), 1)
3594
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.hash_fallback_uri_capture.uri_capture")), 1)
3626
3595
  ]),
3627
3596
  _: 1
3628
3597
  })
@@ -3633,17 +3602,17 @@ const pe = {
3633
3602
  scope: "global"
3634
3603
  }, {
3635
3604
  host: r(() => [
3636
- v("code", null, f(e(i)("upstreams.form.hash_tooltips.host_header.host")), 1)
3605
+ b("code", null, f(e(i)("upstreams.form.hash_tooltips.host_header.host")), 1)
3637
3606
  ]),
3638
3607
  _: 1
3639
3608
  })
3640
3609
  ]),
3641
3610
  client_certificate: r((s) => {
3642
- var c;
3611
+ var d;
3643
3612
  return [
3644
- v("div", null, [
3645
- v("div", Wa, [
3646
- v("span", null, f((c = e(h)("rowValue", s)) == null ? void 0 : c.id), 1)
3613
+ b("div", null, [
3614
+ b("div", Wa, [
3615
+ b("span", null, f((d = e(h)("rowValue", s)) == null ? void 0 : d.id), 1)
3647
3616
  ])
3648
3617
  ])
3649
3618
  ];