@kong-ui-public/entities-routes 3.8.54 → 3.8.55

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, ref as P, computed as M, watch as G, onBeforeMount as ot, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as It, createTextVNode as F, toDisplayString as g, createElementVNode as y, Fragment as x, renderList as X, withModifiers as Ce, TransitionGroup as ve, createCommentVNode as H, mergeModels as qe, useModel as st, createSlots as lt, renderSlot as ue, defineAsyncComponent as Rt, onMounted as rt, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Et, nextTick as Vt } from "vue";
1
+ import { defineComponent as J, ref as P, computed as M, watch as q, onBeforeMount as ot, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as It, createTextVNode as F, toDisplayString as g, createElementVNode as y, Fragment as x, renderList as X, withModifiers as Ce, TransitionGroup as ve, createCommentVNode as H, mergeModels as qe, useModel as st, createSlots as lt, renderSlot as ue, defineAsyncComponent as Rt, onMounted as rt, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Et, nextTick as Vt } from "vue";
2
2
  import { useRouter as it } from "vue-router";
3
3
  import { BadgeMethodAppearances as at } from "@kong/kongponents";
4
4
  import { AddIcon as nt, TrashIcon as dt, InfoIcon as Ye, RocketIcon as At } from "@kong/icons";
@@ -393,7 +393,7 @@ const re = {
393
393
  emits: ["error", "copy:success", "copy:error", "delete:success"],
394
394
  setup(r, { emit: N }) {
395
395
  var W;
396
- const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = re.useI18n(), m = it(), { axiosInstance: S } = Be((W = a.config) == null ? void 0 : W.axiosRequestConfig), R = P(1), E = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), q = {
396
+ const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = re.useI18n(), m = it(), { axiosInstance: S } = Be((W = a.config) == null ? void 0 : W.axiosRequestConfig), R = P(1), E = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), L = {
397
397
  // the Name column is non-hidable
398
398
  name: { label: f("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
399
399
  protocols: { label: f("routes.list.table_headers.protocols"), searchable: !0 },
@@ -412,10 +412,10 @@ const re = {
412
412
  columnVisibility: {
413
413
  created_at: !1
414
414
  }
415
- }, u = q, Q = M(() => {
416
- var k, $, L, B;
415
+ }, u = L, Q = M(() => {
416
+ var k, $, B, G;
417
417
  let _ = `${a.config.apiBaseUrl}${_e.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
418
- return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, (($ = a.config) == null ? void 0 : $.serviceId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (L = a.config) != null && L.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((B = a.config) == null ? void 0 : B.serviceId) || "")), _;
418
+ return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, (($ = a.config) == null ? void 0 : $.serviceId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (B = a.config) != null && B.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((G = a.config) == null ? void 0 : G.serviceId) || "")), _;
419
419
  }), oe = P(""), O = M(() => {
420
420
  const _ = a.config.app === "konnect" || a.config.isExactMatch;
421
421
  if (_)
@@ -424,11 +424,11 @@ const re = {
424
424
  // force exact placeholder if `props.config.isExactMatch` is true
425
425
  placeholder: f(`search.placeholder.${a.config.isExactMatch ? "exact" : a.config.app}`)
426
426
  };
427
- const { name: k, protocols: $, hosts: L, methods: B, paths: se, expression: ye } = q, T = {
427
+ const { name: k, protocols: $, hosts: B, methods: G, paths: se, expression: ye } = L, T = {
428
428
  name: k,
429
429
  protocols: $,
430
- hosts: L,
431
- methods: B,
430
+ hosts: B,
431
+ methods: G,
432
432
  paths: se,
433
433
  ...a.hasExpressionColumn && { expression: ye }
434
434
  };
@@ -494,19 +494,19 @@ const re = {
494
494
  pe.value = !0;
495
495
  try {
496
496
  await S.delete(Ae(ne.value.id)), pe.value = !1, ce.value = !1, R.value++, I("delete:success", ne.value);
497
- } catch (L) {
498
- Ve.value = (($ = (k = L.response) == null ? void 0 : k.data) == null ? void 0 : $.message) || L.message || f("errors.delete"), I("error", L);
497
+ } catch (B) {
498
+ Ve.value = (($ = (k = B.response) == null ? void 0 : k.data) == null ? void 0 : $.message) || B.message || f("errors.delete"), I("error", B);
499
499
  } finally {
500
500
  pe.value = !1;
501
501
  }
502
502
  }
503
503
  };
504
- G(Y, (_) => {
505
- var k, $, L;
504
+ q(Y, (_) => {
505
+ var k, $, B;
506
506
  if (_.status === kt.Error) {
507
507
  ae.value = {
508
508
  title: f("errors.general")
509
- }, (L = ($ = (k = _.error) == null ? void 0 : k.response) == null ? void 0 : $.data) != null && L.message && (ae.value.message = _.error.response.data.message), I("error", _.error);
509
+ }, (B = ($ = (k = _.error) == null ? void 0 : k.response) == null ? void 0 : $.data) != null && B.message && (ae.value.message = _.error.response.data.message), I("error", _.error);
510
510
  return;
511
511
  }
512
512
  ae.value = null;
@@ -520,7 +520,7 @@ const re = {
520
520
  return ot(async () => {
521
521
  await a.canCreate() && (Te.value.title = f("routes.list.empty_state.title"), Te.value.ctaText = f("actions.create"));
522
522
  }), (_, k) => {
523
- const $ = C("KButton"), L = C("KBadge"), B = C("KTruncate"), se = C("KDropdownItem"), ye = C("KClipboardProvider");
523
+ const $ = C("KButton"), B = C("KBadge"), G = C("KTruncate"), se = C("KDropdownItem"), ye = C("KClipboardProvider");
524
524
  return p(), b("div", Yt, [
525
525
  c(o(Nt), {
526
526
  "cache-identifier": r.cacheIdentifier,
@@ -579,9 +579,9 @@ const re = {
579
579
  y("b", null, g(T ?? "-"), 1)
580
580
  ]),
581
581
  protocols: n(({ rowValue: T }) => [
582
- c(B, null, {
582
+ c(G, null, {
583
583
  default: n(() => [
584
- (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
584
+ (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
585
585
  key: U,
586
586
  appearance: "neutral",
587
587
  onClick: k[1] || (k[1] = Ce(() => {
@@ -597,9 +597,9 @@ const re = {
597
597
  }, 1024)
598
598
  ]),
599
599
  hosts: n(({ rowValue: T }) => [
600
- (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
600
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
601
601
  default: n(() => [
602
- (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
602
+ (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
603
603
  key: U,
604
604
  appearance: "neutral",
605
605
  tooltip: U,
@@ -617,9 +617,9 @@ const re = {
617
617
  }, 1024)) : (p(), b("span", Zt, "-"))
618
618
  ]),
619
619
  methods: n(({ rowValue: T }) => [
620
- (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
620
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
621
621
  default: n(() => [
622
- (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
622
+ (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
623
623
  key: U,
624
624
  appearance: Object.values(o(at)).includes(U.toLowerCase()) ? U.toLowerCase() : "custom",
625
625
  onClick: k[3] || (k[3] = Ce(() => {
@@ -635,9 +635,9 @@ const re = {
635
635
  }, 1024)) : (p(), b("span", eo, "-"))
636
636
  ]),
637
637
  paths: n(({ rowValue: T }) => [
638
- (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
638
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
639
639
  default: n(() => [
640
- (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
640
+ (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
641
641
  key: U,
642
642
  appearance: "neutral",
643
643
  tooltip: U,
@@ -815,9 +815,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
815
815
  emits: ["add", "remove", "update:modelValue"],
816
816
  setup(r, { emit: N }) {
817
817
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
818
- return G(I.modelValue, (m) => {
818
+ return q(I.modelValue, (m) => {
819
819
  i.value = [...m];
820
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
820
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
821
821
  a("update:modelValue", m);
822
822
  }, { deep: !0 }), (m, S) => {
823
823
  const R = C("KLabel"), E = C("KInput");
@@ -833,7 +833,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
833
833
  }, 8, ["info"]),
834
834
  c(ve, { name: "appear" }, {
835
835
  default: n(() => [
836
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
836
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
837
837
  key: h,
838
838
  class: "routing-rule-input"
839
839
  }, [
@@ -878,9 +878,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
878
878
  emits: ["add", "remove", "update:modelValue"],
879
879
  setup(r, { emit: N }) {
880
880
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
881
- return G(I.modelValue, (m) => {
881
+ return q(I.modelValue, (m) => {
882
882
  i.value = [...m];
883
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
883
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
884
884
  a("update:modelValue", m);
885
885
  }, { deep: !0 }), (m, S) => {
886
886
  const R = C("KLabel"), E = C("KInput");
@@ -896,7 +896,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
896
896
  }, 8, ["info"]),
897
897
  c(ve, { name: "appear" }, {
898
898
  default: n(() => [
899
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
899
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
900
900
  key: h,
901
901
  class: "routing-rule-input"
902
902
  }, [
@@ -938,9 +938,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
938
938
  emits: ["add", "remove", "update:modelValue"],
939
939
  setup(r, { emit: N }) {
940
940
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
941
- return G(I.modelValue, (m) => {
941
+ return q(I.modelValue, (m) => {
942
942
  i.value = [...m];
943
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
943
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
944
944
  a("update:modelValue", m);
945
945
  }, { deep: !0 }), (m, S) => {
946
946
  const R = C("KLabel"), E = C("KInput");
@@ -956,7 +956,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
956
956
  }, 8, ["info"]),
957
957
  c(ve, { name: "appear" }, {
958
958
  default: n(() => [
959
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
959
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
960
960
  key: h,
961
961
  class: "routing-rule-input"
962
962
  }, [
@@ -1000,17 +1000,17 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1000
1000
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P({}), m = P([...I.customMethods]), S = (R) => {
1001
1001
  m.value.length === 1 ? m.value[0] = "" : m.value.splice(R, 1);
1002
1002
  };
1003
- return G(I.modelValue, (R) => {
1003
+ return q(I.modelValue, (R) => {
1004
1004
  i.value = { ...R };
1005
- }, { immediate: !0, deep: !0 }), G(i, (R) => {
1005
+ }, { immediate: !0, deep: !0 }), q(i, (R) => {
1006
1006
  a("update:modelValue", R);
1007
- }, { deep: !0 }), G(m, (R) => {
1007
+ }, { deep: !0 }), q(m, (R) => {
1008
1008
  a("update-custom-methods", R);
1009
1009
  }, { deep: !0 }), (R, E) => {
1010
- const q = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), oe = C("KInput");
1010
+ const L = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), oe = C("KInput");
1011
1011
  return p(), b("div", go, [
1012
1012
  E[2] || (E[2] = y("hr", null, null, -1)),
1013
- c(q, null, {
1013
+ c(L, null, {
1014
1014
  default: n(() => [
1015
1015
  F(g(o(f)("form.fields.methods.label")), 1)
1016
1016
  ]),
@@ -1051,7 +1051,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1051
1051
  })
1052
1052
  ]),
1053
1053
  i.value.CUSTOM ? (p(), b("div", bo, [
1054
- c(q, {
1054
+ c(L, {
1055
1055
  info: o(f)("form.fields.methods.custom.tooltip")
1056
1056
  }, {
1057
1057
  default: n(() => [
@@ -1097,9 +1097,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1097
1097
  emits: ["add", "remove", "update:modelValue"],
1098
1098
  setup(r, { emit: N }) {
1099
1099
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1100
- return G(I.modelValue, (m) => {
1100
+ return q(I.modelValue, (m) => {
1101
1101
  i.value = [...m];
1102
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
1102
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
1103
1103
  a("update:modelValue", m);
1104
1104
  }, { deep: !0 }), (m, S) => {
1105
1105
  const R = C("KLabel"), E = C("KInput");
@@ -1112,7 +1112,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1112
1112
  }),
1113
1113
  c(ve, { name: "appear" }, {
1114
1114
  default: n(() => [
1115
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1115
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1116
1116
  key: h,
1117
1117
  class: "routing-rule-input"
1118
1118
  }, [
@@ -1147,9 +1147,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1147
1147
  emits: ["add", "remove", "update:modelValue"],
1148
1148
  setup(r, { emit: N }) {
1149
1149
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1150
- return G(I.modelValue, (m) => {
1150
+ return q(I.modelValue, (m) => {
1151
1151
  i.value = [...m];
1152
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
1152
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
1153
1153
  a("update:modelValue", m);
1154
1154
  }, { deep: !0 }), (m, S) => {
1155
1155
  const R = C("KLabel"), E = C("KInput");
@@ -1165,7 +1165,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1165
1165
  }, 8, ["info"]),
1166
1166
  c(ve, { name: "appear" }, {
1167
1167
  default: n(() => [
1168
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1168
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1169
1169
  key: h,
1170
1170
  class: "routing-rule-input"
1171
1171
  }, [
@@ -1200,9 +1200,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1200
1200
  emits: ["add", "remove", "update:modelValue"],
1201
1201
  setup(r, { emit: N }) {
1202
1202
  const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1203
- return G(I.modelValue, (m) => {
1203
+ return q(I.modelValue, (m) => {
1204
1204
  i.value = [...m];
1205
- }, { immediate: !0, deep: !0 }), G(i, (m) => {
1205
+ }, { immediate: !0, deep: !0 }), q(i, (m) => {
1206
1206
  a("update:modelValue", m);
1207
1207
  }, { deep: !0 }), (m, S) => {
1208
1208
  const R = C("KLabel"), E = C("KInput");
@@ -1218,7 +1218,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1218
1218
  }, 8, ["info"]),
1219
1219
  c(ve, { name: "appear" }, {
1220
1220
  default: n(() => [
1221
- (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1221
+ (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1222
1222
  key: h,
1223
1223
  class: "routing-rule-input"
1224
1224
  }, [
@@ -1367,7 +1367,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1367
1367
  loader: async () => import("./RouteFormExpressionsEditor-Ce9E02hY.js"),
1368
1368
  loadingComponent: a,
1369
1369
  errorComponent: f
1370
- }), m = r, S = N, R = P(be.LOADING), E = st(r, "modelValue"), q = (h) => {
1370
+ }), m = r, S = N, R = P(be.LOADING), E = st(r, "modelValue"), L = (h) => {
1371
1371
  E.value = h;
1372
1372
  };
1373
1373
  return rt(async () => {
@@ -1399,7 +1399,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1399
1399
  _: 1
1400
1400
  }, 8, ["modelValue", "hint-text", "protocol", "show-expressions-modal-entry"])),
1401
1401
  ue(h.$slots, "after-editor", {
1402
- expression: { value: E.value, update: q },
1402
+ expression: { value: E.value, update: L },
1403
1403
  state: R.value
1404
1404
  })
1405
1405
  ], 64));
@@ -1491,7 +1491,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1491
1491
  return w.TRADITIONAL;
1492
1492
  if (a.routeFlavors.expressions)
1493
1493
  return w.EXPRESSIONS;
1494
- }), { i18nT: q, i18n: h, i18n: { t: u } } = re.useI18n(), Q = h.source.form.protocols, oe = it(), { axiosInstance: O } = Be((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: D } = Ut(), Y = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1494
+ }), { i18nT: L, i18n: h, i18n: { t: u } } = re.useI18n(), Q = h.source.form.protocols, oe = it(), { axiosInstance: O } = Be((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: D } = Ut(), Y = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1495
1495
  routeFlavors: a.routeFlavors,
1496
1496
  fields: {
1497
1497
  name: "",
@@ -1504,6 +1504,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1504
1504
  tags: "",
1505
1505
  service_id: "",
1506
1506
  ...!a.routeId && { paths: [""] },
1507
+ // We don't expect this prop to be updated throughout the lifecycle of the component
1507
1508
  regex_priority: 0,
1508
1509
  path_handling: "v0",
1509
1510
  expression: "",
@@ -1511,7 +1512,11 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1511
1512
  },
1512
1513
  isReadonly: !1,
1513
1514
  errorMessage: ""
1514
- }), Z = M(() => e.fields.protocols.split(",")[0]), ae = P([""]), Ee = Qe({
1515
+ });
1516
+ q(() => a.routeFlavors, (t) => {
1517
+ e.routeFlavors = t;
1518
+ });
1519
+ const Z = M(() => e.fields.protocols.split(",")[0]), ae = P([""]), Ee = Qe({
1515
1520
  name: "",
1516
1521
  protocols: "http,https",
1517
1522
  https_redirect_status_code: 426,
@@ -1645,10 +1650,10 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1645
1650
  return null;
1646
1651
  }, $ = (t) => {
1647
1652
  de(e) && (t && t === l.PATHS && (e.fields.paths ? e.fields.paths.push([...K[l.PATHS]][0]) : e.fields.paths = [...K[l.PATHS]]), t === l.SNIS && (e.fields.snis ? e.fields.snis.push([...K[l.SNIS]][0]) : e.fields.snis = [...K[l.SNIS]]), t === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[l.HOSTS]][0]) : e.fields.hosts = [...K[l.HOSTS]]), t === l.METHODS && (e.fields.methods || (e.fields.methods = { ...K[l.METHODS] })), t === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[l.HEADERS][0] }) : e.fields.headers = [{ ...K[l.HEADERS][0] }]), t === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[l.SOURCES][0] }) : e.fields.sources = [{ ...K[l.SOURCES][0] }]), t === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[l.DESTINATIONS][0] }]));
1648
- }, L = M(() => {
1653
+ }, B = M(() => {
1649
1654
  var t;
1650
1655
  return de(e) ? (t = ce[e.fields.protocols]) == null ? void 0 : t.filter((s) => !e.fields[s]) : !1;
1651
- }), B = async (t, s) => {
1656
+ }), G = async (t, s) => {
1652
1657
  if (de(e)) {
1653
1658
  if (typeof s < "u") {
1654
1659
  let v = [];
@@ -1665,13 +1670,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1665
1670
  var v;
1666
1671
  return ((v = h.source.form.fields[t]) == null ? void 0 : v.label) || "";
1667
1672
  };
1668
- G(() => e.fields.protocols, () => {
1673
+ q(() => e.fields.protocols, () => {
1669
1674
  ye();
1670
1675
  });
1671
1676
  const ye = () => {
1672
1677
  const t = Object.keys(K), s = ce[e.fields.protocols];
1673
1678
  Object.keys(e.fields).filter((V) => t.includes(V)).forEach((V) => {
1674
- s != null && s.includes(V) || B(V);
1679
+ s != null && s.includes(V) || G(V);
1675
1680
  });
1676
1681
  }, T = M(() => {
1677
1682
  if (de(e)) {
@@ -1723,7 +1728,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1723
1728
  let t = `${a.config.apiBaseUrl}${_e.form[a.config.app][pe.value][a.serviceId ? "forGatewayService" : "all"]}`;
1724
1729
  return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "").replace(/{serviceId}/gi, a.serviceId || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = a.config) != null && v.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, a.serviceId || "")), t = t.replace(/{id}/gi, a.routeId), t;
1725
1730
  });
1726
- G(() => e.fields, () => {
1731
+ q(() => e.fields, () => {
1727
1732
  f("model-updated", Re.value);
1728
1733
  }, { deep: !0 });
1729
1734
  const Ie = (t) => t != null && t.length ? t : null, ft = () => {
@@ -1982,12 +1987,12 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1982
1987
  "data-testid": "routing-rules-warning"
1983
1988
  }, {
1984
1989
  default: n(() => [
1985
- c(o(q), { keypath: "form.warning.rulesMessage" }, {
1990
+ c(o(L), { keypath: "form.warning.rulesMessage" }, {
1986
1991
  protocol: n(() => [
1987
1992
  y("b", null, g(o(Q)[e.fields.protocols]), 1)
1988
1993
  ]),
1989
1994
  routingRules: n(() => [
1990
- c(o(q), {
1995
+ c(o(L), {
1991
1996
  keypath: Fe.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
1992
1997
  }, {
1993
1998
  routingRules: n(() => [
@@ -2011,28 +2016,28 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2011
2016
  modelValue: e.fields.paths,
2012
2017
  "onUpdate:modelValue": s[4] || (s[4] = (d) => e.fields.paths = d),
2013
2018
  onAdd: s[5] || (s[5] = (d) => $(o(l).PATHS)),
2014
- onRemove: s[6] || (s[6] = (d) => B(o(l).PATHS, d))
2019
+ onRemove: s[6] || (s[6] = (d) => G(o(l).PATHS, d))
2015
2020
  }, null, 8, ["modelValue"])) : H("", !0),
2016
2021
  e.fields.snis ? (p(), A(Co, {
2017
2022
  key: "snis-container",
2018
2023
  modelValue: e.fields.snis,
2019
2024
  "onUpdate:modelValue": s[7] || (s[7] = (d) => e.fields.snis = d),
2020
2025
  onAdd: s[8] || (s[8] = (d) => $(o(l).SNIS)),
2021
- onRemove: s[9] || (s[9] = (d) => B(o(l).SNIS, d))
2026
+ onRemove: s[9] || (s[9] = (d) => G(o(l).SNIS, d))
2022
2027
  }, null, 8, ["modelValue"])) : H("", !0),
2023
2028
  e.fields.hosts ? (p(), A(vo, {
2024
2029
  key: "hosts-container",
2025
2030
  modelValue: e.fields.hosts,
2026
2031
  "onUpdate:modelValue": s[10] || (s[10] = (d) => e.fields.hosts = d),
2027
2032
  onAdd: s[11] || (s[11] = (d) => $(o(l).HOSTS)),
2028
- onRemove: s[12] || (s[12] = (d) => B(o(l).HOSTS, d))
2033
+ onRemove: s[12] || (s[12] = (d) => G(o(l).HOSTS, d))
2029
2034
  }, null, 8, ["modelValue"])) : H("", !0),
2030
2035
  e.fields.methods ? (p(), A(To, {
2031
2036
  key: "methods-container",
2032
2037
  modelValue: e.fields.methods,
2033
2038
  "onUpdate:modelValue": s[13] || (s[13] = (d) => e.fields.methods = d),
2034
2039
  "custom-methods": ae.value,
2035
- onRemove: s[14] || (s[14] = (d) => B(o(l).METHODS)),
2040
+ onRemove: s[14] || (s[14] = (d) => G(o(l).METHODS)),
2036
2041
  onUpdateCustomMethods: s[15] || (s[15] = (d) => ae.value = d)
2037
2042
  }, null, 8, ["modelValue", "custom-methods"])) : H("", !0),
2038
2043
  e.fields.headers ? (p(), A(fo, {
@@ -2040,26 +2045,26 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2040
2045
  modelValue: e.fields.headers,
2041
2046
  "onUpdate:modelValue": s[16] || (s[16] = (d) => e.fields.headers = d),
2042
2047
  onAdd: s[17] || (s[17] = (d) => $(o(l).HEADERS)),
2043
- onRemove: s[18] || (s[18] = (d) => B(o(l).HEADERS, d))
2048
+ onRemove: s[18] || (s[18] = (d) => G(o(l).HEADERS, d))
2044
2049
  }, null, 8, ["modelValue"])) : H("", !0),
2045
2050
  e.fields.sources ? (p(), A(No, {
2046
2051
  key: "sources-container",
2047
2052
  modelValue: e.fields.sources,
2048
2053
  "onUpdate:modelValue": s[19] || (s[19] = (d) => e.fields.sources = d),
2049
2054
  onAdd: s[20] || (s[20] = (d) => $(o(l).SOURCES)),
2050
- onRemove: s[21] || (s[21] = (d) => B(o(l).SOURCES, d))
2055
+ onRemove: s[21] || (s[21] = (d) => G(o(l).SOURCES, d))
2051
2056
  }, null, 8, ["modelValue"])) : H("", !0),
2052
2057
  e.fields.destinations ? (p(), A(uo, {
2053
2058
  key: "destinations-container",
2054
2059
  modelValue: e.fields.destinations,
2055
2060
  "onUpdate:modelValue": s[22] || (s[22] = (d) => e.fields.destinations = d),
2056
2061
  onAdd: s[23] || (s[23] = (d) => $(o(l).DESTINATIONS)),
2057
- onRemove: s[24] || (s[24] = (d) => B(o(l).DESTINATIONS, d))
2062
+ onRemove: s[24] || (s[24] = (d) => G(o(l).DESTINATIONS, d))
2058
2063
  }, null, 8, ["modelValue"])) : H("", !0)
2059
2064
  ]),
2060
2065
  _: 1
2061
2066
  }),
2062
- L.value ? (p(), b("div", Lo, [
2067
+ B.value ? (p(), b("div", Lo, [
2063
2068
  s[45] || (s[45] = y("hr", null, null, -1)),
2064
2069
  y("div", Bo, [
2065
2070
  y("ul", null, [
@@ -2285,7 +2290,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2285
2290
  ]);
2286
2291
  };
2287
2292
  }
2288
- }), as = /* @__PURE__ */ ie(Jo, [["__scopeId", "data-v-6c1044e5"]]), Qo = { class: "kong-ui-entities-route-entity-config-card" }, Yo = { key: 2 }, ns = /* @__PURE__ */ J({
2293
+ }), as = /* @__PURE__ */ ie(Jo, [["__scopeId", "data-v-e155aee1"]]), Qo = { class: "kong-ui-entities-route-entity-config-card" }, Yo = { key: 2 }, ns = /* @__PURE__ */ J({
2289
2294
  __name: "RouteConfigCard",
2290
2295
  props: {
2291
2296
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2319,7 +2324,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2319
2324
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
2320
2325
  setup(r, { emit: N }) {
2321
2326
  var oe;
2322
- const I = N, a = r, { axiosInstance: f } = Be((oe = a.config) == null ? void 0 : oe.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = re.useI18n(), S = P(""), R = P(""), E = P(!1), q = M(
2327
+ const I = N, a = r, { axiosInstance: f } = Be((oe = a.config) == null ? void 0 : oe.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = re.useI18n(), S = P(""), R = P(""), E = P(!1), L = M(
2323
2328
  () => {
2324
2329
  var O, D;
2325
2330
  return (D = _e.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : D[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
@@ -2438,7 +2443,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2438
2443
  "config-card-doc": r.configCardDoc,
2439
2444
  "config-schema": Q.value,
2440
2445
  "entity-type": o(ut).Route,
2441
- "fetch-url": q.value,
2446
+ "fetch-url": L.value,
2442
2447
  "hide-title": r.hideTitle,
2443
2448
  "onFetch:error": D[0] || (D[0] = (j) => O.$emit("fetch:error", j)),
2444
2449
  "onFetch:success": u,
@@ -1 +1 @@
1
- (function(R,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/kongponents"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/kongponents","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","@kong-ui-public/expressions"],e):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R.VueRouter,R.Kongponents,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"],R.isEqual,R["kong-ui-public-expressions"]))})(this,function(R,e,_e,Te,ee,b,we,Fe,se){"use strict";const Pe={actions:{create:"New Route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New Route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{label:"Destinations",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function Ie(){const s=we.createI18n("en-us",Pe);return{i18n:s,i18nT:we.i18nTComponent(s)}}const K={useI18n:Ie},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",re={list:{konnect:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},kongManager:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`}},form:{konnect:{services:`${U}/services`,create:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},fetch:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},edit:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${M}/services`,create:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`},fetch:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`},edit:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${U}/services/{serviceId}`,all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${M}/services/{serviceId}`,all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},He={class:"kong-ui-entities-routes-list"},Ue={key:1},Me={key:1},Le={key:1},qe={class:"route-list-cell-expression"},Ke=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(s,{emit:k}){var F;const h=k,i=s,{i18n:{t:c,formatUnixTimeStamp:n}}=K.useI18n(),p=_e.useRouter(),{axiosInstance:u}=b.useAxios((F=i.config)==null?void 0:F.axiosRequestConfig),S=e.ref(1),V=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),B={name:{label:c("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:c("routes.list.table_headers.protocols"),searchable:!0},...!i.hideTraditionalColumns&&{hosts:{label:c("routes.list.table_headers.hosts"),searchable:!0},methods:{label:c("routes.list.table_headers.methods"),searchable:!0},paths:{label:c("routes.list.table_headers.paths"),searchable:!0}},...i.hasExpressionColumn&&{expression:{label:c("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:c("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:c("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:c("routes.list.table_headers.created_at"),sortable:!0}},f={columnVisibility:{created_at:!1}},a=B,D=e.computed(()=>{var _,T,A,O;let g=`${i.config.apiBaseUrl}${re.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((_=i.config)==null?void 0:_.controlPlaneId)||"").replace(/{serviceId}/gi,((T=i.config)==null?void 0:T.serviceId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(A=i.config)!=null&&A.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((O=i.config)==null?void 0:O.serviceId)||"")),g}),H=e.ref(""),E=e.computed(()=>{const g=i.config.app==="konnect"||i.config.isExactMatch;if(g)return{isExactMatch:g,placeholder:c(`search.placeholder.${i.config.isExactMatch?"exact":i.config.app}`)};const{name:_,protocols:T,hosts:A,methods:O,paths:W,expression:le}=B,y={name:_,protocols:T,hosts:A,methods:O,paths:W,...i.hasExpressionColumn&&{expression:le}};return{isExactMatch:g,fields:y,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:L}=b.useFetcher(i.config,D.value),$=g=>g.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},t=()=>{H.value=""},q=()=>{S.value++},z=e.ref(null),ce=(g,_)=>{const T=g.id;if(!_(T)){h("copy:error",{entity:g,field:"id",message:c("errors.copy")});return}h("copy:success",{entity:g,field:"id",message:c("copy.success",{val:T})})},x=(g,_)=>{const T=JSON.stringify(g);if(!_(T)){h("copy:error",{entity:g,message:c("errors.copy")});return}h("copy:success",{entity:g,message:c("copy.success_brief")})},ue=async g=>{var T;await((T=i.canRetrieve)==null?void 0:T.call(i,g))&&p.push(i.config.getViewRoute(g.id))},he=g=>({label:c("actions.view"),to:i.config.getViewRoute(g)}),ge=g=>({label:c("actions.edit"),to:i.config.getEditRoute(g)}),J=e.ref(void 0),Q=e.ref(!1),Y=e.ref(!1),pe=e.ref(""),fe=b.useDeleteUrlBuilder(i.config,D.value),ye=g=>{J.value=g,Q.value=!0},Se=()=>{Q.value=!1},be=async()=>{var g,_,T;if((g=J.value)!=null&&g.id){Y.value=!0;try{await u.delete(fe(J.value.id)),Y.value=!1,Q.value=!1,S.value++,h("delete:success",J.value)}catch(A){pe.value=((T=(_=A.response)==null?void 0:_.data)==null?void 0:T.message)||A.message||c("errors.delete"),h("error",A)}finally{Y.value=!1}}};e.watch(L,g=>{var _,T,A;if(g.status===b.FetcherStatus.Error){z.value={title:c("errors.general")},(A=(T=(_=g.error)==null?void 0:_.response)==null?void 0:T.data)!=null&&A.message&&(z.value.message=g.error.response.data.message),h("error",g.error);return}z.value=null});const ie=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${c("routes.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:c("routes.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(ie.value.title=c("routes.list.empty_state.title"),ie.value.ctaText=c("actions.create"))}),(g,_)=>{const T=e.resolveComponent("KButton"),A=e.resolveComponent("KBadge"),O=e.resolveComponent("KTruncate"),W=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",He,[e.createVNode(e.unref(b.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"cell-attributes":$,"default-table-preferences":f,"disable-sorting":V.value,"empty-state-options":ie.value,"enable-entity-actions":"","error-message":z.value,fetcher:e.unref(w),"fetcher-cache-key":S.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:H.value,"table-headers":e.unref(a),title:s.title,"title-tag":s.titleTag,onClearSearchInput:t,"onClick:row":_[5]||(_[5]=y=>ue(y)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(b.EntityFilter),{modelValue:H.value,"onUpdate:modelValue":_[0]||(_[0]=y=>H.value=y),config:E.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),protocols:e.withCtx(({rowValue:y})=>[e.createVNode(O,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",onClick:_[1]||(_[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",tooltip:I,"truncation-tooltip":"",onClick:_[2]||(_[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ue,"-"))]),methods:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:Object.values(e.unref(Te.BadgeMethodAppearances)).includes(I.toLowerCase())?I.toLowerCase():"custom",onClick:_[3]||(_[3]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Me,"-"))]),paths:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",tooltip:I,"truncation-tooltip":"",onClick:_[4]||(_[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Le,"-"))]),tags:e.withCtx(({rowValue:y})=>[e.createVNode(e.unref(b.TableTags),{tags:y},null,8,["tags"])]),expression:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",qe,e.toDisplayString(y||"-"),1)]),created_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),updated_at:e.withCtx(({row:y,rowValue:I})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(I??y.created_at)),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:I})=>[e.createVNode(W,{"data-testid":"action-entity-copy-id",onClick:Ve=>ce(y,I)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:I})=>[e.createVNode(W,{"data-testid":"action-entity-copy-json",onClick:Ve=>x(y,I)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(W,{"data-testid":"action-entity-view","has-divider":"",item:he(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(W,{"data-testid":"action-entity-edit",item:ge(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(W,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:I=>ye(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag"]),e.createVNode(e.unref(b.EntityDeleteModal),{"action-pending":Y.value,description:e.unref(c)("delete.description"),"entity-name":J.value&&(J.value.name||J.value.id),"entity-type":e.unref(b.EntityTypes).Route,error:pe.value,title:e.unref(c)("delete.title"),visible:Q.value,onCancel:Se,onProceed:be},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),G=(s,k)=>{const h=s.__vccOpts||s;for(const[i,c]of k)h[i]=c;return h},Ge=G(Ke,[["__scopeId","data-v-09caa9e4"]]);var Re=(s=>(s.GET="GET",s.PUT="PUT",s.POST="POST",s.PATCH="PATCH",s.DELETE="DELETE",s.OPTIONS="OPTIONS",s.HEAD="HEAD",s.CONNECT="CONNECT",s.TRACE="TRACE",s.CUSTOM="CUSTOM",s))(Re||{}),N=(s=>(s.TRADITIONAL="traditional",s.EXPRESSIONS="expressions",s))(N||{}),l=(s=>(s.PATHS="paths",s.SNIS="snis",s.HOSTS="hosts",s.METHODS="methods",s.HEADERS="headers",s.SOURCES="sources",s.DESTINATIONS="destinations",s.CUSTOM_METHOD="custom-method",s))(l||{}),te=(s=>(s.LOADING="loading",s.ERROR="error",s.READY="ready",s))(te||{});const j=s=>s.routeFlavors.traditional===!0,ne=s=>s.routeFlavors.expressions===!0,Be="#d60027",xe="#6c7489",me="16px",je={class:"routing-rules-entities-controls-container"},oe=G(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(s){return(k,h)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",je,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${s.routingRulesEntity}`,icon:"",onClick:h[0]||(h[0]=c=>k.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(Be)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${s.routingRulesEntity}`,disabled:s.isAddDisabled,icon:"",onClick:h[1]||(h[1]=c=>k.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),We={class:"routing-rule-container"},Xe=G(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",We,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.destinations.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-d41b39fd"]]),ze={class:"routing-rule-container"},Je=G(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.headers.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].header,"onUpdate:modelValue":a=>n.value[f].header=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].values,"onUpdate:modelValue":a=>n.value[f].values=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-ca0bb10b"]]),Qe={class:"routing-rule-container"},Ye=G(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.hosts.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${f+1}`,placeholder:e.unref(c)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-88d16377"]]),Ze={class:"routing-rule-container"},ve={class:"routing-rule-input"},et={class:"methods-input-container"},tt={key:0,class:"routing-rule-container"},ot=G(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref({}),p=e.ref([...h.customMethods]),u=S=>{p.value.length===1?p.value[0]="":p.value.splice(S,1)};return e.watch(h.modelValue,S=>{n.value={...S}},{immediate:!0,deep:!0}),e.watch(n,S=>{i("update:modelValue",S)},{deep:!0}),e.watch(p,S=>{i("update-custom-methods",S)},{deep:!0}),(S,V)=>{const B=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),D=e.resolveComponent("KButton"),H=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[V[2]||(V[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",ve,[e.createElementVNode("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),E=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[E],"onUpdate:modelValue":w=>n.value[E]=w,"data-testid":`${E.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(Te.BadgeMethodAppearances)).includes(E.toLowerCase())?E.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(D,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:V[0]||(V[0]=E=>S.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(Be)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(B,{info:e.unref(c)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.custom.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(E,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(H,{modelValue:p.value[w],"onUpdate:modelValue":L=>p.value[w]=L,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":w!==p.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:V[1]||(V[1]=L=>p.value.push("")),onRemove:L=>u(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c8ae1bc5"]]),rt={class:"routing-rule-container"},lt=G(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(S,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.paths.label")),1)]),_:1}),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${f+1}`,placeholder:e.unref(c)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-bc31ca96"]]),st={class:"routing-rule-container"},nt=G(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",st,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.snis.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${f+1}`,placeholder:e.unref(c)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-c3679dd9"]]),it={class:"routing-rule-container"},at=G(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",it,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.sources.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-50c52494"]]),dt=G(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const k=e.useModel(s,"modelValue"),h=s,{i18n:{t:i}}=Ie(),c=e.computed(()=>[...h.routeFlavors.traditional?[{hash:`#${N.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...h.routeFlavors.expressions?[{hash:`#${N.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),S=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(S,{key:0,modelValue:k.value,"onUpdate:modelValue":p[0]||(p[0]=V=>k.value=V),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(N).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(N).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(N).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(xe),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(N).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(N).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(N).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(N).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(N).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(xe),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(N).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(N).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(n.$slots,"before-content",{},void 0,!0),n.routeFlavors.traditional?e.renderSlot(n.$slots,e.unref(N).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(N).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),ct=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:k}){const{i18n:{t:h}}=K.useI18n(),i={render:()=>e.h("div",h("form.expressions_editor.loading"))},c={render:()=>e.h("div",h("form.expressions_editor.error"))},n=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Bt),loadingComponent:i,errorComponent:c}),p=s,u=k,S=e.ref(te.LOADING),V=e.useModel(s,"modelValue"),B=f=>{V.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,S.value=te.READY}catch(f){S.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[S.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):S.value===e.unref(te).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(n),{key:2,modelValue:V.value,"onUpdate:modelValue":a[0]||(a[0]=D=>V.value=D),"hint-text":e.unref(h)("form.expression_playground.supported_protocols_hint"),protocol:p.protocol,"show-expressions-modal-entry":f.showExpressionsModalEntry,onNotify:a[1]||(a[1]=D=>u("notify",D))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.RocketIcon),{size:e.unref(me)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(h)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(f.$slots,"after-editor",{expression:{value:V.value,update:B},state:S.value})],64))}}),pt={class:"kong-ui-entities-route-form"},ft={key:1},mt={"data-testid":"no-search-results"},ut={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt={class:"route-form-routing-rules-title-container"},St={class:"routing-rules-title"},bt={key:1,class:"route-form-routing-rules-selector-container"},Vt={class:"route-form-routing-rules-selector-options"},Ct=["aria-disabled","data-testid","onClick"],Et={class:"route-form-fields-container route-form-advanced-fields-container"},kt={class:"route-form-routing-rules-title-container"},Nt={class:"routing-rules-title"},_t={class:"route-form-fields-container route-form-advanced-fields-container"},Tt=G(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||(s==null?void 0:s.app)==="konnect"&&!(s!=null&&s.controlPlaneId)||(s==null?void 0:s.app)==="kongManager"&&typeof(s==null?void 0:s.workspace)!="string"||!(s!=null&&s.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},showTagsFiledUnderAdvanced:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(s,{expose:k,emit:h}){var $e;const i=s,c=h,n=e.ref(i.routeFlavors.traditional?`#${N.TRADITIONAL}`:i.routeFlavors.expressions?`#${N.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),S=e.ref(!0),V=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return N.TRADITIONAL;if(i.routeFlavors.expressions)return N.EXPRESSIONS}),{i18nT:B,i18n:f,i18n:{t:a}}=K.useI18n(),D=f.source.form.protocols,H=_e.useRouter(),{axiosInstance:E}=b.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:w}=b.useErrors(),L=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),$=o=>o.name?`${o.name} - ${o.value}`:o.value,t=e.reactive({routeFlavors:i.routeFlavors,fields:{name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",...!i.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""}),q=e.computed(()=>t.fields.protocols.split(",")[0]),z=e.ref([""]),ce=e.reactive({name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",path_handling:"v0",regex_priority:0,expression:"",priority:0}),x={[l.PATHS]:[""],[l.SNIS]:[""],[l.HOSTS]:[""],[l.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[l.HEADERS]:[{header:"",values:""}],[l.SOURCES]:[{ip:"",port:null}],[l.DESTINATIONS]:[{ip:"",port:null}]},ue=i.config.app==="konnect"||b.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),he=[{label:a("form.protocols.grpc"),value:"grpc"},{label:a("form.protocols.grpcs"),value:"grpcs"},{label:a("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:a("form.protocols.http"),value:"http"},{label:a("form.protocols.https"),value:"https"},{label:a("form.protocols.http,https"),value:"http,https"},{label:a("form.protocols.tcp"),value:"tcp"},{label:a("form.protocols.tls"),value:"tls"},{label:a("form.protocols.tls,udp"),value:"tls,udp"},{label:a("form.protocols.tcp,udp"),value:"tcp,udp"},{label:a("form.protocols.tcp,tls"),value:"tcp,tls"},{label:a("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:a("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:a("form.protocols.udp"),value:"udp"},...ue?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],ge=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],J=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],Q={http:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS],https:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"http,https":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"https,http":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],grpc:[l.HOSTS,l.PATHS,l.HEADERS],grpcs:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpc,grpcs":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpcs,grpc":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],udp:[l.SOURCES,l.DESTINATIONS],tls:[l.SOURCES,l.DESTINATIONS,l.SNIS],tcp:[l.SOURCES,l.DESTINATIONS],"tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,udp":[l.SOURCES,l.DESTINATIONS],"udp,tcp":[l.SOURCES,l.DESTINATIONS],"tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,udp,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],tls_passthrough:[l.SNIS],ws:[l.HOSTS,l.PATHS,l.HEADERS],wss:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"ws,wss":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"wss,ws":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS]},Y=e.computed(()=>i.routeId?b.EntityBaseFormType.Edit:b.EntityBaseFormType.Create),pe=e.computed(()=>{var o,r,m;return(m=(r=re.form[(o=i.config)==null?void 0:o.app])==null?void 0:r.fetch)==null?void 0:m[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId||"")}),fe=()=>{var o;H.push((o=i.config)==null?void 0:o.cancelRoute)},ye=o=>{c("loading",o)},Se=o=>{c("error",o)},be=o=>{j(t)&&(t.fields.methods=x[l.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},ie=o=>Object.entries(o).map(r=>{var m;return{header:r[0],values:(m=r[1])==null?void 0:m.join()}}),F=o=>o.some(r=>t.fields.protocols.includes(r)),g=(o,r)=>{if(o===l.PATHS||o===l.HOSTS||o===l.SNIS)return[...r].filter(m=>!!m);if(o===l.SOURCES||o===l.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===l.HEADERS)return[...r].filter(m=>!!m.header)},_=()=>{if(j(t)){const o=g(l.HEADERS,t.fields.headers||[])||x[l.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},T=o=>{j(t)&&(o&&o===l.PATHS&&(t.fields.paths?t.fields.paths.push([...x[l.PATHS]][0]):t.fields.paths=[...x[l.PATHS]]),o===l.SNIS&&(t.fields.snis?t.fields.snis.push([...x[l.SNIS]][0]):t.fields.snis=[...x[l.SNIS]]),o===l.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...x[l.HOSTS]][0]):t.fields.hosts=[...x[l.HOSTS]]),o===l.METHODS&&(t.fields.methods||(t.fields.methods={...x[l.METHODS]})),o===l.HEADERS&&(t.fields.headers?t.fields.headers.push({...x[l.HEADERS][0]}):t.fields.headers=[{...x[l.HEADERS][0]}]),o===l.SOURCES&&(t.fields.sources?t.fields.sources.push({...x[l.SOURCES][0]}):t.fields.sources=[{...x[l.SOURCES][0]}]),o===l.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...x[l.DESTINATIONS][0]}):t.fields.destinations=[{...x[l.DESTINATIONS][0]}]))},A=e.computed(()=>{var o;return j(t)?(o=Q[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),O=async(o,r)=>{if(j(t)){if(typeof r<"u"){let m=[];if(m=t.fields[o],m.splice(r,1),m.length){t.fields[o]=m;return}}await e.nextTick(()=>{delete t.fields[o],o===l.METHODS&&(z.value=[""])})}},W=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{le()});const le=()=>{const o=Object.keys(x),r=Q[t.fields.protocols];Object.keys(t.fields).filter(C=>o.includes(C)).forEach(C=>{r!=null&&r.includes(C)||O(C)})},y=e.computed(()=>{if(j(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),I=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),Ve=e.computed(()=>{const o=Object.keys(x);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),Ce=e.computed(()=>{if(F(["tls_passthrough"]))return[W(l.SNIS)];const o=Q[t.fields.protocols].map(r=>W(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),Ae=o=>{var m,C;if(i.routeId){const P=typeof o.expression=="string"&&o.expression.length>0?N.EXPRESSIONS:N.TRADITIONAL;u.value=P,n.value=`#${P}`}(m=o==null?void 0:o.service)!=null&&m.id&&(t.fields.service_id=o.service.id),t.fields.name=(o==null?void 0:o.name)||"";const r=(o==null?void 0:o.tags)||[];t.fields.tags=(r==null?void 0:r.join(", "))||"",t.fields.preserve_host=typeof(o==null?void 0:o.preserve_host)>"u"?!1:o==null?void 0:o.preserve_host,t.fields.https_redirect_status_code=(o==null?void 0:o.https_redirect_status_code)||426,(C=o==null?void 0:o.protocols)!=null&&C.length&&(o.protocols.length>1?t.fields.protocols=o.protocols.join():t.fields.protocols=o.protocols[0]),t.fields.request_buffering=typeof(o==null?void 0:o.request_buffering)>"u"?!0:o==null?void 0:o.request_buffering,t.fields.response_buffering=typeof(o==null?void 0:o.response_buffering)>"u"?!0:o==null?void 0:o.response_buffering,t.fields.strip_path=typeof(o==null?void 0:o.strip_path)>"u"?!0:o==null?void 0:o.strip_path,j(t)&&(t.fields.regex_priority=(o==null?void 0:o.regex_priority)||0,t.fields.path_handling=(o==null?void 0:o.path_handling)||"v0",o!=null&&o.paths&&(t.fields.paths=o.paths),o!=null&&o.snis&&(t.fields.snis=o.snis),o!=null&&o.hosts&&(t.fields.hosts=o.hosts),o!=null&&o.methods&&be(o.methods),o!=null&&o.headers&&(t.fields.headers=ie(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ne(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(ce,JSON.parse(JSON.stringify(t.fields)))},Oe=e.computed(()=>{var o;switch(V.value){case N.TRADITIONAL:{if(j(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,C=t.fields.headers?t.fields.headers.some(({header:v})=>!!v):null,P=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,Z=t.fields.destinations?t.fields.destinations.some(({ip:v})=>!!v):null,X=t.fields.sources?t.fields.sources.some(({ip:v})=>!!v):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?z.value.some(v=>!!v):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&(F(["http"])&&!!(r||d||m||C)||F(["https"])&&!!(r||d||m||C||P)||F(["grpc"])&&!!(r||m||C)||F(["grpcs","wss"])&&!!(r||m||C||P)||F(["udp","tls"])&&!!(Z||X||P)||F(["tcp"])&&!!(Z||X)||F(["tls_passthrough"])&&!!P||F(["ws"])&&!!(r||m||C))}break}case N.EXPRESSIONS:{if(ne(t))return t.fields.expression.length>0;break}}return!0}),De=e.computed(()=>!Fe(t.fields,ce)),Ee=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${re.form[i.config.app][Y.value][i.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=i.config)==null?void 0:r.controlPlaneId)||"").replace(/{serviceId}/gi,i.serviceId||""):i.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(m=i.config)!=null&&m.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,i.serviceId||"")),o=o.replace(/{id}/gi,i.routeId),o});e.watch(()=>t.fields,()=>{c("model-updated",de.value)},{deep:!0});const ae=o=>o!=null&&o.length?o:null,xt=()=>{var o,r;if(j(t)){const m={methods:null,hosts:ae(g(l.HOSTS,t.fields.hosts||[])),paths:ae(g(l.PATHS,t.fields.paths||[])),headers:_(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:ae(g(l.SOURCES,t.fields.sources||[])),destinations:ae(g(l.DESTINATIONS,t.fields.destinations||[])),snis:ae(g(l.SNIS,t.fields.snis||[]))};if((o=y.value)!=null&&o.length&&(m.methods=[...y.value],(r=y.value)!=null&&r.includes("CUSTOM"))){const C=m.methods.indexOf("CUSTOM");C!==-1&&m.methods.splice(C,1),z.value.forEach(P=>{var Z;P&&m.methods&&!((Z=m.methods)!=null&&Z.includes(P))&&m.methods.push(P.toUpperCase())})}return m}},At=()=>{if(ne(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},de=e.computed(()=>{var r,m;const o={...!i.hideNameField&&{name:t.fields.name||null},protocols:t.fields.protocols.split(","),https_redirect_status_code:t.fields.https_redirect_status_code,strip_path:F(["grpc","gprcs"])?!1:t.fields.strip_path,preserve_host:t.fields.preserve_host,request_buffering:t.fields.request_buffering,response_buffering:t.fields.response_buffering,tags:(m=(r=t.fields.tags.split(","))==null?void 0:r.map(C=>String(C||"").trim()))==null?void 0:m.filter(C=>C!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(V.value){case N.TRADITIONAL:return{...o,...xt()};case N.EXPRESSIONS:return{...o,...At()};default:return o}}),Ot=o=>{switch(V.value){case N.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case N.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},ke=async o=>{var m;const r=o&&Ot(o)?o:de.value;try{t.isReadonly=!0;let C;Y.value==="create"?C=await E.post(Ee.value,r):Y.value==="edit"&&(C=((m=i.config)==null?void 0:m.app)==="konnect"?await E.put(Ee.value,r):await E.patch(Ee.value,r)),Ae(C==null?void 0:C.data),c("update",C==null?void 0:C.data)}catch(C){t.errorMessage=w(C),c("error",C)}finally{t.isReadonly=!1}},{debouncedQueryChange:Dt,loading:$t,error:Ft,loadItems:Pt,results:Ht}=b.useDebouncedFilter(i.config,re.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Ut=e.computed(()=>Ft.value?a("errors.services.fetch"):""),Mt=e.computed(()=>{var o;return(o=Ht.value)==null?void 0:o.map(r=>({label:r.id,name:r.name,value:r.id}))});return e.onBeforeMount(async()=>{!i.hideServiceField&&!i.serviceId?await Pt():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",de.value)}),k({saveFormData:ke,getPayload:de}),(o,r)=>{const m=e.resolveComponent("KInput"),C=e.resolveComponent("KSelect"),P=e.resolveComponent("KAlert"),Z=e.resolveComponent("KCard"),X=e.resolveComponent("KCheckbox"),Ne=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(b.EntityBaseForm),{"can-submit":Oe.value&&De.value,config:s.config,"edit-id":s.routeId,"entity-type":e.unref(b.SupportedEntityType).Route,"error-message":t.errorMessage||Ut.value,"fetch-url":pe.value,"form-fields":de.value,"is-readonly":t.isReadonly,onCancel:fe,"onFetch:error":Se,"onFetch:success":Ae,onLoading:ye,onSubmit:ke},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:Oe.value&&De.value,cancel:fe,submit:ke},void 0,!0)]),default:e.withCtx(()=>[L.value?(e.openBlock(),e.createBlock(e.unref(b.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[s.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(a)("form.fields.name.label"),placeholder:e.unref(a)("form.fields.name.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!s.hideServiceField&&!s.serviceId?(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(C,{modelValue:t.fields.service_id,"onUpdate:modelValue":r[1]||(r[1]=d=>t.fields.service_id=d),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:Mt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref($t),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(Dt)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",mt,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString($(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",ut,[e.createElementVNode("span",ht,e.toDisplayString(d.name),1),e.createElementVNode("span",gt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),s.showTagsFiledUnderAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:2,modelValue:t.fields.tags,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"]))]),_:1},8,["description","hide-info-header","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:he,label:e.unref(a)("form.fields.protocols.label"),"label-attributes":{info:e.unref(a)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(dt,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":s.routeFlavors,tooltips:s.configTabTooltips},e.createSlots({_:2},[s.routeFlavors.traditional&&s.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(P,{appearance:u.value?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[u.value?u.value!==p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.edit",{format:e.unref(a)(`form.flavors.${u.value}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])]),key:"0"}:void 0,e.unref(j)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(N).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",St,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[Ve.value?(e.openBlock(),e.createBlock(P,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(D)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:Ce.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(Ce.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(Ce.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[t.fields.paths?(e.openBlock(),e.createBlock(lt,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>T(e.unref(l).PATHS)),onRemove:r[6]||(r[6]=d=>O(e.unref(l).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(nt,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>T(e.unref(l).SNIS)),onRemove:r[9]||(r[9]=d=>O(e.unref(l).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(Ye,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>T(e.unref(l).HOSTS)),onRemove:r[12]||(r[12]=d=>O(e.unref(l).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(ot,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":z.value,onRemove:r[14]||(r[14]=d=>O(e.unref(l).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>z.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(Je,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>T(e.unref(l).HEADERS)),onRemove:r[18]||(r[18]=d=>O(e.unref(l).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(at,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>T(e.unref(l).SOURCES)),onRemove:r[21]||(r[21]=d=>O(e.unref(l).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(Xe,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>T(e.unref(l).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>O(e.unref(l).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),A.value?(e.openBlock(),e.createElementBlock("div",bt,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Vt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q[t.fields.protocols],d=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createElementVNode("label",{"aria-disabled":!!t.fields[d],class:e.normalizeClass(["option",{"is-selected":t.fields[d]}]),"data-testid":`routing-rule-${d}`,role:"button",onClick:v=>T(d)},e.toDisplayString(W(d)),11,Ct)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(Ne,{modelValue:S.value,"onUpdate:modelValue":r[33]||(r[33]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[t.fields.paths?(e.openBlock(),e.createBlock(C,{key:0,modelValue:t.fields.path_handling,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.path_handling=d),"data-testid":"route-form-path-handling",items:ge,label:e.unref(a)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(a)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(C,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[26]||(r[26]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:J,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.regex_priority,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.regex_priority=d),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(a)("form.fields.regex_priority.label"),readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:1,modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),F(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:2,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[29]||(r[29]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[30]||(r[30]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[31]||(r[31]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[32]||(r[32]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,e.unref(ne)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(N).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",Nt,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(ct,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:q.value,"show-expressions-modal-entry":s.showExpressionsModalEntry,onNotify:r[35]||(r[35]=d=>c("notify",d))},{"after-editor":e.withCtx(d=>[e.renderSlot(o.$slots,"after-expressions-editor",{expression:d.expression,state:d.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3})):e.createCommentVNode("",!0),e.createVNode(Ne,{modelValue:S.value,"onUpdate:modelValue":r[43]||(r[43]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(C,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[36]||(r[36]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:J,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.priority,"onUpdate:modelValue":r[37]||(r[37]=d=>t.fields.priority=d),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(a)("form.fields.priority.label"),"label-attributes":{info:e.unref(a)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.tags,"onUpdate:modelValue":r[38]||(r[38]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),F(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:1,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[39]||(r[39]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[40]||(r[40]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[41]||(r[41]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[42]||(r[42]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"2"}:void 0]),1032,["modelValue","route-flavors","tooltips"])]),_:3},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-6c1044e5"]]),wt={class:"kong-ui-entities-route-entity-config-card"},It={key:2},Rt=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},serviceId:{type:String,required:!1,default:""}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(s,{emit:k}){var H;const h=k,i=s,{axiosInstance:c}=b.useAxios((H=i.config)==null?void 0:H.axiosRequestConfig),{i18n:{t:n},i18nT:p}=K.useI18n(),u=e.ref(""),S=e.ref(""),V=e.ref(!1),B=e.computed(()=>{var E,w;return(w=re.item[(E=i.config)==null?void 0:E.app])==null?void 0:w[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var E;return(E=re.item[i.config.app])==null?void 0:E.getService}),a=async E=>{var L,$,t;if(u.value=i.serviceId||((L=E==null?void 0:E.service)==null?void 0:L.id),h("fetch:success",E),!u.value)return;let w=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,(($=i.config)==null?void 0:$.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{V.value=!0;const{data:q}=await c.get(w);S.value=(q==null?void 0:q.name)||(q==null?void 0:q.id)}catch(q){h("fetch:error",q)}finally{V.value=!1}},D=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:b.ConfigurationSchemaSection.Basic,type:b.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:b.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:b.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:b.ConfigurationSchemaSection.Basic,order:11},methods:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:b.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:n("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:n("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:n("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:n("form.fields.path_handling.tooltipConfig"),order:7}});return(E,w)=>{const L=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",wt,[e.createVNode(e.unref(b.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":D.value,"entity-type":e.unref(b.SupportedEntityType).Route,"fetch-url":B.value,"hide-title":s.hideTitle,"onFetch:error":w[0]||(w[0]=$=>E.$emit("fetch:error",$)),"onFetch:success":a,onLoading:w[1]||(w[1]=$=>E.$emit("loading",$))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:$})=>[V.value?(e.openBlock(),e.createBlock(L,{key:0,"data-testid":"service-name-loader",type:"spinner"})):$.value&&$.value.id===u.value&&S.value?(e.openBlock(),e.createBlock(e.unref(b.InternalLinkItem),{key:1,item:{key:$.value.id,value:S.value,type:e.unref(b.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>E.$emit("navigation-click",$.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean},hintText:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:k}){const h=s,i=e.useModel(s,"modelValue"),c=k,n=e.ref(!1),p=e.computed(()=>se.PROTOCOL_TO_SCHEMA[h.protocol]),u=e.computed(()=>se.HTTP_BASED_PROTOCOLS.includes(h.protocol??"")),S=e.computed(()=>u.value?void 0:`${h.hintText}${se.HTTP_BASED_PROTOCOLS}`),V=a=>{i.value=a,n.value=!1},B=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,D)=>{const H=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(se.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":D[0]||(D[0]=E=>i.value=E),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(H,{placement:"bottom-start",text:S.value},{default:e.withCtx(()=>[a.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:f},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),a.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(se.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:D[1]||(D[1]=E=>n.value=!1),onCommit:V,onNotify:B},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=te,R.Methods=Re,R.RouteConfigCard=Rt,R.RouteFlavor=N,R.RouteForm=Tt,R.RouteList=Ge,R.RoutingRulesEntities=l,R.stateHasExpressionsFlavor=ne,R.stateHasTraditionalFlavor=j,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
1
+ (function(R,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/kongponents"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n"),require("lodash.isequal"),require("@kong-ui-public/expressions")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/kongponents","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n","lodash.isequal","@kong-ui-public/expressions"],e):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-routes"]={},R.Vue,R.VueRouter,R.Kongponents,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"],R.isEqual,R["kong-ui-public-expressions"]))})(this,function(R,e,_e,Te,ee,b,we,Fe,se){"use strict";const Pe={actions:{create:"New Route",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",clear:"Clear",view:"View Details",loading:"Loading..."},search:{placeholder:{konnect:"Filter by name",exact:"Filter by exact name or ID",kongManager:"Filter by exact name or ID"},no_results:"No results found"},routes:{title:"Routes",list:{toolbar_actions:{new_route:"New Route"},table_headers:{name:"Name",protocols:"Protocols",hosts:"Hosts",methods:"Methods",paths:"Paths",expression:"Expression",id:"ID",tags:"Tags",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Route",description:"Routes proxy requests to an associated Service."}}},delete:{title:"Delete a Route",description:"Deleting this route will also remove any associated plugins. This action cannot be reversed."},errors:{general:"Routes could not be retrieved",delete:"The route could not be deleted at this time.",copy:"Failed to copy to clipboard",services:{fetch:"Could not fetch available services"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},form:{protocols:{grpc:"GRPC",grpcs:"GRPCS","grpc,grpcs":"GRPC, GRPCS",http:"HTTP",https:"HTTPS","http,https":"HTTP, HTTPS",tls:"TLS",tcp:"TCP",udp:"UDP","tls,udp":"TLS, UDP","tcp,udp":"TCP, UDP","tcp,tls":"TCP, TLS","tcp,tls,udp":"TCP, TLS, UDP",ws:"WS",wss:"WSS","ws,wss":"WS, WSS",tls_passthrough:"TLS_PASSTHROUGH"},sections:{general:{title:"General Information",description:"General information will help you identify and manage this route"},config:{title:"Route Configuration",description:"Route configuration determines how this route will handle incoming requests"},routingRules:{title:"Routing Rules"},routingExpression:{title:"Routing Expression"}},fields:{service_id:{label:"Service",placeholder:"Select a service"},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The name of the Route. Route names must be unique, and they are case sensitive. For example, there can be two different Routes named 'test' and 'Test'."},service:{label:"Gateway Service",tooltip:"The Service this Route is associated to. This is where the Route proxies traffic to."},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Route for grouping and filtering.",placeholder:"Enter a list of tags separated by commas",help:"e.g. tag1, tag2, tag3"},protocols:{label:"Protocols",tooltip:"Routes have a protocols property to restrict the client protocol they should listen for.",tooltipConfig:"An array of the protocols this Route should allow. See the {code1} section for a list of accepted protocols. When set to only {code2}, HTTP requests are answered with an upgrade error. When it is set to only {code3}, this is essentially the same as {code4} in that both HTTP and HTTPS requests are allowed. Default: {code5}.",code1:"Route Object",code2:"https",code3:"http",code4:"['http', 'https']",code5:"['http', 'https']"},path_handling:{label:"Path Handling",tooltip:"This treats service.path, route.path and request path as segments of a URL.",tooltipConfig:"Controls how the Service path, Route path and requested path are combined when sending a request to the upstream. See above for a detailed description of each behavior."},https_redirect_status_code:{label:"HTTPS Redirect Status Code",tooltip:"The status code Kong responds with when all properties of a Route match except the protocol i.e. if the protocol of the request is {code1} instead of {code2}. {code3} header is injected by Kong if the field is set to 301, 302, 307 or 308. Note: This config applies only if the Route is configured to only accept the {code4} protocol.",code1:"HTTP",code2:"HTTPS",code3:"Location",code4:"https"},regex_priority:{label:"Regex Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using regexes simultaneously. When two routes match the path and have the same {code1}, the older one (lowest {code2}) is used. Note that the priority for non-regex routes is different (longer non-regex routes are matched before shorter ones).",code1:"regex_priority",code2:"created_at"},strip_path:{label:"Strip Path",tooltip:"When matching a Route via one of the {code1}, strip the matching prefix from the upstream request URL.",code1:"paths"},preserve_host:{label:"Preserve Host",tooltip:"When matching a Route via one of the {code1} domain names, use the request {code2} header in the upstream request headers. If set to {code3}, the upstream {code4} header will be that of the Service's {code5}.",code1:"hosts",code2:"Host",code3:"false",code4:"Host",code5:"host"},paths:{label:"Paths",placeholder:"Enter a path",tooltip:"A list of paths that match this Route."},snis:{label:"SNIs",placeholder:"Enter a SNI",tooltip:"A list of SNIs (Server Name Indications from a TLS ClientHello) that match this Route."},hosts:{label:"Hosts",placeholder:"Enter a host",tooltip:"A list of domain names that match this Route.",tooltipConfig:"A list of domain names that match this Route. Note that the hosts value is case sensitive."},methods:{label:"Methods",tooltip:"A list of HTTP methods that match this Route.",custom:{label:"Custom",placeholder:"Enter a custom method",tooltip:"Custom methods can be used with default selections. Uppercase characters are required."}},headers:{label:"Headers",tooltip:"Header values can be separated by commas (value1, value2, value3).",name:{placeholder:"Enter a header name"},values:{placeholder:"Enter a header value"},tooltipConfig:"One or more lists of values indexed by header name that will cause this Route to match if present in the request. The {code1} header cannot be used with this attribute: hosts should be specified using the {code2} attribute. When {code3} contains only one value and that value starts with the special prefix {code4], the value is interpreted as a regular expression.",code1:"Host",code2:"hosts",code3:"headers",code4:"*"},sources:{label:"Sources",tooltip:"A list of IP sources of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a source IP"},port:{placeholder:"Enter a source port"}},destinations:{label:"Destinations",tooltip:"A list of IP destinations of incoming connections that match this Route when using stream routing.",ip:{placeholder:"Enter a destination IP"},port:{placeholder:"Enter a destination port"}},response_buffering:{label:"Response buffering",tooltip:"Whether to enable response body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that send data with chunked transfer encoding."},request_buffering:{label:"Request buffering",tooltip:"Whether to enable request body buffering or not. With HTTP 1.1, it may make sense to turn this off on services that receive data with chunked transfer encoding."},expression:{label:"Expression",tooltip:"The route expression."},priority:{label:"Priority",tooltip:"A number used to choose which route resolves a given request when several routes match it using expression simultaneously."}},flavors:{traditional:"Traditional",expressions:"Expressions"},viewAdvancedFields:"View Advanced Fields",addNewRule:"Add New Rule",warning:{rulesMessage:"For {protocol}, at least one of {routingRules} must be set.",singleRule:"{routingRules}",multipleRules:"{routingRules} or {lastRoutingRule}",cannotChangeFlavor:{create:"The format of the route cannot be changed once created.",edit:"This route was configured in the {format} format, and cannot be changed after creation. You can switch to the {format} tab to edit, or create a new route in a different format instead."}},expressions_editor:{loading:"Loading the Expressions editor…",error:"Error occurred while loading the Expressions editor. Please view the console for more details."},expression_playground:{test_link:"Test with Router Playground",supported_protocols_hint:"Currently only supports the following protocols: {protocols}"}}};function Ie(){const s=we.createI18n("en-us",Pe);return{i18n:s,i18nT:we.i18nTComponent(s)}}const K={useI18n:Ie},U="/v2/control-planes/{controlPlaneId}/core-entities",M="/{workspace}",re={list:{konnect:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},kongManager:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`}},form:{konnect:{services:`${U}/services`,create:{all:`${U}/routes`,forGatewayService:`${U}/services/{serviceId}/routes`},fetch:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},edit:{all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`}},kongManager:{services:`${M}/services`,create:{all:`${M}/routes`,forGatewayService:`${M}/services/{serviceId}/routes`},fetch:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`},edit:{all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},item:{konnect:{getService:`${U}/services/{serviceId}`,all:`${U}/routes/{id}`,forGatewayService:`${U}/services/{serviceId}/routes/{id}`},kongManager:{getService:`${M}/services/{serviceId}`,all:`${M}/routes/{id}`,forGatewayService:`${M}/services/{serviceId}/routes/{id}`}}},He={class:"kong-ui-entities-routes-list"},Ue={key:1},Me={key:1},Le={key:1},qe={class:"route-list-cell-expression"},Ke=e.defineComponent({__name:"RouteList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},title:{type:String,default:""},titleTag:{type:String,default:"h2"},useActionOutside:{type:Boolean,default:!1},hideTraditionalColumns:{type:Boolean,default:!1},hasExpressionColumn:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(s,{emit:k}){var F;const h=k,i=s,{i18n:{t:c,formatUnixTimeStamp:n}}=K.useI18n(),p=_e.useRouter(),{axiosInstance:u}=b.useAxios((F=i.config)==null?void 0:F.axiosRequestConfig),S=e.ref(1),V=e.computed(()=>i.config.app!=="kongManager"||!!i.config.disableSorting),B={name:{label:c("routes.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},protocols:{label:c("routes.list.table_headers.protocols"),searchable:!0},...!i.hideTraditionalColumns&&{hosts:{label:c("routes.list.table_headers.hosts"),searchable:!0},methods:{label:c("routes.list.table_headers.methods"),searchable:!0},paths:{label:c("routes.list.table_headers.paths"),searchable:!0}},...i.hasExpressionColumn&&{expression:{label:c("routes.list.table_headers.expression"),tooltip:!0}},tags:{label:c("routes.list.table_headers.tags"),sortable:!1},updated_at:{label:c("routes.list.table_headers.updated_at"),sortable:!0},created_at:{label:c("routes.list.table_headers.created_at"),sortable:!0}},f={columnVisibility:{created_at:!1}},a=B,D=e.computed(()=>{var _,T,A,O;let g=`${i.config.apiBaseUrl}${re.list[i.config.app][i.config.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?g=g.replace(/{controlPlaneId}/gi,((_=i.config)==null?void 0:_.controlPlaneId)||"").replace(/{serviceId}/gi,((T=i.config)==null?void 0:T.serviceId)||""):i.config.app==="kongManager"&&(g=g.replace(/\/{workspace}/gi,(A=i.config)!=null&&A.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,((O=i.config)==null?void 0:O.serviceId)||"")),g}),H=e.ref(""),E=e.computed(()=>{const g=i.config.app==="konnect"||i.config.isExactMatch;if(g)return{isExactMatch:g,placeholder:c(`search.placeholder.${i.config.isExactMatch?"exact":i.config.app}`)};const{name:_,protocols:T,hosts:A,methods:O,paths:W,expression:le}=B,y={name:_,protocols:T,hosts:A,methods:O,paths:W,...i.hasExpressionColumn&&{expression:le}};return{isExactMatch:g,fields:y,schema:i.config.filterSchema}}),{fetcher:w,fetcherState:L}=b.useFetcher(i.config,D.value),$=g=>g.headerKey==="expression"?{style:{maxWidth:"250px",overflowX:"hidden",textOverflow:"ellipsis"}}:{},t=()=>{H.value=""},q=()=>{S.value++},z=e.ref(null),ce=(g,_)=>{const T=g.id;if(!_(T)){h("copy:error",{entity:g,field:"id",message:c("errors.copy")});return}h("copy:success",{entity:g,field:"id",message:c("copy.success",{val:T})})},x=(g,_)=>{const T=JSON.stringify(g);if(!_(T)){h("copy:error",{entity:g,message:c("errors.copy")});return}h("copy:success",{entity:g,message:c("copy.success_brief")})},ue=async g=>{var T;await((T=i.canRetrieve)==null?void 0:T.call(i,g))&&p.push(i.config.getViewRoute(g.id))},he=g=>({label:c("actions.view"),to:i.config.getViewRoute(g)}),ge=g=>({label:c("actions.edit"),to:i.config.getEditRoute(g)}),J=e.ref(void 0),Q=e.ref(!1),Y=e.ref(!1),pe=e.ref(""),fe=b.useDeleteUrlBuilder(i.config,D.value),ye=g=>{J.value=g,Q.value=!0},Se=()=>{Q.value=!1},be=async()=>{var g,_,T;if((g=J.value)!=null&&g.id){Y.value=!0;try{await u.delete(fe(J.value.id)),Y.value=!1,Q.value=!1,S.value++,h("delete:success",J.value)}catch(A){pe.value=((T=(_=A.response)==null?void 0:_.data)==null?void 0:T.message)||A.message||c("errors.delete"),h("error",A)}finally{Y.value=!1}}};e.watch(L,g=>{var _,T,A;if(g.status===b.FetcherStatus.Error){z.value={title:c("errors.general")},(A=(T=(_=g.error)==null?void 0:_.response)==null?void 0:T.data)!=null&&A.message&&(z.value.message=g.error.response.data.message),h("error",g.error);return}z.value=null});const ie=e.ref({ctaPath:i.config.createRoute,ctaText:void 0,message:`${c("routes.list.empty_state.description")}${i.config.additionMessageForEmptyState?` ${i.config.additionMessageForEmptyState}`:""}`,title:c("routes.title")});return e.onBeforeMount(async()=>{await i.canCreate()&&(ie.value.title=c("routes.list.empty_state.title"),ie.value.ctaText=c("actions.create"))}),(g,_)=>{const T=e.resolveComponent("KButton"),A=e.resolveComponent("KBadge"),O=e.resolveComponent("KTruncate"),W=e.resolveComponent("KDropdownItem"),le=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",He,[e.createVNode(e.unref(b.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"cell-attributes":$,"default-table-preferences":f,"disable-sorting":V.value,"empty-state-options":ie.value,"enable-entity-actions":"","error-message":z.value,fetcher:e.unref(w),"fetcher-cache-key":S.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-routes-list",query:H.value,"table-headers":e.unref(a),title:s.title,"title-tag":s.titleTag,onClearSearchInput:t,"onClick:row":_[5]||(_[5]=y=>ue(y)),onSort:q},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(b.EntityFilter),{modelValue:H.value,"onUpdate:modelValue":_[0]||(_[0]=y=>H.value=y),config:E.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(T,{appearance:"primary","data-testid":"toolbar-add-route",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(c)("routes.list.toolbar_actions.new_route")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),protocols:e.withCtx(({rowValue:y})=>[e.createVNode(O,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",onClick:_[1]||(_[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1024))),128))]),_:2},1024)]),hosts:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",tooltip:I,"truncation-tooltip":"",onClick:_[2]||(_[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Ue,"-"))]),methods:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:Object.values(e.unref(Te.BadgeMethodAppearances)).includes(I.toLowerCase())?I.toLowerCase():"custom",onClick:_[3]||(_[3]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["appearance"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Me,"-"))]),paths:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(O,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,I=>(e.openBlock(),e.createBlock(A,{key:I,appearance:"neutral",tooltip:I,"truncation-tooltip":"",onClick:_[4]||(_[4]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(I),1)]),_:2},1032,["tooltip"]))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",Le,"-"))]),tags:e.withCtx(({rowValue:y})=>[e.createVNode(e.unref(b.TableTags),{tags:y},null,8,["tags"])]),expression:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",qe,e.toDisplayString(y||"-"),1)]),created_at:e.withCtx(({rowValue:y})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(y)),1)]),updated_at:e.withCtx(({row:y,rowValue:I})=>[e.createTextVNode(e.toDisplayString(e.unref(n)(I??y.created_at)),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:I})=>[e.createVNode(W,{"data-testid":"action-entity-copy-id",onClick:Ve=>ce(y,I)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(le,null,{default:e.withCtx(({copyToClipboard:I})=>[e.createVNode(W,{"data-testid":"action-entity-copy-json",onClick:Ve=>x(y,I)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(W,{"data-testid":"action-entity-view","has-divider":"",item:he(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(W,{"data-testid":"action-entity-edit",item:ge(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(b.PermissionsWrapper),{"auth-function":()=>s.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(W,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:I=>ye(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","title","title-tag"]),e.createVNode(e.unref(b.EntityDeleteModal),{"action-pending":Y.value,description:e.unref(c)("delete.description"),"entity-name":J.value&&(J.value.name||J.value.id),"entity-type":e.unref(b.EntityTypes).Route,error:pe.value,title:e.unref(c)("delete.title"),visible:Q.value,onCancel:Se,onProceed:be},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),G=(s,k)=>{const h=s.__vccOpts||s;for(const[i,c]of k)h[i]=c;return h},Ge=G(Ke,[["__scopeId","data-v-09caa9e4"]]);var Re=(s=>(s.GET="GET",s.PUT="PUT",s.POST="POST",s.PATCH="PATCH",s.DELETE="DELETE",s.OPTIONS="OPTIONS",s.HEAD="HEAD",s.CONNECT="CONNECT",s.TRACE="TRACE",s.CUSTOM="CUSTOM",s))(Re||{}),N=(s=>(s.TRADITIONAL="traditional",s.EXPRESSIONS="expressions",s))(N||{}),l=(s=>(s.PATHS="paths",s.SNIS="snis",s.HOSTS="hosts",s.METHODS="methods",s.HEADERS="headers",s.SOURCES="sources",s.DESTINATIONS="destinations",s.CUSTOM_METHOD="custom-method",s))(l||{}),te=(s=>(s.LOADING="loading",s.ERROR="error",s.READY="ready",s))(te||{});const j=s=>s.routeFlavors.traditional===!0,ne=s=>s.routeFlavors.expressions===!0,Be="#d60027",xe="#6c7489",me="16px",je={class:"routing-rules-entities-controls-container"},oe=G(e.defineComponent({__name:"RoutingRulesEntitiesControls",props:{routingRulesEntity:{type:String,required:!0},isAddDisabled:{type:Boolean,default:!1}},emits:["remove","add"],setup(s){return(k,h)=>{const i=e.resolveComponent("KButton");return e.openBlock(),e.createElementBlock("div",je,[e.createVNode(i,{appearance:"tertiary",class:"remove-button","data-testid":`remove-${s.routingRulesEntity}`,icon:"",onClick:h[0]||(h[0]=c=>k.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(Be)},null,8,["color"])]),_:1},8,["data-testid"]),e.createVNode(i,{appearance:"tertiary","data-testid":`add-${s.routingRulesEntity}`,disabled:s.isAddDisabled,icon:"",onClick:h[1]||(h[1]=c=>k.$emit("add"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.AddIcon))]),_:1},8,["data-testid","disabled"])])}}}),[["__scopeId","data-v-e024298d"]]),We={class:"routing-rule-container"},Xe=G(e.defineComponent({__name:"RouteFormDestinationsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",We,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.destinations.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.destinations.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-destinations-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.destinations.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-destinations-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.destinations.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).DESTINATIONS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-d41b39fd"]]),ze={class:"routing-rule-container"},Je=G(e.defineComponent({__name:"RouteFormHeadersFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",ze,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.headers.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.headers.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].header,"onUpdate:modelValue":a=>n.value[f].header=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-name-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.name.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].values,"onUpdate:modelValue":a=>n.value[f].values=a,modelModifiers:{trim:!0},"data-testid":`route-form-headers-values-input-${f+1}`,placeholder:e.unref(c)("form.fields.headers.values.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HEADERS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-ca0bb10b"]]),Qe={class:"routing-rule-container"},Ye=G(e.defineComponent({__name:"RouteFormHostsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Qe,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.hosts.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.hosts.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-hosts-input-${f+1}`,placeholder:e.unref(c)("form.fields.hosts.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).HOSTS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-88d16377"]]),Ze={class:"routing-rule-container"},ve={class:"routing-rule-input"},et={class:"methods-input-container"},tt={key:0,class:"routing-rule-container"},ot=G(e.defineComponent({__name:"RouteFormMethodsFields",props:{modelValue:{type:Object,required:!0},customMethods:{type:Array,required:!0}},emits:["add","remove","update:modelValue","update-custom-methods"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref({}),p=e.ref([...h.customMethods]),u=S=>{p.value.length===1?p.value[0]="":p.value.splice(S,1)};return e.watch(h.modelValue,S=>{n.value={...S}},{immediate:!0,deep:!0}),e.watch(n,S=>{i("update:modelValue",S)},{deep:!0}),e.watch(p,S=>{i("update-custom-methods",S)},{deep:!0}),(S,V)=>{const B=e.resolveComponent("KLabel"),f=e.resolveComponent("KInputSwitch"),a=e.resolveComponent("KBadge"),D=e.resolveComponent("KButton"),H=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",Ze,[V[2]||(V[2]=e.createElementVNode("hr",null,null,-1)),e.createVNode(B,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.label")),1)]),_:1}),e.createElementVNode("div",ve,[e.createElementVNode("div",et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(n.value),E=>(e.openBlock(),e.createElementBlock("div",{key:E,class:"methods-input"},[e.createVNode(f,{modelValue:n.value[E],"onUpdate:modelValue":w=>n.value[E]=w,"data-testid":`${E.toLowerCase()}-method-toggle`},null,8,["modelValue","onUpdate:modelValue","data-testid"]),e.createVNode(a,{appearance:Object.values(e.unref(Te.BadgeMethodAppearances)).includes(E.toLowerCase())?E.toLowerCase():"custom"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(E.toLowerCase()),1)]),_:2},1032,["appearance"])]))),128))]),e.createVNode(D,{appearance:"tertiary",class:"remove-button","data-testid":"remove-methods",icon:"",onClick:V[0]||(V[0]=E=>S.$emit("remove"))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.TrashIcon),{color:e.unref(Be)},null,8,["color"])]),_:1})]),n.value.CUSTOM?(e.openBlock(),e.createElementBlock("div",tt,[e.createVNode(B,{info:e.unref(c)("form.fields.methods.custom.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.methods.custom.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p.value,(E,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,class:"routing-rule-input"},[e.createVNode(H,{modelValue:p.value[w],"onUpdate:modelValue":L=>p.value[w]=L,modelModifiers:{trim:!0},"data-testid":`route-form-custom-method-input-${w+1}`,placeholder:e.unref(c)("form.fields.methods.custom.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":w!==p.value.length-1,"routing-rules-entity":e.unref(l).CUSTOM_METHOD,onAdd:V[1]||(V[1]=L=>p.value.push("")),onRemove:L=>u(w)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])):e.createCommentVNode("",!0)])}}}),[["__scopeId","data-v-c8ae1bc5"]]),rt={class:"routing-rule-container"},lt=G(e.defineComponent({__name:"RouteFormPathsFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",rt,[e.createVNode(S,null,{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.paths.label")),1)]),_:1}),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-paths-input-${f+1}`,placeholder:e.unref(c)("form.fields.paths.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).PATHS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-bc31ca96"]]),st={class:"routing-rule-container"},nt=G(e.defineComponent({__name:"RouteFormSnisFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",st,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.snis.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.snis.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f],"onUpdate:modelValue":a=>n.value[f]=a,modelModifiers:{trim:!0},"data-testid":`route-form-snis-input-${f+1}`,placeholder:e.unref(c)("form.fields.snis.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SNIS,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-c3679dd9"]]),it={class:"routing-rule-container"},at=G(e.defineComponent({__name:"RouteFormSourcesFields",props:{modelValue:{type:Array,required:!0}},emits:["add","remove","update:modelValue"],setup(s,{emit:k}){const h=s,i=k,{i18n:{t:c}}=K.useI18n(),n=e.ref([]);return e.watch(h.modelValue,p=>{n.value=[...p]},{immediate:!0,deep:!0}),e.watch(n,p=>{i("update:modelValue",p)},{deep:!0}),(p,u)=>{const S=e.resolveComponent("KLabel"),V=e.resolveComponent("KInput");return e.openBlock(),e.createElementBlock("div",it,[u[1]||(u[1]=e.createElementVNode("hr",null,null,-1)),e.createVNode(S,{info:e.unref(c)("form.fields.sources.tooltip")},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(c)("form.fields.sources.label")),1)]),_:1},8,["info"]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,(B,f)=>(e.openBlock(),e.createElementBlock("div",{key:f,class:"routing-rule-input"},[e.createVNode(V,{modelValue:n.value[f].ip,"onUpdate:modelValue":a=>n.value[f].ip=a,modelModifiers:{trim:!0},"data-testid":`route-form-sources-ip-input-${f+1}`,placeholder:e.unref(c)("form.fields.sources.ip.placeholder")},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(V,{modelValue:n.value[f].port,"onUpdate:modelValue":a=>n.value[f].port=a,modelModifiers:{number:!0},"data-testid":`route-form-sources-port-input-${f+1}`,max:"65535",min:"0",placeholder:e.unref(c)("form.fields.sources.port.placeholder"),type:"number"},null,8,["modelValue","onUpdate:modelValue","data-testid","placeholder"]),e.createVNode(oe,{"is-add-disabled":f!==n.value.length-1,"routing-rules-entity":e.unref(l).SOURCES,onAdd:u[0]||(u[0]=a=>p.$emit("add")),onRemove:a=>p.$emit("remove",f)},null,8,["is-add-disabled","routing-rules-entity","onRemove"])]))),128))]),_:1})])}}}),[["__scopeId","data-v-50c52494"]]),dt=G(e.defineComponent({__name:"RouteFormConfigTabs",props:e.mergeModels({routeFlavors:{},tooltips:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(s){const k=e.useModel(s,"modelValue"),h=s,{i18n:{t:i}}=Ie(),c=e.computed(()=>[...h.routeFlavors.traditional?[{hash:`#${N.TRADITIONAL}`,title:i("form.flavors.traditional")}]:[],...h.routeFlavors.expressions?[{hash:`#${N.EXPRESSIONS}`,title:i("form.flavors.expressions")}]:[]]);return(n,p)=>{const u=e.resolveComponent("KTooltip"),S=e.resolveComponent("KTabs");return c.value.length>1?(e.openBlock(),e.createBlock(S,{key:0,modelValue:k.value,"onUpdate:modelValue":p[0]||(p[0]=V=>k.value=V),"data-testid":"route-form-config-tabs",tabs:c.value},e.createSlots({_:2},[n.routeFlavors.traditional?{name:`${e.unref(N).TRADITIONAL}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.traditional"))+" ",1),n.tooltips&&n.tooltips[e.unref(N).TRADITIONAL]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(N).TRADITIONAL],"tooltip-id":"route-form-config-tabs-tooltip-traditional"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(xe),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"0"}:void 0,n.routeFlavors.traditional?{name:e.unref(N).TRADITIONAL,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(N).TRADITIONAL,{},void 0,!0)]),key:"1"}:void 0,n.routeFlavors.expressions?{name:`${e.unref(N).EXPRESSIONS}-anchor`,fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("form.flavors.expressions"))+" ",1),n.tooltips&&n.tooltips[e.unref(N).EXPRESSIONS]?(e.openBlock(),e.createBlock(u,{key:0,class:"route-form-config-tabs-tooltip",text:n.tooltips[e.unref(N).EXPRESSIONS],"tooltip-id":"route-form-config-tabs-tooltip-expressions"},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.InfoIcon),{color:e.unref(xe),size:e.unref(me),tabindex:"0"},null,8,["color","size"])]),_:1},8,["text"])):e.createCommentVNode("",!0)]),key:"2"}:void 0,n.routeFlavors.expressions?{name:e.unref(N).EXPRESSIONS,fn:e.withCtx(()=>[e.renderSlot(n.$slots,"before-content",{},void 0,!0),e.renderSlot(n.$slots,e.unref(N).EXPRESSIONS,{},void 0,!0)]),key:"3"}:void 0]),1032,["modelValue","tabs"])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.renderSlot(n.$slots,"before-content",{},void 0,!0),n.routeFlavors.traditional?e.renderSlot(n.$slots,e.unref(N).TRADITIONAL,{key:0},void 0,!0):n.routeFlavors.expressions?e.renderSlot(n.$slots,e.unref(N).EXPRESSIONS,{key:1},void 0,!0):e.createCommentVNode("",!0)],64))}}}),[["__scopeId","data-v-f1c7a92f"]]),ct=e.defineComponent({__name:"RouteFormExpressionsEditorLoader",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:k}){const{i18n:{t:h}}=K.useI18n(),i={render:()=>e.h("div",h("form.expressions_editor.loading"))},c={render:()=>e.h("div",h("form.expressions_editor.error"))},n=e.defineAsyncComponent({loader:async()=>Promise.resolve().then(()=>Bt),loadingComponent:i,errorComponent:c}),p=s,u=k,S=e.ref(te.LOADING),V=e.useModel(s,"modelValue"),B=f=>{V.value=f};return e.onMounted(async()=>{try{await(await import("@kong-ui-public/expressions")).asyncInit,S.value=te.READY}catch(f){S.value=te.ERROR,console.error(f)}}),(f,a)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[S.value===e.unref(te).ERROR?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(c),{key:0,"data-testid":"route-form-expressions-editor-loader-error"})):S.value===e.unref(te).LOADING?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(i),{key:1,"data-testid":"route-form-expressions-editor-loader-loading"})):(e.openBlock(),e.createBlock(e.unref(n),{key:2,modelValue:V.value,"onUpdate:modelValue":a[0]||(a[0]=D=>V.value=D),"hint-text":e.unref(h)("form.expression_playground.supported_protocols_hint"),protocol:p.protocol,"show-expressions-modal-entry":f.showExpressionsModalEntry,onNotify:a[1]||(a[1]=D=>u("notify",D))},{default:e.withCtx(()=>[e.createVNode(e.unref(ee.RocketIcon),{size:e.unref(me)},null,8,["size"]),e.createElementVNode("span",null,e.toDisplayString(e.unref(h)("form.expression_playground.test_link")),1)]),_:1},8,["modelValue","hint-text","protocol","show-expressions-modal-entry"])),e.renderSlot(f.$slots,"after-editor",{expression:{value:V.value,update:B},state:S.value})],64))}}),pt={class:"kong-ui-entities-route-form"},ft={key:1},mt={"data-testid":"no-search-results"},ut={class:"route-form-service-dropdown-item"},ht={class:"select-item-label"},gt={class:"select-item-description"},yt={class:"route-form-routing-rules-title-container"},St={class:"routing-rules-title"},bt={key:1,class:"route-form-routing-rules-selector-container"},Vt={class:"route-form-routing-rules-selector-options"},Ct=["aria-disabled","data-testid","onClick"],Et={class:"route-form-fields-container route-form-advanced-fields-container"},kt={class:"route-form-routing-rules-title-container"},Nt={class:"routing-rules-title"},_t={class:"route-form-fields-container route-form-advanced-fields-container"},Tt=G(e.defineComponent({__name:"RouteForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||(s==null?void 0:s.app)==="konnect"&&!(s!=null&&s.controlPlaneId)||(s==null?void 0:s.app)==="kongManager"&&typeof(s==null?void 0:s.workspace)!="string"||!(s!=null&&s.cancelRoute))},routeId:{type:String,required:!1,default:""},serviceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideNameField:{type:Boolean,required:!1,default:!1},hideServiceField:{type:Boolean,required:!1,default:!1},showTagsFiledUnderAdvanced:{type:Boolean,required:!1,default:!1},routeFlavors:{type:Object,required:!1,default:()=>({traditional:!0})},configTabTooltips:{type:Object,required:!1,default:()=>{}},showExpressionsModalEntry:{type:Boolean,required:!1,default:!1}},emits:["update","error","loading","model-updated","notify"],setup(s,{expose:k,emit:h}){var $e;const i=s,c=h,n=e.ref(i.routeFlavors.traditional?`#${N.TRADITIONAL}`:i.routeFlavors.expressions?`#${N.EXPRESSIONS}`:""),p=e.computed(()=>{if(n.value)return n.value.substring(1)}),u=e.ref(void 0),S=e.ref(!0),V=e.computed(()=>{if(u.value)return u.value;if(p.value)return p.value;if(i.routeFlavors.traditional)return N.TRADITIONAL;if(i.routeFlavors.expressions)return N.EXPRESSIONS}),{i18nT:B,i18n:f,i18n:{t:a}}=K.useI18n(),D=f.source.form.protocols,H=_e.useRouter(),{axiosInstance:E}=b.useAxios(($e=i.config)==null?void 0:$e.axiosRequestConfig),{getMessageFromError:w}=b.useErrors(),L=e.computed(()=>!(i.hideNameField&&(i.hideServiceField||i.serviceId)&&i.showTagsFiledUnderAdvanced)),$=o=>o.name?`${o.name} - ${o.value}`:o.value,t=e.reactive({routeFlavors:i.routeFlavors,fields:{name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",...!i.routeId&&{paths:[""]},regex_priority:0,path_handling:"v0",expression:"",priority:0},isReadonly:!1,errorMessage:""});e.watch(()=>i.routeFlavors,o=>{t.routeFlavors=o});const q=e.computed(()=>t.fields.protocols.split(",")[0]),z=e.ref([""]),ce=e.reactive({name:"",protocols:"http,https",https_redirect_status_code:426,strip_path:!0,preserve_host:!1,request_buffering:!0,response_buffering:!0,tags:"",service_id:"",path_handling:"v0",regex_priority:0,expression:"",priority:0}),x={[l.PATHS]:[""],[l.SNIS]:[""],[l.HOSTS]:[""],[l.METHODS]:{GET:!1,PUT:!1,POST:!1,PATCH:!1,DELETE:!1,OPTIONS:!1,HEAD:!1,CONNECT:!1,TRACE:!1,CUSTOM:!1},[l.HEADERS]:[{header:"",values:""}],[l.SOURCES]:[{ip:"",port:null}],[l.DESTINATIONS]:[{ip:"",port:null}]},ue=i.config.app==="konnect"||b.useGatewayFeatureSupported({gatewayInfo:i.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),he=[{label:a("form.protocols.grpc"),value:"grpc"},{label:a("form.protocols.grpcs"),value:"grpcs"},{label:a("form.protocols.grpc,grpcs"),value:"grpc,grpcs"},{label:a("form.protocols.http"),value:"http"},{label:a("form.protocols.https"),value:"https"},{label:a("form.protocols.http,https"),value:"http,https"},{label:a("form.protocols.tcp"),value:"tcp"},{label:a("form.protocols.tls"),value:"tls"},{label:a("form.protocols.tls,udp"),value:"tls,udp"},{label:a("form.protocols.tcp,udp"),value:"tcp,udp"},{label:a("form.protocols.tcp,tls"),value:"tcp,tls"},{label:a("form.protocols.tcp,tls,udp"),value:"tcp,tls,udp"},{label:a("form.protocols.tls_passthrough"),value:"tls_passthrough"},{label:a("form.protocols.udp"),value:"udp"},...ue?[{label:a("form.protocols.ws"),value:"ws"},{label:a("form.protocols.wss"),value:"wss"},{label:a("form.protocols.ws,wss"),value:"ws,wss"}]:[]],ge=[{label:"v0",value:"v0"},{label:"v1",value:"v1"}],J=[{label:"426",value:426},{label:"301",value:301},{label:"302",value:302},{label:"307",value:307},{label:"308",value:308}],Q={http:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS],https:[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"http,https":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],"https,http":[l.HOSTS,l.METHODS,l.PATHS,l.HEADERS,l.SNIS],grpc:[l.HOSTS,l.PATHS,l.HEADERS],grpcs:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpc,grpcs":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"grpcs,grpc":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],udp:[l.SOURCES,l.DESTINATIONS],tls:[l.SOURCES,l.DESTINATIONS,l.SNIS],tcp:[l.SOURCES,l.DESTINATIONS],"tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,udp":[l.SOURCES,l.DESTINATIONS],"udp,tcp":[l.SOURCES,l.DESTINATIONS],"tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tcp,tls,udp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"tls,udp,tcp":[l.SOURCES,l.DESTINATIONS,l.SNIS],"udp,tcp,tls":[l.SOURCES,l.DESTINATIONS,l.SNIS],tls_passthrough:[l.SNIS],ws:[l.HOSTS,l.PATHS,l.HEADERS],wss:[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"ws,wss":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS],"wss,ws":[l.HOSTS,l.PATHS,l.HEADERS,l.SNIS]},Y=e.computed(()=>i.routeId?b.EntityBaseFormType.Edit:b.EntityBaseFormType.Create),pe=e.computed(()=>{var o,r,m;return(m=(r=re.form[(o=i.config)==null?void 0:o.app])==null?void 0:r.fetch)==null?void 0:m[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId||"")}),fe=()=>{var o;H.push((o=i.config)==null?void 0:o.cancelRoute)},ye=o=>{c("loading",o)},Se=o=>{c("error",o)},be=o=>{j(t)&&(t.fields.methods=x[l.METHODS],o.forEach(r=>{t.fields.methods&&(t.fields.methods[r]=!0)}))},ie=o=>Object.entries(o).map(r=>{var m;return{header:r[0],values:(m=r[1])==null?void 0:m.join()}}),F=o=>o.some(r=>t.fields.protocols.includes(r)),g=(o,r)=>{if(o===l.PATHS||o===l.HOSTS||o===l.SNIS)return[...r].filter(m=>!!m);if(o===l.SOURCES||o===l.DESTINATIONS)return[...r].filter(m=>!!m.ip).map(m=>({...m,port:!m.port&&m.port!==0?null:m.port}));if(o===l.HEADERS)return[...r].filter(m=>!!m.header)},_=()=>{if(j(t)){const o=g(l.HEADERS,t.fields.headers||[])||x[l.HEADERS];if(o.length===0)return null;const r={};return o.forEach(m=>{r[m.header]=m.values.split(",")}),r}return null},T=o=>{j(t)&&(o&&o===l.PATHS&&(t.fields.paths?t.fields.paths.push([...x[l.PATHS]][0]):t.fields.paths=[...x[l.PATHS]]),o===l.SNIS&&(t.fields.snis?t.fields.snis.push([...x[l.SNIS]][0]):t.fields.snis=[...x[l.SNIS]]),o===l.HOSTS&&(t.fields.hosts?t.fields.hosts.push([...x[l.HOSTS]][0]):t.fields.hosts=[...x[l.HOSTS]]),o===l.METHODS&&(t.fields.methods||(t.fields.methods={...x[l.METHODS]})),o===l.HEADERS&&(t.fields.headers?t.fields.headers.push({...x[l.HEADERS][0]}):t.fields.headers=[{...x[l.HEADERS][0]}]),o===l.SOURCES&&(t.fields.sources?t.fields.sources.push({...x[l.SOURCES][0]}):t.fields.sources=[{...x[l.SOURCES][0]}]),o===l.DESTINATIONS&&(t.fields.destinations?t.fields.destinations.push({...x[l.DESTINATIONS][0]}):t.fields.destinations=[{...x[l.DESTINATIONS][0]}]))},A=e.computed(()=>{var o;return j(t)?(o=Q[t.fields.protocols])==null?void 0:o.filter(r=>!t.fields[r]):!1}),O=async(o,r)=>{if(j(t)){if(typeof r<"u"){let m=[];if(m=t.fields[o],m.splice(r,1),m.length){t.fields[o]=m;return}}await e.nextTick(()=>{delete t.fields[o],o===l.METHODS&&(z.value=[""])})}},W=o=>{var m;return((m=f.source.form.fields[o])==null?void 0:m.label)||""};e.watch(()=>t.fields.protocols,()=>{le()});const le=()=>{const o=Object.keys(x),r=Q[t.fields.protocols];Object.keys(t.fields).filter(C=>o.includes(C)).forEach(C=>{r!=null&&r.includes(C)||O(C)})},y=e.computed(()=>{if(j(t)){const o=[];return t.fields.methods&&Object.entries(t.fields.methods).forEach(([r,m])=>{m&&o.push(r)}),o}return[]}),I=e.computed(()=>{var o;return((o=t.fields.protocols)==null?void 0:o.split(","))||[]}),Ve=e.computed(()=>{const o=Object.keys(x);return!Object.keys(t.fields).filter(m=>o.includes(m)).length}),Ce=e.computed(()=>{if(F(["tls_passthrough"]))return[W(l.SNIS)];const o=Q[t.fields.protocols].map(r=>W(r));return[[...o].splice(0,o.length-1).join(", "),o[o.length-1]]}),Ae=o=>{var m,C;if(i.routeId){const P=typeof o.expression=="string"&&o.expression.length>0?N.EXPRESSIONS:N.TRADITIONAL;u.value=P,n.value=`#${P}`}(m=o==null?void 0:o.service)!=null&&m.id&&(t.fields.service_id=o.service.id),t.fields.name=(o==null?void 0:o.name)||"";const r=(o==null?void 0:o.tags)||[];t.fields.tags=(r==null?void 0:r.join(", "))||"",t.fields.preserve_host=typeof(o==null?void 0:o.preserve_host)>"u"?!1:o==null?void 0:o.preserve_host,t.fields.https_redirect_status_code=(o==null?void 0:o.https_redirect_status_code)||426,(C=o==null?void 0:o.protocols)!=null&&C.length&&(o.protocols.length>1?t.fields.protocols=o.protocols.join():t.fields.protocols=o.protocols[0]),t.fields.request_buffering=typeof(o==null?void 0:o.request_buffering)>"u"?!0:o==null?void 0:o.request_buffering,t.fields.response_buffering=typeof(o==null?void 0:o.response_buffering)>"u"?!0:o==null?void 0:o.response_buffering,t.fields.strip_path=typeof(o==null?void 0:o.strip_path)>"u"?!0:o==null?void 0:o.strip_path,j(t)&&(t.fields.regex_priority=(o==null?void 0:o.regex_priority)||0,t.fields.path_handling=(o==null?void 0:o.path_handling)||"v0",o!=null&&o.paths&&(t.fields.paths=o.paths),o!=null&&o.snis&&(t.fields.snis=o.snis),o!=null&&o.hosts&&(t.fields.hosts=o.hosts),o!=null&&o.methods&&be(o.methods),o!=null&&o.headers&&(t.fields.headers=ie(o.headers)),o!=null&&o.sources&&(t.fields.sources=o.sources),o!=null&&o.destinations&&(t.fields.destinations=o.destinations)),ne(t)&&(t.fields.expression=(o==null?void 0:o.expression)||"",t.fields.priority=(o==null?void 0:o.priority)||0),Object.assign(ce,JSON.parse(JSON.stringify(t.fields)))},Oe=e.computed(()=>{var o;switch(V.value){case N.TRADITIONAL:{if(j(t)){const r=t.fields.hosts?!!t.fields.hosts.filter(Boolean).length:null,m=t.fields.paths?!!t.fields.paths.filter(Boolean).length:null,C=t.fields.headers?t.fields.headers.some(({header:v})=>!!v):null,P=t.fields.snis?!!t.fields.snis.filter(Boolean).length:null,Z=t.fields.destinations?t.fields.destinations.some(({ip:v})=>!!v):null,X=t.fields.sources?t.fields.sources.some(({ip:v})=>!!v):null,d=((o=t.fields.methods)==null?void 0:o.CUSTOM)?z.value.some(v=>!!v):Object.values(t.fields.methods||{}).includes(!0);return!!t.fields.protocols&&(F(["http"])&&!!(r||d||m||C)||F(["https"])&&!!(r||d||m||C||P)||F(["grpc"])&&!!(r||m||C)||F(["grpcs","wss"])&&!!(r||m||C||P)||F(["udp","tls"])&&!!(Z||X||P)||F(["tcp"])&&!!(Z||X)||F(["tls_passthrough"])&&!!P||F(["ws"])&&!!(r||m||C))}break}case N.EXPRESSIONS:{if(ne(t))return t.fields.expression.length>0;break}}return!0}),De=e.computed(()=>!Fe(t.fields,ce)),Ee=e.computed(()=>{var r,m;let o=`${i.config.apiBaseUrl}${re.form[i.config.app][Y.value][i.serviceId?"forGatewayService":"all"]}`;return i.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=i.config)==null?void 0:r.controlPlaneId)||"").replace(/{serviceId}/gi,i.serviceId||""):i.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(m=i.config)!=null&&m.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,i.serviceId||"")),o=o.replace(/{id}/gi,i.routeId),o});e.watch(()=>t.fields,()=>{c("model-updated",de.value)},{deep:!0});const ae=o=>o!=null&&o.length?o:null,xt=()=>{var o,r;if(j(t)){const m={methods:null,hosts:ae(g(l.HOSTS,t.fields.hosts||[])),paths:ae(g(l.PATHS,t.fields.paths||[])),headers:_(),regex_priority:Number(t.fields.regex_priority),path_handling:t.fields.path_handling,sources:ae(g(l.SOURCES,t.fields.sources||[])),destinations:ae(g(l.DESTINATIONS,t.fields.destinations||[])),snis:ae(g(l.SNIS,t.fields.snis||[]))};if((o=y.value)!=null&&o.length&&(m.methods=[...y.value],(r=y.value)!=null&&r.includes("CUSTOM"))){const C=m.methods.indexOf("CUSTOM");C!==-1&&m.methods.splice(C,1),z.value.forEach(P=>{var Z;P&&m.methods&&!((Z=m.methods)!=null&&Z.includes(P))&&m.methods.push(P.toUpperCase())})}return m}},At=()=>{if(ne(t))return{expression:t.fields.expression,priority:Number(t.fields.priority)}},de=e.computed(()=>{var r,m;const o={...!i.hideNameField&&{name:t.fields.name||null},protocols:t.fields.protocols.split(","),https_redirect_status_code:t.fields.https_redirect_status_code,strip_path:F(["grpc","gprcs"])?!1:t.fields.strip_path,preserve_host:t.fields.preserve_host,request_buffering:t.fields.request_buffering,response_buffering:t.fields.response_buffering,tags:(m=(r=t.fields.tags.split(","))==null?void 0:r.map(C=>String(C||"").trim()))==null?void 0:m.filter(C=>C!==""),service:t.fields.service_id?{id:t.fields.service_id}:null};switch(V.value){case N.TRADITIONAL:return{...o,...xt()};case N.EXPRESSIONS:return{...o,...At()};default:return o}}),Ot=o=>{switch(V.value){case N.TRADITIONAL:{if(!("regex_priority"in o&&"path_handling"in o))return!1;break}case N.EXPRESSIONS:{if(!("priority"in o))return!1;break}}return"service"in o&&"tags"in o&&"protocols"in o},ke=async o=>{var m;const r=o&&Ot(o)?o:de.value;try{t.isReadonly=!0;let C;Y.value==="create"?C=await E.post(Ee.value,r):Y.value==="edit"&&(C=((m=i.config)==null?void 0:m.app)==="konnect"?await E.put(Ee.value,r):await E.patch(Ee.value,r)),Ae(C==null?void 0:C.data),c("update",C==null?void 0:C.data)}catch(C){t.errorMessage=w(C),c("error",C)}finally{t.isReadonly=!1}},{debouncedQueryChange:Dt,loading:$t,error:Ft,loadItems:Pt,results:Ht}=b.useDebouncedFilter(i.config,re.form[i.config.app].services,void 0,{fetchedItemsKey:"data",searchKeys:["id","name"]}),Ut=e.computed(()=>Ft.value?a("errors.services.fetch"):""),Mt=e.computed(()=>{var o;return(o=Ht.value)==null?void 0:o.map(r=>({label:r.id,name:r.name,value:r.id}))});return e.onBeforeMount(async()=>{!i.hideServiceField&&!i.serviceId?await Pt():t.fields.service_id=i.serviceId}),e.onMounted(()=>{c("model-updated",de.value)}),k({saveFormData:ke,getPayload:de}),(o,r)=>{const m=e.resolveComponent("KInput"),C=e.resolveComponent("KSelect"),P=e.resolveComponent("KAlert"),Z=e.resolveComponent("KCard"),X=e.resolveComponent("KCheckbox"),Ne=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",pt,[e.createVNode(e.unref(b.EntityBaseForm),{"can-submit":Oe.value&&De.value,config:s.config,"edit-id":s.routeId,"entity-type":e.unref(b.SupportedEntityType).Route,"error-message":t.errorMessage||Ut.value,"fetch-url":pe.value,"form-fields":de.value,"is-readonly":t.isReadonly,onCancel:fe,"onFetch:error":Se,"onFetch:success":Ae,onLoading:ye,onSubmit:ke},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:Oe.value&&De.value,cancel:fe,submit:ke},void 0,!0)]),default:e.withCtx(()=>[L.value?(e.openBlock(),e.createBlock(e.unref(b.EntityFormSection),{key:0,description:e.unref(a)("form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[s.hideNameField?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-name",label:e.unref(a)("form.fields.name.label"),placeholder:e.unref(a)("form.fields.name.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","placeholder","readonly"])),!s.hideServiceField&&!s.serviceId?(e.openBlock(),e.createElementBlock("div",ft,[e.createVNode(C,{modelValue:t.fields.service_id,"onUpdate:modelValue":r[1]||(r[1]=d=>t.fields.service_id=d),clearable:"","data-testid":"route-form-service-id","enable-filtering":"","filter-function":()=>!0,items:Mt.value,label:e.unref(a)("form.fields.service_id.label"),loading:e.unref($t),placeholder:e.unref(a)("form.fields.service_id.placeholder"),readonly:t.isReadonly,"reuse-item-template":"",width:"100%",onQueryChange:e.unref(Dt)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(a)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",mt,e.toDisplayString(e.unref(a)("search.no_results")),1)]),"selected-item-template":e.withCtx(({item:d})=>[e.createTextVNode(e.toDisplayString($(d)),1)]),"item-template":e.withCtx(({item:d})=>[e.createElementVNode("div",ut,[e.createElementVNode("span",ht,e.toDisplayString(d.name),1),e.createElementVNode("span",gt,e.toDisplayString(d.value),1)])]),_:1},8,["modelValue","items","label","loading","placeholder","readonly","onQueryChange"])])):e.createCommentVNode("",!0),s.showTagsFiledUnderAdvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(m,{key:2,modelValue:t.fields.tags,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"]))]),_:1},8,["description","hide-info-header","title"])):e.createCommentVNode("",!0),e.createVNode(e.unref(b.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createVNode(C,{modelValue:t.fields.protocols,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocols=d),"data-testid":"route-form-protocols",items:he,label:e.unref(a)("form.fields.protocols.label"),"label-attributes":{info:e.unref(a)("form.fields.protocols.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(dt,{modelValue:n.value,"onUpdate:modelValue":r[44]||(r[44]=d=>n.value=d),"route-flavors":s.routeFlavors,tooltips:s.configTabTooltips},e.createSlots({_:2},[s.routeFlavors.traditional&&s.routeFlavors.expressions&&(!u.value||u.value!==p.value)?{name:"before-content",fn:e.withCtx(()=>[e.createVNode(P,{appearance:u.value?"warning":"info",class:"route-form-config-type-immutable-alert","data-testid":"route-config-type-immutable-alert"},{default:e.withCtx(()=>[u.value?u.value!==p.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.edit",{format:e.unref(a)(`form.flavors.${u.value}`)})),1)],64)):e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(e.unref(a)("form.warning.cannotChangeFlavor.create")),1)],64))]),_:1},8,["appearance"])]),key:"0"}:void 0,e.unref(j)(t)?{name:"traditional",fn:e.withCtx(()=>[!u.value||u.value===e.unref(N).TRADITIONAL?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",St,e.toDisplayString(e.unref(a)("form.sections.routingRules.title")),1)])]),default:e.withCtx(()=>[Ve.value?(e.openBlock(),e.createBlock(P,{key:0,appearance:"warning","data-testid":"routing-rules-warning"},{default:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"form.warning.rulesMessage"},{protocol:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(e.unref(D)[t.fields.protocols]),1)]),routingRules:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:Ce.value[1]?"form.warning.multipleRules":"form.warning.singleRule"},{routingRules:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(Ce.value[0]),1)]),lastRoutingRule:e.withCtx(()=>[e.createElementVNode("b",null,e.toDisplayString(Ce.value[1]),1)]),_:1},8,["keypath"])]),_:1})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[t.fields.paths?(e.openBlock(),e.createBlock(lt,{key:"paths-container",modelValue:t.fields.paths,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.paths=d),onAdd:r[5]||(r[5]=d=>T(e.unref(l).PATHS)),onRemove:r[6]||(r[6]=d=>O(e.unref(l).PATHS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.snis?(e.openBlock(),e.createBlock(nt,{key:"snis-container",modelValue:t.fields.snis,"onUpdate:modelValue":r[7]||(r[7]=d=>t.fields.snis=d),onAdd:r[8]||(r[8]=d=>T(e.unref(l).SNIS)),onRemove:r[9]||(r[9]=d=>O(e.unref(l).SNIS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.hosts?(e.openBlock(),e.createBlock(Ye,{key:"hosts-container",modelValue:t.fields.hosts,"onUpdate:modelValue":r[10]||(r[10]=d=>t.fields.hosts=d),onAdd:r[11]||(r[11]=d=>T(e.unref(l).HOSTS)),onRemove:r[12]||(r[12]=d=>O(e.unref(l).HOSTS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.methods?(e.openBlock(),e.createBlock(ot,{key:"methods-container",modelValue:t.fields.methods,"onUpdate:modelValue":r[13]||(r[13]=d=>t.fields.methods=d),"custom-methods":z.value,onRemove:r[14]||(r[14]=d=>O(e.unref(l).METHODS)),onUpdateCustomMethods:r[15]||(r[15]=d=>z.value=d)},null,8,["modelValue","custom-methods"])):e.createCommentVNode("",!0),t.fields.headers?(e.openBlock(),e.createBlock(Je,{key:"headers-container",modelValue:t.fields.headers,"onUpdate:modelValue":r[16]||(r[16]=d=>t.fields.headers=d),onAdd:r[17]||(r[17]=d=>T(e.unref(l).HEADERS)),onRemove:r[18]||(r[18]=d=>O(e.unref(l).HEADERS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.sources?(e.openBlock(),e.createBlock(at,{key:"sources-container",modelValue:t.fields.sources,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.sources=d),onAdd:r[20]||(r[20]=d=>T(e.unref(l).SOURCES)),onRemove:r[21]||(r[21]=d=>O(e.unref(l).SOURCES,d))},null,8,["modelValue"])):e.createCommentVNode("",!0),t.fields.destinations?(e.openBlock(),e.createBlock(Xe,{key:"destinations-container",modelValue:t.fields.destinations,"onUpdate:modelValue":r[22]||(r[22]=d=>t.fields.destinations=d),onAdd:r[23]||(r[23]=d=>T(e.unref(l).DESTINATIONS)),onRemove:r[24]||(r[24]=d=>O(e.unref(l).DESTINATIONS,d))},null,8,["modelValue"])):e.createCommentVNode("",!0)]),_:1}),A.value?(e.openBlock(),e.createElementBlock("div",bt,[r[45]||(r[45]=e.createElementVNode("hr",null,null,-1)),e.createElementVNode("div",Vt,[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q[t.fields.protocols],d=>(e.openBlock(),e.createElementBlock("li",{key:d},[e.createElementVNode("label",{"aria-disabled":!!t.fields[d],class:e.normalizeClass(["option",{"is-selected":t.fields[d]}]),"data-testid":`routing-rule-${d}`,role:"button",onClick:v=>T(d)},e.toDisplayString(W(d)),11,Ct)]))),128))])])])):e.createCommentVNode("",!0)]),_:1})):e.createCommentVNode("",!0),e.createVNode(Ne,{modelValue:S.value,"onUpdate:modelValue":r[33]||(r[33]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Et,[t.fields.paths?(e.openBlock(),e.createBlock(C,{key:0,modelValue:t.fields.path_handling,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.path_handling=d),"data-testid":"route-form-path-handling",items:ge,label:e.unref(a)("form.fields.path_handling.label"),"label-attributes":{info:e.unref(a)("form.fields.path_handling.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),e.createVNode(C,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[26]||(r[26]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:J,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.regex_priority,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.regex_priority=d),autocomplete:"off","data-testid":"route-form-regex-priority",label:e.unref(a)("form.fields.regex_priority.label"),readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:1,modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),F(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:2,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[29]||(r[29]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[30]||(r[30]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[31]||(r[31]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[32]||(r[32]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"1"}:void 0,e.unref(ne)(t)?{name:"expressions",fn:e.withCtx(()=>[!u.value||u.value===e.unref(N).EXPRESSIONS?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[t.fields.protocols?(e.openBlock(),e.createBlock(Z,{key:0},{title:e.withCtx(()=>[e.createElementVNode("div",kt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(I.value,d=>(e.openBlock(),e.createElementBlock("span",{key:d,class:"protocol-title"},e.toDisplayString(d.toUpperCase()),1))),128)),e.createElementVNode("span",Nt,e.toDisplayString(e.unref(a)("form.sections.routingExpression.title")),1)])]),default:e.withCtx(()=>[e.createVNode(ct,{modelValue:t.fields.expression,"onUpdate:modelValue":r[34]||(r[34]=d=>t.fields.expression=d),protocol:q.value,"show-expressions-modal-entry":s.showExpressionsModalEntry,onNotify:r[35]||(r[35]=d=>c("notify",d))},{"after-editor":e.withCtx(d=>[e.renderSlot(o.$slots,"after-expressions-editor",{expression:d.expression,state:d.state},void 0,!0)]),_:3},8,["modelValue","protocol","show-expressions-modal-entry"])]),_:3})):e.createCommentVNode("",!0),e.createVNode(Ne,{modelValue:S.value,"onUpdate:modelValue":r[43]||(r[43]=d=>S.value=d),class:"route-form-advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",_t,[e.createVNode(C,{modelValue:t.fields.https_redirect_status_code,"onUpdate:modelValue":r[36]||(r[36]=d=>t.fields.https_redirect_status_code=d),"data-testid":"route-form-http-redirect-status-code",items:J,label:e.unref(a)("form.fields.https_redirect_status_code.label"),readonly:t.isReadonly,width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(m,{modelValue:t.fields.priority,"onUpdate:modelValue":r[37]||(r[37]=d=>t.fields.priority=d),autocomplete:"off","data-testid":"route-form-priority",label:e.unref(a)("form.fields.priority.label"),"label-attributes":{info:e.unref(a)("form.fields.priority.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"]),s.showTagsFiledUnderAdvanced?(e.openBlock(),e.createBlock(m,{key:0,modelValue:t.fields.tags,"onUpdate:modelValue":r[38]||(r[38]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"route-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])):e.createCommentVNode("",!0),F(["http","https","ws","wss","tls","tcp","udp","tls_passthrough"])?(e.openBlock(),e.createBlock(X,{key:1,modelValue:t.fields.strip_path,"onUpdate:modelValue":r[39]||(r[39]=d=>t.fields.strip_path=d),"data-testid":"route-form-strip-path",label:e.unref(a)("form.fields.strip_path.label")},null,8,["modelValue","label"])):e.createCommentVNode("",!0),e.createVNode(X,{modelValue:t.fields.preserve_host,"onUpdate:modelValue":r[40]||(r[40]=d=>t.fields.preserve_host=d),"data-testid":"route-form-preserve-host",label:e.unref(a)("form.fields.preserve_host.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.request_buffering,"onUpdate:modelValue":r[41]||(r[41]=d=>t.fields.request_buffering=d),"data-testid":"route-form-request-buffering",label:e.unref(a)("form.fields.request_buffering.label")},null,8,["modelValue","label"]),e.createVNode(X,{modelValue:t.fields.response_buffering,"onUpdate:modelValue":r[42]||(r[42]=d=>t.fields.response_buffering=d),"data-testid":"route-form-response-buffering",label:e.unref(a)("form.fields.response_buffering.label")},null,8,["modelValue","label"])])]),_:1},8,["modelValue","trigger-label"])],64)):e.createCommentVNode("",!0)]),key:"2"}:void 0]),1032,["modelValue","route-flavors","tooltips"])]),_:3},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-e155aee1"]]),wt={class:"kong-ui-entities-route-entity-config-card"},It={key:2},Rt=e.defineComponent({__name:"RouteConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},serviceId:{type:String,required:!1,default:""}},emits:["loading","fetch:error","fetch:success","navigation-click"],setup(s,{emit:k}){var H;const h=k,i=s,{axiosInstance:c}=b.useAxios((H=i.config)==null?void 0:H.axiosRequestConfig),{i18n:{t:n},i18nT:p}=K.useI18n(),u=e.ref(""),S=e.ref(""),V=e.ref(!1),B=e.computed(()=>{var E,w;return(w=re.item[(E=i.config)==null?void 0:E.app])==null?void 0:w[i.serviceId?"forGatewayService":"all"].replace(/{serviceId}/gi,i.serviceId)}),f=e.computed(()=>{var E;return(E=re.item[i.config.app])==null?void 0:E.getService}),a=async E=>{var L,$,t;if(u.value=i.serviceId||((L=E==null?void 0:E.service)==null?void 0:L.id),h("fetch:success",E),!u.value)return;let w=`${i.config.apiBaseUrl}${f.value}`;i.config.app==="konnect"?w=w.replace(/{controlPlaneId}/gi,(($=i.config)==null?void 0:$.controlPlaneId)||"").replace(/{serviceId}/gi,u.value||""):i.config.app==="kongManager"&&(w=w.replace(/\/{workspace}/gi,(t=i.config)!=null&&t.workspace?`/${i.config.workspace}`:"").replace(/{serviceId}/gi,u.value||""));try{V.value=!0;const{data:q}=await c.get(w);S.value=(q==null?void 0:q.name)||(q==null?void 0:q.id)}catch(q){h("fetch:error",q)}finally{V.value=!1}},D=e.ref({id:{},name:{tooltip:n("form.fields.name.tooltip")},created_at:{},updated_at:{},service:{label:n("form.fields.service.label"),section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.service.tooltip"),order:5},tags:{tooltip:n("form.fields.tags.tooltip"),order:6},protocols:{section:b.ConfigurationSchemaSection.Basic,type:b.ConfigurationSchemaType.BadgeTag,order:7},paths:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.paths.tooltip"),type:b.ConfigurationSchemaType.CopyBadge,order:8},hosts:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.hosts.tooltipConfig"),type:b.ConfigurationSchemaType.CopyBadge,order:9},snis:{label:n("form.fields.snis.label"),tooltip:n("form.fields.snis.tooltip"),order:10},headers:{section:b.ConfigurationSchemaSection.Basic,order:11},methods:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.methods.tooltip"),type:b.ConfigurationSchemaType.BadgeMethod,order:12},sources:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.sources.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:13},destinations:{section:b.ConfigurationSchemaSection.Basic,tooltip:n("form.fields.destinations.tooltip"),type:b.ConfigurationSchemaType.JsonArray,order:14},https_redirect_status_code:{order:1},regex_priority:{tooltip:n("form.fields.regex_priority.tooltip"),order:2},strip_path:{order:3},preserve_host:{order:4},request_buffering:{tooltip:n("form.fields.request_buffering.tooltip"),order:5},response_buffering:{tooltip:n("form.fields.response_buffering.tooltip"),order:6},path_handling:{tooltip:n("form.fields.path_handling.tooltipConfig"),order:7}});return(E,w)=>{const L=e.resolveComponent("KSkeleton");return e.openBlock(),e.createElementBlock("div",wt,[e.createVNode(e.unref(b.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":D.value,"entity-type":e.unref(b.SupportedEntityType).Route,"fetch-url":B.value,"hide-title":s.hideTitle,"onFetch:error":w[0]||(w[0]=$=>E.$emit("fetch:error",$)),"onFetch:success":a,onLoading:w[1]||(w[1]=$=>E.$emit("loading",$))},{"https_redirect_status_code-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.https_redirect_status_code.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.https_redirect_status_code.code4")),1)]),_:1})]),"regex_priority-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.regex_priority.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.regex_priority.code2")),1)]),_:1})]),"protocols-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.protocols.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.protocols.code5")),1)]),_:1})]),"headers-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.headers.tooltipConfig",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code4")),1)]),_:1})]),"strip_path-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.strip_path.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.headers.code1")),1)]),_:1})]),"preserve_host-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.fields.preserve_host.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code2")),1)]),code3:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code3")),1)]),code4:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code4")),1)]),code5:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(n)("form.fields.preserve_host.code5")),1)]),_:1})]),service:e.withCtx(({row:$})=>[V.value?(e.openBlock(),e.createBlock(L,{key:0,"data-testid":"service-name-loader",type:"spinner"})):$.value&&$.value.id===u.value&&S.value?(e.openBlock(),e.createBlock(e.unref(b.InternalLinkItem),{key:1,item:{key:$.value.id,value:S.value,type:e.unref(b.ConfigurationSchemaType).LinkInternal},onNavigationClick:()=>E.$emit("navigation-click",$.value.id,"services")},null,8,["item","onNavigationClick"])):(e.openBlock(),e.createElementBlock("div",It,e.toDisplayString("-")))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])])}}}),Bt=Object.freeze(Object.defineProperty({__proto__:null,default:e.defineComponent({__name:"RouteFormExpressionsEditor",props:e.mergeModels({protocol:{},showExpressionsModalEntry:{type:Boolean},hintText:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:e.mergeModels(["notify"],["update:modelValue"]),setup(s,{emit:k}){const h=s,i=e.useModel(s,"modelValue"),c=k,n=e.ref(!1),p=e.computed(()=>se.PROTOCOL_TO_SCHEMA[h.protocol]),u=e.computed(()=>se.HTTP_BASED_PROTOCOLS.includes(h.protocol??"")),S=e.computed(()=>u.value?void 0:`${h.hintText}${se.HTTP_BASED_PROTOCOLS}`),V=a=>{i.value=a,n.value=!1},B=a=>{c("notify",a)},f=()=>{u.value&&(n.value=!0)};return(a,D)=>{const H=e.resolveComponent("KTooltip");return e.openBlock(),e.createElementBlock(e.Fragment,null,[p.value!==void 0?(e.openBlock(),e.createBlock(e.unref(se.ExpressionsEditor),{key:0,modelValue:i.value,"onUpdate:modelValue":D[0]||(D[0]=E=>i.value=E),schema:p.value},null,8,["modelValue","schema"])):e.createCommentVNode("",!0),e.createVNode(H,{placement:"bottom-start",text:S.value},{default:e.withCtx(()=>[a.showExpressionsModalEntry?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass({disabled:!u.value,"route-form-open-in-playground":!0}),"data-testid":"open-router-playground",onClick:f},[e.renderSlot(a.$slots,"default")],2)):e.createCommentVNode("",!0)]),_:3},8,["text"]),a.showExpressionsModalEntry&&u.value?(e.openBlock(),e.createBlock(e.unref(se.RouterPlaygroundModal),{key:1,"initial-expression":i.value,"is-visible":n.value,onCancel:D[1]||(D[1]=E=>n.value=!1),onCommit:V,onNotify:B},null,8,["initial-expression","is-visible"])):e.createCommentVNode("",!0)],64)}}})},Symbol.toStringTag,{value:"Module"}));R.ExpressionsEditorState=te,R.Methods=Re,R.RouteConfigCard=Rt,R.RouteFlavor=N,R.RouteForm=Tt,R.RouteList=Ge,R.RoutingRulesEntities=l,R.stateHasExpressionsFlavor=ne,R.stateHasTraditionalFlavor=j,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499e74da]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-499e74da]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-routes-list[data-v-09caa9e4]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-09caa9e4]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-09caa9e4]{font-family:JetBrains Mono,Consolas,monospace}.routing-rules-entities-controls-container[data-v-e024298d]{display:flex;gap:4px}.routing-rule-container[data-v-d41b39fd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-d41b39fd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-d41b39fd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-d41b39fd]{width:100%}.routing-rule-input[data-v-d41b39fd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-d41b39fd] label.k-switch{margin:0!important}.routing-rule-container[data-v-ca0bb10b]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-ca0bb10b]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-ca0bb10b]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-ca0bb10b]{width:100%}.routing-rule-input[data-v-ca0bb10b]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-ca0bb10b] label.k-switch{margin:0!important}.routing-rule-container[data-v-88d16377]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-88d16377]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-88d16377]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-88d16377]{width:100%}.routing-rule-input[data-v-88d16377]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-88d16377] label.k-switch{margin:0!important}.routing-rule-container[data-v-c8ae1bc5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c8ae1bc5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c8ae1bc5]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c8ae1bc5]{width:100%}.routing-rule-input[data-v-c8ae1bc5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c8ae1bc5] label.k-switch{margin:0!important}.routing-rule-container[data-v-bc31ca96]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-bc31ca96]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-bc31ca96]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-bc31ca96]{width:100%}.routing-rule-input[data-v-bc31ca96]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-bc31ca96] label.k-switch{margin:0!important}.routing-rule-container[data-v-c3679dd9]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c3679dd9]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c3679dd9]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c3679dd9]{width:100%}.routing-rule-input[data-v-c3679dd9]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c3679dd9] label.k-switch{margin:0!important}.routing-rule-container[data-v-50c52494]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-50c52494]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-50c52494]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-50c52494]{width:100%}.routing-rule-input[data-v-50c52494]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-50c52494] label.k-switch{margin:0!important}.route-form-config-tabs-tooltip[data-v-f1c7a92f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.route-form-open-in-playground{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:12px}.route-form-open-in-playground.disabled{cursor:not-allowed;opacity:.5}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-route-form[data-v-6c1044e5]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-6c1044e5]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-6c1044e5]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-6c1044e5]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-6c1044e5]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-6c1044e5]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-6c1044e5]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-6c1044e5]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .routing-rules-title[data-v-6c1044e5]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-6c1044e5]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-6c1044e5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-selector-options[data-v-6c1044e5]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul[data-v-6c1044e5]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-6c1044e5]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-6c1044e5]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option.is-selected[data-v-6c1044e5]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-6c1044e5]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option:hover.is-selected[data-v-6c1044e5]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-6c1044e5],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-6c1044e5]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-6c1044e5]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-6c1044e5]{display:flex}.kong-ui-entities-route-form[data-v-6c1044e5] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-6c1044e5]{min-height:200px}.expression-editor[data-v-daadfa77]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-daadfa77]{border-color:#d60027}.page-header h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-1f2ee68f],h2 .title[data-v-1f2ee68f],h3 .title[data-v-1f2ee68f],h4 .title[data-v-1f2ee68f],h5 .title[data-v-1f2ee68f],h6 .title[data-v-1f2ee68f]{word-break:break-all}.row[data-v-1f2ee68f]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-1f2ee68f]{line-height:36px}h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f],nav[data-v-1f2ee68f]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-1f2ee68f]{margin:0!important}.operations[data-v-1f2ee68f]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-08588d7e]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-08588d7e]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-08588d7e]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-08588d7e]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-08588d7e]{display:block!important}.request-card .badges[data-v-08588d7e]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-08588d7e]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-08588d7e],.request-card .headers .header ul[data-v-08588d7e]{margin:0;padding:0}.request-card .headers .header li[data-v-08588d7e]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-08588d7e]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-08588d7e]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-08588d7e]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-08588d7e]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-08588d7e]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-761f7e64]{align-items:center;border-bottom:var(--3ccdd5d2);box-sizing:border-box;display:var(--4b1da305);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-761f7e64]{box-sizing:border-box;padding-right:16px;width:var(--cd20788a)}.config-card-details-row .config-card-details-label label[data-v-761f7e64]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-761f7e64]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-761f7e64]{min-width:0}.config-card-details-row .config-card-details-value[data-v-761f7e64]{box-sizing:border-box;width:var(--cd1becd4)}.config-card-details-row .config-card-details-value .truncated[data-v-761f7e64]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-761f7e64]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-761f7e64] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-761f7e64]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-761f7e64]{margin-right:4px}.config-card-details-row[data-v-761f7e64] .k-label{margin-bottom:0}.config-card-details-row[data-v-761f7e64] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-761f7e64] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-499e74da]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-499e74da]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-routes-list[data-v-09caa9e4]{width:100%}.kong-ui-entities-routes-list .kong-ui-entity-filter-input[data-v-09caa9e4]{margin-right:12px}.kong-ui-entities-routes-list .route-list-cell-expression[data-v-09caa9e4]{font-family:JetBrains Mono,Consolas,monospace}.routing-rules-entities-controls-container[data-v-e024298d]{display:flex;gap:4px}.routing-rule-container[data-v-d41b39fd]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-d41b39fd]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-d41b39fd]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-d41b39fd]{width:100%}.routing-rule-input[data-v-d41b39fd]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-d41b39fd]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-d41b39fd] label.k-switch{margin:0!important}.routing-rule-container[data-v-ca0bb10b]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-ca0bb10b]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-ca0bb10b]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-ca0bb10b]{width:100%}.routing-rule-input[data-v-ca0bb10b]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-ca0bb10b]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-ca0bb10b] label.k-switch{margin:0!important}.routing-rule-container[data-v-88d16377]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-88d16377]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-88d16377]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-88d16377]{width:100%}.routing-rule-input[data-v-88d16377]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-88d16377]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-88d16377] label.k-switch{margin:0!important}.routing-rule-container[data-v-c8ae1bc5]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c8ae1bc5]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c8ae1bc5]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c8ae1bc5]{width:100%}.routing-rule-input[data-v-c8ae1bc5]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c8ae1bc5]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c8ae1bc5] label.k-switch{margin:0!important}.routing-rule-container[data-v-bc31ca96]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-bc31ca96]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-bc31ca96]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-bc31ca96]{width:100%}.routing-rule-input[data-v-bc31ca96]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-bc31ca96]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-bc31ca96] label.k-switch{margin:0!important}.routing-rule-container[data-v-c3679dd9]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-c3679dd9]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-c3679dd9]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-c3679dd9]{width:100%}.routing-rule-input[data-v-c3679dd9]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-c3679dd9]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-c3679dd9] label.k-switch{margin:0!important}.routing-rule-container[data-v-50c52494]:not(:first-of-type){margin-top:24px}.routing-rule-container hr[data-v-50c52494]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.routing-rule-input[data-v-50c52494]{align-items:center;column-gap:40px;display:flex}.routing-rule-input .k-input[data-v-50c52494]{width:100%}.routing-rule-input[data-v-50c52494]:not(:first-of-type){margin-top:16px}.routing-rule-input .methods-input-container[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:12px}.routing-rule-input .methods-input[data-v-50c52494]{display:flex;flex-wrap:wrap;gap:4px}.routing-rule-input .methods-input[data-v-50c52494] label.k-switch{margin:0!important}.route-form-config-tabs-tooltip[data-v-f1c7a92f]{display:inline-flex;margin:auto 0 auto 4px;vertical-align:middle}.route-form-open-in-playground{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:12px}.route-form-open-in-playground.disabled{cursor:not-allowed;opacity:.5}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-route-form[data-v-e155aee1]{width:100%}.kong-ui-entities-route-form .route-form-service-dropdown-item[data-v-e155aee1]{display:flex;flex-direction:column}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-label[data-v-e155aee1]{font-weight:600}.kong-ui-entities-route-form .route-form-service-dropdown-item .select-item-description[data-v-e155aee1]{color:#6c7489;font-size:12px}.kong-ui-entities-route-form .route-form-config-type-immutable-alert[data-v-e155aee1]{margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container[data-v-e155aee1]{display:flex;justify-content:center}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]{font-size:16px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .protocol-title[data-v-e155aee1]:not(:first-child):before{content:"/";margin-right:8px;padding-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-title-container .routing-rules-title[data-v-e155aee1]{font-size:16px;margin-left:8px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-routing-rules-selector-container hr[data-v-e155aee1]{border:0;border-top:1px solid rgba(0,0,0,.1);margin-bottom:16px}.kong-ui-entities-route-form .route-form-routing-rules-selector-options[data-v-e155aee1]{align-items:center;background-color:#eefaff;border:1px solid #5f9aff;border-radius:30px;display:flex;padding:0 6px;width:fit-content}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul[data-v-e155aee1]{display:flex;margin:0;padding:0}.kong-ui-entities-route-form .route-form-routing-rules-selector-options ul li[data-v-e155aee1]{display:inline-flex;list-style:none}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]{border:1px solid transparent;border-radius:19px;box-shadow:none;color:#0030cc;cursor:pointer;font-size:16px;font-weight:600;margin:0 4px 0 0;padding:4px 10px;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option.is-selected[data-v-e155aee1]{color:#5f9aff;pointer-events:none;text-decoration:line-through}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option[data-v-e155aee1]:hover{box-shadow:0 0 12px -2px #0000004d;transition:box-shadow .2s ease}.kong-ui-entities-route-form .route-form-routing-rules-selector-options .option:hover.is-selected[data-v-e155aee1]{box-shadow:none}.kong-ui-entities-route-form .route-form-advanced-fields-collapse[data-v-e155aee1],.kong-ui-entities-route-form .route-form-advanced-fields-container[data-v-e155aee1]{margin-top:24px}.kong-ui-entities-route-form .route-form-fields-container[data-v-e155aee1]>*:not(:first-child){margin-top:24px}.kong-ui-entities-route-form .k-checkbox[data-v-e155aee1]{display:flex}.kong-ui-entities-route-form[data-v-e155aee1] .form-section-content{min-width:0}.kong-ui-entities-route-form .expression-editor[data-v-e155aee1]{min-height:200px}.expression-editor[data-v-daadfa77]{border:1px solid #e0e4ea;border-radius:3px;min-height:200px;overflow:hidden;transition:border-color linear .15s;width:100%}.expression-editor.invalid[data-v-daadfa77]{border-color:#d60027}.page-header h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f]{color:#000933;font-size:24px;font-weight:700}.page-header h1 .title[data-v-1f2ee68f],h2 .title[data-v-1f2ee68f],h3 .title[data-v-1f2ee68f],h4 .title[data-v-1f2ee68f],h5 .title[data-v-1f2ee68f],h6 .title[data-v-1f2ee68f]{word-break:break-all}.row[data-v-1f2ee68f]{display:flex;flex-wrap:wrap;justify-content:space-between;margin-left:-16px;margin-right:-16px;padding:0 16px}.col[data-v-1f2ee68f]{line-height:36px}h1[data-v-1f2ee68f],h2[data-v-1f2ee68f],h3[data-v-1f2ee68f],h4[data-v-1f2ee68f],h5[data-v-1f2ee68f],h6[data-v-1f2ee68f],nav[data-v-1f2ee68f]{margin-bottom:20px;margin-top:0}.title-no-margin[data-v-1f2ee68f]{margin:0!important}.operations[data-v-1f2ee68f]{align-items:center;display:inline-flex;flex-grow:0;justify-content:flex-end;margin-left:auto;text-align:right;white-space:nowrap}.request-card[data-v-08588d7e]{align-items:flex-start;background-color:#fff;border-radius:6px;display:flex;flex-direction:column;gap:8px;justify-content:flex-start;min-width:0;padding:12px;position:relative}.request-card[data-v-08588d7e]:before{border:1px solid #e0e4ea;border-radius:6px;content:" ";height:100%;left:0;position:absolute;top:0;width:100%}.request-card.active[data-v-08588d7e]:before{border:2px solid #5f9aff}.request-card .close-btn[data-v-08588d7e]{cursor:pointer;display:none!important;position:absolute;right:12px;top:12px}.request-card:hover .close-btn[data-v-08588d7e]{display:block!important}.request-card .badges[data-v-08588d7e]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-bottom:6px}.request-card .url[data-v-08588d7e]{color:#000933;font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .headers .header[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;list-style:none}.request-card .headers .header[data-v-08588d7e],.request-card .headers .header ul[data-v-08588d7e]{margin:0;padding:0}.request-card .headers .header li[data-v-08588d7e]{list-style:none;margin-left:16px;padding-left:6px;position:relative;word-break:break-all}.request-card .headers .header li[data-v-08588d7e]:before{background-color:#000;bottom:-12px;content:" ";left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:not(:first-child):last-child:before{display:none}.request-card .headers .header li[data-v-08588d7e]:only-child:before{background-color:#000;bottom:7px;content:" ";display:list-item;height:7px;left:-10px;position:absolute;top:5px;width:1px}.request-card .headers .header li[data-v-08588d7e]:after{background-color:#000;content:" ";height:1px;left:-10px;position:absolute;top:12px;width:10px}.request-card .headers .header-key[data-v-08588d7e]{font-size:14px;font-weight:700;margin-left:8px;word-break:break-all}.request-card .headers .header-value[data-v-08588d7e]{font-size:14px;font-weight:400;margin-left:16px;word-break:break-all}.request-card .sni .sni-content[data-v-08588d7e]{font-family:JetBrains Mono,Consolas,monospace;font-size:14px;word-break:break-all}.request-card .section-title[data-v-08588d7e]{font-weight:700}.import-requests-modal .import-requests-alert[data-v-3ec313b9]{margin-bottom:16px}.import-requests-modal .import-requests-error[data-v-3ec313b9]{margin-top:16px}.import-requests-modal .json-editor[data-v-3ec313b9]{border:1px solid #e0e4ea;border-radius:4px;height:500px;overflow:hidden;width:100%}.import-requests-modal .warning[data-v-3ec313b9]{color:#fabe5f}.url-input[data-v-ccaa94c1]{margin-bottom:32px;width:100%}.request-form[data-v-ccaa94c1] fieldset{border:0;padding:0}.support-text[data-v-11a8483b]{color:#000933;display:flex;flex-direction:row;flex-wrap:wrap;padding-bottom:32px}.support-text[data-v-11a8483b] p{font-size:14px;margin-bottom:0}.router-playground-wrapper .page-header[data-v-37fd1d58]{color:#000933;font-size:24px;font-weight:700}.router-playground-wrapper .editor-actions[data-v-37fd1d58]{display:flex;flex-direction:row;justify-content:flex-end;margin-top:16px;width:100%}.router-playground-wrapper .router-playground[data-v-37fd1d58]{margin:auto}.router-playground-wrapper .router-playground .navigate-back[data-v-37fd1d58]{align-items:center;color:#0030cc;cursor:pointer;display:flex;flex-direction:row;font-size:16px;font-weight:700;gap:8px;justify-content:flex-start;margin-bottom:48px;margin-top:10px}.router-playground-wrapper .router-playground .navigate-back .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations[data-v-37fd1d58]{margin-top:16px}.router-playground-wrapper .router-playground .expression-inspirations .title[data-v-37fd1d58]{align-items:center;color:#6c7489;display:flex;flex-direction:row;font-size:14px;font-weight:700;gap:8px;justify-content:flex-start;margin-top:10px}.router-playground-wrapper .router-playground .expression-inspirations .title .material-icons[data-v-37fd1d58]{font-size:14px}.router-playground-wrapper .router-playground .expression-inspirations .buttons[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px;margin-top:12px}.router-playground-wrapper .router-playground .expression-inspirations .buttons button.expression-inspiration-item[data-v-37fd1d58]{border-style:solid;font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .expression-editor-caption[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:flex-start;margin:8px 0;opacity:.7}.router-playground-wrapper .router-playground .expression-list tbody tr[data-v-37fd1d58]{font-family:JetBrains Mono,Consolas,monospace}.router-playground-wrapper .router-playground .routes[data-v-37fd1d58]{margin-top:32px}.router-playground-wrapper .router-playground .routes .actions[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;gap:8px}.router-playground-wrapper .router-playground .import-button[data-v-37fd1d58],.router-playground-wrapper .router-playground .export-button[data-v-37fd1d58]{margin-right:12px}.router-playground-wrapper .router-playground .route-cards[data-v-37fd1d58]{display:grid;gap:16px;grid-template-columns:1fr 1fr 1fr}.router-playground-wrapper .router-playground .route-cards-footer[data-v-37fd1d58]{align-items:center;display:flex;flex-direction:row;font-size:14px;justify-content:center;margin:16px 0 8px;opacity:.7}.router-playground-wrapper .link[data-v-37fd1d58]{cursor:pointer;margin:0 2px;text-decoration:underline}.router-playground-modal .k-modal-backdrop{overflow-y:scroll}.router-playground-modal .modal-container{max-width:1280px!important;width:100%!important}.router-playground-modal .k-modal-header{margin-bottom:0!important}.router-playground-modal .k-prompt-header hr{margin-bottom:0;margin-top:12px}.router-playground-modal .k-prompt-body hr{margin-bottom:0;margin-top:0}.router-playground-modal .k-prompt-body-content{max-height:800px!important;padding:24px 0}
@@ -1 +1 @@
1
- {"version":3,"file":"RouteForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteForm.vue"],"names":[],"mappings":"AA+5CA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAKnC,OAAO,KAAK,EACV,gBAAgB,EAOhB,0BAA0B,EAC1B,sBAAsB,EAItB,YAAY,EAMb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,WAAW,EAIZ,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;AA04BvD,iBAAS,cAAc;;;;;;;;YAozB2B,GAAG;;;0BA55C3B,IAAI;+BAsdQ,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;YAu8BhC,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AA6ID,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAcnB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,2CAA2C;;;;;;IAM3C,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;YACnC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;SACpC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;6BA/qCd,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;iBA2mClC,MAAM;cAAQ,MAAM;;;;;IAGtD,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,2CAA2C;;;;;;IAM3C,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;YACnC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;SACpC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;;;;iBApEhB,MAAM;cAAQ,MAAM;;;;;;;;;;;;;;sBA8DtB,MAAM;sBACN,MAAM;;4EAYtC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"RouteForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RouteForm.vue"],"names":[],"mappings":"AAm6CA,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;AAEtD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAKnC,OAAO,KAAK,EACV,gBAAgB,EAOhB,0BAA0B,EAC1B,sBAAsB,EAItB,YAAY,EAMb,MAAM,UAAU,CAAA;AACjB,OAAO,EACL,WAAW,EAIZ,MAAM,UAAU,CAAA;AASjB,OAAO,gDAAgD,CAAA;AA84BvD,iBAAS,cAAc;;;;;;;;YAozB2B,GAAG;;;0BA55C3B,IAAI;+BAsdQ,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;YAu8BhC,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AA6ID,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAcnB,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,2CAA2C;;;;;;IAM3C,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;YACnC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;SACpC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;6BA/qCd,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;iBA2mClC,MAAM;cAAQ,MAAM;;;;;IAGtD,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F,sEAAsE;;;;;;IAMtE,yDAAyD;;;;;;IAMzD,4CAA4C;;;;;;IAM5C,gDAAgD;;;;;;IAMhD,2CAA2C;;;;;;IAM3C,gDAAgD;;cAE9B,QAAQ,CAAC,YAAY,CAAC;;;;;;IAMxC,sCAAsC;;cAEpB,QAAQ,CAAC;YACvB,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;YACnC,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,EAAE,MAAM,CAAC;SACpC,GAAG,SAAS,CAAC;;;;IAIhB,kDAAkD;;;;;;;;;;iBApEhB,MAAM;cAAQ,MAAM;;;;;;;;;;;;;;sBA8DtB,MAAM;sBACN,MAAM;;4EAYtC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  import type { BaseFormConfig, KongManagerBaseFormConfig, KonnectBaseFormConfig } from '@kong-ui-public/entities-shared';
2
2
  import type { RouteLocationRaw } from 'vue-router';
3
- import type { Methods, Method } from './method-badge';
3
+ import type { Method, Methods } from './method-badge';
4
4
  export declare enum RouteFlavor {
5
5
  TRADITIONAL = "traditional",// includes traditional_compatible
6
6
  EXPRESSIONS = "expressions"
@@ -1 +1 @@
1
- {"version":3,"file":"route-form.d.ts","sourceRoot":"","sources":["../../../src/types/route-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAA;AAErD,oBAAY,WAAW;IACrB,WAAW,gBAAgB,CAAE,kCAAkC;IAC/D,WAAW,gBAAgB;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAEnH,qCAAqC;AACrC,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAE3H,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,oBAAoB,EAAE,EAAE,eAAe,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAA;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAErH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,OAAO,GAAG,MAAM,GAAG,OAAO;CACnC,CAAA;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,OAAQ,SAAQ,yBAAyB;CAAI;AAE9D,MAAM,WAAW,YAAa,SAAQ,yBAAyB;CAAI;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,uCAAuC;AACvC,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,oBAAoB;IAC7D,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC/B;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC1B,YAAY,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACvB;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
1
+ {"version":3,"file":"route-form.d.ts","sourceRoot":"","sources":["../../../src/types/route-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAErD,oBAAY,WAAW;IACrB,WAAW,gBAAgB,CAAE,kCAAkC;IAC/D,WAAW,gBAAgB;CAC5B;AAED,gDAAgD;AAChD,MAAM,WAAW,YAAY;IAC3B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;CAC9B;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAEnH,qCAAqC;AACrC,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAE3H,oBAAY,oBAAoB;IAC9B,KAAK,UAAU;IACf,IAAI,SAAS;IACb,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,YAAY,iBAAiB;IAC7B,aAAa,kBAAkB;CAChC;AAED,oBAAY,sBAAsB;IAChC,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAED,MAAM,MAAM,iBAAiB,GAAG,OAAO,CAAC,GAAG,oBAAoB,EAAE,EAAE,eAAe,CAAC,CAAA;AAEnF,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,CAAA;AAE7C,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,iBAAiB,GAAG,KAAK,GAAG,IAAI,GAAG,KAAK,CAAA;AAErH,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,aAAa,GAAG;KACzB,GAAG,IAAI,OAAO,GAAG,MAAM,GAAG,OAAO;CACnC,CAAA;AAED,MAAM,WAAW,yBAAyB;IACxC,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,OAAQ,SAAQ,yBAAyB;CAAI;AAE9D,MAAM,WAAW,YAAa,SAAQ,yBAAyB;CAAI;AAEnE,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,MAAM,CAAA;IACjB,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,EAAE,OAAO,CAAA;IACnB,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,MAAM,CAAA;IACZ,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,2BAA2B;IAC1C,OAAO,CAAC,EAAE,aAAa,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;CAChB;AAED,uCAAuC;AACvC,MAAM,WAAW,2BAA2B;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,UAAU,CAAC,MAAM,SAAS,oBAAoB;IAC7D,YAAY,EAAE,YAAY,CAAA;IAC1B,MAAM,EAAE,MAAM,CAAA;IACd,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,0CAA0C;AAC1C,eAAO,MAAM,yBAAyB,UAAW,UAAU,CAAC,oBAAoB,CAAC,KAAG,KAAK,IAAI,UAAU,CAAC,oBAAoB,GAAG,2BAA2B,CACjH,CAAA;AAEzC,MAAM,WAAW,OAAO;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,SAAS,EAAE,QAAQ,EAAE,CAAA;IACrB,0BAA0B,EAAE,MAAM,CAAA;IAClC,UAAU,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IAC3B,aAAa,EAAE,OAAO,CAAA;IACtB,iBAAiB,EAAE,OAAO,CAAA;IAC1B,kBAAkB,EAAE,OAAO,CAAA;IAC3B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;CAC/B;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,OAAO,CAAC,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAAC,GAAG,IAAI,CAAA;IACvC,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;IACtB,aAAa,EAAE,mBAAmB,CAAA;IAClC,OAAO,CAAC,EAAE,OAAO,EAAE,GAAG,IAAI,CAAA;IAC1B,YAAY,CAAC,EAAE,YAAY,EAAE,GAAG,IAAI,CAAA;IACpC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAA;CACvB;AAED,oDAAoD;AACpD,MAAM,WAAW,uBAAuB;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-routes",
3
- "version": "3.8.54",
3
+ "version": "3.8.55",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-routes.umd.js",
6
6
  "module": "./dist/entities-routes.es.js",