@kong-ui-public/entities-routes 3.9.3 → 3.9.4-pr.1964.c866400a2.0

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, computed as P, ref as M, watch as L, onBeforeMount as rt, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as t, createSlots as We, withCtx as n, createBlock as A, Teleport as Je, createElementVNode as y, createCommentVNode as $, createTextVNode as F, toDisplayString as g, Fragment as x, renderList as W, withModifiers as Ue, TransitionGroup as ge, mergeModels as Ge, useModel as it, renderSlot as de, defineAsyncComponent as Et, onMounted as at, resolveDynamicComponent as Qe, h as Ye, reactive as Ze, normalizeClass as kt, nextTick as Vt } from "vue";
1
+ import { defineComponent as Q, computed as D, ref as M, watch as L, onBeforeMount as rt, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as t, createSlots as We, withCtx as n, createBlock as A, Teleport as Je, createElementVNode as y, createCommentVNode as $, createTextVNode as F, toDisplayString as g, Fragment as x, renderList as j, withModifiers as Ue, TransitionGroup as ve, mergeModels as Ge, useModel as it, renderSlot as ne, defineAsyncComponent as Et, onMounted as at, resolveDynamicComponent as Qe, h as Ye, reactive as Ze, normalizeClass as kt, nextTick as Vt } from "vue";
2
2
  import { useRouter as nt } from "vue-router";
3
3
  import { BadgeMethodAppearances as dt } from "@kong/kongponents";
4
4
  import { BookIcon as et, AddIcon as ut, ForwardIcon as At, TrashIcon as ct, InfoIcon as tt, RocketIcon as Ct } from "@kong/icons";
5
- import { useAxios as Xe, useTableState as Ot, useFetcher as Nt, useDeleteUrlBuilder as wt, FetcherStatus as $t, EntityBaseTable as Ht, EntityFilter as Ut, PermissionsWrapper as De, TableTags as Dt, EntityEmptyState as Pt, EntityDeleteModal as Ft, EntityTypes as Mt, useErrors as xt, useGatewayFeatureSupported as Kt, EntityBaseFormType as ot, useDebouncedFilter as qt, EntityBaseForm as Lt, SupportedEntityType as pt, EntityFormSection as st, ConfigurationSchemaSection as ve, ConfigurationSchemaType as ye, EntityBaseConfigCard as Bt, InternalLinkItem as Gt } from "@kong-ui-public/entities-shared";
5
+ import { useAxios as Xe, useTableState as Ot, useFetcher as Nt, useDeleteUrlBuilder as wt, FetcherStatus as $t, EntityBaseTable as Ht, EntityFilter as Ut, PermissionsWrapper as De, TableTags as Dt, EntityEmptyState as Pt, EntityDeleteModal as Ft, EntityTypes as Mt, useErrors as xt, useGatewayFeatureSupported as Kt, EntityBaseFormType as ot, useDebouncedFilter as qt, EntityBaseForm as Lt, SupportedEntityType as pt, EntityFormSection as st, ConfigurationSchemaSection as he, ConfigurationSchemaType as be, EntityBaseConfigCard as Bt, InternalLinkItem as Gt } from "@kong-ui-public/entities-shared";
6
6
  import { createI18n as jt, i18nTComponent as Wt } from "@kong-ui-public/i18n";
7
7
  import Xt from "lodash.isequal";
