@kong-ui-public/entities-routes 3.17.3 → 3.17.4

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,5 +1,5 @@
1
- import { defineComponent as z, ref as B, computed as D, resolveComponent as N, createElementBlock as k, openBlock as m, createVNode as d, unref as t, withCtx as u, createBlock as x, toDisplayString as H, inject as Ve, createCommentVNode as P, createElementVNode as w, mergeModels as Y, useModel as X, createTextVNode as U, TransitionGroup as he, Fragment as G, renderList as re, nextTick as lt, defineAsyncComponent as rt, h as Ke, onMounted as Ye, renderSlot as Le, resolveDynamicComponent as qe, watch as _e, reactive as Ce, onBeforeMount as Ze, provide as it, createSlots as Be, withModifiers as Ne, Teleport as at } from "vue";
2
- import { useAxios as Fe, ConfigurationSchemaType as ve, ConfigurationSchemaSection as pe, EntityBaseConfigCard as nt, SupportedEntityType as et, InternalLinkItem as dt, useErrors as ut, useGatewayFeatureSupported as ct, EntityBaseFormType as Ge, useDebouncedFilter as pt, EntityBaseForm as ft, EntityFormSection as We, useTableState as mt, useFetcher as vt, useDeleteUrlBuilder as ht, FetcherStatus as gt, EntityBaseTable as yt, PermissionsWrapper as ke, TableTags as bt, EntityFilter as St, EntityDeleteModal as _t, EntityTypes as Tt } from "@kong-ui-public/entities-shared";
1
+ import { defineComponent as z, ref as B, computed as w, resolveComponent as N, createElementBlock as k, openBlock as m, createVNode as d, unref as t, withCtx as u, createBlock as x, toDisplayString as H, inject as De, createCommentVNode as P, createElementVNode as V, mergeModels as Y, useModel as X, createTextVNode as U, TransitionGroup as he, Fragment as G, renderList as re, nextTick as lt, defineAsyncComponent as rt, h as Ke, onMounted as Ye, renderSlot as Le, resolveDynamicComponent as qe, watch as _e, reactive as Ce, onBeforeMount as Ze, provide as it, createSlots as Be, withModifiers as Ne, Teleport as at } from "vue";
2
+ import { useAxios as Fe, ConfigurationSchemaType as ve, ConfigurationSchemaSection as pe, EntityBaseConfigCard as nt, SupportedEntityType as et, InternalLinkItem as ut, useErrors as dt, useGatewayFeatureSupported as ct, EntityBaseFormType as Ge, useDebouncedFilter as pt, EntityBaseForm as ft, EntityFormSection as We, useTableState as mt, useFetcher as vt, useDeleteUrlBuilder as ht, FetcherStatus as gt, EntityBaseTable as yt, PermissionsWrapper as ke, TableTags as bt, EntityFilter as St, EntityDeleteModal as _t, EntityTypes as Tt } from "@kong-ui-public/entities-shared";
3
3
  import { createI18n as It, i18nTComponent as Et } from "@kong-ui-public/i18n";
4
4
  import je from "lodash.isequal";
5
5
  import { useRouter as tt } from "vue-router";
@@ -106,17 +106,17 @@ const oe = "/v2/control-planes/{controlPlaneId}/core-entities", se = "/{workspac
106
106
  learn_more: "Learn more"
107
107
  }
108
108
  }
109
- }, Vt = {
109
+ }, Dt = {
110
110
  general: "Routes could not be retrieved",
111
111
  delete: "The route could not be deleted at this time.",
112
112
  copy: "Failed to copy to clipboard",
113
113
  services: {
114
114
  fetch: "Could not fetch available services"
115
115
  }
116
- }, wt = {
116
+ }, Vt = {
117
117
  success: "Copied {val} to clipboard",
118
118
  success_brief: "Successfully copied to clipboard"
119
- }, Dt = {
119
+ }, wt = {
120
120
  config_flavor: {
121
121
  label: "Define by"
122
122
  },
@@ -330,9 +330,9 @@ const oe = "/v2/control-planes/{controlPlaneId}/core-entities", se = "/{workspac
330
330
  title: "Delete a Route",
331
331
  description: "Deleting this route will also remove any associated plugins. This action cannot be reversed."
332
332
  },
333
- errors: Vt,
334
- copy: wt,
335
- form: Dt
333
+ errors: Dt,
334
+ copy: Vt,
335
+ form: wt
336
336
  };
