@kong-ui-public/entities-routes 3.8.25 → 3.8.26

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,8 +1,8 @@
1
- import { defineComponent as J, ref as U, computed as M, watch as B, onBeforeMount as rt, resolveComponent as C, openBlock as p, createElementBlock as S, createVNode as c, unref as o, withCtx as n, createBlock as V, Teleport as At, withDirectives as Vt, createTextVNode as F, toDisplayString as g, vShow as kt, createElementVNode as y, Fragment as x, renderList as G, withModifiers as Ce, TransitionGroup as ve, pushScopeId as be, popScopeId as ye, createCommentVNode as D, mergeModels as Ge, useModel as it, createSlots as at, renderSlot as ce, defineAsyncComponent as Ct, onMounted as nt, resolveDynamicComponent as Qe, h as Ye, reactive as Ze, normalizeClass as Ot, nextTick as $t } from "vue";
1
+ import { defineComponent as J, ref as U, computed as M, watch as B, onBeforeMount as rt, resolveComponent as C, openBlock as p, createElementBlock as S, createVNode as c, unref as o, withCtx as n, createBlock as V, Teleport as At, withDirectives as Vt, createTextVNode as F, toDisplayString as g, vShow as kt, createElementVNode as b, Fragment as x, renderList as G, withModifiers as Ce, TransitionGroup as ve, pushScopeId as ye, popScopeId as be, createCommentVNode as D, mergeModels as Ge, useModel as it, createSlots as at, renderSlot as ce, defineAsyncComponent as Ct, onMounted as nt, resolveDynamicComponent as Qe, h as Ye, reactive as Ze, normalizeClass as Ot, nextTick as $t } from "vue";
2
2
  import { useRouter as dt } from "vue-router";
3
3
  import { BadgeMethodAppearances as ut } from "@kong/kongponents";
4
4
  import { AddIcon as ct, TrashIcon as pt, InfoIcon as et, RocketIcon as Nt } from "@kong/icons";
5
- import { useAxios as We, useFetcher as wt, useDeleteUrlBuilder as Ht, FetcherStatus as tt, EntityBaseTable as Dt, EntityFilter as Ut, PermissionsWrapper as we, EntityDeleteModal as Pt, EntityTypes as Ft, useErrors as Mt, useGatewayFeatureSupported as xt, EntityBaseFormType as ot, useDebouncedFilter as qt, EntityBaseForm as Kt, SupportedEntityType as ft, EntityFormSection as st, ConfigurationSchemaSection as he, ConfigurationSchemaType as Se, EntityBaseConfigCard as Lt, InternalLinkItem as Bt } from "@kong-ui-public/entities-shared";
5
+ import { useAxios as We, useFetcher as wt, useDeleteUrlBuilder as Ht, FetcherStatus as tt, EntityBaseTable as Dt, EntityFilter as Ut, PermissionsWrapper as we, EntityDeleteModal as Pt, EntityTypes as Ft, useErrors as Mt, useGatewayFeatureSupported as xt, EntityBaseFormType as ot, useDebouncedFilter as Kt, EntityBaseForm as qt, SupportedEntityType as ft, EntityFormSection as st, ConfigurationSchemaSection as he, ConfigurationSchemaType as Se, EntityBaseConfigCard as Lt, InternalLinkItem as Bt } from "@kong-ui-public/entities-shared";
6
6
  import { createI18n as Gt, i18nTComponent as jt } from "@kong-ui-public/i18n";
7
7
  import Wt from "lodash.isequal";