8
8
  const zt = {
@@ -25,7 +25,7 @@ const zt = {
25
25
  title: "Routes",
26
26
  list: {
27
27
  toolbar_actions: {
28
- new_route: "New Route"
28
+ new_route: "New route"
29
29
  },
30
30
  table_headers: {
31
31
  name: "Name",
@@ -277,64 +277,64 @@ function ft() {
277
277
  // Translation component <i18n-t>
278
278
  };
279
279
  }
280
- const re = {
280
+ const le = {
281
281
  useI18n: ft
282
- }, Z = "/v2/control-planes/{controlPlaneId}/core-entities", ee = "/{workspace}", ke = {
282
+ }, ee = "/v2/control-planes/{controlPlaneId}/core-entities", te = "/{workspace}", Ce = {
283
283
  list: {
284
284
  konnect: {
285
- all: `${Z}/routes`,
286
- forGatewayService: `${Z}/services/{serviceId}/routes`
287
- },
288
- kongManager: {
289
285
  all: `${ee}/routes`,
290
286
  forGatewayService: `${ee}/services/{serviceId}/routes`
287
+ },
288
+ kongManager: {
289
+ all: `${te}/routes`,
290
+ forGatewayService: `${te}/services/{serviceId}/routes`
291
291
  }
292
292
  },
293
293
  form: {
294
294
  konnect: {
295
- services: `${Z}/services`,
295
+ services: `${ee}/services`,
296
296
  create: {
297
- all: `${Z}/routes`,
298
- forGatewayService: `${Z}/services/{serviceId}/routes`
297
+ all: `${ee}/routes`,
298
+ forGatewayService: `${ee}/services/{serviceId}/routes`
299
299
  },
300
300
  fetch: {
301
- all: `${Z}/routes/{id}`,
302
- forGatewayService: `${Z}/services/{serviceId}/routes/{id}`
301
+ all: `${ee}/routes/{id}`,
302
+ forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
303
303
  },
304
304
  edit: {
305
- all: `${Z}/routes/{id}`,
306
- forGatewayService: `${Z}/services/{serviceId}/routes/{id}`
305
+ all: `${ee}/routes/{id}`,
306
+ forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
307
307
  }
308
308
  },
309
309
  kongManager: {
310
- services: `${ee}/services`,
310
+ services: `${te}/services`,
311
311
  create: {
312
- all: `${ee}/routes`,
313
- forGatewayService: `${ee}/services/{serviceId}/routes`
312
+ all: `${te}/routes`,
313
+ forGatewayService: `${te}/services/{serviceId}/routes`
314
314
  },
315
315
  fetch: {
316
- all: `${ee}/routes/{id}`,
317
- forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
316
+ all: `${te}/routes/{id}`,
317
+ forGatewayService: `${te}/services/{serviceId}/routes/{id}`
318
318
  },
319
319
  edit: {
320
- all: `${ee}/routes/{id}`,
321
- forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
320
+ all: `${te}/routes/{id}`,
321
+ forGatewayService: `${te}/services/{serviceId}/routes/{id}`
322
322
  }
323
323
  }
324
324
  },
325
325
  item: {
326
326
  konnect: {
327
- getService: `${Z}/services/{serviceId}`,
328
- all: `${Z}/routes/{id}`,
329
- forGatewayService: `${Z}/services/{serviceId}/routes/{id}`
330
- },
331
- kongManager: {
332
327
  getService: `${ee}/services/{serviceId}`,
333
328
  all: `${ee}/routes/{id}`,
334
329
  forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
330
+ },
331
+ kongManager: {
332
+ getService: `${te}/services/{serviceId}`,
333
+ all: `${te}/routes/{id}`,
334
+ forGatewayService: `${te}/services/{serviceId}/routes/{id}`
335
335
  }
336
336
  }
337
- }, mt = "#d60027", oo = "#00abd2", lt = "#6c7489", je = "16px", so = "24px", lo = { class: "kong-ui-entities-routes-list" }, ro = { class: "button-row" }, io = { class: "empty-state-icon-gateway" }, ao = { key: 1 }, no = { key: 1 }, uo = { key: 1 }, co = { class: "route-list-cell-expression" }, po = /* @__PURE__ */ J({
337
+ }, mt = "#d60027", oo = "#00abd2", lt = "#6c7489", je = "16px", so = "24px", lo = { class: "kong-ui-entities-routes-list" }, ro = { class: "button-row" }, io = { class: "empty-state-icon-gateway" }, ao = { key: 1 }, no = { key: 1 }, uo = { key: 1 }, co = { class: "route-list-cell-expression" }, po = /* @__PURE__ */ Q({
338
338
  __name: "RouteList",
339
339
  props: {
340
340
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -404,8 +404,8 @@ const re = {
404
404
  },
405
405
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
406
406
  setup(r, { emit: N }) {
407
- var te;
408
- const T = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = re.useI18n(), m = nt(), { axiosInstance: S } = Xe((te = a.config) == null ? void 0 : te.axiosRequestConfig), { handleStateChange: R, hasRecords: E } = Ot(() => G.value), B = P(() => E.value && a.config.app === "konnect"), h = P(() => !a.enableV2EmptyStates && a.config.app === "konnect"), u = P(() => a.config.app !== "kongManager" || !!a.config.disableSorting), Q = {
407
+ var Ve;
408
+ const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = le.useI18n(), m = nt(), { axiosInstance: S } = Xe((Ve = a.config) == null ? void 0 : Ve.axiosRequestConfig), { handleStateChange: R, hasRecords: E } = Ot(() => K.value), G = D(() => E.value && a.config.app === "konnect"), h = D(() => !a.enableV2EmptyStates && a.config.app === "konnect"), u = D(() => !!a.config.serviceId), oe = D(() => a.config.app !== "kongManager" || !!a.config.disableSorting), de = {
409
409
  // the Name column is non-hidable
410
410
  name: { label: f("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
411
411
  protocols: { label: f("routes.list.table_headers.protocols"), searchable: !0 },
@@ -420,152 +420,152 @@ const re = {
420
420
  tags: { label: f("routes.list.table_headers.tags"), sortable: !1 },
421
421
  updated_at: { label: f("routes.list.table_headers.updated_at"), sortable: !0 },
422
422
  created_at: { label: f("routes.list.table_headers.created_at"), sortable: !0 }
423
- }, pe = {
423
+ }, O = {
424
424
  columnVisibility: {
425
425
  created_at: !1
426
426
  }
427
- }, O = Q, H = P(() => {
428
- var V, U, q, oe;
429
- let I = `${a.config.apiBaseUrl}${ke.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
430
- return a.config.app === "konnect" ? I = I.replace(/{controlPlaneId}/gi, ((V = a.config) == null ? void 0 : V.controlPlaneId) || "").replace(/{serviceId}/gi, ((U = a.config) == null ? void 0 : U.serviceId) || "") : a.config.app === "kongManager" && (I = I.replace(/\/{workspace}/gi, (q = a.config) != null && q.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((oe = a.config) == null ? void 0 : oe.serviceId) || "")), I;
431
- }), G = M(""), j = P(() => {
432
- const I = a.config.app === "konnect" || a.config.isExactMatch;
433
- if (I)
427
+ }, H = de, z = D(() => {
428
+ var k, P, B, J;
429
+ let T = `${a.config.apiBaseUrl}${Ce.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
430
+ return a.config.app === "konnect" ? T = T.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, ((P = a.config) == null ? void 0 : P.serviceId) || "") : a.config.app === "kongManager" && (T = T.replace(/\/{workspace}/gi, (B = a.config) != null && B.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((J = a.config) == null ? void 0 : J.serviceId) || "")), T;
431
+ }), K = M(""), e = D(() => {
432
+ const T = a.config.app === "konnect" || a.config.isExactMatch;
433
+ if (T)
434
434
  return {
435
- isExactMatch: I,
435
+ isExactMatch: T,
436
436
  // force exact placeholder if `props.config.isExactMatch` is true
437
437
  placeholder: f(`search.placeholder.${a.config.isExactMatch ? "exact" : a.config.app}`)
438
438
  };
439
- const { name: V, protocols: U, hosts: q, methods: oe, paths: se, expression: Se } = Q, _ = {
440
- name: V,
441
- protocols: U,
442
- hosts: q,
443
- methods: oe,
444
- paths: se,
439
+ const { name: k, protocols: P, hosts: B, methods: J, paths: ie, expression: Se } = de, _ = {
440
+ name: k,
441
+ protocols: P,
442
+ hosts: B,
443
+ methods: J,
444
+ paths: ie,
445
445
  ...a.hasExpressionColumn && { expression: Se }
446
446
  };
447
447
  return {
448
- isExactMatch: I,
448
+ isExactMatch: T,
449
449
  fields: _,
450
450
  schema: a.config.filterSchema
451
451
  };
452
452
  }), {
453
- fetcher: e,
454
- fetcherState: Y,
455
- fetcherCacheKey: ue
456
- } = Nt({ ...a.config, cacheIdentifier: a.cacheIdentifier }, H.value), we = (I) => I.headerKey === "expression" ? {
453
+ fetcher: Y,
454
+ fetcherState: ge,
455
+ fetcherCacheKey: Ie
456
+ } = Nt({ ...a.config, cacheIdentifier: a.cacheIdentifier }, z.value), q = (T) => T.headerKey === "expression" ? {
457
457
  style: {
458
458
  maxWidth: "250px",
459
459
  overflowX: "hidden",
460
460
  textOverflow: "ellipsis"
461
461
  }
462
- } : {}, K = () => {
463
- G.value = "";
464
- }, Fe = () => {
465
- ue.value++;
466
- }, _e = M(null), Me = (I, V) => {
467
- const U = I.id;
468
- if (!V(U)) {
469
- T("copy:error", {
470
- entity: I,
462
+ } : {}, Fe = () => {
463
+ K.value = "";
464
+ }, Me = () => {
465
+ Ie.value++;
466
+ }, Te = M(null), we = (T, k) => {
467
+ const P = T.id;
468
+ if (!k(P)) {
469
+ I("copy:error", {
470
+ entity: T,
471
471
  field: "id",
472
472
  message: f("errors.copy")
473
473
  });
474
474
  return;
475
475
  }
476
- T("copy:success", {
477
- entity: I,
476
+ I("copy:success", {
477
+ entity: T,
478
478
  field: "id",
479
- message: f("copy.success", { val: U })
479
+ message: f("copy.success", { val: P })
480
480
  });
481
- }, $e = (I, V) => {
482
- const U = JSON.stringify(I);
483
- if (!V(U)) {
484
- T("copy:error", {
485
- entity: I,
481
+ }, Re = (T, k) => {
482
+ const P = JSON.stringify(T);
483
+ if (!k(P)) {
484
+ I("copy:error", {
485
+ entity: T,
486
486
  message: f("errors.copy")
487
487
  });
488
488
  return;
489
489
  }
490
- T("copy:success", {
491
- entity: I,
490
+ I("copy:success", {
491
+ entity: T,
492
492
  message: f("copy.success_brief")
493
493
  });
494
- }, Ie = async (I) => {
495
- var U;
496
- await ((U = a.canRetrieve) == null ? void 0 : U.call(a, I)) && m.push(a.config.getViewRoute(I.id));
497
- }, Ve = (I) => ({
494
+ }, Oe = async (T) => {
495
+ var P;
496
+ await ((P = a.canRetrieve) == null ? void 0 : P.call(a, T)) && m.push(a.config.getViewRoute(T.id));
497
+ }, xe = (T) => ({
498
498
  label: f("actions.view"),
499
- to: a.config.getViewRoute(I)
500
- }), xe = (I) => ({
499
+ to: a.config.getViewRoute(T)
500
+ }), $e = (T) => ({
501
501
  label: f("actions.edit"),
502
- to: a.config.getEditRoute(I)
503
- }), ae = M(void 0), Te = M(!1), Re = M(!1), He = M(""), Ke = wt(a.config, H.value), X = (I) => {
504
- ae.value = I, Te.value = !0;
505
- }, fe = () => {
506
- Te.value = !1;
507
- }, qe = async () => {
508
- var I, V, U;
509
- if ((I = ae.value) != null && I.id) {
510
- Re.value = !0;
502
+ to: a.config.getEditRoute(T)
503
+ }), ue = M(void 0), Ee = M(!1), ke = M(!1), He = M(""), W = wt(a.config, z.value), pe = (T) => {
504
+ ue.value = T, Ee.value = !0;
505
+ }, Ke = () => {
506
+ Ee.value = !1;
507
+ }, ce = async () => {
508
+ var T, k, P;
509
+ if ((T = ue.value) != null && T.id) {
510
+ ke.value = !0;
511
511
  try {
512
- await S.delete(Ke(ae.value.id)), Re.value = !1, Te.value = !1, ue.value++, T("delete:success", ae.value);
513
- } catch (q) {
514
- He.value = ((U = (V = q.response) == null ? void 0 : V.data) == null ? void 0 : U.message) || q.message || f("errors.delete"), T("error", q);
512
+ await S.delete(W(ue.value.id)), ke.value = !1, Ee.value = !1, Ie.value++, I("delete:success", ue.value);
513
+ } catch (B) {
514
+ He.value = ((P = (k = B.response) == null ? void 0 : k.data) == null ? void 0 : P.message) || B.message || f("errors.delete"), I("error", B);
515
515
  } finally {
516
- Re.value = !1;
516
+ ke.value = !1;
517
517
  }
518
518
  }
519
- }, ce = () => {
519
+ }, qe = () => {
520
520
  m.push(a.config.createRoute);
521
521
  };
522
- L(Y, (I) => {
523
- var V, U, q;
524
- if (I.status === $t.Error) {
525
- _e.value = {
522
+ L(ge, (T) => {
523
+ var k, P, B;
524
+ if (T.status === $t.Error) {
525
+ Te.value = {
526
526
  title: f("errors.general")
527
- }, (q = (U = (V = I.error) == null ? void 0 : V.response) == null ? void 0 : U.data) != null && q.message && (_e.value.message = I.error.response.data.message), T("error", I.error);
527
+ }, (B = (P = (k = T.error) == null ? void 0 : k.response) == null ? void 0 : P.data) != null && B.message && (Te.value.message = T.error.response.data.message), I("error", T.error);
528
528
  return;
529
529
  }
530
- _e.value = null;
530
+ Te.value = null;
531
531
  });
532
- const Ae = M({
532
+ const Z = M({
533
533
  ctaPath: a.config.createRoute,
534
534
  ctaText: void 0,
535
535
  message: `${f("routes.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
536
536
  title: f("routes.title")
537
537
  });
538
538
  return rt(async () => {
539
- await a.canCreate() && (Ae.value.title = f("routes.list.empty_state.title"), Ae.value.ctaText = f("actions.create"));
540
- }), (I, V) => {
541
- const U = C("KButton"), q = C("KBadge"), oe = C("KTruncate"), se = C("KDropdownItem"), Se = C("KClipboardProvider");
539
+ await a.canCreate() && (Z.value.title = f("routes.list.empty_state.title"), Z.value.ctaText = f("actions.create"));
540
+ }), (T, k) => {
541
+ const P = C("KButton"), B = C("KBadge"), J = C("KTruncate"), ie = C("KDropdownItem"), Se = C("KClipboardProvider");
542
542
  return p(), b("div", lo, [
543
543
  c(t(Ht), {
544
544
  "cache-identifier": r.cacheIdentifier,
545
- "cell-attributes": we,
546
- "default-table-preferences": pe,
547
- "disable-sorting": u.value,
548
- "empty-state-options": Ae.value,
545
+ "cell-attributes": q,
546
+ "default-table-preferences": O,
547
+ "disable-sorting": oe.value,
548
+ "empty-state-options": Z.value,
549
549
  "enable-entity-actions": "",
550
- "error-message": _e.value,
551
- fetcher: t(e),
552
- "fetcher-cache-key": t(ue),
550
+ "error-message": Te.value,
551
+ fetcher: t(Y),
552
+ "fetcher-cache-key": t(Ie),
553
553
  "pagination-type": "offset",
554
554
  "preferences-storage-key": "kong-ui-entities-routes-list",
555
- query: G.value,
556
- "table-headers": t(O),
555
+ query: K.value,
556
+ "table-headers": t(H),
557
557
  title: r.title,
558
558
  "title-tag": r.titleTag,
559
- onClearSearchInput: K,
560
- "onClick:row": V[8] || (V[8] = (_) => Ie(_)),
561
- onSort: Fe,
559
+ onClearSearchInput: Fe,
560
+ "onClick:row": k[8] || (k[8] = (_) => Oe(_)),
561
+ onSort: Me,
562
562
  onState: t(R)
563
563
  }, We({
564
564
  "toolbar-filter": n(() => [
565
565
  c(t(Ut), {
566
- modelValue: G.value,
567
- "onUpdate:modelValue": V[0] || (V[0] = (_) => G.value = _),
568
- config: j.value
566
+ modelValue: K.value,
567
+ "onUpdate:modelValue": k[0] || (k[0] = (_) => K.value = _),
568
+ config: e.value
569
569
  }, null, 8, ["modelValue", "config"])
570
570
  ]),
571
571
  "toolbar-button": n(() => [
@@ -574,13 +574,13 @@ const re = {
574
574
  to: "#kong-ui-app-page-header-action-button"
575
575
  }, [
576
576
  y("div", ro, [
577
- B.value ? (p(), A(U, {
577
+ !u.value && G.value ? (p(), A(P, {
578
578
  key: 0,
579
579
  appearance: "secondary",
580
580
  class: "open-learning-hub",
581
581
  "data-testid": "routes-learn-more-button",
582
582
  icon: "",
583
- onClick: V[1] || (V[1] = (_) => I.$emit("click:learn-more"))
583
+ onClick: k[1] || (k[1] = (_) => T.$emit("click:learn-more"))
584
584
  }, {
585
585
  default: n(() => [
586
586
  c(t(et), { decorative: "" })
@@ -591,7 +591,7 @@ const re = {
591
591
  "auth-function": () => r.canCreate()
592
592
  }, {
593
593
  default: n(() => [
594
- c(U, {
594
+ c(P, {
595
595
  appearance: "primary",
596
596
  "data-testid": "toolbar-add-route",
597
597
  size: r.useActionOutside ? "medium" : "large",
@@ -613,16 +613,16 @@ const re = {
613
613
  y("b", null, g(_ ?? "-"), 1)
614
614
  ]),
615
615
  protocols: n(({ rowValue: _ }) => [
616
- c(oe, null, {
616
+ c(J, null, {
617
617
  default: n(() => [
618
- (p(!0), b(x, null, W(_, (D) => (p(), A(q, {
619
- key: D,
618
+ (p(!0), b(x, null, j(_, (U) => (p(), A(B, {
619
+ key: U,
620
620
  appearance: "neutral",
621
- onClick: V[4] || (V[4] = Ue(() => {
621
+ onClick: k[4] || (k[4] = Ue(() => {
622
622
  }, ["stop"]))
623
623
  }, {
624
624
  default: n(() => [
625
- F(g(D), 1)
625
+ F(g(U), 1)
626
626
  ]),
627
627
  _: 2
628
628
  }, 1024))), 128))
@@ -631,18 +631,18 @@ const re = {
631
631
  }, 1024)
632
632
  ]),
633
633
  hosts: n(({ rowValue: _ }) => [
634
- (_ == null ? void 0 : _.length) > 0 ? (p(), A(oe, { key: 0 }, {
634
+ (_ == null ? void 0 : _.length) > 0 ? (p(), A(J, { key: 0 }, {
635
635
  default: n(() => [
636
- (p(!0), b(x, null, W(_, (D) => (p(), A(q, {
637
- key: D,
636
+ (p(!0), b(x, null, j(_, (U) => (p(), A(B, {
637
+ key: U,
638
638
  appearance: "neutral",
639
- tooltip: D,
639
+ tooltip: U,
640
640
  "truncation-tooltip": "",
641
- onClick: V[5] || (V[5] = Ue(() => {
641
+ onClick: k[5] || (k[5] = Ue(() => {
642
642
  }, ["stop"]))
643
643
  }, {
644
644
  default: n(() => [
645
- F(g(D), 1)
645
+ F(g(U), 1)
646
646
  ]),
647
647
  _: 2
648
648
  }, 1032, ["tooltip"]))), 128))
@@ -651,16 +651,16 @@ const re = {
651
651
  }, 1024)) : (p(), b("span", ao, "-"))
652
652
  ]),
653
653
  methods: n(({ rowValue: _ }) => [
654
- (_ == null ? void 0 : _.length) > 0 ? (p(), A(oe, { key: 0 }, {
654
+ (_ == null ? void 0 : _.length) > 0 ? (p(), A(J, { key: 0 }, {
655
655
  default: n(() => [
656
- (p(!0), b(x, null, W(_, (D) => (p(), A(q, {
657
- key: D,
658
- appearance: Object.values(t(dt)).includes(D.toLowerCase()) ? D.toLowerCase() : "custom",
659
- onClick: V[6] || (V[6] = Ue(() => {
656
+ (p(!0), b(x, null, j(_, (U) => (p(), A(B, {
657
+ key: U,
658
+ appearance: Object.values(t(dt)).includes(U.toLowerCase()) ? U.toLowerCase() : "custom",
659
+ onClick: k[6] || (k[6] = Ue(() => {
660
660
  }, ["stop"]))
661
661
  }, {
662
662
  default: n(() => [
663
- F(g(D), 1)
663
+ F(g(U), 1)
664
664
  ]),
665
665
  _: 2
666
666
  }, 1032, ["appearance"]))), 128))
@@ -669,18 +669,18 @@ const re = {
669
669
  }, 1024)) : (p(), b("span", no, "-"))
670
670
  ]),
671
671
  paths: n(({ rowValue: _ }) => [
672
- (_ == null ? void 0 : _.length) > 0 ? (p(), A(oe, { key: 0 }, {
672
+ (_ == null ? void 0 : _.length) > 0 ? (p(), A(J, { key: 0 }, {
673
673
  default: n(() => [
674
- (p(!0), b(x, null, W(_, (D) => (p(), A(q, {
675
- key: D,
674
+ (p(!0), b(x, null, j(_, (U) => (p(), A(B, {
675
+ key: U,
676
676
  appearance: "neutral",
677
- tooltip: D,
677
+ tooltip: U,
678
678
  "truncation-tooltip": "",
679
- onClick: V[7] || (V[7] = Ue(() => {
679
+ onClick: k[7] || (k[7] = Ue(() => {
680
680
  }, ["stop"]))
681
681
  }, {
682
682
  default: n(() => [
683
- F(g(D), 1)
683
+ F(g(U), 1)
684
684
  ]),
685
685
  _: 2
686
686
  }, 1032, ["tooltip"]))), 128))
@@ -697,15 +697,15 @@ const re = {
697
697
  created_at: n(({ rowValue: _ }) => [
698
698
  F(g(t(i)(_)), 1)
699
699
  ]),
700
- updated_at: n(({ row: _, rowValue: D }) => [
701
- F(g(t(i)(D ?? _.created_at)), 1)
700
+ updated_at: n(({ row: _, rowValue: U }) => [
701
+ F(g(t(i)(U ?? _.created_at)), 1)
702
702
  ]),
703
703
  actions: n(({ row: _ }) => [
704
704
  c(Se, null, {
705
- default: n(({ copyToClipboard: D }) => [
706
- c(se, {
705
+ default: n(({ copyToClipboard: U }) => [
706
+ c(ie, {
707
707
  "data-testid": "action-entity-copy-id",
708
- onClick: (Ce) => Me(_, D)
708
+ onClick: (ye) => we(_, U)
709
709
  }, {
710
710
  default: n(() => [
711
711
  F(g(t(f)("actions.copy_id")), 1)
@@ -716,10 +716,10 @@ const re = {
716
716
  _: 2
717
717
  }, 1024),
718
718
  c(Se, null, {
719
- default: n(({ copyToClipboard: D }) => [
720
- c(se, {
719
+ default: n(({ copyToClipboard: U }) => [
720
+ c(ie, {
721
721
  "data-testid": "action-entity-copy-json",
722
- onClick: (Ce) => $e(_, D)
722
+ onClick: (ye) => Re(_, U)
723
723
  }, {
724
724
  default: n(() => [
725
725
  F(g(t(f)("actions.copy_json")), 1)
@@ -733,10 +733,10 @@ const re = {
733
733
  "auth-function": () => r.canRetrieve(_)
734
734
  }, {
735
735
  default: n(() => [
736
- c(se, {
736
+ c(ie, {
737
737
  "data-testid": "action-entity-view",
738
738
  "has-divider": "",
739
- item: Ve(_.id)
739
+ item: xe(_.id)
740
740
  }, null, 8, ["item"])
741
741
  ]),
742
742
  _: 2
@@ -745,9 +745,9 @@ const re = {
745
745
  "auth-function": () => r.canEdit(_)
746
746
  }, {
747
747
  default: n(() => [
748
- c(se, {
748
+ c(ie, {
749
749
  "data-testid": "action-entity-edit",
750
- item: xe(_.id)
750
+ item: $e(_.id)
751
751
  }, null, 8, ["item"])
752
752
  ]),
753
753
  _: 2
@@ -756,11 +756,11 @@ const re = {
756
756
  "auth-function": () => r.canDelete(_)
757
757
  }, {
758
758
  default: n(() => [
759
- c(se, {
759
+ c(ie, {
760
760
  danger: "",
761
761
  "data-testid": "action-entity-delete",
762
762
  "has-divider": "",
763
- onClick: (D) => X(_)
763
+ onClick: (U) => pe(_)
764
764
  }, {
765
765
  default: n(() => [
766
766
  F(g(t(f)("actions.delete")), 1)
@@ -780,12 +780,12 @@ const re = {
780
780
  disabled: !r.useActionOutside,
781
781
  to: "#kong-ui-app-page-header-action-button"
782
782
  }, [
783
- c(U, {
783
+ c(P, {
784
784
  appearance: "secondary",
785
785
  class: "open-learning-hub",
786
786
  "data-testid": "routes-learn-more-button",
787
787
  icon: "",
788
- onClick: V[2] || (V[2] = (_) => I.$emit("click:learn-more"))
788
+ onClick: k[2] || (k[2] = (_) => T.$emit("click:learn-more"))
789
789
  }, {
790
790
  default: n(() => [
791
791
  c(t(et), { decorative: "" })
@@ -806,8 +806,8 @@ const re = {
806
806
  description: t(f)("routes.list.empty_state_v2.description"),
807
807
  "learn-more": r.config.app === "konnect",
808
808
  title: t(f)("routes.list.empty_state_v2.title"),
809
- "onClick:create": ce,
810
- "onClick:learnMore": V[3] || (V[3] = (_) => I.$emit("click:learn-more"))
809
+ "onClick:create": qe,
810
+ "onClick:learnMore": k[3] || (k[3] = (_) => T.$emit("click:learn-more"))
811
811
  }, {
812
812
  image: n(() => [
813
813
  y("div", io, [
@@ -824,27 +824,27 @@ const re = {
824
824
  } : void 0
825
825
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "title", "title-tag", "onState"]),
826
826
  c(t(Ft), {
827
- "action-pending": Re.value,
827
+ "action-pending": ke.value,
828
828
  description: t(f)("delete.description"),
829
- "entity-name": ae.value && (ae.value.name || ae.value.id),
829
+ "entity-name": ue.value && (ue.value.name || ue.value.id),
830
830
  "entity-type": t(Mt).Route,
831
831
  error: He.value,
832
832
  title: t(f)("delete.title"),
833
- visible: Te.value,
834
- onCancel: fe,
835
- onProceed: qe
833
+ visible: Ee.value,
834
+ onCancel: Ke,
835
+ onProceed: ce
836
836
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
837
837
  ]);
838
838
  };
839
839
  }
840
- }), ie = (r, N) => {
841
- const T = r.__vccOpts || r;
840
+ }), re = (r, N) => {
841
+ const I = r.__vccOpts || r;
842
842
  for (const [a, f] of N)
843
- T[a] = f;
844
- return T;
845
- }, ms = /* @__PURE__ */ ie(po, [["__scopeId", "data-v-9011079e"]]);
846
- var fo = /* @__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))(fo || {}), 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 || {}), Ee = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR = "error", r.READY = "ready", r))(Ee || {});
847
- const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.expressions === !0, mo = { class: "routing-rules-entities-controls-container" }, ho = /* @__PURE__ */ J({
843
+ I[a] = f;
844
+ return I;
845
+ }, ms = /* @__PURE__ */ re(po, [["__scopeId", "data-v-8a68dd63"]]);
846
+ var fo = /* @__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))(fo || {}), 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 || {}), Ae = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR = "error", r.READY = "ready", r))(Ae || {});
847
+ const ae = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.expressions === !0, mo = { class: "routing-rules-entities-controls-container" }, ho = /* @__PURE__ */ Q({
848
848
  __name: "RoutingRulesEntitiesControls",
849
849
  props: {
850
850
  routingRulesEntity: {
@@ -858,7 +858,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
858
858
  },
859
859
  emits: ["remove", "add"],
860
860
  setup(r) {
861
- return (N, T) => {
861
+ return (N, I) => {
862
862
  const a = C("KButton");
863
863
  return p(), b("div", mo, [
864
864
  c(a, {
@@ -866,7 +866,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
866
866
  class: "remove-button",
867
867
  "data-testid": `remove-${r.routingRulesEntity}`,
868
868
  icon: "",
869
- onClick: T[0] || (T[0] = (f) => N.$emit("remove"))
869
+ onClick: I[0] || (I[0] = (f) => N.$emit("remove"))
870
870
  }, {
871
871
  default: n(() => [
872
872
  c(t(ct), { color: t(mt) }, null, 8, ["color"])
@@ -878,7 +878,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
878
878
  "data-testid": `add-${r.routingRulesEntity}`,
879
879
  disabled: r.isAddDisabled,
880
880
  icon: "",
881
- onClick: T[1] || (T[1] = (f) => N.$emit("add"))
881
+ onClick: I[1] || (I[1] = (f) => N.$emit("add"))
882
882
  }, {
883
883
  default: n(() => [
884
884
  c(t(ut))
@@ -888,7 +888,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
888
888
  ]);
889
889
  };
890
890
  }
891
- }), be = /* @__PURE__ */ ie(ho, [["__scopeId", "data-v-e024298d"]]), vo = { class: "routing-rule-container" }, go = /* @__PURE__ */ J({
891
+ }), _e = /* @__PURE__ */ re(ho, [["__scopeId", "data-v-e024298d"]]), vo = { class: "routing-rule-container" }, go = /* @__PURE__ */ Q({
892
892
  __name: "RouteFormDestinationsFields",
893
893
  props: {
894
894
  modelValue: {
@@ -898,8 +898,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
898
898
  },
899
899
  emits: ["add", "remove", "update:modelValue"],
900
900
  setup(r, { emit: N }) {
901
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
902
- return L(T.modelValue, (m) => {
901
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
902
+ return L(I.modelValue, (m) => {
903
903
  i.value = [...m];
904
904
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
905
905
  a("update:modelValue", m);
@@ -915,9 +915,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
915
915
  ]),
916
916
  _: 1
917
917
  }, 8, ["info"]),
918
- c(ge, { name: "appear" }, {
918
+ c(ve, { name: "appear" }, {
919
919
  default: n(() => [
920
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
920
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
921
921
  key: h,
922
922
  class: "routing-rule-input"
923
923
  }, [
@@ -938,7 +938,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
938
938
  placeholder: t(f)("form.fields.destinations.port.placeholder"),
939
939
  type: "number"
940
940
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
941
- c(be, {
941
+ c(_e, {
942
942
  "is-add-disabled": h !== i.value.length - 1,
943
943
  "routing-rules-entity": t(l).DESTINATIONS,
944
944
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -951,7 +951,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
951
951
  ]);
952
952
  };
953
953
  }
954
- }), So = /* @__PURE__ */ ie(go, [["__scopeId", "data-v-d41b39fd"]]), yo = { class: "routing-rule-container" }, bo = /* @__PURE__ */ J({
954
+ }), So = /* @__PURE__ */ re(go, [["__scopeId", "data-v-d41b39fd"]]), yo = { class: "routing-rule-container" }, bo = /* @__PURE__ */ Q({
955
955
  __name: "RouteFormHeadersFields",
956
956
  props: {
957
957
  modelValue: {
@@ -961,8 +961,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
961
961
  },
962
962
  emits: ["add", "remove", "update:modelValue"],
963
963
  setup(r, { emit: N }) {
964
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
965
- return L(T.modelValue, (m) => {
964
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
965
+ return L(I.modelValue, (m) => {
966
966
  i.value = [...m];
967
967
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
968
968
  a("update:modelValue", m);
@@ -978,9 +978,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
978
978
  ]),
979
979
  _: 1
980
980
  }, 8, ["info"]),
981
- c(ge, { name: "appear" }, {
981
+ c(ve, { name: "appear" }, {
982
982
  default: n(() => [
983
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
983
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
984
984
  key: h,
985
985
  class: "routing-rule-input"
986
986
  }, [
@@ -998,7 +998,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
998
998
  "data-testid": `route-form-headers-values-input-${h + 1}`,
999
999
  placeholder: t(f)("form.fields.headers.values.placeholder")
1000
1000
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1001
- c(be, {
1001
+ c(_e, {
1002
1002
  "is-add-disabled": h !== i.value.length - 1,
1003
1003
  "routing-rules-entity": t(l).HEADERS,
1004
1004
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1011,7 +1011,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1011
1011
  ]);
1012
1012
  };
1013
1013
  }
1014
- }), _o = /* @__PURE__ */ ie(bo, [["__scopeId", "data-v-ca0bb10b"]]), Io = { class: "routing-rule-container" }, To = /* @__PURE__ */ J({
1014
+ }), _o = /* @__PURE__ */ re(bo, [["__scopeId", "data-v-ca0bb10b"]]), Io = { class: "routing-rule-container" }, To = /* @__PURE__ */ Q({
1015
1015
  __name: "RouteFormHostsFields",
1016
1016
  props: {
1017
1017
  modelValue: {
@@ -1021,8 +1021,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1021
1021
  },
1022
1022
  emits: ["add", "remove", "update:modelValue"],
1023
1023
  setup(r, { emit: N }) {
1024
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
1025
- return L(T.modelValue, (m) => {
1024
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
1025
+ return L(I.modelValue, (m) => {
1026
1026
  i.value = [...m];
1027
1027
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
1028
1028
  a("update:modelValue", m);
@@ -1038,9 +1038,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1038
1038
  ]),
1039
1039
  _: 1
1040
1040
  }, 8, ["info"]),
1041
- c(ge, { name: "appear" }, {
1041
+ c(ve, { name: "appear" }, {
1042
1042
  default: n(() => [
1043
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
1043
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
1044
1044
  key: h,
1045
1045
  class: "routing-rule-input"
1046
1046
  }, [
@@ -1051,7 +1051,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1051
1051
  "data-testid": `route-form-hosts-input-${h + 1}`,
1052
1052
  placeholder: t(f)("form.fields.hosts.placeholder")
1053
1053
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1054
- c(be, {
1054
+ c(_e, {
1055
1055
  "is-add-disabled": h !== i.value.length - 1,
1056
1056
  "routing-rules-entity": t(l).HOSTS,
1057
1057
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1064,10 +1064,10 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1064
1064
  ]);
1065
1065
  };
1066
1066
  }
1067
- }), Ro = /* @__PURE__ */ ie(To, [["__scopeId", "data-v-88d16377"]]), Eo = { class: "routing-rule-container" }, ko = { class: "routing-rule-input" }, Vo = { class: "methods-input-container" }, Ao = {
1067
+ }), Ro = /* @__PURE__ */ re(To, [["__scopeId", "data-v-88d16377"]]), Eo = { class: "routing-rule-container" }, ko = { class: "routing-rule-input" }, Vo = { class: "methods-input-container" }, Ao = {
1068
1068
  key: 0,
1069
1069
  class: "routing-rule-container"
1070
- }, Co = /* @__PURE__ */ J({
1070
+ }, Co = /* @__PURE__ */ Q({
1071
1071
  __name: "RouteFormMethodsFields",
1072
1072
  props: {
1073
1073
  modelValue: {
@@ -1081,20 +1081,20 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1081
1081
  },
1082
1082
  emits: ["add", "remove", "update:modelValue", "update-custom-methods"],
1083
1083
  setup(r, { emit: N }) {
1084
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M({}), m = M([...T.customMethods]), S = (R) => {
1084
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M({}), m = M([...I.customMethods]), S = (R) => {
1085
1085
  m.value.length === 1 ? m.value[0] = "" : m.value.splice(R, 1);
1086
1086
  };
1087
- return L(T.modelValue, (R) => {
1087
+ return L(I.modelValue, (R) => {
1088
1088
  i.value = { ...R };
1089
1089
  }, { immediate: !0, deep: !0 }), L(i, (R) => {
1090
1090
  a("update:modelValue", R);
1091
1091
  }, { deep: !0 }), L(m, (R) => {
1092
1092
  a("update-custom-methods", R);
1093
1093
  }, { deep: !0 }), (R, E) => {
1094
- const B = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), pe = C("KInput");
1094
+ const G = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), oe = C("KButton"), de = C("KInput");
1095
1095
  return p(), b("div", Eo, [
1096
1096
  E[2] || (E[2] = y("hr", null, null, -1)),
1097
- c(B, null, {
1097
+ c(G, null, {
1098
1098
  default: n(() => [
1099
1099
  F(g(t(f)("form.fields.methods.label")), 1)
1100
1100
  ]),
@@ -1102,7 +1102,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1102
1102
  }),
1103
1103
  y("div", ko, [
1104
1104
  y("div", Vo, [
1105
- (p(!0), b(x, null, W(Object.keys(i.value), (O) => (p(), b("div", {
1105
+ (p(!0), b(x, null, j(Object.keys(i.value), (O) => (p(), b("div", {
1106
1106
  key: O,
1107
1107
  class: "methods-input"
1108
1108
  }, [
@@ -1121,7 +1121,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1121
1121
  }, 1032, ["appearance"])
1122
1122
  ]))), 128))
1123
1123
  ]),
1124
- c(Q, {
1124
+ c(oe, {
1125
1125
  appearance: "tertiary",
1126
1126
  class: "remove-button",
1127
1127
  "data-testid": "remove-methods",
@@ -1135,7 +1135,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1135
1135
  })
1136
1136
  ]),
1137
1137
  i.value.CUSTOM ? (p(), b("div", Ao, [
1138
- c(B, {
1138
+ c(G, {
1139
1139
  info: t(f)("form.fields.methods.custom.tooltip")
1140
1140
  }, {
1141
1141
  default: n(() => [
@@ -1143,24 +1143,24 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1143
1143
  ]),
1144
1144
  _: 1
1145
1145
  }, 8, ["info"]),
1146
- c(ge, { name: "appear" }, {
1146
+ c(ve, { name: "appear" }, {
1147
1147
  default: n(() => [
1148
- (p(!0), b(x, null, W(m.value, (O, H) => (p(), b("div", {
1148
+ (p(!0), b(x, null, j(m.value, (O, H) => (p(), b("div", {
1149
1149
  key: H,
1150
1150
  class: "routing-rule-input"
1151
1151
  }, [
1152
- c(pe, {
1152
+ c(de, {
1153
1153
  modelValue: m.value[H],
1154
- "onUpdate:modelValue": (G) => m.value[H] = G,
1154
+ "onUpdate:modelValue": (z) => m.value[H] = z,
1155
1155
  modelModifiers: { trim: !0 },
1156
1156
  "data-testid": `route-form-custom-method-input-${H + 1}`,
1157
1157
  placeholder: t(f)("form.fields.methods.custom.placeholder")
1158
1158
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1159
- c(be, {
1159
+ c(_e, {
1160
1160
  "is-add-disabled": H !== m.value.length - 1,
1161
1161
  "routing-rules-entity": t(l).CUSTOM_METHOD,
1162
- onAdd: E[1] || (E[1] = (G) => m.value.push("")),
1163
- onRemove: (G) => S(H)
1162
+ onAdd: E[1] || (E[1] = (z) => m.value.push("")),
1163
+ onRemove: (z) => S(H)
1164
1164
  }, null, 8, ["is-add-disabled", "routing-rules-entity", "onRemove"])
1165
1165
  ]))), 128))
1166
1166
  ]),
@@ -1170,7 +1170,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1170
1170
  ]);
1171
1171
  };
1172
1172
  }
1173
- }), Oo = /* @__PURE__ */ ie(Co, [["__scopeId", "data-v-c8ae1bc5"]]), No = { class: "routing-rule-container" }, wo = /* @__PURE__ */ J({
1173
+ }), Oo = /* @__PURE__ */ re(Co, [["__scopeId", "data-v-c8ae1bc5"]]), No = { class: "routing-rule-container" }, wo = /* @__PURE__ */ Q({
1174
1174
  __name: "RouteFormPathsFields",
1175
1175
  props: {
1176
1176
  modelValue: {
@@ -1180,8 +1180,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1180
1180
  },
1181
1181
  emits: ["add", "remove", "update:modelValue"],
1182
1182
  setup(r, { emit: N }) {
1183
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
1184
- return L(T.modelValue, (m) => {
1183
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
1184
+ return L(I.modelValue, (m) => {
1185
1185
  i.value = [...m];
1186
1186
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
1187
1187
  a("update:modelValue", m);
@@ -1194,9 +1194,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1194
1194
  ]),
1195
1195
  _: 1
1196
1196
  }),
1197
- c(ge, { name: "appear" }, {
1197
+ c(ve, { name: "appear" }, {
1198
1198
  default: n(() => [
1199
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
1199
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
1200
1200
  key: h,
1201
1201
  class: "routing-rule-input"
1202
1202
  }, [
@@ -1207,7 +1207,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1207
1207
  "data-testid": `route-form-paths-input-${h + 1}`,
1208
1208
  placeholder: t(f)("form.fields.paths.placeholder")
1209
1209
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1210
- c(be, {
1210
+ c(_e, {
1211
1211
  "is-add-disabled": h !== i.value.length - 1,
1212
1212
  "routing-rules-entity": t(l).PATHS,
1213
1213
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1220,7 +1220,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1220
1220
  ]);
1221
1221
  };
1222
1222
  }
1223
- }), $o = /* @__PURE__ */ ie(wo, [["__scopeId", "data-v-bc31ca96"]]), Ho = { class: "routing-rule-container" }, Uo = /* @__PURE__ */ J({
1223
+ }), $o = /* @__PURE__ */ re(wo, [["__scopeId", "data-v-bc31ca96"]]), Ho = { class: "routing-rule-container" }, Uo = /* @__PURE__ */ Q({
1224
1224
  __name: "RouteFormSnisFields",
1225
1225
  props: {
1226
1226
  modelValue: {
@@ -1230,8 +1230,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1230
1230
  },
1231
1231
  emits: ["add", "remove", "update:modelValue"],
1232
1232
  setup(r, { emit: N }) {
1233
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
1234
- return L(T.modelValue, (m) => {
1233
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
1234
+ return L(I.modelValue, (m) => {
1235
1235
  i.value = [...m];
1236
1236
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
1237
1237
  a("update:modelValue", m);
@@ -1247,9 +1247,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1247
1247
  ]),
1248
1248
  _: 1
1249
1249
  }, 8, ["info"]),
1250
- c(ge, { name: "appear" }, {
1250
+ c(ve, { name: "appear" }, {
1251
1251
  default: n(() => [
1252
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
1252
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
1253
1253
  key: h,
1254
1254
  class: "routing-rule-input"
1255
1255
  }, [
@@ -1260,7 +1260,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1260
1260
  "data-testid": `route-form-snis-input-${h + 1}`,
1261
1261
  placeholder: t(f)("form.fields.snis.placeholder")
1262
1262
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1263
- c(be, {
1263
+ c(_e, {
1264
1264
  "is-add-disabled": h !== i.value.length - 1,
1265
1265
  "routing-rules-entity": t(l).SNIS,
1266
1266
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1273,7 +1273,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1273
1273
  ]);
1274
1274
  };
1275
1275
  }
1276
- }), Do = /* @__PURE__ */ ie(Uo, [["__scopeId", "data-v-c3679dd9"]]), Po = { class: "routing-rule-container" }, Fo = /* @__PURE__ */ J({
1276
+ }), Do = /* @__PURE__ */ re(Uo, [["__scopeId", "data-v-c3679dd9"]]), Po = { class: "routing-rule-container" }, Fo = /* @__PURE__ */ Q({
1277
1277
  __name: "RouteFormSourcesFields",
1278
1278
  props: {
1279
1279
  modelValue: {
@@ -1283,8 +1283,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1283
1283
  },
1284
1284
  emits: ["add", "remove", "update:modelValue"],
1285
1285
  setup(r, { emit: N }) {
1286
- const T = r, a = N, { i18n: { t: f } } = re.useI18n(), i = M([]);
1287
- return L(T.modelValue, (m) => {
1286
+ const I = r, a = N, { i18n: { t: f } } = le.useI18n(), i = M([]);
1287
+ return L(I.modelValue, (m) => {
1288
1288
  i.value = [...m];
1289
1289
  }, { immediate: !0, deep: !0 }), L(i, (m) => {
1290
1290
  a("update:modelValue", m);
@@ -1300,9 +1300,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1300
1300
  ]),
1301
1301
  _: 1
1302
1302
  }, 8, ["info"]),
1303
- c(ge, { name: "appear" }, {
1303
+ c(ve, { name: "appear" }, {
1304
1304
  default: n(() => [
1305
- (p(!0), b(x, null, W(i.value, (B, h) => (p(), b("div", {
1305
+ (p(!0), b(x, null, j(i.value, (G, h) => (p(), b("div", {
1306
1306
  key: h,
1307
1307
  class: "routing-rule-input"
1308
1308
  }, [
@@ -1323,7 +1323,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1323
1323
  placeholder: t(f)("form.fields.sources.port.placeholder"),
1324
1324
  type: "number"
1325
1325
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1326
- c(be, {
1326
+ c(_e, {
1327
1327
  "is-add-disabled": h !== i.value.length - 1,
1328
1328
  "routing-rules-entity": t(l).SOURCES,
1329
1329
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1336,7 +1336,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1336
1336
  ]);
1337
1337
  };
1338
1338
  }
1339
- }), Mo = /* @__PURE__ */ ie(Fo, [["__scopeId", "data-v-50c52494"]]), xo = /* @__PURE__ */ J({
1339
+ }), Mo = /* @__PURE__ */ re(Fo, [["__scopeId", "data-v-50c52494"]]), xo = /* @__PURE__ */ Q({
1340
1340
  __name: "RouteFormConfigTabs",
1341
1341
  props: /* @__PURE__ */ Ge({
1342
1342
  routeFlavors: {},
@@ -1347,12 +1347,12 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1347
1347
  }),
1348
1348
  emits: ["update:modelValue"],
1349
1349
  setup(r) {
1350
- const N = it(r, "modelValue"), T = r, { i18n: { t: a } } = ft(), f = P(() => [
1351
- ...T.routeFlavors.traditional ? [{
1350
+ const N = it(r, "modelValue"), I = r, { i18n: { t: a } } = ft(), f = D(() => [
1351
+ ...I.routeFlavors.traditional ? [{
1352
1352
  hash: `#${w.TRADITIONAL}`,
1353
1353
  title: a("form.flavors.traditional")
1354
1354
  }] : [],
1355
- ...T.routeFlavors.expressions ? [{
1355
+ ...I.routeFlavors.expressions ? [{
1356
1356
  hash: `#${w.EXPRESSIONS}`,
1357
1357
  title: a("form.flavors.expressions")
1358
1358
  }] : []
@@ -1391,8 +1391,8 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1391
1391
  i.routeFlavors.traditional ? {
1392
1392
  name: t(w).TRADITIONAL,
1393
1393
  fn: n(() => [
1394
- de(i.$slots, "before-content", {}, void 0, !0),
1395
- de(i.$slots, t(w).TRADITIONAL, {}, void 0, !0)
1394
+ ne(i.$slots, "before-content", {}, void 0, !0),
1395
+ ne(i.$slots, t(w).TRADITIONAL, {}, void 0, !0)
1396
1396
  ]),
1397
1397
  key: "1"
1398
1398
  } : void 0,
@@ -1421,18 +1421,18 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1421
1421
  i.routeFlavors.expressions ? {
1422
1422
  name: t(w).EXPRESSIONS,
1423
1423
  fn: n(() => [
1424
- de(i.$slots, "before-content", {}, void 0, !0),
1425
- de(i.$slots, t(w).EXPRESSIONS, {}, void 0, !0)
1424
+ ne(i.$slots, "before-content", {}, void 0, !0),
1425
+ ne(i.$slots, t(w).EXPRESSIONS, {}, void 0, !0)
1426
1426
  ]),
1427
1427
  key: "3"
1428
1428
  } : void 0
1429
1429
  ]), 1032, ["modelValue", "tabs"])) : (p(), b(x, { key: 1 }, [
1430
- de(i.$slots, "before-content", {}, void 0, !0),
1431
- i.routeFlavors.traditional ? de(i.$slots, t(w).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? de(i.$slots, t(w).EXPRESSIONS, { key: 1 }, void 0, !0) : $("", !0)
1430
+ ne(i.$slots, "before-content", {}, void 0, !0),
1431
+ i.routeFlavors.traditional ? ne(i.$slots, t(w).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? ne(i.$slots, t(w).EXPRESSIONS, { key: 1 }, void 0, !0) : $("", !0)
1432
1432
  ], 64));
1433
1433
  };
1434
1434
  }
1435
- }), Ko = /* @__PURE__ */ ie(xo, [["__scopeId", "data-v-f1c7a92f"]]), qo = /* @__PURE__ */ J({
1435
+ }), Ko = /* @__PURE__ */ re(xo, [["__scopeId", "data-v-f1c7a92f"]]), qo = /* @__PURE__ */ Q({
1436
1436
  __name: "RouteFormExpressionsEditorLoader",
1437
1437
  props: /* @__PURE__ */ Ge({
1438
1438
  protocol: {},
@@ -1443,47 +1443,47 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1443
1443
  }),
1444
1444
  emits: /* @__PURE__ */ Ge(["notify"], ["update:modelValue"]),
1445
1445
  setup(r, { emit: N }) {
1446
- const { i18n: { t: T } } = re.useI18n(), a = {
1447
- render: () => Ye("div", T("form.expressions_editor.loading"))
1446
+ const { i18n: { t: I } } = le.useI18n(), a = {
1447
+ render: () => Ye("div", I("form.expressions_editor.loading"))
1448
1448
  }, f = {
1449
- render: () => Ye("div", T("form.expressions_editor.error"))
1449
+ render: () => Ye("div", I("form.expressions_editor.error"))
1450
1450
  }, i = Et({
1451
1451
  loader: async () => import("./RouteFormExpressionsEditor-Ce9E02hY.js"),
1452
1452
  loadingComponent: a,
1453
1453
  errorComponent: f
1454
- }), m = r, S = N, R = M(Ee.LOADING), E = it(r, "modelValue"), B = (h) => {
1454
+ }), m = r, S = N, R = M(Ae.LOADING), E = it(r, "modelValue"), G = (h) => {
1455
1455
  E.value = h;
1456
1456
  };
1457
1457
  return at(async () => {
1458
1458
  try {
1459
- await (await import("@kong-ui-public/expressions")).asyncInit, R.value = Ee.READY;
1459
+ await (await import("@kong-ui-public/expressions")).asyncInit, R.value = Ae.READY;
1460
1460
  } catch (h) {
1461
- R.value = Ee.ERROR, console.error(h);
1461
+ R.value = Ae.ERROR, console.error(h);
1462
1462
  }
1463
1463
  }), (h, u) => (p(), b(x, null, [
1464
- R.value === t(Ee).ERROR ? (p(), A(Qe(f), {
1464
+ R.value === t(Ae).ERROR ? (p(), A(Qe(f), {
1465
1465
  key: 0,
1466
1466
  "data-testid": "route-form-expressions-editor-loader-error"
1467
- })) : R.value === t(Ee).LOADING ? (p(), A(Qe(a), {
1467
+ })) : R.value === t(Ae).LOADING ? (p(), A(Qe(a), {
1468
1468
  key: 1,
1469
1469
  "data-testid": "route-form-expressions-editor-loader-loading"
1470
1470
  })) : (p(), A(t(i), {
1471
1471
  key: 2,
1472
1472
  modelValue: E.value,
1473
- "onUpdate:modelValue": u[0] || (u[0] = (Q) => E.value = Q),
1474
- "hint-text": t(T)("form.expression_playground.supported_protocols_hint"),
1473
+ "onUpdate:modelValue": u[0] || (u[0] = (oe) => E.value = oe),
1474
+ "hint-text": t(I)("form.expression_playground.supported_protocols_hint"),
1475
1475
  protocol: m.protocol,
1476
1476
  "show-expressions-modal-entry": h.showExpressionsModalEntry,
1477
- onNotify: u[1] || (u[1] = (Q) => S("notify", Q))
1477
+ onNotify: u[1] || (u[1] = (oe) => S("notify", oe))
1478
1478
  }, {
1479
1479
  default: n(() => [
1480
1480
  c(t(Ct), { size: t(je) }, null, 8, ["size"]),
1481
- y("span", null, g(t(T)("form.expression_playground.test_link")), 1)
1481
+ y("span", null, g(t(I)("form.expression_playground.test_link")), 1)
1482
1482
  ]),
1483
1483
  _: 1
1484
1484
  }, 8, ["modelValue", "hint-text", "protocol", "show-expressions-modal-entry"])),
1485
- de(h.$slots, "after-editor", {
1486
- expression: { value: E.value, update: B },
1485
+ ne(h.$slots, "after-editor", {
1486
+ expression: { value: E.value, update: G },
1487
1487
  state: R.value
1488
1488
  })
1489
1489
  ], 64));
@@ -1491,7 +1491,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1491
1491
  }), Lo = { class: "kong-ui-entities-route-form" }, Bo = { key: 1 }, Go = { "data-testid": "no-search-results" }, jo = { class: "route-form-service-dropdown-item" }, Wo = { class: "select-item-label" }, Xo = { class: "select-item-description" }, zo = { class: "route-form-routing-rules-title-container" }, Jo = { class: "routing-rules-title" }, Qo = {
1492
1492
  key: 1,
1493
1493
  class: "route-form-routing-rules-selector-container"
1494
- }, Yo = { class: "route-form-routing-rules-selector-options" }, Zo = ["aria-disabled", "data-testid", "onClick"], es = { class: "route-form-fields-container route-form-advanced-fields-container" }, ts = { class: "route-form-routing-rules-title-container" }, os = { class: "routing-rules-title" }, ss = { class: "route-form-fields-container route-form-advanced-fields-container" }, ls = /* @__PURE__ */ J({
1494
+ }, Yo = { class: "route-form-routing-rules-selector-options" }, Zo = ["aria-disabled", "data-testid", "onClick"], es = { class: "route-form-fields-container route-form-advanced-fields-container" }, ts = { class: "route-form-routing-rules-title-container" }, os = { class: "routing-rules-title" }, ss = { class: "route-form-fields-container route-form-advanced-fields-container" }, ls = /* @__PURE__ */ Q({
1495
1495
  __name: "RouteForm",
1496
1496
  props: {
1497
1497
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1559,14 +1559,14 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1559
1559
  }
1560
1560
  },
1561
1561
  emits: ["update", "error", "loading", "model-updated", "notify"],
1562
- setup(r, { expose: N, emit: T }) {
1562
+ setup(r, { expose: N, emit: I }) {
1563
1563
  var ze;
1564
- const a = r, f = T, i = M(
1564
+ const a = r, f = I, i = M(
1565
1565
  a.routeFlavors.traditional ? `#${w.TRADITIONAL}` : a.routeFlavors.expressions ? `#${w.EXPRESSIONS}` : ""
1566
- ), m = P(() => {
1566
+ ), m = D(() => {
1567
1567
  if (i.value)
1568
1568
  return i.value.substring(1);
1569
- }), S = M(void 0), R = M(!0), E = P(() => {
1569
+ }), S = M(void 0), R = M(!0), E = D(() => {
1570
1570
  if (S.value)
1571
1571
  return S.value;
1572
1572
  if (m.value)
@@ -1575,7 +1575,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1575
1575
  return w.TRADITIONAL;
1576
1576
  if (a.routeFlavors.expressions)
1577
1577
  return w.EXPRESSIONS;
1578
- }), { i18nT: B, i18n: h, i18n: { t: u } } = re.useI18n(), Q = h.source.form.protocols, pe = nt(), { axiosInstance: O } = Xe((ze = a.config) == null ? void 0 : ze.axiosRequestConfig), { getMessageFromError: H } = xt(), G = P(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (o) => o.name ? `${o.name} - ${o.value}` : o.value, e = Ze({
1578
+ }), { i18nT: G, i18n: h, i18n: { t: u } } = le.useI18n(), oe = h.source.form.protocols, de = nt(), { axiosInstance: O } = Xe((ze = a.config) == null ? void 0 : ze.axiosRequestConfig), { getMessageFromError: H } = xt(), z = D(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), K = (o) => o.name ? `${o.name} - ${o.value}` : o.value, e = Ze({
1579
1579
  routeFlavors: a.routeFlavors,
1580
1580
  fields: {
1581
1581
  name: "",
@@ -1600,7 +1600,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1600
1600
  L(() => a.routeFlavors, (o) => {
1601
1601
  e.routeFlavors = o;
1602
1602
  });
1603
- const Y = P(() => e.fields.protocols.split(",")[0]), ue = M([""]), we = Ze({
1603
+ const Y = D(() => e.fields.protocols.split(",")[0]), ge = M([""]), Ie = Ze({
1604
1604
  name: "",
1605
1605
  protocols: "http,https",
1606
1606
  https_redirect_status_code: 426,
@@ -1614,7 +1614,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1614
1614
  regex_priority: 0,
1615
1615
  expression: "",
1616
1616
  priority: 0
1617
- }), K = {
1617
+ }), q = {
1618
1618
  [l.PATHS]: [""],
1619
1619
  [l.SNIS]: [""],
1620
1620
  [l.HOSTS]: [""],
@@ -1639,7 +1639,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1639
1639
  supportedRange: {
1640
1640
  enterprise: ["3.0"]
1641
1641
  }
1642
- }), _e = [
1642
+ }), Me = [
1643
1643
  { label: u("form.protocols.grpc"), value: "grpc" },
1644
1644
  { label: u("form.protocols.grpcs"), value: "grpcs" },
1645
1645
  { label: u("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
@@ -1659,16 +1659,16 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1659
1659
  { label: u("form.protocols.wss"), value: "wss" },
1660
1660
  { label: u("form.protocols.ws,wss"), value: "ws,wss" }
1661
1661
  ] : []
1662
- ], Me = [
1662
+ ], Te = [
1663
1663
  { label: "v0", value: "v0" },
1664
1664
  { label: "v1", value: "v1" }
1665
- ], $e = [
1665
+ ], we = [
1666
1666
  { label: "426", value: 426 },
1667
1667
  { label: "301", value: 301 },
1668
1668
  { label: "302", value: 302 },
1669
1669
  { label: "307", value: 307 },
1670
1670
  { label: "308", value: 308 }
1671
- ], Ie = {
1671
+ ], Re = {
1672
1672
  http: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS],
1673
1673
  https: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
1674
1674
  "http,https": [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
@@ -1694,24 +1694,24 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1694
1694
  wss: [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS],
1695
1695
  "ws,wss": [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS],
1696
1696
  "wss,ws": [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS]
1697
- }, Ve = P(() => a.routeId ? ot.Edit : ot.Create), xe = P(() => {
1697
+ }, Oe = D(() => a.routeId ? ot.Edit : ot.Create), xe = D(() => {
1698
1698
  var o, s, v;
1699
- return (v = (s = ke.form[(o = a.config) == null ? void 0 : o.app]) == null ? void 0 : s.fetch) == null ? void 0 : v[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId || "");
1700
- }), ae = () => {
1699
+ return (v = (s = Ce.form[(o = a.config) == null ? void 0 : o.app]) == null ? void 0 : s.fetch) == null ? void 0 : v[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId || "");
1700
+ }), $e = () => {
1701
1701
  var o;
1702
- pe.push((o = a.config) == null ? void 0 : o.cancelRoute);
1703
- }, Te = (o) => {
1702
+ de.push((o = a.config) == null ? void 0 : o.cancelRoute);
1703
+ }, ue = (o) => {
1704
1704
  f("loading", o);
1705
- }, Re = (o) => {
1705
+ }, Ee = (o) => {
1706
1706
  f("error", o);
1707
- }, He = (o) => {
1708
- ne(e) && (e.fields.methods = K[l.METHODS], o.forEach((s) => {
1707
+ }, ke = (o) => {
1708
+ ae(e) && (e.fields.methods = q[l.METHODS], o.forEach((s) => {
1709
1709
  e.fields.methods && (e.fields.methods[s] = !0);
1710
1710
  }));
1711
- }, Ke = (o) => Object.entries(o).map((s) => {
1711
+ }, He = (o) => Object.entries(o).map((s) => {
1712
1712
  var v;
1713
1713
  return { header: s[0], values: (v = s[1]) == null ? void 0 : v.join() };
1714
- }), X = (o) => o.some((s) => e.fields.protocols.includes(s)), fe = (o, s) => {
1714
+ }), W = (o) => o.some((s) => e.fields.protocols.includes(s)), pe = (o, s) => {
1715
1715
  if (o === l.PATHS || o === l.HOSTS || o === l.SNIS)
1716
1716
  return [...s].filter((v) => !!v);
1717
1717
  if (o === l.SOURCES || o === l.DESTINATIONS)
@@ -1721,9 +1721,9 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1721
1721
  }));
1722
1722
  if (o === l.HEADERS)
1723
1723
  return [...s].filter((v) => !!v.header);
1724
- }, qe = () => {
1725
- if (ne(e)) {
1726
- const o = fe(l.HEADERS, e.fields.headers || []) || K[l.HEADERS];
1724
+ }, Ke = () => {
1725
+ if (ae(e)) {
1726
+ const o = pe(l.HEADERS, e.fields.headers || []) || q[l.HEADERS];
1727
1727
  if (o.length === 0)
1728
1728
  return null;
1729
1729
  const s = {};
@@ -1733,12 +1733,12 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1733
1733
  }
1734
1734
  return null;
1735
1735
  }, ce = (o) => {
1736
- ne(e) && (o && o === l.PATHS && (e.fields.paths ? e.fields.paths.push([...K[l.PATHS]][0]) : e.fields.paths = [...K[l.PATHS]]), o === l.SNIS && (e.fields.snis ? e.fields.snis.push([...K[l.SNIS]][0]) : e.fields.snis = [...K[l.SNIS]]), o === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[l.HOSTS]][0]) : e.fields.hosts = [...K[l.HOSTS]]), o === l.METHODS && (e.fields.methods || (e.fields.methods = { ...K[l.METHODS] })), o === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[l.HEADERS][0] }) : e.fields.headers = [{ ...K[l.HEADERS][0] }]), o === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[l.SOURCES][0] }) : e.fields.sources = [{ ...K[l.SOURCES][0] }]), o === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[l.DESTINATIONS][0] }]));
1737
- }, Ae = P(() => {
1736
+ ae(e) && (o && o === l.PATHS && (e.fields.paths ? e.fields.paths.push([...q[l.PATHS]][0]) : e.fields.paths = [...q[l.PATHS]]), o === l.SNIS && (e.fields.snis ? e.fields.snis.push([...q[l.SNIS]][0]) : e.fields.snis = [...q[l.SNIS]]), o === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...q[l.HOSTS]][0]) : e.fields.hosts = [...q[l.HOSTS]]), o === l.METHODS && (e.fields.methods || (e.fields.methods = { ...q[l.METHODS] })), o === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...q[l.HEADERS][0] }) : e.fields.headers = [{ ...q[l.HEADERS][0] }]), o === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...q[l.SOURCES][0] }) : e.fields.sources = [{ ...q[l.SOURCES][0] }]), o === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...q[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...q[l.DESTINATIONS][0] }]));
1737
+ }, qe = D(() => {
1738
1738
  var o;
1739
- return ne(e) ? (o = Ie[e.fields.protocols]) == null ? void 0 : o.filter((s) => !e.fields[s]) : !1;
1740
- }), te = async (o, s) => {
1741
- if (ne(e)) {
1739
+ return ae(e) ? (o = Re[e.fields.protocols]) == null ? void 0 : o.filter((s) => !e.fields[s]) : !1;
1740
+ }), Z = async (o, s) => {
1741
+ if (ae(e)) {
1742
1742
  if (typeof s < "u") {
1743
1743
  let v = [];
1744
1744
  if (v = e.fields[o], v.splice(s, 1), v.length) {
@@ -1747,56 +1747,56 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1747
1747
  }
1748
1748
  }
1749
1749
  await Vt(() => {
1750
- delete e.fields[o], o === l.METHODS && (ue.value = [""]);
1750
+ delete e.fields[o], o === l.METHODS && (ge.value = [""]);
1751
1751
  });
1752
1752
  }
1753
- }, I = (o) => {
1753
+ }, Ve = (o) => {
1754
1754
  var v;
1755
1755
  return ((v = h.source.form.fields[o]) == null ? void 0 : v.label) || "";
1756
1756
  };
1757
1757
  L(() => e.fields.protocols, () => {
1758
- V();
1758
+ T();
1759
1759
  });
1760
- const V = () => {
1761
- const o = Object.keys(K), s = Ie[e.fields.protocols];
1762
- Object.keys(e.fields).filter((k) => o.includes(k)).forEach((k) => {
1763
- s != null && s.includes(k) || te(k);
1760
+ const T = () => {
1761
+ const o = Object.keys(q), s = Re[e.fields.protocols];
1762
+ Object.keys(e.fields).filter((V) => o.includes(V)).forEach((V) => {
1763
+ s != null && s.includes(V) || Z(V);
1764
1764
  });
1765
- }, U = P(() => {
1766
- if (ne(e)) {
1765
+ }, k = D(() => {
1766
+ if (ae(e)) {
1767
1767
  const o = [];
1768
1768
  return e.fields.methods && Object.entries(e.fields.methods).forEach(([s, v]) => {
1769
1769
  v && o.push(s);
1770
1770
  }), o;
1771
1771
  }
1772
1772
  return [];
1773
- }), q = P(() => {
1773
+ }), P = D(() => {
1774
1774
  var o;
1775
1775
  return ((o = e.fields.protocols) == null ? void 0 : o.split(",")) || [];
1776
- }), oe = P(() => {
1777
- const o = Object.keys(K);
1776
+ }), B = D(() => {
1777
+ const o = Object.keys(q);
1778
1778
  return !Object.keys(e.fields).filter((v) => o.includes(v)).length;
1779
- }), se = P(() => {
1780
- if (X(["tls_passthrough"]))
1781
- return [I(l.SNIS)];
1782
- const o = Ie[e.fields.protocols].map((s) => I(s));
1779
+ }), J = D(() => {
1780
+ if (W(["tls_passthrough"]))
1781
+ return [Ve(l.SNIS)];
1782
+ const o = Re[e.fields.protocols].map((s) => Ve(s));
1783
1783
  return [[...o].splice(0, o.length - 1).join(", "), o[o.length - 1]];
1784
- }), Se = (o) => {
1785
- var v, k;
1784
+ }), ie = (o) => {
1785
+ var v, V;
1786
1786
  if (a.routeId) {
1787
- const z = typeof o.expression == "string" && o.expression.length > 0 ? w.EXPRESSIONS : w.TRADITIONAL;
1788
- S.value = z, i.value = `#${z}`;
1787
+ const X = typeof o.expression == "string" && o.expression.length > 0 ? w.EXPRESSIONS : w.TRADITIONAL;
1788
+ S.value = X, i.value = `#${X}`;
1789
1789
  }
1790
1790
  (v = o == null ? void 0 : o.service) != null && v.id && (e.fields.service_id = o.service.id), e.fields.name = (o == null ? void 0 : o.name) || "";
1791
1791
  const s = (o == null ? void 0 : o.tags) || [];
1792
- e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (o == null ? void 0 : o.preserve_host) > "u" ? !1 : o == null ? void 0 : o.preserve_host, e.fields.https_redirect_status_code = (o == null ? void 0 : o.https_redirect_status_code) || 426, (k = o == null ? void 0 : o.protocols) != null && k.length && (o.protocols.length > 1 ? e.fields.protocols = o.protocols.join() : e.fields.protocols = o.protocols[0]), e.fields.request_buffering = typeof (o == null ? void 0 : o.request_buffering) > "u" ? !0 : o == null ? void 0 : o.request_buffering, e.fields.response_buffering = typeof (o == null ? void 0 : o.response_buffering) > "u" ? !0 : o == null ? void 0 : o.response_buffering, e.fields.strip_path = typeof (o == null ? void 0 : o.strip_path) > "u" ? !0 : o == null ? void 0 : o.strip_path, ne(e) && (e.fields.regex_priority = (o == null ? void 0 : o.regex_priority) || 0, e.fields.path_handling = (o == null ? void 0 : o.path_handling) || "v0", o != null && o.paths && (e.fields.paths = o.paths), o != null && o.snis && (e.fields.snis = o.snis), o != null && o.hosts && (e.fields.hosts = o.hosts), o != null && o.methods && He(o.methods), o != null && o.headers && (e.fields.headers = Ke(o.headers)), o != null && o.sources && (e.fields.sources = o.sources), o != null && o.destinations && (e.fields.destinations = o.destinations)), Pe(e) && (e.fields.expression = (o == null ? void 0 : o.expression) || "", e.fields.priority = (o == null ? void 0 : o.priority) || 0), Object.assign(we, JSON.parse(JSON.stringify(e.fields)));
1793
- }, _ = P(() => {
1792
+ e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (o == null ? void 0 : o.preserve_host) > "u" ? !1 : o == null ? void 0 : o.preserve_host, e.fields.https_redirect_status_code = (o == null ? void 0 : o.https_redirect_status_code) || 426, (V = o == null ? void 0 : o.protocols) != null && V.length && (o.protocols.length > 1 ? e.fields.protocols = o.protocols.join() : e.fields.protocols = o.protocols[0]), e.fields.request_buffering = typeof (o == null ? void 0 : o.request_buffering) > "u" ? !0 : o == null ? void 0 : o.request_buffering, e.fields.response_buffering = typeof (o == null ? void 0 : o.response_buffering) > "u" ? !0 : o == null ? void 0 : o.response_buffering, e.fields.strip_path = typeof (o == null ? void 0 : o.strip_path) > "u" ? !0 : o == null ? void 0 : o.strip_path, ae(e) && (e.fields.regex_priority = (o == null ? void 0 : o.regex_priority) || 0, e.fields.path_handling = (o == null ? void 0 : o.path_handling) || "v0", o != null && o.paths && (e.fields.paths = o.paths), o != null && o.snis && (e.fields.snis = o.snis), o != null && o.hosts && (e.fields.hosts = o.hosts), o != null && o.methods && ke(o.methods), o != null && o.headers && (e.fields.headers = He(o.headers)), o != null && o.sources && (e.fields.sources = o.sources), o != null && o.destinations && (e.fields.destinations = o.destinations)), Pe(e) && (e.fields.expression = (o == null ? void 0 : o.expression) || "", e.fields.priority = (o == null ? void 0 : o.priority) || 0), Object.assign(Ie, JSON.parse(JSON.stringify(e.fields)));
1793
+ }, Se = D(() => {
1794
1794
  var o;
1795
1795
  switch (E.value) {
1796
1796
  case w.TRADITIONAL: {
1797
- if (ne(e)) {
1798
- const s = e.fields.hosts ? !!e.fields.hosts.filter(Boolean).length : null, v = e.fields.paths ? !!e.fields.paths.filter(Boolean).length : null, k = e.fields.headers ? e.fields.headers.some(({ header: he }) => !!he) : null, z = e.fields.snis ? !!e.fields.snis.filter(Boolean).length : null, me = e.fields.destinations ? e.fields.destinations.some(({ ip: he }) => !!he) : null, le = e.fields.sources ? e.fields.sources.some(({ ip: he }) => !!he) : null, d = ((o = e.fields.methods) == null ? void 0 : o.CUSTOM) ? ue.value.some((he) => !!he) : Object.values(e.fields.methods || {}).includes(!0);
1799
- return !!e.fields.protocols && (X(["http"]) && !!(s || d || v || k) || X(["https"]) && !!(s || d || v || k || z) || X(["grpc"]) && !!(s || v || k) || X(["grpcs", "wss"]) && !!(s || v || k || z) || X(["udp", "tls"]) && !!(me || le || z) || X(["tcp"]) && !!(me || le) || X(["tls_passthrough"]) && !!z || X(["ws"]) && !!(s || v || k));
1797
+ if (ae(e)) {
1798
+ 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, X = 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 = ((o = e.fields.methods) == null ? void 0 : o.CUSTOM) ? ge.value.some((me) => !!me) : Object.values(e.fields.methods || {}).includes(!0);
1799
+ return !!e.fields.protocols && (W(["http"]) && !!(s || d || v || V) || W(["https"]) && !!(s || d || v || V || X) || W(["grpc"]) && !!(s || v || V) || W(["grpcs", "wss"]) && !!(s || v || V || X) || W(["udp", "tls"]) && !!(fe || se || X) || W(["tcp"]) && !!(fe || se) || W(["tls_passthrough"]) && !!X || W(["ws"]) && !!(s || v || V));
1800
1800
  }
1801
1801
  break;
1802
1802
  }
@@ -1807,33 +1807,33 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1807
1807
  }
1808
1808
  }
1809
1809
  return !0;
1810
- }), D = P(() => !Xt(e.fields, we)), Ce = P(() => {
1810
+ }), _ = D(() => !Xt(e.fields, Ie)), U = D(() => {
1811
1811
  var s, v;
1812
- let o = `${a.config.apiBaseUrl}${ke.form[a.config.app][Ve.value][a.serviceId ? "forGatewayService" : "all"]}`;
1812
+ let o = `${a.config.apiBaseUrl}${Ce.form[a.config.app][Oe.value][a.serviceId ? "forGatewayService" : "all"]}`;
1813
1813
  return a.config.app === "konnect" ? o = o.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "").replace(/{serviceId}/gi, a.serviceId || "") : a.config.app === "kongManager" && (o = o.replace(/\/{workspace}/gi, (v = a.config) != null && v.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, a.serviceId || "")), o = o.replace(/{id}/gi, a.routeId), o;
1814
1814
  });
1815
1815
  L(() => e.fields, () => {
1816
1816
  f("model-updated", Ne.value);
1817
1817
  }, { deep: !0 });
1818
- const Oe = (o) => o != null && o.length ? o : null, ht = () => {
1818
+ const ye = (o) => o != null && o.length ? o : null, ht = () => {
1819
1819
  var o, s;
1820
- if (ne(e)) {
1820
+ if (ae(e)) {
1821
1821
  const v = {
1822
1822
  methods: null,
1823
- hosts: Oe(fe(l.HOSTS, e.fields.hosts || [])),
1824
- paths: Oe(fe(l.PATHS, e.fields.paths || [])),
1825
- headers: qe(),
1823
+ hosts: ye(pe(l.HOSTS, e.fields.hosts || [])),
1824
+ paths: ye(pe(l.PATHS, e.fields.paths || [])),
1825
+ headers: Ke(),
1826
1826
  regex_priority: Number(e.fields.regex_priority),
1827
1827
  path_handling: e.fields.path_handling,
1828
- sources: Oe(fe(l.SOURCES, e.fields.sources || [])),
1829
- destinations: Oe(fe(l.DESTINATIONS, e.fields.destinations || [])),
1830
- snis: Oe(fe(l.SNIS, e.fields.snis || []))
1828
+ sources: ye(pe(l.SOURCES, e.fields.sources || [])),
1829
+ destinations: ye(pe(l.DESTINATIONS, e.fields.destinations || [])),
1830
+ snis: ye(pe(l.SNIS, e.fields.snis || []))
1831
1831
  };
1832
- if ((o = U.value) != null && o.length && (v.methods = [...U.value], (s = U.value) != null && s.includes("CUSTOM"))) {
1833
- const k = v.methods.indexOf("CUSTOM");
1834
- k !== -1 && v.methods.splice(k, 1), ue.value.forEach((z) => {
1835
- var me;
1836
- z && v.methods && !((me = v.methods) != null && me.includes(z)) && v.methods.push(z.toUpperCase());
1832
+ if ((o = k.value) != null && o.length && (v.methods = [...k.value], (s = k.value) != null && s.includes("CUSTOM"))) {
1833
+ const V = v.methods.indexOf("CUSTOM");
1834
+ V !== -1 && v.methods.splice(V, 1), ge.value.forEach((X) => {
1835
+ var fe;
1836
+ X && v.methods && !((fe = v.methods) != null && fe.includes(X)) && v.methods.push(X.toUpperCase());
1837
1837
  });
1838
1838
  }
1839
1839
  return v;
@@ -1844,17 +1844,17 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1844
1844
  expression: e.fields.expression,
1845
1845
  priority: Number(e.fields.priority)
1846
1846
  };
1847
- }, Ne = P(() => {
1847
+ }, Ne = D(() => {
1848
1848
  var s, v;
1849
1849
  const o = {
1850
1850
  ...!a.hideNameField && { name: e.fields.name || null },
1851
1851
  protocols: e.fields.protocols.split(","),
1852
1852
  https_redirect_status_code: e.fields.https_redirect_status_code,
1853
- strip_path: X(["grpc", "gprcs"]) ? !1 : e.fields.strip_path,
1853
+ strip_path: W(["grpc", "gprcs"]) ? !1 : e.fields.strip_path,
1854
1854
  preserve_host: e.fields.preserve_host,
1855
1855
  request_buffering: e.fields.request_buffering,
1856
1856
  response_buffering: e.fields.response_buffering,
1857
- tags: (v = (s = e.fields.tags.split(",")) == null ? void 0 : s.map((k) => String(k || "").trim())) == null ? void 0 : v.filter((k) => k !== ""),
1857
+ tags: (v = (s = e.fields.tags.split(",")) == null ? void 0 : s.map((V) => String(V || "").trim())) == null ? void 0 : v.filter((V) => V !== ""),
1858
1858
  service: e.fields.service_id ? { id: e.fields.service_id } : null
1859
1859
  };
1860
1860
  switch (E.value) {
@@ -1884,10 +1884,10 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1884
1884
  const s = o && gt(o) ? o : Ne.value;
1885
1885
  try {
1886
1886
  e.isReadonly = !0;
1887
- let k;
1888
- Ve.value === "create" ? k = await O.post(Ce.value, s) : Ve.value === "edit" && (k = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(Ce.value, s) : await O.patch(Ce.value, s)), Se(k == null ? void 0 : k.data), f("update", k == null ? void 0 : k.data);
1889
- } catch (k) {
1890
- e.errorMessage = H(k), f("error", k);
1887
+ let V;
1888
+ Oe.value === "create" ? V = await O.post(U.value, s) : Oe.value === "edit" && (V = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(U.value, s) : await O.patch(U.value, s)), ie(V == null ? void 0 : V.data), f("update", V == null ? void 0 : V.data);
1889
+ } catch (V) {
1890
+ e.errorMessage = H(V), f("error", V);
1891
1891
  } finally {
1892
1892
  e.isReadonly = !1;
1893
1893
  }
@@ -1897,10 +1897,10 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1897
1897
  error: bt,
1898
1898
  loadItems: _t,
1899
1899
  results: It
1900
- } = qt(a.config, ke.form[a.config.app].services, void 0, {
1900
+ } = qt(a.config, Ce.form[a.config.app].services, void 0, {
1901
1901
  fetchedItemsKey: "data",
1902
1902
  searchKeys: ["id", "name"]
1903
- }), Tt = P(() => bt.value ? u("errors.services.fetch") : ""), Rt = P(() => {
1903
+ }), Tt = D(() => bt.value ? u("errors.services.fetch") : ""), Rt = D(() => {
1904
1904
  var o;
1905
1905
  return (o = It.value) == null ? void 0 : o.map((s) => ({ label: s.id, name: s.name, value: s.id }));
1906
1906
  });
@@ -1909,10 +1909,10 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1909
1909
  }), at(() => {
1910
1910
  f("model-updated", Ne.value);
1911
1911
  }), N({ saveFormData: Le, getPayload: Ne }), (o, s) => {
1912
- const v = C("KInput"), k = C("KSelect"), z = C("KAlert"), me = C("KCard"), le = C("KCheckbox"), Be = C("KCollapse");
1912
+ const v = C("KInput"), V = C("KSelect"), X = C("KAlert"), fe = C("KCard"), se = C("KCheckbox"), Be = C("KCollapse");
1913
1913
  return p(), b("div", Lo, [
1914
1914
  c(t(Lt), {
1915
- "can-submit": _.value && D.value,
1915
+ "can-submit": Se.value && _.value,
1916
1916
  config: r.config,
1917
1917
  "edit-id": r.routeId,
1918
1918
  "entity-type": t(pt).Route,
@@ -1920,21 +1920,21 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1920
1920
  "fetch-url": xe.value,
1921
1921
  "form-fields": Ne.value,
1922
1922
  "is-readonly": e.isReadonly,
1923
- onCancel: ae,
1924
- "onFetch:error": Re,
1925
- "onFetch:success": Se,
1926
- onLoading: Te,
1923
+ onCancel: $e,
1924
+ "onFetch:error": Ee,
1925
+ "onFetch:success": ie,
1926
+ onLoading: ue,
1927
1927
  onSubmit: Le
1928
1928
  }, {
1929
1929
  "form-actions": n(() => [
1930
- de(o.$slots, "form-actions", {
1931
- canSubmit: _.value && D.value,
1932
- cancel: ae,
1930
+ ne(o.$slots, "form-actions", {
1931
+ canSubmit: Se.value && _.value,
1932
+ cancel: $e,
1933
1933
  submit: Le
1934
1934
  }, void 0, !0)
1935
1935
  ]),
1936
1936
  default: n(() => [
1937
- G.value ? (p(), A(t(st), {
1937
+ z.value ? (p(), A(t(st), {
1938
1938
  key: 0,
1939
1939
  description: t(u)("form.sections.general.description"),
1940
1940
  "hide-info-header": r.hideSectionsInfo,
@@ -1954,7 +1954,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1954
1954
  type: "text"
1955
1955
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"])),
1956
1956
  !r.hideServiceField && !r.serviceId ? (p(), b("div", Bo, [
1957
- c(k, {
1957
+ c(V, {
1958
1958
  modelValue: e.fields.service_id,
1959
1959
  "onUpdate:modelValue": s[1] || (s[1] = (d) => e.fields.service_id = d),
1960
1960
  clearable: "",
@@ -1977,7 +1977,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
1977
1977
  y("div", Go, g(t(u)("search.no_results")), 1)
1978
1978
  ]),
1979
1979
  "selected-item-template": n(({ item: d }) => [
1980
- F(g(j(d)), 1)
1980
+ F(g(K(d)), 1)
1981
1981
  ]),
1982
1982
  "item-template": n(({ item: d }) => [
1983
1983
  y("div", jo, [
@@ -2010,11 +2010,11 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2010
2010
  title: t(u)("form.sections.config.title")
2011
2011
  }, {
2012
2012
  default: n(() => [
2013
- c(k, {
2013
+ c(V, {
2014
2014
  modelValue: e.fields.protocols,
2015
2015
  "onUpdate:modelValue": s[3] || (s[3] = (d) => e.fields.protocols = d),
2016
2016
  "data-testid": "route-form-protocols",
2017
- items: _e,
2017
+ items: Me,
2018
2018
  label: t(u)("form.fields.protocols.label"),
2019
2019
  "label-attributes": {
2020
2020
  info: t(u)("form.fields.protocols.tooltip"),
@@ -2033,7 +2033,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2033
2033
  r.routeFlavors.traditional && r.routeFlavors.expressions && (!S.value || S.value !== m.value) ? {
2034
2034
  name: "before-content",
2035
2035
  fn: n(() => [
2036
- c(z, {
2036
+ c(X, {
2037
2037
  appearance: S.value ? "warning" : "info",
2038
2038
  class: "route-form-config-type-immutable-alert",
2039
2039
  "data-testid": "route-config-type-immutable-alert"
@@ -2050,14 +2050,14 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2050
2050
  ]),
2051
2051
  key: "0"
2052
2052
  } : void 0,
2053
- t(ne)(e) ? {
2053
+ t(ae)(e) ? {
2054
2054
  name: "traditional",
2055
2055
  fn: n(() => [
2056
2056
  !S.value || S.value === t(w).TRADITIONAL ? (p(), b(x, { key: 0 }, [
2057
- e.fields.protocols ? (p(), A(me, { key: 0 }, {
2057
+ e.fields.protocols ? (p(), A(fe, { key: 0 }, {
2058
2058
  title: n(() => [
2059
2059
  y("div", zo, [
2060
- (p(!0), b(x, null, W(q.value, (d) => (p(), b("span", {
2060
+ (p(!0), b(x, null, j(P.value, (d) => (p(), b("span", {
2061
2061
  key: d,
2062
2062
  class: "protocol-title"
2063
2063
  }, g(d.toUpperCase()), 1))), 128)),
@@ -2065,25 +2065,25 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2065
2065
  ])
2066
2066
  ]),
2067
2067
  default: n(() => [
2068
- oe.value ? (p(), A(z, {
2068
+ B.value ? (p(), A(X, {
2069
2069
  key: 0,
2070
2070
  appearance: "warning",
2071
2071
  "data-testid": "routing-rules-warning"
2072
2072
  }, {
2073
2073
  default: n(() => [
2074
- c(t(B), { keypath: "form.warning.rulesMessage" }, {
2074
+ c(t(G), { keypath: "form.warning.rulesMessage" }, {
2075
2075
  protocol: n(() => [
2076
- y("b", null, g(t(Q)[e.fields.protocols]), 1)
2076
+ y("b", null, g(t(oe)[e.fields.protocols]), 1)
2077
2077
  ]),
2078
2078
  routingRules: n(() => [
2079
- c(t(B), {
2080
- keypath: se.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
2079
+ c(t(G), {
2080
+ keypath: J.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
2081
2081
  }, {
2082
2082
  routingRules: n(() => [
2083
- y("b", null, g(se.value[0]), 1)
2083
+ y("b", null, g(J.value[0]), 1)
2084
2084
  ]),
2085
2085
  lastRoutingRule: n(() => [
2086
- y("b", null, g(se.value[1]), 1)
2086
+ y("b", null, g(J.value[1]), 1)
2087
2087
  ]),
2088
2088
  _: 1
2089
2089
  }, 8, ["keypath"])
@@ -2093,73 +2093,73 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2093
2093
  ]),
2094
2094
  _: 1
2095
2095
  })) : $("", !0),
2096
- c(ge, { name: "appear" }, {
2096
+ c(ve, { name: "appear" }, {
2097
2097
  default: n(() => [
2098
2098
  e.fields.paths ? (p(), A($o, {
2099
2099
  key: "paths-container",
2100
2100
  modelValue: e.fields.paths,
2101
2101
  "onUpdate:modelValue": s[4] || (s[4] = (d) => e.fields.paths = d),
2102
2102
  onAdd: s[5] || (s[5] = (d) => ce(t(l).PATHS)),
2103
- onRemove: s[6] || (s[6] = (d) => te(t(l).PATHS, d))
2103
+ onRemove: s[6] || (s[6] = (d) => Z(t(l).PATHS, d))
2104
2104
  }, null, 8, ["modelValue"])) : $("", !0),
2105
2105
  e.fields.snis ? (p(), A(Do, {
2106
2106
  key: "snis-container",
2107
2107
  modelValue: e.fields.snis,
2108
2108
  "onUpdate:modelValue": s[7] || (s[7] = (d) => e.fields.snis = d),
2109
2109
  onAdd: s[8] || (s[8] = (d) => ce(t(l).SNIS)),
2110
- onRemove: s[9] || (s[9] = (d) => te(t(l).SNIS, d))
2110
+ onRemove: s[9] || (s[9] = (d) => Z(t(l).SNIS, d))
2111
2111
  }, null, 8, ["modelValue"])) : $("", !0),
2112
2112
  e.fields.hosts ? (p(), A(Ro, {
2113
2113
  key: "hosts-container",
2114
2114
  modelValue: e.fields.hosts,
2115
2115
  "onUpdate:modelValue": s[10] || (s[10] = (d) => e.fields.hosts = d),
2116
2116
  onAdd: s[11] || (s[11] = (d) => ce(t(l).HOSTS)),
2117
- onRemove: s[12] || (s[12] = (d) => te(t(l).HOSTS, d))
2117
+ onRemove: s[12] || (s[12] = (d) => Z(t(l).HOSTS, d))
2118
2118
  }, null, 8, ["modelValue"])) : $("", !0),
2119
2119
  e.fields.methods ? (p(), A(Oo, {
2120
2120
  key: "methods-container",
2121
2121
  modelValue: e.fields.methods,
2122
2122
  "onUpdate:modelValue": s[13] || (s[13] = (d) => e.fields.methods = d),
2123
- "custom-methods": ue.value,
2124
- onRemove: s[14] || (s[14] = (d) => te(t(l).METHODS)),
2125
- onUpdateCustomMethods: s[15] || (s[15] = (d) => ue.value = d)
2123
+ "custom-methods": ge.value,
2124
+ onRemove: s[14] || (s[14] = (d) => Z(t(l).METHODS)),
2125
+ onUpdateCustomMethods: s[15] || (s[15] = (d) => ge.value = d)
2126
2126
  }, null, 8, ["modelValue", "custom-methods"])) : $("", !0),
2127
2127
  e.fields.headers ? (p(), A(_o, {
2128
2128
  key: "headers-container",
2129
2129
  modelValue: e.fields.headers,
2130
2130
  "onUpdate:modelValue": s[16] || (s[16] = (d) => e.fields.headers = d),
2131
2131
  onAdd: s[17] || (s[17] = (d) => ce(t(l).HEADERS)),
2132
- onRemove: s[18] || (s[18] = (d) => te(t(l).HEADERS, d))
2132
+ onRemove: s[18] || (s[18] = (d) => Z(t(l).HEADERS, d))
2133
2133
  }, null, 8, ["modelValue"])) : $("", !0),
2134
2134
  e.fields.sources ? (p(), A(Mo, {
2135
2135
  key: "sources-container",
2136
2136
  modelValue: e.fields.sources,
2137
2137
  "onUpdate:modelValue": s[19] || (s[19] = (d) => e.fields.sources = d),
2138
2138
  onAdd: s[20] || (s[20] = (d) => ce(t(l).SOURCES)),
2139
- onRemove: s[21] || (s[21] = (d) => te(t(l).SOURCES, d))
2139
+ onRemove: s[21] || (s[21] = (d) => Z(t(l).SOURCES, d))
2140
2140
  }, null, 8, ["modelValue"])) : $("", !0),
2141
2141
  e.fields.destinations ? (p(), A(So, {
2142
2142
  key: "destinations-container",
2143
2143
  modelValue: e.fields.destinations,
2144
2144
  "onUpdate:modelValue": s[22] || (s[22] = (d) => e.fields.destinations = d),
2145
2145
  onAdd: s[23] || (s[23] = (d) => ce(t(l).DESTINATIONS)),
2146
- onRemove: s[24] || (s[24] = (d) => te(t(l).DESTINATIONS, d))
2146
+ onRemove: s[24] || (s[24] = (d) => Z(t(l).DESTINATIONS, d))
2147
2147
  }, null, 8, ["modelValue"])) : $("", !0)
2148
2148
  ]),
2149
2149
  _: 1
2150
2150
  }),
2151
- Ae.value ? (p(), b("div", Qo, [
2151
+ qe.value ? (p(), b("div", Qo, [
2152
2152
  s[45] || (s[45] = y("hr", null, null, -1)),
2153
2153
  y("div", Yo, [
2154
2154
  y("ul", null, [
2155
- (p(!0), b(x, null, W(Ie[e.fields.protocols], (d) => (p(), b("li", { key: d }, [
2155
+ (p(!0), b(x, null, j(Re[e.fields.protocols], (d) => (p(), b("li", { key: d }, [
2156
2156
  y("label", {
2157
2157
  "aria-disabled": !!e.fields[d],
2158
2158
  class: kt(["option", { "is-selected": e.fields[d] }]),
2159
2159
  "data-testid": `routing-rule-${d}`,
2160
2160
  role: "button",
2161
- onClick: (he) => ce(d)
2162
- }, g(I(d)), 11, Zo)
2161
+ onClick: (me) => ce(d)
2162
+ }, g(Ve(d)), 11, Zo)
2163
2163
  ]))), 128))
2164
2164
  ])
2165
2165
  ])
@@ -2176,12 +2176,12 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2176
2176
  }, {
2177
2177
  default: n(() => [
2178
2178
  y("div", es, [
2179
- e.fields.paths ? (p(), A(k, {
2179
+ e.fields.paths ? (p(), A(V, {
2180
2180
  key: 0,
2181
2181
  modelValue: e.fields.path_handling,
2182
2182
  "onUpdate:modelValue": s[25] || (s[25] = (d) => e.fields.path_handling = d),
2183
2183
  "data-testid": "route-form-path-handling",
2184
- items: Me,
2184
+ items: Te,
2185
2185
  label: t(u)("form.fields.path_handling.label"),
2186
2186
  "label-attributes": {
2187
2187
  info: t(u)("form.fields.path_handling.tooltip"),
@@ -2190,11 +2190,11 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2190
2190
  readonly: e.isReadonly,
2191
2191
  width: "100%"
2192
2192
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : $("", !0),
2193
- c(k, {
2193
+ c(V, {
2194
2194
  modelValue: e.fields.https_redirect_status_code,
2195
2195
  "onUpdate:modelValue": s[26] || (s[26] = (d) => e.fields.https_redirect_status_code = d),
2196
2196
  "data-testid": "route-form-http-redirect-status-code",
2197
- items: $e,
2197
+ items: we,
2198
2198
  label: t(u)("form.fields.https_redirect_status_code.label"),
2199
2199
  readonly: e.isReadonly,
2200
2200
  width: "100%"
@@ -2221,26 +2221,26 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2221
2221
  readonly: e.isReadonly,
2222
2222
  type: "text"
2223
2223
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : $("", !0),
2224
- X(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2224
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(se, {
2225
2225
  key: 2,
2226
2226
  modelValue: e.fields.strip_path,
2227
2227
  "onUpdate:modelValue": s[29] || (s[29] = (d) => e.fields.strip_path = d),
2228
2228
  "data-testid": "route-form-strip-path",
2229
2229
  label: t(u)("form.fields.strip_path.label")
2230
2230
  }, null, 8, ["modelValue", "label"])) : $("", !0),
2231
- c(le, {
2231
+ c(se, {
2232
2232
  modelValue: e.fields.preserve_host,
2233
2233
  "onUpdate:modelValue": s[30] || (s[30] = (d) => e.fields.preserve_host = d),
2234
2234
  "data-testid": "route-form-preserve-host",
2235
2235
  label: t(u)("form.fields.preserve_host.label")
2236
2236
  }, null, 8, ["modelValue", "label"]),
2237
- c(le, {
2237
+ c(se, {
2238
2238
  modelValue: e.fields.request_buffering,
2239
2239
  "onUpdate:modelValue": s[31] || (s[31] = (d) => e.fields.request_buffering = d),
2240
2240
  "data-testid": "route-form-request-buffering",
2241
2241
  label: t(u)("form.fields.request_buffering.label")
2242
2242
  }, null, 8, ["modelValue", "label"]),
2243
- c(le, {
2243
+ c(se, {
2244
2244
  modelValue: e.fields.response_buffering,
2245
2245
  "onUpdate:modelValue": s[32] || (s[32] = (d) => e.fields.response_buffering = d),
2246
2246
  "data-testid": "route-form-response-buffering",
@@ -2258,10 +2258,10 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2258
2258
  name: "expressions",
2259
2259
  fn: n(() => [
2260
2260
  !S.value || S.value === t(w).EXPRESSIONS ? (p(), b(x, { key: 0 }, [
2261
- e.fields.protocols ? (p(), A(me, { key: 0 }, {
2261
+ e.fields.protocols ? (p(), A(fe, { key: 0 }, {
2262
2262
  title: n(() => [
2263
2263
  y("div", ts, [
2264
- (p(!0), b(x, null, W(q.value, (d) => (p(), b("span", {
2264
+ (p(!0), b(x, null, j(P.value, (d) => (p(), b("span", {
2265
2265
  key: d,
2266
2266
  class: "protocol-title"
2267
2267
  }, g(d.toUpperCase()), 1))), 128)),
@@ -2277,7 +2277,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2277
2277
  onNotify: s[35] || (s[35] = (d) => f("notify", d))
2278
2278
  }, {
2279
2279
  "after-editor": n((d) => [
2280
- de(o.$slots, "after-expressions-editor", {
2280
+ ne(o.$slots, "after-expressions-editor", {
2281
2281
  expression: d.expression,
2282
2282
  state: d.state
2283
2283
  }, void 0, !0)
@@ -2296,11 +2296,11 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2296
2296
  }, {
2297
2297
  default: n(() => [
2298
2298
  y("div", ss, [
2299
- c(k, {
2299
+ c(V, {
2300
2300
  modelValue: e.fields.https_redirect_status_code,
2301
2301
  "onUpdate:modelValue": s[36] || (s[36] = (d) => e.fields.https_redirect_status_code = d),
2302
2302
  "data-testid": "route-form-http-redirect-status-code",
2303
- items: $e,
2303
+ items: we,
2304
2304
  label: t(u)("form.fields.https_redirect_status_code.label"),
2305
2305
  readonly: e.isReadonly,
2306
2306
  width: "100%"
@@ -2331,26 +2331,26 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2331
2331
  readonly: e.isReadonly,
2332
2332
  type: "text"
2333
2333
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : $("", !0),
2334
- X(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2334
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(se, {
2335
2335
  key: 1,
2336
2336
  modelValue: e.fields.strip_path,
2337
2337
  "onUpdate:modelValue": s[39] || (s[39] = (d) => e.fields.strip_path = d),
2338
2338
  "data-testid": "route-form-strip-path",
2339
2339
  label: t(u)("form.fields.strip_path.label")
2340
2340
  }, null, 8, ["modelValue", "label"])) : $("", !0),
2341
- c(le, {
2341
+ c(se, {
2342
2342
  modelValue: e.fields.preserve_host,
2343
2343
  "onUpdate:modelValue": s[40] || (s[40] = (d) => e.fields.preserve_host = d),
2344
2344
  "data-testid": "route-form-preserve-host",
2345
2345
  label: t(u)("form.fields.preserve_host.label")
2346
2346
  }, null, 8, ["modelValue", "label"]),
2347
- c(le, {
2347
+ c(se, {
2348
2348
  modelValue: e.fields.request_buffering,
2349
2349
  "onUpdate:modelValue": s[41] || (s[41] = (d) => e.fields.request_buffering = d),
2350
2350
  "data-testid": "route-form-request-buffering",
2351
2351
  label: t(u)("form.fields.request_buffering.label")
2352
2352
  }, null, 8, ["modelValue", "label"]),
2353
- c(le, {
2353
+ c(se, {
2354
2354
  modelValue: e.fields.response_buffering,
2355
2355
  "onUpdate:modelValue": s[42] || (s[42] = (d) => e.fields.response_buffering = d),
2356
2356
  "data-testid": "route-form-response-buffering",
@@ -2374,7 +2374,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2374
2374
  ]);
2375
2375
  };
2376
2376
  }
2377
- }), hs = /* @__PURE__ */ ie(ls, [["__scopeId", "data-v-e155aee1"]]), rs = { class: "kong-ui-entities-route-entity-config-card" }, is = { key: 2 }, vs = /* @__PURE__ */ J({
2377
+ }), hs = /* @__PURE__ */ re(ls, [["__scopeId", "data-v-e155aee1"]]), rs = { class: "kong-ui-entities-route-entity-config-card" }, is = { key: 2 }, vs = /* @__PURE__ */ Q({
2378
2378
  __name: "RouteConfigCard",
2379
2379
  props: {
2380
2380
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2407,31 +2407,31 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2407
2407
  },
2408
2408
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
2409
2409
  setup(r, { emit: N }) {
2410
- var pe;
2411
- const T = N, a = r, { axiosInstance: f } = Xe((pe = a.config) == null ? void 0 : pe.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = re.useI18n(), S = M(""), R = M(""), E = M(!1), B = P(
2410
+ var de;
2411
+ const I = N, a = r, { axiosInstance: f } = Xe((de = a.config) == null ? void 0 : de.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = le.useI18n(), S = M(""), R = M(""), E = M(!1), G = D(
2412
2412
  () => {
2413
2413
  var O, H;
2414
- return (H = ke.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : H[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
2414
+ return (H = Ce.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : H[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
2415
2415
  }
2416
- ), h = P(() => {
2416
+ ), h = D(() => {
2417
2417
  var O;
2418
- return (O = ke.item[a.config.app]) == null ? void 0 : O.getService;
2418
+ return (O = Ce.item[a.config.app]) == null ? void 0 : O.getService;
2419
2419
  }), u = async (O) => {
2420
- var G, j, e;
2421
- if (S.value = a.serviceId || ((G = O == null ? void 0 : O.service) == null ? void 0 : G.id), T("fetch:success", O), !S.value)
2420
+ var z, K, e;
2421
+ if (S.value = a.serviceId || ((z = O == null ? void 0 : O.service) == null ? void 0 : z.id), I("fetch:success", O), !S.value)
2422
2422
  return;
2423
2423
  let H = `${a.config.apiBaseUrl}${h.value}`;
2424
- a.config.app === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((j = a.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{serviceId}/gi, S.value || "") : a.config.app === "kongManager" && (H = H.replace(/\/{workspace}/gi, (e = a.config) != null && e.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, S.value || ""));
2424
+ a.config.app === "konnect" ? H = H.replace(/{controlPlaneId}/gi, ((K = a.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{serviceId}/gi, S.value || "") : a.config.app === "kongManager" && (H = H.replace(/\/{workspace}/gi, (e = a.config) != null && e.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, S.value || ""));
2425
2425
  try {
2426
2426
  E.value = !0;
2427
2427
  const { data: Y } = await f.get(H);
2428
2428
  R.value = (Y == null ? void 0 : Y.name) || (Y == null ? void 0 : Y.id);
2429
2429
  } catch (Y) {
2430
- T("fetch:error", Y);
2430
+ I("fetch:error", Y);
2431
2431
  } finally {
2432
2432
  E.value = !1;
2433
2433
  }
2434
- }, Q = M({
2434
+ }, oe = M({
2435
2435
  id: {},
2436
2436
  name: {
2437
2437
  tooltip: i("form.fields.name.tooltip")
@@ -2440,7 +2440,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2440
2440
  updated_at: {},
2441
2441
  service: {
2442
2442
  label: i("form.fields.service.label"),
2443
- section: ve.Basic,
2443
+ section: he.Basic,
2444
2444
  tooltip: i("form.fields.service.tooltip"),
2445
2445
  order: 5
2446
2446
  },
@@ -2449,20 +2449,20 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2449
2449
  order: 6
2450
2450
  },
2451
2451
  protocols: {
2452
- section: ve.Basic,
2453
- type: ye.BadgeTag,
2452
+ section: he.Basic,
2453
+ type: be.BadgeTag,
2454
2454
  order: 7
2455
2455
  },
2456
2456
  paths: {
2457
- section: ve.Basic,
2457
+ section: he.Basic,
2458
2458
  tooltip: i("form.fields.paths.tooltip"),
2459
- type: ye.CopyBadge,
2459
+ type: be.CopyBadge,
2460
2460
  order: 8
2461
2461
  },
2462
2462
  hosts: {
2463
- section: ve.Basic,
2463
+ section: he.Basic,
2464
2464
  tooltip: i("form.fields.hosts.tooltipConfig"),
2465
- type: ye.CopyBadge,
2465
+ type: be.CopyBadge,
2466
2466
  order: 9
2467
2467
  },
2468
2468
  snis: {
@@ -2471,25 +2471,25 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2471
2471
  order: 10
2472
2472
  },
2473
2473
  headers: {
2474
- section: ve.Basic,
2474
+ section: he.Basic,
2475
2475
  order: 11
2476
2476
  },
2477
2477
  methods: {
2478
- section: ve.Basic,
2478
+ section: he.Basic,
2479
2479
  tooltip: i("form.fields.methods.tooltip"),
2480
- type: ye.BadgeMethod,
2480
+ type: be.BadgeMethod,
2481
2481
  order: 12
2482
2482
  },
2483
2483
  sources: {
2484
- section: ve.Basic,
2484
+ section: he.Basic,
2485
2485
  tooltip: i("form.fields.sources.tooltip"),
2486
- type: ye.JsonArray,
2486
+ type: be.JsonArray,
2487
2487
  order: 13
2488
2488
  },
2489
2489
  destinations: {
2490
- section: ve.Basic,
2490
+ section: he.Basic,
2491
2491
  tooltip: i("form.fields.destinations.tooltip"),
2492
- type: ye.JsonArray,
2492
+ type: be.JsonArray,
2493
2493
  order: 14
2494
2494
  },
2495
2495
  // advanced fields
@@ -2520,18 +2520,18 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2520
2520
  }
2521
2521
  });
2522
2522
  return (O, H) => {
2523
- const G = C("KSkeleton");
2523
+ const z = C("KSkeleton");
2524
2524
  return p(), b("div", rs, [
2525
2525
  c(t(Bt), {
2526
2526
  config: r.config,
2527
2527
  "config-card-doc": r.configCardDoc,
2528
- "config-schema": Q.value,
2528
+ "config-schema": oe.value,
2529
2529
  "entity-type": t(pt).Route,
2530
- "fetch-url": B.value,
2530
+ "fetch-url": G.value,
2531
2531
  "hide-title": r.hideTitle,
2532
- "onFetch:error": H[0] || (H[0] = (j) => O.$emit("fetch:error", j)),
2532
+ "onFetch:error": H[0] || (H[0] = (K) => O.$emit("fetch:error", K)),
2533
2533
  "onFetch:success": u,
2534
- onLoading: H[1] || (H[1] = (j) => O.$emit("loading", j))
2534
+ onLoading: H[1] || (H[1] = (K) => O.$emit("loading", K))
2535
2535
  }, {
2536
2536
  "https_redirect_status_code-label-tooltip": n(() => [
2537
2537
  c(t(m), {
@@ -2644,19 +2644,19 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2644
2644
  _: 1
2645
2645
  })
2646
2646
  ]),
2647
- service: n(({ row: j }) => [
2648
- E.value ? (p(), A(G, {
2647
+ service: n(({ row: K }) => [
2648
+ E.value ? (p(), A(z, {
2649
2649
  key: 0,
2650
2650
  "data-testid": "service-name-loader",
2651
2651
  type: "spinner"
2652
- })) : j.value && j.value.id === S.value && R.value ? (p(), A(t(Gt), {
2652
+ })) : K.value && K.value.id === S.value && R.value ? (p(), A(t(Gt), {
2653
2653
  key: 1,
2654
2654
  item: {
2655
- key: j.value.id,
2655
+ key: K.value.id,
2656
2656
  value: R.value,
2657
- type: t(ye).LinkInternal
2657
+ type: t(be).LinkInternal
2658
2658
  },
2659
- onNavigationClick: () => O.$emit("navigation-click", j.value.id, "services")
2659
+ onNavigationClick: () => O.$emit("navigation-click", K.value.id, "services")
2660
2660
  }, null, 8, ["item", "onNavigationClick"])) : (p(), b("div", is, g("-")))
2661
2661
  ]),
2662
2662
  _: 1
@@ -2666,7 +2666,7 @@ const ne = (r) => r.routeFlavors.traditional === !0, Pe = (r) => r.routeFlavors.
2666
2666
  }
2667
2667
  });
2668
2668
  export {
2669
- Ee as ExpressionsEditorState,
2669
+ Ae as ExpressionsEditorState,
2670
2670
  fo as Methods,
2671
2671
  vs as RouteConfigCard,
2672
2672
  w as RouteFlavor,
@@ -2674,5 +2674,5 @@ export {
2674
2674
  ms as RouteList,
2675
2675
  l as RoutingRulesEntities,
2676
2676
  Pe as stateHasExpressionsFlavor,
2677
- ne as stateHasTraditionalFlavor
2677
+ ae as stateHasTraditionalFlavor
2678
2678
  };