@kong-ui-public/entities-gateway-services 3.11.9 → 3.11.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- import { defineComponent as Le, computed as k, ref as q, watch as Ue, onBeforeMount as it, resolveComponent as G, openBlock as S, createElementBlock as U, createVNode as u, unref as l, createSlots as Re, withCtx as v, createBlock as $e, Teleport as ze, createElementVNode as I, createCommentVNode as B, createTextVNode as J, toDisplayString as E, withModifiers as We, reactive as Me, onMounted as Qe, renderSlot as Xe, toValue as He, Transition as De, Fragment as rt, renderList as st } from "vue";
1
+ import { defineComponent as Le, computed as k, ref as q, watch as Ue, onBeforeMount as it, resolveComponent as G, openBlock as S, createElementBlock as U, createVNode as d, unref as l, createSlots as Re, withCtx as v, createBlock as $e, Teleport as ze, createElementVNode as I, createCommentVNode as B, createTextVNode as J, toDisplayString as E, withModifiers as We, reactive as Me, onMounted as Qe, renderSlot as Xe, toValue as He, Transition as De, Fragment as rt, renderList as st } from "vue";
2
2
  import { useRouter as Ge } from "vue-router";
3
3
  import { BookIcon as Ze, AddIcon as at, ServicesIcon as nt } from "@kong/icons";
