@kong-ui-public/entities-upstreams-targets 3.8.1-pr.2184.83ed3fa60.0 → 3.8.1

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