337
337
  function $t() {
338
338
  const e = It("en-us", Mt);
@@ -378,12 +378,12 @@ const J = {
378
378
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
379
379
  setup(e, { emit: C }) {
380
380
  var F;
381
- const f = C, o = e, { axiosInstance: a } = Fe((F = o.config) == null ? void 0 : F.axiosRequestConfig), { i18n: { t: v } } = J.useI18n(), i = B(""), A = B(""), h = B(!1), g = D(
381
+ const f = C, o = e, { axiosInstance: a } = Fe((F = o.config) == null ? void 0 : F.axiosRequestConfig), { i18n: { t: v } } = J.useI18n(), i = B(""), A = B(""), h = B(!1), g = w(
382
382
  () => {
383
383
  var r, c;
384
384
  return (c = Te.item[(r = o.config) == null ? void 0 : r.app]) == null ? void 0 : c[o.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, o.serviceId);
385
385
  }
386
- ), p = D(() => {
386
+ ), p = w(() => {
387
387
  var r;
388
388
  return (r = Te.item[o.config.app]) == null ? void 0 : r.getService;
389
389
  }), y = async (r) => {
@@ -401,7 +401,7 @@ const J = {
401
401
  } finally {
402
402
  h.value = !1;
403
403
  }
404
- }, V = B({
404
+ }, D = B({
405
405
  id: {},
406
406
  name: {
407
407
  tooltip: v("form.fields.name.tooltip")
@@ -500,7 +500,7 @@ const J = {
500
500
  d(t(nt), {
501
501
  config: e.config,
502
502
  "config-card-doc": e.configCardDoc,
503
- "config-schema": V.value,
503
+ "config-schema": D.value,
504
504
  "entity-type": t(et).Route,
505
505
  "fetch-url": g.value,
506
506
  "hide-title": e.hideTitle,
@@ -513,7 +513,7 @@ const J = {
513
513
  key: 0,
514
514
  "data-testid": "service-name-loader",
515
515
  type: "spinner"
516
- })) : M.value && M.value.id === i.value && A.value ? (m(), x(t(dt), {
516
+ })) : M.value && M.value.id === i.value && A.value ? (m(), x(t(ut), {
517
517
  key: 1,
518
518
  item: {
519
519
  key: M.value.id,
@@ -593,7 +593,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
593
593
  },
594
594
  emits: ["add"],
595
595
  setup(e, { emit: C }) {
596
- const f = e, o = C, a = Ve("configType", "basic"), { i18n: { t: v } } = J.useI18n(), i = D(() => v(`form.fields.${f.routingRulesEntity}.add`));
596
+ const f = e, o = C, a = De("configType", "basic"), { i18n: { t: v } } = J.useI18n(), i = w(() => v(`form.fields.${f.routingRulesEntity}.add`));
597
597
  return (A, h) => {
598
598
  const g = N("KButton");
599
599
  return t(a) !== "basic" ? (m(), x(g, {
@@ -605,7 +605,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
605
605
  }, {
606
606
  default: u(() => [
607
607
  d(t(Ue)),
608
- w("span", null, H(i.value), 1)
608
+ V("span", null, H(i.value), 1)
609
609
  ]),
610
610
  _: 1
611
611
  }, 8, ["data-testid"])) : P("", !0);
@@ -624,7 +624,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
624
624
  },
625
625
  emits: ["remove"],
626
626
  setup(e, { emit: C }) {
627
- const f = C, o = Ve("configType", "basic");
627
+ const f = C, o = De("configType", "basic");
628
628
  return (a, v) => {
629
629
  const i = N("KButton");
630
630
  return t(o) !== "basic" ? (m(), x(i, {
@@ -658,7 +658,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
658
658
  return m(), k("div", Wt, [
659
659
  d(A, { "tooltip-attributes": { maxWidth: "320" } }, {
660
660
  tooltip: u(() => [
661
- w("span", {
661
+ V("span", {
662
662
  innerHTML: t(f)("form.fields.destinations.tooltip")
663
663
  }, null, 8, jt)
664
664
  ]),
@@ -720,7 +720,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
720
720
  return m(), k("div", Jt, [
721
721
  d(A, { "tooltip-attributes": { maxWidth: "320" } }, {
722
722
  tooltip: u(() => [
723
- w("span", {
723
+ V("span", {
724
724
  innerHTML: t(f)("form.fields.headers.tooltip")
725
725
  }, null, 8, Qt)
726
726
  ]),
@@ -773,13 +773,13 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
773
773
  },
774
774
  emits: /* @__PURE__ */ Y(["add", "remove"], ["update:modelValue"]),
775
775
  setup(e, { emit: C }) {
776
- const { i18n: { t: f } } = J.useI18n(), o = X(e, "modelValue"), a = C, v = Ve("configType", "basic");
776
+ const { i18n: { t: f } } = J.useI18n(), o = X(e, "modelValue"), a = C, v = De("configType", "basic");
777
777
  return (i, A) => {
778
778
  const h = N("KLabel"), g = N("KInput");
779
779
  return m(), k("div", eo, [
780
780
  d(h, { "tooltip-attributes": { maxWidth: "320" } }, {
781
781
  tooltip: u(() => [
782
- w("span", {
782
+ V("span", {
783
783
  innerHTML: t(f)("form.fields.hosts.tooltip")
784
784
  }, null, 8, to)
785
785
  ]),
@@ -796,7 +796,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
796
796
  }, [
797
797
  d(g, {
798
798
  modelValue: o.value[y],
799
- "onUpdate:modelValue": (V) => o.value[y] = V,
799
+ "onUpdate:modelValue": (D) => o.value[y] = D,
800
800
  modelModifiers: { trim: !0 },
801
801
  "data-testid": `route-form-hosts-input-${y + 1}`,
802
802
  placeholder: t(f)("form.fields.hosts.placeholder")
@@ -804,7 +804,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
804
804
  d(Re, {
805
805
  disabled: o.value.length === 1,
806
806
  "routing-rules-entity": t(s).HOSTS,
807
- onRemove: (V) => a("remove", y)
807
+ onRemove: (D) => a("remove", y)
808
808
  }, null, 8, ["disabled", "routing-rules-entity", "onRemove"])
809
809
  ]))), 128))
810
810
  ]),
@@ -830,7 +830,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
830
830
  },
831
831
  emits: ["update:methods", "update:customMethods"],
832
832
  setup(e) {
833
- const { i18n: { t: C } } = J.useI18n(), f = X(e, "methods"), o = X(e, "customMethods"), a = D(() => f.value.filter((g) => Object.keys(Ie).includes(g)).concat(o.value.map((g) => g.value))), v = D(() => Object.keys(Ie).map((g) => ({
833
+ const { i18n: { t: C } } = J.useI18n(), f = X(e, "methods"), o = X(e, "customMethods"), a = w(() => f.value.filter((g) => Object.keys(Ie).includes(g)).concat(o.value.map((g) => g.value))), v = w(() => Object.keys(Ie).map((g) => ({
834
834
  label: g,
835
835
  value: g
836
836
  })).concat(o.value.map((g) => ({
@@ -843,11 +843,11 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
843
843
  f.value = g;
844
844
  };
845
845
  return (g, p) => {
846
- const y = N("KLabel"), V = N("KMultiselect");
846
+ const y = N("KLabel"), D = N("KMultiselect");
847
847
  return m(), k("div", lo, [
848
848
  d(y, { "tooltip-attributes": { maxWidth: "320" } }, {
849
849
  tooltip: u(() => [
850
- w("span", {
850
+ V("span", {
851
851
  innerHTML: t(C)("form.fields.methods.tooltip")
852
852
  }, null, 8, ro)
853
853
  ]),
@@ -856,8 +856,8 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
856
856
  ]),
857
857
  _: 1
858
858
  }),
859
- w("div", io, [
860
- d(V, {
859
+ V("div", io, [
860
+ d(D, {
861
861
  "enable-item-creation": "",
862
862
  "item-creation-validator": i,
863
863
  items: v.value,
@@ -880,13 +880,13 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
880
880
  },
881
881
  emits: /* @__PURE__ */ Y(["add", "remove"], ["update:modelValue"]),
882
882
  setup(e, { emit: C }) {
883
- const { i18n: { t: f } } = J.useI18n(), o = X(e, "modelValue"), a = C, v = Ve("configType", "basic");
883
+ const { i18n: { t: f } } = J.useI18n(), o = X(e, "modelValue"), a = C, v = De("configType", "basic");
884
884
  return (i, A) => {
885
885
  const h = N("KLabel"), g = N("KInput");
886
886
  return m(), k("div", uo, [
887
887
  d(h, { "tooltip-attributes": { maxWidth: "320" } }, {
888
888
  tooltip: u(() => [
889
- w("span", {
889
+ V("span", {
890
890
  innerHTML: t(f)("form.fields.paths.tooltip")
891
891
  }, null, 8, co)
892
892
  ]),
@@ -903,7 +903,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
903
903
  }, [
904
904
  d(g, {
905
905
  modelValue: o.value[y],
906
- "onUpdate:modelValue": (V) => o.value[y] = V,
906
+ "onUpdate:modelValue": (D) => o.value[y] = D,
907
907
  modelModifiers: { trim: !0 },
908
908
  "data-testid": `route-form-paths-input-${y + 1}`,
909
909
  placeholder: t(f)("form.fields.paths.placeholder")
@@ -911,7 +911,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
911
911
  d(Re, {
912
912
  disabled: o.value.length === 1,
913
913
  "routing-rules-entity": t(s).PATHS,
914
- onRemove: (V) => a("remove", y)
914
+ onRemove: (D) => a("remove", y)
915
915
  }, null, 8, ["disabled", "routing-rules-entity", "onRemove"])
916
916
  ]))), 128))
917
917
  ]),
@@ -938,7 +938,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
938
938
  return m(), k("div", mo, [
939
939
  d(A, { "tooltip-attributes": { maxWidth: "320" } }, {
940
940
  tooltip: u(() => [
941
- w("span", {
941
+ V("span", {
942
942
  innerHTML: t(f)("form.fields.snis.tooltip")
943
943
  }, null, 8, vo)
944
944
  ]),
@@ -990,7 +990,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
990
990
  return m(), k("div", yo, [
991
991
  d(A, { "tooltip-attributes": { maxWidth: "320" } }, {
992
992
  tooltip: u(() => [
993
- w("span", {
993
+ V("span", {
994
994
  innerHTML: t(f)("form.fields.sources.tooltip")
995
995
  }, null, 8, bo)
996
996
  ]),
@@ -1089,7 +1089,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1089
1089
  await lt(() => {
1090
1090
  delete i.value[r];
1091
1091
  });
1092
- }, p = (r) => r.some((c) => v.protocols.includes(c)), y = D(() => new Set(Pe[v.protocols])), V = D(() => {
1092
+ }, p = (r) => r.some((c) => v.protocols.includes(c)), y = w(() => new Set(Pe[v.protocols])), D = w(() => {
1093
1093
  if (p(["tls_passthrough"]))
1094
1094
  return [F(s.SNIS)];
1095
1095
  const r = (v.configType === "basic" ? [s.PATHS, s.METHODS, s.HOSTS] : Pe[v.protocols]).map((c) => F(c));
@@ -1104,20 +1104,20 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1104
1104
  default: u(() => {
1105
1105
  var E;
1106
1106
  return [
1107
- w("span", To, [
1107
+ V("span", To, [
1108
1108
  d(t(C), { keypath: "form.hint.rules_message" }, {
1109
1109
  protocol: u(() => [
1110
- w("b", null, H(t(a)[e.protocols]), 1)
1110
+ V("b", null, H(t(a)[e.protocols]), 1)
1111
1111
  ]),
1112
1112
  routingRules: u(() => [
1113
1113
  d(t(C), {
1114
- keypath: V.value[1] ? "form.hint.multiple_rules" : "form.hint.single_rule"
1114
+ keypath: D.value[1] ? "form.hint.multiple_rules" : "form.hint.single_rule"
1115
1115
  }, {
1116
1116
  routingRules: u(() => [
1117
- U(H(V.value[0]), 1)
1117
+ U(H(D.value[0]), 1)
1118
1118
  ]),
1119
1119
  lastRoutingRule: u(() => [
1120
- U(H(V.value[1]), 1)
1120
+ U(H(D.value[1]), 1)
1121
1121
  ]),
1122
1122
  _: 1
1123
1123
  }, 8, ["keypath"])
@@ -1150,7 +1150,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1150
1150
  }
1151
1151
  }, {
1152
1152
  tooltip: u(() => [
1153
- w("span", {
1153
+ V("span", {
1154
1154
  innerHTML: t(o)("form.fields.strip_path.tooltip")
1155
1155
  }, null, 8, Eo)
1156
1156
  ]),
@@ -1217,7 +1217,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1217
1217
  width: "100%"
1218
1218
  }, {
1219
1219
  "label-tooltip": u(() => [
1220
- w("span", {
1220
+ V("span", {
1221
1221
  innerHTML: t(o)("form.fields.path_handling.tooltip")
1222
1222
  }, null, 8, Ao)
1223
1223
  ]),
@@ -1236,7 +1236,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1236
1236
  width: "100%"
1237
1237
  }, {
1238
1238
  "label-tooltip": u(() => [
1239
- w("span", {
1239
+ V("span", {
1240
1240
  innerHTML: t(o)("form.fields.https_redirect_status_code.tooltip")
1241
1241
  }, null, 8, Oo)
1242
1242
  ]),
@@ -1255,7 +1255,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1255
1255
  type: "number"
1256
1256
  }, {
1257
1257
  "label-tooltip": u(() => [
1258
- w("span", {
1258
+ V("span", {
1259
1259
  innerHTML: t(o)("form.fields.regex_priority.tooltip")
1260
1260
  }, null, 8, ko)
1261
1261
  ]),
@@ -1271,7 +1271,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1271
1271
  }
1272
1272
  }, {
1273
1273
  tooltip: u(() => [
1274
- w("span", {
1274
+ V("span", {
1275
1275
  innerHTML: t(o)("form.fields.preserve_host.tooltip")
1276
1276
  }, null, 8, Ho)
1277
1277
  ]),
@@ -1287,7 +1287,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1287
1287
  }
1288
1288
  }, {
1289
1289
  tooltip: u(() => [
1290
- w("span", {
1290
+ V("span", {
1291
1291
  innerHTML: t(o)("form.fields.request_buffering.tooltip")
1292
1292
  }, null, 8, No)
1293
1293
  ]),
@@ -1303,7 +1303,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1303
1303
  }
1304
1304
  }, {
1305
1305
  tooltip: u(() => [
1306
- w("span", {
1306
+ V("span", {
1307
1307
  innerHTML: t(o)("form.fields.response_buffering.tooltip")
1308
1308
  }, null, 8, Co)
1309
1309
  ]),
@@ -1316,7 +1316,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1316
1316
  });
1317
1317
  };
1318
1318
  }
1319
- }), Qe = /* @__PURE__ */ Z(xo, [["__scopeId", "data-v-f3fa9614"]]), Vo = /* @__PURE__ */ z({
1319
+ }), Qe = /* @__PURE__ */ Z(xo, [["__scopeId", "data-v-f3fa9614"]]), Do = /* @__PURE__ */ z({
1320
1320
  __name: "RouteFormExpressionsEditorLoader",
1321
1321
  props: /* @__PURE__ */ Y({
1322
1322
  protocol: {},
@@ -1332,7 +1332,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1332
1332
  }, a = {
1333
1333
  render: () => Ke("div", f("form.expressions_editor.error"))
1334
1334
  }, v = rt({
1335
- loader: async () => import("./RouteFormExpressionsEditor-ykO-6Hk6.js"),
1335
+ loader: async () => import("./RouteFormExpressionsEditor-BmRiH3GR.js"),
1336
1336
  loadingComponent: o,
1337
1337
  errorComponent: a
1338
1338
  }), i = e, A = C, h = B(Se.LOADING), g = X(e, "modelValue"), p = (y) => {
@@ -1344,7 +1344,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1344
1344
  } catch (y) {
1345
1345
  h.value = Se.ERROR, console.error(y);
1346
1346
  }
1347
- }), (y, V) => (m(), k(G, null, [
1347
+ }), (y, D) => (m(), k(G, null, [
1348
1348
  h.value === t(Se).ERROR ? (m(), x(qe(a), {
1349
1349
  key: 0,
1350
1350
  "data-testid": "route-form-expressions-editor-loader-error"
@@ -1354,14 +1354,14 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1354
1354
  })) : (m(), x(t(v), {
1355
1355
  key: 2,
1356
1356
  modelValue: g.value,
1357
- "onUpdate:modelValue": V[0] || (V[0] = (F) => g.value = F),
1357
+ "onUpdate:modelValue": D[0] || (D[0] = (F) => g.value = F),
1358
1358
  protocol: i.protocol,
1359
1359
  "show-expressions-modal-entry": e.showExpressionsModalEntry,
1360
- onNotify: V[1] || (V[1] = (F) => A("notify", F))
1360
+ onNotify: D[1] || (D[1] = (F) => A("notify", F))
1361
1361
  }, {
1362
1362
  default: u(() => [
1363
1363
  d(t(At), { size: t(Gt) }, null, 8, ["size"]),
1364
- w("span", null, H(t(f)("form.expression_playground.test_link")), 1)
1364
+ V("span", null, H(t(f)("form.expression_playground.test_link")), 1)
1365
1365
  ]),
1366
1366
  _: 1
1367
1367
  }, 8, ["modelValue", "protocol", "show-expressions-modal-entry"])),
@@ -1371,7 +1371,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1371
1371
  })
1372
1372
  ], 64));
1373
1373
  }
1374
- }), wo = { class: "route-form-routing-rules-title-container" }, Do = { class: "routing-rules-title" }, Mo = { class: "route-form-fields-container route-form-advanced-fields-container" }, $o = /* @__PURE__ */ z({
1374
+ }), Vo = { class: "route-form-routing-rules-title-container" }, wo = { class: "routing-rules-title" }, Mo = { class: "route-form-fields-container route-form-advanced-fields-container" }, $o = /* @__PURE__ */ z({
1375
1375
  __name: "ExpressionsRules",
1376
1376
  props: /* @__PURE__ */ Y({
1377
1377
  protocols: {},
@@ -1384,22 +1384,22 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1384
1384
  }),
1385
1385
  emits: /* @__PURE__ */ Y(["notify"], ["update:fields"]),
1386
1386
  setup(e, { emit: C }) {
1387
- const { i18n: { t: f } } = J.useI18n(), o = e, a = X(e, "fields"), v = C, i = B(!0), A = D(() => o.protocols.split(",") || []), h = (g) => g.some((p) => o.protocols.includes(p));
1387
+ const { i18n: { t: f } } = J.useI18n(), o = e, a = X(e, "fields"), v = C, i = B(!0), A = w(() => o.protocols.split(",") || []), h = (g) => g.some((p) => o.protocols.includes(p));
1388
1388
  return (g, p) => {
1389
- const y = N("KCard"), V = N("KSelect"), F = N("KInput"), r = N("KCheckbox"), c = N("KCollapse");
1389
+ const y = N("KCard"), D = N("KSelect"), F = N("KInput"), r = N("KCheckbox"), c = N("KCollapse");
1390
1390
  return m(), k(G, null, [
1391
1391
  d(y, null, {
1392
1392
  title: u(() => [
1393
- w("div", wo, [
1393
+ V("div", Vo, [
1394
1394
  (m(!0), k(G, null, re(A.value, (S) => (m(), k("span", {
1395
1395
  key: S,
1396
1396
  class: "protocol-title"
1397
1397
  }, H(S.toUpperCase()), 1))), 128)),
1398
- w("span", Do, H(t(f)("form.sections.routingExpression.title")), 1)
1398
+ V("span", wo, H(t(f)("form.sections.routingExpression.title")), 1)
1399
1399
  ])
1400
1400
  ]),
1401
1401
  default: u(() => [
1402
- d(Vo, {
1402
+ d(Do, {
1403
1403
  modelValue: a.value.expression,
1404
1404
  "onUpdate:modelValue": p[0] || (p[0] = (S) => a.value.expression = S),
1405
1405
  protocol: A.value[0],
@@ -1427,8 +1427,8 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1427
1427
  default: u(() => [
1428
1428
  d(y, null, {
1429
1429
  default: u(() => [
1430
- w("div", Mo, [
1431
- d(V, {
1430
+ V("div", Mo, [
1431
+ d(D, {
1432
1432
  modelValue: a.value.https_redirect_status_code,
1433
1433
  "onUpdate:modelValue": p[2] || (p[2] = (S) => a.value.https_redirect_status_code = S),
1434
1434
  "data-testid": "route-form-http-redirect-status-code",
@@ -1529,7 +1529,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1529
1529
  value: q.EXPRESSIONS,
1530
1530
  label: h("form.flavors.expressions")
1531
1531
  }
1532
- ], p = D(() => [
1532
+ ], p = w(() => [
1533
1533
  { label: h("form.protocols.grpc"), value: "grpc" },
1534
1534
  { label: h("form.protocols.grpcs"), value: "grpcs" },
1535
1535
  { label: h("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
@@ -1549,7 +1549,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1549
1549
  { label: h("form.protocols.wss"), value: "wss" },
1550
1550
  { label: h("form.protocols.ws,wss"), value: "ws,wss" }
1551
1551
  ] : []
1552
- ]), y = D(() => f.recordFlavor ? f.recordFlavor : a.value), V = (E, _) => {
1552
+ ]), y = w(() => f.recordFlavor ? f.recordFlavor : a.value), D = (E, _) => {
1553
1553
  if (!new Set(Pe[f.protocols]).has(E))
1554
1554
  return [];
1555
1555
  if ([s.PATHS, s.HOSTS, s.METHODS, s.SNIS].includes(E))
@@ -1564,28 +1564,28 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1564
1564
  }, F = (E) => E.some((_) => f.protocols.includes(_)), r = () => {
1565
1565
  if (y.value !== q.TRADITIONAL)
1566
1566
  return null;
1567
- const E = v.value, _ = V(s.HEADERS, E.headers || []) || W[s.HEADERS];
1567
+ const E = v.value, _ = D(s.HEADERS, E.headers || []) || W[s.HEADERS];
1568
1568
  return _.length === 0 ? null : _.reduce((T, K) => (T[K.header] = K.values.split(","), T), {});
1569
- }, c = D(() => (v.value.methods || []).filter((T) => Object.keys(Ie).includes(T)).concat(i.value.map((T) => T.label.toUpperCase()))), S = (E) => E != null && E.length ? E : null, M = D(() => ({
1569
+ }, c = w(() => (v.value.methods || []).filter((T) => Object.keys(Ie).includes(T)).concat(i.value.map((T) => T.label.toUpperCase()))), S = (E) => E != null && E.length ? E : null, M = w(() => ({
1570
1570
  https_redirect_status_code: v.value.https_redirect_status_code,
1571
1571
  strip_path: F(["http", "https", "ws", "wss"]) ? v.value.strip_path : !1,
1572
1572
  preserve_host: v.value.preserve_host,
1573
1573
  request_buffering: v.value.request_buffering,
1574
1574
  response_buffering: v.value.response_buffering
1575
- })), le = D(() => {
1575
+ })), le = w(() => {
1576
1576
  switch (y.value) {
1577
1577
  case q.TRADITIONAL: {
1578
- const E = v.value, _ = S(V(s.PATHS, E.paths || [])), T = S(V(s.HOSTS, E.hosts || [])), K = {
1578
+ const E = v.value, _ = S(D(s.PATHS, E.paths || [])), T = S(D(s.HOSTS, E.hosts || [])), K = {
1579
1579
  ...M.value,
1580
- methods: S(V(s.METHODS, c.value)),
1580
+ methods: S(D(s.METHODS, c.value)),
1581
1581
  hosts: o.value === "basic" && T ? T.slice(0, 1) : T,
1582
1582
  paths: o.value === "basic" && _ ? _.slice(0, 1) : _,
1583
1583
  headers: o.value === "basic" ? null : r(),
1584
1584
  regex_priority: Number(E.regex_priority),
1585
1585
  path_handling: E.path_handling,
1586
- sources: S(V(s.SOURCES, E.sources || [])),
1587
- destinations: S(V(s.DESTINATIONS, E.destinations || [])),
1588
- snis: o.value === "basic" ? null : S(V(s.SNIS, E.snis || []))
1586
+ sources: S(D(s.SOURCES, E.sources || [])),
1587
+ destinations: S(D(s.DESTINATIONS, E.destinations || [])),
1588
+ snis: o.value === "basic" ? null : S(D(s.SNIS, E.snis || []))
1589
1589
  };
1590
1590
  return {
1591
1591
  type: y.value,
@@ -1622,7 +1622,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1622
1622
  }, { deep: !0, immediate: !0 }), (E, _) => {
1623
1623
  const T = N("KRadio"), K = N("KLabel"), Ae = N("KTooltip"), ne = N("KSegmentedControl"), ee = N("KAlert"), ge = N("KSelect");
1624
1624
  return m(), k(G, null, [
1625
- w("div", Po, [
1625
+ V("div", Po, [
1626
1626
  d(T, {
1627
1627
  modelValue: o.value,
1628
1628
  "onUpdate:modelValue": _[0] || (_[0] = ($) => o.value = $),
@@ -1671,13 +1671,13 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1671
1671
  options: g
1672
1672
  }, {
1673
1673
  "option-label": u(({ option: $ }) => {
1674
- var fe, de;
1674
+ var fe, ue;
1675
1675
  return [
1676
- w("span", null, H($.label), 1),
1676
+ V("span", null, H($.label), 1),
1677
1677
  (fe = e.tooltips) != null && fe[$.value] ? (m(), x(Ae, {
1678
1678
  key: 0,
1679
1679
  class: "route-form-config-tabs-tooltip",
1680
- text: (de = e.tooltips) == null ? void 0 : de[$.value],
1680
+ text: (ue = e.tooltips) == null ? void 0 : ue[$.value],
1681
1681
  "tooltip-id": `route-form-config-tabs-tooltip-${$.value}`
1682
1682
  }, {
1683
1683
  default: u(() => [
@@ -1820,7 +1820,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1820
1820
  var be;
1821
1821
  const o = e, a = f, v = B("basic"), i = B(
1822
1822
  !o.routeFlavors.traditional && o.routeFlavors.expressions ? q.EXPRESSIONS : q.TRADITIONAL
1823
- ), A = B(void 0), h = D(() => {
1823
+ ), A = B(void 0), h = w(() => {
1824
1824
  if (A.value)
1825
1825
  return A.value;
1826
1826
  if (i.value)
@@ -1829,7 +1829,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1829
1829
  return q.TRADITIONAL;
1830
1830
  if (o.routeFlavors.expressions)
1831
1831
  return q.EXPRESSIONS;
1832
- }), { i18n: { t: g } } = J.useI18n(), p = tt(), { axiosInstance: y } = Fe((be = o.config) == null ? void 0 : be.axiosRequestConfig), { getMessageFromError: V } = ut(), F = (l) => l.name ? `${l.name} - ${l.value}` : l.value, r = Ce({
1832
+ }), { i18n: { t: g } } = J.useI18n(), p = tt(), { axiosInstance: y } = Fe((be = o.config) == null ? void 0 : be.axiosRequestConfig), { getMessageFromError: D } = dt(), F = (l) => l.name ? `${l.name} - ${l.value}` : l.value, r = Ce({
1833
1833
  routeFlavors: o.routeFlavors,
1834
1834
  fields: {
1835
1835
  name: "",
@@ -1871,7 +1871,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1871
1871
  supportedRange: {
1872
1872
  enterprise: ["3.0"]
1873
1873
  }
1874
- }), E = D(() => o.routeId ? Ge.Edit : Ge.Create), _ = D(() => {
1874
+ }), E = w(() => o.routeId ? Ge.Edit : Ge.Create), _ = w(() => {
1875
1875
  var l, n, b;
1876
1876
  return (b = (n = Te.form[(l = o.config) == null ? void 0 : l.app]) == null ? void 0 : n.fetch) == null ? void 0 : b[o.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, o.serviceId || "");
1877
1877
  }), T = () => {
@@ -1893,7 +1893,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1893
1893
  (b = l == null ? void 0 : l.service) != null && b.id && (r.fields.service_id = l.service.id), r.fields.name = (l == null ? void 0 : l.name) || "";
1894
1894
  const n = (l == null ? void 0 : l.tags) || [];
1895
1895
  r.fields.tags = (n == null ? void 0 : n.join(", ")) || "", r.fields.preserve_host = typeof (l == null ? void 0 : l.preserve_host) > "u" ? !1 : l == null ? void 0 : l.preserve_host, r.fields.https_redirect_status_code = (l == null ? void 0 : l.https_redirect_status_code) || 426, (R = l == null ? void 0 : l.protocols) != null && R.length && (l.protocols.length > 1 ? r.fields.protocols = l.protocols.join() : r.fields.protocols = l.protocols[0]), r.fields.request_buffering = typeof (l == null ? void 0 : l.request_buffering) > "u" ? !0 : l == null ? void 0 : l.request_buffering, r.fields.response_buffering = typeof (l == null ? void 0 : l.response_buffering) > "u" ? !0 : l == null ? void 0 : l.response_buffering, r.fields.strip_path = typeof (l == null ? void 0 : l.strip_path) > "u" ? !0 : l == null ? void 0 : l.strip_path, ze(r) && (r.fields.regex_priority = (l == null ? void 0 : l.regex_priority) || 0, r.fields.path_handling = (l == null ? void 0 : l.path_handling) || "v0", l != null && l.paths && (r.fields.paths = l.paths), l != null && l.snis && (r.fields.snis = l.snis), l != null && l.hosts && (r.fields.hosts = l.hosts), l != null && l.methods && (r.fields.methods = l.methods.filter((I) => Object.keys(Ie).includes(I)), S.value = l.methods.filter((I) => !Object.keys(Ie).includes(I)).map((I) => ({ label: I, value: I })), M.value = [...S.value]), l != null && l.headers && (r.fields.headers = ne(l.headers)), l != null && l.sources && (r.fields.sources = l.sources), l != null && l.destinations && (r.fields.destinations = l.destinations)), Je(r) && (r.fields.expression = (l == null ? void 0 : l.expression) || "", r.fields.priority = (l == null ? void 0 : l.priority) || 0), Object.assign(le, JSON.parse(JSON.stringify(r.fields)));
1896
- }, $ = D(() => {
1896
+ }, $ = w(() => {
1897
1897
  switch (h.value) {
1898
1898
  case q.TRADITIONAL: {
1899
1899
  if (ze(r)) {
@@ -1909,7 +1909,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1909
1909
  }
1910
1910
  }
1911
1911
  return !0;
1912
- }), fe = D(() => !je(r.fields, le) || !je(S.value, M.value)), de = D(() => {
1912
+ }), fe = w(() => !je(r.fields, le) || !je(S.value, M.value)), ue = w(() => {
1913
1913
  var n, b;
1914
1914
  let l = `${o.config.apiBaseUrl}${Te.form[o.config.app][E.value][o.serviceId ? "forGatewayService" : "all"]}`;
1915
1915
  return o.config.app === "konnect" ? l = l.replace(/{controlPlaneId}/gi, ((n = o.config) == null ? void 0 : n.controlPlaneId) || "").replace(/{serviceId}/gi, o.serviceId || "") : o.config.app === "kongManager" && (l = l.replace(/\/{workspace}/gi, (b = o.config) != null && b.workspace ? `/${o.config.workspace}` : "").replace(/{serviceId}/gi, o.serviceId || "")), l = l.replace(/{id}/gi, o.routeId), l;
@@ -1917,7 +1917,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1917
1917
  _e(() => r.fields, () => {
1918
1918
  a("model-updated", me.value);
1919
1919
  }, { deep: !0 });
1920
- const me = D(() => {
1920
+ const me = w(() => {
1921
1921
  var l, n, b;
1922
1922
  return {
1923
1923
  ...!o.hideNameField && { name: r.fields.name || null },
@@ -1940,36 +1940,36 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1940
1940
  }
1941
1941
  }
1942
1942
  return "service" in l && "tags" in l && "protocols" in l;
1943
- }, ue = async (l) => {
1943
+ }, de = async (l) => {
1944
1944
  var b;
1945
1945
  const n = l && ie(l) ? l : me.value;
1946
1946
  try {
1947
1947
  r.isReadonly = !0;
1948
1948
  let R;
1949
- E.value === "create" ? R = await y.post(de.value, n) : E.value === "edit" && (R = ((b = o.config) == null ? void 0 : b.app) === "konnect" ? await y.put(de.value, n) : await y.patch(de.value, n)), ge(R == null ? void 0 : R.data), a("update", R == null ? void 0 : R.data);
1949
+ E.value === "create" ? R = await y.post(ue.value, n) : E.value === "edit" && (R = ((b = o.config) == null ? void 0 : b.app) === "konnect" ? await y.put(ue.value, n) : await y.patch(ue.value, n)), ge(R == null ? void 0 : R.data), a("update", R == null ? void 0 : R.data);
1950
1950
  } catch (R) {
1951
- r.errorMessage = V(R), a("error", R);
1951
+ r.errorMessage = D(R), a("error", R);
1952
1952
  } finally {
1953
1953
  r.isReadonly = !1;
1954
1954
  }
1955
1955
  }, {
1956
1956
  debouncedQueryChange: ye,
1957
1957
  loading: He,
1958
- error: we,
1959
- loadItems: De,
1958
+ error: Ve,
1959
+ loadItems: we,
1960
1960
  results: Me
1961
1961
  } = pt(o.config, Te.form[o.config.app].services, void 0, {
1962
1962
  fetchedItemsKey: "data",
1963
1963
  searchKeys: ["id", "name"]
1964
- }), $e = D(() => we.value ? g("errors.services.fetch") : ""), Oe = D(() => {
1964
+ }), $e = w(() => Ve.value ? g("errors.services.fetch") : ""), Oe = w(() => {
1965
1965
  var l;
1966
1966
  return (l = Me.value) == null ? void 0 : l.map((n) => ({ label: n.id, name: n.name, value: n.id }));
1967
1967
  });
1968
1968
  return Ze(async () => {
1969
- !o.hideServiceField && !o.serviceId ? await De() : r.fields.service_id = o.serviceId;
1969
+ !o.hideServiceField && !o.serviceId ? await we() : r.fields.service_id = o.serviceId;
1970
1970
  }), Ye(() => {
1971
1971
  a("model-updated", me.value);
1972
- }), C({ saveFormData: ue, payload: me }), it("configType", v), (l, n) => {
1972
+ }), C({ saveFormData: de, payload: me }), it("configType", v), (l, n) => {
1973
1973
  const b = N("KInput"), R = N("KSelect");
1974
1974
  return m(), k("div", Bo, [
1975
1975
  d(t(ft), {
@@ -1985,13 +1985,13 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
1985
1985
  "onFetch:error": Ae,
1986
1986
  "onFetch:success": ge,
1987
1987
  onLoading: K,
1988
- onSubmit: ue
1988
+ onSubmit: de
1989
1989
  }, {
1990
1990
  "form-actions": u(() => [
1991
1991
  Le(l.$slots, "form-actions", {
1992
1992
  canSubmit: $.value && fe.value,
1993
1993
  cancel: T,
1994
- submit: ue
1994
+ submit: de
1995
1995
  }, void 0, !0)
1996
1996
  ]),
1997
1997
  default: u(() => [
@@ -2031,18 +2031,18 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2031
2031
  onQueryChange: t(ye)
2032
2032
  }, {
2033
2033
  loading: u(() => [
2034
- w("div", null, H(t(g)("actions.loading")), 1)
2034
+ V("div", null, H(t(g)("actions.loading")), 1)
2035
2035
  ]),
2036
2036
  empty: u(() => [
2037
- w("div", Wo, H(t(g)("search.no_results")), 1)
2037
+ V("div", Wo, H(t(g)("search.no_results")), 1)
2038
2038
  ]),
2039
2039
  "selected-item-template": u(({ item: I }) => [
2040
2040
  U(H(F(I)), 1)
2041
2041
  ]),
2042
2042
  "item-template": u(({ item: I }) => [
2043
- w("div", jo, [
2044
- w("span", Xo, H(I.name), 1),
2045
- w("span", zo, H(I.value), 1)
2043
+ V("div", jo, [
2044
+ V("span", Xo, H(I.name), 1),
2045
+ V("span", zo, H(I.value), 1)
2046
2046
  ])
2047
2047
  ]),
2048
2048
  _: 1
@@ -2167,7 +2167,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2167
2167
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
2168
2168
  setup(e, { emit: C }) {
2169
2169
  var l;
2170
- const f = C, o = e, { i18n: { t: a, formatUnixTimeStamp: v } } = J.useI18n(), i = tt(), { axiosInstance: A } = Fe((l = o.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: h, hasRecords: g } = mt(() => M.value), p = D(() => g.value && o.config.app === "konnect"), y = D(() => !!o.config.serviceId), V = D(() => o.config.app !== "kongManager" || !!o.config.disableSorting), F = {
2170
+ const f = C, o = e, { i18n: { t: a, formatUnixTimeStamp: v } } = J.useI18n(), i = tt(), { axiosInstance: A } = Fe((l = o.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: h, hasRecords: g } = mt(() => M.value), p = w(() => g.value && o.config.app === "konnect"), y = w(() => !!o.config.serviceId), D = w(() => o.config.app !== "kongManager" || !!o.config.disableSorting), F = {
2171
2171
  // the Name column is non-hidable
2172
2172
  name: { label: a("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
2173
2173
  protocols: { label: a("routes.list.table_headers.protocols"), searchable: !0 },
@@ -2186,11 +2186,11 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2186
2186
  columnVisibility: {
2187
2187
  created_at: !1
2188
2188
  }
2189
- }, c = F, S = D(() => {
2189
+ }, c = F, S = w(() => {
2190
2190
  var b, R, I, te;
2191
2191
  let n = `${o.config.apiBaseUrl}${Te.list[o.config.app][o.config.serviceId ? "forGatewayService" : "all"]}`;
2192
2192
  return o.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((b = o.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{serviceId}/gi, ((R = o.config) == null ? void 0 : R.serviceId) || "") : o.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (I = o.config) != null && I.workspace ? `/${o.config.workspace}` : "").replace(/{serviceId}/gi, ((te = o.config) == null ? void 0 : te.serviceId) || "")), n;
2193
- }), M = B(""), le = D(() => {
2193
+ }), M = B(""), le = w(() => {
2194
2194
  const n = o.config.app === "konnect" || o.config.isExactMatch;
2195
2195
  if (n)
2196
2196
  return {
@@ -2215,7 +2215,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2215
2215
  fetcher: j,
2216
2216
  fetcherState: E,
2217
2217
  fetcherCacheKey: _
2218
- } = vt(D(() => ({ ...o.config, cacheIdentifier: o.cacheIdentifier })), S), T = (n) => n.headerKey === "expression" ? {
2218
+ } = vt(w(() => ({ ...o.config, cacheIdentifier: o.cacheIdentifier })), S), T = (n) => n.headerKey === "expression" ? {
2219
2219
  style: {
2220
2220
  maxWidth: "250px",
2221
2221
  overflowX: "hidden",
@@ -2258,22 +2258,25 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2258
2258
  }, fe = (n) => ({
2259
2259
  label: a("actions.view"),
2260
2260
  to: o.config.getViewRoute(n)
2261
- }), de = (n) => ({
2261
+ }), ue = (n) => ({
2262
2262
  label: a("actions.edit"),
2263
2263
  to: o.config.getEditRoute(n)
2264
- }), me = (n) => ({
2265
- label: a("actions.debugger"),
2266
- to: o.config.getDebugRoute(n)
2267
- }), ie = B(void 0), ue = B(!1), ye = B(!1), He = B(""), we = ht(o.config, S.value), De = (n) => {
2268
- ie.value = n, ue.value = !0;
2264
+ }), me = (n) => {
2265
+ if (o.config.getDebugRoute)
2266
+ return {
2267
+ label: a("actions.debugger"),
2268
+ to: o.config.getDebugRoute(n)
2269
+ };
2270
+ }, ie = B(void 0), de = B(!1), ye = B(!1), He = B(""), Ve = ht(o.config, S.value), we = (n) => {
2271
+ ie.value = n, de.value = !0;
2269
2272
  }, Me = () => {
2270
- ue.value = !1;
2273
+ de.value = !1;
2271
2274
  }, $e = async () => {
2272
2275
  var n, b, R;
2273
2276
  if ((n = ie.value) != null && n.id) {
2274
2277
  ye.value = !0;
2275
2278
  try {
2276
- await A.delete(we(ie.value.id)), ye.value = !1, ue.value = !1, _.value++, f("delete:success", ie.value);
2279
+ await A.delete(Ve(ie.value.id)), ye.value = !1, de.value = !1, _.value++, f("delete:success", ie.value);
2277
2280
  } catch (I) {
2278
2281
  He.value = ((R = (b = I.response) == null ? void 0 : b.data) == null ? void 0 : R.message) || I.message || a("errors.delete"), f("error", I);
2279
2282
  } finally {
@@ -2306,7 +2309,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2306
2309
  "cache-identifier": e.cacheIdentifier,
2307
2310
  "cell-attributes": T,
2308
2311
  "default-table-preferences": r,
2309
- "disable-sorting": V.value,
2312
+ "disable-sorting": D.value,
2310
2313
  "empty-state-options": Oe.value,
2311
2314
  "enable-entity-actions": "",
2312
2315
  "error-message": ne.value,
@@ -2335,7 +2338,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2335
2338
  disabled: !e.useActionOutside,
2336
2339
  to: "#kong-ui-app-page-header-action-button"
2337
2340
  }, [
2338
- w("div", Yo, [
2341
+ V("div", Yo, [
2339
2342
  !y.value && p.value ? (m(), x(R, {
2340
2343
  key: 0,
2341
2344
  appearance: "secondary",
@@ -2372,7 +2375,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2372
2375
  ], 8, ["disabled"]))
2373
2376
  ]),
2374
2377
  name: u(({ rowValue: O }) => [
2375
- w("b", null, H(O ?? "-"), 1)
2378
+ V("b", null, H(O ?? "-"), 1)
2376
2379
  ]),
2377
2380
  protocols: u(({ rowValue: O }) => [
2378
2381
  d(ae, null, {
@@ -2454,7 +2457,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2454
2457
  d(t(bt), { tags: O }, null, 8, ["tags"])
2455
2458
  ]),
2456
2459
  expression: u(({ rowValue: O }) => [
2457
- w("span", os, H(O || "-"), 1)
2460
+ V("span", os, H(O || "-"), 1)
2458
2461
  ]),
2459
2462
  created_at: u(({ rowValue: O }) => [
2460
2463
  U(H(t(v)(O)), 1)
@@ -2507,10 +2510,11 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2507
2510
  "auth-function": () => e.canDebug(O)
2508
2511
  }, {
2509
2512
  default: u(() => [
2510
- d(Q, {
2513
+ e.config.getDebugRoute ? (m(), x(Q, {
2514
+ key: 0,
2511
2515
  "data-testid": "action-entity-debug",
2512
2516
  item: me(O.id)
2513
- }, null, 8, ["item"])
2517
+ }, null, 8, ["item"])) : P("", !0)
2514
2518
  ]),
2515
2519
  _: 2
2516
2520
  }, 1032, ["auth-function"]),
@@ -2520,7 +2524,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2520
2524
  default: u(() => [
2521
2525
  d(Q, {
2522
2526
  "data-testid": "action-entity-edit",
2523
- item: de(O.id)
2527
+ item: ue(O.id)
2524
2528
  }, null, 8, ["item"])
2525
2529
  ]),
2526
2530
  _: 2
@@ -2533,7 +2537,7 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2533
2537
  danger: "",
2534
2538
  "data-testid": "action-entity-delete",
2535
2539
  "has-divider": "",
2536
- onClick: (L) => De(O)
2540
+ onClick: (L) => we(O)
2537
2541
  }, {
2538
2542
  default: u(() => [
2539
2543
  U(H(t(a)("actions.delete")), 1)
@@ -2606,14 +2610,14 @@ const ze = (e) => e.routeFlavors.traditional === !0, Je = (e) => e.routeFlavors.
2606
2610
  "entity-type": t(Tt).Route,
2607
2611
  error: He.value,
2608
2612
  title: t(a)("delete.title"),
2609
- visible: ue.value,
2613
+ visible: de.value,
2610
2614
  onCancel: Me,
2611
2615
  onProceed: $e
2612
2616
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
2613
2617
  ]);
2614
2618
  };
2615
2619
  }
2616
- }), fs = /* @__PURE__ */ Z(ss, [["__scopeId", "data-v-f8e2719c"]]);
2620
+ }), fs = /* @__PURE__ */ Z(ss, [["__scopeId", "data-v-a438ef1a"]]);
2617
2621
  export {
2618
2622
  Se as E,
2619
2623
  ot as H,