4
- import { createI18n as ct, i18nTComponent as ut } from "@kong-ui-public/i18n";
5
- import { useAxios as Oe, useTableState as dt, useFetcher as ft, useDeleteUrlBuilder as pt, FetcherStatus as mt, EntityBaseTable as vt, EntityFilter as gt, PermissionsWrapper as Fe, TableTags as yt, EntityEmptyState as _t, EntityToggleModal as bt, EntityDeleteModal as ht, EntityTypes as wt, useErrors as Ye, useValidators as et, EntityBaseFormType as Be, useGatewayFeatureSupported as tt, EntityBaseForm as lt, SupportedEntityType as Ne, EntityFormSection as Ke, useHelpers as ot, ConfigurationSchemaSection as Ae, ConfigurationSchemaType as kt, EntityBaseConfigCard as Vt } from "@kong-ui-public/entities-shared";
4
+ import { createI18n as ct, i18nTComponent as dt } from "@kong-ui-public/i18n";
5
+ import { useAxios as Oe, useTableState as ut, useFetcher as ft, useDeleteUrlBuilder as pt, FetcherStatus as mt, EntityBaseTable as vt, EntityFilter as gt, PermissionsWrapper as Fe, TableTags as yt, EntityEmptyState as _t, EntityToggleModal as bt, EntityDeleteModal as ht, EntityTypes as wt, useErrors as Ye, useValidators as et, EntityBaseFormType as Be, useGatewayFeatureSupported as tt, EntityBaseForm as lt, SupportedEntityType as Ne, EntityFormSection as Ke, useHelpers as ot, ConfigurationSchemaSection as Ae, ConfigurationSchemaType as kt, EntityBaseConfigCard as Vt } from "@kong-ui-public/entities-shared";
6
6
  const Ct = {
7
7
  create: "New gateway service",
8
8
  serverless_create: "Add a Service",
@@ -225,7 +225,7 @@ function Ut() {
225
225
  const n = ct("en-us", $t);
226
226
  return {
227
227
  i18n: n,
228
- i18nT: ut(n)
228
+ i18nT: dt(n)
229
229
  // Translation component <i18n-t>
230
230
  };
231
231
  }
@@ -356,7 +356,7 @@ const me = {
356
356
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
357
357
  setup(n, { emit: K }) {
358
358
  var c;
359
- const y = K, p = n, { i18n: { t: s, formatUnixTimeStamp: b } } = me.useI18n(), M = Ge(), { axiosInstance: Q } = Oe((c = p.config) == null ? void 0 : c.axiosRequestConfig), { hasRecords: r, handleStateChange: D } = dt(() => z.value), P = k(() => r.value && p.config.app === "konnect"), ie = k(() => !p.enableV2EmptyStates && p.config.app === "konnect"), ne = k(() => p.config.app !== "kongManager" || !!p.config.disableSorting), Y = {
359
+ const y = K, p = n, { i18n: { t: s, formatUnixTimeStamp: b } } = me.useI18n(), M = Ge(), { axiosInstance: Q } = Oe((c = p.config) == null ? void 0 : c.axiosRequestConfig), { hasRecords: r, handleStateChange: D } = ut(() => z.value), P = k(() => r.value && p.config.app === "konnect"), ie = k(() => !p.enableV2EmptyStates && p.config.app === "konnect"), ne = k(() => p.config.app !== "kongManager" || !!p.config.disableSorting), Y = {
360
360
  // the Name column is non-hidable
361
361
  name: { label: s("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
362
362
  ...p.config.showControlPlaneColumn ? { control_plane: { label: s("gateway_services.list.table_headers.control_plane") } } : {},
@@ -402,7 +402,7 @@ const me = {
402
402
  ctaText: T.value ? p.isServerless ? s("actions.serverless_create") : s("actions.create") : void 0,
403
403
  message: `${s("gateway_services.list.empty_state.description")}${p.config.additionMessageForEmptyState ? ` ${p.config.additionMessageForEmptyState}` : ""}`,
404
404
  title: T.value ? p.isServerless ? s("gateway_services.list.empty_state.serverless_title") : s("gateway_services.list.empty_state.title") : s("gateway_services.title")
405
- })), ue = q(!1), O = q(null), se = k(() => {
405
+ })), de = q(!1), O = q(null), se = k(() => {
406
406
  const g = {
407
407
  action: "disable",
408
408
  id: "",
@@ -414,9 +414,9 @@ const me = {
414
414
  }
415
415
  return g;
416
416
  }), Pe = (g) => {
417
- ue.value = !0, O.value = g;
417
+ de.value = !0, O.value = g;
418
418
  }, oe = () => {
419
- ue.value = !1, O.value = null;
419
+ de.value = !1, O.value = null;
420
420
  }, Ve = async () => {
421
421
  var W, fe;
422
422
  if (!await ((W = p.canEdit) == null ? void 0 : W.call(p, O.value)) || !O.value)
@@ -430,7 +430,7 @@ const me = {
430
430
  }
431
431
  }, Ce = (g) => {
432
432
  p.config.getControlPlaneRoute && M.push(p.config.getControlPlaneRoute(g));
433
- }, de = (g, m) => {
433
+ }, ue = (g, m) => {
434
434
  const C = g.id;
435
435
  if (!m(C)) {
436
436
  y("copy:error", {
@@ -467,7 +467,7 @@ const me = {
467
467
  }), ee = (g) => ({
468
468
  label: s("actions.edit"),
469
469
  to: p.config.getEditRoute(g)
470
- }), H = q(void 0), Z = q(!1), te = q(!1), ae = q(""), i = pt(p.config, x.value), d = (g) => {
470
+ }), H = q(void 0), Z = q(!1), te = q(!1), ae = q(""), i = pt(p.config, x.value), u = (g) => {
471
471
  H.value = g, Z.value = !0, ae.value = "";
472
472
  }, V = () => {
473
473
  Z.value = !1, H.value = void 0;
@@ -502,7 +502,7 @@ const me = {
502
502
  }), (g, m) => {
503
503
  const C = G("KButton"), W = G("KBadge"), fe = G("KInputSwitch"), N = G("KDropdownItem"), pe = G("KClipboardProvider");
504
504
  return S(), U("div", Mt, [
505
- u(l(vt), {
505
+ d(l(vt), {
506
506
  "cache-identifier": n.cacheIdentifier,
507
507
  "default-table-preferences": we,
508
508
  "disable-sorting": ne.value,
@@ -521,7 +521,7 @@ const me = {
521
521
  onState: l(D)
522
522
  }, Re({
523
523
  "toolbar-filter": v(() => [
524
- u(l(gt), {
524
+ d(l(gt), {
525
525
  modelValue: z.value,
526
526
  "onUpdate:modelValue": m[0] || (m[0] = (h) => z.value = h),
527
527
  config: Ie.value
@@ -542,22 +542,22 @@ const me = {
542
542
  onClick: m[1] || (m[1] = (h) => g.$emit("click:learn-more"))
543
543
  }, {
544
544
  default: v(() => [
545
- u(l(Ze), { decorative: "" })
545
+ d(l(Ze), { decorative: "" })
546
546
  ]),
547
547
  _: 1
548
548
  })) : B("", !0),
549
- u(l(Fe), {
549
+ d(l(Fe), {
550
550
  "auth-function": () => n.canCreate()
551
551
  }, {
552
552
  default: v(() => [
553
- u(C, {
553
+ d(C, {
554
554
  appearance: "primary",
555
555
  "data-testid": "toolbar-add-gateway-service",
556
556
  size: n.useActionOutside ? "medium" : "large",
557
557
  to: n.config.createRoute
558
558
  }, {
559
559
  default: v(() => [
560
- u(l(at)),
560
+ d(l(at)),
561
561
  J(" " + E(l(s)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
562
562
  ]),
563
563
  _: 1
@@ -588,7 +588,7 @@ const me = {
588
588
  ];
589
589
  }),
590
590
  enabled: v(({ row: h }) => [
591
- u(l(Fe), {
591
+ d(l(Fe), {
592
592
  "auth-function": () => n.canEdit(h),
593
593
  "force-show": ""
594
594
  }, {
@@ -597,7 +597,7 @@ const me = {
597
597
  onClick: m[4] || (m[4] = We(() => {
598
598
  }, ["stop"]))
599
599
  }, [
600
- u(fe, {
600
+ d(fe, {
601
601
  modelValue: h.enabled,
602
602
  "onUpdate:modelValue": (a) => h.enabled = a,
603
603
  "data-testid": `row-${h.id}-toggle-input`,
@@ -610,7 +610,7 @@ const me = {
610
610
  }, 1032, ["auth-function"])
611
611
  ]),
612
612
  tags: v(({ rowValue: h }) => [
613
- u(l(yt), { tags: h }, null, 8, ["tags"])
613
+ d(l(yt), { tags: h }, null, 8, ["tags"])
614
614
  ]),
615
615
  created_at: v(({ rowValue: h }) => [
616
616
  J(E(l(b)(h)), 1)
@@ -619,11 +619,11 @@ const me = {
619
619
  J(E(l(b)(t ?? h.created_at)), 1)
620
620
  ]),
621
621
  actions: v(({ row: h }) => [
622
- u(pe, null, {
622
+ d(pe, null, {
623
623
  default: v(({ copyToClipboard: t }) => [
624
- u(N, {
624
+ d(N, {
625
625
  "data-testid": "action-entity-copy-id",
626
- onClick: (a) => de(h, t)
626
+ onClick: (a) => ue(h, t)
627
627
  }, {
628
628
  default: v(() => [
629
629
  J(E(l(s)("actions.copy_id")), 1)
@@ -633,9 +633,9 @@ const me = {
633
633
  ]),
634
634
  _: 2
635
635
  }, 1024),
636
- u(pe, null, {
636
+ d(pe, null, {
637
637
  default: v(({ copyToClipboard: t }) => [
638
- u(N, {
638
+ d(N, {
639
639
  "data-testid": "action-entity-copy-json",
640
640
  onClick: (a) => _e(h, t)
641
641
  }, {
@@ -647,11 +647,11 @@ const me = {
647
647
  ]),
648
648
  _: 2
649
649
  }, 1024),
650
- u(l(Fe), {
650
+ d(l(Fe), {
651
651
  "auth-function": () => n.canRetrieve(h)
652
652
  }, {
653
653
  default: v(() => [
654
- u(N, {
654
+ d(N, {
655
655
  "data-testid": "action-entity-view",
656
656
  "has-divider": "",
657
657
  item: Ee(h.id)
@@ -659,26 +659,26 @@ const me = {
659
659
  ]),
660
660
  _: 2
661
661
  }, 1032, ["auth-function"]),
662
- u(l(Fe), {
662
+ d(l(Fe), {
663
663
  "auth-function": () => n.canEdit(h)
664
664
  }, {
665
665
  default: v(() => [
666
- u(N, {
666
+ d(N, {
667
667
  "data-testid": "action-entity-edit",
668
668
  item: ee(h.id)
669
669
  }, null, 8, ["item"])
670
670
  ]),
671
671
  _: 2
672
672
  }, 1032, ["auth-function"]),
673
- u(l(Fe), {
673
+ d(l(Fe), {
674
674
  "auth-function": () => n.canDelete(h)
675
675
  }, {
676
676
  default: v(() => [
677
- u(N, {
677
+ d(N, {
678
678
  danger: "",
679
679
  "data-testid": "action-entity-delete",
680
680
  "has-divider": "",
681
- onClick: (t) => d(h)
681
+ onClick: (t) => u(h)
682
682
  }, {
683
683
  default: v(() => [
684
684
  J(E(l(s)("actions.delete.menu_label")), 1)
@@ -698,7 +698,7 @@ const me = {
698
698
  disabled: !n.useActionOutside,
699
699
  to: "#kong-ui-app-page-header-action-button"
700
700
  }, [
701
- u(C, {
701
+ d(C, {
702
702
  appearance: "secondary",
703
703
  class: "open-learning-hub",
704
704
  "data-testid": "gateway-services-more-button",
@@ -706,7 +706,7 @@ const me = {
706
706
  onClick: m[2] || (m[2] = (h) => g.$emit("click:learn-more"))
707
707
  }, {
708
708
  default: v(() => [
709
- u(l(Ze), { decorative: "" })
709
+ d(l(Ze), { decorative: "" })
710
710
  ]),
711
711
  _: 1
712
712
  })
@@ -719,7 +719,7 @@ const me = {
719
719
  fn: v(() => {
720
720
  var h;
721
721
  return [
722
- u(l(_t), {
722
+ d(l(_t), {
723
723
  "action-button-text": l(s)("gateway_services.empty_state_v2.create"),
724
724
  appearance: "secondary",
725
725
  "can-create": () => n.canCreate(),
@@ -732,7 +732,7 @@ const me = {
732
732
  }, Re({
733
733
  image: v(() => [
734
734
  I("div", Kt, [
735
- u(l(nt), {
735
+ d(l(nt), {
736
736
  color: l(Tt),
737
737
  size: l(Rt)
738
738
  }, null, 8, ["color", "size"])
@@ -753,17 +753,17 @@ const me = {
753
753
  key: "1"
754
754
  } : void 0
755
755
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
756
- u(l(bt), {
756
+ d(l(bt), {
757
757
  action: se.value.action,
758
758
  "entity-id": se.value.id,
759
759
  "entity-name": se.value.name,
760
760
  "entity-type": l(s)("glossary.gateway_services"),
761
761
  "on-confirm": Ve,
762
- visible: ue.value,
762
+ visible: de.value,
763
763
  onCancel: oe,
764
764
  onProceed: oe
765
765
  }, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
766
- u(l(ht), {
766
+ d(l(ht), {
767
767
  "action-pending": te.value,
768
768
  description: l(s)("actions.delete.description"),
769
769
  "entity-name": H.value && (H.value.name || H.value.id),
@@ -923,17 +923,17 @@ const me = {
923
923
  value: "udp",
924
924
  group: "udp"
925
925
  }
926
- ], ke = { url: "url", protocol: "protocol" }, e = (i, d) => {
927
- d.value;
928
- }, A = (i) => i ? parseFloat(i) : 0, ue = () => {
926
+ ], ke = { url: "url", protocol: "protocol" }, e = (i, u) => {
927
+ u.value;
928
+ }, A = (i) => i ? parseFloat(i) : 0, de = () => {
929
929
  b.value = !0, o.errorMessage = "", o.fields.host = w.host, o.fields.path = w.path, o.fields.port = w.port, o.fields.protocol = w.protocol, o.fields.url = w.url, o.fields.retries = w.retries, o.fields.connect_timeout = w.connect_timeout, o.fields.write_timeout = w.write_timeout, o.fields.read_timeout = w.read_timeout, o.fields.client_certificate = w.client_certificate, o.fields.ca_certificates = w.ca_certificates, o.fields.tls_verify_enabled = w.tls_verify_enabled, o.fields.tls_verify_value = w.tls_verify_value;
930
930
  }, O = () => {
931
931
  if (o.fields.url && x.value === "url")
932
932
  try {
933
933
  const i = new URL(o.fields.url);
934
934
  o.errorMessage = "", o.fields.protocol = i.protocol.slice(0, -1), o.fields.host = i.hostname, o.fields.path = i.pathname;
935
- const d = Number(i.port);
936
- we.value = !!d, o.fields.port = d || ge.getPortFromProtocol(o.fields.protocol), o.errorMessage = "", p("url-valid:success");
935
+ const u = Number(i.port);
936
+ we.value = !!u, o.fields.port = u || ge.getPortFromProtocol(o.fields.protocol), o.errorMessage = "", p("url-valid:success");
937
937
  } catch (i) {
938
938
  o.errorMessage = r("errors.urlErrorMessage"), p("url-valid:error", D(i));
939
939
  }
@@ -956,27 +956,27 @@ const me = {
956
956
  return x.value === "protocol" && i;
957
957
  }), Ce = (i) => {
958
958
  z.value = ie.utf8Name(i);
959
- }, de = k(() => ce.value && JSON.stringify(o.fields) !== JSON.stringify(w) || x.value === "url" && !!o.fields.url || x.value === "protocol" && !!o.fields.host), _e = (i) => {
960
- var d, V, X;
961
- o.fields.name = (i == null ? void 0 : i.name) || "", o.fields.tags = ((d = i == null ? void 0 : i.tags) == null ? void 0 : d.join(", ")) || "", o.fields.protocol = (i == null ? void 0 : i.protocol) || "http", o.fields.path = (i == null ? void 0 : i.path) || "", o.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, o.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, o.fields.host = (i == null ? void 0 : i.host) || "", o.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, o.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, o.fields.tls_verify_value = i != null && i.tls_verify ? i == null ? void 0 : i.tls_verify : !1, o.fields.ca_certificates = ((V = i == null ? void 0 : i.ca_certificates) == null ? void 0 : V.join(",")) || "", o.fields.client_certificate = ((X = i == null ? void 0 : i.client_certificate) == null ? void 0 : X.id) || "", o.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, o.fields.port = i != null && i.port || (i == null ? void 0 : i.port) === 0 ? i == null ? void 0 : i.port : 80, Object.assign(w, o.fields);
959
+ }, ue = k(() => ce.value && JSON.stringify(o.fields) !== JSON.stringify(w) || x.value === "url" && !!o.fields.url || x.value === "protocol" && !!o.fields.host), _e = (i) => {
960
+ var u, V, X;
961
+ o.fields.name = (i == null ? void 0 : i.name) || "", o.fields.tags = ((u = i == null ? void 0 : i.tags) == null ? void 0 : u.join(", ")) || "", o.fields.protocol = (i == null ? void 0 : i.protocol) || "http", o.fields.path = (i == null ? void 0 : i.path) || "", o.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, o.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, o.fields.host = (i == null ? void 0 : i.host) || "", o.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, o.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, o.fields.tls_verify_value = i != null && i.tls_verify ? i == null ? void 0 : i.tls_verify : !1, o.fields.ca_certificates = ((V = i == null ? void 0 : i.ca_certificates) == null ? void 0 : V.join(",")) || "", o.fields.client_certificate = ((X = i == null ? void 0 : i.client_certificate) == null ? void 0 : X.id) || "", o.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, o.fields.port = i != null && i.port || (i == null ? void 0 : i.port) === 0 ? i == null ? void 0 : i.port : 80, Object.assign(w, o.fields);
962
962
  }, be = () => {
963
963
  M.push(s.config.cancelRoute);
964
964
  }, Ee = k(() => {
965
- var d, V;
965
+ var u, V;
966
966
  let i = `${s.config.apiBaseUrl}${ve.form[s.config.app].validate}`;
967
- return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((d = s.config) == null ? void 0 : d.controlPlaneId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = s.config) != null && V.workspace ? `/${s.config.workspace}` : "")), i = i.replace(/{id}/gi, s.gatewayServiceId), i;
967
+ return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((u = s.config) == null ? void 0 : u.controlPlaneId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = s.config) != null && V.workspace ? `/${s.config.workspace}` : "")), i = i.replace(/{id}/gi, s.gatewayServiceId), i;
968
968
  }), ee = k(() => {
969
- var d, V;
969
+ var u, V;
970
970
  let i = `${s.config.apiBaseUrl}${ve.form[s.config.app][Y.value]}`;
971
- return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((d = s.config) == null ? void 0 : d.controlPlaneId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = s.config) != null && V.workspace ? `/${s.config.workspace}` : "")), i = i.replace(/{id}/gi, s.gatewayServiceId), i;
971
+ return s.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((u = s.config) == null ? void 0 : u.controlPlaneId) || "") : s.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (V = s.config) != null && V.workspace ? `/${s.config.workspace}` : "")), i = i.replace(/{id}/gi, s.gatewayServiceId), i;
972
972
  }), H = (i) => {
973
- let d = "";
974
- i.url && (d = new URL(i.url).protocol), (["https", "wss", "tls"].includes(i.protocol) || ["https", "wss", "tls"].includes(d)) && (i.tls_verify = i.tls_verify_enabled ? i.tls_verify_value : null), delete i.tls_verify_enabled, delete i.tls_verify_value;
973
+ let u = "";
974
+ i.url && (u = new URL(i.url).protocol), (["https", "wss", "tls"].includes(i.protocol) || ["https", "wss", "tls"].includes(u)) && (i.tls_verify = i.tls_verify_enabled ? i.tls_verify_value : null), delete i.tls_verify_enabled, delete i.tls_verify_value;
975
975
  }, Z = k(() => {
976
- var d, V, X, L;
976
+ var u, V, X, L;
977
977
  const i = {
978
978
  name: o.fields.name || null,
979
- tags: o.fields.tags ? (X = (V = (d = o.fields.tags) == null ? void 0 : d.split(",")) == null ? void 0 : V.map((T) => String(T || "").trim())) == null ? void 0 : X.filter((T) => T !== "") : null,
979
+ tags: o.fields.tags ? (X = (V = (u = o.fields.tags) == null ? void 0 : u.split(",")) == null ? void 0 : V.map((T) => String(T || "").trim())) == null ? void 0 : X.filter((T) => T !== "") : null,
980
980
  protocol: o.fields.protocol,
981
981
  path: o.fields.path || null,
982
982
  read_timeout: o.fields.read_timeout,
@@ -993,7 +993,7 @@ const me = {
993
993
  };
994
994
  return o.fields.client_certificate && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.client_certificate = { id: o.fields.client_certificate }), o.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(o.fields.protocol) && (i.tls_verify = o.fields.tls_verify_value), se.value || (i.path = null), Y.value === "create" ? x.value === "url" ? (delete i.protocol, delete i.host, delete i.path, s.config.app === "konnect" && delete i.port) : delete i.url : Y.value === "edit" && delete i.url, i;
995
995
  }), te = async () => {
996
- var i, d, V, X;
996
+ var i, u, V, X;
997
997
  try {
998
998
  o.isReadonly = !0, O();
999
999
  const L = Z.value;
@@ -1001,7 +1001,7 @@ const me = {
1001
1001
  let T;
1002
1002
  if (await P.post(Ee.value, L), Y.value === "create" ? T = await P.post(ee.value, L) : Y.value === "edit" && (T = ((i = s.config) == null ? void 0 : i.app) === "konnect" ? await P.put(ee.value, L) : await P.patch(ee.value, L)), T) {
1003
1003
  const { data: c } = T;
1004
- o.fields.name = (c == null ? void 0 : c.name) || "", o.fields.port = c.port || ge.getPortFromProtocol(c.protocol), o.fields.protocol = (c == null ? void 0 : c.protocol) || "http", o.fields.host = (c == null ? void 0 : c.host) || "", o.fields.path = (c == null ? void 0 : c.path) || "", o.fields.url = (c == null ? void 0 : c.url) || "", o.fields.retries = c != null && c.retries || (c == null ? void 0 : c.retries) === 0 ? c == null ? void 0 : c.retries : 5, o.fields.connect_timeout = c != null && c.connect_timeout || (c == null ? void 0 : c.connect_timeout) === 0 ? c == null ? void 0 : c.connect_timeout : 6e4, o.fields.write_timeout = c != null && c.write_timeout || (c == null ? void 0 : c.write_timeout) === 0 ? c == null ? void 0 : c.write_timeout : 6e4, o.fields.read_timeout = c != null && c.read_timeout || (c == null ? void 0 : c.read_timeout) === 0 ? c == null ? void 0 : c.read_timeout : 6e4, o.fields.client_certificate = ((d = c == null ? void 0 : c.client_certificate) == null ? void 0 : d.id) || "", o.fields.ca_certificates = (V = c == null ? void 0 : c.ca_certificates) != null && V.length ? c == null ? void 0 : c.ca_certificates.join(",") : "", o.fields.tls_verify_enabled = (c == null ? void 0 : c.tls_verify) !== "" && (c == null ? void 0 : c.tls_verify) !== null && (c == null ? void 0 : c.tls_verify) !== void 0, o.fields.tls_verify_value = o.fields.tls_verify_enabled && (c == null ? void 0 : c.tls_verify), o.fields.tags = (X = c == null ? void 0 : c.tags) != null && X.length ? c.tags.join(", ") : "", Object.assign(w, o.fields), p("update", T == null ? void 0 : T.data);
1004
+ o.fields.name = (c == null ? void 0 : c.name) || "", o.fields.port = c.port || ge.getPortFromProtocol(c.protocol), o.fields.protocol = (c == null ? void 0 : c.protocol) || "http", o.fields.host = (c == null ? void 0 : c.host) || "", o.fields.path = (c == null ? void 0 : c.path) || "", o.fields.url = (c == null ? void 0 : c.url) || "", o.fields.retries = c != null && c.retries || (c == null ? void 0 : c.retries) === 0 ? c == null ? void 0 : c.retries : 5, o.fields.connect_timeout = c != null && c.connect_timeout || (c == null ? void 0 : c.connect_timeout) === 0 ? c == null ? void 0 : c.connect_timeout : 6e4, o.fields.write_timeout = c != null && c.write_timeout || (c == null ? void 0 : c.write_timeout) === 0 ? c == null ? void 0 : c.write_timeout : 6e4, o.fields.read_timeout = c != null && c.read_timeout || (c == null ? void 0 : c.read_timeout) === 0 ? c == null ? void 0 : c.read_timeout : 6e4, o.fields.client_certificate = ((u = c == null ? void 0 : c.client_certificate) == null ? void 0 : u.id) || "", o.fields.ca_certificates = (V = c == null ? void 0 : c.ca_certificates) != null && V.length ? c == null ? void 0 : c.ca_certificates.join(",") : "", o.fields.tls_verify_enabled = (c == null ? void 0 : c.tls_verify) !== "" && (c == null ? void 0 : c.tls_verify) !== null && (c == null ? void 0 : c.tls_verify) !== void 0, o.fields.tls_verify_value = o.fields.tls_verify_enabled && (c == null ? void 0 : c.tls_verify), o.fields.tags = (X = c == null ? void 0 : c.tags) != null && X.length ? c.tags.join(", ") : "", Object.assign(w, o.fields), p("update", T == null ? void 0 : T.data);
1005
1005
  }
1006
1006
  return T;
1007
1007
  } catch (L) {
@@ -1020,13 +1020,13 @@ const me = {
1020
1020
  validateUrl: O,
1021
1021
  getPayload: Z,
1022
1022
  saveFormData: te,
1023
- canSubmit: de,
1023
+ canSubmit: ue,
1024
1024
  initForm: _e
1025
- }), (i, d) => {
1025
+ }), (i, u) => {
1026
1026
  const V = G("KInput"), X = G("KLabel"), L = G("KRadio"), T = G("KSelect"), c = G("KCheckbox"), g = G("KCollapse");
1027
1027
  return S(), U("div", Dt, [
1028
- u(l(lt), {
1029
- "can-submit": de.value,
1028
+ d(l(lt), {
1029
+ "can-submit": ue.value,
1030
1030
  config: n.config,
1031
1031
  "edit-id": n.gatewayServiceId,
1032
1032
  "entity-type": l(Ne).GatewayService,
@@ -1035,28 +1035,28 @@ const me = {
1035
1035
  "form-fields": Z.value,
1036
1036
  "is-readonly": o.isReadonly,
1037
1037
  onCancel: be,
1038
- "onFetch:error": d[25] || (d[25] = (m) => i.$emit("error", m)),
1038
+ "onFetch:error": u[25] || (u[25] = (m) => i.$emit("error", m)),
1039
1039
  "onFetch:success": _e,
1040
- onLoading: d[26] || (d[26] = (m) => i.$emit("loading", m)),
1040
+ onLoading: u[26] || (u[26] = (m) => i.$emit("loading", m)),
1041
1041
  onSubmit: te
1042
1042
  }, {
1043
1043
  "form-actions": v(() => [
1044
1044
  Xe(i.$slots, "form-actions", {
1045
- canSubmit: de.value,
1045
+ canSubmit: ue.value,
1046
1046
  cancel: be,
1047
1047
  submit: te
1048
1048
  }, void 0, !0)
1049
1049
  ]),
1050
1050
  default: v(() => [
1051
- u(l(Ke), {
1051
+ d(l(Ke), {
1052
1052
  description: l(r)("gateway_services.form.sections.general.description"),
1053
1053
  "hide-info-header": n.hideSectionsInfo,
1054
1054
  title: l(r)("gateway_services.form.sections.general.title")
1055
1055
  }, {
1056
1056
  default: v(() => [
1057
- u(V, {
1057
+ d(V, {
1058
1058
  modelValue: o.fields.name,
1059
- "onUpdate:modelValue": d[0] || (d[0] = (m) => o.fields.name = m),
1059
+ "onUpdate:modelValue": u[0] || (u[0] = (m) => o.fields.name = m),
1060
1060
  modelModifiers: { trim: !0 },
1061
1061
  autocomplete: "off",
1062
1062
  "data-testid": "gateway-service-name-input",
@@ -1073,9 +1073,9 @@ const me = {
1073
1073
  type: "text",
1074
1074
  onInput: Ce
1075
1075
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
1076
- u(V, {
1076
+ d(V, {
1077
1077
  modelValue: o.fields.tags,
1078
- "onUpdate:modelValue": d[1] || (d[1] = (m) => o.fields.tags = m),
1078
+ "onUpdate:modelValue": u[1] || (u[1] = (m) => o.fields.tags = m),
1079
1079
  modelModifiers: { trim: !0 },
1080
1080
  autocomplete: "off",
1081
1081
  "data-testid": "gateway-service-tags-input",
@@ -1093,7 +1093,7 @@ const me = {
1093
1093
  ]),
1094
1094
  _: 1
1095
1095
  }, 8, ["description", "hide-info-header", "title"]),
1096
- u(l(Ke), {
1096
+ d(l(Ke), {
1097
1097
  description: l(r)("gateway_services.form.sections.keys.description"),
1098
1098
  "hide-info-header": n.hideSectionsInfo,
1099
1099
  title: l(r)("gateway_services.form.sections.keys.title")
@@ -1101,7 +1101,7 @@ const me = {
1101
1101
  default: v(() => [
1102
1102
  ce.value ? B("", !0) : (S(), U("div", qt, [
1103
1103
  I("div", Gt, [
1104
- u(X, { required: "" }, {
1104
+ d(X, { required: "" }, {
1105
1105
  default: v(() => [
1106
1106
  J(E(l(r)("gateway_services.form.sections.keys.checkedGroupLabel")), 1)
1107
1107
  ]),
@@ -1109,12 +1109,12 @@ const me = {
1109
1109
  })
1110
1110
  ]),
1111
1111
  I("div", Ot, [
1112
- u(L, {
1112
+ d(L, {
1113
1113
  modelValue: x.value,
1114
- "onUpdate:modelValue": d[2] || (d[2] = (m) => x.value = m),
1114
+ "onUpdate:modelValue": u[2] || (u[2] = (m) => x.value = m),
1115
1115
  "data-testid": "gateway-service-url-radio",
1116
1116
  "selected-value": ke.url,
1117
- onChange: ue
1117
+ onChange: de
1118
1118
  }, {
1119
1119
  default: v(() => [
1120
1120
  J(E(l(r)("gateway_services.form.sections.keys.urlLabel")), 1)
@@ -1123,9 +1123,9 @@ const me = {
1123
1123
  }, 8, ["modelValue", "selected-value"])
1124
1124
  ]),
1125
1125
  x.value === "url" ? (S(), U("div", Nt, [
1126
- u(V, {
1126
+ d(V, {
1127
1127
  modelValue: o.fields.url,
1128
- "onUpdate:modelValue": d[3] || (d[3] = (m) => o.fields.url = m),
1128
+ "onUpdate:modelValue": u[3] || (u[3] = (m) => o.fields.url = m),
1129
1129
  modelModifiers: { trim: !0 },
1130
1130
  class: "gateway-service-url-input gateway-service-form-margin-bottom",
1131
1131
  "data-testid": "gateway-service-url-input",
@@ -1139,13 +1139,13 @@ const me = {
1139
1139
  required: ""
1140
1140
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1141
1141
  ])) : B("", !0),
1142
- u(L, {
1142
+ d(L, {
1143
1143
  modelValue: x.value,
1144
- "onUpdate:modelValue": d[4] || (d[4] = (m) => x.value = m),
1144
+ "onUpdate:modelValue": u[4] || (u[4] = (m) => x.value = m),
1145
1145
  "checked-group": "protocol",
1146
1146
  "data-testid": "gateway-service-protocol-radio",
1147
1147
  "selected-value": ke.protocol,
1148
- onChange: ue
1148
+ onChange: de
1149
1149
  }, {
1150
1150
  default: v(() => [
1151
1151
  J(E(l(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")), 1)
@@ -1154,9 +1154,9 @@ const me = {
1154
1154
  }, 8, ["modelValue", "selected-value"])
1155
1155
  ])),
1156
1156
  x.value === "protocol" || ce.value ? (S(), U("div", jt, [
1157
- u(T, {
1157
+ d(T, {
1158
1158
  modelValue: o.fields.protocol,
1159
- "onUpdate:modelValue": d[5] || (d[5] = (m) => o.fields.protocol = m),
1159
+ "onUpdate:modelValue": u[5] || (u[5] = (m) => o.fields.protocol = m),
1160
1160
  "data-testid": "gateway-service-protocol-select",
1161
1161
  items: ye,
1162
1162
  label: l(r)("gateway_services.form.fields.protocol.label"),
@@ -1167,11 +1167,11 @@ const me = {
1167
1167
  readonly: o.isReadonly,
1168
1168
  required: "",
1169
1169
  width: "100%",
1170
- onSelected: d[6] || (d[6] = (m) => e(o.fields.protocol, m))
1170
+ onSelected: u[6] || (u[6] = (m) => e(o.fields.protocol, m))
1171
1171
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1172
- u(V, {
1172
+ d(V, {
1173
1173
  modelValue: o.fields.host,
1174
- "onUpdate:modelValue": d[7] || (d[7] = (m) => o.fields.host = m),
1174
+ "onUpdate:modelValue": u[7] || (u[7] = (m) => o.fields.host = m),
1175
1175
  modelModifiers: { trim: !0 },
1176
1176
  class: "gateway-service-form-margin-top",
1177
1177
  "data-testid": "gateway-service-host-input",
@@ -1185,9 +1185,9 @@ const me = {
1185
1185
  required: ""
1186
1186
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
1187
1187
  se.value ? (S(), U("div", zt, [
1188
- u(V, {
1188
+ d(V, {
1189
1189
  modelValue: o.fields.path,
1190
- "onUpdate:modelValue": d[8] || (d[8] = (m) => o.fields.path = m),
1190
+ "onUpdate:modelValue": u[8] || (u[8] = (m) => o.fields.path = m),
1191
1191
  modelModifiers: { trim: !0 },
1192
1192
  class: "gateway-service-form-margin-top",
1193
1193
  "data-testid": "gateway-service-path-input",
@@ -1200,11 +1200,11 @@ const me = {
1200
1200
  placeholder: l(r)("gateway_services.form.fields.path.placeholder")
1201
1201
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
1202
1202
  ])) : B("", !0),
1203
- u(V, {
1203
+ d(V, {
1204
1204
  modelValue: o.fields.port,
1205
1205
  "onUpdate:modelValue": [
1206
- d[9] || (d[9] = (m) => o.fields.port = m),
1207
- d[10] || (d[10] = () => {
1206
+ u[9] || (u[9] = (m) => o.fields.port = m),
1207
+ u[10] || (u[10] = () => {
1208
1208
  o.fields.port = A(o.fields.port + "");
1209
1209
  })
1210
1210
  ],
@@ -1219,9 +1219,9 @@ const me = {
1219
1219
  type: "number"
1220
1220
  }, null, 8, ["modelValue", "label", "label-attributes"])
1221
1221
  ])) : B("", !0),
1222
- u(g, {
1222
+ d(g, {
1223
1223
  modelValue: b.value,
1224
- "onUpdate:modelValue": d[24] || (d[24] = (m) => b.value = m),
1224
+ "onUpdate:modelValue": u[24] || (u[24] = (m) => b.value = m),
1225
1225
  "data-testid": "advanced-fields-collapse",
1226
1226
  "trigger-alignment": "leading",
1227
1227
  "trigger-label": l(r)("gateway_services.form.sections.keys.viewAdvancedFields")
@@ -1229,11 +1229,11 @@ const me = {
1229
1229
  default: v(() => [
1230
1230
  I("div", Ht, [
1231
1231
  I("div", Zt, [
1232
- u(V, {
1232
+ d(V, {
1233
1233
  modelValue: o.fields.retries,
1234
1234
  "onUpdate:modelValue": [
1235
- d[11] || (d[11] = (m) => o.fields.retries = m),
1236
- d[12] || (d[12] = () => {
1235
+ u[11] || (u[11] = (m) => o.fields.retries = m),
1236
+ u[12] || (u[12] = () => {
1237
1237
  o.fields.retries = A(o.fields.retries + "");
1238
1238
  })
1239
1239
  ],
@@ -1250,11 +1250,11 @@ const me = {
1250
1250
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1251
1251
  ]),
1252
1252
  I("div", Jt, [
1253
- u(V, {
1253
+ d(V, {
1254
1254
  modelValue: o.fields.connect_timeout,
1255
1255
  "onUpdate:modelValue": [
1256
- d[13] || (d[13] = (m) => o.fields.connect_timeout = m),
1257
- d[14] || (d[14] = () => {
1256
+ u[13] || (u[13] = (m) => o.fields.connect_timeout = m),
1257
+ u[14] || (u[14] = () => {
1258
1258
  o.fields.connect_timeout = A(o.fields.connect_timeout + "");
1259
1259
  })
1260
1260
  ],
@@ -1271,11 +1271,11 @@ const me = {
1271
1271
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1272
1272
  ]),
1273
1273
  I("div", Qt, [
1274
- u(V, {
1274
+ d(V, {
1275
1275
  modelValue: o.fields.write_timeout,
1276
1276
  "onUpdate:modelValue": [
1277
- d[15] || (d[15] = (m) => o.fields.write_timeout = m),
1278
- d[16] || (d[16] = () => {
1277
+ u[15] || (u[15] = (m) => o.fields.write_timeout = m),
1278
+ u[16] || (u[16] = () => {
1279
1279
  o.fields.write_timeout = A(o.fields.write_timeout + "");
1280
1280
  })
1281
1281
  ],
@@ -1292,11 +1292,11 @@ const me = {
1292
1292
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1293
1293
  ]),
1294
1294
  I("div", Xt, [
1295
- u(V, {
1295
+ d(V, {
1296
1296
  modelValue: o.fields.read_timeout,
1297
1297
  "onUpdate:modelValue": [
1298
- d[17] || (d[17] = (m) => o.fields.read_timeout = m),
1299
- d[18] || (d[18] = () => {
1298
+ u[17] || (u[17] = (m) => o.fields.read_timeout = m),
1299
+ u[18] || (u[18] = () => {
1300
1300
  o.fields.read_timeout = A(o.fields.read_timeout + "");
1301
1301
  })
1302
1302
  ],
@@ -1313,9 +1313,9 @@ const me = {
1313
1313
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1314
1314
  ]),
1315
1315
  Pe.value ? (S(), U("div", Yt, [
1316
- u(V, {
1316
+ d(V, {
1317
1317
  modelValue: o.fields.client_certificate,
1318
- "onUpdate:modelValue": d[19] || (d[19] = (m) => o.fields.client_certificate = m),
1318
+ "onUpdate:modelValue": u[19] || (u[19] = (m) => o.fields.client_certificate = m),
1319
1319
  modelModifiers: { trim: !0 },
1320
1320
  autocomplete: "off",
1321
1321
  "data-testid": "gateway-service-clientCert-input",
@@ -1331,9 +1331,9 @@ const me = {
1331
1331
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
1332
1332
  ])) : B("", !0),
1333
1333
  oe.value ? (S(), U("div", el, [
1334
- u(V, {
1334
+ d(V, {
1335
1335
  modelValue: o.fields.ca_certificates,
1336
- "onUpdate:modelValue": d[20] || (d[20] = (m) => o.fields.ca_certificates = m),
1336
+ "onUpdate:modelValue": u[20] || (u[20] = (m) => o.fields.ca_certificates = m),
1337
1337
  modelModifiers: { trim: !0 },
1338
1338
  autocomplete: "off",
1339
1339
  "data-testid": "gateway-service-ca-certs-input",
@@ -1344,7 +1344,7 @@ const me = {
1344
1344
  type: "text"
1345
1345
  }, {
1346
1346
  "label-tooltip": v(() => [
1347
- u(l(Q), {
1347
+ d(l(Q), {
1348
1348
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1349
1349
  scope: "global"
1350
1350
  }, {
@@ -1361,16 +1361,16 @@ const me = {
1361
1361
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
1362
1362
  ])) : B("", !0),
1363
1363
  Ve.value ? (S(), U("div", tl, [
1364
- u(c, {
1364
+ d(c, {
1365
1365
  modelValue: o.fields.tls_verify_enabled,
1366
- "onUpdate:modelValue": d[21] || (d[21] = (m) => o.fields.tls_verify_enabled = m),
1366
+ "onUpdate:modelValue": u[21] || (u[21] = (m) => o.fields.tls_verify_enabled = m),
1367
1367
  "data-testid": "gateway-service-tls-verify-checkbox",
1368
1368
  description: l(r)("gateway_services.form.fields.tls_verify_enabled.help"),
1369
1369
  label: l(r)("gateway_services.form.fields.tls_verify_enabled.label"),
1370
1370
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
1371
1371
  }, {
1372
1372
  tooltip: v(() => [
1373
- u(l(Q), {
1373
+ d(l(Q), {
1374
1374
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1375
1375
  scope: "global"
1376
1376
  }, {
@@ -1383,18 +1383,18 @@ const me = {
1383
1383
  _: 1
1384
1384
  }, 8, ["modelValue", "description", "label"]),
1385
1385
  o.fields.tls_verify_enabled ? (S(), U("div", ll, [
1386
- u(L, {
1386
+ d(L, {
1387
1387
  modelValue: o.fields.tls_verify_value,
1388
- "onUpdate:modelValue": d[22] || (d[22] = (m) => o.fields.tls_verify_value = m),
1388
+ "onUpdate:modelValue": u[22] || (u[22] = (m) => o.fields.tls_verify_value = m),
1389
1389
  "data-testid": "gateway-service-tls-verify-true-option",
1390
1390
  label: l(r)("gateway_services.form.fields.tls_verify_option.true.label"),
1391
1391
  "selected-value": !0
1392
1392
  }, null, 8, ["modelValue", "label"])
1393
1393
  ])) : B("", !0),
1394
1394
  o.fields.tls_verify_enabled ? (S(), U("div", ol, [
1395
- u(L, {
1395
+ d(L, {
1396
1396
  modelValue: o.fields.tls_verify_value,
1397
- "onUpdate:modelValue": d[23] || (d[23] = (m) => o.fields.tls_verify_value = m),
1397
+ "onUpdate:modelValue": u[23] || (u[23] = (m) => o.fields.tls_verify_value = m),
1398
1398
  "data-testid": "gateway-service-tls-verify-false-option",
1399
1399
  label: l(r)("gateway_services.form.fields.tls_verify_option.false.label"),
1400
1400
  "selected-value": !1
@@ -1502,7 +1502,7 @@ const me = {
1502
1502
  }
1503
1503
  });
1504
1504
  return (r, D) => (S(), U("div", rl, [
1505
- u(l(Vt), {
1505
+ d(l(Vt), {
1506
1506
  config: n.config,
1507
1507
  "config-card-doc": n.configCardDoc,
1508
1508
  "config-schema": Q.value,
@@ -1514,7 +1514,7 @@ const me = {
1514
1514
  onLoading: D[2] || (D[2] = (P) => r.$emit("loading", P))
1515
1515
  }, {
1516
1516
  "enabled-label-tooltip": v(() => [
1517
- u(l(p), {
1517
+ d(l(p), {
1518
1518
  keypath: "gateway_services.form.fields.enabled.tooltip",
1519
1519
  scope: "global"
1520
1520
  }, {
@@ -1528,7 +1528,7 @@ const me = {
1528
1528
  })
1529
1529
  ]),
1530
1530
  "ca_certificates-label-tooltip": v(() => [
1531
- u(l(p), {
1531
+ d(l(p), {
1532
1532
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
1533
1533
  scope: "global"
1534
1534
  }, {
@@ -1542,7 +1542,7 @@ const me = {
1542
1542
  })
1543
1543
  ]),
1544
1544
  "tls_verify-label-tooltip": v(() => [
1545
- u(l(p), {
1545
+ d(l(p), {
1546
1546
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
1547
1547
  scope: "global"
1548
1548
  }, {
@@ -1613,7 +1613,7 @@ const le = {
1613
1613
  }, nl = { class: "kong-ui-entities-gateway-service-form" }, cl = {
1614
1614
  key: 0,
1615
1615
  class: "gateway-service-form-general-info"
1616
- }, ul = { class: "gateway-service-form-group-selection-wrapper" }, dl = {
1616
+ }, dl = { class: "gateway-service-form-group-selection-wrapper" }, ul = {
1617
1617
  key: 0,
1618
1618
  class: "gateway-service-form-group-fields"
1619
1619
  }, fl = {
@@ -1720,7 +1720,7 @@ const le = {
1720
1720
  tls_verify_enabled: !1,
1721
1721
  tls_verify_value: !1,
1722
1722
  tags: ""
1723
- }), ue = s.config.app === "konnect" || tt({
1723
+ }), de = s.config.app === "konnect" || tt({
1724
1724
  gatewayInfo: s.config.gatewayInfo,
1725
1725
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
1726
1726
  supportedRange: {
@@ -1762,7 +1762,7 @@ const le = {
1762
1762
  value: "grpcs",
1763
1763
  group: "grpc"
1764
1764
  },
1765
- ...ue ? [
1765
+ ...de ? [
1766
1766
  {
1767
1767
  label: r("gateway_services.form.fields.protocol.options.ws"),
1768
1768
  value: "ws",
@@ -1785,7 +1785,7 @@ const le = {
1785
1785
  e.fields.host = A.host, e.fields.path = A.path, e.fields.port = A.port, e.fields.protocol = A.protocol, e.fields.url = A.url, e.fields.retries = A.retries, e.fields.connect_timeout = A.connect_timeout, e.fields.write_timeout = A.write_timeout, e.fields.read_timeout = A.read_timeout, e.fields.client_certificate = A.client_certificate, e.fields.ca_certificates = A.ca_certificates, e.fields.tls_verify_enabled = A.tls_verify_enabled, e.fields.tls_verify_value = A.tls_verify_value;
1786
1786
  }, Ce = () => {
1787
1787
  b.value = !0, Z(), e.errorMessages = [], Ve();
1788
- }, de = () => {
1788
+ }, ue = () => {
1789
1789
  switch (Ve(), e.fields.name = `${le.name}-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, w.value) {
1790
1790
  case "url":
1791
1791
  e.fields.url = `${le.protocol}://${le.host}${le.path}`;
@@ -1843,7 +1843,7 @@ const le = {
1843
1843
  return !0;
1844
1844
  }), ae = () => {
1845
1845
  e.fields.url && w.value === "url" ? _e() : H();
1846
- }, i = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, d = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), V = k(() => {
1846
+ }, i = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, u = k(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), V = k(() => {
1847
1847
  if (w.value === "url")
1848
1848
  return !0;
1849
1849
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
@@ -1898,7 +1898,7 @@ const le = {
1898
1898
  port: e.fields.port,
1899
1899
  url: e.fields.url
1900
1900
  };
1901
- return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), d.value || (t.path = null), z.value === "create" ? w.value === "url" ? (delete t.protocol, delete t.host, delete t.path, s.config.app === "konnect" && delete t.port) : delete t.url : z.value === "edit" && delete t.url, t;
1901
+ return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), u.value || (t.path = null), z.value === "create" ? w.value === "url" ? (delete t.protocol, delete t.host, delete t.path, s.config.app === "konnect" && delete t.port) : delete t.url : z.value === "edit" && delete t.url, t;
1902
1902
  }), pe = async () => {
1903
1903
  var t, a, F, j;
1904
1904
  try {
@@ -1939,7 +1939,7 @@ const le = {
1939
1939
  }), (t, a) => {
1940
1940
  const F = G("KRadio"), j = G("KButton"), $ = G("KInput"), R = G("KSelect"), f = G("KCheckbox"), he = G("KCollapse"), Se = G("KAlert");
1941
1941
  return S(), U("div", nl, [
1942
- u(l(lt), {
1942
+ d(l(lt), {
1943
1943
  "can-submit": c.value,
1944
1944
  config: n.config,
1945
1945
  "edit-id": n.gatewayServiceId,
@@ -1961,15 +1961,15 @@ const le = {
1961
1961
  }, void 0, !0)
1962
1962
  ]),
1963
1963
  default: v(() => [
1964
- u(l(Ke), {
1964
+ d(l(Ke), {
1965
1965
  description: l(r)("gateway_services.form.sections.keys.description"),
1966
1966
  "hide-info-header": n.hideSectionsInfo,
1967
1967
  title: l(r)("gateway_services.form.sections.keys.title")
1968
1968
  }, {
1969
1969
  default: v(() => [
1970
1970
  o.value ? B("", !0) : (S(), U("div", cl, [
1971
- I("div", ul, [
1972
- u(F, {
1971
+ I("div", dl, [
1972
+ d(F, {
1973
1973
  modelValue: w.value,
1974
1974
  "onUpdate:modelValue": a[0] || (a[0] = (_) => w.value = _),
1975
1975
  card: "",
@@ -1980,7 +1980,7 @@ const le = {
1980
1980
  "selected-value": se.url,
1981
1981
  onChange: Ce
1982
1982
  }, null, 8, ["modelValue", "description", "label", "selected-value"]),
1983
- u(F, {
1983
+ d(F, {
1984
1984
  modelValue: w.value,
1985
1985
  "onUpdate:modelValue": a[1] || (a[1] = (_) => w.value = _),
1986
1986
  card: "",
@@ -1993,10 +1993,10 @@ const le = {
1993
1993
  onChange: Ce
1994
1994
  }, null, 8, ["modelValue", "description", "label", "selected-value"])
1995
1995
  ]),
1996
- u(De, { name: "slide-fade" }, {
1996
+ d(De, { name: "slide-fade" }, {
1997
1997
  default: v(() => [
1998
- w.value === "url" ? (S(), U("div", dl, [
1999
- u($, {
1998
+ w.value === "url" ? (S(), U("div", ul, [
1999
+ d($, {
2000
2000
  modelValue: e.fields.url,
2001
2001
  "onUpdate:modelValue": a[2] || (a[2] = (_) => e.fields.url = _),
2002
2002
  modelModifiers: { trim: !0 },
@@ -2017,10 +2017,11 @@ const le = {
2017
2017
  n.hideTrySampleApiButton ? void 0 : {
2018
2018
  name: "after",
2019
2019
  fn: v(() => [
2020
- u(j, {
2020
+ d(j, {
2021
2021
  appearance: "tertiary",
2022
+ "data-testid": "try-sample-api",
2022
2023
  size: "small",
2023
- onClick: de
2024
+ onClick: ue
2024
2025
  }, {
2025
2026
  default: v(() => [
2026
2027
  J(E(l(r)("gateway_services.form.buttons.try_sample")), 1)
@@ -2036,10 +2037,10 @@ const le = {
2036
2037
  _: 1
2037
2038
  })
2038
2039
  ])),
2039
- u(De, { name: "slide-fade" }, {
2040
+ d(De, { name: "slide-fade" }, {
2040
2041
  default: v(() => [
2041
2042
  w.value === "protocol" || o.value ? (S(), U("div", fl, [
2042
- u(R, {
2043
+ d(R, {
2043
2044
  modelValue: e.fields.protocol,
2044
2045
  "onUpdate:modelValue": a[3] || (a[3] = (_) => e.fields.protocol = _),
2045
2046
  "data-testid": "gateway-service-protocol-select",
@@ -2054,7 +2055,7 @@ const le = {
2054
2055
  width: "100%",
2055
2056
  onSelected: a[4] || (a[4] = (_) => Pe(e.fields.protocol, _))
2056
2057
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2057
- u($, {
2058
+ d($, {
2058
2059
  modelValue: e.fields.host,
2059
2060
  "onUpdate:modelValue": a[5] || (a[5] = (_) => e.fields.host = _),
2060
2061
  modelModifiers: { trim: !0 },
@@ -2075,10 +2076,10 @@ const le = {
2075
2076
  n.hideTrySampleApiButton ? void 0 : {
2076
2077
  name: "after",
2077
2078
  fn: v(() => [
2078
- u(j, {
2079
+ d(j, {
2079
2080
  appearance: "tertiary",
2080
2081
  size: "small",
2081
- onClick: de
2082
+ onClick: ue
2082
2083
  }, {
2083
2084
  default: v(() => [
2084
2085
  J(E(l(r)("gateway_services.form.buttons.try_sample")), 1)
@@ -2089,8 +2090,8 @@ const le = {
2089
2090
  key: "0"
2090
2091
  }
2091
2092
  ]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"]),
2092
- d.value ? (S(), U("div", pl, [
2093
- u($, {
2093
+ u.value ? (S(), U("div", pl, [
2094
+ d($, {
2094
2095
  modelValue: e.fields.path,
2095
2096
  "onUpdate:modelValue": a[7] || (a[7] = (_) => e.fields.path = _),
2096
2097
  modelModifiers: { trim: !0 },
@@ -2108,7 +2109,7 @@ const le = {
2108
2109
  onInput: a[8] || (a[8] = (_) => l(H)("path"))
2109
2110
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
2110
2111
  ])) : B("", !0),
2111
- u($, {
2112
+ d($, {
2112
2113
  modelValue: e.fields.port,
2113
2114
  "onUpdate:modelValue": [
2114
2115
  a[9] || (a[9] = (_) => e.fields.port = _),
@@ -2133,7 +2134,7 @@ const le = {
2133
2134
  ]),
2134
2135
  _: 1
2135
2136
  }),
2136
- u(he, {
2137
+ d(he, {
2137
2138
  modelValue: b.value,
2138
2139
  "onUpdate:modelValue": a[27] || (a[27] = (_) => b.value = _),
2139
2140
  "data-testid": "advanced-fields-collapse",
@@ -2141,11 +2142,11 @@ const le = {
2141
2142
  "trigger-label": l(r)("gateway_services.form.sections.keys.viewAdvancedFields")
2142
2143
  }, {
2143
2144
  default: v(() => [
2144
- u(De, { name: "slide-fade" }, {
2145
+ d(De, { name: "slide-fade" }, {
2145
2146
  default: v(() => [
2146
2147
  b.value ? B("", !0) : (S(), U("div", ml, [
2147
2148
  I("div", vl, [
2148
- u($, {
2149
+ d($, {
2149
2150
  modelValue: e.fields.retries,
2150
2151
  "onUpdate:modelValue": [
2151
2152
  a[12] || (a[12] = (_) => e.fields.retries = _),
@@ -2166,7 +2167,7 @@ const le = {
2166
2167
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2167
2168
  ]),
2168
2169
  I("div", gl, [
2169
- u($, {
2170
+ d($, {
2170
2171
  modelValue: e.fields.connect_timeout,
2171
2172
  "onUpdate:modelValue": [
2172
2173
  a[14] || (a[14] = (_) => e.fields.connect_timeout = _),
@@ -2187,7 +2188,7 @@ const le = {
2187
2188
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2188
2189
  ]),
2189
2190
  I("div", yl, [
2190
- u($, {
2191
+ d($, {
2191
2192
  modelValue: e.fields.write_timeout,
2192
2193
  "onUpdate:modelValue": [
2193
2194
  a[16] || (a[16] = (_) => e.fields.write_timeout = _),
@@ -2208,7 +2209,7 @@ const le = {
2208
2209
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2209
2210
  ]),
2210
2211
  I("div", _l, [
2211
- u($, {
2212
+ d($, {
2212
2213
  modelValue: e.fields.read_timeout,
2213
2214
  "onUpdate:modelValue": [
2214
2215
  a[18] || (a[18] = (_) => e.fields.read_timeout = _),
@@ -2229,7 +2230,7 @@ const le = {
2229
2230
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2230
2231
  ]),
2231
2232
  V.value ? (S(), U("div", bl, [
2232
- u($, {
2233
+ d($, {
2233
2234
  modelValue: e.fields.client_certificate,
2234
2235
  "onUpdate:modelValue": a[20] || (a[20] = (_) => e.fields.client_certificate = _),
2235
2236
  modelModifiers: { trim: !0 },
@@ -2249,7 +2250,7 @@ const le = {
2249
2250
  }, null, 8, ["modelValue", "error", "label", "label-attributes", "placeholder", "readonly"])
2250
2251
  ])) : B("", !0),
2251
2252
  X.value ? (S(), U("div", hl, [
2252
- u($, {
2253
+ d($, {
2253
2254
  modelValue: e.fields.ca_certificates,
2254
2255
  "onUpdate:modelValue": a[22] || (a[22] = (_) => e.fields.ca_certificates = _),
2255
2256
  modelModifiers: { trim: !0 },
@@ -2264,7 +2265,7 @@ const le = {
2264
2265
  onInput: a[23] || (a[23] = (_) => l(be)("ca_certificates"))
2265
2266
  }, {
2266
2267
  "label-tooltip": v(() => [
2267
- u(l(Q), {
2268
+ d(l(Q), {
2268
2269
  keypath: "gateway_services.form.fields.ca_certificates.tooltip",
2269
2270
  scope: "global"
2270
2271
  }, {
@@ -2281,7 +2282,7 @@ const le = {
2281
2282
  }, 8, ["modelValue", "error", "label", "placeholder", "readonly"])
2282
2283
  ])) : B("", !0),
2283
2284
  L.value ? (S(), U("div", wl, [
2284
- u(f, {
2285
+ d(f, {
2285
2286
  modelValue: e.fields.tls_verify_enabled,
2286
2287
  "onUpdate:modelValue": a[24] || (a[24] = (_) => e.fields.tls_verify_enabled = _),
2287
2288
  "data-testid": "gateway-service-tls-verify-checkbox",
@@ -2290,7 +2291,7 @@ const le = {
2290
2291
  "label-attributes": { tooltipAttributes: { maxWidth: "400" } }
2291
2292
  }, {
2292
2293
  tooltip: v(() => [
2293
- u(l(Q), {
2294
+ d(l(Q), {
2294
2295
  keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
2295
2296
  scope: "global"
2296
2297
  }, {
@@ -2303,7 +2304,7 @@ const le = {
2303
2304
  _: 1
2304
2305
  }, 8, ["modelValue", "description", "label"]),
2305
2306
  e.fields.tls_verify_enabled ? (S(), U("div", kl, [
2306
- u(F, {
2307
+ d(F, {
2307
2308
  modelValue: e.fields.tls_verify_value,
2308
2309
  "onUpdate:modelValue": a[25] || (a[25] = (_) => e.fields.tls_verify_value = _),
2309
2310
  "data-testid": "gateway-service-tls-verify-true-option",
@@ -2312,7 +2313,7 @@ const le = {
2312
2313
  }, null, 8, ["modelValue", "label"])
2313
2314
  ])) : B("", !0),
2314
2315
  e.fields.tls_verify_enabled ? (S(), U("div", Vl, [
2315
- u(F, {
2316
+ d(F, {
2316
2317
  modelValue: e.fields.tls_verify_value,
2317
2318
  "onUpdate:modelValue": a[26] || (a[26] = (_) => e.fields.tls_verify_value = _),
2318
2319
  "data-testid": "gateway-service-tls-verify-false-option",
@@ -2331,13 +2332,13 @@ const le = {
2331
2332
  ]),
2332
2333
  _: 1
2333
2334
  }, 8, ["description", "hide-info-header", "title"]),
2334
- u(l(Ke), {
2335
+ d(l(Ke), {
2335
2336
  description: l(r)("gateway_services.form.sections.general.description"),
2336
2337
  "hide-info-header": n.hideSectionsInfo,
2337
2338
  title: l(r)("gateway_services.form.sections.general.title")
2338
2339
  }, {
2339
2340
  default: v(() => [
2340
- u($, {
2341
+ d($, {
2341
2342
  modelValue: e.fields.name,
2342
2343
  "onUpdate:modelValue": a[28] || (a[28] = (_) => e.fields.name = _),
2343
2344
  modelModifiers: { trim: !0 },
@@ -2356,14 +2357,14 @@ const le = {
2356
2357
  type: "text",
2357
2358
  onInput: T
2358
2359
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
2359
- u(he, {
2360
+ d(he, {
2360
2361
  "data-testid": "tags-collapse",
2361
2362
  "trigger-alignment": "leading",
2362
2363
  "trigger-label": l(r)("gateway_services.form.fields.tags.collapse")
2363
2364
  }, {
2364
2365
  default: v(() => [
2365
2366
  I("div", Cl, [
2366
- u($, {
2367
+ d($, {
2367
2368
  modelValue: e.fields.tags,
2368
2369
  "onUpdate:modelValue": a[29] || (a[29] = (_) => e.fields.tags = _),
2369
2370
  modelModifiers: { trim: !0 },
@@ -2404,7 +2405,7 @@ const le = {
2404
2405
  ]);
2405
2406
  };
2406
2407
  }
2407
- }), Rl = /* @__PURE__ */ je(Il, [["__scopeId", "data-v-1e0946bb"]]);
2408
+ }), Rl = /* @__PURE__ */ je(Il, [["__scopeId", "data-v-0200f215"]]);
2408
2409
  export {
2409
2410
  Tl as GatewayServiceConfigCard,
2410
2411
  Rl as GatewayServiceForm,