@kong-ui-public/entities-routes 3.13.2 → 3.13.3

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 q, computed as H, resolveComponent as C, openBlock as f, createElementBlock as k, createVNode as u, unref as e, withCtx as v, createBlock as V, toDisplayString as w, inject as we, createElementVNode as B, createCommentVNode as x, mergeModels as Z, useModel as z, createTextVNode as P, TransitionGroup as me, Fragment as G, renderList as le, nextTick as lt, defineAsyncComponent as rt, onMounted as Qe, resolveDynamicComponent as Fe, renderSlot as Me, h as Ke, reactive as Ce, watch as be, onBeforeMount as Ye, provide as at, createSlots as Le, Teleport as qe, withModifiers as Oe } from "vue";
1
+ import { defineComponent as J, ref as q, computed as H, resolveComponent as C, openBlock as f, createElementBlock as k, createVNode as u, unref as e, withCtx as m, createBlock as V, toDisplayString as w, inject as we, createElementVNode as B, createCommentVNode as x, mergeModels as Z, useModel as z, createTextVNode as P, TransitionGroup as me, Fragment as G, renderList as le, nextTick as lt, defineAsyncComponent as rt, onMounted as Qe, resolveDynamicComponent as Fe, renderSlot as Me, h as Ke, reactive as Ce, watch as be, onBeforeMount as Ye, provide as at, createSlots as Le, Teleport as qe, withModifiers as Oe } from "vue";
2
2
  import { useAxios as xe, ConfigurationSchemaSection as de, ConfigurationSchemaType as fe, EntityBaseConfigCard as it, SupportedEntityType as Ze, InternalLinkItem as nt, useErrors as ut, useGatewayFeatureSupported as dt, EntityBaseFormType as Be, useDebouncedFilter as ct, EntityBaseForm as pt, EntityFormSection as Ge, useTableState as ft, useFetcher as mt, useDeleteUrlBuilder as vt, FetcherStatus as ht, EntityBaseTable as gt, EntityFilter as yt, PermissionsWrapper as ke, TableTags as bt, EntityEmptyState as St, EntityDeleteModal as _t, EntityTypes as It } from "@kong-ui-public/entities-shared";
3
3
  import { createI18n as Tt, i18nTComponent as Et } from "@kong-ui-public/i18n";
4
4
  import We from "lodash.isequal";
