@kong-ui-public/entities-routes 3.8.58 → 3.8.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { defineComponent as J, ref as P, computed as M, watch as q, onBeforeMount as ot, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as It, createTextVNode as F, toDisplayString as g, createElementVNode as y, Fragment as x, renderList as X, withModifiers as Ce, TransitionGroup as ve, createCommentVNode as H, mergeModels as qe, useModel as st, createSlots as lt, renderSlot as ue, defineAsyncComponent as Rt, onMounted as rt, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Et, nextTick as Vt } from "vue";
1
+ import { defineComponent as Y, computed as M, ref as F, watch as q, onBeforeMount as ot, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as It, createTextVNode as P, toDisplayString as g, createElementVNode as y, Fragment as x, renderList as X, withModifiers as Ce, TransitionGroup as ve, createCommentVNode as H, mergeModels as qe, useModel as st, createSlots as lt, renderSlot as de, defineAsyncComponent as Rt, onMounted as rt, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Et, nextTick as Vt } from "vue";
2
2
  import { useRouter as it } from "vue-router";
3
3
  import { BadgeMethodAppearances as at } from "@kong/kongponents";
4
4
  import { AddIcon as nt, TrashIcon as dt, InfoIcon as Ye, RocketIcon as At } from "@kong/icons";
@@ -273,7 +273,7 @@ function ct() {
273
273
  // Translation component <i18n-t>
274
274
  };
275
275
  }