8
8
  const Xt = {
@@ -412,30 +412,30 @@ const ie = {
412
412
  created_at: !1
413
413
  }
414
414
  }, u = L, Q = M(() => {
415
- var k, N, q, X;
416
- let b = `${a.config.apiBaseUrl}${Ee.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
417
- return a.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, ((N = a.config) == null ? void 0 : N.serviceId) || "") : a.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (q = a.config) != null && q.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((X = a.config) == null ? void 0 : X.serviceId) || "")), b;
415
+ var k, N, K, X;
416
+ let y = `${a.config.apiBaseUrl}${Ee.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
417
+ return a.config.app === "konnect" ? y = y.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, ((N = a.config) == null ? void 0 : N.serviceId) || "") : a.config.app === "kongManager" && (y = y.replace(/\/{workspace}/gi, (K = a.config) != null && K.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((X = a.config) == null ? void 0 : X.serviceId) || "")), y;
418
418
  }), se = U(""), O = M(() => {
419
- const b = a.config.app === "konnect" || a.config.isExactMatch;
420
- if (b)
419
+ const y = a.config.app === "konnect" || a.config.isExactMatch;
420
+ if (y)
421
421
  return {
422
- isExactMatch: b,
422
+ isExactMatch: y,
423
423
  placeholder: f(`search.placeholder.${a.config.app}`)
424
424
  };
425
- const { name: k, protocols: N, hosts: q, methods: X, paths: le, expression: ge } = L, I = {
425
+ const { name: k, protocols: N, hosts: K, methods: X, paths: le, expression: ge } = L, I = {
426
426
  name: k,
427
427
  protocols: N,
428
- hosts: q,
428
+ hosts: K,
429
429
  methods: X,
430
430
  paths: le,
431
431
  ...a.hasExpressionColumn && { expression: ge }
432
432
  };
433
433
  return {
434
- isExactMatch: b,
434
+ isExactMatch: y,
435
435
  fields: I,
436
436
  schema: a.config.filterSchema
437
437
  };
438
- }), { fetcher: P, fetcherState: Y } = wt(a.config, Q.value), j = (b) => b.headerKey === "expression" ? {
438
+ }), { fetcher: P, fetcherState: Y } = wt(a.config, Q.value), j = (y) => y.headerKey === "expression" ? {
439
439
  style: {
440
440
  maxWidth: "250px",
441
441
  overflowX: "hidden",
@@ -445,66 +445,66 @@ const ie = {
445
445
  se.value = "";
446
446
  }, Z = () => {
447
447
  R.value++;
448
- }, ne = U(null), Ie = U(!1), K = (b, k) => {
449
- const N = b.id;
448
+ }, ne = U(null), Ie = U(!1), q = (y, k) => {
449
+ const N = y.id;
450
450
  if (!k(N)) {
451
451
  T("copy:error", {
452
- entity: b,
452
+ entity: y,
453
453
  field: "id",
454
454
  message: f("errors.copy")
455
455
  });
456
456
  return;
457
457
  }
458
458
  T("copy:success", {
459
- entity: b,
459
+ entity: y,
460
460
  field: "id",
461
461
  message: f("copy.success", { val: N })
462
462
  });
463
- }, De = (b, k) => {
464
- const N = JSON.stringify(b);
463
+ }, De = (y, k) => {
464
+ const N = JSON.stringify(y);
465
465
  if (!k(N)) {
466
466
  T("copy:error", {
467
- entity: b,
467
+ entity: y,
468
468
  message: f("errors.copy")
469
469
  });
470
470
  return;
471
471
  }
472
472
  T("copy:success", {
473
- entity: b,
473
+ entity: y,
474
474
  message: f("copy.success_brief")
475
475
  });
476
- }, Ue = async (b) => {
476
+ }, Ue = async (y) => {
477
477
  var N;
478
- await ((N = a.canRetrieve) == null ? void 0 : N.call(a, b)) && m.push(a.config.getViewRoute(b.id));
479
- }, Pe = (b) => ({
478
+ await ((N = a.canRetrieve) == null ? void 0 : N.call(a, y)) && m.push(a.config.getViewRoute(y.id));
479
+ }, Pe = (y) => ({
480
480
  label: f("actions.view"),
481
- to: a.config.getViewRoute(b)
482
- }), Oe = (b) => ({
481
+ to: a.config.getViewRoute(y)
482
+ }), Oe = (y) => ({
483
483
  label: f("actions.edit"),
484
- to: a.config.getEditRoute(b)
485
- }), ee = U(void 0), pe = U(!1), Te = U(!1), Ae = U(""), Fe = Ht(a.config, Q.value), Me = (b) => {
486
- ee.value = b, pe.value = !0;
484
+ to: a.config.getEditRoute(y)
485
+ }), ee = U(void 0), pe = U(!1), Te = U(!1), Ae = U(""), Fe = Ht(a.config, Q.value), Me = (y) => {
486
+ ee.value = y, pe.value = !0;
487
487
  }, xe = () => {
488
488
  pe.value = !1;
489
- }, qe = async () => {
490
- var b, k, N;
491
- if ((b = ee.value) != null && b.id) {
489
+ }, Ke = async () => {
490
+ var y, k, N;
491
+ if ((y = ee.value) != null && y.id) {
492
492
  Te.value = !0;
493
493
  try {
494
494
  await _.delete(Fe(ee.value.id)), Te.value = !1, pe.value = !1, R.value++, T("delete:success", ee.value);
495
- } catch (q) {
496
- Ae.value = ((N = (k = q.response) == null ? void 0 : k.data) == null ? void 0 : N.message) || q.message || f("errors.delete"), T("error", q);
495
+ } catch (K) {
496
+ Ae.value = ((N = (k = K.response) == null ? void 0 : k.data) == null ? void 0 : N.message) || K.message || f("errors.delete"), T("error", K);
497
497
  } finally {
498
498
  Te.value = !1;
499
499
  }
500
500
  }
501
501
  }, W = U(!1);
502
- B(Y, (b) => {
503
- var k, N, q, X;
504
- if (Array.isArray((k = b == null ? void 0 : b.response) == null ? void 0 : k.data) && (W.value = b.response.data.length > 0), b.status === tt.NoRecords ? Ie.value = !0 : Ie.value = !1, b.status === tt.Error) {
502
+ B(Y, (y) => {
503
+ var k, N, K, X;
504
+ if (Array.isArray((k = y == null ? void 0 : y.response) == null ? void 0 : k.data) && (W.value = y.response.data.length > 0), y.status === tt.NoRecords ? Ie.value = !0 : Ie.value = !1, y.status === tt.Error) {
505
505
  ne.value = {
506
506
  title: f("errors.general")
507
- }, (X = (q = (N = b.error) == null ? void 0 : N.response) == null ? void 0 : q.data) != null && X.message && (ne.value.message = b.error.response.data.message), T("error", b.error);
507
+ }, (X = (K = (N = y.error) == null ? void 0 : N.response) == null ? void 0 : K.data) != null && X.message && (ne.value.message = y.error.response.data.message), T("error", y.error);
508
508
  return;
509
509
  }
510
510
  ne.value = null;
@@ -517,8 +517,8 @@ const ie = {
517
517
  });
518
518
  return rt(async () => {
519
519
  await a.canCreate() && (de.value.title = f("routes.list.empty_state.title"), de.value.ctaText = f("actions.create"));
520
- }), (b, k) => {
521
- const N = C("KButton"), q = C("KBadge"), X = C("KTruncate"), le = C("KDropdownItem"), ge = C("KClipboardProvider");
520
+ }), (y, k) => {
521
+ const N = C("KButton"), K = C("KBadge"), X = C("KTruncate"), le = C("KDropdownItem"), ge = C("KClipboardProvider");
522
522
  return p(), S("div", to, [
523
523
  c(o(Dt), {
524
524
  "cache-identifier": s.cacheIdentifier,
@@ -577,12 +577,12 @@ const ie = {
577
577
  ], 8, ["disabled"]))
578
578
  ]),
579
579
  name: n(({ rowValue: I }) => [
580
- y("b", null, g(I ?? "-"), 1)
580
+ b("b", null, g(I ?? "-"), 1)
581
581
  ]),
582
582
  protocols: n(({ rowValue: I }) => [
583
583
  c(X, null, {
584
584
  default: n(() => [
585
- (p(!0), S(x, null, G(I, (H) => (p(), V(q, {
585
+ (p(!0), S(x, null, G(I, (H) => (p(), V(K, {
586
586
  key: H,
587
587
  appearance: "neutral",
588
588
  onClick: k[1] || (k[1] = Ce(() => {
@@ -600,7 +600,7 @@ const ie = {
600
600
  hosts: n(({ rowValue: I }) => [
601
601
  (I == null ? void 0 : I.length) > 0 ? (p(), V(X, { key: 0 }, {
602
602
  default: n(() => [
603
- (p(!0), S(x, null, G(I, (H) => (p(), V(q, {
603
+ (p(!0), S(x, null, G(I, (H) => (p(), V(K, {
604
604
  key: H,
605
605
  appearance: "neutral",
606
606
  tooltip: H,
@@ -620,7 +620,7 @@ const ie = {
620
620
  methods: n(({ rowValue: I }) => [
621
621
  (I == null ? void 0 : I.length) > 0 ? (p(), V(X, { key: 0 }, {
622
622
  default: n(() => [
623
- (p(!0), S(x, null, G(I, (H) => (p(), V(q, {
623
+ (p(!0), S(x, null, G(I, (H) => (p(), V(K, {
624
624
  key: H,
625
625
  appearance: Object.values(o(ut)).includes(H.toLowerCase()) ? H.toLowerCase() : "custom",
626
626
  onClick: k[3] || (k[3] = Ce(() => {
@@ -638,7 +638,7 @@ const ie = {
638
638
  paths: n(({ rowValue: I }) => [
639
639
  (I == null ? void 0 : I.length) > 0 ? (p(), V(X, { key: 0 }, {
640
640
  default: n(() => [
641
- (p(!0), S(x, null, G(I, (H) => (p(), V(q, {
641
+ (p(!0), S(x, null, G(I, (H) => (p(), V(K, {
642
642
  key: H,
643
643
  appearance: "neutral",
644
644
  tooltip: H,
@@ -658,7 +658,7 @@ const ie = {
658
658
  tags: n(({ rowValue: I }) => [
659
659
  (I == null ? void 0 : I.length) > 0 ? (p(), V(X, { key: 0 }, {
660
660
  default: n(() => [
661
- (p(!0), S(x, null, G(I, (H) => (p(), V(q, {
661
+ (p(!0), S(x, null, G(I, (H) => (p(), V(K, {
662
662
  key: H,
663
663
  onClick: k[5] || (k[5] = Ce(() => {
664
664
  }, ["stop"]))
@@ -673,7 +673,7 @@ const ie = {
673
673
  }, 1024)) : (p(), S("span", ro, "-"))
674
674
  ]),
675
675
  expression: n(({ rowValue: I }) => [
676
- y("span", io, g(I || "-"), 1)
676
+ b("span", io, g(I || "-"), 1)
677
677
  ]),
678
678
  created_at: n(({ rowValue: I }) => [
679
679
  F(g(o(i)(I)), 1)
@@ -686,7 +686,7 @@ const ie = {
686
686
  default: n(({ copyToClipboard: H }) => [
687
687
  c(le, {
688
688
  "data-testid": "action-entity-copy-id",
689
- onClick: (Ne) => K(I, H)
689
+ onClick: (Ne) => q(I, H)
690
690
  }, {
691
691
  default: n(() => [
692
692
  F(g(o(f)("actions.copy_id")), 1)
@@ -763,7 +763,7 @@ const ie = {
763
763
  title: o(f)("delete.title"),
764
764
  visible: pe.value,
765
765
  onCancel: xe,
766
- onProceed: qe
766
+ onProceed: Ke
767
767
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
768
768
  ]);
769
769
  };
@@ -819,7 +819,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
819
819
  ]);
820
820
  };
821
821
  }
822
- }), _e = /* @__PURE__ */ ae(co, [["__scopeId", "data-v-e024298d"]]), po = (s) => (be("data-v-b964ced7"), s = s(), ye(), s), fo = { class: "routing-rule-container" }, mo = /* @__PURE__ */ po(() => /* @__PURE__ */ y("hr", null, null, -1)), ho = /* @__PURE__ */ J({
822
+ }), _e = /* @__PURE__ */ ae(co, [["__scopeId", "data-v-e024298d"]]), po = (s) => (ye("data-v-b964ced7"), s = s(), be(), s), fo = { class: "routing-rule-container" }, mo = /* @__PURE__ */ po(() => /* @__PURE__ */ b("hr", null, null, -1)), ho = /* @__PURE__ */ J({
823
823
  __name: "RouteFormDestinationsFields",
824
824
  props: {
825
825
  modelValue: {
@@ -882,7 +882,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
882
882
  ]);
883
883
  };
884
884
  }
885
- }), vo = /* @__PURE__ */ ae(ho, [["__scopeId", "data-v-b964ced7"]]), go = (s) => (be("data-v-01020443"), s = s(), ye(), s), So = { class: "routing-rule-container" }, bo = /* @__PURE__ */ go(() => /* @__PURE__ */ y("hr", null, null, -1)), yo = /* @__PURE__ */ J({
885
+ }), vo = /* @__PURE__ */ ae(ho, [["__scopeId", "data-v-b964ced7"]]), go = (s) => (ye("data-v-01020443"), s = s(), be(), s), So = { class: "routing-rule-container" }, yo = /* @__PURE__ */ go(() => /* @__PURE__ */ b("hr", null, null, -1)), bo = /* @__PURE__ */ J({
886
886
  __name: "RouteFormHeadersFields",
887
887
  props: {
888
888
  modelValue: {
@@ -900,7 +900,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
900
900
  }, { deep: !0 }), (m, _) => {
901
901
  const R = C("KLabel"), A = C("KInput");
902
902
  return p(), S("div", So, [
903
- bo,
903
+ yo,
904
904
  c(R, {
905
905
  info: o(f)("form.fields.headers.tooltip")
906
906
  }, {
@@ -942,7 +942,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
942
942
  ]);
943
943
  };
944
944
  }
945
- }), _o = /* @__PURE__ */ ae(yo, [["__scopeId", "data-v-01020443"]]), Io = (s) => (be("data-v-6174b92d"), s = s(), ye(), s), To = { class: "routing-rule-container" }, Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ y("hr", null, null, -1)), Eo = /* @__PURE__ */ J({
945
+ }), _o = /* @__PURE__ */ ae(bo, [["__scopeId", "data-v-01020443"]]), Io = (s) => (ye("data-v-6174b92d"), s = s(), be(), s), To = { class: "routing-rule-container" }, Ro = /* @__PURE__ */ Io(() => /* @__PURE__ */ b("hr", null, null, -1)), Eo = /* @__PURE__ */ J({
946
946
  __name: "RouteFormHostsFields",
947
947
  props: {
948
948
  modelValue: {
@@ -995,7 +995,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
995
995
  ]);
996
996
  };
997
997
  }
998
- }), Ao = /* @__PURE__ */ ae(Eo, [["__scopeId", "data-v-6174b92d"]]), Vo = (s) => (be("data-v-5f61c45d"), s = s(), ye(), s), ko = { class: "routing-rule-container" }, Co = /* @__PURE__ */ Vo(() => /* @__PURE__ */ y("hr", null, null, -1)), Oo = { class: "routing-rule-input" }, $o = { class: "methods-input-container" }, No = {
998
+ }), Ao = /* @__PURE__ */ ae(Eo, [["__scopeId", "data-v-6174b92d"]]), Vo = (s) => (ye("data-v-5f61c45d"), s = s(), be(), s), ko = { class: "routing-rule-container" }, Co = /* @__PURE__ */ Vo(() => /* @__PURE__ */ b("hr", null, null, -1)), Oo = { class: "routing-rule-input" }, $o = { class: "methods-input-container" }, No = {
999
999
  key: 0,
1000
1000
  class: "routing-rule-container"
1001
1001
  }, wo = /* @__PURE__ */ J({
@@ -1031,8 +1031,8 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1031
1031
  ]),
1032
1032
  _: 1
1033
1033
  }),
1034
- y("div", Oo, [
1035
- y("div", $o, [
1034
+ b("div", Oo, [
1035
+ b("div", $o, [
1036
1036
  (p(!0), S(x, null, G(Object.keys(i.value), (O) => (p(), S("div", {
1037
1037
  key: O,
1038
1038
  class: "methods-input"
@@ -1151,7 +1151,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1151
1151
  ]);
1152
1152
  };
1153
1153
  }
1154
- }), Po = /* @__PURE__ */ ae(Uo, [["__scopeId", "data-v-5b1f7bb4"]]), Fo = (s) => (be("data-v-63640996"), s = s(), ye(), s), Mo = { class: "routing-rule-container" }, xo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ y("hr", null, null, -1)), qo = /* @__PURE__ */ J({
1154
+ }), Po = /* @__PURE__ */ ae(Uo, [["__scopeId", "data-v-5b1f7bb4"]]), Fo = (s) => (ye("data-v-63640996"), s = s(), be(), s), Mo = { class: "routing-rule-container" }, xo = /* @__PURE__ */ Fo(() => /* @__PURE__ */ b("hr", null, null, -1)), Ko = /* @__PURE__ */ J({
1155
1155
  __name: "RouteFormSnisFields",
1156
1156
  props: {
1157
1157
  modelValue: {
@@ -1204,7 +1204,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1204
1204
  ]);
1205
1205
  };
1206
1206
  }
1207
- }), Ko = /* @__PURE__ */ ae(qo, [["__scopeId", "data-v-63640996"]]), Lo = (s) => (be("data-v-08fcd8c5"), s = s(), ye(), s), Bo = { class: "routing-rule-container" }, Go = /* @__PURE__ */ Lo(() => /* @__PURE__ */ y("hr", null, null, -1)), jo = /* @__PURE__ */ J({
1207
+ }), qo = /* @__PURE__ */ ae(Ko, [["__scopeId", "data-v-63640996"]]), Lo = (s) => (ye("data-v-08fcd8c5"), s = s(), be(), s), Bo = { class: "routing-rule-container" }, Go = /* @__PURE__ */ Lo(() => /* @__PURE__ */ b("hr", null, null, -1)), jo = /* @__PURE__ */ J({
1208
1208
  __name: "RouteFormSourcesFields",
1209
1209
  props: {
1210
1210
  modelValue: {
@@ -1409,7 +1409,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1409
1409
  }, {
1410
1410
  default: n(() => [
1411
1411
  c(o(Nt), { size: o(je) }, null, 8, ["size"]),
1412
- y("span", null, g(o(T)("form.expression_playground.test_link")), 1)
1412
+ b("span", null, g(o(T)("form.expression_playground.test_link")), 1)
1413
1413
  ]),
1414
1414
  _: 1
1415
1415
  }, 8, ["modelValue", "hint-text", "protocol", "show-expressions-modal-entry"])),
@@ -1419,10 +1419,10 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1419
1419
  })
1420
1420
  ], 64));
1421
1421
  }
1422
- }), Qo = (s) => (be("data-v-8861550f"), s = s(), ye(), s), Yo = { class: "kong-ui-entities-route-form" }, Zo = { key: 1 }, es = { "data-testid": "no-search-results" }, ts = { class: "route-form-service-dropdown-item" }, os = { class: "select-item-label" }, ss = { class: "select-item-description" }, ls = { class: "route-form-routing-rules-title-container" }, rs = { class: "routing-rules-title" }, is = {
1422
+ }), Qo = (s) => (ye("data-v-83e76105"), s = s(), be(), s), Yo = { class: "kong-ui-entities-route-form" }, Zo = { key: 1 }, es = { "data-testid": "no-search-results" }, ts = { class: "route-form-service-dropdown-item" }, os = { class: "select-item-label" }, ss = { class: "select-item-description" }, ls = { class: "route-form-routing-rules-title-container" }, rs = { class: "routing-rules-title" }, is = {
1423
1423
  key: 1,
1424
1424
  class: "route-form-routing-rules-selector-container"
1425
- }, as = /* @__PURE__ */ Qo(() => /* @__PURE__ */ y("hr", null, null, -1)), ns = { class: "route-form-routing-rules-selector-options" }, ds = ["aria-disabled", "data-testid", "onClick"], us = { class: "route-form-fields-container route-form-advanced-fields-container" }, cs = { class: "route-form-routing-rules-title-container" }, ps = { class: "routing-rules-title" }, fs = { class: "route-form-fields-container route-form-advanced-fields-container" }, ms = /* @__PURE__ */ J({
1425
+ }, as = /* @__PURE__ */ Qo(() => /* @__PURE__ */ b("hr", null, null, -1)), ns = { class: "route-form-routing-rules-selector-options" }, ds = ["aria-disabled", "data-testid", "onClick"], us = { class: "route-form-fields-container route-form-advanced-fields-container" }, cs = { class: "route-form-routing-rules-title-container" }, ps = { class: "routing-rules-title" }, fs = { class: "route-form-fields-container route-form-advanced-fields-container" }, ms = /* @__PURE__ */ J({
1426
1426
  __name: "RouteForm",
1427
1427
  props: {
1428
1428
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1487,15 +1487,6 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1487
1487
  type: Boolean,
1488
1488
  required: !1,
1489
1489
  default: !1
1490
- },
1491
- /**
1492
- * Enable display of Terraform code
1493
- * Guarded by FF: khcp-12445-terraform-config-details
1494
- */
1495
- enableTerraform: {
1496
- type: Boolean,
1497
- required: !1,
1498
- default: !1
1499
1490
  }
1500
1491
  },
1501
1492
  emits: ["update", "error", "loading", "model-updated", "notify"],
@@ -1549,7 +1540,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1549
1540
  regex_priority: 0,
1550
1541
  expression: "",
1551
1542
  priority: 0
1552
- }), K = {
1543
+ }), q = {
1553
1544
  [r.PATHS]: [""],
1554
1545
  [r.SNIS]: [""],
1555
1546
  [r.HOSTS]: [""],
@@ -1640,10 +1631,10 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1640
1631
  }, Me = (t) => {
1641
1632
  f("error", t);
1642
1633
  }, xe = (t) => {
1643
- ue(e) && (e.fields.methods = K[r.METHODS], t.forEach((l) => {
1634
+ ue(e) && (e.fields.methods = q[r.METHODS], t.forEach((l) => {
1644
1635
  e.fields.methods && (e.fields.methods[l] = !0);
1645
1636
  }));
1646
- }, qe = (t) => Object.entries(t).map((l) => {
1637
+ }, Ke = (t) => Object.entries(t).map((l) => {
1647
1638
  var v;
1648
1639
  return { header: l[0], values: (v = l[1]) == null ? void 0 : v.join() };
1649
1640
  }), W = (t) => t.some((l) => e.fields.protocols.includes(l)), de = (t, l) => {
@@ -1658,7 +1649,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1658
1649
  return [...l].filter((v) => !!v.header);
1659
1650
  }, $e = () => {
1660
1651
  if (ue(e)) {
1661
- const t = de(r.HEADERS, e.fields.headers || []) || K[r.HEADERS];
1652
+ const t = de(r.HEADERS, e.fields.headers || []) || q[r.HEADERS];
1662
1653
  if (t.length === 0)
1663
1654
  return null;
1664
1655
  const l = {};
@@ -1667,8 +1658,8 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1667
1658
  }), l;
1668
1659
  }
1669
1660
  return null;
1670
- }, b = (t) => {
1671
- ue(e) && (t && t === r.PATHS && (e.fields.paths ? e.fields.paths.push([...K[r.PATHS]][0]) : e.fields.paths = [...K[r.PATHS]]), t === r.SNIS && (e.fields.snis ? e.fields.snis.push([...K[r.SNIS]][0]) : e.fields.snis = [...K[r.SNIS]]), t === r.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[r.HOSTS]][0]) : e.fields.hosts = [...K[r.HOSTS]]), t === r.METHODS && (e.fields.methods || (e.fields.methods = { ...K[r.METHODS] })), t === r.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[r.HEADERS][0] }) : e.fields.headers = [{ ...K[r.HEADERS][0] }]), t === r.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[r.SOURCES][0] }) : e.fields.sources = [{ ...K[r.SOURCES][0] }]), t === r.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[r.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[r.DESTINATIONS][0] }]));
1661
+ }, y = (t) => {
1662
+ ue(e) && (t && t === r.PATHS && (e.fields.paths ? e.fields.paths.push([...q[r.PATHS]][0]) : e.fields.paths = [...q[r.PATHS]]), t === r.SNIS && (e.fields.snis ? e.fields.snis.push([...q[r.SNIS]][0]) : e.fields.snis = [...q[r.SNIS]]), t === r.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...q[r.HOSTS]][0]) : e.fields.hosts = [...q[r.HOSTS]]), t === r.METHODS && (e.fields.methods || (e.fields.methods = { ...q[r.METHODS] })), t === r.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...q[r.HEADERS][0] }) : e.fields.headers = [{ ...q[r.HEADERS][0] }]), t === r.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...q[r.SOURCES][0] }) : e.fields.sources = [{ ...q[r.SOURCES][0] }]), t === r.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...q[r.DESTINATIONS][0] }) : e.fields.destinations = [{ ...q[r.DESTINATIONS][0] }]));
1672
1663
  }, k = M(() => {
1673
1664
  var t;
1674
1665
  return ue(e) ? (t = ee[e.fields.protocols]) == null ? void 0 : t.filter((l) => !e.fields[l]) : !1;
@@ -1685,7 +1676,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1685
1676
  delete e.fields[t], t === r.METHODS && (ne.value = [""]);
1686
1677
  });
1687
1678
  }
1688
- }, q = (t) => {
1679
+ }, K = (t) => {
1689
1680
  var v;
1690
1681
  return ((v = h.source.form.fields[t]) == null ? void 0 : v.label) || "";
1691
1682
  };
@@ -1693,7 +1684,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1693
1684
  X();
1694
1685
  });
1695
1686
  const X = () => {
1696
- const t = Object.keys(K), l = ee[e.fields.protocols];
1687
+ const t = Object.keys(q), l = ee[e.fields.protocols];
1697
1688
  Object.keys(e.fields).filter((E) => t.includes(E)).forEach((E) => {
1698
1689
  l != null && l.includes(E) || N(E);
1699
1690
  });
@@ -1709,12 +1700,12 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1709
1700
  var t;
1710
1701
  return ((t = e.fields.protocols) == null ? void 0 : t.split(",")) || [];
1711
1702
  }), I = M(() => {
1712
- const t = Object.keys(K);
1703
+ const t = Object.keys(q);
1713
1704
  return !Object.keys(e.fields).filter((v) => t.includes(v)).length;
1714
1705
  }), H = M(() => {
1715
1706
  if (W(["tls_passthrough"]))
1716
- return [q(r.SNIS)];
1717
- const t = ee[e.fields.protocols].map((l) => q(l));
1707
+ return [K(r.SNIS)];
1708
+ const t = ee[e.fields.protocols].map((l) => K(l));
1718
1709
  return [[...t].splice(0, t.length - 1).join(", "), t[t.length - 1]];
1719
1710
  }), Ne = (t) => {
1720
1711
  var v, E;
@@ -1724,7 +1715,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1724
1715
  }
1725
1716
  (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) || "";
1726
1717
  const l = (t == null ? void 0 : t.tags) || [];
1727
- e.fields.tags = (l == null ? void 0 : l.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, (E = t == null ? void 0 : t.protocols) != null && E.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, ue(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 && xe(t.methods), t != null && t.headers && (e.fields.headers = qe(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), He(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(Ie, JSON.parse(JSON.stringify(e.fields)));
1718
+ e.fields.tags = (l == null ? void 0 : l.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, (E = t == null ? void 0 : t.protocols) != null && E.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, ue(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 && xe(t.methods), t != null && t.headers && (e.fields.headers = Ke(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), He(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(Ie, JSON.parse(JSON.stringify(e.fields)));
1728
1719
  }, Xe = M(() => {
1729
1720
  var t;
1730
1721
  switch (A.value) {
@@ -1742,7 +1733,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1742
1733
  }
1743
1734
  }
1744
1735
  return !0;
1745
- }), ze = M(() => !Wt(e.fields, Ie)), Ke = M(() => {
1736
+ }), ze = M(() => !Wt(e.fields, Ie)), qe = M(() => {
1746
1737
  var l, v;
1747
1738
  let t = `${a.config.apiBaseUrl}${Ee.form[a.config.app][pe.value][a.serviceId ? "forGatewayService" : "all"]}`;
1748
1739
  return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((l = a.config) == null ? void 0 : l.controlPlaneId) || "").replace(/{serviceId}/gi, a.serviceId || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = a.config) != null && v.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, a.serviceId || "")), t = t.replace(/{id}/gi, a.routeId), t;
@@ -1820,19 +1811,19 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1820
1811
  try {
1821
1812
  e.isReadonly = !0;
1822
1813
  let E;
1823
- pe.value === "create" ? E = await O.post(Ke.value, l) : pe.value === "edit" && (E = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(Ke.value, l) : await O.patch(Ke.value, l)), Ne(E == null ? void 0 : E.data), f("update", E == null ? void 0 : E.data);
1814
+ pe.value === "create" ? E = await O.post(qe.value, l) : pe.value === "edit" && (E = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(qe.value, l) : await O.patch(qe.value, l)), Ne(E == null ? void 0 : E.data), f("update", E == null ? void 0 : E.data);
1824
1815
  } catch (E) {
1825
1816
  e.errorMessage = P(E), f("error", E);
1826
1817
  } finally {
1827
1818
  e.isReadonly = !1;
1828
1819
  }
1829
1820
  }, {
1830
- debouncedQueryChange: bt,
1831
- loading: yt,
1821
+ debouncedQueryChange: yt,
1822
+ loading: bt,
1832
1823
  error: _t,
1833
1824
  loadItems: It,
1834
1825
  results: Tt
1835
- } = qt(a.config, Ee.form[a.config.app].services, void 0, {
1826
+ } = Kt(a.config, Ee.form[a.config.app].services, void 0, {
1836
1827
  fetchedItemsKey: "data",
1837
1828
  searchKeys: ["id", "name"]
1838
1829
  }), Rt = M(() => _t.value ? u("errors.services.fetch") : ""), Et = M(() => {
@@ -1846,11 +1837,10 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1846
1837
  }), $({ saveFormData: Le, getPayload: ke }), (t, l) => {
1847
1838
  const v = C("KInput"), E = C("KSelect"), z = C("KAlert"), fe = C("KCard"), re = C("KCheckbox"), Be = C("KCollapse");
1848
1839
  return p(), S("div", Yo, [
1849
- c(o(Kt), {
1840
+ c(o(qt), {
1850
1841
  "can-submit": Xe.value && ze.value,
1851
1842
  config: s.config,
1852
1843
  "edit-id": s.routeId,
1853
- "enable-terraform": s.enableTerraform,
1854
1844
  "entity-type": o(ft).Route,
1855
1845
  "error-message": e.errorMessage || Rt.value,
1856
1846
  "fetch-url": Te.value,
@@ -1899,26 +1889,26 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1899
1889
  "filter-function": () => !0,
1900
1890
  items: Et.value,
1901
1891
  label: o(u)("form.fields.service_id.label"),
1902
- loading: o(yt),
1892
+ loading: o(bt),
1903
1893
  placeholder: o(u)("form.fields.service_id.placeholder"),
1904
1894
  readonly: e.isReadonly,
1905
1895
  "reuse-item-template": "",
1906
1896
  width: "100%",
1907
- onQueryChange: o(bt)
1897
+ onQueryChange: o(yt)
1908
1898
  }, {
1909
1899
  loading: n(() => [
1910
- y("div", null, g(o(u)("actions.loading")), 1)
1900
+ b("div", null, g(o(u)("actions.loading")), 1)
1911
1901
  ]),
1912
1902
  empty: n(() => [
1913
- y("div", es, g(o(u)("search.no_results")), 1)
1903
+ b("div", es, g(o(u)("search.no_results")), 1)
1914
1904
  ]),
1915
1905
  "selected-item-template": n(({ item: d }) => [
1916
1906
  F(g(j(d)), 1)
1917
1907
  ]),
1918
1908
  "item-template": n(({ item: d }) => [
1919
- y("div", ts, [
1920
- y("span", os, g(d.name), 1),
1921
- y("span", ss, g(d.value), 1)
1909
+ b("div", ts, [
1910
+ b("span", os, g(d.name), 1),
1911
+ b("span", ss, g(d.value), 1)
1922
1912
  ])
1923
1913
  ]),
1924
1914
  _: 1
@@ -1992,12 +1982,12 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
1992
1982
  !_.value || _.value === o(w).TRADITIONAL ? (p(), S(x, { key: 0 }, [
1993
1983
  e.fields.protocols ? (p(), V(fe, { key: 0 }, {
1994
1984
  title: n(() => [
1995
- y("div", ls, [
1985
+ b("div", ls, [
1996
1986
  (p(!0), S(x, null, G(ge.value, (d) => (p(), S("span", {
1997
1987
  key: d,
1998
1988
  class: "protocol-title"
1999
1989
  }, g(d.toUpperCase()), 1))), 128)),
2000
- y("span", rs, g(o(u)("form.sections.routingRules.title")), 1)
1990
+ b("span", rs, g(o(u)("form.sections.routingRules.title")), 1)
2001
1991
  ])
2002
1992
  ]),
2003
1993
  default: n(() => [
@@ -2009,17 +1999,17 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2009
1999
  default: n(() => [
2010
2000
  c(o(L), { keypath: "form.warning.rulesMessage" }, {
2011
2001
  protocol: n(() => [
2012
- y("b", null, g(o(Q)[e.fields.protocols]), 1)
2002
+ b("b", null, g(o(Q)[e.fields.protocols]), 1)
2013
2003
  ]),
2014
2004
  routingRules: n(() => [
2015
2005
  c(o(L), {
2016
2006
  keypath: H.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
2017
2007
  }, {
2018
2008
  routingRules: n(() => [
2019
- y("b", null, g(H.value[0]), 1)
2009
+ b("b", null, g(H.value[0]), 1)
2020
2010
  ]),
2021
2011
  lastRoutingRule: n(() => [
2022
- y("b", null, g(H.value[1]), 1)
2012
+ b("b", null, g(H.value[1]), 1)
2023
2013
  ]),
2024
2014
  _: 1
2025
2015
  }, 8, ["keypath"])
@@ -2035,21 +2025,21 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2035
2025
  key: "paths-container",
2036
2026
  modelValue: e.fields.paths,
2037
2027
  "onUpdate:modelValue": l[4] || (l[4] = (d) => e.fields.paths = d),
2038
- onAdd: l[5] || (l[5] = (d) => b(o(r).PATHS)),
2028
+ onAdd: l[5] || (l[5] = (d) => y(o(r).PATHS)),
2039
2029
  onRemove: l[6] || (l[6] = (d) => N(o(r).PATHS, d))
2040
2030
  }, null, 8, ["modelValue"])) : D("", !0),
2041
- e.fields.snis ? (p(), V(Ko, {
2031
+ e.fields.snis ? (p(), V(qo, {
2042
2032
  key: "snis-container",
2043
2033
  modelValue: e.fields.snis,
2044
2034
  "onUpdate:modelValue": l[7] || (l[7] = (d) => e.fields.snis = d),
2045
- onAdd: l[8] || (l[8] = (d) => b(o(r).SNIS)),
2035
+ onAdd: l[8] || (l[8] = (d) => y(o(r).SNIS)),
2046
2036
  onRemove: l[9] || (l[9] = (d) => N(o(r).SNIS, d))
2047
2037
  }, null, 8, ["modelValue"])) : D("", !0),
2048
2038
  e.fields.hosts ? (p(), V(Ao, {
2049
2039
  key: "hosts-container",
2050
2040
  modelValue: e.fields.hosts,
2051
2041
  "onUpdate:modelValue": l[10] || (l[10] = (d) => e.fields.hosts = d),
2052
- onAdd: l[11] || (l[11] = (d) => b(o(r).HOSTS)),
2042
+ onAdd: l[11] || (l[11] = (d) => y(o(r).HOSTS)),
2053
2043
  onRemove: l[12] || (l[12] = (d) => N(o(r).HOSTS, d))
2054
2044
  }, null, 8, ["modelValue"])) : D("", !0),
2055
2045
  e.fields.methods ? (p(), V(Ho, {
@@ -2064,21 +2054,21 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2064
2054
  key: "headers-container",
2065
2055
  modelValue: e.fields.headers,
2066
2056
  "onUpdate:modelValue": l[16] || (l[16] = (d) => e.fields.headers = d),
2067
- onAdd: l[17] || (l[17] = (d) => b(o(r).HEADERS)),
2057
+ onAdd: l[17] || (l[17] = (d) => y(o(r).HEADERS)),
2068
2058
  onRemove: l[18] || (l[18] = (d) => N(o(r).HEADERS, d))
2069
2059
  }, null, 8, ["modelValue"])) : D("", !0),
2070
2060
  e.fields.sources ? (p(), V(Wo, {
2071
2061
  key: "sources-container",
2072
2062
  modelValue: e.fields.sources,
2073
2063
  "onUpdate:modelValue": l[19] || (l[19] = (d) => e.fields.sources = d),
2074
- onAdd: l[20] || (l[20] = (d) => b(o(r).SOURCES)),
2064
+ onAdd: l[20] || (l[20] = (d) => y(o(r).SOURCES)),
2075
2065
  onRemove: l[21] || (l[21] = (d) => N(o(r).SOURCES, d))
2076
2066
  }, null, 8, ["modelValue"])) : D("", !0),
2077
2067
  e.fields.destinations ? (p(), V(vo, {
2078
2068
  key: "destinations-container",
2079
2069
  modelValue: e.fields.destinations,
2080
2070
  "onUpdate:modelValue": l[22] || (l[22] = (d) => e.fields.destinations = d),
2081
- onAdd: l[23] || (l[23] = (d) => b(o(r).DESTINATIONS)),
2071
+ onAdd: l[23] || (l[23] = (d) => y(o(r).DESTINATIONS)),
2082
2072
  onRemove: l[24] || (l[24] = (d) => N(o(r).DESTINATIONS, d))
2083
2073
  }, null, 8, ["modelValue"])) : D("", !0)
2084
2074
  ]),
@@ -2086,16 +2076,16 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2086
2076
  }),
2087
2077
  k.value ? (p(), S("div", is, [
2088
2078
  as,
2089
- y("div", ns, [
2090
- y("ul", null, [
2079
+ b("div", ns, [
2080
+ b("ul", null, [
2091
2081
  (p(!0), S(x, null, G(ee[e.fields.protocols], (d) => (p(), S("li", { key: d }, [
2092
- y("label", {
2082
+ b("label", {
2093
2083
  "aria-disabled": !!e.fields[d],
2094
2084
  class: Ot(["option", { "is-selected": e.fields[d] }]),
2095
2085
  "data-testid": `routing-rule-${d}`,
2096
2086
  role: "button",
2097
- onClick: (me) => b(d)
2098
- }, g(q(d)), 11, ds)
2087
+ onClick: (me) => y(d)
2088
+ }, g(K(d)), 11, ds)
2099
2089
  ]))), 128))
2100
2090
  ])
2101
2091
  ])
@@ -2111,7 +2101,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2111
2101
  "trigger-label": o(u)("form.viewAdvancedFields")
2112
2102
  }, {
2113
2103
  default: n(() => [
2114
- y("div", us, [
2104
+ b("div", us, [
2115
2105
  e.fields.paths ? (p(), V(E, {
2116
2106
  key: 0,
2117
2107
  modelValue: e.fields.path_handling,
@@ -2196,12 +2186,12 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2196
2186
  !_.value || _.value === o(w).EXPRESSIONS ? (p(), S(x, { key: 0 }, [
2197
2187
  e.fields.protocols ? (p(), V(fe, { key: 0 }, {
2198
2188
  title: n(() => [
2199
- y("div", cs, [
2189
+ b("div", cs, [
2200
2190
  (p(!0), S(x, null, G(ge.value, (d) => (p(), S("span", {
2201
2191
  key: d,
2202
2192
  class: "protocol-title"
2203
2193
  }, g(d.toUpperCase()), 1))), 128)),
2204
- y("span", ps, g(o(u)("form.sections.routingExpression.title")), 1)
2194
+ b("span", ps, g(o(u)("form.sections.routingExpression.title")), 1)
2205
2195
  ])
2206
2196
  ]),
2207
2197
  default: n(() => [
@@ -2231,7 +2221,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2231
2221
  "trigger-label": o(u)("form.viewAdvancedFields")
2232
2222
  }, {
2233
2223
  default: n(() => [
2234
- y("div", fs, [
2224
+ b("div", fs, [
2235
2225
  c(E, {
2236
2226
  modelValue: e.fields.https_redirect_status_code,
2237
2227
  "onUpdate:modelValue": l[36] || (l[36] = (d) => e.fields.https_redirect_status_code = d),
@@ -2306,11 +2296,11 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2306
2296
  }, 8, ["description", "hide-info-header", "title"])
2307
2297
  ]),
2308
2298
  _: 3
2309
- }, 8, ["can-submit", "config", "edit-id", "enable-terraform", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
2299
+ }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
2310
2300
  ]);
2311
2301
  };
2312
2302
  }
2313
- }), Es = /* @__PURE__ */ ae(ms, [["__scopeId", "data-v-8861550f"]]), hs = { class: "kong-ui-entities-route-entity-config-card" }, vs = { key: 2 }, As = /* @__PURE__ */ J({
2303
+ }), Es = /* @__PURE__ */ ae(ms, [["__scopeId", "data-v-83e76105"]]), hs = { class: "kong-ui-entities-route-entity-config-card" }, vs = { key: 2 }, As = /* @__PURE__ */ J({
2314
2304
  __name: "RouteConfigCard",
2315
2305
  props: {
2316
2306
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2339,14 +2329,6 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2339
2329
  type: String,
2340
2330
  required: !1,
2341
2331
  default: ""
2342
- },
2343
- /**
2344
- * Enable display of Terraform code
2345
- * Guarded by FF: khcp-12445-terraform-config-details
2346
- */
2347
- enableTerraform: {
2348
- type: Boolean,
2349
- default: !1
2350
2332
  }
2351
2333
  },
2352
2334
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
@@ -2470,7 +2452,6 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2470
2452
  config: s.config,
2471
2453
  "config-card-doc": s.configCardDoc,
2472
2454
  "config-schema": Q.value,
2473
- "enable-terraform": s.enableTerraform,
2474
2455
  "entity-type": o(ft).Route,
2475
2456
  "fetch-url": L.value,
2476
2457
  "hide-title": s.hideTitle,
@@ -2484,16 +2465,16 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2484
2465
  scope: "global"
2485
2466
  }, {
2486
2467
  code1: n(() => [
2487
- y("code", null, g(o(i)("form.fields.https_redirect_status_code.code1")), 1)
2468
+ b("code", null, g(o(i)("form.fields.https_redirect_status_code.code1")), 1)
2488
2469
  ]),
2489
2470
  code2: n(() => [
2490
- y("code", null, g(o(i)("form.fields.https_redirect_status_code.code2")), 1)
2471
+ b("code", null, g(o(i)("form.fields.https_redirect_status_code.code2")), 1)
2491
2472
  ]),
2492
2473
  code3: n(() => [
2493
- y("code", null, g(o(i)("form.fields.https_redirect_status_code.code3")), 1)
2474
+ b("code", null, g(o(i)("form.fields.https_redirect_status_code.code3")), 1)
2494
2475
  ]),
2495
2476
  code4: n(() => [
2496
- y("code", null, g(o(i)("form.fields.https_redirect_status_code.code4")), 1)
2477
+ b("code", null, g(o(i)("form.fields.https_redirect_status_code.code4")), 1)
2497
2478
  ]),
2498
2479
  _: 1
2499
2480
  })
@@ -2504,10 +2485,10 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2504
2485
  scope: "global"
2505
2486
  }, {
2506
2487
  code1: n(() => [
2507
- y("code", null, g(o(i)("form.fields.regex_priority.code1")), 1)
2488
+ b("code", null, g(o(i)("form.fields.regex_priority.code1")), 1)
2508
2489
  ]),
2509
2490
  code2: n(() => [
2510
- y("code", null, g(o(i)("form.fields.regex_priority.code2")), 1)
2491
+ b("code", null, g(o(i)("form.fields.regex_priority.code2")), 1)
2511
2492
  ]),
2512
2493
  _: 1
2513
2494
  })
@@ -2518,19 +2499,19 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2518
2499
  scope: "global"
2519
2500
  }, {
2520
2501
  code1: n(() => [
2521
- y("code", null, g(o(i)("form.fields.protocols.code1")), 1)
2502
+ b("code", null, g(o(i)("form.fields.protocols.code1")), 1)
2522
2503
  ]),
2523
2504
  code2: n(() => [
2524
- y("code", null, g(o(i)("form.fields.protocols.code2")), 1)
2505
+ b("code", null, g(o(i)("form.fields.protocols.code2")), 1)
2525
2506
  ]),
2526
2507
  code3: n(() => [
2527
- y("code", null, g(o(i)("form.fields.protocols.code3")), 1)
2508
+ b("code", null, g(o(i)("form.fields.protocols.code3")), 1)
2528
2509
  ]),
2529
2510
  code4: n(() => [
2530
- y("code", null, g(o(i)("form.fields.protocols.code4")), 1)
2511
+ b("code", null, g(o(i)("form.fields.protocols.code4")), 1)
2531
2512
  ]),
2532
2513
  code5: n(() => [
2533
- y("code", null, g(o(i)("form.fields.protocols.code5")), 1)
2514
+ b("code", null, g(o(i)("form.fields.protocols.code5")), 1)
2534
2515
  ]),
2535
2516
  _: 1
2536
2517
  })
@@ -2541,16 +2522,16 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2541
2522
  scope: "global"
2542
2523
  }, {
2543
2524
  code1: n(() => [
2544
- y("code", null, g(o(i)("form.fields.headers.code1")), 1)
2525
+ b("code", null, g(o(i)("form.fields.headers.code1")), 1)
2545
2526
  ]),
2546
2527
  code2: n(() => [
2547
- y("code", null, g(o(i)("form.fields.headers.code2")), 1)
2528
+ b("code", null, g(o(i)("form.fields.headers.code2")), 1)
2548
2529
  ]),
2549
2530
  code3: n(() => [
2550
- y("code", null, g(o(i)("form.fields.headers.code3")), 1)
2531
+ b("code", null, g(o(i)("form.fields.headers.code3")), 1)
2551
2532
  ]),
2552
2533
  code4: n(() => [
2553
- y("code", null, g(o(i)("form.fields.headers.code4")), 1)
2534
+ b("code", null, g(o(i)("form.fields.headers.code4")), 1)
2554
2535
  ]),
2555
2536
  _: 1
2556
2537
  })
@@ -2561,7 +2542,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2561
2542
  scope: "global"
2562
2543
  }, {
2563
2544
  code1: n(() => [
2564
- y("code", null, g(o(i)("form.fields.headers.code1")), 1)
2545
+ b("code", null, g(o(i)("form.fields.headers.code1")), 1)
2565
2546
  ]),
2566
2547
  _: 1
2567
2548
  })
@@ -2572,19 +2553,19 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2572
2553
  scope: "global"
2573
2554
  }, {
2574
2555
  code1: n(() => [
2575
- y("code", null, g(o(i)("form.fields.preserve_host.code1")), 1)
2556
+ b("code", null, g(o(i)("form.fields.preserve_host.code1")), 1)
2576
2557
  ]),
2577
2558
  code2: n(() => [
2578
- y("code", null, g(o(i)("form.fields.preserve_host.code2")), 1)
2559
+ b("code", null, g(o(i)("form.fields.preserve_host.code2")), 1)
2579
2560
  ]),
2580
2561
  code3: n(() => [
2581
- y("code", null, g(o(i)("form.fields.preserve_host.code3")), 1)
2562
+ b("code", null, g(o(i)("form.fields.preserve_host.code3")), 1)
2582
2563
  ]),
2583
2564
  code4: n(() => [
2584
- y("code", null, g(o(i)("form.fields.preserve_host.code4")), 1)
2565
+ b("code", null, g(o(i)("form.fields.preserve_host.code4")), 1)
2585
2566
  ]),
2586
2567
  code5: n(() => [
2587
- y("code", null, g(o(i)("form.fields.preserve_host.code5")), 1)
2568
+ b("code", null, g(o(i)("form.fields.preserve_host.code5")), 1)
2588
2569
  ]),
2589
2570
  _: 1
2590
2571
  })
@@ -2605,7 +2586,7 @@ const ue = (s) => s.routeFlavors.traditional === !0, He = (s) => s.routeFlavors.
2605
2586
  }, null, 8, ["item", "onNavigationClick"])) : (p(), S("div", vs, g("-")))
2606
2587
  ]),
2607
2588
  _: 1
2608
- }, 8, ["config", "config-card-doc", "config-schema", "enable-terraform", "entity-type", "fetch-url", "hide-title"])
2589
+ }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
2609
2590
  ]);
2610
2591
  };
2611
2592
  }