@kong-ui-public/entities-routes 3.8.50 → 3.8.51

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,11 +1,11 @@
1
- import { defineComponent as J, ref as D, computed as M, watch as B, onBeforeMount as st, resolveComponent as C, openBlock as p, createElementBlock as _, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as Rt, withDirectives as Et, createTextVNode as F, toDisplayString as g, vShow as Vt, createElementVNode as y, Fragment as x, renderList as W, withModifiers as ke, TransitionGroup as ve, createCommentVNode as H, mergeModels as Le, useModel as lt, createSlots as rt, renderSlot as ce, defineAsyncComponent as At, onMounted as it, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Ct, nextTick as Ot } from "vue";
2
- import { useRouter as at } from "vue-router";
3
- import { BadgeMethodAppearances as nt } from "@kong/kongponents";
4
- import { AddIcon as dt, TrashIcon as ut, InfoIcon as Ye, RocketIcon as kt } from "@kong/icons";
5
- import { useAxios as Ge, useFetcher as Nt, useDeleteUrlBuilder as wt, FetcherStatus as Ze, EntityBaseTable as $t, EntityFilter as Ht, PermissionsWrapper as Ne, TableTags as Dt, EntityDeleteModal as Ut, EntityTypes as Pt, useErrors as Ft, useGatewayFeatureSupported as Mt, EntityBaseFormType as et, useDebouncedFilter as xt, EntityBaseForm as Kt, SupportedEntityType as ct, EntityFormSection as tt, ConfigurationSchemaSection as he, ConfigurationSchemaType as Se, EntityBaseConfigCard as qt, InternalLinkItem as Lt } from "@kong-ui-public/entities-shared";
6
- import { createI18n as Bt, i18nTComponent as Gt } from "@kong-ui-public/i18n";
7
- import jt from "lodash.isequal";
8
- const Wt = {
1
+ import { defineComponent as J, ref as P, computed as M, watch as G, onBeforeMount as ot, resolveComponent as C, openBlock as p, createElementBlock as b, createVNode as c, unref as o, withCtx as n, createBlock as A, Teleport as It, createTextVNode as F, toDisplayString as g, createElementVNode as y, Fragment as x, renderList as X, withModifiers as Ce, TransitionGroup as ve, createCommentVNode as H, mergeModels as qe, useModel as st, createSlots as lt, renderSlot as ue, defineAsyncComponent as Rt, onMounted as rt, resolveDynamicComponent as ze, h as Je, reactive as Qe, normalizeClass as Et, nextTick as Vt } from "vue";
2
+ import { useRouter as it } from "vue-router";
3
+ import { BadgeMethodAppearances as at } from "@kong/kongponents";
4
+ import { AddIcon as nt, TrashIcon as dt, InfoIcon as Ye, RocketIcon as At } from "@kong/icons";
5
+ import { useAxios as Be, useFetcher as Ct, useDeleteUrlBuilder as Ot, FetcherStatus as kt, EntityBaseTable as Nt, EntityFilter as wt, PermissionsWrapper as Oe, TableTags as $t, EntityDeleteModal as Ht, EntityTypes as Dt, useErrors as Ut, useGatewayFeatureSupported as Pt, EntityBaseFormType as Ze, useDebouncedFilter as Ft, EntityBaseForm as Mt, SupportedEntityType as ut, EntityFormSection as et, ConfigurationSchemaSection as he, ConfigurationSchemaType as ge, EntityBaseConfigCard as xt, InternalLinkItem as Kt } from "@kong-ui-public/entities-shared";
6
+ import { createI18n as qt, i18nTComponent as Lt } from "@kong-ui-public/i18n";
7
+ import Bt from "lodash.isequal";
8
+ const Gt = {
9
9
  create: "New Route",
10
10
  copy_id: "Copy ID",
11
11
  copy_json: "Copy JSON",
@@ -14,14 +14,14 @@ const Wt = {
14
14
  clear: "Clear",
15
15
  view: "View Details",
16
16
  loading: "Loading..."
17
- }, Xt = {
17
+ }, jt = {
18
18
  placeholder: {
19
19
  konnect: "Filter by name",
20
20
  exact: "Filter by exact name or ID",
21
21
  kongManager: "Filter by exact name or ID"
22
22
  },
23
23
  no_results: "No results found"
24
- }, zt = {
24
+ }, Wt = {
25
25
  title: "Routes",
26
26
  list: {
27
27
  toolbar_actions: {
@@ -44,17 +44,17 @@ const Wt = {
44
44
  description: "Routes proxy requests to an associated Service."
45
45
  }
46
46
  }
47
- }, Jt = {
47
+ }, Xt = {
48
48
  general: "Routes could not be retrieved",
49
49
  delete: "The route could not be deleted at this time.",
50
50
  copy: "Failed to copy to clipboard",
51
51
  services: {
52
52
  fetch: "Could not fetch available services"
53
53
  }
54
- }, Qt = {
54
+ }, zt = {
55
55
  success: "Copied {val} to clipboard",
56
56
  success_brief: "Successfully copied to clipboard"
57
- }, Yt = {
57
+ }, Jt = {
58
58
  protocols: {
59
59
  grpc: "GRPC",
60
60
  grpcs: "GRPCS",
@@ -253,84 +253,84 @@ const Wt = {
253
253
  test_link: "Test with Router Playground",
254
254
  supported_protocols_hint: "Currently only supports the following protocols: {protocols}"
255
255
  }
256
- }, Zt = {
257
- actions: Wt,
258
- search: Xt,
259
- routes: zt,
256
+ }, Qt = {
257
+ actions: Gt,
258
+ search: jt,
259
+ routes: Wt,
260
260
  delete: {
261
261
  title: "Delete a Route",
262
262
  description: "Deleting this route will also remove any associated plugins. This action cannot be reversed."
263
263
  },
264
- errors: Jt,
265
- copy: Qt,
266
- form: Yt
264
+ errors: Xt,
265
+ copy: zt,
266
+ form: Jt
267
267
  };
268
- function pt() {
269
- const r = Bt("en-us", Zt);
268
+ function ct() {
269
+ const r = qt("en-us", Qt);
270
270
  return {
271
271
  i18n: r,
272
- i18nT: Gt(r)
272
+ i18nT: Lt(r)
273
273
  // Translation component <i18n-t>
274
274
  };
275
275
  }
276
- const ie = {
277
- useI18n: pt
278
- }, te = "/v2/control-planes/{controlPlaneId}/core-entities", oe = "/{workspace}", Ie = {
276
+ const re = {
277
+ useI18n: ct
278
+ }, ee = "/v2/control-planes/{controlPlaneId}/core-entities", te = "/{workspace}", _e = {
279
279
  list: {
280
280
  konnect: {
281
- all: `${te}/routes`,
282
- forGatewayService: `${te}/services/{serviceId}/routes`
281
+ all: `${ee}/routes`,
282
+ forGatewayService: `${ee}/services/{serviceId}/routes`
283
283
  },
284
284
  kongManager: {
285
- all: `${oe}/routes`,
286
- forGatewayService: `${oe}/services/{serviceId}/routes`
285
+ all: `${te}/routes`,
286
+ forGatewayService: `${te}/services/{serviceId}/routes`
287
287
  }
288
288
  },
289
289
  form: {
290
290
  konnect: {
291
- services: `${te}/services`,
291
+ services: `${ee}/services`,
292
292
  create: {
293
- all: `${te}/routes`,
294
- forGatewayService: `${te}/services/{serviceId}/routes`
293
+ all: `${ee}/routes`,
294
+ forGatewayService: `${ee}/services/{serviceId}/routes`
295
295
  },
296
296
  fetch: {
297
- all: `${te}/routes/{id}`,
298
- forGatewayService: `${te}/services/{serviceId}/routes/{id}`
297
+ all: `${ee}/routes/{id}`,
298
+ forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
299
299
  },
300
300
  edit: {
301
- all: `${te}/routes/{id}`,
302
- forGatewayService: `${te}/services/{serviceId}/routes/{id}`
301
+ all: `${ee}/routes/{id}`,
302
+ forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
303
303
  }
304
304
  },
305
305
  kongManager: {
306
- services: `${oe}/services`,
306
+ services: `${te}/services`,
307
307
  create: {
308
- all: `${oe}/routes`,
309
- forGatewayService: `${oe}/services/{serviceId}/routes`
308
+ all: `${te}/routes`,
309
+ forGatewayService: `${te}/services/{serviceId}/routes`
310
310
  },
311
311
  fetch: {
312
- all: `${oe}/routes/{id}`,
313
- forGatewayService: `${oe}/services/{serviceId}/routes/{id}`
312
+ all: `${te}/routes/{id}`,
313
+ forGatewayService: `${te}/services/{serviceId}/routes/{id}`
314
314
  },
315
315
  edit: {
316
- all: `${oe}/routes/{id}`,
317
- forGatewayService: `${oe}/services/{serviceId}/routes/{id}`
316
+ all: `${te}/routes/{id}`,
317
+ forGatewayService: `${te}/services/{serviceId}/routes/{id}`
318
318
  }
319
319
  }
320
320
  },
321
321
  item: {
322
322
  konnect: {
323
+ getService: `${ee}/services/{serviceId}`,
324
+ all: `${ee}/routes/{id}`,
325
+ forGatewayService: `${ee}/services/{serviceId}/routes/{id}`
326
+ },
327
+ kongManager: {
323
328
  getService: `${te}/services/{serviceId}`,
324
329
  all: `${te}/routes/{id}`,
325
330
  forGatewayService: `${te}/services/{serviceId}/routes/{id}`
326
- },
327
- kongManager: {
328
- getService: `${oe}/services/{serviceId}`,
329
- all: `${oe}/routes/{id}`,
330
- forGatewayService: `${oe}/services/{serviceId}/routes/{id}`
331
331
  }
332
332
  }
333
- }, eo = { class: "kong-ui-entities-routes-list" }, to = { key: 1 }, oo = { key: 1 }, so = { key: 1 }, lo = { class: "route-list-cell-expression" }, ro = /* @__PURE__ */ J({
333
+ }, Yt = { class: "kong-ui-entities-routes-list" }, Zt = { key: 1 }, eo = { key: 1 }, to = { key: 1 }, oo = { class: "route-list-cell-expression" }, so = /* @__PURE__ */ J({
334
334
  __name: "RouteList",
335
335
  props: {
336
336
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -392,8 +392,8 @@ const ie = {
392
392
  },
393
393
  emits: ["error", "copy:success", "copy:error", "delete:success"],
394
394
  setup(r, { emit: N }) {
395
- var Ce;
396
- const T = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = ie.useI18n(), m = at(), { axiosInstance: S } = Ge((Ce = a.config) == null ? void 0 : Ce.axiosRequestConfig), R = D(1), E = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), L = {
395
+ var W;
396
+ const I = N, a = r, { i18n: { t: f, formatUnixTimeStamp: i } } = re.useI18n(), m = it(), { axiosInstance: S } = Be((W = a.config) == null ? void 0 : W.axiosRequestConfig), R = P(1), E = M(() => a.config.app !== "kongManager" || !!a.config.disableSorting), q = {
397
397
  // the Name column is non-hidable
398
398
  name: { label: f("routes.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
399
399
  protocols: { label: f("routes.list.table_headers.protocols"), searchable: !0 },
@@ -412,186 +412,183 @@ const ie = {
412
412
  columnVisibility: {
413
413
  created_at: !1
414
414
  }
415
- }, u = L, Q = M(() => {
416
- var k, w, K, X;
417
- let b = `${a.config.apiBaseUrl}${Ie.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
418
- return a.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, ((w = a.config) == null ? void 0 : w.serviceId) || "") : a.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (K = a.config) != null && K.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((X = a.config) == null ? void 0 : X.serviceId) || "")), b;
419
- }), se = D(""), O = M(() => {
420
- const b = a.config.app === "konnect" || a.config.isExactMatch;
421
- if (b)
415
+ }, u = q, Q = M(() => {
416
+ var k, $, L, B;
417
+ let _ = `${a.config.apiBaseUrl}${_e.list[a.config.app][a.config.serviceId ? "forGatewayService" : "all"]}`;
418
+ return a.config.app === "konnect" ? _ = _.replace(/{controlPlaneId}/gi, ((k = a.config) == null ? void 0 : k.controlPlaneId) || "").replace(/{serviceId}/gi, (($ = a.config) == null ? void 0 : $.serviceId) || "") : a.config.app === "kongManager" && (_ = _.replace(/\/{workspace}/gi, (L = a.config) != null && L.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, ((B = a.config) == null ? void 0 : B.serviceId) || "")), _;
419
+ }), oe = P(""), O = M(() => {
420
+ const _ = a.config.app === "konnect" || a.config.isExactMatch;
421
+ if (_)
422
422
  return {
423
- isExactMatch: b,
423
+ isExactMatch: _,
424
424
  // force exact placeholder if `props.config.isExactMatch` is true
425
425
  placeholder: f(`search.placeholder.${a.config.isExactMatch ? "exact" : a.config.app}`)
426
426
  };
427
- const { name: k, protocols: w, hosts: K, methods: X, paths: le, expression: ge } = L, I = {
427
+ const { name: k, protocols: $, hosts: L, methods: B, paths: se, expression: ye } = q, T = {
428
428
  name: k,
429
- protocols: w,
430
- hosts: K,
431
- methods: X,
432
- paths: le,
433
- ...a.hasExpressionColumn && { expression: ge }
429
+ protocols: $,
430
+ hosts: L,
431
+ methods: B,
432
+ paths: se,
433
+ ...a.hasExpressionColumn && { expression: ye }
434
434
  };
435
435
  return {
436
- isExactMatch: b,
437
- fields: I,
436
+ isExactMatch: _,
437
+ fields: T,
438
438
  schema: a.config.filterSchema
439
439
  };
440
- }), { fetcher: U, fetcherState: Y } = Nt(a.config, Q.value), G = (b) => b.headerKey === "expression" ? {
440
+ }), { fetcher: D, fetcherState: Y } = Ct(a.config, Q.value), j = (_) => _.headerKey === "expression" ? {
441
441
  style: {
442
442
  maxWidth: "250px",
443
443
  overflowX: "hidden",
444
444
  textOverflow: "ellipsis"
445
445
  }
446
446
  } : {}, e = () => {
447
- se.value = "";
447
+ oe.value = "";
448
448
  }, Z = () => {
449
449
  R.value++;
450
- }, ne = D(null), ye = D(!1), q = (b, k) => {
451
- const w = b.id;
452
- if (!k(w)) {
453
- T("copy:error", {
454
- entity: b,
450
+ }, ae = P(null), Ee = (_, k) => {
451
+ const $ = _.id;
452
+ if (!k($)) {
453
+ I("copy:error", {
454
+ entity: _,
455
455
  field: "id",
456
456
  message: f("errors.copy")
457
457
  });
458
458
  return;
459
459
  }
460
- T("copy:success", {
461
- entity: b,
460
+ I("copy:success", {
461
+ entity: _,
462
462
  field: "id",
463
- message: f("copy.success", { val: w })
463
+ message: f("copy.success", { val: $ })
464
464
  });
465
- }, $e = (b, k) => {
466
- const w = JSON.stringify(b);
467
- if (!k(w)) {
468
- T("copy:error", {
469
- entity: b,
465
+ }, K = (_, k) => {
466
+ const $ = JSON.stringify(_);
467
+ if (!k($)) {
468
+ I("copy:error", {
469
+ entity: _,
470
470
  message: f("errors.copy")
471
471
  });
472
472
  return;
473
473
  }
474
- T("copy:success", {
475
- entity: b,
474
+ I("copy:success", {
475
+ entity: _,
476
476
  message: f("copy.success_brief")
477
477
  });
478
- }, He = async (b) => {
479
- var w;
480
- await ((w = a.canRetrieve) == null ? void 0 : w.call(a, b)) && m.push(a.config.getViewRoute(b.id));
481
- }, De = (b) => ({
478
+ }, Ne = async (_) => {
479
+ var $;
480
+ await (($ = a.canRetrieve) == null ? void 0 : $.call(a, _)) && m.push(a.config.getViewRoute(_.id));
481
+ }, we = (_) => ({
482
482
  label: f("actions.view"),
483
- to: a.config.getViewRoute(b)
484
- }), Ae = (b) => ({
483
+ to: a.config.getViewRoute(_)
484
+ }), $e = (_) => ({
485
485
  label: f("actions.edit"),
486
- to: a.config.getEditRoute(b)
487
- }), ee = D(void 0), pe = D(!1), _e = D(!1), Re = D(""), Ue = wt(a.config, Q.value), Pe = (b) => {
488
- ee.value = b, pe.value = !0;
489
- }, Fe = () => {
490
- pe.value = !1;
491
- }, Me = async () => {
492
- var b, k, w;
493
- if ((b = ee.value) != null && b.id) {
494
- _e.value = !0;
486
+ to: a.config.getEditRoute(_)
487
+ }), ne = P(void 0), ce = P(!1), pe = P(!1), Ve = P(""), Ae = Ot(a.config, Q.value), He = (_) => {
488
+ ne.value = _, ce.value = !0;
489
+ }, De = () => {
490
+ ce.value = !1;
491
+ }, Ue = async () => {
492
+ var _, k, $;
493
+ if ((_ = ne.value) != null && _.id) {
494
+ pe.value = !0;
495
495
  try {
496
- await S.delete(Ue(ee.value.id)), _e.value = !1, pe.value = !1, R.value++, T("delete:success", ee.value);
497
- } catch (K) {
498
- Re.value = ((w = (k = K.response) == null ? void 0 : k.data) == null ? void 0 : w.message) || K.message || f("errors.delete"), T("error", K);
496
+ await S.delete(Ae(ne.value.id)), pe.value = !1, ce.value = !1, R.value++, I("delete:success", ne.value);
497
+ } catch (L) {
498
+ Ve.value = (($ = (k = L.response) == null ? void 0 : k.data) == null ? void 0 : $.message) || L.message || f("errors.delete"), I("error", L);
499
499
  } finally {
500
- _e.value = !1;
500
+ pe.value = !1;
501
501
  }
502
502
  }
503
- }, j = D(!1);
504
- B(Y, (b) => {
505
- var k, w, K, X;
506
- if (Array.isArray((k = b == null ? void 0 : b.response) == null ? void 0 : k.data) && (j.value = b.response.data.length > 0), b.status === Ze.NoRecords ? ye.value = !0 : ye.value = !1, b.status === Ze.Error) {
507
- ne.value = {
503
+ };
504
+ G(Y, (_) => {
505
+ var k, $, L;
506
+ if (_.status === kt.Error) {
507
+ ae.value = {
508
508
  title: f("errors.general")
509
- }, (X = (K = (w = b.error) == null ? void 0 : w.response) == null ? void 0 : K.data) != null && X.message && (ne.value.message = b.error.response.data.message), T("error", b.error);
509
+ }, (L = ($ = (k = _.error) == null ? void 0 : k.response) == null ? void 0 : $.data) != null && L.message && (ae.value.message = _.error.response.data.message), I("error", _.error);
510
510
  return;
511
511
  }
512
- ne.value = null;
512
+ ae.value = null;
513
513
  });
514
- const de = D({
514
+ const Te = P({
515
515
  ctaPath: a.config.createRoute,
516
516
  ctaText: void 0,
517
517
  message: `${f("routes.list.empty_state.description")}${a.config.additionMessageForEmptyState ? ` ${a.config.additionMessageForEmptyState}` : ""}`,
518
518
  title: f("routes.title")
519
519
  });
520
- return st(async () => {
521
- await a.canCreate() && (de.value.title = f("routes.list.empty_state.title"), de.value.ctaText = f("actions.create"));
522
- }), (b, k) => {
523
- const w = C("KButton"), K = C("KBadge"), X = C("KTruncate"), le = C("KDropdownItem"), ge = C("KClipboardProvider");
524
- return p(), _("div", eo, [
525
- c(o($t), {
520
+ return ot(async () => {
521
+ await a.canCreate() && (Te.value.title = f("routes.list.empty_state.title"), Te.value.ctaText = f("actions.create"));
522
+ }), (_, k) => {
523
+ const $ = C("KButton"), L = C("KBadge"), B = C("KTruncate"), se = C("KDropdownItem"), ye = C("KClipboardProvider");
524
+ return p(), b("div", Yt, [
525
+ c(o(Nt), {
526
526
  "cache-identifier": r.cacheIdentifier,
527
- "cell-attributes": G,
527
+ "cell-attributes": j,
528
528
  "default-table-preferences": h,
529
529
  "disable-sorting": E.value,
530
- "empty-state-options": de.value,
530
+ "empty-state-options": Te.value,
531
531
  "enable-entity-actions": "",
532
- "error-message": ne.value,
533
- fetcher: o(U),
532
+ "error-message": ae.value,
533
+ fetcher: o(D),
534
534
  "fetcher-cache-key": R.value,
535
- "hide-toolbar": ye.value,
536
535
  "pagination-type": "offset",
537
536
  "preferences-storage-key": "kong-ui-entities-routes-list",
538
- query: se.value,
537
+ query: oe.value,
539
538
  "table-headers": o(u),
540
539
  title: r.title,
541
540
  "title-tag": r.titleTag,
542
541
  onClearSearchInput: e,
543
- "onClick:row": k[5] || (k[5] = (I) => He(I)),
542
+ "onClick:row": k[5] || (k[5] = (T) => Ne(T)),
544
543
  onSort: Z
545
544
  }, {
546
545
  "toolbar-filter": n(() => [
547
- c(o(Ht), {
548
- modelValue: se.value,
549
- "onUpdate:modelValue": k[0] || (k[0] = (I) => se.value = I),
546
+ c(o(wt), {
547
+ modelValue: oe.value,
548
+ "onUpdate:modelValue": k[0] || (k[0] = (T) => oe.value = T),
550
549
  config: O.value
551
550
  }, null, 8, ["modelValue", "config"])
552
551
  ]),
553
552
  "toolbar-button": n(() => [
554
- (p(), A(Rt, {
553
+ (p(), A(It, {
555
554
  disabled: !r.useActionOutside,
556
555
  to: "#kong-ui-app-page-header-action-button"
557
556
  }, [
558
- c(o(Ne), {
557
+ c(o(Oe), {
559
558
  "auth-function": () => r.canCreate()
560
559
  }, {
561
560
  default: n(() => [
562
- Et(c(w, {
561
+ c($, {
563
562
  appearance: "primary",
564
563
  "data-testid": "toolbar-add-route",
565
564
  size: r.useActionOutside ? "medium" : "large",
566
565
  to: r.config.createRoute
567
566
  }, {
568
567
  default: n(() => [
569
- c(o(dt)),
568
+ c(o(nt)),
570
569
  F(" " + g(o(f)("routes.list.toolbar_actions.new_route")), 1)
571
570
  ]),
572
571
  _: 1
573
- }, 8, ["size", "to"]), [
574
- [Vt, j.value]
575
- ])
572
+ }, 8, ["size", "to"])
576
573
  ]),
577
574
  _: 1
578
575
  }, 8, ["auth-function"])
579
576
  ], 8, ["disabled"]))
580
577
  ]),
581
- name: n(({ rowValue: I }) => [
582
- y("b", null, g(I ?? "-"), 1)
578
+ name: n(({ rowValue: T }) => [
579
+ y("b", null, g(T ?? "-"), 1)
583
580
  ]),
584
- protocols: n(({ rowValue: I }) => [
585
- c(X, null, {
581
+ protocols: n(({ rowValue: T }) => [
582
+ c(B, null, {
586
583
  default: n(() => [
587
- (p(!0), _(x, null, W(I, (P) => (p(), A(K, {
588
- key: P,
584
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
585
+ key: U,
589
586
  appearance: "neutral",
590
- onClick: k[1] || (k[1] = ke(() => {
587
+ onClick: k[1] || (k[1] = Ce(() => {
591
588
  }, ["stop"]))
592
589
  }, {
593
590
  default: n(() => [
594
- F(g(P), 1)
591
+ F(g(U), 1)
595
592
  ]),
596
593
  _: 2
597
594
  }, 1024))), 128))
@@ -599,82 +596,82 @@ const ie = {
599
596
  _: 2
600
597
  }, 1024)
601
598
  ]),
602
- hosts: n(({ rowValue: I }) => [
603
- (I == null ? void 0 : I.length) > 0 ? (p(), A(X, { key: 0 }, {
599
+ hosts: n(({ rowValue: T }) => [
600
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
604
601
  default: n(() => [
605
- (p(!0), _(x, null, W(I, (P) => (p(), A(K, {
606
- key: P,
602
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
603
+ key: U,
607
604
  appearance: "neutral",
608
- tooltip: P,
605
+ tooltip: U,
609
606
  "truncation-tooltip": "",
610
- onClick: k[2] || (k[2] = ke(() => {
607
+ onClick: k[2] || (k[2] = Ce(() => {
611
608
  }, ["stop"]))
612
609
  }, {
613
610
  default: n(() => [
614
- F(g(P), 1)
611
+ F(g(U), 1)
615
612
  ]),
616
613
  _: 2
617
614
  }, 1032, ["tooltip"]))), 128))
618
615
  ]),
619
616
  _: 2
620
- }, 1024)) : (p(), _("span", to, "-"))
617
+ }, 1024)) : (p(), b("span", Zt, "-"))
621
618
  ]),
622
- methods: n(({ rowValue: I }) => [
623
- (I == null ? void 0 : I.length) > 0 ? (p(), A(X, { key: 0 }, {
619
+ methods: n(({ rowValue: T }) => [
620
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
624
621
  default: n(() => [
625
- (p(!0), _(x, null, W(I, (P) => (p(), A(K, {
626
- key: P,
627
- appearance: Object.values(o(nt)).includes(P.toLowerCase()) ? P.toLowerCase() : "custom",
628
- onClick: k[3] || (k[3] = ke(() => {
622
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
623
+ key: U,
624
+ appearance: Object.values(o(at)).includes(U.toLowerCase()) ? U.toLowerCase() : "custom",
625
+ onClick: k[3] || (k[3] = Ce(() => {
629
626
  }, ["stop"]))
630
627
  }, {
631
628
  default: n(() => [
632
- F(g(P), 1)
629
+ F(g(U), 1)
633
630
  ]),
634
631
  _: 2
635
632
  }, 1032, ["appearance"]))), 128))
636
633
  ]),
637
634
  _: 2
638
- }, 1024)) : (p(), _("span", oo, "-"))
635
+ }, 1024)) : (p(), b("span", eo, "-"))
639
636
  ]),
640
- paths: n(({ rowValue: I }) => [
641
- (I == null ? void 0 : I.length) > 0 ? (p(), A(X, { key: 0 }, {
637
+ paths: n(({ rowValue: T }) => [
638
+ (T == null ? void 0 : T.length) > 0 ? (p(), A(B, { key: 0 }, {
642
639
  default: n(() => [
643
- (p(!0), _(x, null, W(I, (P) => (p(), A(K, {
644
- key: P,
640
+ (p(!0), b(x, null, X(T, (U) => (p(), A(L, {
641
+ key: U,
645
642
  appearance: "neutral",
646
- tooltip: P,
643
+ tooltip: U,
647
644
  "truncation-tooltip": "",
648
- onClick: k[4] || (k[4] = ke(() => {
645
+ onClick: k[4] || (k[4] = Ce(() => {
649
646
  }, ["stop"]))
650
647
  }, {
651
648
  default: n(() => [
652
- F(g(P), 1)
649
+ F(g(U), 1)
653
650
  ]),
654
651
  _: 2
655
652
  }, 1032, ["tooltip"]))), 128))
656
653
  ]),
657
654
  _: 2
658
- }, 1024)) : (p(), _("span", so, "-"))
655
+ }, 1024)) : (p(), b("span", to, "-"))
659
656
  ]),
660
- tags: n(({ rowValue: I }) => [
661
- c(o(Dt), { tags: I }, null, 8, ["tags"])
657
+ tags: n(({ rowValue: T }) => [
658
+ c(o($t), { tags: T }, null, 8, ["tags"])
662
659
  ]),
663
- expression: n(({ rowValue: I }) => [
664
- y("span", lo, g(I || "-"), 1)
660
+ expression: n(({ rowValue: T }) => [
661
+ y("span", oo, g(T || "-"), 1)
665
662
  ]),
666
- created_at: n(({ rowValue: I }) => [
667
- F(g(o(i)(I)), 1)
663
+ created_at: n(({ rowValue: T }) => [
664
+ F(g(o(i)(T)), 1)
668
665
  ]),
669
- updated_at: n(({ row: I, rowValue: P }) => [
670
- F(g(o(i)(P ?? I.created_at)), 1)
666
+ updated_at: n(({ row: T, rowValue: U }) => [
667
+ F(g(o(i)(U ?? T.created_at)), 1)
671
668
  ]),
672
- actions: n(({ row: I }) => [
673
- c(ge, null, {
674
- default: n(({ copyToClipboard: P }) => [
675
- c(le, {
669
+ actions: n(({ row: T }) => [
670
+ c(ye, null, {
671
+ default: n(({ copyToClipboard: U }) => [
672
+ c(se, {
676
673
  "data-testid": "action-entity-copy-id",
677
- onClick: (Oe) => q(I, P)
674
+ onClick: (Pe) => Ee(T, U)
678
675
  }, {
679
676
  default: n(() => [
680
677
  F(g(o(f)("actions.copy_id")), 1)
@@ -684,11 +681,11 @@ const ie = {
684
681
  ]),
685
682
  _: 2
686
683
  }, 1024),
687
- c(ge, null, {
688
- default: n(({ copyToClipboard: P }) => [
689
- c(le, {
684
+ c(ye, null, {
685
+ default: n(({ copyToClipboard: U }) => [
686
+ c(se, {
690
687
  "data-testid": "action-entity-copy-json",
691
- onClick: (Oe) => $e(I, P)
688
+ onClick: (Pe) => K(T, U)
692
689
  }, {
693
690
  default: n(() => [
694
691
  F(g(o(f)("actions.copy_json")), 1)
@@ -698,38 +695,38 @@ const ie = {
698
695
  ]),
699
696
  _: 2
700
697
  }, 1024),
701
- c(o(Ne), {
702
- "auth-function": () => r.canRetrieve(I)
698
+ c(o(Oe), {
699
+ "auth-function": () => r.canRetrieve(T)
703
700
  }, {
704
701
  default: n(() => [
705
- c(le, {
702
+ c(se, {
706
703
  "data-testid": "action-entity-view",
707
704
  "has-divider": "",
708
- item: De(I.id)
705
+ item: we(T.id)
709
706
  }, null, 8, ["item"])
710
707
  ]),
711
708
  _: 2
712
709
  }, 1032, ["auth-function"]),
713
- c(o(Ne), {
714
- "auth-function": () => r.canEdit(I)
710
+ c(o(Oe), {
711
+ "auth-function": () => r.canEdit(T)
715
712
  }, {
716
713
  default: n(() => [
717
- c(le, {
714
+ c(se, {
718
715
  "data-testid": "action-entity-edit",
719
- item: Ae(I.id)
716
+ item: $e(T.id)
720
717
  }, null, 8, ["item"])
721
718
  ]),
722
719
  _: 2
723
720
  }, 1032, ["auth-function"]),
724
- c(o(Ne), {
725
- "auth-function": () => r.canDelete(I)
721
+ c(o(Oe), {
722
+ "auth-function": () => r.canDelete(T)
726
723
  }, {
727
724
  default: n(() => [
728
- c(le, {
725
+ c(se, {
729
726
  danger: "",
730
727
  "data-testid": "action-entity-delete",
731
728
  "has-divider": "",
732
- onClick: (P) => Pe(I)
729
+ onClick: (U) => He(T)
733
730
  }, {
734
731
  default: n(() => [
735
732
  F(g(o(f)("actions.delete")), 1)
@@ -741,29 +738,29 @@ const ie = {
741
738
  }, 1032, ["auth-function"])
742
739
  ]),
743
740
  _: 1
744
- }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "query", "table-headers", "title", "title-tag"]),
745
- c(o(Ut), {
746
- "action-pending": _e.value,
741
+ }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "title", "title-tag"]),
742
+ c(o(Ht), {
743
+ "action-pending": pe.value,
747
744
  description: o(f)("delete.description"),
748
- "entity-name": ee.value && (ee.value.name || ee.value.id),
749
- "entity-type": o(Pt).Route,
750
- error: Re.value,
745
+ "entity-name": ne.value && (ne.value.name || ne.value.id),
746
+ "entity-type": o(Dt).Route,
747
+ error: Ve.value,
751
748
  title: o(f)("delete.title"),
752
- visible: pe.value,
753
- onCancel: Fe,
754
- onProceed: Me
749
+ visible: ce.value,
750
+ onCancel: De,
751
+ onProceed: Ue
755
752
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
756
753
  ]);
757
754
  };
758
755
  }
759
- }), ae = (r, N) => {
760
- const T = r.__vccOpts || r;
756
+ }), ie = (r, N) => {
757
+ const I = r.__vccOpts || r;
761
758
  for (const [a, f] of N)
762
- T[a] = f;
763
- return T;
764
- }, ns = /* @__PURE__ */ ae(ro, [["__scopeId", "data-v-a8022ef4"]]);
765
- var io = /* @__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))(io || {}), $ = /* @__PURE__ */ ((r) => (r.TRADITIONAL = "traditional", r.EXPRESSIONS = "expressions", r))($ || {}), 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 || {}), Te = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR = "error", r.READY = "ready", r))(Te || {});
766
- const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.expressions === !0, ft = "#d60027", ot = "#6c7489", Be = "16px", ao = { class: "routing-rules-entities-controls-container" }, no = /* @__PURE__ */ J({
759
+ I[a] = f;
760
+ return I;
761
+ }, is = /* @__PURE__ */ ie(so, [["__scopeId", "data-v-09caa9e4"]]);
762
+ var lo = /* @__PURE__ */ ((r) => (r.GET = "GET", r.PUT = "PUT", r.POST = "POST", r.PATCH = "PATCH", r.DELETE = "DELETE", r.OPTIONS = "OPTIONS", r.HEAD = "HEAD", r.CONNECT = "CONNECT", r.TRACE = "TRACE", r.CUSTOM = "CUSTOM", r))(lo || {}), w = /* @__PURE__ */ ((r) => (r.TRADITIONAL = "traditional", r.EXPRESSIONS = "expressions", r))(w || {}), l = /* @__PURE__ */ ((r) => (r.PATHS = "paths", r.SNIS = "snis", r.HOSTS = "hosts", r.METHODS = "methods", r.HEADERS = "headers", r.SOURCES = "sources", r.DESTINATIONS = "destinations", r.CUSTOM_METHOD = "custom-method", r))(l || {}), be = /* @__PURE__ */ ((r) => (r.LOADING = "loading", r.ERROR = "error", r.READY = "ready", r))(be || {});
763
+ const de = (r) => r.routeFlavors.traditional === !0, ke = (r) => r.routeFlavors.expressions === !0, pt = "#d60027", tt = "#6c7489", Le = "16px", ro = { class: "routing-rules-entities-controls-container" }, io = /* @__PURE__ */ J({
767
764
  __name: "RoutingRulesEntitiesControls",
768
765
  props: {
769
766
  routingRulesEntity: {
@@ -777,18 +774,18 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
777
774
  },
778
775
  emits: ["remove", "add"],
779
776
  setup(r) {
780
- return (N, T) => {
777
+ return (N, I) => {
781
778
  const a = C("KButton");
782
- return p(), _("div", ao, [
779
+ return p(), b("div", ro, [
783
780
  c(a, {
784
781
  appearance: "tertiary",
785
782
  class: "remove-button",
786
783
  "data-testid": `remove-${r.routingRulesEntity}`,
787
784
  icon: "",
788
- onClick: T[0] || (T[0] = (f) => N.$emit("remove"))
785
+ onClick: I[0] || (I[0] = (f) => N.$emit("remove"))
789
786
  }, {
790
787
  default: n(() => [
791
- c(o(ut), { color: o(ft) }, null, 8, ["color"])
788
+ c(o(dt), { color: o(pt) }, null, 8, ["color"])
792
789
  ]),
793
790
  _: 1
794
791
  }, 8, ["data-testid"]),
@@ -797,17 +794,17 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
797
794
  "data-testid": `add-${r.routingRulesEntity}`,
798
795
  disabled: r.isAddDisabled,
799
796
  icon: "",
800
- onClick: T[1] || (T[1] = (f) => N.$emit("add"))
797
+ onClick: I[1] || (I[1] = (f) => N.$emit("add"))
801
798
  }, {
802
799
  default: n(() => [
803
- c(o(dt))
800
+ c(o(nt))
804
801
  ]),
805
802
  _: 1
806
803
  }, 8, ["data-testid", "disabled"])
807
804
  ]);
808
805
  };
809
806
  }
810
- }), be = /* @__PURE__ */ ae(no, [["__scopeId", "data-v-e024298d"]]), uo = { class: "routing-rule-container" }, co = /* @__PURE__ */ J({
807
+ }), Se = /* @__PURE__ */ ie(io, [["__scopeId", "data-v-e024298d"]]), ao = { class: "routing-rule-container" }, no = /* @__PURE__ */ J({
811
808
  __name: "RouteFormDestinationsFields",
812
809
  props: {
813
810
  modelValue: {
@@ -817,14 +814,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
817
814
  },
818
815
  emits: ["add", "remove", "update:modelValue"],
819
816
  setup(r, { emit: N }) {
820
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
821
- return B(T.modelValue, (m) => {
817
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
818
+ return G(I.modelValue, (m) => {
822
819
  i.value = [...m];
823
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
820
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
824
821
  a("update:modelValue", m);
825
822
  }, { deep: !0 }), (m, S) => {
826
823
  const R = C("KLabel"), E = C("KInput");
827
- return p(), _("div", uo, [
824
+ return p(), b("div", ao, [
828
825
  S[1] || (S[1] = y("hr", null, null, -1)),
829
826
  c(R, {
830
827
  info: o(f)("form.fields.destinations.tooltip")
@@ -836,7 +833,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
836
833
  }, 8, ["info"]),
837
834
  c(ve, { name: "appear" }, {
838
835
  default: n(() => [
839
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
836
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
840
837
  key: h,
841
838
  class: "routing-rule-input"
842
839
  }, [
@@ -857,7 +854,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
857
854
  placeholder: o(f)("form.fields.destinations.port.placeholder"),
858
855
  type: "number"
859
856
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
860
- c(be, {
857
+ c(Se, {
861
858
  "is-add-disabled": h !== i.value.length - 1,
862
859
  "routing-rules-entity": o(l).DESTINATIONS,
863
860
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -870,7 +867,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
870
867
  ]);
871
868
  };
872
869
  }
873
- }), po = /* @__PURE__ */ ae(co, [["__scopeId", "data-v-d41b39fd"]]), fo = { class: "routing-rule-container" }, mo = /* @__PURE__ */ J({
870
+ }), uo = /* @__PURE__ */ ie(no, [["__scopeId", "data-v-d41b39fd"]]), co = { class: "routing-rule-container" }, po = /* @__PURE__ */ J({
874
871
  __name: "RouteFormHeadersFields",
875
872
  props: {
876
873
  modelValue: {
@@ -880,14 +877,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
880
877
  },
881
878
  emits: ["add", "remove", "update:modelValue"],
882
879
  setup(r, { emit: N }) {
883
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
884
- return B(T.modelValue, (m) => {
880
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
881
+ return G(I.modelValue, (m) => {
885
882
  i.value = [...m];
886
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
883
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
887
884
  a("update:modelValue", m);
888
885
  }, { deep: !0 }), (m, S) => {
889
886
  const R = C("KLabel"), E = C("KInput");
890
- return p(), _("div", fo, [
887
+ return p(), b("div", co, [
891
888
  S[1] || (S[1] = y("hr", null, null, -1)),
892
889
  c(R, {
893
890
  info: o(f)("form.fields.headers.tooltip")
@@ -899,7 +896,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
899
896
  }, 8, ["info"]),
900
897
  c(ve, { name: "appear" }, {
901
898
  default: n(() => [
902
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
899
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
903
900
  key: h,
904
901
  class: "routing-rule-input"
905
902
  }, [
@@ -917,7 +914,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
917
914
  "data-testid": `route-form-headers-values-input-${h + 1}`,
918
915
  placeholder: o(f)("form.fields.headers.values.placeholder")
919
916
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
920
- c(be, {
917
+ c(Se, {
921
918
  "is-add-disabled": h !== i.value.length - 1,
922
919
  "routing-rules-entity": o(l).HEADERS,
923
920
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -930,7 +927,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
930
927
  ]);
931
928
  };
932
929
  }
933
- }), ho = /* @__PURE__ */ ae(mo, [["__scopeId", "data-v-ca0bb10b"]]), vo = { class: "routing-rule-container" }, go = /* @__PURE__ */ J({
930
+ }), fo = /* @__PURE__ */ ie(po, [["__scopeId", "data-v-ca0bb10b"]]), mo = { class: "routing-rule-container" }, ho = /* @__PURE__ */ J({
934
931
  __name: "RouteFormHostsFields",
935
932
  props: {
936
933
  modelValue: {
@@ -940,14 +937,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
940
937
  },
941
938
  emits: ["add", "remove", "update:modelValue"],
942
939
  setup(r, { emit: N }) {
943
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
944
- return B(T.modelValue, (m) => {
940
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
941
+ return G(I.modelValue, (m) => {
945
942
  i.value = [...m];
946
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
943
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
947
944
  a("update:modelValue", m);
948
945
  }, { deep: !0 }), (m, S) => {
949
946
  const R = C("KLabel"), E = C("KInput");
950
- return p(), _("div", vo, [
947
+ return p(), b("div", mo, [
951
948
  S[1] || (S[1] = y("hr", null, null, -1)),
952
949
  c(R, {
953
950
  info: o(f)("form.fields.hosts.tooltip")
@@ -959,7 +956,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
959
956
  }, 8, ["info"]),
960
957
  c(ve, { name: "appear" }, {
961
958
  default: n(() => [
962
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
959
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
963
960
  key: h,
964
961
  class: "routing-rule-input"
965
962
  }, [
@@ -970,7 +967,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
970
967
  "data-testid": `route-form-hosts-input-${h + 1}`,
971
968
  placeholder: o(f)("form.fields.hosts.placeholder")
972
969
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
973
- c(be, {
970
+ c(Se, {
974
971
  "is-add-disabled": h !== i.value.length - 1,
975
972
  "routing-rules-entity": o(l).HOSTS,
976
973
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -983,10 +980,10 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
983
980
  ]);
984
981
  };
985
982
  }
986
- }), So = /* @__PURE__ */ ae(go, [["__scopeId", "data-v-88d16377"]]), bo = { class: "routing-rule-container" }, yo = { class: "routing-rule-input" }, _o = { class: "methods-input-container" }, To = {
983
+ }), vo = /* @__PURE__ */ ie(ho, [["__scopeId", "data-v-88d16377"]]), go = { class: "routing-rule-container" }, So = { class: "routing-rule-input" }, yo = { class: "methods-input-container" }, bo = {
987
984
  key: 0,
988
985
  class: "routing-rule-container"
989
- }, Io = /* @__PURE__ */ J({
986
+ }, _o = /* @__PURE__ */ J({
990
987
  __name: "RouteFormMethodsFields",
991
988
  props: {
992
989
  modelValue: {
@@ -1000,38 +997,38 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1000
997
  },
1001
998
  emits: ["add", "remove", "update:modelValue", "update-custom-methods"],
1002
999
  setup(r, { emit: N }) {
1003
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D({}), m = D([...T.customMethods]), S = (R) => {
1000
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P({}), m = P([...I.customMethods]), S = (R) => {
1004
1001
  m.value.length === 1 ? m.value[0] = "" : m.value.splice(R, 1);
1005
1002
  };
1006
- return B(T.modelValue, (R) => {
1003
+ return G(I.modelValue, (R) => {
1007
1004
  i.value = { ...R };
1008
- }, { immediate: !0, deep: !0 }), B(i, (R) => {
1005
+ }, { immediate: !0, deep: !0 }), G(i, (R) => {
1009
1006
  a("update:modelValue", R);
1010
- }, { deep: !0 }), B(m, (R) => {
1007
+ }, { deep: !0 }), G(m, (R) => {
1011
1008
  a("update-custom-methods", R);
1012
1009
  }, { deep: !0 }), (R, E) => {
1013
- const L = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), se = C("KInput");
1014
- return p(), _("div", bo, [
1010
+ const q = C("KLabel"), h = C("KInputSwitch"), u = C("KBadge"), Q = C("KButton"), oe = C("KInput");
1011
+ return p(), b("div", go, [
1015
1012
  E[2] || (E[2] = y("hr", null, null, -1)),
1016
- c(L, null, {
1013
+ c(q, null, {
1017
1014
  default: n(() => [
1018
1015
  F(g(o(f)("form.fields.methods.label")), 1)
1019
1016
  ]),
1020
1017
  _: 1
1021
1018
  }),
1022
- y("div", yo, [
1023
- y("div", _o, [
1024
- (p(!0), _(x, null, W(Object.keys(i.value), (O) => (p(), _("div", {
1019
+ y("div", So, [
1020
+ y("div", yo, [
1021
+ (p(!0), b(x, null, X(Object.keys(i.value), (O) => (p(), b("div", {
1025
1022
  key: O,
1026
1023
  class: "methods-input"
1027
1024
  }, [
1028
1025
  c(h, {
1029
1026
  modelValue: i.value[O],
1030
- "onUpdate:modelValue": (U) => i.value[O] = U,
1027
+ "onUpdate:modelValue": (D) => i.value[O] = D,
1031
1028
  "data-testid": `${O.toLowerCase()}-method-toggle`
1032
1029
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid"]),
1033
1030
  c(u, {
1034
- appearance: Object.values(o(nt)).includes(O.toLowerCase()) ? O.toLowerCase() : "custom"
1031
+ appearance: Object.values(o(at)).includes(O.toLowerCase()) ? O.toLowerCase() : "custom"
1035
1032
  }, {
1036
1033
  default: n(() => [
1037
1034
  F(g(O.toLowerCase()), 1)
@@ -1048,13 +1045,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1048
1045
  onClick: E[0] || (E[0] = (O) => R.$emit("remove"))
1049
1046
  }, {
1050
1047
  default: n(() => [
1051
- c(o(ut), { color: o(ft) }, null, 8, ["color"])
1048
+ c(o(dt), { color: o(pt) }, null, 8, ["color"])
1052
1049
  ]),
1053
1050
  _: 1
1054
1051
  })
1055
1052
  ]),
1056
- i.value.CUSTOM ? (p(), _("div", To, [
1057
- c(L, {
1053
+ i.value.CUSTOM ? (p(), b("div", bo, [
1054
+ c(q, {
1058
1055
  info: o(f)("form.fields.methods.custom.tooltip")
1059
1056
  }, {
1060
1057
  default: n(() => [
@@ -1064,22 +1061,22 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1064
1061
  }, 8, ["info"]),
1065
1062
  c(ve, { name: "appear" }, {
1066
1063
  default: n(() => [
1067
- (p(!0), _(x, null, W(m.value, (O, U) => (p(), _("div", {
1068
- key: U,
1064
+ (p(!0), b(x, null, X(m.value, (O, D) => (p(), b("div", {
1065
+ key: D,
1069
1066
  class: "routing-rule-input"
1070
1067
  }, [
1071
- c(se, {
1072
- modelValue: m.value[U],
1073
- "onUpdate:modelValue": (Y) => m.value[U] = Y,
1068
+ c(oe, {
1069
+ modelValue: m.value[D],
1070
+ "onUpdate:modelValue": (Y) => m.value[D] = Y,
1074
1071
  modelModifiers: { trim: !0 },
1075
- "data-testid": `route-form-custom-method-input-${U + 1}`,
1072
+ "data-testid": `route-form-custom-method-input-${D + 1}`,
1076
1073
  placeholder: o(f)("form.fields.methods.custom.placeholder")
1077
1074
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1078
- c(be, {
1079
- "is-add-disabled": U !== m.value.length - 1,
1075
+ c(Se, {
1076
+ "is-add-disabled": D !== m.value.length - 1,
1080
1077
  "routing-rules-entity": o(l).CUSTOM_METHOD,
1081
1078
  onAdd: E[1] || (E[1] = (Y) => m.value.push("")),
1082
- onRemove: (Y) => S(U)
1079
+ onRemove: (Y) => S(D)
1083
1080
  }, null, 8, ["is-add-disabled", "routing-rules-entity", "onRemove"])
1084
1081
  ]))), 128))
1085
1082
  ]),
@@ -1089,7 +1086,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1089
1086
  ]);
1090
1087
  };
1091
1088
  }
1092
- }), Ro = /* @__PURE__ */ ae(Io, [["__scopeId", "data-v-c8ae1bc5"]]), Eo = { class: "routing-rule-container" }, Vo = /* @__PURE__ */ J({
1089
+ }), To = /* @__PURE__ */ ie(_o, [["__scopeId", "data-v-c8ae1bc5"]]), Io = { class: "routing-rule-container" }, Ro = /* @__PURE__ */ J({
1093
1090
  __name: "RouteFormPathsFields",
1094
1091
  props: {
1095
1092
  modelValue: {
@@ -1099,14 +1096,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1099
1096
  },
1100
1097
  emits: ["add", "remove", "update:modelValue"],
1101
1098
  setup(r, { emit: N }) {
1102
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
1103
- return B(T.modelValue, (m) => {
1099
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1100
+ return G(I.modelValue, (m) => {
1104
1101
  i.value = [...m];
1105
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
1102
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
1106
1103
  a("update:modelValue", m);
1107
1104
  }, { deep: !0 }), (m, S) => {
1108
1105
  const R = C("KLabel"), E = C("KInput");
1109
- return p(), _("div", Eo, [
1106
+ return p(), b("div", Io, [
1110
1107
  c(R, null, {
1111
1108
  default: n(() => [
1112
1109
  F(g(o(f)("form.fields.paths.label")), 1)
@@ -1115,7 +1112,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1115
1112
  }),
1116
1113
  c(ve, { name: "appear" }, {
1117
1114
  default: n(() => [
1118
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
1115
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1119
1116
  key: h,
1120
1117
  class: "routing-rule-input"
1121
1118
  }, [
@@ -1126,7 +1123,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1126
1123
  "data-testid": `route-form-paths-input-${h + 1}`,
1127
1124
  placeholder: o(f)("form.fields.paths.placeholder")
1128
1125
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1129
- c(be, {
1126
+ c(Se, {
1130
1127
  "is-add-disabled": h !== i.value.length - 1,
1131
1128
  "routing-rules-entity": o(l).PATHS,
1132
1129
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1139,7 +1136,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1139
1136
  ]);
1140
1137
  };
1141
1138
  }
1142
- }), Ao = /* @__PURE__ */ ae(Vo, [["__scopeId", "data-v-bc31ca96"]]), Co = { class: "routing-rule-container" }, Oo = /* @__PURE__ */ J({
1139
+ }), Eo = /* @__PURE__ */ ie(Ro, [["__scopeId", "data-v-bc31ca96"]]), Vo = { class: "routing-rule-container" }, Ao = /* @__PURE__ */ J({
1143
1140
  __name: "RouteFormSnisFields",
1144
1141
  props: {
1145
1142
  modelValue: {
@@ -1149,14 +1146,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1149
1146
  },
1150
1147
  emits: ["add", "remove", "update:modelValue"],
1151
1148
  setup(r, { emit: N }) {
1152
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
1153
- return B(T.modelValue, (m) => {
1149
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1150
+ return G(I.modelValue, (m) => {
1154
1151
  i.value = [...m];
1155
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
1152
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
1156
1153
  a("update:modelValue", m);
1157
1154
  }, { deep: !0 }), (m, S) => {
1158
1155
  const R = C("KLabel"), E = C("KInput");
1159
- return p(), _("div", Co, [
1156
+ return p(), b("div", Vo, [
1160
1157
  S[1] || (S[1] = y("hr", null, null, -1)),
1161
1158
  c(R, {
1162
1159
  info: o(f)("form.fields.snis.tooltip")
@@ -1168,7 +1165,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1168
1165
  }, 8, ["info"]),
1169
1166
  c(ve, { name: "appear" }, {
1170
1167
  default: n(() => [
1171
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
1168
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1172
1169
  key: h,
1173
1170
  class: "routing-rule-input"
1174
1171
  }, [
@@ -1179,7 +1176,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1179
1176
  "data-testid": `route-form-snis-input-${h + 1}`,
1180
1177
  placeholder: o(f)("form.fields.snis.placeholder")
1181
1178
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1182
- c(be, {
1179
+ c(Se, {
1183
1180
  "is-add-disabled": h !== i.value.length - 1,
1184
1181
  "routing-rules-entity": o(l).SNIS,
1185
1182
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1192,7 +1189,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1192
1189
  ]);
1193
1190
  };
1194
1191
  }
1195
- }), ko = /* @__PURE__ */ ae(Oo, [["__scopeId", "data-v-c3679dd9"]]), No = { class: "routing-rule-container" }, wo = /* @__PURE__ */ J({
1192
+ }), Co = /* @__PURE__ */ ie(Ao, [["__scopeId", "data-v-c3679dd9"]]), Oo = { class: "routing-rule-container" }, ko = /* @__PURE__ */ J({
1196
1193
  __name: "RouteFormSourcesFields",
1197
1194
  props: {
1198
1195
  modelValue: {
@@ -1202,14 +1199,14 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1202
1199
  },
1203
1200
  emits: ["add", "remove", "update:modelValue"],
1204
1201
  setup(r, { emit: N }) {
1205
- const T = r, a = N, { i18n: { t: f } } = ie.useI18n(), i = D([]);
1206
- return B(T.modelValue, (m) => {
1202
+ const I = r, a = N, { i18n: { t: f } } = re.useI18n(), i = P([]);
1203
+ return G(I.modelValue, (m) => {
1207
1204
  i.value = [...m];
1208
- }, { immediate: !0, deep: !0 }), B(i, (m) => {
1205
+ }, { immediate: !0, deep: !0 }), G(i, (m) => {
1209
1206
  a("update:modelValue", m);
1210
1207
  }, { deep: !0 }), (m, S) => {
1211
1208
  const R = C("KLabel"), E = C("KInput");
1212
- return p(), _("div", No, [
1209
+ return p(), b("div", Oo, [
1213
1210
  S[1] || (S[1] = y("hr", null, null, -1)),
1214
1211
  c(R, {
1215
1212
  info: o(f)("form.fields.sources.tooltip")
@@ -1221,7 +1218,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1221
1218
  }, 8, ["info"]),
1222
1219
  c(ve, { name: "appear" }, {
1223
1220
  default: n(() => [
1224
- (p(!0), _(x, null, W(i.value, (L, h) => (p(), _("div", {
1221
+ (p(!0), b(x, null, X(i.value, (q, h) => (p(), b("div", {
1225
1222
  key: h,
1226
1223
  class: "routing-rule-input"
1227
1224
  }, [
@@ -1242,7 +1239,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1242
1239
  placeholder: o(f)("form.fields.sources.port.placeholder"),
1243
1240
  type: "number"
1244
1241
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "placeholder"]),
1245
- c(be, {
1242
+ c(Se, {
1246
1243
  "is-add-disabled": h !== i.value.length - 1,
1247
1244
  "routing-rules-entity": o(l).SOURCES,
1248
1245
  onAdd: S[0] || (S[0] = (u) => m.$emit("add")),
@@ -1255,9 +1252,9 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1255
1252
  ]);
1256
1253
  };
1257
1254
  }
1258
- }), $o = /* @__PURE__ */ ae(wo, [["__scopeId", "data-v-50c52494"]]), Ho = /* @__PURE__ */ J({
1255
+ }), No = /* @__PURE__ */ ie(ko, [["__scopeId", "data-v-50c52494"]]), wo = /* @__PURE__ */ J({
1259
1256
  __name: "RouteFormConfigTabs",
1260
- props: /* @__PURE__ */ Le({
1257
+ props: /* @__PURE__ */ qe({
1261
1258
  routeFlavors: {},
1262
1259
  tooltips: {}
1263
1260
  }, {
@@ -1266,13 +1263,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1266
1263
  }),
1267
1264
  emits: ["update:modelValue"],
1268
1265
  setup(r) {
1269
- const N = lt(r, "modelValue"), T = r, { i18n: { t: a } } = pt(), f = M(() => [
1270
- ...T.routeFlavors.traditional ? [{
1271
- hash: `#${$.TRADITIONAL}`,
1266
+ const N = st(r, "modelValue"), I = r, { i18n: { t: a } } = ct(), f = M(() => [
1267
+ ...I.routeFlavors.traditional ? [{
1268
+ hash: `#${w.TRADITIONAL}`,
1272
1269
  title: a("form.flavors.traditional")
1273
1270
  }] : [],
1274
- ...T.routeFlavors.expressions ? [{
1275
- hash: `#${$.EXPRESSIONS}`,
1271
+ ...I.routeFlavors.expressions ? [{
1272
+ hash: `#${w.EXPRESSIONS}`,
1276
1273
  title: a("form.flavors.expressions")
1277
1274
  }] : []
1278
1275
  ]);
@@ -1284,21 +1281,21 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1284
1281
  "onUpdate:modelValue": m[0] || (m[0] = (E) => N.value = E),
1285
1282
  "data-testid": "route-form-config-tabs",
1286
1283
  tabs: f.value
1287
- }, rt({ _: 2 }, [
1284
+ }, lt({ _: 2 }, [
1288
1285
  i.routeFlavors.traditional ? {
1289
- name: `${o($).TRADITIONAL}-anchor`,
1286
+ name: `${o(w).TRADITIONAL}-anchor`,
1290
1287
  fn: n(() => [
1291
1288
  F(g(o(a)("form.flavors.traditional")) + " ", 1),
1292
- i.tooltips && i.tooltips[o($).TRADITIONAL] ? (p(), A(S, {
1289
+ i.tooltips && i.tooltips[o(w).TRADITIONAL] ? (p(), A(S, {
1293
1290
  key: 0,
1294
1291
  class: "route-form-config-tabs-tooltip",
1295
- text: i.tooltips[o($).TRADITIONAL],
1292
+ text: i.tooltips[o(w).TRADITIONAL],
1296
1293
  "tooltip-id": "route-form-config-tabs-tooltip-traditional"
1297
1294
  }, {
1298
1295
  default: n(() => [
1299
1296
  c(o(Ye), {
1300
- color: o(ot),
1301
- size: o(Be),
1297
+ color: o(tt),
1298
+ size: o(Le),
1302
1299
  tabindex: "0"
1303
1300
  }, null, 8, ["color", "size"])
1304
1301
  ]),
@@ -1308,27 +1305,27 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1308
1305
  key: "0"
1309
1306
  } : void 0,
1310
1307
  i.routeFlavors.traditional ? {
1311
- name: o($).TRADITIONAL,
1308
+ name: o(w).TRADITIONAL,
1312
1309
  fn: n(() => [
1313
- ce(i.$slots, "before-content", {}, void 0, !0),
1314
- ce(i.$slots, o($).TRADITIONAL, {}, void 0, !0)
1310
+ ue(i.$slots, "before-content", {}, void 0, !0),
1311
+ ue(i.$slots, o(w).TRADITIONAL, {}, void 0, !0)
1315
1312
  ]),
1316
1313
  key: "1"
1317
1314
  } : void 0,
1318
1315
  i.routeFlavors.expressions ? {
1319
- name: `${o($).EXPRESSIONS}-anchor`,
1316
+ name: `${o(w).EXPRESSIONS}-anchor`,
1320
1317
  fn: n(() => [
1321
1318
  F(g(o(a)("form.flavors.expressions")) + " ", 1),
1322
- i.tooltips && i.tooltips[o($).EXPRESSIONS] ? (p(), A(S, {
1319
+ i.tooltips && i.tooltips[o(w).EXPRESSIONS] ? (p(), A(S, {
1323
1320
  key: 0,
1324
1321
  class: "route-form-config-tabs-tooltip",
1325
- text: i.tooltips[o($).EXPRESSIONS],
1322
+ text: i.tooltips[o(w).EXPRESSIONS],
1326
1323
  "tooltip-id": "route-form-config-tabs-tooltip-expressions"
1327
1324
  }, {
1328
1325
  default: n(() => [
1329
1326
  c(o(Ye), {
1330
- color: o(ot),
1331
- size: o(Be),
1327
+ color: o(tt),
1328
+ size: o(Le),
1332
1329
  tabindex: "0"
1333
1330
  }, null, 8, ["color", "size"])
1334
1331
  ]),
@@ -1338,79 +1335,79 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1338
1335
  key: "2"
1339
1336
  } : void 0,
1340
1337
  i.routeFlavors.expressions ? {
1341
- name: o($).EXPRESSIONS,
1338
+ name: o(w).EXPRESSIONS,
1342
1339
  fn: n(() => [
1343
- ce(i.$slots, "before-content", {}, void 0, !0),
1344
- ce(i.$slots, o($).EXPRESSIONS, {}, void 0, !0)
1340
+ ue(i.$slots, "before-content", {}, void 0, !0),
1341
+ ue(i.$slots, o(w).EXPRESSIONS, {}, void 0, !0)
1345
1342
  ]),
1346
1343
  key: "3"
1347
1344
  } : void 0
1348
- ]), 1032, ["modelValue", "tabs"])) : (p(), _(x, { key: 1 }, [
1349
- ce(i.$slots, "before-content", {}, void 0, !0),
1350
- i.routeFlavors.traditional ? ce(i.$slots, o($).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? ce(i.$slots, o($).EXPRESSIONS, { key: 1 }, void 0, !0) : H("", !0)
1345
+ ]), 1032, ["modelValue", "tabs"])) : (p(), b(x, { key: 1 }, [
1346
+ ue(i.$slots, "before-content", {}, void 0, !0),
1347
+ i.routeFlavors.traditional ? ue(i.$slots, o(w).TRADITIONAL, { key: 0 }, void 0, !0) : i.routeFlavors.expressions ? ue(i.$slots, o(w).EXPRESSIONS, { key: 1 }, void 0, !0) : H("", !0)
1351
1348
  ], 64));
1352
1349
  };
1353
1350
  }
1354
- }), Do = /* @__PURE__ */ ae(Ho, [["__scopeId", "data-v-f1c7a92f"]]), Uo = /* @__PURE__ */ J({
1351
+ }), $o = /* @__PURE__ */ ie(wo, [["__scopeId", "data-v-f1c7a92f"]]), Ho = /* @__PURE__ */ J({
1355
1352
  __name: "RouteFormExpressionsEditorLoader",
1356
- props: /* @__PURE__ */ Le({
1353
+ props: /* @__PURE__ */ qe({
1357
1354
  protocol: {},
1358
1355
  showExpressionsModalEntry: { type: Boolean }
1359
1356
  }, {
1360
1357
  modelValue: { required: !0 },
1361
1358
  modelModifiers: {}
1362
1359
  }),
1363
- emits: /* @__PURE__ */ Le(["notify"], ["update:modelValue"]),
1360
+ emits: /* @__PURE__ */ qe(["notify"], ["update:modelValue"]),
1364
1361
  setup(r, { emit: N }) {
1365
- const { i18n: { t: T } } = ie.useI18n(), a = {
1366
- render: () => Je("div", T("form.expressions_editor.loading"))
1362
+ const { i18n: { t: I } } = re.useI18n(), a = {
1363
+ render: () => Je("div", I("form.expressions_editor.loading"))
1367
1364
  }, f = {
1368
- render: () => Je("div", T("form.expressions_editor.error"))
1369
- }, i = At({
1365
+ render: () => Je("div", I("form.expressions_editor.error"))
1366
+ }, i = Rt({
1370
1367
  loader: async () => import("./RouteFormExpressionsEditor-Ce9E02hY.js"),
1371
1368
  loadingComponent: a,
1372
1369
  errorComponent: f
1373
- }), m = r, S = N, R = D(Te.LOADING), E = lt(r, "modelValue"), L = (h) => {
1370
+ }), m = r, S = N, R = P(be.LOADING), E = st(r, "modelValue"), q = (h) => {
1374
1371
  E.value = h;
1375
1372
  };
1376
- return it(async () => {
1373
+ return rt(async () => {
1377
1374
  try {
1378
- await (await import("@kong-ui-public/expressions")).asyncInit, R.value = Te.READY;
1375
+ await (await import("@kong-ui-public/expressions")).asyncInit, R.value = be.READY;
1379
1376
  } catch (h) {
1380
- R.value = Te.ERROR, console.error(h);
1377
+ R.value = be.ERROR, console.error(h);
1381
1378
  }
1382
- }), (h, u) => (p(), _(x, null, [
1383
- R.value === o(Te).ERROR ? (p(), A(ze(f), {
1379
+ }), (h, u) => (p(), b(x, null, [
1380
+ R.value === o(be).ERROR ? (p(), A(ze(f), {
1384
1381
  key: 0,
1385
1382
  "data-testid": "route-form-expressions-editor-loader-error"
1386
- })) : R.value === o(Te).LOADING ? (p(), A(ze(a), {
1383
+ })) : R.value === o(be).LOADING ? (p(), A(ze(a), {
1387
1384
  key: 1,
1388
1385
  "data-testid": "route-form-expressions-editor-loader-loading"
1389
1386
  })) : (p(), A(o(i), {
1390
1387
  key: 2,
1391
1388
  modelValue: E.value,
1392
1389
  "onUpdate:modelValue": u[0] || (u[0] = (Q) => E.value = Q),
1393
- "hint-text": o(T)("form.expression_playground.supported_protocols_hint"),
1390
+ "hint-text": o(I)("form.expression_playground.supported_protocols_hint"),
1394
1391
  protocol: m.protocol,
1395
1392
  "show-expressions-modal-entry": h.showExpressionsModalEntry,
1396
1393
  onNotify: u[1] || (u[1] = (Q) => S("notify", Q))
1397
1394
  }, {
1398
1395
  default: n(() => [
1399
- c(o(kt), { size: o(Be) }, null, 8, ["size"]),
1400
- y("span", null, g(o(T)("form.expression_playground.test_link")), 1)
1396
+ c(o(At), { size: o(Le) }, null, 8, ["size"]),
1397
+ y("span", null, g(o(I)("form.expression_playground.test_link")), 1)
1401
1398
  ]),
1402
1399
  _: 1
1403
1400
  }, 8, ["modelValue", "hint-text", "protocol", "show-expressions-modal-entry"])),
1404
- ce(h.$slots, "after-editor", {
1405
- expression: { value: E.value, update: L },
1401
+ ue(h.$slots, "after-editor", {
1402
+ expression: { value: E.value, update: q },
1406
1403
  state: R.value
1407
1404
  })
1408
1405
  ], 64));
1409
1406
  }
1410
- }), Po = { class: "kong-ui-entities-route-form" }, Fo = { key: 1 }, Mo = { "data-testid": "no-search-results" }, xo = { class: "route-form-service-dropdown-item" }, Ko = { class: "select-item-label" }, qo = { class: "select-item-description" }, Lo = { class: "route-form-routing-rules-title-container" }, Bo = { class: "routing-rules-title" }, Go = {
1407
+ }), Do = { class: "kong-ui-entities-route-form" }, Uo = { key: 1 }, Po = { "data-testid": "no-search-results" }, Fo = { class: "route-form-service-dropdown-item" }, Mo = { class: "select-item-label" }, xo = { class: "select-item-description" }, Ko = { class: "route-form-routing-rules-title-container" }, qo = { class: "routing-rules-title" }, Lo = {
1411
1408
  key: 1,
1412
1409
  class: "route-form-routing-rules-selector-container"
1413
- }, jo = { class: "route-form-routing-rules-selector-options" }, Wo = ["aria-disabled", "data-testid", "onClick"], Xo = { class: "route-form-fields-container route-form-advanced-fields-container" }, zo = { class: "route-form-routing-rules-title-container" }, Jo = { class: "routing-rules-title" }, Qo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Yo = /* @__PURE__ */ J({
1410
+ }, Bo = { class: "route-form-routing-rules-selector-options" }, Go = ["aria-disabled", "data-testid", "onClick"], jo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Wo = { class: "route-form-routing-rules-title-container" }, Xo = { class: "routing-rules-title" }, zo = { class: "route-form-fields-container route-form-advanced-fields-container" }, Jo = /* @__PURE__ */ J({
1414
1411
  __name: "RouteForm",
1415
1412
  props: {
1416
1413
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1478,23 +1475,23 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1478
1475
  }
1479
1476
  },
1480
1477
  emits: ["update", "error", "loading", "model-updated", "notify"],
1481
- setup(r, { expose: N, emit: T }) {
1478
+ setup(r, { expose: N, emit: I }) {
1482
1479
  var Xe;
1483
- const a = r, f = T, i = D(
1484
- a.routeFlavors.traditional ? `#${$.TRADITIONAL}` : a.routeFlavors.expressions ? `#${$.EXPRESSIONS}` : ""
1480
+ const a = r, f = I, i = P(
1481
+ a.routeFlavors.traditional ? `#${w.TRADITIONAL}` : a.routeFlavors.expressions ? `#${w.EXPRESSIONS}` : ""
1485
1482
  ), m = M(() => {
1486
1483
  if (i.value)
1487
1484
  return i.value.substring(1);
1488
- }), S = D(void 0), R = D(!0), E = M(() => {
1485
+ }), S = P(void 0), R = P(!0), E = M(() => {
1489
1486
  if (S.value)
1490
1487
  return S.value;
1491
1488
  if (m.value)
1492
1489
  return m.value;
1493
1490
  if (a.routeFlavors.traditional)
1494
- return $.TRADITIONAL;
1491
+ return w.TRADITIONAL;
1495
1492
  if (a.routeFlavors.expressions)
1496
- return $.EXPRESSIONS;
1497
- }), { i18nT: L, i18n: h, i18n: { t: u } } = ie.useI18n(), Q = h.source.form.protocols, se = at(), { axiosInstance: O } = Ge((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: U } = Ft(), Y = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), G = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1493
+ return w.EXPRESSIONS;
1494
+ }), { i18nT: q, i18n: h, i18n: { t: u } } = re.useI18n(), Q = h.source.form.protocols, oe = it(), { axiosInstance: O } = Be((Xe = a.config) == null ? void 0 : Xe.axiosRequestConfig), { getMessageFromError: D } = Ut(), Y = M(() => !(a.hideNameField && (a.hideServiceField || a.serviceId) && a.showTagsFiledUnderAdvanced)), j = (t) => t.name ? `${t.name} - ${t.value}` : t.value, e = Qe({
1498
1495
  routeFlavors: a.routeFlavors,
1499
1496
  fields: {
1500
1497
  name: "",
@@ -1514,7 +1511,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1514
1511
  },
1515
1512
  isReadonly: !1,
1516
1513
  errorMessage: ""
1517
- }), Z = M(() => e.fields.protocols.split(",")[0]), ne = D([""]), ye = Qe({
1514
+ }), Z = M(() => e.fields.protocols.split(",")[0]), ae = P([""]), Ee = Qe({
1518
1515
  name: "",
1519
1516
  protocols: "http,https",
1520
1517
  https_redirect_status_code: 426,
@@ -1528,7 +1525,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1528
1525
  regex_priority: 0,
1529
1526
  expression: "",
1530
1527
  priority: 0
1531
- }), q = {
1528
+ }), K = {
1532
1529
  [l.PATHS]: [""],
1533
1530
  [l.SNIS]: [""],
1534
1531
  [l.HOSTS]: [""],
@@ -1547,13 +1544,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1547
1544
  [l.HEADERS]: [{ header: "", values: "" }],
1548
1545
  [l.SOURCES]: [{ ip: "", port: null }],
1549
1546
  [l.DESTINATIONS]: [{ ip: "", port: null }]
1550
- }, $e = a.config.app === "konnect" || Mt({
1547
+ }, Ne = a.config.app === "konnect" || Pt({
1551
1548
  gatewayInfo: a.config.gatewayInfo,
1552
1549
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
1553
1550
  supportedRange: {
1554
1551
  enterprise: ["3.0"]
1555
1552
  }
1556
- }), He = [
1553
+ }), we = [
1557
1554
  { label: u("form.protocols.grpc"), value: "grpc" },
1558
1555
  { label: u("form.protocols.grpcs"), value: "grpcs" },
1559
1556
  { label: u("form.protocols.grpc,grpcs"), value: "grpc,grpcs" },
@@ -1568,21 +1565,21 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1568
1565
  { label: u("form.protocols.tcp,tls,udp"), value: "tcp,tls,udp" },
1569
1566
  { label: u("form.protocols.tls_passthrough"), value: "tls_passthrough" },
1570
1567
  { label: u("form.protocols.udp"), value: "udp" },
1571
- ...$e ? [
1568
+ ...Ne ? [
1572
1569
  { label: u("form.protocols.ws"), value: "ws" },
1573
1570
  { label: u("form.protocols.wss"), value: "wss" },
1574
1571
  { label: u("form.protocols.ws,wss"), value: "ws,wss" }
1575
1572
  ] : []
1576
- ], De = [
1573
+ ], $e = [
1577
1574
  { label: "v0", value: "v0" },
1578
1575
  { label: "v1", value: "v1" }
1579
- ], Ae = [
1576
+ ], ne = [
1580
1577
  { label: "426", value: 426 },
1581
1578
  { label: "301", value: 301 },
1582
1579
  { label: "302", value: 302 },
1583
1580
  { label: "307", value: 307 },
1584
1581
  { label: "308", value: 308 }
1585
- ], ee = {
1582
+ ], ce = {
1586
1583
  http: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS],
1587
1584
  https: [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
1588
1585
  "http,https": [l.HOSTS, l.METHODS, l.PATHS, l.HEADERS, l.SNIS],
@@ -1608,24 +1605,24 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1608
1605
  wss: [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS],
1609
1606
  "ws,wss": [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS],
1610
1607
  "wss,ws": [l.HOSTS, l.PATHS, l.HEADERS, l.SNIS]
1611
- }, pe = M(() => a.routeId ? et.Edit : et.Create), _e = M(() => {
1608
+ }, pe = M(() => a.routeId ? Ze.Edit : Ze.Create), Ve = M(() => {
1612
1609
  var t, s, v;
1613
- return (v = (s = Ie.form[(t = a.config) == null ? void 0 : t.app]) == null ? void 0 : s.fetch) == null ? void 0 : v[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId || "");
1614
- }), Re = () => {
1610
+ return (v = (s = _e.form[(t = a.config) == null ? void 0 : t.app]) == null ? void 0 : s.fetch) == null ? void 0 : v[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId || "");
1611
+ }), Ae = () => {
1615
1612
  var t;
1616
- se.push((t = a.config) == null ? void 0 : t.cancelRoute);
1617
- }, Ue = (t) => {
1613
+ oe.push((t = a.config) == null ? void 0 : t.cancelRoute);
1614
+ }, He = (t) => {
1618
1615
  f("loading", t);
1619
- }, Pe = (t) => {
1616
+ }, De = (t) => {
1620
1617
  f("error", t);
1621
- }, Fe = (t) => {
1622
- ue(e) && (e.fields.methods = q[l.METHODS], t.forEach((s) => {
1618
+ }, Ue = (t) => {
1619
+ de(e) && (e.fields.methods = K[l.METHODS], t.forEach((s) => {
1623
1620
  e.fields.methods && (e.fields.methods[s] = !0);
1624
1621
  }));
1625
- }, Me = (t) => Object.entries(t).map((s) => {
1622
+ }, Te = (t) => Object.entries(t).map((s) => {
1626
1623
  var v;
1627
1624
  return { header: s[0], values: (v = s[1]) == null ? void 0 : v.join() };
1628
- }), j = (t) => t.some((s) => e.fields.protocols.includes(s)), de = (t, s) => {
1625
+ }), W = (t) => t.some((s) => e.fields.protocols.includes(s)), _ = (t, s) => {
1629
1626
  if (t === l.PATHS || t === l.HOSTS || t === l.SNIS)
1630
1627
  return [...s].filter((v) => !!v);
1631
1628
  if (t === l.SOURCES || t === l.DESTINATIONS)
@@ -1635,9 +1632,9 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1635
1632
  }));
1636
1633
  if (t === l.HEADERS)
1637
1634
  return [...s].filter((v) => !!v.header);
1638
- }, Ce = () => {
1639
- if (ue(e)) {
1640
- const t = de(l.HEADERS, e.fields.headers || []) || q[l.HEADERS];
1635
+ }, k = () => {
1636
+ if (de(e)) {
1637
+ const t = _(l.HEADERS, e.fields.headers || []) || K[l.HEADERS];
1641
1638
  if (t.length === 0)
1642
1639
  return null;
1643
1640
  const s = {};
@@ -1646,13 +1643,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1646
1643
  }), s;
1647
1644
  }
1648
1645
  return null;
1649
- }, b = (t) => {
1650
- ue(e) && (t && t === l.PATHS && (e.fields.paths ? e.fields.paths.push([...q[l.PATHS]][0]) : e.fields.paths = [...q[l.PATHS]]), t === l.SNIS && (e.fields.snis ? e.fields.snis.push([...q[l.SNIS]][0]) : e.fields.snis = [...q[l.SNIS]]), t === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...q[l.HOSTS]][0]) : e.fields.hosts = [...q[l.HOSTS]]), t === l.METHODS && (e.fields.methods || (e.fields.methods = { ...q[l.METHODS] })), t === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...q[l.HEADERS][0] }) : e.fields.headers = [{ ...q[l.HEADERS][0] }]), t === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...q[l.SOURCES][0] }) : e.fields.sources = [{ ...q[l.SOURCES][0] }]), t === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...q[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...q[l.DESTINATIONS][0] }]));
1651
- }, k = M(() => {
1646
+ }, $ = (t) => {
1647
+ de(e) && (t && t === l.PATHS && (e.fields.paths ? e.fields.paths.push([...K[l.PATHS]][0]) : e.fields.paths = [...K[l.PATHS]]), t === l.SNIS && (e.fields.snis ? e.fields.snis.push([...K[l.SNIS]][0]) : e.fields.snis = [...K[l.SNIS]]), t === l.HOSTS && (e.fields.hosts ? e.fields.hosts.push([...K[l.HOSTS]][0]) : e.fields.hosts = [...K[l.HOSTS]]), t === l.METHODS && (e.fields.methods || (e.fields.methods = { ...K[l.METHODS] })), t === l.HEADERS && (e.fields.headers ? e.fields.headers.push({ ...K[l.HEADERS][0] }) : e.fields.headers = [{ ...K[l.HEADERS][0] }]), t === l.SOURCES && (e.fields.sources ? e.fields.sources.push({ ...K[l.SOURCES][0] }) : e.fields.sources = [{ ...K[l.SOURCES][0] }]), t === l.DESTINATIONS && (e.fields.destinations ? e.fields.destinations.push({ ...K[l.DESTINATIONS][0] }) : e.fields.destinations = [{ ...K[l.DESTINATIONS][0] }]));
1648
+ }, L = M(() => {
1652
1649
  var t;
1653
- return ue(e) ? (t = ee[e.fields.protocols]) == null ? void 0 : t.filter((s) => !e.fields[s]) : !1;
1654
- }), w = async (t, s) => {
1655
- if (ue(e)) {
1650
+ return de(e) ? (t = ce[e.fields.protocols]) == null ? void 0 : t.filter((s) => !e.fields[s]) : !1;
1651
+ }), B = async (t, s) => {
1652
+ if (de(e)) {
1656
1653
  if (typeof s < "u") {
1657
1654
  let v = [];
1658
1655
  if (v = e.fields[t], v.splice(s, 1), v.length) {
@@ -1660,111 +1657,111 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1660
1657
  return;
1661
1658
  }
1662
1659
  }
1663
- await Ot(() => {
1664
- delete e.fields[t], t === l.METHODS && (ne.value = [""]);
1660
+ await Vt(() => {
1661
+ delete e.fields[t], t === l.METHODS && (ae.value = [""]);
1665
1662
  });
1666
1663
  }
1667
- }, K = (t) => {
1664
+ }, se = (t) => {
1668
1665
  var v;
1669
1666
  return ((v = h.source.form.fields[t]) == null ? void 0 : v.label) || "";
1670
1667
  };
1671
- B(() => e.fields.protocols, () => {
1672
- X();
1668
+ G(() => e.fields.protocols, () => {
1669
+ ye();
1673
1670
  });
1674
- const X = () => {
1675
- const t = Object.keys(q), s = ee[e.fields.protocols];
1671
+ const ye = () => {
1672
+ const t = Object.keys(K), s = ce[e.fields.protocols];
1676
1673
  Object.keys(e.fields).filter((V) => t.includes(V)).forEach((V) => {
1677
- s != null && s.includes(V) || w(V);
1674
+ s != null && s.includes(V) || B(V);
1678
1675
  });
1679
- }, le = M(() => {
1680
- if (ue(e)) {
1676
+ }, T = M(() => {
1677
+ if (de(e)) {
1681
1678
  const t = [];
1682
1679
  return e.fields.methods && Object.entries(e.fields.methods).forEach(([s, v]) => {
1683
1680
  v && t.push(s);
1684
1681
  }), t;
1685
1682
  }
1686
1683
  return [];
1687
- }), ge = M(() => {
1684
+ }), U = M(() => {
1688
1685
  var t;
1689
1686
  return ((t = e.fields.protocols) == null ? void 0 : t.split(",")) || [];
1690
- }), I = M(() => {
1691
- const t = Object.keys(q);
1687
+ }), Pe = M(() => {
1688
+ const t = Object.keys(K);
1692
1689
  return !Object.keys(e.fields).filter((v) => t.includes(v)).length;
1693
- }), P = M(() => {
1694
- if (j(["tls_passthrough"]))
1695
- return [K(l.SNIS)];
1696
- const t = ee[e.fields.protocols].map((s) => K(s));
1690
+ }), Fe = M(() => {
1691
+ if (W(["tls_passthrough"]))
1692
+ return [se(l.SNIS)];
1693
+ const t = ce[e.fields.protocols].map((s) => se(s));
1697
1694
  return [[...t].splice(0, t.length - 1).join(", "), t[t.length - 1]];
1698
- }), Oe = (t) => {
1695
+ }), Ge = (t) => {
1699
1696
  var v, V;
1700
1697
  if (a.routeId) {
1701
- const z = typeof t.expression == "string" && t.expression.length > 0 ? $.EXPRESSIONS : $.TRADITIONAL;
1698
+ const z = typeof t.expression == "string" && t.expression.length > 0 ? w.EXPRESSIONS : w.TRADITIONAL;
1702
1699
  S.value = z, i.value = `#${z}`;
1703
1700
  }
1704
1701
  (v = t == null ? void 0 : t.service) != null && v.id && (e.fields.service_id = t.service.id), e.fields.name = (t == null ? void 0 : t.name) || "";
1705
1702
  const s = (t == null ? void 0 : t.tags) || [];
1706
- e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (t == null ? void 0 : t.preserve_host) > "u" ? !1 : t == null ? void 0 : t.preserve_host, e.fields.https_redirect_status_code = (t == null ? void 0 : t.https_redirect_status_code) || 426, (V = t == null ? void 0 : t.protocols) != null && V.length && (t.protocols.length > 1 ? e.fields.protocols = t.protocols.join() : e.fields.protocols = t.protocols[0]), e.fields.request_buffering = typeof (t == null ? void 0 : t.request_buffering) > "u" ? !0 : t == null ? void 0 : t.request_buffering, e.fields.response_buffering = typeof (t == null ? void 0 : t.response_buffering) > "u" ? !0 : t == null ? void 0 : t.response_buffering, e.fields.strip_path = typeof (t == null ? void 0 : t.strip_path) > "u" ? !0 : t == null ? void 0 : t.strip_path, ue(e) && (e.fields.regex_priority = (t == null ? void 0 : t.regex_priority) || 0, e.fields.path_handling = (t == null ? void 0 : t.path_handling) || "v0", t != null && t.paths && (e.fields.paths = t.paths), t != null && t.snis && (e.fields.snis = t.snis), t != null && t.hosts && (e.fields.hosts = t.hosts), t != null && t.methods && Fe(t.methods), t != null && t.headers && (e.fields.headers = Me(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), we(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(ye, JSON.parse(JSON.stringify(e.fields)));
1703
+ e.fields.tags = (s == null ? void 0 : s.join(", ")) || "", e.fields.preserve_host = typeof (t == null ? void 0 : t.preserve_host) > "u" ? !1 : t == null ? void 0 : t.preserve_host, e.fields.https_redirect_status_code = (t == null ? void 0 : t.https_redirect_status_code) || 426, (V = t == null ? void 0 : t.protocols) != null && V.length && (t.protocols.length > 1 ? e.fields.protocols = t.protocols.join() : e.fields.protocols = t.protocols[0]), e.fields.request_buffering = typeof (t == null ? void 0 : t.request_buffering) > "u" ? !0 : t == null ? void 0 : t.request_buffering, e.fields.response_buffering = typeof (t == null ? void 0 : t.response_buffering) > "u" ? !0 : t == null ? void 0 : t.response_buffering, e.fields.strip_path = typeof (t == null ? void 0 : t.strip_path) > "u" ? !0 : t == null ? void 0 : t.strip_path, de(e) && (e.fields.regex_priority = (t == null ? void 0 : t.regex_priority) || 0, e.fields.path_handling = (t == null ? void 0 : t.path_handling) || "v0", t != null && t.paths && (e.fields.paths = t.paths), t != null && t.snis && (e.fields.snis = t.snis), t != null && t.hosts && (e.fields.hosts = t.hosts), t != null && t.methods && Ue(t.methods), t != null && t.headers && (e.fields.headers = Te(t.headers)), t != null && t.sources && (e.fields.sources = t.sources), t != null && t.destinations && (e.fields.destinations = t.destinations)), ke(e) && (e.fields.expression = (t == null ? void 0 : t.expression) || "", e.fields.priority = (t == null ? void 0 : t.priority) || 0), Object.assign(Ee, JSON.parse(JSON.stringify(e.fields)));
1707
1704
  }, je = M(() => {
1708
1705
  var t;
1709
1706
  switch (E.value) {
1710
- case $.TRADITIONAL: {
1711
- if (ue(e)) {
1712
- const s = e.fields.hosts ? !!e.fields.hosts.filter(Boolean).length : null, v = e.fields.paths ? !!e.fields.paths.filter(Boolean).length : null, V = e.fields.headers ? e.fields.headers.some(({ header: me }) => !!me) : null, z = e.fields.snis ? !!e.fields.snis.filter(Boolean).length : null, fe = e.fields.destinations ? e.fields.destinations.some(({ ip: me }) => !!me) : null, re = e.fields.sources ? e.fields.sources.some(({ ip: me }) => !!me) : null, d = ((t = e.fields.methods) == null ? void 0 : t.CUSTOM) ? ne.value.some((me) => !!me) : Object.values(e.fields.methods || {}).includes(!0);
1713
- return !!e.fields.protocols && (j(["http"]) && !!(s || d || v || V) || j(["https"]) && !!(s || d || v || V || z) || j(["grpc"]) && !!(s || v || V) || j(["grpcs", "wss"]) && !!(s || v || V || z) || j(["udp", "tls"]) && !!(fe || re || z) || j(["tcp"]) && !!(fe || re) || j(["tls_passthrough"]) && !!z || j(["ws"]) && !!(s || v || V));
1707
+ case w.TRADITIONAL: {
1708
+ if (de(e)) {
1709
+ const s = e.fields.hosts ? !!e.fields.hosts.filter(Boolean).length : null, v = e.fields.paths ? !!e.fields.paths.filter(Boolean).length : null, V = e.fields.headers ? e.fields.headers.some(({ header: me }) => !!me) : null, z = e.fields.snis ? !!e.fields.snis.filter(Boolean).length : null, fe = e.fields.destinations ? e.fields.destinations.some(({ ip: me }) => !!me) : null, le = e.fields.sources ? e.fields.sources.some(({ ip: me }) => !!me) : null, d = ((t = e.fields.methods) == null ? void 0 : t.CUSTOM) ? ae.value.some((me) => !!me) : Object.values(e.fields.methods || {}).includes(!0);
1710
+ return !!e.fields.protocols && (W(["http"]) && !!(s || d || v || V) || W(["https"]) && !!(s || d || v || V || z) || W(["grpc"]) && !!(s || v || V) || W(["grpcs", "wss"]) && !!(s || v || V || z) || W(["udp", "tls"]) && !!(fe || le || z) || W(["tcp"]) && !!(fe || le) || W(["tls_passthrough"]) && !!z || W(["ws"]) && !!(s || v || V));
1714
1711
  }
1715
1712
  break;
1716
1713
  }
1717
- case $.EXPRESSIONS: {
1718
- if (we(e))
1714
+ case w.EXPRESSIONS: {
1715
+ if (ke(e))
1719
1716
  return e.fields.expression.length > 0;
1720
1717
  break;
1721
1718
  }
1722
1719
  }
1723
1720
  return !0;
1724
- }), We = M(() => !jt(e.fields, ye)), xe = M(() => {
1721
+ }), We = M(() => !Bt(e.fields, Ee)), Me = M(() => {
1725
1722
  var s, v;
1726
- let t = `${a.config.apiBaseUrl}${Ie.form[a.config.app][pe.value][a.serviceId ? "forGatewayService" : "all"]}`;
1723
+ let t = `${a.config.apiBaseUrl}${_e.form[a.config.app][pe.value][a.serviceId ? "forGatewayService" : "all"]}`;
1727
1724
  return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((s = a.config) == null ? void 0 : s.controlPlaneId) || "").replace(/{serviceId}/gi, a.serviceId || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (v = a.config) != null && v.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, a.serviceId || "")), t = t.replace(/{id}/gi, a.routeId), t;
1728
1725
  });
1729
- B(() => e.fields, () => {
1730
- f("model-updated", Ve.value);
1726
+ G(() => e.fields, () => {
1727
+ f("model-updated", Re.value);
1731
1728
  }, { deep: !0 });
1732
- const Ee = (t) => t != null && t.length ? t : null, mt = () => {
1729
+ const Ie = (t) => t != null && t.length ? t : null, ft = () => {
1733
1730
  var t, s;
1734
- if (ue(e)) {
1731
+ if (de(e)) {
1735
1732
  const v = {
1736
1733
  methods: null,
1737
- hosts: Ee(de(l.HOSTS, e.fields.hosts || [])),
1738
- paths: Ee(de(l.PATHS, e.fields.paths || [])),
1739
- headers: Ce(),
1734
+ hosts: Ie(_(l.HOSTS, e.fields.hosts || [])),
1735
+ paths: Ie(_(l.PATHS, e.fields.paths || [])),
1736
+ headers: k(),
1740
1737
  regex_priority: Number(e.fields.regex_priority),
1741
1738
  path_handling: e.fields.path_handling,
1742
- sources: Ee(de(l.SOURCES, e.fields.sources || [])),
1743
- destinations: Ee(de(l.DESTINATIONS, e.fields.destinations || [])),
1744
- snis: Ee(de(l.SNIS, e.fields.snis || []))
1739
+ sources: Ie(_(l.SOURCES, e.fields.sources || [])),
1740
+ destinations: Ie(_(l.DESTINATIONS, e.fields.destinations || [])),
1741
+ snis: Ie(_(l.SNIS, e.fields.snis || []))
1745
1742
  };
1746
- if ((t = le.value) != null && t.length && (v.methods = [...le.value], (s = le.value) != null && s.includes("CUSTOM"))) {
1743
+ if ((t = T.value) != null && t.length && (v.methods = [...T.value], (s = T.value) != null && s.includes("CUSTOM"))) {
1747
1744
  const V = v.methods.indexOf("CUSTOM");
1748
- V !== -1 && v.methods.splice(V, 1), ne.value.forEach((z) => {
1745
+ V !== -1 && v.methods.splice(V, 1), ae.value.forEach((z) => {
1749
1746
  var fe;
1750
1747
  z && v.methods && !((fe = v.methods) != null && fe.includes(z)) && v.methods.push(z.toUpperCase());
1751
1748
  });
1752
1749
  }
1753
1750
  return v;
1754
1751
  }
1755
- }, ht = () => {
1756
- if (we(e))
1752
+ }, mt = () => {
1753
+ if (ke(e))
1757
1754
  return {
1758
1755
  expression: e.fields.expression,
1759
1756
  priority: Number(e.fields.priority)
1760
1757
  };
1761
- }, Ve = M(() => {
1758
+ }, Re = M(() => {
1762
1759
  var s, v;
1763
1760
  const t = {
1764
1761
  ...!a.hideNameField && { name: e.fields.name || null },
1765
1762
  protocols: e.fields.protocols.split(","),
1766
1763
  https_redirect_status_code: e.fields.https_redirect_status_code,
1767
- strip_path: j(["grpc", "gprcs"]) ? !1 : e.fields.strip_path,
1764
+ strip_path: W(["grpc", "gprcs"]) ? !1 : e.fields.strip_path,
1768
1765
  preserve_host: e.fields.preserve_host,
1769
1766
  request_buffering: e.fields.request_buffering,
1770
1767
  response_buffering: e.fields.response_buffering,
@@ -1772,83 +1769,83 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1772
1769
  service: e.fields.service_id ? { id: e.fields.service_id } : null
1773
1770
  };
1774
1771
  switch (E.value) {
1775
- case $.TRADITIONAL:
1772
+ case w.TRADITIONAL:
1773
+ return { ...t, ...ft() };
1774
+ case w.EXPRESSIONS:
1776
1775
  return { ...t, ...mt() };
1777
- case $.EXPRESSIONS:
1778
- return { ...t, ...ht() };
1779
1776
  default:
1780
1777
  return t;
1781
1778
  }
1782
- }), vt = (t) => {
1779
+ }), ht = (t) => {
1783
1780
  switch (E.value) {
1784
- case $.TRADITIONAL: {
1781
+ case w.TRADITIONAL: {
1785
1782
  if (!("regex_priority" in t && "path_handling" in t))
1786
1783
  return !1;
1787
1784
  break;
1788
1785
  }
1789
- case $.EXPRESSIONS: {
1786
+ case w.EXPRESSIONS: {
1790
1787
  if (!("priority" in t))
1791
1788
  return !1;
1792
1789
  break;
1793
1790
  }
1794
1791
  }
1795
1792
  return "service" in t && "tags" in t && "protocols" in t;
1796
- }, Ke = async (t) => {
1793
+ }, xe = async (t) => {
1797
1794
  var v;
1798
- const s = t && vt(t) ? t : Ve.value;
1795
+ const s = t && ht(t) ? t : Re.value;
1799
1796
  try {
1800
1797
  e.isReadonly = !0;
1801
1798
  let V;
1802
- pe.value === "create" ? V = await O.post(xe.value, s) : pe.value === "edit" && (V = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(xe.value, s) : await O.patch(xe.value, s)), Oe(V == null ? void 0 : V.data), f("update", V == null ? void 0 : V.data);
1799
+ pe.value === "create" ? V = await O.post(Me.value, s) : pe.value === "edit" && (V = ((v = a.config) == null ? void 0 : v.app) === "konnect" ? await O.put(Me.value, s) : await O.patch(Me.value, s)), Ge(V == null ? void 0 : V.data), f("update", V == null ? void 0 : V.data);
1803
1800
  } catch (V) {
1804
- e.errorMessage = U(V), f("error", V);
1801
+ e.errorMessage = D(V), f("error", V);
1805
1802
  } finally {
1806
1803
  e.isReadonly = !1;
1807
1804
  }
1808
1805
  }, {
1809
- debouncedQueryChange: gt,
1810
- loading: St,
1811
- error: bt,
1806
+ debouncedQueryChange: vt,
1807
+ loading: gt,
1808
+ error: St,
1812
1809
  loadItems: yt,
1813
- results: _t
1814
- } = xt(a.config, Ie.form[a.config.app].services, void 0, {
1810
+ results: bt
1811
+ } = Ft(a.config, _e.form[a.config.app].services, void 0, {
1815
1812
  fetchedItemsKey: "data",
1816
1813
  searchKeys: ["id", "name"]
1817
- }), Tt = M(() => bt.value ? u("errors.services.fetch") : ""), It = M(() => {
1814
+ }), _t = M(() => St.value ? u("errors.services.fetch") : ""), Tt = M(() => {
1818
1815
  var t;
1819
- return (t = _t.value) == null ? void 0 : t.map((s) => ({ label: s.id, name: s.name, value: s.id }));
1816
+ return (t = bt.value) == null ? void 0 : t.map((s) => ({ label: s.id, name: s.name, value: s.id }));
1820
1817
  });
1821
- return st(async () => {
1818
+ return ot(async () => {
1822
1819
  !a.hideServiceField && !a.serviceId ? await yt() : e.fields.service_id = a.serviceId;
1823
- }), it(() => {
1824
- f("model-updated", Ve.value);
1825
- }), N({ saveFormData: Ke, getPayload: Ve }), (t, s) => {
1826
- const v = C("KInput"), V = C("KSelect"), z = C("KAlert"), fe = C("KCard"), re = C("KCheckbox"), qe = C("KCollapse");
1827
- return p(), _("div", Po, [
1828
- c(o(Kt), {
1820
+ }), rt(() => {
1821
+ f("model-updated", Re.value);
1822
+ }), N({ saveFormData: xe, getPayload: Re }), (t, s) => {
1823
+ const v = C("KInput"), V = C("KSelect"), z = C("KAlert"), fe = C("KCard"), le = C("KCheckbox"), Ke = C("KCollapse");
1824
+ return p(), b("div", Do, [
1825
+ c(o(Mt), {
1829
1826
  "can-submit": je.value && We.value,
1830
1827
  config: r.config,
1831
1828
  "edit-id": r.routeId,
1832
- "entity-type": o(ct).Route,
1833
- "error-message": e.errorMessage || Tt.value,
1834
- "fetch-url": _e.value,
1835
- "form-fields": Ve.value,
1829
+ "entity-type": o(ut).Route,
1830
+ "error-message": e.errorMessage || _t.value,
1831
+ "fetch-url": Ve.value,
1832
+ "form-fields": Re.value,
1836
1833
  "is-readonly": e.isReadonly,
1837
- onCancel: Re,
1838
- "onFetch:error": Pe,
1839
- "onFetch:success": Oe,
1840
- onLoading: Ue,
1841
- onSubmit: Ke
1834
+ onCancel: Ae,
1835
+ "onFetch:error": De,
1836
+ "onFetch:success": Ge,
1837
+ onLoading: He,
1838
+ onSubmit: xe
1842
1839
  }, {
1843
1840
  "form-actions": n(() => [
1844
- ce(t.$slots, "form-actions", {
1841
+ ue(t.$slots, "form-actions", {
1845
1842
  canSubmit: je.value && We.value,
1846
- cancel: Re,
1847
- submit: Ke
1843
+ cancel: Ae,
1844
+ submit: xe
1848
1845
  }, void 0, !0)
1849
1846
  ]),
1850
1847
  default: n(() => [
1851
- Y.value ? (p(), A(o(tt), {
1848
+ Y.value ? (p(), A(o(et), {
1852
1849
  key: 0,
1853
1850
  description: o(u)("form.sections.general.description"),
1854
1851
  "hide-info-header": r.hideSectionsInfo,
@@ -1867,7 +1864,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1867
1864
  readonly: e.isReadonly,
1868
1865
  type: "text"
1869
1866
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"])),
1870
- !r.hideServiceField && !r.serviceId ? (p(), _("div", Fo, [
1867
+ !r.hideServiceField && !r.serviceId ? (p(), b("div", Uo, [
1871
1868
  c(V, {
1872
1869
  modelValue: e.fields.service_id,
1873
1870
  "onUpdate:modelValue": s[1] || (s[1] = (d) => e.fields.service_id = d),
@@ -1875,28 +1872,28 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1875
1872
  "data-testid": "route-form-service-id",
1876
1873
  "enable-filtering": "",
1877
1874
  "filter-function": () => !0,
1878
- items: It.value,
1875
+ items: Tt.value,
1879
1876
  label: o(u)("form.fields.service_id.label"),
1880
- loading: o(St),
1877
+ loading: o(gt),
1881
1878
  placeholder: o(u)("form.fields.service_id.placeholder"),
1882
1879
  readonly: e.isReadonly,
1883
1880
  "reuse-item-template": "",
1884
1881
  width: "100%",
1885
- onQueryChange: o(gt)
1882
+ onQueryChange: o(vt)
1886
1883
  }, {
1887
1884
  loading: n(() => [
1888
1885
  y("div", null, g(o(u)("actions.loading")), 1)
1889
1886
  ]),
1890
1887
  empty: n(() => [
1891
- y("div", Mo, g(o(u)("search.no_results")), 1)
1888
+ y("div", Po, g(o(u)("search.no_results")), 1)
1892
1889
  ]),
1893
1890
  "selected-item-template": n(({ item: d }) => [
1894
- F(g(G(d)), 1)
1891
+ F(g(j(d)), 1)
1895
1892
  ]),
1896
1893
  "item-template": n(({ item: d }) => [
1897
- y("div", xo, [
1898
- y("span", Ko, g(d.name), 1),
1899
- y("span", qo, g(d.value), 1)
1894
+ y("div", Fo, [
1895
+ y("span", Mo, g(d.name), 1),
1896
+ y("span", xo, g(d.value), 1)
1900
1897
  ])
1901
1898
  ]),
1902
1899
  _: 1
@@ -1918,7 +1915,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1918
1915
  ]),
1919
1916
  _: 1
1920
1917
  }, 8, ["description", "hide-info-header", "title"])) : H("", !0),
1921
- c(o(tt), {
1918
+ c(o(et), {
1922
1919
  description: o(u)("form.sections.config.description"),
1923
1920
  "hide-info-header": r.hideSectionsInfo,
1924
1921
  title: o(u)("form.sections.config.title")
@@ -1928,7 +1925,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1928
1925
  modelValue: e.fields.protocols,
1929
1926
  "onUpdate:modelValue": s[3] || (s[3] = (d) => e.fields.protocols = d),
1930
1927
  "data-testid": "route-form-protocols",
1931
- items: He,
1928
+ items: we,
1932
1929
  label: o(u)("form.fields.protocols.label"),
1933
1930
  "label-attributes": {
1934
1931
  info: o(u)("form.fields.protocols.tooltip"),
@@ -1938,12 +1935,12 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1938
1935
  required: "",
1939
1936
  width: "100%"
1940
1937
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1941
- c(Do, {
1938
+ c($o, {
1942
1939
  modelValue: i.value,
1943
1940
  "onUpdate:modelValue": s[44] || (s[44] = (d) => i.value = d),
1944
1941
  "route-flavors": r.routeFlavors,
1945
1942
  tooltips: r.configTabTooltips
1946
- }, rt({ _: 2 }, [
1943
+ }, lt({ _: 2 }, [
1947
1944
  r.routeFlavors.traditional && r.routeFlavors.expressions && (!S.value || S.value !== m.value) ? {
1948
1945
  name: "before-content",
1949
1946
  fn: n(() => [
@@ -1953,9 +1950,9 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1953
1950
  "data-testid": "route-config-type-immutable-alert"
1954
1951
  }, {
1955
1952
  default: n(() => [
1956
- S.value ? S.value !== m.value ? (p(), _(x, { key: 1 }, [
1953
+ S.value ? S.value !== m.value ? (p(), b(x, { key: 1 }, [
1957
1954
  F(g(o(u)("form.warning.cannotChangeFlavor.edit", { format: o(u)(`form.flavors.${S.value}`) })), 1)
1958
- ], 64)) : H("", !0) : (p(), _(x, { key: 0 }, [
1955
+ ], 64)) : H("", !0) : (p(), b(x, { key: 0 }, [
1959
1956
  F(g(o(u)("form.warning.cannotChangeFlavor.create")), 1)
1960
1957
  ], 64))
1961
1958
  ]),
@@ -1964,40 +1961,40 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
1964
1961
  ]),
1965
1962
  key: "0"
1966
1963
  } : void 0,
1967
- o(ue)(e) ? {
1964
+ o(de)(e) ? {
1968
1965
  name: "traditional",
1969
1966
  fn: n(() => [
1970
- !S.value || S.value === o($).TRADITIONAL ? (p(), _(x, { key: 0 }, [
1967
+ !S.value || S.value === o(w).TRADITIONAL ? (p(), b(x, { key: 0 }, [
1971
1968
  e.fields.protocols ? (p(), A(fe, { key: 0 }, {
1972
1969
  title: n(() => [
1973
- y("div", Lo, [
1974
- (p(!0), _(x, null, W(ge.value, (d) => (p(), _("span", {
1970
+ y("div", Ko, [
1971
+ (p(!0), b(x, null, X(U.value, (d) => (p(), b("span", {
1975
1972
  key: d,
1976
1973
  class: "protocol-title"
1977
1974
  }, g(d.toUpperCase()), 1))), 128)),
1978
- y("span", Bo, g(o(u)("form.sections.routingRules.title")), 1)
1975
+ y("span", qo, g(o(u)("form.sections.routingRules.title")), 1)
1979
1976
  ])
1980
1977
  ]),
1981
1978
  default: n(() => [
1982
- I.value ? (p(), A(z, {
1979
+ Pe.value ? (p(), A(z, {
1983
1980
  key: 0,
1984
1981
  appearance: "warning",
1985
1982
  "data-testid": "routing-rules-warning"
1986
1983
  }, {
1987
1984
  default: n(() => [
1988
- c(o(L), { keypath: "form.warning.rulesMessage" }, {
1985
+ c(o(q), { keypath: "form.warning.rulesMessage" }, {
1989
1986
  protocol: n(() => [
1990
1987
  y("b", null, g(o(Q)[e.fields.protocols]), 1)
1991
1988
  ]),
1992
1989
  routingRules: n(() => [
1993
- c(o(L), {
1994
- keypath: P.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
1990
+ c(o(q), {
1991
+ keypath: Fe.value[1] ? "form.warning.multipleRules" : "form.warning.singleRule"
1995
1992
  }, {
1996
1993
  routingRules: n(() => [
1997
- y("b", null, g(P.value[0]), 1)
1994
+ y("b", null, g(Fe.value[0]), 1)
1998
1995
  ]),
1999
1996
  lastRoutingRule: n(() => [
2000
- y("b", null, g(P.value[1]), 1)
1997
+ y("b", null, g(Fe.value[1]), 1)
2001
1998
  ]),
2002
1999
  _: 1
2003
2000
  }, 8, ["keypath"])
@@ -2009,71 +2006,71 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2009
2006
  })) : H("", !0),
2010
2007
  c(ve, { name: "appear" }, {
2011
2008
  default: n(() => [
2012
- e.fields.paths ? (p(), A(Ao, {
2009
+ e.fields.paths ? (p(), A(Eo, {
2013
2010
  key: "paths-container",
2014
2011
  modelValue: e.fields.paths,
2015
2012
  "onUpdate:modelValue": s[4] || (s[4] = (d) => e.fields.paths = d),
2016
- onAdd: s[5] || (s[5] = (d) => b(o(l).PATHS)),
2017
- onRemove: s[6] || (s[6] = (d) => w(o(l).PATHS, d))
2013
+ onAdd: s[5] || (s[5] = (d) => $(o(l).PATHS)),
2014
+ onRemove: s[6] || (s[6] = (d) => B(o(l).PATHS, d))
2018
2015
  }, null, 8, ["modelValue"])) : H("", !0),
2019
- e.fields.snis ? (p(), A(ko, {
2016
+ e.fields.snis ? (p(), A(Co, {
2020
2017
  key: "snis-container",
2021
2018
  modelValue: e.fields.snis,
2022
2019
  "onUpdate:modelValue": s[7] || (s[7] = (d) => e.fields.snis = d),
2023
- onAdd: s[8] || (s[8] = (d) => b(o(l).SNIS)),
2024
- onRemove: s[9] || (s[9] = (d) => w(o(l).SNIS, d))
2020
+ onAdd: s[8] || (s[8] = (d) => $(o(l).SNIS)),
2021
+ onRemove: s[9] || (s[9] = (d) => B(o(l).SNIS, d))
2025
2022
  }, null, 8, ["modelValue"])) : H("", !0),
2026
- e.fields.hosts ? (p(), A(So, {
2023
+ e.fields.hosts ? (p(), A(vo, {
2027
2024
  key: "hosts-container",
2028
2025
  modelValue: e.fields.hosts,
2029
2026
  "onUpdate:modelValue": s[10] || (s[10] = (d) => e.fields.hosts = d),
2030
- onAdd: s[11] || (s[11] = (d) => b(o(l).HOSTS)),
2031
- onRemove: s[12] || (s[12] = (d) => w(o(l).HOSTS, d))
2027
+ onAdd: s[11] || (s[11] = (d) => $(o(l).HOSTS)),
2028
+ onRemove: s[12] || (s[12] = (d) => B(o(l).HOSTS, d))
2032
2029
  }, null, 8, ["modelValue"])) : H("", !0),
2033
- e.fields.methods ? (p(), A(Ro, {
2030
+ e.fields.methods ? (p(), A(To, {
2034
2031
  key: "methods-container",
2035
2032
  modelValue: e.fields.methods,
2036
2033
  "onUpdate:modelValue": s[13] || (s[13] = (d) => e.fields.methods = d),
2037
- "custom-methods": ne.value,
2038
- onRemove: s[14] || (s[14] = (d) => w(o(l).METHODS)),
2039
- onUpdateCustomMethods: s[15] || (s[15] = (d) => ne.value = d)
2034
+ "custom-methods": ae.value,
2035
+ onRemove: s[14] || (s[14] = (d) => B(o(l).METHODS)),
2036
+ onUpdateCustomMethods: s[15] || (s[15] = (d) => ae.value = d)
2040
2037
  }, null, 8, ["modelValue", "custom-methods"])) : H("", !0),
2041
- e.fields.headers ? (p(), A(ho, {
2038
+ e.fields.headers ? (p(), A(fo, {
2042
2039
  key: "headers-container",
2043
2040
  modelValue: e.fields.headers,
2044
2041
  "onUpdate:modelValue": s[16] || (s[16] = (d) => e.fields.headers = d),
2045
- onAdd: s[17] || (s[17] = (d) => b(o(l).HEADERS)),
2046
- onRemove: s[18] || (s[18] = (d) => w(o(l).HEADERS, d))
2042
+ onAdd: s[17] || (s[17] = (d) => $(o(l).HEADERS)),
2043
+ onRemove: s[18] || (s[18] = (d) => B(o(l).HEADERS, d))
2047
2044
  }, null, 8, ["modelValue"])) : H("", !0),
2048
- e.fields.sources ? (p(), A($o, {
2045
+ e.fields.sources ? (p(), A(No, {
2049
2046
  key: "sources-container",
2050
2047
  modelValue: e.fields.sources,
2051
2048
  "onUpdate:modelValue": s[19] || (s[19] = (d) => e.fields.sources = d),
2052
- onAdd: s[20] || (s[20] = (d) => b(o(l).SOURCES)),
2053
- onRemove: s[21] || (s[21] = (d) => w(o(l).SOURCES, d))
2049
+ onAdd: s[20] || (s[20] = (d) => $(o(l).SOURCES)),
2050
+ onRemove: s[21] || (s[21] = (d) => B(o(l).SOURCES, d))
2054
2051
  }, null, 8, ["modelValue"])) : H("", !0),
2055
- e.fields.destinations ? (p(), A(po, {
2052
+ e.fields.destinations ? (p(), A(uo, {
2056
2053
  key: "destinations-container",
2057
2054
  modelValue: e.fields.destinations,
2058
2055
  "onUpdate:modelValue": s[22] || (s[22] = (d) => e.fields.destinations = d),
2059
- onAdd: s[23] || (s[23] = (d) => b(o(l).DESTINATIONS)),
2060
- onRemove: s[24] || (s[24] = (d) => w(o(l).DESTINATIONS, d))
2056
+ onAdd: s[23] || (s[23] = (d) => $(o(l).DESTINATIONS)),
2057
+ onRemove: s[24] || (s[24] = (d) => B(o(l).DESTINATIONS, d))
2061
2058
  }, null, 8, ["modelValue"])) : H("", !0)
2062
2059
  ]),
2063
2060
  _: 1
2064
2061
  }),
2065
- k.value ? (p(), _("div", Go, [
2062
+ L.value ? (p(), b("div", Lo, [
2066
2063
  s[45] || (s[45] = y("hr", null, null, -1)),
2067
- y("div", jo, [
2064
+ y("div", Bo, [
2068
2065
  y("ul", null, [
2069
- (p(!0), _(x, null, W(ee[e.fields.protocols], (d) => (p(), _("li", { key: d }, [
2066
+ (p(!0), b(x, null, X(ce[e.fields.protocols], (d) => (p(), b("li", { key: d }, [
2070
2067
  y("label", {
2071
2068
  "aria-disabled": !!e.fields[d],
2072
- class: Ct(["option", { "is-selected": e.fields[d] }]),
2069
+ class: Et(["option", { "is-selected": e.fields[d] }]),
2073
2070
  "data-testid": `routing-rule-${d}`,
2074
2071
  role: "button",
2075
- onClick: (me) => b(d)
2076
- }, g(K(d)), 11, Wo)
2072
+ onClick: (me) => $(d)
2073
+ }, g(se(d)), 11, Go)
2077
2074
  ]))), 128))
2078
2075
  ])
2079
2076
  ])
@@ -2081,7 +2078,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2081
2078
  ]),
2082
2079
  _: 1
2083
2080
  })) : H("", !0),
2084
- c(qe, {
2081
+ c(Ke, {
2085
2082
  modelValue: R.value,
2086
2083
  "onUpdate:modelValue": s[33] || (s[33] = (d) => R.value = d),
2087
2084
  class: "route-form-advanced-fields-collapse",
@@ -2089,13 +2086,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2089
2086
  "trigger-label": o(u)("form.viewAdvancedFields")
2090
2087
  }, {
2091
2088
  default: n(() => [
2092
- y("div", Xo, [
2089
+ y("div", jo, [
2093
2090
  e.fields.paths ? (p(), A(V, {
2094
2091
  key: 0,
2095
2092
  modelValue: e.fields.path_handling,
2096
2093
  "onUpdate:modelValue": s[25] || (s[25] = (d) => e.fields.path_handling = d),
2097
2094
  "data-testid": "route-form-path-handling",
2098
- items: De,
2095
+ items: $e,
2099
2096
  label: o(u)("form.fields.path_handling.label"),
2100
2097
  "label-attributes": {
2101
2098
  info: o(u)("form.fields.path_handling.tooltip"),
@@ -2108,7 +2105,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2108
2105
  modelValue: e.fields.https_redirect_status_code,
2109
2106
  "onUpdate:modelValue": s[26] || (s[26] = (d) => e.fields.https_redirect_status_code = d),
2110
2107
  "data-testid": "route-form-http-redirect-status-code",
2111
- items: Ae,
2108
+ items: ne,
2112
2109
  label: o(u)("form.fields.https_redirect_status_code.label"),
2113
2110
  readonly: e.isReadonly,
2114
2111
  width: "100%"
@@ -2135,26 +2132,26 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2135
2132
  readonly: e.isReadonly,
2136
2133
  type: "text"
2137
2134
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : H("", !0),
2138
- j(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(re, {
2135
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2139
2136
  key: 2,
2140
2137
  modelValue: e.fields.strip_path,
2141
2138
  "onUpdate:modelValue": s[29] || (s[29] = (d) => e.fields.strip_path = d),
2142
2139
  "data-testid": "route-form-strip-path",
2143
2140
  label: o(u)("form.fields.strip_path.label")
2144
2141
  }, null, 8, ["modelValue", "label"])) : H("", !0),
2145
- c(re, {
2142
+ c(le, {
2146
2143
  modelValue: e.fields.preserve_host,
2147
2144
  "onUpdate:modelValue": s[30] || (s[30] = (d) => e.fields.preserve_host = d),
2148
2145
  "data-testid": "route-form-preserve-host",
2149
2146
  label: o(u)("form.fields.preserve_host.label")
2150
2147
  }, null, 8, ["modelValue", "label"]),
2151
- c(re, {
2148
+ c(le, {
2152
2149
  modelValue: e.fields.request_buffering,
2153
2150
  "onUpdate:modelValue": s[31] || (s[31] = (d) => e.fields.request_buffering = d),
2154
2151
  "data-testid": "route-form-request-buffering",
2155
2152
  label: o(u)("form.fields.request_buffering.label")
2156
2153
  }, null, 8, ["modelValue", "label"]),
2157
- c(re, {
2154
+ c(le, {
2158
2155
  modelValue: e.fields.response_buffering,
2159
2156
  "onUpdate:modelValue": s[32] || (s[32] = (d) => e.fields.response_buffering = d),
2160
2157
  "data-testid": "route-form-response-buffering",
@@ -2168,22 +2165,22 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2168
2165
  ]),
2169
2166
  key: "1"
2170
2167
  } : void 0,
2171
- o(we)(e) ? {
2168
+ o(ke)(e) ? {
2172
2169
  name: "expressions",
2173
2170
  fn: n(() => [
2174
- !S.value || S.value === o($).EXPRESSIONS ? (p(), _(x, { key: 0 }, [
2171
+ !S.value || S.value === o(w).EXPRESSIONS ? (p(), b(x, { key: 0 }, [
2175
2172
  e.fields.protocols ? (p(), A(fe, { key: 0 }, {
2176
2173
  title: n(() => [
2177
- y("div", zo, [
2178
- (p(!0), _(x, null, W(ge.value, (d) => (p(), _("span", {
2174
+ y("div", Wo, [
2175
+ (p(!0), b(x, null, X(U.value, (d) => (p(), b("span", {
2179
2176
  key: d,
2180
2177
  class: "protocol-title"
2181
2178
  }, g(d.toUpperCase()), 1))), 128)),
2182
- y("span", Jo, g(o(u)("form.sections.routingExpression.title")), 1)
2179
+ y("span", Xo, g(o(u)("form.sections.routingExpression.title")), 1)
2183
2180
  ])
2184
2181
  ]),
2185
2182
  default: n(() => [
2186
- c(Uo, {
2183
+ c(Ho, {
2187
2184
  modelValue: e.fields.expression,
2188
2185
  "onUpdate:modelValue": s[34] || (s[34] = (d) => e.fields.expression = d),
2189
2186
  protocol: Z.value,
@@ -2191,7 +2188,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2191
2188
  onNotify: s[35] || (s[35] = (d) => f("notify", d))
2192
2189
  }, {
2193
2190
  "after-editor": n((d) => [
2194
- ce(t.$slots, "after-expressions-editor", {
2191
+ ue(t.$slots, "after-expressions-editor", {
2195
2192
  expression: d.expression,
2196
2193
  state: d.state
2197
2194
  }, void 0, !0)
@@ -2201,7 +2198,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2201
2198
  ]),
2202
2199
  _: 3
2203
2200
  })) : H("", !0),
2204
- c(qe, {
2201
+ c(Ke, {
2205
2202
  modelValue: R.value,
2206
2203
  "onUpdate:modelValue": s[43] || (s[43] = (d) => R.value = d),
2207
2204
  class: "route-form-advanced-fields-collapse",
@@ -2209,12 +2206,12 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2209
2206
  "trigger-label": o(u)("form.viewAdvancedFields")
2210
2207
  }, {
2211
2208
  default: n(() => [
2212
- y("div", Qo, [
2209
+ y("div", zo, [
2213
2210
  c(V, {
2214
2211
  modelValue: e.fields.https_redirect_status_code,
2215
2212
  "onUpdate:modelValue": s[36] || (s[36] = (d) => e.fields.https_redirect_status_code = d),
2216
2213
  "data-testid": "route-form-http-redirect-status-code",
2217
- items: Ae,
2214
+ items: ne,
2218
2215
  label: o(u)("form.fields.https_redirect_status_code.label"),
2219
2216
  readonly: e.isReadonly,
2220
2217
  width: "100%"
@@ -2245,26 +2242,26 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2245
2242
  readonly: e.isReadonly,
2246
2243
  type: "text"
2247
2244
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])) : H("", !0),
2248
- j(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(re, {
2245
+ W(["http", "https", "ws", "wss", "tls", "tcp", "udp", "tls_passthrough"]) ? (p(), A(le, {
2249
2246
  key: 1,
2250
2247
  modelValue: e.fields.strip_path,
2251
2248
  "onUpdate:modelValue": s[39] || (s[39] = (d) => e.fields.strip_path = d),
2252
2249
  "data-testid": "route-form-strip-path",
2253
2250
  label: o(u)("form.fields.strip_path.label")
2254
2251
  }, null, 8, ["modelValue", "label"])) : H("", !0),
2255
- c(re, {
2252
+ c(le, {
2256
2253
  modelValue: e.fields.preserve_host,
2257
2254
  "onUpdate:modelValue": s[40] || (s[40] = (d) => e.fields.preserve_host = d),
2258
2255
  "data-testid": "route-form-preserve-host",
2259
2256
  label: o(u)("form.fields.preserve_host.label")
2260
2257
  }, null, 8, ["modelValue", "label"]),
2261
- c(re, {
2258
+ c(le, {
2262
2259
  modelValue: e.fields.request_buffering,
2263
2260
  "onUpdate:modelValue": s[41] || (s[41] = (d) => e.fields.request_buffering = d),
2264
2261
  "data-testid": "route-form-request-buffering",
2265
2262
  label: o(u)("form.fields.request_buffering.label")
2266
2263
  }, null, 8, ["modelValue", "label"]),
2267
- c(re, {
2264
+ c(le, {
2268
2265
  modelValue: e.fields.response_buffering,
2269
2266
  "onUpdate:modelValue": s[42] || (s[42] = (d) => e.fields.response_buffering = d),
2270
2267
  "data-testid": "route-form-response-buffering",
@@ -2288,7 +2285,7 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2288
2285
  ]);
2289
2286
  };
2290
2287
  }
2291
- }), ds = /* @__PURE__ */ ae(Yo, [["__scopeId", "data-v-6c1044e5"]]), Zo = { class: "kong-ui-entities-route-entity-config-card" }, es = { key: 2 }, us = /* @__PURE__ */ J({
2288
+ }), as = /* @__PURE__ */ ie(Jo, [["__scopeId", "data-v-6c1044e5"]]), Qo = { class: "kong-ui-entities-route-entity-config-card" }, Yo = { key: 2 }, ns = /* @__PURE__ */ J({
2292
2289
  __name: "RouteConfigCard",
2293
2290
  props: {
2294
2291
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2321,31 +2318,31 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2321
2318
  },
2322
2319
  emits: ["loading", "fetch:error", "fetch:success", "navigation-click"],
2323
2320
  setup(r, { emit: N }) {
2324
- var se;
2325
- const T = N, a = r, { axiosInstance: f } = Ge((se = a.config) == null ? void 0 : se.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = ie.useI18n(), S = D(""), R = D(""), E = D(!1), L = M(
2321
+ var oe;
2322
+ const I = N, a = r, { axiosInstance: f } = Be((oe = a.config) == null ? void 0 : oe.axiosRequestConfig), { i18n: { t: i }, i18nT: m } = re.useI18n(), S = P(""), R = P(""), E = P(!1), q = M(
2326
2323
  () => {
2327
- var O, U;
2328
- return (U = Ie.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : U[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
2324
+ var O, D;
2325
+ return (D = _e.item[(O = a.config) == null ? void 0 : O.app]) == null ? void 0 : D[a.serviceId ? "forGatewayService" : "all"].replace(/{serviceId}/gi, a.serviceId);
2329
2326
  }
2330
2327
  ), h = M(() => {
2331
2328
  var O;
2332
- return (O = Ie.item[a.config.app]) == null ? void 0 : O.getService;
2329
+ return (O = _e.item[a.config.app]) == null ? void 0 : O.getService;
2333
2330
  }), u = async (O) => {
2334
- var Y, G, e;
2335
- if (S.value = a.serviceId || ((Y = O == null ? void 0 : O.service) == null ? void 0 : Y.id), T("fetch:success", O), !S.value)
2331
+ var Y, j, e;
2332
+ if (S.value = a.serviceId || ((Y = O == null ? void 0 : O.service) == null ? void 0 : Y.id), I("fetch:success", O), !S.value)
2336
2333
  return;
2337
- let U = `${a.config.apiBaseUrl}${h.value}`;
2338
- a.config.app === "konnect" ? U = U.replace(/{controlPlaneId}/gi, ((G = a.config) == null ? void 0 : G.controlPlaneId) || "").replace(/{serviceId}/gi, S.value || "") : a.config.app === "kongManager" && (U = U.replace(/\/{workspace}/gi, (e = a.config) != null && e.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, S.value || ""));
2334
+ let D = `${a.config.apiBaseUrl}${h.value}`;
2335
+ a.config.app === "konnect" ? D = D.replace(/{controlPlaneId}/gi, ((j = a.config) == null ? void 0 : j.controlPlaneId) || "").replace(/{serviceId}/gi, S.value || "") : a.config.app === "kongManager" && (D = D.replace(/\/{workspace}/gi, (e = a.config) != null && e.workspace ? `/${a.config.workspace}` : "").replace(/{serviceId}/gi, S.value || ""));
2339
2336
  try {
2340
2337
  E.value = !0;
2341
- const { data: Z } = await f.get(U);
2338
+ const { data: Z } = await f.get(D);
2342
2339
  R.value = (Z == null ? void 0 : Z.name) || (Z == null ? void 0 : Z.id);
2343
2340
  } catch (Z) {
2344
- T("fetch:error", Z);
2341
+ I("fetch:error", Z);
2345
2342
  } finally {
2346
2343
  E.value = !1;
2347
2344
  }
2348
- }, Q = D({
2345
+ }, Q = P({
2349
2346
  id: {},
2350
2347
  name: {
2351
2348
  tooltip: i("form.fields.name.tooltip")
@@ -2364,19 +2361,19 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2364
2361
  },
2365
2362
  protocols: {
2366
2363
  section: he.Basic,
2367
- type: Se.BadgeTag,
2364
+ type: ge.BadgeTag,
2368
2365
  order: 7
2369
2366
  },
2370
2367
  paths: {
2371
2368
  section: he.Basic,
2372
2369
  tooltip: i("form.fields.paths.tooltip"),
2373
- type: Se.CopyBadge,
2370
+ type: ge.CopyBadge,
2374
2371
  order: 8
2375
2372
  },
2376
2373
  hosts: {
2377
2374
  section: he.Basic,
2378
2375
  tooltip: i("form.fields.hosts.tooltipConfig"),
2379
- type: Se.CopyBadge,
2376
+ type: ge.CopyBadge,
2380
2377
  order: 9
2381
2378
  },
2382
2379
  snis: {
@@ -2391,19 +2388,19 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2391
2388
  methods: {
2392
2389
  section: he.Basic,
2393
2390
  tooltip: i("form.fields.methods.tooltip"),
2394
- type: Se.BadgeMethod,
2391
+ type: ge.BadgeMethod,
2395
2392
  order: 12
2396
2393
  },
2397
2394
  sources: {
2398
2395
  section: he.Basic,
2399
2396
  tooltip: i("form.fields.sources.tooltip"),
2400
- type: Se.JsonArray,
2397
+ type: ge.JsonArray,
2401
2398
  order: 13
2402
2399
  },
2403
2400
  destinations: {
2404
2401
  section: he.Basic,
2405
2402
  tooltip: i("form.fields.destinations.tooltip"),
2406
- type: Se.JsonArray,
2403
+ type: ge.JsonArray,
2407
2404
  order: 14
2408
2405
  },
2409
2406
  // advanced fields
@@ -2433,19 +2430,19 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2433
2430
  order: 7
2434
2431
  }
2435
2432
  });
2436
- return (O, U) => {
2433
+ return (O, D) => {
2437
2434
  const Y = C("KSkeleton");
2438
- return p(), _("div", Zo, [
2439
- c(o(qt), {
2435
+ return p(), b("div", Qo, [
2436
+ c(o(xt), {
2440
2437
  config: r.config,
2441
2438
  "config-card-doc": r.configCardDoc,
2442
2439
  "config-schema": Q.value,
2443
- "entity-type": o(ct).Route,
2444
- "fetch-url": L.value,
2440
+ "entity-type": o(ut).Route,
2441
+ "fetch-url": q.value,
2445
2442
  "hide-title": r.hideTitle,
2446
- "onFetch:error": U[0] || (U[0] = (G) => O.$emit("fetch:error", G)),
2443
+ "onFetch:error": D[0] || (D[0] = (j) => O.$emit("fetch:error", j)),
2447
2444
  "onFetch:success": u,
2448
- onLoading: U[1] || (U[1] = (G) => O.$emit("loading", G))
2445
+ onLoading: D[1] || (D[1] = (j) => O.$emit("loading", j))
2449
2446
  }, {
2450
2447
  "https_redirect_status_code-label-tooltip": n(() => [
2451
2448
  c(o(m), {
@@ -2558,20 +2555,20 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2558
2555
  _: 1
2559
2556
  })
2560
2557
  ]),
2561
- service: n(({ row: G }) => [
2558
+ service: n(({ row: j }) => [
2562
2559
  E.value ? (p(), A(Y, {
2563
2560
  key: 0,
2564
2561
  "data-testid": "service-name-loader",
2565
2562
  type: "spinner"
2566
- })) : G.value && G.value.id === S.value && R.value ? (p(), A(o(Lt), {
2563
+ })) : j.value && j.value.id === S.value && R.value ? (p(), A(o(Kt), {
2567
2564
  key: 1,
2568
2565
  item: {
2569
- key: G.value.id,
2566
+ key: j.value.id,
2570
2567
  value: R.value,
2571
- type: o(Se).LinkInternal
2568
+ type: o(ge).LinkInternal
2572
2569
  },
2573
- onNavigationClick: () => O.$emit("navigation-click", G.value.id, "services")
2574
- }, null, 8, ["item", "onNavigationClick"])) : (p(), _("div", es, g("-")))
2570
+ onNavigationClick: () => O.$emit("navigation-click", j.value.id, "services")
2571
+ }, null, 8, ["item", "onNavigationClick"])) : (p(), b("div", Yo, g("-")))
2575
2572
  ]),
2576
2573
  _: 1
2577
2574
  }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
@@ -2580,13 +2577,13 @@ const ue = (r) => r.routeFlavors.traditional === !0, we = (r) => r.routeFlavors.
2580
2577
  }
2581
2578
  });
2582
2579
  export {
2583
- Te as ExpressionsEditorState,
2584
- io as Methods,
2585
- us as RouteConfigCard,
2586
- $ as RouteFlavor,
2587
- ds as RouteForm,
2588
- ns as RouteList,
2580
+ be as ExpressionsEditorState,
2581
+ lo as Methods,
2582
+ ns as RouteConfigCard,
2583
+ w as RouteFlavor,
2584
+ as as RouteForm,
2585
+ is as RouteList,
2589
2586
  l as RoutingRulesEntities,
2590
- we as stateHasExpressionsFlavor,
2591
- ue as stateHasTraditionalFlavor
2587
+ ke as stateHasExpressionsFlavor,
2588
+ de as stateHasTraditionalFlavor
2592
2589
  };