276
- const re = {
276
+ const le = {
277
277
  useI18n: ct
278
278
  }, ee = "/v2/control-planes/{controlPlaneId}/core-entities", te = "/{workspace}", _e = {
279
279
  list: {
@@ -330,7 +330,7 @@ const re = {
330
330
  forGatewayService: `${te}/services/{serviceId}/routes/{id}`
331
331
  }
332
332
  }
333
- }, Yt = { class: "kong-ui-entities-routes-list" }, Zt = { key: 1 }, eo = { key: 1 }, to = { key: 1 }, oo = { class: "route-list-cell-expression" }, so = /* @__PURE__ */ J({
333
+ }, Yt = { class: "kong-ui-entities-routes-list" }, Zt = { key: 1 }, eo = { key: 1 }, to = { key: 1 }, oo = { class: "route-list-cell-expression" }, so = /* @__PURE__ */ Y({
334
334
  __name: "RouteList",
335
335
  props: {
336
336
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -393,7 +393,7 @@ const re = {
393
393
  emits: ["error", "copy:success", "copy:error", "delete:success"],
394
394
  setup(r, { emit: N }) {
395
395
  var W;
396
- const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = re.useI18n(), m = it(), { axiosInstance: S } = Be((W = a.config) == null ? void 0 : W.axiosRequestConfig), R = P(1), E = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), L = {
396
+ const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = le.useI18n(), m = it(), { axiosInstance: S } = Be((W = a.config) == null ? void 0 : W.axiosRequestConfig), R = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), E = {
397
397
  // the Name column is non-hidable
398
398
  name: { label: f("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
399
399
  protocols: { label: f("routes.list.table_headers.protocols"), searchable: !0 },
@@ -408,15 +408,15 @@ const re = {
408
408
  tags: { label: f("routes.list.table_headers.tags"), sortable: !1 },
409
409
  updated_at: { label: f("routes.list.table_headers.updated_at"), sortable: !0 },
410
410
  created_at: { label: f("routes.list.table_headers.created_at"), sortable: !0 }
411
- }, h = {
411
+ }, G = {
412
412
  columnVisibility: {
413
413
  created_at: !1
414
414
  }
415
- }, u = L, Q = M(() => {
416
- var k, $, B, G;
415
+ }, h = E, u = M(() => {
416
+ var k, $, L, B;
417
417
  let _ = `${a.config.apiBaseUrl}${_e.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
418
- return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, (($ = a.config) == null ? void 0 : $.serviceId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (B = a.config) != null && B.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((G = a.config) == null ? void 0 : G.serviceId) || "")), _;
419
- }), oe = P(""), O = M(() => {
418
+ return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, (($ = a.config) == null ? void 0 : $.serviceId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (L = a.config) != null && L.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((B = a.config) == null ? void 0 : B.serviceId) || "")), _;
419
+ }), z = F(""), ce = M(() => {
420
420
  const _ = a.config.app === "konnect" || a.config.isExactMatch;
421
421
  if (_)
422
422
  return {
@@ -424,12 +424,12 @@ const re = {
424
424
  // force exact placeholder if `props.config.isExactMatch` is true
425
425
  placeholder: f(`search.placeholder.${a.config.isExactMatch ? "exact" : a.config.app}`)
426
426
  };
427
- const { name: k, protocols: $, hosts: B, methods: G, paths: se, expression: ye } = L, T = {
427
+ const { name: k, protocols: $, hosts: L, methods: B, paths: oe, expression: ye } = E, T = {
428
428
  name: k,
429
429
  protocols: $,
430
- hosts: B,
431
- methods: G,
432
- paths: se,
430
+ hosts: L,
431
+ methods: B,
432
+ paths: oe,
433
433
  ...a.hasExpressionColumn && { expression: ye }
434
434
  };
435
435
  return {
@@ -437,17 +437,21 @@ const re = {
437
437
  fields: T,
438
438
  schema: a.config.filterSchema
439
439
  };
440
- }), { fetcher: D, fetcherState: Y } = Ct(a.config, Q.value), j = (_) => _.headerKey === "expression" ? {
440
+ }), {
441
+ fetcher: O,
442
+ fetcherState: D,
443
+ fetcherCacheKey: J
444
+ } = Ct({ ...a.config, cacheIdentifier: a.cacheIdentifier }, u.value), j = (_) => _.headerKey === "expression" ? {
441
445
  style: {
442
446
  maxWidth: "250px",
443
447
  overflowX: "hidden",
444
448
  textOverflow: "ellipsis"
445
449
  }
446
450
  } : {}, e = () => {
447
- oe.value = "";
451
+ z.value = "";
448
452
  }, Z = () => {
449
- R.value++;
450
- }, ae = P(null), Ee = (_, k) => {
453
+ J.value++;
454
+ }, ie = F(null), Ee = (_, k) => {
451
455
  const $ = _.id;
452
456
  if (!k($)) {
453
457
  I("copy:error", {
@@ -484,34 +488,34 @@ const re = {
484
488
  }), $e = (_) => ({
485
489
  label: f("actions.edit"),
486
490
  to: a.config.getEditRoute(_)
487
- }), ne = P(void 0), ce = P(!1), pe = P(!1), Ve = P(""), Ae = Ot(a.config, Q.value), He = (_) => {
488
- ne.value = _, ce.value = !0;
491
+ }), ae = F(void 0), ue = F(!1), pe = F(!1), Ve = F(""), Ae = Ot(a.config, u.value), He = (_) => {
492
+ ae.value = _, ue.value = !0;
489
493
  }, De = () => {
490
- ce.value = !1;
494
+ ue.value = !1;
491
495
  }, Ue = async () => {
492
496
  var _, k, $;
493
- if ((_ = ne.value) != null && _.id) {
497
+ if ((_ = ae.value) != null && _.id) {
494
498
  pe.value = !0;
495
499
  try {
496
- await S.delete(Ae(ne.value.id)), pe.value = !1, ce.value = !1, R.value++, I("delete:success", ne.value);
497
- } catch (B) {
498
- Ve.value = (($ = (k = B.response) == null ? void 0 : k.data) == null ? void 0 : $.message) || B.message || f("errors.delete"), I("error", B);
500
+ await S.delete(Ae(ae.value.id)), pe.value = !1, ue.value = !1, J.value++, I("delete:success", ae.value);
501
+ } catch (L) {
502
+ Ve.value = (($ = (k = L.response) == null ? void 0 : k.data) == null ? void 0 : $.message) || L.message || f("errors.delete"), I("error", L);
499
503
  } finally {
500
504
  pe.value = !1;
501
505
  }
502
506
  }
503
507
  };
504
- q(Y, (_) => {
505
- var k, $, B;
508
+ q(D, (_) => {
509
+ var k, $, L;
506
510
  if (_.status === kt.Error) {
507
- ae.value = {
511
+ ie.value = {
508
512
  title: f("errors.general")
509
- }, (B = ($ = (k = _.error) == null ? void 0 : k.response) == null ? void 0 : $.data) != null && B.message && (ae.value.message = _.error.response.data.message), I("error", _.error);
513
+ }, (L = ($ = (k = _.error) == null ? void 0 : k.response) == null ? void 0 : $.data) != null && L.message && (ie.value.message = _.error.response.data.message), I("error", _.error);
510
514
  return;
511
515
  }
512
- ae.value = null;
516
+ ie.value = null;
513
517
  });
514
- const Te = P({
518
+ const Te = F({
515
519
  ctaPath: a.config.createRoute,
516
520
  ctaText: void 0,
517
521
  message: `${f("routes.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
@@ -520,22 +524,22 @@ const re = {
520
524
  return ot(async () => {
521
525
  await a.canCreate() && (Te.value.title = f("routes.list.empty_state.title"), Te.value.ctaText = f("actions.create"));
522
526
  }), (_, k) => {
523
- const $ = C("KButton"), B = C("KBadge"), G = C("KTruncate"), se = C("KDropdownItem"), ye = C("KClipboardProvider");
527
+ const $ = C("KButton"), L = C("KBadge"), B = C("KTruncate"), oe = C("KDropdownItem"), ye = C("KClipboardProvider");
524
528
  return p(), b("div", Yt, [
525
529
  c(o(Nt), {
526
530
  "cache-identifier": r.cacheIdentifier,
527
531
  "cell-attributes": j,
528
- "default-table-preferences": h,
529
- "disable-sorting": E.value,
532
+ "default-table-preferences": G,
533
+ "disable-sorting": R.value,
530
534
  "empty-state-options": Te.value,
531
535
  "enable-entity-actions": "",
532
- "error-message": ae.value,
533
- fetcher: o(D),
534
- "fetcher-cache-key": R.value,
536
+ "error-message": ie.value,
537
+ fetcher: o(O),
538
+ "fetcher-cache-key": o(J),
535
539
  "pagination-type": "offset",
536
540
  "preferences-storage-key": "kong-ui-entities-routes-list",
537
- query: oe.value,
538
- "table-headers": o(u),
541
+ query: z.value,
542
+ "table-headers": o(h),
539
543
  title: r.title,
540
544
  "title-tag": r.titleTag,
541
545
  onClearSearchInput: e,
@@ -544,9 +548,9 @@ const re = {
544
548
  }, {
545
549
  "toolbar-filter": n(() => [
546
550
  c(o(wt), {
547
- modelValue: oe.value,
548
- "onUpdate:modelValue": k[0] || (k[0] = (T) => oe.value = T),
549
- config: O.value
551
+ modelValue: z.value,
552
+ "onUpdate:modelValue": k[0] || (k[0] = (T) => z.value = T),
553
+ config: ce.value
550
554
  }, null, 8, ["modelValue", "config"])
551
555
  ]),
552
556
  "toolbar-button": n(() => [
@@ -566,7 +570,7 @@ const re = {
566
570
  }, {
567
571
  default: n(() => [
568
572
  c(o(nt)),
569
- F(" " + g(o(f)("routes.list.toolbar_actions.new_route")), 1)
573
+ P(" " + g(o(f)("routes.list.toolbar_actions.new_route")), 1)
570
574
  ]),
571
575
  _: 1
572
576
  }, 8, ["size", "to"])
@@ -579,16 +583,16 @@ const re = {
579
583
  y("b", null, g(T ?? "-"), 1)
580
584
  ]),
581
585
  protocols: n(({ rowValue: T }) => [
582
- c(G, null, {
586
+ c(B, null, {
583
587
  default: n(() => [
584
- (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
588
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
585
589
  key: U,
586
590
  appearance: "neutral",
587
591
  onClick: k[1] || (k[1] = Ce(() => {
588
592
  }, ["stop"]))
589
593
  }, {
590
594
  default: n(() => [
591
- F(g(U), 1)
595
+ P(g(U), 1)
592
596
  ]),
593
597
  _: 2
594
598
  }, 1024))), 128))
@@ -597,9 +601,9 @@ const re = {
597
601
  }, 1024)
598
602
  ]),
599
603
  hosts: n(({ rowValue: T }) => [
600
- (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
604
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
601
605
  default: n(() => [
602
- (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
606
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
603
607
  key: U,
604
608
  appearance: "neutral",
605
609
  tooltip: U,
@@ -608,7 +612,7 @@ const re = {
608
612
  }, ["stop"]))
609
613
  }, {
610
614
  default: n(() => [
611
- F(g(U), 1)
615
+ P(g(U), 1)
612
616
  ]),
613
617
  _: 2
614
618
  }, 1032, ["tooltip"]))), 128))
@@ -617,16 +621,16 @@ const re = {
617
621
  }, 1024)) : (p(), b("span", Zt, "-"))
618
622
  ]),
619
623
  methods: n(({ rowValue: T }) => [
620
- (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
624
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
621
625
  default: n(() => [
622
- (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
626
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
623
627
  key: U,
624
628
  appearance: Object.values(o(at)).includes(U.toLowerCase()) ? U.toLowerCase() : "custom",
625
629
  onClick: k[3] || (k[3] = Ce(() => {
626
630
  }, ["stop"]))
627
631
  }, {
628
632
  default: n(() => [
629
- F(g(U), 1)
633
+ P(g(U), 1)
630
634
  ]),
631
635
  _: 2
632
636
  }, 1032, ["appearance"]))), 128))
@@ -635,9 +639,9 @@ const re = {
635
639
  }, 1024)) : (p(), b("span", eo, "-"))
636
640
  ]),
637
641
  paths: n(({ rowValue: T }) => [
638
- (T == null ? void 0 : T.length) > 0 ? (p(), A(G, { key: 0 }, {
642
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
639
643
  default: n(() => [
640
- (p(!0), b(x, null, X(T, (U) => (p(), A(B, {
644
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
641
645
  key: U,
642
646
  appearance: "neutral",
643
647
  tooltip: U,
@@ -646,7 +650,7 @@ const re = {
646
650
  }, ["stop"]))
647
651
  }, {
648
652
  default: n(() => [
649
- F(g(U), 1)
653
+ P(g(U), 1)
650
654
  ]),
651
655
  _: 2
652
656
  }, 1032, ["tooltip"]))), 128))
@@ -661,20 +665,20 @@ const re = {
661
665
  y("span", oo, g(T || "-"), 1)
662
666
  ]),
663
667
  created_at: n(({ rowValue: T }) => [
664
- F(g(o(i)(T)), 1)
668
+ P(g(o(i)(T)), 1)
665
669
  ]),
666
670
  updated_at: n(({ row: T, rowValue: U }) => [
667
- F(g(o(i)(U ?? T.created_at)), 1)
671
+ P(g(o(i)(U ?? T.created_at)), 1)
668
672
  ]),
669
673
  actions: n(({ row: T }) => [
670
674
  c(ye, null, {
671
675
  default: n(({ copyToClipboard: U }) => [
672
- c(se, {
676
+ c(oe, {
673
677
  "data-testid": "action-entity-copy-id",
674
678
  onClick: (Pe) => Ee(T, U)
675
679
  }, {
676
680
  default: n(() => [
677
- F(g(o(f)("actions.copy_id")), 1)
681
+ P(g(o(f)("actions.copy_id")), 1)
678
682
  ]),
679
683
  _: 2
680
684
  }, 1032, ["onClick"])
@@ -683,12 +687,12 @@ const re = {
683
687
  }, 1024),
684
688
  c(ye, null, {
685
689
  default: n(({ copyToClipboard: U }) => [
686
- c(se, {
690
+ c(oe, {
687
691
  "data-testid": "action-entity-copy-json",
688
692
  onClick: (Pe) => K(T, U)
689
693
  }, {
690
694
  default: n(() => [
691
- F(g(o(f)("actions.copy_json")), 1)
695
+ P(g(o(f)("actions.copy_json")), 1)
692
696
  ]),
693
697
  _: 2
694
698
  }, 1032, ["onClick"])
@@ -699,7 +703,7 @@ const re = {
699
703
  "auth-function": () => r.canRetrieve(T)
700
704
  }, {
701
705
  default: n(() => [
702
- c(se, {
706
+ c(oe, {
703
707
  "data-testid": "action-entity-view",
704
708
  "has-divider": "",
705
709
  item: we(T.id)
@@ -711,7 +715,7 @@ const re = {
711
715
  "auth-function": () => r.canEdit(T)
712
716
  }, {
713
717
  default: n(() => [
714
- c(se, {
718
+ c(oe, {
715
719
  "data-testid": "action-entity-edit",
716
720
  item: $e(T.id)
717
721
  }, null, 8, ["item"])
@@ -722,14 +726,14 @@ const re = {
722
726
  "auth-function": () => r.canDelete(T)
723
727
  }, {
724
728
  default: n(() => [
725
- c(se, {
729
+ c(oe, {
726
730
  danger: "",
727
731
  "data-testid": "action-entity-delete",
728
732
  "has-divider": "",
729
733
  onClick: (U) => He(T)
730
734
  }, {
731
735
  default: n(() => [
732
- F(g(o(f)("actions.delete")), 1)
736
+ P(g(o(f)("actions.delete")), 1)
733
737
  ]),
734
738
  _: 2
735
739
  }, 1032, ["onClick"])
@@ -742,25 +746,25 @@ const re = {
742
746
  c(o(Ht), {
743
747
  "action-pending": pe.value,
744
748
  description: o(f)("delete.description"),
745
- "entity-name": ne.value && (ne.value.name || ne.value.id),
749
+ "entity-name": ae.value && (ae.value.name || ae.value.id),
746
750
  "entity-type": o(Dt).Route,
747
751
  error: Ve.value,
748
752
  title: o(f)("delete.title"),
749
- visible: ce.value,
753
+ visible: ue.value,
750
754
  onCancel: De,
751
755
  onProceed: Ue
752
756
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
753
757
  ]);
754
758
  };
755
759
  }
756
- }), ie = (r, N) => {
760
+ }), re = (r, N) => {
757
761
  const I = r.__vccOpts || r;
758
762
  for (const [a, f] of N)
759
763
  I[a] = f;
760
764
  return I;
761
- }, is = /* @__PURE__ */ ie(so, [["__scopeId", "data-v-09caa9e4"]]);
765
+ }, is = /* @__PURE__ */ re(so, [["__scopeId", "data-v-9eceb85a"]]);
762
766
  var lo = /* @__PURE__ */ ((r) => (r.GET = "GET", r.PUT = "PUT", r.POST = "POST", r.PATCH = "PATCH", r.DELETE = "DELETE", r.OPTIONS = "OPTIONS", r.HEAD = "HEAD", r.CONNECT = "CONNECT", r.TRACE = "TRACE", r.CUSTOM = "CUSTOM", r))(lo || {}), w = /* @__PURE__ */ ((r) => (r.TRADITIONAL = "traditional", r.EXPRESSIONS = "expressions", r))(w || {}), l = /* @__PURE__ */ ((r) => (r.PATHS = "paths", r.SNIS = "snis", r.HOSTS = "hosts", r.METHODS = "methods", r.HEADERS = "headers", r.SOURCES = "sources", r.DESTINATIONS = "destinations", r.CUSTOM_METHOD = "custom-method", r))(l || {}), be = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR = "error", r.READY = "ready", r))(be || {});
763
- const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.expressions === !0, pt = "#d60027", tt = "#6c7489", Le = "16px", ro = { class: "routing-rules-entities-controls-container" }, io = /* @__PURE__ */ J({
767
+ const ne = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.expressions === !0, pt = "#d60027", tt = "#6c7489", Le = "16px", ro = { class: "routing-rules-entities-controls-container" }, io = /* @__PURE__ */ Y({
764
768
  __name: "RoutingRulesEntitiesControls",
765
769
  props: {
766
770
  routingRulesEntity: {
@@ -804,7 +808,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
804
808
  ]);
805
809
  };
806
810
  }
807
- }), Se = /* @__PURE__ */ ie(io, [["__scopeId", "data-v-e024298d"]]), ao = { class: "routing-rule-container" }, no = /* @__PURE__ */ J({
811
+ }), Se = /* @__PURE__ */ re(io, [["__scopeId", "data-v-e024298d"]]), ao = { class: "routing-rule-container" }, no = /* @__PURE__ */ Y({
808
812
  __name: "RouteFormDestinationsFields",
809
813
  props: {
810
814
  modelValue: {
@@ -814,7 +818,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
814
818
  },
815
819
  emits: ["add", "remove", "update:modelValue"],
816
820
  setup(r, { emit: N }) {
817
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
821
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
818
822
  return q(I.modelValue, (m) => {
819
823
  i.value = [...m];
820
824
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -827,13 +831,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
827
831
  info: o(f)("form.fields.destinations.tooltip")
828
832
  }, {
829
833
  default: n(() => [
830
- F(g(o(f)("form.fields.destinations.label")), 1)
834
+ P(g(o(f)("form.fields.destinations.label")), 1)
831
835
  ]),
832
836
  _: 1
833
837
  }, 8, ["info"]),
834
838
  c(ve, { name: "appear" }, {
835
839
  default: n(() => [
836
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
840
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
837
841
  key: h,
838
842
  class: "routing-rule-input"
839
843
  }, [
@@ -867,7 +871,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
867
871
  ]);
868
872
  };
869
873
  }
870
- }), uo = /* @__PURE__ */ ie(no, [["__scopeId", "data-v-d41b39fd"]]), co = { class: "routing-rule-container" }, po = /* @__PURE__ */ J({
874
+ }), uo = /* @__PURE__ */ re(no, [["__scopeId", "data-v-d41b39fd"]]), co = { class: "routing-rule-container" }, po = /* @__PURE__ */ Y({
871
875
  __name: "RouteFormHeadersFields",
872
876
  props: {
873
877
  modelValue: {
@@ -877,7 +881,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
877
881
  },
878
882
  emits: ["add", "remove", "update:modelValue"],
879
883
  setup(r, { emit: N }) {
880
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
884
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
881
885
  return q(I.modelValue, (m) => {
882
886
  i.value = [...m];
883
887
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -890,13 +894,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
890
894
  info: o(f)("form.fields.headers.tooltip")
891
895
  }, {
892
896
  default: n(() => [
893
- F(g(o(f)("form.fields.headers.label")), 1)
897
+ P(g(o(f)("form.fields.headers.label")), 1)
894
898
  ]),
895
899
  _: 1
896
900
  }, 8, ["info"]),
897
901
  c(ve, { name: "appear" }, {
898
902
  default: n(() => [
899
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
903
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
900
904
  key: h,
901
905
  class: "routing-rule-input"
902
906
  }, [
@@ -927,7 +931,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
927
931
  ]);
928
932
  };
929
933
  }
930
- }), fo = /* @__PURE__ */ ie(po, [["__scopeId", "data-v-ca0bb10b"]]), mo = { class: "routing-rule-container" }, ho = /* @__PURE__ */ J({
934
+ }), fo = /* @__PURE__ */ re(po, [["__scopeId", "data-v-ca0bb10b"]]), mo = { class: "routing-rule-container" }, ho = /* @__PURE__ */ Y({
931
935
  __name: "RouteFormHostsFields",
932
936
  props: {
933
937
  modelValue: {
@@ -937,7 +941,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
937
941
  },
938
942
  emits: ["add", "remove", "update:modelValue"],
939
943
  setup(r, { emit: N }) {
940
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
944
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
941
945
  return q(I.modelValue, (m) => {
942
946
  i.value = [...m];
943
947
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -950,13 +954,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
950
954
  info: o(f)("form.fields.hosts.tooltip")
951
955
  }, {
952
956
  default: n(() => [
953
- F(g(o(f)("form.fields.hosts.label")), 1)
957
+ P(g(o(f)("form.fields.hosts.label")), 1)
954
958
  ]),
955
959
  _: 1
956
960
  }, 8, ["info"]),
957
961
  c(ve, { name: "appear" }, {
958
962
  default: n(() => [
959
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
963
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
960
964
  key: h,
961
965
  class: "routing-rule-input"
962
966
  }, [
@@ -980,10 +984,10 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
980
984
  ]);
981
985
  };
982
986
  }
983
- }), vo = /* @__PURE__ */ ie(ho, [["__scopeId", "data-v-88d16377"]]), go = { class: "routing-rule-container" }, So = { class: "routing-rule-input" }, yo = { class: "methods-input-container" }, bo = {
987
+ }), vo = /* @__PURE__ */ re(ho, [["__scopeId", "data-v-88d16377"]]), go = { class: "routing-rule-container" }, So = { class: "routing-rule-input" }, yo = { class: "methods-input-container" }, bo = {
984
988
  key: 0,
985
989
  class: "routing-rule-container"
986
- }, _o = /* @__PURE__ */ J({
990
+ }, _o = /* @__PURE__ */ Y({
987
991
  __name: "RouteFormMethodsFields",
988
992
  props: {
989
993
  modelValue: {
@@ -997,7 +1001,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
997
1001
  },
998
1002
  emits: ["add", "remove", "update:modelValue", "update-custom-methods"],
999
1003
  setup(r, { emit: N }) {
1000
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P({}), m = P([...I.customMethods]), S = (R) => {
1004
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F({}), m = F([...I.customMethods]), S = (R) => {
1001
1005
  m.value.length === 1 ? m.value[0] = "" : m.value.splice(R, 1);
1002
1006
  };
1003
1007
  return q(I.modelValue, (R) => {
@@ -1007,12 +1011,12 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1007
1011
  }, { deep: !0 }), q(m, (R) => {
1008
1012
  a("update-custom-methods", R);
1009
1013
  }, { deep: !0 }), (R, E) => {
1010
- const L = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), oe = C("KInput");
1014
+ const G = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), z = C("KButton"), ce = C("KInput");
1011
1015
  return p(), b("div", go, [
1012
1016
  E[2] || (E[2] = y("hr", null, null, -1)),
1013
- c(L, null, {
1017
+ c(G, null, {
1014
1018
  default: n(() => [
1015
- F(g(o(f)("form.fields.methods.label")), 1)
1019
+ P(g(o(f)("form.fields.methods.label")), 1)
1016
1020
  ]),
1017
1021
  _: 1
1018
1022
  }),
@@ -1031,13 +1035,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1031
1035
  appearance: Object.values(o(at)).includes(O.toLowerCase()) ? O.toLowerCase() : "custom"
1032
1036
  }, {
1033
1037
  default: n(() => [
1034
- F(g(O.toLowerCase()), 1)
1038
+ P(g(O.toLowerCase()), 1)
1035
1039
  ]),
1036
1040
  _: 2
1037
1041
  }, 1032, ["appearance"])
1038
1042
  ]))), 128))
1039
1043
  ]),
1040
- c(Q, {
1044
+ c(z, {
1041
1045
  appearance: "tertiary",
1042
1046
  class: "remove-button",
1043
1047
  "data-testid": "remove-methods",
@@ -1051,11 +1055,11 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1051
1055
  })
1052
1056
  ]),
1053
1057
  i.value.CUSTOM ? (p(), b("div", bo, [
1054
- c(L, {
1058
+ c(G, {
1055
1059
  info: o(f)("form.fields.methods.custom.tooltip")
1056
1060
  }, {
1057
1061
  default: n(() => [
1058
- F(g(o(f)("form.fields.methods.custom.label")), 1)
1062
+ P(g(o(f)("form.fields.methods.custom.label")), 1)
1059
1063
  ]),
1060
1064
  _: 1
1061
1065
  }, 8, ["info"]),
@@ -1065,9 +1069,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1065
1069
  key: D,
1066
1070
  class: "routing-rule-input"
1067
1071
  }, [
1068
- c(oe, {
1072
+ c(ce, {
1069
1073
  modelValue: m.value[D],
1070
- "onUpdate:modelValue": (Y) => m.value[D] = Y,
1074
+ "onUpdate:modelValue": (J) => m.value[D] = J,
1071
1075
  modelModifiers: { trim: !0 },
1072
1076
  "data-testid": `route-form-custom-method-input-${D + 1}`,
1073
1077
  placeholder: o(f)("form.fields.methods.custom.placeholder")
@@ -1075,8 +1079,8 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1075
1079
  c(Se, {
1076
1080
  "is-add-disabled": D !== m.value.length - 1,
1077
1081
  "routing-rules-entity": o(l).CUSTOM_METHOD,
1078
- onAdd: E[1] || (E[1] = (Y) => m.value.push("")),
1079
- onRemove: (Y) => S(D)
1082
+ onAdd: E[1] || (E[1] = (J) => m.value.push("")),
1083
+ onRemove: (J) => S(D)
1080
1084
  }, null, 8, ["is-add-disabled", "routing-rules-entity", "onRemove"])
1081
1085
  ]))), 128))
1082
1086
  ]),
@@ -1086,7 +1090,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1086
1090
  ]);
1087
1091
  };
1088
1092
  }
1089
- }), To = /* @__PURE__ */ ie(_o, [["__scopeId", "data-v-c8ae1bc5"]]), Io = { class: "routing-rule-container" }, Ro = /* @__PURE__ */ J({
1093
+ }), To = /* @__PURE__ */ re(_o, [["__scopeId", "data-v-c8ae1bc5"]]), Io = { class: "routing-rule-container" }, Ro = /* @__PURE__ */ Y({
1090
1094
  __name: "RouteFormPathsFields",
1091
1095
  props: {
1092
1096
  modelValue: {
@@ -1096,7 +1100,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1096
1100
  },
1097
1101
  emits: ["add", "remove", "update:modelValue"],
1098
1102
  setup(r, { emit: N }) {
1099
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1103
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
1100
1104
  return q(I.modelValue, (m) => {
1101
1105
  i.value = [...m];
1102
1106
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -1106,13 +1110,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1106
1110
  return p(), b("div", Io, [
1107
1111
  c(R, null, {
1108
1112
  default: n(() => [
1109
- F(g(o(f)("form.fields.paths.label")), 1)
1113
+ P(g(o(f)("form.fields.paths.label")), 1)
1110
1114
  ]),
1111
1115
  _: 1
1112
1116
  }),
1113
1117
  c(ve, { name: "appear" }, {
1114
1118
  default: n(() => [
1115
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1119
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
1116
1120
  key: h,
1117
1121
  class: "routing-rule-input"
1118
1122
  }, [
@@ -1136,7 +1140,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1136
1140
  ]);
1137
1141
  };
1138
1142
  }
1139
- }), Eo = /* @__PURE__ */ ie(Ro, [["__scopeId", "data-v-bc31ca96"]]), Vo = { class: "routing-rule-container" }, Ao = /* @__PURE__ */ J({
1143
+ }), Eo = /* @__PURE__ */ re(Ro, [["__scopeId", "data-v-bc31ca96"]]), Vo = { class: "routing-rule-container" }, Ao = /* @__PURE__ */ Y({
1140
1144
  __name: "RouteFormSnisFields",
1141
1145
  props: {
1142
1146
  modelValue: {
@@ -1146,7 +1150,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1146
1150
  },
1147
1151
  emits: ["add", "remove", "update:modelValue"],
1148
1152
  setup(r, { emit: N }) {
1149
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1153
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
1150
1154
  return q(I.modelValue, (m) => {
1151
1155
  i.value = [...m];
1152
1156
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -1159,13 +1163,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1159
1163
  info: o(f)("form.fields.snis.tooltip")
1160
1164
  }, {
1161
1165
  default: n(() => [
1162
- F(g(o(f)("form.fields.snis.label")), 1)
1166
+ P(g(o(f)("form.fields.snis.label")), 1)
1163
1167
  ]),
1164
1168
  _: 1
1165
1169
  }, 8, ["info"]),
1166
1170
  c(ve, { name: "appear" }, {
1167
1171
  default: n(() => [
1168
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1172
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
1169
1173
  key: h,
1170
1174
  class: "routing-rule-input"
1171
1175
  }, [
@@ -1189,7 +1193,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1189
1193
  ]);
1190
1194
  };
1191
1195
  }
1192
- }), Co = /* @__PURE__ */ ie(Ao, [["__scopeId", "data-v-c3679dd9"]]), Oo = { class: "routing-rule-container" }, ko = /* @__PURE__ */ J({
1196
+ }), Co = /* @__PURE__ */ re(Ao, [["__scopeId", "data-v-c3679dd9"]]), Oo = { class: "routing-rule-container" }, ko = /* @__PURE__ */ Y({
1193
1197
  __name: "RouteFormSourcesFields",
1194
1198
  props: {
1195
1199
  modelValue: {
@@ -1199,7 +1203,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1199
1203
  },
1200
1204
  emits: ["add", "remove", "update:modelValue"],
1201
1205
  setup(r, { emit: N }) {
1202
- const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1206
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = F([]);
1203
1207
  return q(I.modelValue, (m) => {
1204
1208
  i.value = [...m];
1205
1209
  }, { immediate: !0, deep: !0 }), q(i, (m) => {
@@ -1212,13 +1216,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1212
1216
  info: o(f)("form.fields.sources.tooltip")
1213
1217
  }, {
1214
1218
  default: n(() => [
1215
- F(g(o(f)("form.fields.sources.label")), 1)
1219
+ P(g(o(f)("form.fields.sources.label")), 1)
1216
1220
  ]),
1217
1221
  _: 1
1218
1222
  }, 8, ["info"]),
1219
1223
  c(ve, { name: "appear" }, {
1220
1224
  default: n(() => [
1221
- (p(!0), b(x, null, X(i.value, (L, h) => (p(), b("div", {
1225
+ (p(!0), b(x, null, X(i.value, (G, h) => (p(), b("div", {
1222
1226
  key: h,
1223
1227
  class: "routing-rule-input"
1224
1228
  }, [
@@ -1252,7 +1256,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1252
1256
  ]);
1253
1257
  };
1254
1258
  }
1255
- }), No = /* @__PURE__ */ ie(ko, [["__scopeId", "data-v-50c52494"]]), wo = /* @__PURE__ */ J({
1259
+ }), No = /* @__PURE__ */ re(ko, [["__scopeId", "data-v-50c52494"]]), wo = /* @__PURE__ */ Y({
1256
1260
  __name: "RouteFormConfigTabs",
1257
1261
  props: /* @__PURE__ */ qe({
1258
1262
  routeFlavors: {},
@@ -1285,7 +1289,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1285
1289
  i.routeFlavors.traditional ? {
1286
1290
  name: `${o(w).TRADITIONAL}-anchor`,
1287
1291
  fn: n(() => [
1288
- F(g(o(a)("form.flavors.traditional")) + " ", 1),
1292
+ P(g(o(a)("form.flavors.traditional")) + " ", 1),
1289
1293
  i.tooltips && i.tooltips[o(w).TRADITIONAL] ? (p(), A(S, {
1290
1294
  key: 0,
1291
1295
  class: "route-form-config-tabs-tooltip",
@@ -1307,15 +1311,15 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1307
1311
  i.routeFlavors.traditional ? {
1308
1312
  name: o(w).TRADITIONAL,
1309
1313
  fn: n(() => [
1310
- ue(i.$slots, "before-content", {}, void 0, !0),
1311
- ue(i.$slots, o(w).TRADITIONAL, {}, void 0, !0)
1314
+ de(i.$slots, "before-content", {}, void 0, !0),
1315
+ de(i.$slots, o(w).TRADITIONAL, {}, void 0, !0)
1312
1316
  ]),
1313
1317
  key: "1"
1314
1318
  } : void 0,
1315
1319
  i.routeFlavors.expressions ? {
1316
1320
  name: `${o(w).EXPRESSIONS}-anchor`,
1317
1321
  fn: n(() => [
1318
- F(g(o(a)("form.flavors.expressions")) + " ", 1),
1322
+ P(g(o(a)("form.flavors.expressions")) + " ", 1),
1319
1323
  i.tooltips && i.tooltips[o(w).EXPRESSIONS] ? (p(), A(S, {
1320
1324
  key: 0,
1321
1325
  class: "route-form-config-tabs-tooltip",
@@ -1337,18 +1341,18 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1337
1341
  i.routeFlavors.expressions ? {
1338
1342
  name: o(w).EXPRESSIONS,
1339
1343
  fn: n(() => [
1340
- ue(i.$slots, "before-content", {}, void 0, !0),
1341
- ue(i.$slots, o(w).EXPRESSIONS, {}, void 0, !0)
1344
+ de(i.$slots, "before-content", {}, void 0, !0),
1345
+ de(i.$slots, o(w).EXPRESSIONS, {}, void 0, !0)
1342
1346
  ]),
1343
1347
  key: "3"
1344
1348
  } : void 0
1345
1349
  ]), 1032, ["modelValue", "tabs"])) : (p(), b(x, { key: 1 }, [
1346
- ue(i.$slots, "before-content", {}, void 0, !0),
1347
- i.routeFlavors.traditional ? ue(i.$slots, o(w).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? ue(i.$slots, o(w).EXPRESSIONS, { key: 1 }, void 0, !0) : H("", !0)
1350
+ de(i.$slots, "before-content", {}, void 0, !0),
1351
+ i.routeFlavors.traditional ? de(i.$slots, o(w).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? de(i.$slots, o(w).EXPRESSIONS, { key: 1 }, void 0, !0) : H("", !0)
1348
1352
  ], 64));
1349
1353
  };
1350
1354
  }
1351
- }), $o = /* @__PURE__ */ ie(wo, [["__scopeId", "data-v-f1c7a92f"]]), Ho = /* @__PURE__ */ J({
1355
+ }), $o = /* @__PURE__ */ re(wo, [["__scopeId", "data-v-f1c7a92f"]]), Ho = /* @__PURE__ */ Y({
1352
1356
  __name: "RouteFormExpressionsEditorLoader",
1353
1357
  props: /* @__PURE__ */ qe({
1354
1358
  protocol: {},
@@ -1359,7 +1363,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1359
1363
  }),
1360
1364
  emits: /* @__PURE__ */ qe(["notify"], ["update:modelValue"]),
1361
1365
  setup(r, { emit: N }) {
1362
- const { i18n: { t: I } } = re.useI18n(), a = {
1366
+ const { i18n: { t: I } } = le.useI18n(), a = {
1363
1367
  render: () => Je("div", I("form.expressions_editor.loading"))
1364
1368
  }, f = {
1365
1369
  render: () => Je("div", I("form.expressions_editor.error"))
@@ -1367,7 +1371,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1367
1371
  loader: async () => import("./RouteFormExpressionsEditor-Ce9E02hY.js"),
1368
1372
  loadingComponent: a,
1369
1373
  errorComponent: f
1370
- }), m = r, S = N, R = P(be.LOADING), E = st(r, "modelValue"), L = (h) => {
1374
+ }), m = r, S = N, R = F(be.LOADING), E = st(r, "modelValue"), G = (h) => {
1371
1375
  E.value = h;
1372
1376
  };
1373
1377
  return rt(async () => {
@@ -1386,11 +1390,11 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1386
1390
  })) : (p(), A(o(i), {
1387
1391
  key: 2,
1388
1392
  modelValue: E.value,
1389
- "onUpdate:modelValue": u[0] || (u[0] = (Q) => E.value = Q),
1393
+ "onUpdate:modelValue": u[0] || (u[0] = (z) => E.value = z),
1390
1394
  "hint-text": o(I)("form.expression_playground.supported_protocols_hint"),
1391
1395
  protocol: m.protocol,
1392
1396
  "show-expressions-modal-entry": h.showExpressionsModalEntry,
1393
- onNotify: u[1] || (u[1] = (Q) => S("notify", Q))
1397
+ onNotify: u[1] || (u[1] = (z) => S("notify", z))
1394
1398
  }, {
1395
1399
  default: n(() => [
1396
1400
  c(o(At), { size: o(Le) }, null, 8, ["size"]),
@@ -1398,8 +1402,8 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1398
1402
  ]),
1399
1403
  _: 1
1400
1404
  }, 8, ["modelValue", "hint-text", "protocol", "show-expressions-modal-entry"])),
1401
- ue(h.$slots, "after-editor", {
1402
- expression: { value: E.value, update: L },
1405
+ de(h.$slots, "after-editor", {
1406
+ expression: { value: E.value, update: G },
1403
1407
  state: R.value
1404
1408
  })
1405
1409
  ], 64));
@@ -1407,7 +1411,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1407
1411
  }), Do = { class: "kong-ui-entities-route-form" }, Uo = { key: 1 }, Po = { "data-testid": "no-search-results" }, Fo = { class: "route-form-service-dropdown-item" }, Mo = { class: "select-item-label" }, xo = { class: "select-item-description" }, Ko = { class: "route-form-routing-rules-title-container" }, qo = { class: "routing-rules-title" }, Lo = {
1408
1412
  key: 1,
1409
1413
  class: "route-form-routing-rules-selector-container"
1410
- }, Bo = { class: "route-form-routing-rules-selector-options" }, Go = ["aria-disabled", "data-testid", "onClick"], jo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Wo = { class: "route-form-routing-rules-title-container" }, Xo = { class: "routing-rules-title" }, zo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Jo = /* @__PURE__ */ J({
1414
+ }, Bo = { class: "route-form-routing-rules-selector-options" }, Go = ["aria-disabled", "data-testid", "onClick"], jo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Wo = { class: "route-form-routing-rules-title-container" }, Xo = { class: "routing-rules-title" }, zo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Jo = /* @__PURE__ */ Y({
1411
1415
  __name: "RouteForm",
1412
1416
  props: {
1413
1417
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1477,12 +1481,12 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1477
1481
  emits: ["update", "error", "loading", "model-updated", "notify"],
1478
1482
  setup(r, { expose: N, emit: I }) {
1479
1483
  var Xe;
1480
- const a = r, f = I, i = P(
1484
+ const a = r, f = I, i = F(
1481
1485
  a.routeFlavors.traditional ? `#${w.TRADITIONAL}` : a.routeFlavors.expressions ? `#${w.EXPRESSIONS}` : ""
1482
1486
  ), m = M(() => {
1483
1487
  if (i.value)
1484
1488
  return i.value.substring(1);
1485
- }), S = P(void 0), R = P(!0), E = M(() => {
1489
+ }), S = F(void 0), R = F(!0), E = M(() => {
1486
1490
  if (S.value)
1487
1491
  return S.value;
1488
1492
  if (m.value)
@@ -1491,7 +1495,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1491
1495
  return w.TRADITIONAL;
1492
1496
  if (a.routeFlavors.expressions)
1493
1497
  return w.EXPRESSIONS;
1494
- }), { i18nT: L, i18n: h, i18n: { t: u } } = re.useI18n(), Q = h.source.form.protocols, oe = it(), { axiosInstance: O } = Be((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: D } = Ut(), Y = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1498
+ }), { i18nT: G, i18n: h, i18n: { t: u } } = le.useI18n(), z = h.source.form.protocols, ce = it(), { axiosInstance: O } = Be((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: D } = Ut(), J = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1495
1499
  routeFlavors: a.routeFlavors,
1496
1500
  fields: {
1497
1501
  name: "",
@@ -1516,7 +1520,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1516
1520
  q(() => a.routeFlavors, (t) => {
1517
1521
  e.routeFlavors = t;
1518
1522
  });
1519
- const Z = M(() => e.fields.protocols.split(",")[0]), ae = P([""]), Ee = Qe({
1523
+ const Z = M(() => e.fields.protocols.split(",")[0]), ie = F([""]), Ee = Qe({
1520
1524
  name: "",
1521
1525
  protocols: "http,https",
1522
1526
  https_redirect_status_code: 426,
@@ -1578,13 +1582,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1578
1582
  ], $e = [
1579
1583
  { label: "v0", value: "v0" },
1580
1584
  { label: "v1", value: "v1" }
1581
- ], ne = [
1585
+ ], ae = [
1582
1586
  { label: "426", value: 426 },
1583
1587
  { label: "301", value: 301 },
1584
1588
  { label: "302", value: 302 },
1585
1589
  { label: "307", value: 307 },
1586
1590
  { label: "308", value: 308 }
1587
- ], ce = {
1591
+ ], ue = {
1588
1592
  http: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS],
1589
1593
  https: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
1590
1594
  "http,https": [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
@@ -1615,13 +1619,13 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1615
1619
  return (v = (s = _e.form[(t = a.config) == null ? void 0 : t.app]) == null ? void 0 : s.fetch) == null ? void 0 : v[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId || "");
1616
1620
  }), Ae = () => {
1617
1621
  var t;
1618
- oe.push((t = a.config) == null ? void 0 : t.cancelRoute);
1622
+ ce.push((t = a.config) == null ? void 0 : t.cancelRoute);
1619
1623
  }, He = (t) => {
1620
1624
  f("loading", t);
1621
1625
  }, De = (t) => {
1622
1626
  f("error", t);
1623
1627
  }, Ue = (t) => {
1624
- de(e) && (e.fields.methods = K[l.METHODS], t.forEach((s) => {
1628
+ ne(e) && (e.fields.methods = K[l.METHODS], t.forEach((s) => {
1625
1629
  e.fields.methods && (e.fields.methods[s] = !0);
1626
1630
  }));
1627
1631
  }, Te = (t) => Object.entries(t).map((s) => {
@@ -1638,7 +1642,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1638
1642
  if (t === l.HEADERS)
1639
1643
  return [...s].filter((v) => !!v.header);
1640
1644
  }, k = () => {
1641
- if (de(e)) {
1645
+ if (ne(e)) {
1642
1646
  const t = _(l.HEADERS, e.fields.headers || []) || K[l.HEADERS];
1643
1647
  if (t.length === 0)
1644
1648
  return null;
@@ -1649,12 +1653,12 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1649
1653
  }
1650
1654
  return null;
1651
1655
  }, $ = (t) => {
1652
- de(e) && (t && t === l.PATHS && (e.fields.paths ? e.fields.paths.push([...K[l.PATHS]][0]) : e.fields.paths = [...K[l.PATHS]]), t === l.SNIS && (e.fields.snis ? e.fields.snis.push([...K[l.SNIS]][0]) : e.fields.snis = [...K[l.SNIS]]), t === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[l.HOSTS]][0]) : e.fields.hosts = [...K[l.HOSTS]]), t === l.METHODS && (e.fields.methods || (e.fields.methods = { ...K[l.METHODS] })), t === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[l.HEADERS][0] }) : e.fields.headers = [{ ...K[l.HEADERS][0] }]), t === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[l.SOURCES][0] }) : e.fields.sources = [{ ...K[l.SOURCES][0] }]), t === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[l.DESTINATIONS][0] }]));
1653
- }, B = M(() => {
1656
+ ne(e) && (t && t === l.PATHS && (e.fields.paths ? e.fields.paths.push([...K[l.PATHS]][0]) : e.fields.paths = [...K[l.PATHS]]), t === l.SNIS && (e.fields.snis ? e.fields.snis.push([...K[l.SNIS]][0]) : e.fields.snis = [...K[l.SNIS]]), t === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[l.HOSTS]][0]) : e.fields.hosts = [...K[l.HOSTS]]), t === l.METHODS && (e.fields.methods || (e.fields.methods = { ...K[l.METHODS] })), t === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[l.HEADERS][0] }) : e.fields.headers = [{ ...K[l.HEADERS][0] }]), t === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[l.SOURCES][0] }) : e.fields.sources = [{ ...K[l.SOURCES][0] }]), t === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[l.DESTINATIONS][0] }]));
1657
+ }, L = M(() => {
1654
1658
  var t;
1655
- return de(e) ? (t = ce[e.fields.protocols]) == null ? void 0 : t.filter((s) => !e.fields[s]) : !1;
1656
- }), G = async (t, s) => {
1657
- if (de(e)) {
1659
+ return ne(e) ? (t = ue[e.fields.protocols]) == null ? void 0 : t.filter((s) => !e.fields[s]) : !1;
1660
+ }), B = async (t, s) => {
1661
+ if (ne(e)) {
1658
1662
  if (typeof s < "u") {
1659
1663
  let v = [];
1660
1664
  if (v = e.fields[t], v.splice(s, 1), v.length) {
@@ -1663,10 +1667,10 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1663
1667
  }
1664
1668
  }
1665
1669
  await Vt(() => {
1666
- delete e.fields[t], t === l.METHODS && (ae.value = [""]);
1670
+ delete e.fields[t], t === l.METHODS && (ie.value = [""]);
1667
1671
  });
1668
1672
  }
1669
- }, se = (t) => {
1673
+ }, oe = (t) => {
1670
1674
  var v;
1671
1675
  return ((v = h.source.form.fields[t]) == null ? void 0 : v.label) || "";
1672
1676
  };
@@ -1674,12 +1678,12 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1674
1678
  ye();
1675
1679
  });
1676
1680
  const ye = () => {
1677
- const t = Object.keys(K), s = ce[e.fields.protocols];
1681
+ const t = Object.keys(K), s = ue[e.fields.protocols];
1678
1682
  Object.keys(e.fields).filter((V) => t.includes(V)).forEach((V) => {
1679
- s != null && s.includes(V) || G(V);
1683
+ s != null && s.includes(V) || B(V);
1680
1684
  });
1681
1685
  }, T = M(() => {
1682
- if (de(e)) {
1686
+ if (ne(e)) {
1683
1687
  const t = [];
1684
1688
  return e.fields.methods && Object.entries(e.fields.methods).forEach(([s, v]) => {
1685
1689
  v && t.push(s);
@@ -1694,25 +1698,25 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1694
1698
  return !Object.keys(e.fields).filter((v) => t.includes(v)).length;
1695
1699
  }), Fe = M(() => {
1696
1700
  if (W(["tls_passthrough"]))
1697
- return [se(l.SNIS)];
1698
- const t = ce[e.fields.protocols].map((s) => se(s));
1701
+ return [oe(l.SNIS)];
1702
+ const t = ue[e.fields.protocols].map((s) => oe(s));
1699
1703
  return [[...t].splice(0, t.length - 1).join(", "), t[t.length - 1]];
1700
1704
  }), Ge = (t) => {
1701
1705
  var v, V;
1702
1706
  if (a.routeId) {
1703
- const z = typeof t.expression == "string" && t.expression.length > 0 ? w.EXPRESSIONS : w.TRADITIONAL;
1704
- S.value = z, i.value = `#${z}`;
1707
+ const Q = typeof t.expression == "string" && t.expression.length > 0 ? w.EXPRESSIONS : w.TRADITIONAL;
1708
+ S.value = Q, i.value = `#${Q}`;
1705
1709
  }
1706
1710
  (v = t == null ? void 0 : t.service) != null && v.id && (e.fields.service_id = t.service.id), e.fields.name = (t == null ? void 0 : t.name) || "";
1707
1711
  const s = (t == null ? void 0 : t.tags) || [];
1708
- e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (t == null ? void 0 : t.preserve_host) > "u" ? !1 : t == null ? void 0 : t.preserve_host, e.fields.https_redirect_status_code = (t == null ? void 0 : t.https_redirect_status_code) || 426, (V = t == null ? void 0 : t.protocols) != null && V.length && (t.protocols.length > 1 ? e.fields.protocols = t.protocols.join() : e.fields.protocols = t.protocols[0]), e.fields.request_buffering = typeof (t == null ? void 0 : t.request_buffering) > "u" ? !0 : t == null ? void 0 : t.request_buffering, e.fields.response_buffering = typeof (t == null ? void 0 : t.response_buffering) > "u" ? !0 : t == null ? void 0 : t.response_buffering, e.fields.strip_path = typeof (t == null ? void 0 : t.strip_path) > "u" ? !0 : t == null ? void 0 : t.strip_path, de(e) && (e.fields.regex_priority = (t == null ? void 0 : t.regex_priority) || 0, e.fields.path_handling = (t == null ? void 0 : t.path_handling) || "v0", t != null && t.paths && (e.fields.paths = t.paths), t != null && t.snis && (e.fields.snis = t.snis), t != null && t.hosts && (e.fields.hosts = t.hosts), t != null && t.methods && Ue(t.methods), t != null && t.headers && (e.fields.headers = Te(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), ke(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(Ee, JSON.parse(JSON.stringify(e.fields)));
1712
+ e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (t == null ? void 0 : t.preserve_host) > "u" ? !1 : t == null ? void 0 : t.preserve_host, e.fields.https_redirect_status_code = (t == null ? void 0 : t.https_redirect_status_code) || 426, (V = t == null ? void 0 : t.protocols) != null && V.length && (t.protocols.length > 1 ? e.fields.protocols = t.protocols.join() : e.fields.protocols = t.protocols[0]), e.fields.request_buffering = typeof (t == null ? void 0 : t.request_buffering) > "u" ? !0 : t == null ? void 0 : t.request_buffering, e.fields.response_buffering = typeof (t == null ? void 0 : t.response_buffering) > "u" ? !0 : t == null ? void 0 : t.response_buffering, e.fields.strip_path = typeof (t == null ? void 0 : t.strip_path) > "u" ? !0 : t == null ? void 0 : t.strip_path, ne(e) && (e.fields.regex_priority = (t == null ? void 0 : t.regex_priority) || 0, e.fields.path_handling = (t == null ? void 0 : t.path_handling) || "v0", t != null && t.paths && (e.fields.paths = t.paths), t != null && t.snis && (e.fields.snis = t.snis), t != null && t.hosts && (e.fields.hosts = t.hosts), t != null && t.methods && Ue(t.methods), t != null && t.headers && (e.fields.headers = Te(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), ke(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(Ee, JSON.parse(JSON.stringify(e.fields)));
1709
1713
  }, je = M(() => {
1710
1714
  var t;
1711
1715
  switch (E.value) {
1712
1716
  case w.TRADITIONAL: {
1713
- if (de(e)) {
1714
- const s = e.fields.hosts ? !!e.fields.hosts.filter(Boolean).length : null, v = e.fields.paths ? !!e.fields.paths.filter(Boolean).length : null, V = e.fields.headers ? e.fields.headers.some(({ header: me }) => !!me) : null, z = e.fields.snis ? !!e.fields.snis.filter(Boolean).length : null, fe = e.fields.destinations ? e.fields.destinations.some(({ ip: me }) => !!me) : null, le = e.fields.sources ? e.fields.sources.some(({ ip: me }) => !!me) : null, d = ((t = e.fields.methods) == null ? void 0 : t.CUSTOM) ? ae.value.some((me) => !!me) : Object.values(e.fields.methods || {}).includes(!0);
1715
- return !!e.fields.protocols && (W(["http"]) && !!(s || d || v || V) || W(["https"]) && !!(s || d || v || V || z) || W(["grpc"]) && !!(s || v || V) || W(["grpcs", "wss"]) && !!(s || v || V || z) || W(["udp", "tls"]) && !!(fe || le || z) || W(["tcp"]) && !!(fe || le) || W(["tls_passthrough"]) && !!z || W(["ws"]) && !!(s || v || V));
1717
+ if (ne(e)) {
1718
+ const s = e.fields.hosts ? !!e.fields.hosts.filter(Boolean).length : null, v = e.fields.paths ? !!e.fields.paths.filter(Boolean).length : null, V = e.fields.headers ? e.fields.headers.some(({ header: me }) => !!me) : null, Q = e.fields.snis ? !!e.fields.snis.filter(Boolean).length : null, fe = e.fields.destinations ? e.fields.destinations.some(({ ip: me }) => !!me) : null, se = e.fields.sources ? e.fields.sources.some(({ ip: me }) => !!me) : null, d = ((t = e.fields.methods) == null ? void 0 : t.CUSTOM) ? ie.value.some((me) => !!me) : Object.values(e.fields.methods || {}).includes(!0);
1719
+ return !!e.fields.protocols && (W(["http"]) && !!(s || d || v || V) || W(["https"]) && !!(s || d || v || V || Q) || W(["grpc"]) && !!(s || v || V) || W(["grpcs", "wss"]) && !!(s || v || V || Q) || W(["udp", "tls"]) && !!(fe || se || Q) || W(["tcp"]) && !!(fe || se) || W(["tls_passthrough"]) && !!Q || W(["ws"]) && !!(s || v || V));
1716
1720
  }
1717
1721
  break;
1718
1722
  }
@@ -1733,7 +1737,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1733
1737
  }, { deep: !0 });
1734
1738
  const Ie = (t) => t != null && t.length ? t : null, ft = () => {
1735
1739
  var t, s;
1736
- if (de(e)) {
1740
+ if (ne(e)) {
1737
1741
  const v = {
1738
1742
  methods: null,
1739
1743
  hosts: Ie(_(l.HOSTS, e.fields.hosts || [])),
@@ -1747,9 +1751,9 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1747
1751
  };
1748
1752
  if ((t = T.value) != null && t.length && (v.methods = [...T.value], (s = T.value) != null && s.includes("CUSTOM"))) {
1749
1753
  const V = v.methods.indexOf("CUSTOM");
1750
- V !== -1 && v.methods.splice(V, 1), ae.value.forEach((z) => {
1754
+ V !== -1 && v.methods.splice(V, 1), ie.value.forEach((Q) => {
1751
1755
  var fe;
1752
- z && v.methods && !((fe = v.methods) != null && fe.includes(z)) && v.methods.push(z.toUpperCase());
1756
+ Q && v.methods && !((fe = v.methods) != null && fe.includes(Q)) && v.methods.push(Q.toUpperCase());
1753
1757
  });
1754
1758
  }
1755
1759
  return v;
@@ -1825,7 +1829,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1825
1829
  }), rt(() => {
1826
1830
  f("model-updated", Re.value);
1827
1831
  }), N({ saveFormData: xe, getPayload: Re }), (t, s) => {
1828
- const v = C("KInput"), V = C("KSelect"), z = C("KAlert"), fe = C("KCard"), le = C("KCheckbox"), Ke = C("KCollapse");
1832
+ const v = C("KInput"), V = C("KSelect"), Q = C("KAlert"), fe = C("KCard"), se = C("KCheckbox"), Ke = C("KCollapse");
1829
1833
  return p(), b("div", Do, [
1830
1834
  c(o(Mt), {
1831
1835
  "can-submit": je.value && We.value,
@@ -1843,14 +1847,14 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1843
1847
  onSubmit: xe
1844
1848
  }, {
1845
1849
  "form-actions": n(() => [
1846
- ue(t.$slots, "form-actions", {
1850
+ de(t.$slots, "form-actions", {
1847
1851
  canSubmit: je.value && We.value,
1848
1852
  cancel: Ae,
1849
1853
  submit: xe
1850
1854
  }, void 0, !0)
1851
1855
  ]),
1852
1856
  default: n(() => [
1853
- Y.value ? (p(), A(o(et), {
1857
+ J.value ? (p(), A(o(et), {
1854
1858
  key: 0,
1855
1859
  description: o(u)("form.sections.general.description"),
1856
1860
  "hide-info-header": r.hideSectionsInfo,
@@ -1893,7 +1897,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1893
1897
  y("div", Po, g(o(u)("search.no_results")), 1)
1894
1898
  ]),
1895
1899
  "selected-item-template": n(({ item: d }) => [
1896
- F(g(j(d)), 1)
1900
+ P(g(j(d)), 1)
1897
1901
  ]),
1898
1902
  "item-template": n(({ item: d }) => [
1899
1903
  y("div", Fo, [
@@ -1949,16 +1953,16 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1949
1953
  r.routeFlavors.traditional && r.routeFlavors.expressions && (!S.value || S.value !== m.value) ? {
1950
1954
  name: "before-content",
1951
1955
  fn: n(() => [
1952
- c(z, {
1956
+ c(Q, {
1953
1957
  appearance: S.value ? "warning" : "info",
1954
1958
  class: "route-form-config-type-immutable-alert",
1955
1959
  "data-testid": "route-config-type-immutable-alert"
1956
1960
  }, {
1957
1961
  default: n(() => [
1958
1962
  S.value ? S.value !== m.value ? (p(), b(x, { key: 1 }, [
1959
- F(g(o(u)("form.warning.cannotChangeFlavor.edit", { format: o(u)(`form.flavors.${S.value}`) })), 1)
1963
+ P(g(o(u)("form.warning.cannotChangeFlavor.edit", { format: o(u)(`form.flavors.${S.value}`) })), 1)
1960
1964
  ], 64)) : H("", !0) : (p(), b(x, { key: 0 }, [
1961
- F(g(o(u)("form.warning.cannotChangeFlavor.create")), 1)
1965
+ P(g(o(u)("form.warning.cannotChangeFlavor.create")), 1)
1962
1966
  ], 64))
1963
1967
  ]),
1964
1968
  _: 1
@@ -1966,7 +1970,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1966
1970
  ]),
1967
1971
  key: "0"
1968
1972
  } : void 0,
1969
- o(de)(e) ? {
1973
+ o(ne)(e) ? {
1970
1974
  name: "traditional",
1971
1975
  fn: n(() => [
1972
1976
  !S.value || S.value === o(w).TRADITIONAL ? (p(), b(x, { key: 0 }, [
@@ -1981,18 +1985,18 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
1981
1985
  ])
1982
1986
  ]),
1983
1987
  default: n(() => [
1984
- Pe.value ? (p(), A(z, {
1988
+ Pe.value ? (p(), A(Q, {
1985
1989
  key: 0,
1986
1990
  appearance: "warning",
1987
1991
  "data-testid": "routing-rules-warning"
1988
1992
  }, {
1989
1993
  default: n(() => [
1990
- c(o(L), { keypath: "form.warning.rulesMessage" }, {
1994
+ c(o(G), { keypath: "form.warning.rulesMessage" }, {
1991
1995
  protocol: n(() => [
1992
- y("b", null, g(o(Q)[e.fields.protocols]), 1)
1996
+ y("b", null, g(o(z)[e.fields.protocols]), 1)
1993
1997
  ]),
1994
1998
  routingRules: n(() => [
1995
- c(o(L), {
1999
+ c(o(G), {
1996
2000
  keypath: Fe.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
1997
2001
  }, {
1998
2002
  routingRules: n(() => [
@@ -2016,66 +2020,66 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2016
2020
  modelValue: e.fields.paths,
2017
2021
  "onUpdate:modelValue": s[4] || (s[4] = (d) => e.fields.paths = d),
2018
2022
  onAdd: s[5] || (s[5] = (d) => $(o(l).PATHS)),
2019
- onRemove: s[6] || (s[6] = (d) => G(o(l).PATHS, d))
2023
+ onRemove: s[6] || (s[6] = (d) => B(o(l).PATHS, d))
2020
2024
  }, null, 8, ["modelValue"])) : H("", !0),
2021
2025
  e.fields.snis ? (p(), A(Co, {
2022
2026
  key: "snis-container",
2023
2027
  modelValue: e.fields.snis,
2024
2028
  "onUpdate:modelValue": s[7] || (s[7] = (d) => e.fields.snis = d),
2025
2029
  onAdd: s[8] || (s[8] = (d) => $(o(l).SNIS)),
2026
- onRemove: s[9] || (s[9] = (d) => G(o(l).SNIS, d))
2030
+ onRemove: s[9] || (s[9] = (d) => B(o(l).SNIS, d))
2027
2031
  }, null, 8, ["modelValue"])) : H("", !0),
2028
2032
  e.fields.hosts ? (p(), A(vo, {
2029
2033
  key: "hosts-container",
2030
2034
  modelValue: e.fields.hosts,
2031
2035
  "onUpdate:modelValue": s[10] || (s[10] = (d) => e.fields.hosts = d),
2032
2036
  onAdd: s[11] || (s[11] = (d) => $(o(l).HOSTS)),
2033
- onRemove: s[12] || (s[12] = (d) => G(o(l).HOSTS, d))
2037
+ onRemove: s[12] || (s[12] = (d) => B(o(l).HOSTS, d))
2034
2038
  }, null, 8, ["modelValue"])) : H("", !0),
2035
2039
  e.fields.methods ? (p(), A(To, {
2036
2040
  key: "methods-container",
2037
2041
  modelValue: e.fields.methods,
2038
2042
  "onUpdate:modelValue": s[13] || (s[13] = (d) => e.fields.methods = d),
2039
- "custom-methods": ae.value,
2040
- onRemove: s[14] || (s[14] = (d) => G(o(l).METHODS)),
2041
- onUpdateCustomMethods: s[15] || (s[15] = (d) => ae.value = d)
2043
+ "custom-methods": ie.value,
2044
+ onRemove: s[14] || (s[14] = (d) => B(o(l).METHODS)),
2045
+ onUpdateCustomMethods: s[15] || (s[15] = (d) => ie.value = d)
2042
2046
  }, null, 8, ["modelValue", "custom-methods"])) : H("", !0),
2043
2047
  e.fields.headers ? (p(), A(fo, {
2044
2048
  key: "headers-container",
2045
2049
  modelValue: e.fields.headers,
2046
2050
  "onUpdate:modelValue": s[16] || (s[16] = (d) => e.fields.headers = d),
2047
2051
  onAdd: s[17] || (s[17] = (d) => $(o(l).HEADERS)),
2048
- onRemove: s[18] || (s[18] = (d) => G(o(l).HEADERS, d))
2052
+ onRemove: s[18] || (s[18] = (d) => B(o(l).HEADERS, d))
2049
2053
  }, null, 8, ["modelValue"])) : H("", !0),
2050
2054
  e.fields.sources ? (p(), A(No, {
2051
2055
  key: "sources-container",
2052
2056
  modelValue: e.fields.sources,
2053
2057
  "onUpdate:modelValue": s[19] || (s[19] = (d) => e.fields.sources = d),
2054
2058
  onAdd: s[20] || (s[20] = (d) => $(o(l).SOURCES)),
2055
- onRemove: s[21] || (s[21] = (d) => G(o(l).SOURCES, d))
2059
+ onRemove: s[21] || (s[21] = (d) => B(o(l).SOURCES, d))
2056
2060
  }, null, 8, ["modelValue"])) : H("", !0),
2057
2061
  e.fields.destinations ? (p(), A(uo, {
2058
2062
  key: "destinations-container",
2059
2063
  modelValue: e.fields.destinations,
2060
2064
  "onUpdate:modelValue": s[22] || (s[22] = (d) => e.fields.destinations = d),
2061
2065
  onAdd: s[23] || (s[23] = (d) => $(o(l).DESTINATIONS)),
2062
- onRemove: s[24] || (s[24] = (d) => G(o(l).DESTINATIONS, d))
2066
+ onRemove: s[24] || (s[24] = (d) => B(o(l).DESTINATIONS, d))
2063
2067
  }, null, 8, ["modelValue"])) : H("", !0)
2064
2068
  ]),
2065
2069
  _: 1
2066
2070
  }),
2067
- B.value ? (p(), b("div", Lo, [
2071
+ L.value ? (p(), b("div", Lo, [
2068
2072
  s[45] || (s[45] = y("hr", null, null, -1)),
2069
2073
  y("div", Bo, [
2070
2074
  y("ul", null, [
2071
- (p(!0), b(x, null, X(ce[e.fields.protocols], (d) => (p(), b("li", { key: d }, [
2075
+ (p(!0), b(x, null, X(ue[e.fields.protocols], (d) => (p(), b("li", { key: d }, [
2072
2076
  y("label", {
2073
2077
  "aria-disabled": !!e.fields[d],
2074
2078
  class: Et(["option", { "is-selected": e.fields[d] }]),
2075
2079
  "data-testid": `routing-rule-${d}`,
2076
2080
  role: "button",
2077
2081
  onClick: (me) => $(d)
2078
- }, g(se(d)), 11, Go)
2082
+ }, g(oe(d)), 11, Go)
2079
2083
  ]))), 128))
2080
2084
  ])
2081
2085
  ])
@@ -2110,7 +2114,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2110
2114
  modelValue: e.fields.https_redirect_status_code,
2111
2115
  "onUpdate:modelValue": s[26] || (s[26] = (d) => e.fields.https_redirect_status_code = d),
2112
2116
  "data-testid": "route-form-http-redirect-status-code",
2113
- items: ne,
2117
+ items: ae,
2114
2118
  label: o(u)("form.fields.https_redirect_status_code.label"),
2115
2119
  readonly: e.isReadonly,
2116
2120
  width: "100%"
@@ -2137,26 +2141,26 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2137
2141
  readonly: e.isReadonly,
2138
2142
  type: "text"
2139
2143
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : H("", !0),
2140
- W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2144
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(se, {
2141
2145
  key: 2,
2142
2146
  modelValue: e.fields.strip_path,
2143
2147
  "onUpdate:modelValue": s[29] || (s[29] = (d) => e.fields.strip_path = d),
2144
2148
  "data-testid": "route-form-strip-path",
2145
2149
  label: o(u)("form.fields.strip_path.label")
2146
2150
  }, null, 8, ["modelValue", "label"])) : H("", !0),
2147
- c(le, {
2151
+ c(se, {
2148
2152
  modelValue: e.fields.preserve_host,
2149
2153
  "onUpdate:modelValue": s[30] || (s[30] = (d) => e.fields.preserve_host = d),
2150
2154
  "data-testid": "route-form-preserve-host",
2151
2155
  label: o(u)("form.fields.preserve_host.label")
2152
2156
  }, null, 8, ["modelValue", "label"]),
2153
- c(le, {
2157
+ c(se, {
2154
2158
  modelValue: e.fields.request_buffering,
2155
2159
  "onUpdate:modelValue": s[31] || (s[31] = (d) => e.fields.request_buffering = d),
2156
2160
  "data-testid": "route-form-request-buffering",
2157
2161
  label: o(u)("form.fields.request_buffering.label")
2158
2162
  }, null, 8, ["modelValue", "label"]),
2159
- c(le, {
2163
+ c(se, {
2160
2164
  modelValue: e.fields.response_buffering,
2161
2165
  "onUpdate:modelValue": s[32] || (s[32] = (d) => e.fields.response_buffering = d),
2162
2166
  "data-testid": "route-form-response-buffering",
@@ -2193,7 +2197,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2193
2197
  onNotify: s[35] || (s[35] = (d) => f("notify", d))
2194
2198
  }, {
2195
2199
  "after-editor": n((d) => [
2196
- ue(t.$slots, "after-expressions-editor", {
2200
+ de(t.$slots, "after-expressions-editor", {
2197
2201
  expression: d.expression,
2198
2202
  state: d.state
2199
2203
  }, void 0, !0)
@@ -2216,7 +2220,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2216
2220
  modelValue: e.fields.https_redirect_status_code,
2217
2221
  "onUpdate:modelValue": s[36] || (s[36] = (d) => e.fields.https_redirect_status_code = d),
2218
2222
  "data-testid": "route-form-http-redirect-status-code",
2219
- items: ne,
2223
+ items: ae,
2220
2224
  label: o(u)("form.fields.https_redirect_status_code.label"),
2221
2225
  readonly: e.isReadonly,
2222
2226
  width: "100%"
@@ -2247,26 +2251,26 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2247
2251
  readonly: e.isReadonly,
2248
2252
  type: "text"
2249
2253
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : H("", !0),
2250
- W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2254
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(se, {
2251
2255
  key: 1,
2252
2256
  modelValue: e.fields.strip_path,
2253
2257
  "onUpdate:modelValue": s[39] || (s[39] = (d) => e.fields.strip_path = d),
2254
2258
  "data-testid": "route-form-strip-path",
2255
2259
  label: o(u)("form.fields.strip_path.label")
2256
2260
  }, null, 8, ["modelValue", "label"])) : H("", !0),
2257
- c(le, {
2261
+ c(se, {
2258
2262
  modelValue: e.fields.preserve_host,
2259
2263
  "onUpdate:modelValue": s[40] || (s[40] = (d) => e.fields.preserve_host = d),
2260
2264
  "data-testid": "route-form-preserve-host",
2261
2265
  label: o(u)("form.fields.preserve_host.label")
2262
2266
  }, null, 8, ["modelValue", "label"]),
2263
- c(le, {
2267
+ c(se, {
2264
2268
  modelValue: e.fields.request_buffering,
2265
2269
  "onUpdate:modelValue": s[41] || (s[41] = (d) => e.fields.request_buffering = d),
2266
2270
  "data-testid": "route-form-request-buffering",
2267
2271
  label: o(u)("form.fields.request_buffering.label")
2268
2272
  }, null, 8, ["modelValue", "label"]),
2269
- c(le, {
2273
+ c(se, {
2270
2274
  modelValue: e.fields.response_buffering,
2271
2275
  "onUpdate:modelValue": s[42] || (s[42] = (d) => e.fields.response_buffering = d),
2272
2276
  "data-testid": "route-form-response-buffering",
@@ -2290,7 +2294,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2290
2294
  ]);
2291
2295
  };
2292
2296
  }
2293
- }), as = /* @__PURE__ */ ie(Jo, [["__scopeId", "data-v-e155aee1"]]), Qo = { class: "kong-ui-entities-route-entity-config-card" }, Yo = { key: 2 }, ns = /* @__PURE__ */ J({
2297
+ }), as = /* @__PURE__ */ re(Jo, [["__scopeId", "data-v-e155aee1"]]), Qo = { class: "kong-ui-entities-route-entity-config-card" }, Yo = { key: 2 }, ns = /* @__PURE__ */ Y({
2294
2298
  __name: "RouteConfigCard",
2295
2299
  props: {
2296
2300
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2323,8 +2327,8 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2323
2327
  },
2324
2328
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
2325
2329
  setup(r, { emit: N }) {
2326
- var oe;
2327
- const I = N, a = r, { axiosInstance: f } = Be((oe = a.config) == null ? void 0 : oe.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = re.useI18n(), S = P(""), R = P(""), E = P(!1), L = M(
2330
+ var ce;
2331
+ const I = N, a = r, { axiosInstance: f } = Be((ce = a.config) == null ? void 0 : ce.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = le.useI18n(), S = F(""), R = F(""), E = F(!1), G = M(
2328
2332
  () => {
2329
2333
  var O, D;
2330
2334
  return (D = _e.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : D[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
@@ -2333,8 +2337,8 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2333
2337
  var O;
2334
2338
  return (O = _e.item[a.config.app]) == null ? void 0 : O.getService;
2335
2339
  }), u = async (O) => {
2336
- var Y, j, e;
2337
- if (S.value = a.serviceId || ((Y = O == null ? void 0 : O.service) == null ? void 0 : Y.id), I("fetch:success", O), !S.value)
2340
+ var J, j, e;
2341
+ if (S.value = a.serviceId || ((J = O == null ? void 0 : O.service) == null ? void 0 : J.id), I("fetch:success", O), !S.value)
2338
2342
  return;
2339
2343
  let D = `${a.config.apiBaseUrl}${h.value}`;
2340
2344
  a.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((j = a.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{serviceId}/gi, S.value || "") : a.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, (e = a.config) != null && e.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, S.value || ""));
@@ -2347,7 +2351,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2347
2351
  } finally {
2348
2352
  E.value = !1;
2349
2353
  }
2350
- }, Q = P({
2354
+ }, z = F({
2351
2355
  id: {},
2352
2356
  name: {
2353
2357
  tooltip: i("form.fields.name.tooltip")
@@ -2436,14 +2440,14 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2436
2440
  }
2437
2441
  });
2438
2442
  return (O, D) => {
2439
- const Y = C("KSkeleton");
2443
+ const J = C("KSkeleton");
2440
2444
  return p(), b("div", Qo, [
2441
2445
  c(o(xt), {
2442
2446
  config: r.config,
2443
2447
  "config-card-doc": r.configCardDoc,
2444
- "config-schema": Q.value,
2448
+ "config-schema": z.value,
2445
2449
  "entity-type": o(ut).Route,
2446
- "fetch-url": L.value,
2450
+ "fetch-url": G.value,
2447
2451
  "hide-title": r.hideTitle,
2448
2452
  "onFetch:error": D[0] || (D[0] = (j) => O.$emit("fetch:error", j)),
2449
2453
  "onFetch:success": u,
@@ -2561,7 +2565,7 @@ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.
2561
2565
  })
2562
2566
  ]),
2563
2567
  service: n(({ row: j }) => [
2564
- E.value ? (p(), A(Y, {
2568
+ E.value ? (p(), A(J, {
2565
2569
  key: 0,
2566
2570
  "data-testid": "service-name-loader",
2567
2571
  type: "spinner"
@@ -2590,5 +2594,5 @@ export {
2590
2594
  is as RouteList,
2591
2595
  l as RoutingRulesEntities,
2592
2596
  ke as stateHasExpressionsFlavor,
2593
- de as stateHasTraditionalFlavor
2597
+ ne as stateHasTraditionalFlavor
2594
2598
  };