@@ -376,7 +376,7 @@ const Y = {
376
376
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
377
377
  setup(s, { emit: N }) {
378
378
  var F;
379
- const p = N, t = s, { axiosInstance: i } = xe((F = t.config) == null ? void 0 : F.axiosRequestConfig), { i18n: { t: h } } = Y.useI18n(), a = q(""), A = q(""), m = q(!1), y = H(
379
+ const p = N, t = s, { axiosInstance: i } = xe((F = t.config) == null ? void 0 : F.axiosRequestConfig), { i18n: { t: v } } = Y.useI18n(), a = q(""), A = q(""), g = q(!1), y = H(
380
380
  () => {
381
381
  var r, d;
382
382
  return (d = Se.item[(r = t.config) == null ? void 0 : r.app]) == null ? void 0 : d[t.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, t.serviceId);
@@ -391,104 +391,104 @@ const Y = {
391
391
  let d = `${t.config.apiBaseUrl}${c.value}`;
392
392
  t.config.app === "konnect" ? d = d.replace(/{controlPlaneId}/gi, (($ = t.config) == null ? void 0 : $.controlPlaneId) || "").replace(/{serviceId}/gi, a.value || "") : t.config.app === "kongManager" && (d = d.replace(/\/{workspace}/gi, (j = t.config) != null && j.workspace ? `/${t.config.workspace}` : "").replace(/{serviceId}/gi, a.value || ""));
393
393
  try {
394
- m.value = !0;
394
+ g.value = !0;
395
395
  const { data: X } = await i.get(d);
396
396
  A.value = (X == null ? void 0 : X.name) || (X == null ? void 0 : X.id);
397
397
  } catch (X) {
398
398
  p("fetch:error", X);
399
399
  } finally {
400
- m.value = !1;
400
+ g.value = !1;
401
401
  }
402
402
  }, D = q({
403
403
  id: {},
404
404
  name: {
405
- tooltip: h("form.fields.name.tooltip")
405
+ tooltip: v("form.fields.name.tooltip")
406
406
  },
407
407
  created_at: {},
408
408
  updated_at: {},
409
409
  service: {
410
- label: h("form.fields.service.label"),
410
+ label: v("form.fields.service.label"),
411
411
  section: de.Basic,
412
- tooltip: h("form.fields.service.tooltip"),
412
+ tooltip: v("form.fields.service.tooltip"),
413
413
  order: 5
414
414
  },
415
415
  tags: {
416
- tooltip: h("form.fields.tags.tooltip"),
416
+ tooltip: v("form.fields.tags.tooltip"),
417
417
  order: 6
418
418
  },
419
419
  protocols: {
420
420
  section: de.Basic,
421
- tooltip: h("form.fields.protocols.tooltip"),
421
+ tooltip: v("form.fields.protocols.tooltip"),
422
422
  type: fe.BadgeTag,
423
423
  order: 7
424
424
  },
425
425
  paths: {
426
426
  section: de.Basic,
427
- tooltip: h("form.fields.paths.tooltip"),
427
+ tooltip: v("form.fields.paths.tooltip"),
428
428
  type: fe.CopyBadge,
429
429
  order: 8
430
430
  },
431
431
  hosts: {
432
432
  section: de.Basic,
433
- tooltip: h("form.fields.hosts.tooltip"),
433
+ tooltip: v("form.fields.hosts.tooltip"),
434
434
  type: fe.CopyBadge,
435
435
  order: 9
436
436
  },
437
437
  snis: {
438
- label: h("form.fields.snis.label"),
439
- tooltip: h("form.fields.snis.tooltip"),
438
+ label: v("form.fields.snis.label"),
439
+ tooltip: v("form.fields.snis.tooltip"),
440
440
  order: 10
441
441
  },
442
442
  headers: {
443
443
  section: de.Basic,
444
- tooltip: h("form.fields.headers.tooltip"),
444
+ tooltip: v("form.fields.headers.tooltip"),
445
445
  order: 11
446
446
  },
447
447
  methods: {
448
448
  section: de.Basic,
449
- tooltip: h("form.fields.methods.tooltip"),
449
+ tooltip: v("form.fields.methods.tooltip"),
450
450
  type: fe.BadgeMethod,
451
451
  order: 12
452
452
  },
453
453
  sources: {
454
454
  section: de.Basic,
455
- tooltip: h("form.fields.sources.tooltip"),
455
+ tooltip: v("form.fields.sources.tooltip"),
456
456
  type: fe.JsonArray,
457
457
  order: 13
458
458
  },
459
459
  destinations: {
460
460
  section: de.Basic,
461
- tooltip: h("form.fields.destinations.tooltip"),
461
+ tooltip: v("form.fields.destinations.tooltip"),
462
462
  type: fe.JsonArray,
463
463
  order: 14
464
464
  },
465
465
  // advanced fields
466
466
  https_redirect_status_code: {
467
- tooltip: h("form.fields.https_redirect_status_code.tooltip"),
467
+ tooltip: v("form.fields.https_redirect_status_code.tooltip"),
468
468
  order: 1
469
469
  },
470
470
  regex_priority: {
471
- tooltip: h("form.fields.regex_priority.tooltip"),
471
+ tooltip: v("form.fields.regex_priority.tooltip"),
472
472
  order: 2
473
473
  },
474
474
  strip_path: {
475
- tooltip: h("form.fields.strip_path.tooltip"),
475
+ tooltip: v("form.fields.strip_path.tooltip"),
476
476
  order: 3
477
477
  },
478
478
  preserve_host: {
479
- tooltip: h("form.fields.preserve_host.tooltip"),
479
+ tooltip: v("form.fields.preserve_host.tooltip"),
480
480
  order: 4
481
481
  },
482
482
  request_buffering: {
483
- tooltip: h("form.fields.request_buffering.tooltip"),
483
+ tooltip: v("form.fields.request_buffering.tooltip"),
484
484
  order: 5
485
485
  },
486
486
  response_buffering: {
487
- tooltip: h("form.fields.response_buffering.tooltip"),
487
+ tooltip: v("form.fields.response_buffering.tooltip"),
488
488
  order: 6
489
489
  },
490
490
  path_handling: {
491
- tooltip: h("form.fields.path_handling.tooltip"),
491
+ tooltip: v("form.fields.path_handling.tooltip"),
492
492
  order: 7
493
493
  }
494
494
  });
@@ -506,8 +506,8 @@ const Y = {
506
506
  "onFetch:success": b,
507
507
  onLoading: d[1] || (d[1] = ($) => r.$emit("loading", $))
508
508
  }, {
509
- service: v(({ row: $ }) => [
510
- m.value ? (f(), V(I, {
509
+ service: m(({ row: $ }) => [
510
+ g.value ? (f(), V(I, {
511
511
  key: 0,
512
512
  "data-testid": "service-name-loader",
513
513
  type: "spinner"
@@ -591,17 +591,17 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
591
591
  },
592
592
  emits: ["add"],
593
593
  setup(s, { emit: N }) {
594
- const p = s, t = N, i = we("configType", "basic"), { i18n: { t: h } } = Y.useI18n(), a = H(() => h(`form.fields.${p.routingRulesEntity}.add`));
595
- return (A, m) => {
594
+ const p = s, t = N, i = we("configType", "basic"), { i18n: { t: v } } = Y.useI18n(), a = H(() => v(`form.fields.${p.routingRulesEntity}.add`));
595
+ return (A, g) => {
596
596
  const y = C("KButton");
597
597
  return e(i) !== "basic" ? (f(), V(y, {
598
598
  key: 0,
599
599
  appearance: "tertiary",
600
600
  class: "routing-rule-add-item-button",
601
601
  "data-testid": `add-${A.routingRulesEntity}`,
602
- onClick: m[0] || (m[0] = (c) => t("add"))
602
+ onClick: g[0] || (g[0] = (c) => t("add"))
603
603
  }, {
604
- default: v(() => [
604
+ default: m(() => [
605
605
  u(e(tt)),
606
606
  B("span", null, w(a.value), 1)
607
607
  ]),
@@ -623,7 +623,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
623
623
  emits: ["remove"],
624
624
  setup(s, { emit: N }) {
625
625
  const p = N, t = we("configType", "basic");
626
- return (i, h) => {
626
+ return (i, v) => {
627
627
  const a = C("KButton");
628
628
  return e(t) !== "basic" ? (f(), V(a, {
629
629
  key: 0,
@@ -631,9 +631,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
631
631
  "data-testid": `remove-${i.routingRulesEntity}`,
632
632
  disabled: i.disabled,
633
633
  icon: "",
634
- onClick: h[0] || (h[0] = (A) => p("remove"))
634
+ onClick: v[0] || (v[0] = (A) => p("remove"))
635
635
  }, {
636
- default: v(() => [
636
+ default: m(() => [
637
637
  u(e(Rt), {
638
638
  color: i.disabled ? e(Bt) : e(Gt)
639
639
  }, null, 8, ["color"])
@@ -651,31 +651,31 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
651
651
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
652
652
  setup(s, { emit: N }) {
653
653
  const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N;
654
- return (h, a) => {
655
- const A = C("KLabel"), m = C("KInput");
654
+ return (v, a) => {
655
+ const A = C("KLabel"), g = C("KInput");
656
656
  return f(), k("div", Xt, [
657
657
  u(A, {
658
658
  info: e(p)("form.fields.destinations.tooltip")
659
659
  }, {
660
- default: v(() => [
660
+ default: m(() => [
661
661
  P(w(e(p)("form.fields.destinations.label")), 1)
662
662
  ]),
663
663
  _: 1
664
664
  }, 8, ["info"]),
665
665
  u(me, { name: "appear" }, {
666
- default: v(() => [
666
+ default: m(() => [
667
667
  (f(!0), k(G, null, le(t.value, (y, c) => (f(), k("div", {
668
668
  key: c,
669
669
  class: "routing-rule-input"
670
670
  }, [
671
- u(m, {
671
+ u(g, {
672
672
  modelValue: t.value[c].ip,
673
673
  "onUpdate:modelValue": (b) => t.value[c].ip = b,
674
674
  modelModifiers: { trim: !0 },
675
675
  "data-testid": `route-form-destinations-ip-input-${c + 1}`,
676
676
  placeholder: e(p)("form.fields.destinations.ip.placeholder")
677
677
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
678
- u(m, {
678
+ u(g, {
679
679
  modelValue: t.value[c].port,
680
680
  "onUpdate:modelValue": (b) => t.value[c].port = b,
681
681
  modelModifiers: { number: !0 },
@@ -710,31 +710,31 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
710
710
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
711
711
  setup(s, { emit: N }) {
712
712
  const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N;
713
- return (h, a) => {
714
- const A = C("KLabel"), m = C("KInput");
713
+ return (v, a) => {
714
+ const A = C("KLabel"), g = C("KInput");
715
715
  return f(), k("div", Qt, [
716
716
  u(A, {
717
717
  info: e(p)("form.fields.headers.tooltip")
718
718
  }, {
719
- default: v(() => [
719
+ default: m(() => [
720
720
  P(w(e(p)("form.fields.headers.label")), 1)
721
721
  ]),
722
722
  _: 1
723
723
  }, 8, ["info"]),
724
724
  u(me, { name: "appear" }, {
725
- default: v(() => [
725
+ default: m(() => [
726
726
  (f(!0), k(G, null, le(t.value, (y, c) => (f(), k("div", {
727
727
  key: c,
728
728
  class: "routing-rule-input"
729
729
  }, [
730
- u(m, {
730
+ u(g, {
731
731
  modelValue: t.value[c].header,
732
732
  "onUpdate:modelValue": (b) => t.value[c].header = b,
733
733
  modelModifiers: { trim: !0 },
734
734
  "data-testid": `route-form-headers-name-input-${c + 1}`,
735
735
  placeholder: e(p)("form.fields.headers.name.placeholder")
736
736
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
737
- u(m, {
737
+ u(g, {
738
738
  modelValue: t.value[c].values,
739
739
  "onUpdate:modelValue": (b) => t.value[c].values = b,
740
740
  modelModifiers: { trim: !0 },
@@ -765,22 +765,22 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
765
765
  },
766
766
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
767
767
  setup(s, { emit: N }) {
768
- const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N, h = we("configType", "basic");
768
+ const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N, v = we("configType", "basic");
769
769
  return (a, A) => {
770
- const m = C("KLabel"), y = C("KInput");
770
+ const g = C("KLabel"), y = C("KInput");
771
771
  return f(), k("div", eo, [
772
- u(m, {
772
+ u(g, {
773
773
  info: e(p)("form.fields.hosts.tooltip"),
774
774
  "tooltip-attributes": { maxWidth: "320" }
775
775
  }, {
776
- default: v(() => [
777
- P(w(e(h) === "basic" ? e(p)("form.fields.hosts.label_singular") : e(p)("form.fields.hosts.label")), 1)
776
+ default: m(() => [
777
+ P(w(e(v) === "basic" ? e(p)("form.fields.hosts.label_singular") : e(p)("form.fields.hosts.label")), 1)
778
778
  ]),
779
779
  _: 1
780
780
  }, 8, ["info"]),
781
781
  u(me, { name: "appear" }, {
782
- default: v(() => [
783
- (f(!0), k(G, null, le(e(h) === "basic" ? t.value.slice(0, 1) : t.value, (c, b) => (f(), k("div", {
782
+ default: m(() => [
783
+ (f(!0), k(G, null, le(e(v) === "basic" ? t.value.slice(0, 1) : t.value, (c, b) => (f(), k("div", {
784
784
  key: b,
785
785
  class: "routing-rule-input"
786
786
  }, [
@@ -820,16 +820,16 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
820
820
  },
821
821
  emits: ["update:methods", "update:customMethods"],
822
822
  setup(s) {
823
- const { i18n: { t: N } } = Y.useI18n(), p = z(s, "methods"), t = z(s, "customMethods"), i = H(() => p.value.filter((y) => Object.keys(_e).includes(y)).concat(t.value.map((y) => y.value))), h = H(() => Object.keys(_e).map((y) => ({
823
+ const { i18n: { t: N } } = Y.useI18n(), p = z(s, "methods"), t = z(s, "customMethods"), i = H(() => p.value.filter((y) => Object.keys(_e).includes(y)).concat(t.value.map((y) => y.value))), v = H(() => Object.keys(_e).map((y) => ({
824
824
  label: y,
825
825
  value: y
826
826
  })).concat(t.value.map((y) => ({
827
827
  label: y.label,
828
828
  value: y.value,
829
829
  custom: !0
830
- })))), a = (y) => !h.value.map((c) => c.value.toLowerCase()).includes(y.toLowerCase()), A = (y, c) => {
830
+ })))), a = (y) => !v.value.map((c) => c.value.toLowerCase()).includes(y.toLowerCase()), A = (y, c) => {
831
831
  c ? t.value.push(y) : t.value = t.value.filter((b) => b.value !== y.value);
832
- }, m = (y) => {
832
+ }, g = (y) => {
833
833
  p.value = y;
834
834
  };
835
835
  return (y, c) => {
@@ -839,7 +839,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
839
839
  info: e(N)("form.fields.methods.tooltip"),
840
840
  "tooltip-attributes": { maxWidth: "320" }
841
841
  }, {
842
- default: v(() => [
842
+ default: m(() => [
843
843
  P(w(e(N)("form.fields.methods.label")), 1)
844
844
  ]),
845
845
  _: 1
@@ -848,13 +848,13 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
848
848
  u(D, {
849
849
  "enable-item-creation": "",
850
850
  "item-creation-validator": a,
851
- items: h.value,
851
+ items: v.value,
852
852
  "model-value": i.value,
853
853
  placeholder: e(N)("form.fields.methods.placeholder"),
854
854
  "search-placeholder": e(N)("form.fields.methods.search_placeholder"),
855
855
  onItemAdded: c[0] || (c[0] = (F) => A(F, !0)),
856
856
  onItemRemoved: c[1] || (c[1] = (F) => A(F, !1)),
857
- "onUpdate:modelValue": m
857
+ "onUpdate:modelValue": g
858
858
  }, null, 8, ["items", "model-value", "placeholder", "search-placeholder"])
859
859
  ])
860
860
  ]);
@@ -868,22 +868,22 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
868
868
  },
869
869
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
870
870
  setup(s, { emit: N }) {
871
- const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N, h = we("configType", "basic");
871
+ const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N, v = we("configType", "basic");
872
872
  return (a, A) => {
873
- const m = C("KLabel"), y = C("KInput");
873
+ const g = C("KLabel"), y = C("KInput");
874
874
  return f(), k("div", io, [
875
- u(m, {
875
+ u(g, {
876
876
  info: e(p)("form.fields.paths.tooltip"),
877
877
  "tooltip-attributes": { maxWidth: "320" }
878
878
  }, {
879
- default: v(() => [
880
- P(w(e(h) === "basic" ? e(p)("form.fields.paths.label_singular") : e(p)("form.fields.paths.label")), 1)
879
+ default: m(() => [
880
+ P(w(e(v) === "basic" ? e(p)("form.fields.paths.label_singular") : e(p)("form.fields.paths.label")), 1)
881
881
  ]),
882
882
  _: 1
883
883
  }, 8, ["info"]),
884
884
  u(me, { name: "appear" }, {
885
- default: v(() => [
886
- (f(!0), k(G, null, le(e(h) === "basic" ? t.value.slice(0, 1) : t.value, (c, b) => (f(), k("div", {
885
+ default: m(() => [
886
+ (f(!0), k(G, null, le(e(v) === "basic" ? t.value.slice(0, 1) : t.value, (c, b) => (f(), k("div", {
887
887
  key: b,
888
888
  class: "routing-rule-input"
889
889
  }, [
@@ -919,25 +919,25 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
919
919
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
920
920
  setup(s, { emit: N }) {
921
921
  const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N;
922
- return (h, a) => {
923
- const A = C("KLabel"), m = C("KInput");
922
+ return (v, a) => {
923
+ const A = C("KLabel"), g = C("KInput");
924
924
  return f(), k("div", co, [
925
925
  u(A, {
926
926
  info: e(p)("form.fields.snis.tooltip"),
927
927
  "tooltip-attributes": { maxWidth: "320" }
928
928
  }, {
929
- default: v(() => [
929
+ default: m(() => [
930
930
  P(w(e(p)("form.fields.snis.label")), 1)
931
931
  ]),
932
932
  _: 1
933
933
  }, 8, ["info"]),
934
934
  u(me, { name: "appear" }, {
935
- default: v(() => [
935
+ default: m(() => [
936
936
  (f(!0), k(G, null, le(t.value, (y, c) => (f(), k("div", {
937
937
  key: c,
938
938
  class: "routing-rule-input"
939
939
  }, [
940
- u(m, {
940
+ u(g, {
941
941
  modelValue: t.value[c],
942
942
  "onUpdate:modelValue": (b) => t.value[c] = b,
943
943
  modelModifiers: { trim: !0 },
@@ -969,31 +969,31 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
969
969
  emits: /* @__PURE__ */ Z(["add", "remove"], ["update:modelValue"]),
970
970
  setup(s, { emit: N }) {
971
971
  const { i18n: { t: p } } = Y.useI18n(), t = z(s, "modelValue"), i = N;
972
- return (h, a) => {
973
- const A = C("KLabel"), m = C("KInput");
972
+ return (v, a) => {
973
+ const A = C("KLabel"), g = C("KInput");
974
974
  return f(), k("div", mo, [
975
975
  u(A, {
976
976
  info: e(p)("form.fields.sources.tooltip")
977
977
  }, {
978
- default: v(() => [
978
+ default: m(() => [
979
979
  P(w(e(p)("form.fields.sources.label")), 1)
980
980
  ]),
981
981
  _: 1
982
982
  }, 8, ["info"]),
983
983
  u(me, { name: "appear" }, {
984
- default: v(() => [
984
+ default: m(() => [
985
985
  (f(!0), k(G, null, le(t.value, (y, c) => (f(), k("div", {
986
986
  key: c,
987
987
  class: "routing-rule-input"
988
988
  }, [
989
- u(m, {
989
+ u(g, {
990
990
  modelValue: t.value[c].ip,
991
991
  "onUpdate:modelValue": (b) => t.value[c].ip = b,
992
992
  modelModifiers: { trim: !0 },
993
993
  "data-testid": `route-form-sources-ip-input-${c + 1}`,
994
994
  placeholder: e(p)("form.fields.sources.ip.placeholder")
995
995
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
996
- u(m, {
996
+ u(g, {
997
997
  modelValue: t.value[c].port,
998
998
  "onUpdate:modelValue": (b) => t.value[c].port = b,
999
999
  modelModifiers: { number: !0 },
@@ -1037,7 +1037,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1037
1037
  }),
1038
1038
  emits: ["update:fields", "update:customMethods"],
1039
1039
  setup(s) {
1040
- const { i18nT: N, i18n: p, i18n: { t } } = Y.useI18n(), i = p.source.form.protocols, h = s, a = z(s, "fields"), A = z(s, "customMethods"), m = (r) => {
1040
+ const { i18nT: N, i18n: p, i18n: { t } } = Y.useI18n(), i = p.source.form.protocols, v = s, a = z(s, "fields"), A = z(s, "customMethods"), g = (r) => {
1041
1041
  switch (r) {
1042
1042
  case o.PATHS:
1043
1043
  Array.isArray(a.value.paths) ? a.value.paths.push([...W[o.PATHS]][0]) : a.value.paths = [...W[o.PATHS]];
@@ -1070,10 +1070,10 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1070
1070
  await lt(() => {
1071
1071
  delete a.value[r];
1072
1072
  });
1073
- }, c = (r) => r.some((d) => h.protocols.includes(d)), b = H(() => new Set($e[h.protocols])), D = H(() => {
1073
+ }, c = (r) => r.some((d) => v.protocols.includes(d)), b = H(() => new Set($e[v.protocols])), D = H(() => {
1074
1074
  if (c(["tls_passthrough"]))
1075
1075
  return [F(o.SNIS)];
1076
- const r = (h.configType === "basic" ? [o.PATHS, o.METHODS, o.HOSTS] : $e[h.protocols]).map((d) => F(d));
1076
+ const r = (v.configType === "basic" ? [o.PATHS, o.METHODS, o.HOSTS] : $e[v.protocols]).map((d) => F(d));
1077
1077
  return [[...r].splice(0, r.length - 1).join(", "), r[r.length - 1]];
1078
1078
  }), F = (r) => {
1079
1079
  var I;
@@ -1082,22 +1082,22 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1082
1082
  return (r, d) => {
1083
1083
  const I = C("KCheckbox"), $ = C("KSelect"), j = C("KInput"), X = C("KCard");
1084
1084
  return f(), V(X, null, {
1085
- default: v(() => {
1086
- var g;
1085
+ default: m(() => {
1086
+ var h;
1087
1087
  return [
1088
1088
  B("span", go, [
1089
1089
  u(e(N), { keypath: "form.hint.rules_message" }, {
1090
- protocol: v(() => [
1090
+ protocol: m(() => [
1091
1091
  B("b", null, w(e(i)[r.protocols]), 1)
1092
1092
  ]),
1093
- routingRules: v(() => [
1093
+ routingRules: m(() => [
1094
1094
  u(e(N), {
1095
1095
  keypath: D.value[1] ? "form.hint.multiple_rules" : "form.hint.single_rule"
1096
1096
  }, {
1097
- routingRules: v(() => [
1097
+ routingRules: m(() => [
1098
1098
  P(w(D.value[0]), 1)
1099
1099
  ]),
1100
- lastRoutingRule: v(() => [
1100
+ lastRoutingRule: m(() => [
1101
1101
  P(w(D.value[1]), 1)
1102
1102
  ]),
1103
1103
  _: 1
@@ -1108,14 +1108,14 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1108
1108
  r.configType === "basic" ? (f(), k("span", yo, w(e(t)("form.hint.advanced")), 1)) : x("", !0)
1109
1109
  ]),
1110
1110
  u(me, { name: "appear" }, {
1111
- default: v(() => {
1111
+ default: m(() => {
1112
1112
  var T;
1113
1113
  return [
1114
1114
  a.value.paths && b.value.has(e(o).PATHS) ? (f(), V(uo, {
1115
1115
  key: "paths-container",
1116
1116
  modelValue: a.value.paths,
1117
1117
  "onUpdate:modelValue": d[0] || (d[0] = (_) => a.value.paths = _),
1118
- onAdd: d[1] || (d[1] = (_) => m(e(o).PATHS)),
1118
+ onAdd: d[1] || (d[1] = (_) => g(e(o).PATHS)),
1119
1119
  onRemove: d[2] || (d[2] = (_) => y(e(o).PATHS, _))
1120
1120
  }, null, 8, ["modelValue"])) : x("", !0),
1121
1121
  c(["http", "https", "ws", "wss"]) ? (f(), V(I, {
@@ -1142,35 +1142,35 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1142
1142
  key: "hosts-container",
1143
1143
  modelValue: a.value.hosts,
1144
1144
  "onUpdate:modelValue": d[6] || (d[6] = (_) => a.value.hosts = _),
1145
- onAdd: d[7] || (d[7] = (_) => m(e(o).HOSTS)),
1145
+ onAdd: d[7] || (d[7] = (_) => g(e(o).HOSTS)),
1146
1146
  onRemove: d[8] || (d[8] = (_) => y(e(o).HOSTS, _))
1147
1147
  }, null, 8, ["modelValue"])) : x("", !0),
1148
1148
  a.value.headers && r.configType === "advanced" && b.value.has(e(o).HEADERS) ? (f(), V(Zt, {
1149
1149
  key: "headers-container",
1150
1150
  modelValue: a.value.headers,
1151
1151
  "onUpdate:modelValue": d[9] || (d[9] = (_) => a.value.headers = _),
1152
- onAdd: d[10] || (d[10] = (_) => m(e(o).HEADERS)),
1152
+ onAdd: d[10] || (d[10] = (_) => g(e(o).HEADERS)),
1153
1153
  onRemove: d[11] || (d[11] = (_) => y(e(o).HEADERS, _))
1154
1154
  }, null, 8, ["modelValue"])) : x("", !0),
1155
1155
  a.value.sources && b.value.has(e(o).SOURCES) ? (f(), V(ho, {
1156
1156
  key: "sources-container",
1157
1157
  modelValue: a.value.sources,
1158
1158
  "onUpdate:modelValue": d[12] || (d[12] = (_) => a.value.sources = _),
1159
- onAdd: d[13] || (d[13] = (_) => m(e(o).SOURCES)),
1159
+ onAdd: d[13] || (d[13] = (_) => g(e(o).SOURCES)),
1160
1160
  onRemove: d[14] || (d[14] = (_) => y(e(o).SOURCES, _))
1161
1161
  }, null, 8, ["modelValue"])) : x("", !0),
1162
1162
  a.value.destinations && b.value.has(e(o).DESTINATIONS) ? (f(), V(Jt, {
1163
1163
  key: "destinations-container",
1164
1164
  modelValue: a.value.destinations,
1165
1165
  "onUpdate:modelValue": d[15] || (d[15] = (_) => a.value.destinations = _),
1166
- onAdd: d[16] || (d[16] = (_) => m(e(o).DESTINATIONS)),
1166
+ onAdd: d[16] || (d[16] = (_) => g(e(o).DESTINATIONS)),
1167
1167
  onRemove: d[17] || (d[17] = (_) => y(e(o).DESTINATIONS, _))
1168
1168
  }, null, 8, ["modelValue"])) : x("", !0),
1169
1169
  a.value.snis && r.configType === "advanced" && b.value.has(e(o).SNIS) ? (f(), V(fo, {
1170
1170
  key: "snis-container",
1171
1171
  modelValue: a.value.snis,
1172
1172
  "onUpdate:modelValue": d[18] || (d[18] = (_) => a.value.snis = _),
1173
- onAdd: d[19] || (d[19] = (_) => m(e(o).SNIS)),
1173
+ onAdd: d[19] || (d[19] = (_) => g(e(o).SNIS)),
1174
1174
  onRemove: d[20] || (d[20] = (_) => y(e(o).SNIS, _))
1175
1175
  }, null, 8, ["modelValue"])) : x("", !0)
1176
1176
  ];
@@ -1178,7 +1178,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1178
1178
  _: 1
1179
1179
  }),
1180
1180
  r.hideAdvanced ? x("", !0) : (f(), k("div", bo, [
1181
- (g = a.value.paths) != null && g.some(Boolean) ? (f(), V($, {
1181
+ (h = a.value.paths) != null && h.some(Boolean) ? (f(), V($, {
1182
1182
  key: 0,
1183
1183
  modelValue: a.value.path_handling,
1184
1184
  "onUpdate:modelValue": d[21] || (d[21] = (T) => a.value.path_handling = T),
@@ -1270,27 +1270,27 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1270
1270
  render: () => Ke("div", p("form.expressions_editor.loading"))
1271
1271
  }, i = {
1272
1272
  render: () => Ke("div", p("form.expressions_editor.error"))
1273
- }, h = rt({
1274
- loader: async () => import("./RouteFormExpressionsEditor-C9V2xFxS.js"),
1273
+ }, v = rt({
1274
+ loader: async () => import("./RouteFormExpressionsEditor-BYw4B361.js"),
1275
1275
  loadingComponent: t,
1276
1276
  errorComponent: i
1277
- }), a = s, A = N, m = q(ye.LOADING), y = z(s, "modelValue"), c = (b) => {
1277
+ }), a = s, A = N, g = q(ye.LOADING), y = z(s, "modelValue"), c = (b) => {
1278
1278
  y.value = b;
1279
1279
  };
1280
1280
  return Qe(async () => {
1281
1281
  try {
1282
- await (await import("@kong-ui-public/expressions")).asyncInit, m.value = ye.READY;
1282
+ await (await import("@kong-ui-public/expressions")).asyncInit, g.value = ye.READY;
1283
1283
  } catch (b) {
1284
- m.value = ye.ERROR, console.error(b);
1284
+ g.value = ye.ERROR, console.error(b);
1285
1285
  }
1286
1286
  }), (b, D) => (f(), k(G, null, [
1287
- m.value === e(ye).ERROR ? (f(), V(Fe(i), {
1287
+ g.value === e(ye).ERROR ? (f(), V(Fe(i), {
1288
1288
  key: 0,
1289
1289
  "data-testid": "route-form-expressions-editor-loader-error"
1290
- })) : m.value === e(ye).LOADING ? (f(), V(Fe(t), {
1290
+ })) : g.value === e(ye).LOADING ? (f(), V(Fe(t), {
1291
1291
  key: 1,
1292
1292
  "data-testid": "route-form-expressions-editor-loader-loading"
1293
- })) : (f(), V(e(h), {
1293
+ })) : (f(), V(e(v), {
1294
1294
  key: 2,
1295
1295
  modelValue: y.value,
1296
1296
  "onUpdate:modelValue": D[0] || (D[0] = (F) => y.value = F),
@@ -1298,7 +1298,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1298
1298
  "show-expressions-modal-entry": b.showExpressionsModalEntry,
1299
1299
  onNotify: D[1] || (D[1] = (F) => A("notify", F))
1300
1300
  }, {
1301
- default: v(() => [
1301
+ default: m(() => [
1302
1302
  u(e(At), { size: e(Wt) }, null, 8, ["size"]),
1303
1303
  B("span", null, w(e(p)("form.expression_playground.test_link")), 1)
1304
1304
  ]),
@@ -1306,7 +1306,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1306
1306
  }, 8, ["modelValue", "protocol", "show-expressions-modal-entry"])),
1307
1307
  Me(b.$slots, "after-editor", {
1308
1308
  expression: { value: y.value, update: c },
1309
- state: m.value
1309
+ state: g.value
1310
1310
  })
1311
1311
  ], 64));
1312
1312
  }
@@ -1323,12 +1323,12 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1323
1323
  }),
1324
1324
  emits: /* @__PURE__ */ Z(["notify"], ["update:fields"]),
1325
1325
  setup(s, { emit: N }) {
1326
- const { i18n: { t: p } } = Y.useI18n(), t = s, i = z(s, "fields"), h = N, a = q(!0), A = H(() => t.protocols.split(",") || []), m = (y) => y.some((c) => t.protocols.includes(c));
1326
+ const { i18n: { t: p } } = Y.useI18n(), t = s, i = z(s, "fields"), v = N, a = q(!0), A = H(() => t.protocols.split(",") || []), g = (y) => y.some((c) => t.protocols.includes(c));
1327
1327
  return (y, c) => {
1328
1328
  const b = C("KCard"), D = C("KSelect"), F = C("KInput"), r = C("KCheckbox"), d = C("KCollapse");
1329
1329
  return f(), k(G, null, [
1330
1330
  u(b, null, {
1331
- title: v(() => [
1331
+ title: m(() => [
1332
1332
  B("div", Io, [
1333
1333
  (f(!0), k(G, null, le(A.value, (I) => (f(), k("span", {
1334
1334
  key: I,
@@ -1337,15 +1337,15 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1337
1337
  B("span", To, w(e(p)("form.sections.routingExpression.title")), 1)
1338
1338
  ])
1339
1339
  ]),
1340
- default: v(() => [
1340
+ default: m(() => [
1341
1341
  u(_o, {
1342
1342
  modelValue: i.value.expression,
1343
1343
  "onUpdate:modelValue": c[0] || (c[0] = (I) => i.value.expression = I),
1344
1344
  protocol: A.value[0],
1345
1345
  "show-expressions-modal-entry": y.showExpressionsModalEntry,
1346
- onNotify: c[1] || (c[1] = (I) => h("notify", I))
1346
+ onNotify: c[1] || (c[1] = (I) => v("notify", I))
1347
1347
  }, {
1348
- "after-editor": v((I) => [
1348
+ "after-editor": m((I) => [
1349
1349
  Me(y.$slots, "after-expressions-editor", {
1350
1350
  expression: I.expression,
1351
1351
  state: I.state
@@ -1363,9 +1363,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1363
1363
  "trigger-alignment": "leading",
1364
1364
  "trigger-label": e(p)("form.show_more")
1365
1365
  }, {
1366
- default: v(() => [
1366
+ default: m(() => [
1367
1367
  u(b, null, {
1368
- default: v(() => [
1368
+ default: m(() => [
1369
1369
  B("div", Eo, [
1370
1370
  u(D, {
1371
1371
  modelValue: i.value.https_redirect_status_code,
@@ -1389,7 +1389,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1389
1389
  readonly: y.readonly,
1390
1390
  type: "number"
1391
1391
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1392
- m(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (f(), V(r, {
1392
+ g(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (f(), V(r, {
1393
1393
  key: 0,
1394
1394
  modelValue: i.value.strip_path,
1395
1395
  "onUpdate:modelValue": c[4] || (c[4] = (I) => i.value.strip_path = I),
@@ -1459,72 +1459,72 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1459
1459
  }),
1460
1460
  emits: /* @__PURE__ */ Z(["notify", "update:payload", "update:protocols"], ["update:configType", "update:configFlavor", "update:fields", "update:customMethods"]),
1461
1461
  setup(s, { emit: N }) {
1462
- const p = s, t = z(s, "configType"), i = z(s, "configFlavor"), h = z(s, "fields"), a = z(s, "customMethods"), A = N, { i18n: { t: m } } = Y.useI18n(), y = [
1462
+ const p = s, t = z(s, "configType"), i = z(s, "configFlavor"), v = z(s, "fields"), a = z(s, "customMethods"), A = N, { i18n: { t: g } } = Y.useI18n(), y = [
1463
1463
  {
1464
1464
  value: L.TRADITIONAL,
1465
- label: m("form.flavors.traditional")
1465
+ label: g("form.flavors.traditional")
1466
1466
  },
1467
1467
  {
1468
1468
  value: L.EXPRESSIONS,
1469
- label: m("form.flavors.expressions")
1469
+ label: g("form.flavors.expressions")
1470
1470
  }
1471
1471
  ], c = H(() => [
1472
- { label: m("form.protocols.grpc"), value: "grpc" },
1473
- { label: m("form.protocols.grpcs"), value: "grpcs" },
1474
- { label: m("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
1475
- { label: m("form.protocols.http"), value: "http" },
1476
- { label: m("form.protocols.https"), value: "https" },
1477
- { label: m("form.protocols.http,https"), value: "http,https" },
1478
- { label: m("form.protocols.tcp"), value: "tcp" },
1479
- { label: m("form.protocols.tls"), value: "tls" },
1480
- { label: m("form.protocols.tls,udp"), value: "tls,udp" },
1481
- { label: m("form.protocols.tcp,udp"), value: "tcp,udp" },
1482
- { label: m("form.protocols.tcp,tls"), value: "tcp,tls" },
1483
- { label: m("form.protocols.tcp,tls,udp"), value: "tcp,tls,udp" },
1484
- { label: m("form.protocols.tls_passthrough"), value: "tls_passthrough" },
1485
- { label: m("form.protocols.udp"), value: "udp" },
1472
+ { label: g("form.protocols.grpc"), value: "grpc" },
1473
+ { label: g("form.protocols.grpcs"), value: "grpcs" },
1474
+ { label: g("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
1475
+ { label: g("form.protocols.http"), value: "http" },
1476
+ { label: g("form.protocols.https"), value: "https" },
1477
+ { label: g("form.protocols.http,https"), value: "http,https" },
1478
+ { label: g("form.protocols.tcp"), value: "tcp" },
1479
+ { label: g("form.protocols.tls"), value: "tls" },
1480
+ { label: g("form.protocols.tls,udp"), value: "tls,udp" },
1481
+ { label: g("form.protocols.tcp,udp"), value: "tcp,udp" },
1482
+ { label: g("form.protocols.tcp,tls"), value: "tcp,tls" },
1483
+ { label: g("form.protocols.tcp,tls,udp"), value: "tcp,tls,udp" },
1484
+ { label: g("form.protocols.tls_passthrough"), value: "tls_passthrough" },
1485
+ { label: g("form.protocols.udp"), value: "udp" },
1486
1486
  ...p.isWsSupported ? [
1487
- { label: m("form.protocols.ws"), value: "ws" },
1488
- { label: m("form.protocols.wss"), value: "wss" },
1489
- { label: m("form.protocols.ws,wss"), value: "ws,wss" }
1487
+ { label: g("form.protocols.ws"), value: "ws" },
1488
+ { label: g("form.protocols.wss"), value: "wss" },
1489
+ { label: g("form.protocols.ws,wss"), value: "ws,wss" }
1490
1490
  ] : []
1491
- ]), b = H(() => p.recordFlavor ? p.recordFlavor : i.value), D = (g, T) => {
1492
- if (!new Set($e[p.protocols]).has(g))
1491
+ ]), b = H(() => p.recordFlavor ? p.recordFlavor : i.value), D = (h, T) => {
1492
+ if (!new Set($e[p.protocols]).has(h))
1493
1493
  return [];
1494
- if ([o.PATHS, o.HOSTS, o.METHODS, o.SNIS].includes(g))
1494
+ if ([o.PATHS, o.HOSTS, o.METHODS, o.SNIS].includes(h))
1495
1495
  return [...T].filter((K) => !!K);
1496
- if (g === o.SOURCES || g === o.DESTINATIONS)
1496
+ if (h === o.SOURCES || h === o.DESTINATIONS)
1497
1497
  return [...T].filter((K) => !!K.ip).map((K) => ({
1498
1498
  ...K,
1499
1499
  port: !K.port && K.port !== 0 ? null : K.port
1500
1500
  }));
1501
- if (g === o.HEADERS)
1501
+ if (h === o.HEADERS)
1502
1502
  return [...T].filter((K) => !!K.header);
1503
- }, F = (g) => g.some((T) => p.protocols.includes(T)), r = () => {
1503
+ }, F = (h) => h.some((T) => p.protocols.includes(T)), r = () => {
1504
1504
  if (b.value !== L.TRADITIONAL)
1505
1505
  return null;
1506
- const g = h.value, T = D(o.HEADERS, g.headers || []) || W[o.HEADERS];
1506
+ const h = v.value, T = D(o.HEADERS, h.headers || []) || W[o.HEADERS];
1507
1507
  return T.length === 0 ? null : T.reduce((_, K) => (_[K.header] = K.values.split(","), _), {});
1508
- }, d = H(() => (h.value.methods || []).filter((_) => Object.keys(_e).includes(_)).concat(a.value.map((_) => _.label.toUpperCase()))), I = (g) => g != null && g.length ? g : null, $ = H(() => ({
1509
- https_redirect_status_code: h.value.https_redirect_status_code,
1510
- strip_path: F(["http", "https", "ws", "wss"]) ? h.value.strip_path : !1,
1511
- preserve_host: h.value.preserve_host,
1512
- request_buffering: h.value.request_buffering,
1513
- response_buffering: h.value.response_buffering
1508
+ }, d = H(() => (v.value.methods || []).filter((_) => Object.keys(_e).includes(_)).concat(a.value.map((_) => _.label.toUpperCase()))), I = (h) => h != null && h.length ? h : null, $ = H(() => ({
1509
+ https_redirect_status_code: v.value.https_redirect_status_code,
1510
+ strip_path: F(["http", "https", "ws", "wss"]) ? v.value.strip_path : !1,
1511
+ preserve_host: v.value.preserve_host,
1512
+ request_buffering: v.value.request_buffering,
1513
+ response_buffering: v.value.response_buffering
1514
1514
  })), j = H(() => {
1515
1515
  switch (b.value) {
1516
1516
  case L.TRADITIONAL: {
1517
- const g = h.value, T = I(D(o.PATHS, g.paths || [])), _ = I(D(o.HOSTS, g.hosts || [])), K = {
1517
+ const h = v.value, T = I(D(o.PATHS, h.paths || [])), _ = I(D(o.HOSTS, h.hosts || [])), K = {
1518
1518
  ...$.value,
1519
1519
  methods: I(D(o.METHODS, d.value)),
1520
1520
  hosts: t.value === "basic" && _ ? _.slice(0, 1) : _,
1521
1521
  paths: t.value === "basic" && T ? T.slice(0, 1) : T,
1522
1522
  headers: t.value === "basic" ? null : r(),
1523
- regex_priority: Number(g.regex_priority),
1524
- path_handling: g.path_handling,
1525
- sources: I(D(o.SOURCES, g.sources || [])),
1526
- destinations: I(D(o.DESTINATIONS, g.destinations || [])),
1527
- snis: t.value === "basic" ? null : I(D(o.SNIS, g.snis || []))
1523
+ regex_priority: Number(h.regex_priority),
1524
+ path_handling: h.path_handling,
1525
+ sources: I(D(o.SOURCES, h.sources || [])),
1526
+ destinations: I(D(o.DESTINATIONS, h.destinations || [])),
1527
+ snis: t.value === "basic" ? null : I(D(o.SNIS, h.snis || []))
1528
1528
  };
1529
1529
  return {
1530
1530
  type: b.value,
@@ -1532,33 +1532,33 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1532
1532
  };
1533
1533
  }
1534
1534
  case L.EXPRESSIONS: {
1535
- const g = h.value;
1535
+ const h = v.value;
1536
1536
  return {
1537
1537
  type: b.value,
1538
1538
  payload: {
1539
1539
  ...$.value,
1540
- expression: g.expression,
1541
- priority: Number(g.priority)
1540
+ expression: h.expression,
1541
+ priority: Number(h.priority)
1542
1542
  }
1543
1543
  };
1544
1544
  }
1545
1545
  default:
1546
1546
  return;
1547
1547
  }
1548
- }), X = (g) => {
1549
- g && A("update:protocols", g);
1548
+ }), X = (h) => {
1549
+ h && A("update:protocols", h);
1550
1550
  };
1551
- return be([() => p.recordFlavor, () => p.routeFlavors], ([g, T]) => {
1552
- if (g) {
1553
- i.value = g;
1551
+ return be([() => p.recordFlavor, () => p.routeFlavors], ([h, T]) => {
1552
+ if (h) {
1553
+ i.value = h;
1554
1554
  return;
1555
1555
  }
1556
1556
  i.value = !T.traditional && T.expressions ? L.EXPRESSIONS : L.TRADITIONAL;
1557
- }, { immediate: !0, deep: !0 }), be(t, (g) => {
1558
- g === "basic" && (i.value = L.TRADITIONAL, A("update:protocols", "http,https"));
1559
- }), be(j, (g) => {
1560
- A("update:payload", g);
1561
- }, { deep: !0, immediate: !0 }), (g, T) => {
1557
+ }, { immediate: !0, deep: !0 }), be(t, (h) => {
1558
+ h === "basic" && (i.value = L.TRADITIONAL, A("update:protocols", "http,https"));
1559
+ }), be(j, (h) => {
1560
+ A("update:payload", h);
1561
+ }, { deep: !0, immediate: !0 }), (h, T) => {
1562
1562
  const _ = C("KRadio"), K = C("KLabel"), Ee = C("KTooltip"), Re = C("KSegmentedControl"), Q = C("KAlert"), ve = C("KSelect");
1563
1563
  return f(), k(G, null, [
1564
1564
  B("div", Oo, [
@@ -1568,9 +1568,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1568
1568
  card: "",
1569
1569
  "card-orientation": "horizontal",
1570
1570
  "data-testid": "route-form-config-type-basic",
1571
- description: e(m)("form.config_types.basic.description"),
1572
- disabled: !g.routeFlavors.traditional || g.recordFlavor === e(L).EXPRESSIONS,
1573
- label: e(m)("form.config_types.basic.label"),
1571
+ description: e(g)("form.config_types.basic.description"),
1572
+ disabled: !h.routeFlavors.traditional || h.recordFlavor === e(L).EXPRESSIONS,
1573
+ label: e(g)("form.config_types.basic.label"),
1574
1574
  "selected-value": "basic"
1575
1575
  }, null, 8, ["modelValue", "description", "disabled", "label"]),
1576
1576
  u(_, {
@@ -1579,8 +1579,8 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1579
1579
  card: "",
1580
1580
  "card-orientation": "horizontal",
1581
1581
  "data-testid": "route-form-config-type-advanced",
1582
- description: e(m)("form.config_types.advanced.description"),
1583
- label: e(m)("form.config_types.advanced.label"),
1582
+ description: e(g)("form.config_types.advanced.description"),
1583
+ label: e(g)("form.config_types.advanced.label"),
1584
1584
  "selected-value": "advanced"
1585
1585
  }, null, 8, ["modelValue", "description", "label"])
1586
1586
  ]),
@@ -1588,17 +1588,17 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1588
1588
  key: 0,
1589
1589
  "custom-methods": a.value,
1590
1590
  "onUpdate:customMethods": T[2] || (T[2] = (U) => a.value = U),
1591
- fields: h.value,
1592
- "onUpdate:fields": T[3] || (T[3] = (U) => h.value = U),
1591
+ fields: v.value,
1592
+ "onUpdate:fields": T[3] || (T[3] = (U) => v.value = U),
1593
1593
  "config-type": "basic",
1594
1594
  "hide-advanced": "",
1595
- protocols: g.protocols,
1596
- readonly: g.readonly
1595
+ protocols: h.protocols,
1596
+ readonly: h.readonly
1597
1597
  }, null, 8, ["custom-methods", "fields", "protocols", "readonly"])) : (f(), k(G, { key: 1 }, [
1598
- g.routeFlavors.traditional && g.routeFlavors.expressions ? (f(), k("div", ko, [
1598
+ h.routeFlavors.traditional && h.routeFlavors.expressions ? (f(), k("div", ko, [
1599
1599
  u(K, { class: "config-flavor-label" }, {
1600
- default: v(() => [
1601
- P(w(e(m)("form.config_flavor.label")), 1)
1600
+ default: m(() => [
1601
+ P(w(e(g)("form.config_flavor.label")), 1)
1602
1602
  ]),
1603
1603
  _: 1
1604
1604
  }),
@@ -1609,17 +1609,17 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1609
1609
  "data-testid": "route-form-config-flavor",
1610
1610
  options: y
1611
1611
  }, {
1612
- "option-label": v(({ option: U }) => {
1612
+ "option-label": m(({ option: U }) => {
1613
1613
  var ce, ne;
1614
1614
  return [
1615
1615
  B("span", null, w(U.label), 1),
1616
- (ce = g.tooltips) != null && ce[U.value] ? (f(), V(Ee, {
1616
+ (ce = h.tooltips) != null && ce[U.value] ? (f(), V(Ee, {
1617
1617
  key: 0,
1618
1618
  class: "route-form-config-tabs-tooltip",
1619
- text: (ne = g.tooltips) == null ? void 0 : ne[U.value],
1619
+ text: (ne = h.tooltips) == null ? void 0 : ne[U.value],
1620
1620
  "tooltip-id": `route-form-config-tabs-tooltip-${U.value}`
1621
1621
  }, {
1622
- default: v(() => [
1622
+ default: m(() => [
1623
1623
  u(e(Ot))
1624
1624
  ]),
1625
1625
  _: 2
@@ -1629,33 +1629,33 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1629
1629
  _: 1
1630
1630
  }, 8, ["modelValue"])
1631
1631
  ])) : x("", !0),
1632
- g.routeFlavors.traditional && g.routeFlavors.expressions && (!g.recordFlavor || g.recordFlavor !== i.value) ? (f(), V(Q, {
1632
+ h.routeFlavors.traditional && h.routeFlavors.expressions && (!h.recordFlavor || h.recordFlavor !== i.value) ? (f(), V(Q, {
1633
1633
  key: 1,
1634
- appearance: g.recordFlavor ? "warning" : "info",
1634
+ appearance: h.recordFlavor ? "warning" : "info",
1635
1635
  class: "route-form-config-type-immutable-alert",
1636
1636
  "data-testid": "route-config-type-immutable-alert"
1637
1637
  }, {
1638
- default: v(() => [
1639
- g.recordFlavor ? g.recordFlavor !== i.value ? (f(), k(G, { key: 1 }, [
1640
- P(w(e(m)("form.warning.cannotChangeFlavor.edit", { format: e(m)(`form.flavors.${g.recordFlavor}`) })), 1)
1638
+ default: m(() => [
1639
+ h.recordFlavor ? h.recordFlavor !== i.value ? (f(), k(G, { key: 1 }, [
1640
+ P(w(e(g)("form.warning.cannotChangeFlavor.edit", { format: e(g)(`form.flavors.${h.recordFlavor}`) })), 1)
1641
1641
  ], 64)) : x("", !0) : (f(), k(G, { key: 0 }, [
1642
- P(w(e(m)("form.warning.cannotChangeFlavor.create")), 1)
1642
+ P(w(e(g)("form.warning.cannotChangeFlavor.create")), 1)
1643
1643
  ], 64))
1644
1644
  ]),
1645
1645
  _: 1
1646
1646
  }, 8, ["appearance"])) : x("", !0),
1647
- !g.recordFlavor || !(g.routeFlavors.traditional && g.routeFlavors.expressions && g.recordFlavor !== i.value) ? (f(), k(G, { key: 2 }, [
1648
- g.hideProtocols ? x("", !0) : (f(), V(ve, {
1647
+ !h.recordFlavor || !(h.routeFlavors.traditional && h.routeFlavors.expressions && h.recordFlavor !== i.value) ? (f(), k(G, { key: 2 }, [
1648
+ h.hideProtocols ? x("", !0) : (f(), V(ve, {
1649
1649
  key: 0,
1650
1650
  "data-testid": "route-form-protocols",
1651
1651
  items: c.value,
1652
- label: e(m)("form.fields.protocols.label"),
1652
+ label: e(g)("form.fields.protocols.label"),
1653
1653
  "label-attributes": {
1654
- info: e(m)("form.fields.protocols.tooltip"),
1654
+ info: e(g)("form.fields.protocols.tooltip"),
1655
1655
  tooltipAttributes: { maxWidth: "400" }
1656
1656
  },
1657
- "model-value": g.protocols,
1658
- readonly: g.readonly,
1657
+ "model-value": h.protocols,
1658
+ readonly: h.readonly,
1659
1659
  required: "",
1660
1660
  width: "100%",
1661
1661
  "onUpdate:modelValue": X
@@ -1664,18 +1664,18 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1664
1664
  key: 1,
1665
1665
  "custom-methods": a.value,
1666
1666
  "onUpdate:customMethods": T[5] || (T[5] = (U) => a.value = U),
1667
- fields: h.value,
1668
- "onUpdate:fields": T[6] || (T[6] = (U) => h.value = U),
1667
+ fields: v.value,
1668
+ "onUpdate:fields": T[6] || (T[6] = (U) => v.value = U),
1669
1669
  "config-type": "advanced",
1670
- protocols: g.protocols,
1671
- readonly: g.readonly
1670
+ protocols: h.protocols,
1671
+ readonly: h.readonly
1672
1672
  }, null, 8, ["custom-methods", "fields", "protocols", "readonly"])) : (f(), V(Ao, {
1673
1673
  key: 2,
1674
- fields: h.value,
1675
- "onUpdate:fields": T[7] || (T[7] = (U) => h.value = U),
1676
- protocols: g.protocols,
1677
- readonly: g.readonly,
1678
- "show-expressions-modal-entry": g.showExpressionsModalEntry,
1674
+ fields: v.value,
1675
+ "onUpdate:fields": T[7] || (T[7] = (U) => v.value = U),
1676
+ protocols: h.protocols,
1677
+ readonly: h.readonly,
1678
+ "show-expressions-modal-entry": h.showExpressionsModalEntry,
1679
1679
  onNotify: T[8] || (T[8] = (U) => A("notify", U))
1680
1680
  }, null, 8, ["fields", "protocols", "readonly", "show-expressions-modal-entry"]))
1681
1681
  ], 64)) : x("", !0)
@@ -1684,15 +1684,15 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1684
1684
  };
1685
1685
  }
1686
1686
  }), No = /* @__PURE__ */ ee(Co, [["__scopeId", "data-v-893fc5e4"]]), wo = (s) => {
1687
- var p, t, i, h, a, A;
1688
- return !(typeof s.expression == "string" && s.expression.length > 0 || (s.protocols || []).sort().join(",") !== "http,https" || ((p = s[o.PATHS]) == null ? void 0 : p.length) > 1 || ((t = s[o.HOSTS]) == null ? void 0 : t.length) > 1 || ((i = s[o.HEADERS]) == null ? void 0 : i.length) > 0 || ((h = s[o.SNIS]) == null ? void 0 : h.length) > 0 || ((a = s[o.SOURCES]) == null ? void 0 : a.length) > 0 || ((A = s[o.DESTINATIONS]) == null ? void 0 : A.length) > 0 || [
1687
+ var p, t, i, v, a;
1688
+ return !(typeof s.expression == "string" && s.expression.length > 0 || (s.protocols || []).sort().join(",") !== "http,https" || ((p = s[o.PATHS]) == null ? void 0 : p.length) > 1 || ((t = s[o.HOSTS]) == null ? void 0 : t.length) > 1 || s[o.HEADERS] && typeof s[o.HEADERS] == "object" || ((i = s[o.SNIS]) == null ? void 0 : i.length) > 0 || ((v = s[o.SOURCES]) == null ? void 0 : v.length) > 0 || ((a = s[o.DESTINATIONS]) == null ? void 0 : a.length) > 0 || [
1689
1689
  "path_handling",
1690
1690
  "regex_priority",
1691
1691
  "https_redirect_status_code",
1692
1692
  "preserve_host",
1693
1693
  "request_buffering",
1694
1694
  "response_buffering"
1695
- ].some((m) => s[m] !== Kt[m]));
1695
+ ].some((A) => s[A] !== Kt[A]));
1696
1696
  }, Vo = { class: "kong-ui-entities-route-form" }, Do = { key: 1 }, Ho = { "data-testid": "no-search-results" }, Uo = { class: "route-form-service-dropdown-item" }, Po = { class: "select-item-label" }, $o = { class: "select-item-description" }, Mo = /* @__PURE__ */ J({
1697
1697
  __name: "RouteForm",
1698
1698
  props: {
@@ -1757,9 +1757,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1757
1757
  emits: ["update", "error", "loading", "model-updated", "notify"],
1758
1758
  setup(s, { expose: N, emit: p }) {
1759
1759
  var ge;
1760
- const t = s, i = p, h = q("basic"), a = q(
1760
+ const t = s, i = p, v = q("basic"), a = q(
1761
1761
  !t.routeFlavors.traditional && t.routeFlavors.expressions ? L.EXPRESSIONS : L.TRADITIONAL
1762
- ), A = q(void 0), m = H(() => {
1762
+ ), A = q(void 0), g = H(() => {
1763
1763
  if (A.value)
1764
1764
  return A.value;
1765
1765
  if (a.value)
@@ -1792,7 +1792,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1792
1792
  errorMessage: ""
1793
1793
  });
1794
1794
  be(() => t.routeFlavors, (l) => {
1795
- r.routeFlavors = l, l.traditional || (h.value = "advanced");
1795
+ r.routeFlavors = l, l.traditional || (v.value = "advanced");
1796
1796
  }, { immediate: !0, deep: !0 });
1797
1797
  const d = q(), I = q([]), $ = q([]), j = Ce({
1798
1798
  name: "",
@@ -1810,7 +1810,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1810
1810
  supportedRange: {
1811
1811
  enterprise: ["3.0"]
1812
1812
  }
1813
- }), g = H(() => t.routeId ? Be.Edit : Be.Create), T = H(() => {
1813
+ }), h = H(() => t.routeId ? Be.Edit : Be.Create), T = H(() => {
1814
1814
  var l, n, S;
1815
1815
  return (S = (n = Se.form[(l = t.config) == null ? void 0 : l.app]) == null ? void 0 : n.fetch) == null ? void 0 : S[t.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, t.serviceId || "");
1816
1816
  }), _ = () => {
@@ -1827,13 +1827,13 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1827
1827
  var S, R;
1828
1828
  if (t.routeId) {
1829
1829
  const E = typeof l.expression == "string" && l.expression.length > 0 ? L.EXPRESSIONS : L.TRADITIONAL;
1830
- A.value = E, wo(l) || (h.value = "advanced");
1830
+ A.value = E, wo(l) || (v.value = "advanced");
1831
1831
  }
1832
1832
  (S = l == null ? void 0 : l.service) != null && S.id && (r.fields.service_id = l.service.id), r.fields.name = (l == null ? void 0 : l.name) || "";
1833
1833
  const n = (l == null ? void 0 : l.tags) || [];
1834
1834
  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, Xe(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((E) => Object.keys(_e).includes(E)), I.value = l.methods.filter((E) => !Object.keys(_e).includes(E)).map((E) => ({ label: E, value: E })), $.value = [...I.value]), l != null && l.headers && (r.fields.headers = Re(l.headers)), l != null && l.sources && (r.fields.sources = l.sources), l != null && l.destinations && (r.fields.destinations = l.destinations)), ze(r) && (r.fields.expression = (l == null ? void 0 : l.expression) || "", r.fields.priority = (l == null ? void 0 : l.priority) || 0), Object.assign(j, JSON.parse(JSON.stringify(r.fields)));
1835
1835
  }, U = H(() => {
1836
- switch (m.value) {
1836
+ switch (g.value) {
1837
1837
  case L.TRADITIONAL: {
1838
1838
  if (Xe(r)) {
1839
1839
  const l = r.fields.hosts ? !!r.fields.hosts.filter(Boolean).length : null, n = r.fields.paths ? !!r.fields.paths.filter(Boolean).length : null, S = r.fields.headers ? r.fields.headers.some(({ header: ae }) => !!ae) : null, R = r.fields.snis ? !!r.fields.snis.filter(Boolean).length : null, E = r.fields.destinations ? r.fields.destinations.some(({ ip: ae }) => !!ae) : null, te = r.fields.sources ? r.fields.sources.some(({ ip: ae }) => !!ae) : null, re = r.fields.methods ? !!r.fields.methods.filter(Boolean).length : null;
@@ -1850,7 +1850,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1850
1850
  return !0;
1851
1851
  }), ce = H(() => !We(r.fields, j) || !We(I.value, $.value)), ne = H(() => {
1852
1852
  var n, S;
1853
- let l = `${t.config.apiBaseUrl}${Se.form[t.config.app][g.value][t.serviceId ? "forGatewayService" : "all"]}`;
1853
+ let l = `${t.config.apiBaseUrl}${Se.form[t.config.app][h.value][t.serviceId ? "forGatewayService" : "all"]}`;
1854
1854
  return t.config.app === "konnect" ? l = l.replace(/{controlPlaneId}/gi, ((n = t.config) == null ? void 0 : n.controlPlaneId) || "").replace(/{serviceId}/gi, t.serviceId || "") : t.config.app === "kongManager" && (l = l.replace(/\/{workspace}/gi, (S = t.config) != null && S.workspace ? `/${t.config.workspace}` : "").replace(/{serviceId}/gi, t.serviceId || "")), l = l.replace(/{id}/gi, t.routeId), l;
1855
1855
  });
1856
1856
  be(() => r.fields, () => {
@@ -1866,7 +1866,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1866
1866
  ...(S = d.value) == null ? void 0 : S.payload
1867
1867
  };
1868
1868
  }), ie = (l) => {
1869
- switch (m.value) {
1869
+ switch (g.value) {
1870
1870
  case L.TRADITIONAL: {
1871
1871
  if (!("regex_priority" in l && "path_handling" in l))
1872
1872
  return !1;
@@ -1885,7 +1885,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1885
1885
  try {
1886
1886
  r.isReadonly = !0;
1887
1887
  let R;
1888
- g.value === "create" ? R = await b.post(ne.value, n) : g.value === "edit" && (R = ((S = t.config) == null ? void 0 : S.app) === "konnect" ? await b.put(ne.value, n) : await b.patch(ne.value, n)), ve(R == null ? void 0 : R.data), i("update", R == null ? void 0 : R.data);
1888
+ h.value === "create" ? R = await b.post(ne.value, n) : h.value === "edit" && (R = ((S = t.config) == null ? void 0 : S.app) === "konnect" ? await b.put(ne.value, n) : await b.patch(ne.value, n)), ve(R == null ? void 0 : R.data), i("update", R == null ? void 0 : R.data);
1889
1889
  } catch (R) {
1890
1890
  r.errorMessage = D(R), i("error", R);
1891
1891
  } finally {
@@ -1908,7 +1908,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1908
1908
  !t.hideServiceField && !t.serviceId ? await De() : r.fields.service_id = t.serviceId;
1909
1909
  }), Qe(() => {
1910
1910
  i("model-updated", pe.value);
1911
- }), N({ saveFormData: ue, payload: pe }), at("configType", h), (l, n) => {
1911
+ }), N({ saveFormData: ue, payload: pe }), at("configType", v), (l, n) => {
1912
1912
  const S = C("KInput"), R = C("KSelect");
1913
1913
  return f(), k("div", Vo, [
1914
1914
  u(e(pt), {
@@ -1926,20 +1926,20 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1926
1926
  onLoading: K,
1927
1927
  onSubmit: ue
1928
1928
  }, {
1929
- "form-actions": v(() => [
1929
+ "form-actions": m(() => [
1930
1930
  Me(l.$slots, "form-actions", {
1931
1931
  canSubmit: U.value && ce.value,
1932
1932
  cancel: _,
1933
1933
  submit: ue
1934
1934
  }, void 0, !0)
1935
1935
  ]),
1936
- default: v(() => [
1936
+ default: m(() => [
1937
1937
  u(e(Ge), {
1938
1938
  description: e(y)("form.sections.general.description"),
1939
1939
  "hide-info-header": s.hideSectionsInfo,
1940
1940
  title: e(y)("form.sections.general.title")
1941
1941
  }, {
1942
- default: v(() => [
1942
+ default: m(() => [
1943
1943
  s.hideNameField ? x("", !0) : (f(), V(S, {
1944
1944
  key: 0,
1945
1945
  modelValue: r.fields.name,
@@ -1969,16 +1969,16 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
1969
1969
  width: "100%",
1970
1970
  onQueryChange: e(he)
1971
1971
  }, {
1972
- loading: v(() => [
1972
+ loading: m(() => [
1973
1973
  B("div", null, w(e(y)("actions.loading")), 1)
1974
1974
  ]),
1975
- empty: v(() => [
1975
+ empty: m(() => [
1976
1976
  B("div", Ho, w(e(y)("search.no_results")), 1)
1977
1977
  ]),
1978
- "selected-item-template": v(({ item: E }) => [
1978
+ "selected-item-template": m(({ item: E }) => [
1979
1979
  P(w(F(E)), 1)
1980
1980
  ]),
1981
- "item-template": v(({ item: E }) => [
1981
+ "item-template": m(({ item: E }) => [
1982
1982
  B("div", Uo, [
1983
1983
  B("span", Po, w(E.name), 1),
1984
1984
  B("span", $o, w(E.value), 1)
@@ -2007,12 +2007,12 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2007
2007
  "hide-info-header": s.hideSectionsInfo,
2008
2008
  title: e(y)("form.sections.config.title")
2009
2009
  }, {
2010
- default: v(() => [
2010
+ default: m(() => [
2011
2011
  u(No, {
2012
2012
  "config-flavor": a.value,
2013
2013
  "onUpdate:configFlavor": n[3] || (n[3] = (E) => a.value = E),
2014
- "config-type": h.value,
2015
- "onUpdate:configType": n[4] || (n[4] = (E) => h.value = E),
2014
+ "config-type": v.value,
2015
+ "onUpdate:configType": n[4] || (n[4] = (E) => v.value = E),
2016
2016
  "custom-methods": I.value,
2017
2017
  "onUpdate:customMethods": n[5] || (n[5] = (E) => I.value = E),
2018
2018
  fields: r.fields,
@@ -2108,7 +2108,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2108
2108
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
2109
2109
  setup(s, { emit: N }) {
2110
2110
  var l;
2111
- const p = N, t = s, { i18n: { t: i, formatUnixTimeStamp: h } } = Y.useI18n(), a = et(), { axiosInstance: A } = xe((l = t.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: m, hasRecords: y } = ft(() => j.value), c = H(() => y.value && t.config.app === "konnect"), b = H(() => !t.enableV2EmptyStates && t.config.app === "konnect"), D = H(() => !!t.config.serviceId), F = H(() => t.config.app !== "kongManager" || !!t.config.disableSorting), r = {
2111
+ const p = N, t = s, { i18n: { t: i, formatUnixTimeStamp: v } } = Y.useI18n(), a = et(), { axiosInstance: A } = xe((l = t.config) == null ? void 0 : l.axiosRequestConfig), { handleStateChange: g, hasRecords: y } = ft(() => j.value), c = H(() => y.value && t.config.app === "konnect"), b = H(() => !t.enableV2EmptyStates && t.config.app === "konnect"), D = H(() => !!t.config.serviceId), F = H(() => t.config.app !== "kongManager" || !!t.config.disableSorting), r = {
2112
2112
  // the Name column is non-hidable
2113
2113
  name: { label: i("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
2114
2114
  protocols: { label: i("routes.list.table_headers.protocols"), searchable: !0 },
@@ -2153,7 +2153,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2153
2153
  schema: t.config.filterSchema
2154
2154
  };
2155
2155
  }), {
2156
- fetcher: g,
2156
+ fetcher: h,
2157
2157
  fetcherState: T,
2158
2158
  fetcherCacheKey: _
2159
2159
  } = mt(H(() => ({ ...t.config, cacheIdentifier: t.cacheIdentifier })), $), K = (n) => n.headerKey === "expression" ? {
@@ -2251,7 +2251,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2251
2251
  "empty-state-options": ge.value,
2252
2252
  "enable-entity-actions": "",
2253
2253
  "error-message": Q.value,
2254
- fetcher: e(g),
2254
+ fetcher: e(h),
2255
2255
  "fetcher-cache-key": e(_),
2256
2256
  "pagination-type": "offset",
2257
2257
  "preferences-storage-key": "kong-ui-entities-routes-list",
@@ -2262,16 +2262,16 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2262
2262
  onClearSearchInput: Ee,
2263
2263
  "onClick:row": S[8] || (S[8] = (O) => ce(O)),
2264
2264
  onSort: Re,
2265
- onState: e(m)
2265
+ onState: e(g)
2266
2266
  }, Le({
2267
- "toolbar-filter": v(() => [
2267
+ "toolbar-filter": m(() => [
2268
2268
  u(e(yt), {
2269
2269
  modelValue: j.value,
2270
2270
  "onUpdate:modelValue": S[0] || (S[0] = (O) => j.value = O),
2271
2271
  config: X.value
2272
2272
  }, null, 8, ["modelValue", "config"])
2273
2273
  ]),
2274
- "toolbar-button": v(() => [
2274
+ "toolbar-button": m(() => [
2275
2275
  (f(), V(qe, {
2276
2276
  disabled: !s.useActionOutside,
2277
2277
  to: "#kong-ui-app-page-header-action-button"
@@ -2285,7 +2285,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2285
2285
  icon: "",
2286
2286
  onClick: S[1] || (S[1] = (O) => n.$emit("click:learn-more"))
2287
2287
  }, {
2288
- default: v(() => [
2288
+ default: m(() => [
2289
2289
  u(e(je), { decorative: "" })
2290
2290
  ]),
2291
2291
  _: 1
@@ -2293,14 +2293,14 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2293
2293
  u(e(ke), {
2294
2294
  "auth-function": () => s.canCreate()
2295
2295
  }, {
2296
- default: v(() => [
2296
+ default: m(() => [
2297
2297
  u(R, {
2298
2298
  appearance: "primary",
2299
2299
  "data-testid": "toolbar-add-route",
2300
2300
  size: s.useActionOutside ? "medium" : "large",
2301
2301
  to: s.config.createRoute
2302
2302
  }, {
2303
- default: v(() => [
2303
+ default: m(() => [
2304
2304
  u(e(tt)),
2305
2305
  P(" " + w(e(i)("routes.list.toolbar_actions.new_route")), 1)
2306
2306
  ]),
@@ -2312,19 +2312,19 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2312
2312
  ])
2313
2313
  ], 8, ["disabled"]))
2314
2314
  ]),
2315
- name: v(({ rowValue: O }) => [
2315
+ name: m(({ rowValue: O }) => [
2316
2316
  B("b", null, w(O ?? "-"), 1)
2317
2317
  ]),
2318
- protocols: v(({ rowValue: O }) => [
2318
+ protocols: m(({ rowValue: O }) => [
2319
2319
  u(te, null, {
2320
- default: v(() => [
2320
+ default: m(() => [
2321
2321
  (f(!0), k(G, null, le(O, (M) => (f(), V(E, {
2322
2322
  key: M,
2323
2323
  appearance: "neutral",
2324
2324
  onClick: S[4] || (S[4] = Oe(() => {
2325
2325
  }, ["stop"]))
2326
2326
  }, {
2327
- default: v(() => [
2327
+ default: m(() => [
2328
2328
  P(w(M), 1)
2329
2329
  ]),
2330
2330
  _: 2
@@ -2333,9 +2333,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2333
2333
  _: 2
2334
2334
  }, 1024)
2335
2335
  ]),
2336
- hosts: v(({ rowValue: O }) => [
2336
+ hosts: m(({ rowValue: O }) => [
2337
2337
  (O == null ? void 0 : O.length) > 0 ? (f(), V(te, { key: 0 }, {
2338
- default: v(() => [
2338
+ default: m(() => [
2339
2339
  (f(!0), k(G, null, le(O, (M) => (f(), V(E, {
2340
2340
  key: M,
2341
2341
  appearance: "neutral",
@@ -2344,7 +2344,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2344
2344
  onClick: S[5] || (S[5] = Oe(() => {
2345
2345
  }, ["stop"]))
2346
2346
  }, {
2347
- default: v(() => [
2347
+ default: m(() => [
2348
2348
  P(w(M), 1)
2349
2349
  ]),
2350
2350
  _: 2
@@ -2353,16 +2353,16 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2353
2353
  _: 2
2354
2354
  }, 1024)) : (f(), k("span", Lo, "-"))
2355
2355
  ]),
2356
- methods: v(({ rowValue: O }) => [
2356
+ methods: m(({ rowValue: O }) => [
2357
2357
  (O == null ? void 0 : O.length) > 0 ? (f(), V(te, { key: 0 }, {
2358
- default: v(() => [
2358
+ default: m(() => [
2359
2359
  (f(!0), k(G, null, le(O, (M) => (f(), V(E, {
2360
2360
  key: M,
2361
2361
  appearance: Object.values(e(Ct)).includes(M.toLowerCase()) ? M.toLowerCase() : "custom",
2362
2362
  onClick: S[6] || (S[6] = Oe(() => {
2363
2363
  }, ["stop"]))
2364
2364
  }, {
2365
- default: v(() => [
2365
+ default: m(() => [
2366
2366
  P(w(M), 1)
2367
2367
  ]),
2368
2368
  _: 2
@@ -2371,9 +2371,9 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2371
2371
  _: 2
2372
2372
  }, 1024)) : (f(), k("span", qo, "-"))
2373
2373
  ]),
2374
- paths: v(({ rowValue: O }) => [
2374
+ paths: m(({ rowValue: O }) => [
2375
2375
  (O == null ? void 0 : O.length) > 0 ? (f(), V(te, { key: 0 }, {
2376
- default: v(() => [
2376
+ default: m(() => [
2377
2377
  (f(!0), k(G, null, le(O, (M) => (f(), V(E, {
2378
2378
  key: M,
2379
2379
  appearance: "neutral",
@@ -2382,7 +2382,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2382
2382
  onClick: S[7] || (S[7] = Oe(() => {
2383
2383
  }, ["stop"]))
2384
2384
  }, {
2385
- default: v(() => [
2385
+ default: m(() => [
2386
2386
  P(w(M), 1)
2387
2387
  ]),
2388
2388
  _: 2
@@ -2391,26 +2391,26 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2391
2391
  _: 2
2392
2392
  }, 1024)) : (f(), k("span", Bo, "-"))
2393
2393
  ]),
2394
- tags: v(({ rowValue: O }) => [
2394
+ tags: m(({ rowValue: O }) => [
2395
2395
  u(e(bt), { tags: O }, null, 8, ["tags"])
2396
2396
  ]),
2397
- expression: v(({ rowValue: O }) => [
2397
+ expression: m(({ rowValue: O }) => [
2398
2398
  B("span", Go, w(O || "-"), 1)
2399
2399
  ]),
2400
- created_at: v(({ rowValue: O }) => [
2401
- P(w(e(h)(O)), 1)
2400
+ created_at: m(({ rowValue: O }) => [
2401
+ P(w(e(v)(O)), 1)
2402
2402
  ]),
2403
- updated_at: v(({ row: O, rowValue: M }) => [
2404
- P(w(e(h)(M ?? O.created_at)), 1)
2403
+ updated_at: m(({ row: O, rowValue: M }) => [
2404
+ P(w(e(v)(M ?? O.created_at)), 1)
2405
2405
  ]),
2406
- actions: v(({ row: O }) => [
2406
+ actions: m(({ row: O }) => [
2407
2407
  u(ae, null, {
2408
- default: v(({ copyToClipboard: M }) => [
2408
+ default: m(({ copyToClipboard: M }) => [
2409
2409
  u(re, {
2410
2410
  "data-testid": "action-entity-copy-id",
2411
2411
  onClick: (st) => ve(O, M)
2412
2412
  }, {
2413
- default: v(() => [
2413
+ default: m(() => [
2414
2414
  P(w(e(i)("actions.copy_id")), 1)
2415
2415
  ]),
2416
2416
  _: 2
@@ -2419,12 +2419,12 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2419
2419
  _: 2
2420
2420
  }, 1024),
2421
2421
  u(ae, null, {
2422
- default: v(({ copyToClipboard: M }) => [
2422
+ default: m(({ copyToClipboard: M }) => [
2423
2423
  u(re, {
2424
2424
  "data-testid": "action-entity-copy-json",
2425
2425
  onClick: (st) => U(O, M)
2426
2426
  }, {
2427
- default: v(() => [
2427
+ default: m(() => [
2428
2428
  P(w(e(i)("actions.copy_json")), 1)
2429
2429
  ]),
2430
2430
  _: 2
@@ -2435,7 +2435,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2435
2435
  u(e(ke), {
2436
2436
  "auth-function": () => s.canRetrieve(O)
2437
2437
  }, {
2438
- default: v(() => [
2438
+ default: m(() => [
2439
2439
  u(re, {
2440
2440
  "data-testid": "action-entity-view",
2441
2441
  "has-divider": "",
@@ -2447,7 +2447,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2447
2447
  u(e(ke), {
2448
2448
  "auth-function": () => s.canEdit(O)
2449
2449
  }, {
2450
- default: v(() => [
2450
+ default: m(() => [
2451
2451
  u(re, {
2452
2452
  "data-testid": "action-entity-edit",
2453
2453
  item: pe(O.id)
@@ -2458,14 +2458,14 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2458
2458
  u(e(ke), {
2459
2459
  "auth-function": () => s.canDelete(O)
2460
2460
  }, {
2461
- default: v(() => [
2461
+ default: m(() => [
2462
2462
  u(re, {
2463
2463
  danger: "",
2464
2464
  "data-testid": "action-entity-delete",
2465
2465
  "has-divider": "",
2466
2466
  onClick: (M) => De(O)
2467
2467
  }, {
2468
- default: v(() => [
2468
+ default: m(() => [
2469
2469
  P(w(e(i)("actions.delete")), 1)
2470
2470
  ]),
2471
2471
  _: 2
@@ -2478,7 +2478,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2478
2478
  }, [
2479
2479
  !e(y) && b.value ? {
2480
2480
  name: "outside-actions",
2481
- fn: v(() => [
2481
+ fn: m(() => [
2482
2482
  (f(), V(qe, {
2483
2483
  disabled: !s.useActionOutside,
2484
2484
  to: "#kong-ui-app-page-header-action-button"
@@ -2490,7 +2490,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2490
2490
  icon: "",
2491
2491
  onClick: S[2] || (S[2] = (O) => n.$emit("click:learn-more"))
2492
2492
  }, {
2493
- default: v(() => [
2493
+ default: m(() => [
2494
2494
  u(e(je), { decorative: "" })
2495
2495
  ]),
2496
2496
  _: 1
@@ -2501,7 +2501,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2501
2501
  } : void 0,
2502
2502
  !j.value && s.enableV2EmptyStates && s.config.app === "konnect" ? {
2503
2503
  name: "empty-state",
2504
- fn: v(() => {
2504
+ fn: m(() => {
2505
2505
  var O;
2506
2506
  return [
2507
2507
  u(e(St), {
@@ -2515,7 +2515,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2515
2515
  "onClick:create": Pe,
2516
2516
  "onClick:learnMore": S[3] || (S[3] = (M) => n.$emit("click:learn-more"))
2517
2517
  }, Le({
2518
- image: v(() => [
2518
+ image: m(() => [
2519
2519
  B("div", Ko, [
2520
2520
  u(e(kt), {
2521
2521
  color: e(qt),
@@ -2527,7 +2527,7 @@ const Xe = (s) => s.routeFlavors.traditional === !0, ze = (s) => s.routeFlavors.
2527
2527
  }, [
2528
2528
  (O = s.config) != null && O.isControlPlaneGroup ? {
2529
2529
  name: "message",
2530
- fn: v(() => [
2530
+ fn: m(() => [
2531
2531
  P(w(e(i)("routes.list.empty_state_v2.group")), 1)
2532
2532
  ]),
2533
2533
  key: "0"