@kong-ui-public/entities-gateway-services 3.8.18 → 3.8.19

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 Se, ref as V, computed as h, watch as Ve, onBeforeMount as Ae, resolveComponent as R, openBlock as w, createElementBlock as T, createVNode as u, unref as o, withCtx as p, createBlock as ne, Teleport as Fe, withDirectives as $e, createTextVNode as E, toDisplayString as _, vShow as Be, createElementVNode as S, withModifiers as ce, Fragment as De, renderList as Le, reactive as Te, onMounted as Ge, renderSlot as Ke, createCommentVNode as L } from "vue";
1
+ import { defineComponent as Se, ref as V, computed as h, watch as Ve, onBeforeMount as Ae, resolveComponent as R, openBlock as w, createElementBlock as I, createVNode as u, unref as o, withCtx as p, createBlock as ne, Teleport as Fe, withDirectives as $e, createTextVNode as E, toDisplayString as _, vShow as De, createElementVNode as S, withModifiers as ce, Fragment as Be, renderList as Le, reactive as Ie, onMounted as Ge, renderSlot as Ke, createCommentVNode as L } from "vue";
2
2
  import { useRouter as Ee } from "vue-router";
3
3
  import { AddIcon as qe } from "@kong/icons";
4
4
  import { createI18n as Ne, i18nTComponent as We } from "@kong-ui-public/i18n";
5
- import { useAxios as Me, useFetcher as Oe, useDeleteUrlBuilder as je, FetcherStatus as Ie, EntityBaseTable as He, EntityFilter as Je, PermissionsWrapper as oe, EntityToggleModal as ze, EntityDeleteModal as Qe, EntityTypes as Xe, useErrors as Ye, useValidators as Ze, EntityBaseFormType as Pe, useGatewayFeatureSupported as et, EntityBaseForm as tt, SupportedEntityType as Re, EntityFormSection as Ue, useHelpers as lt, ConfigurationSchemaSection as de, ConfigurationSchemaType as ot, EntityBaseConfigCard as it } from "@kong-ui-public/entities-shared";
5
+ import { useAxios as Me, useFetcher as Oe, useDeleteUrlBuilder as je, FetcherStatus as Te, EntityBaseTable as He, EntityFilter as Je, PermissionsWrapper as oe, EntityToggleModal as ze, EntityDeleteModal as Qe, EntityTypes as Xe, useErrors as Ye, useValidators as Ze, EntityBaseFormType as Pe, useGatewayFeatureSupported as et, EntityBaseForm as tt, SupportedEntityType as Re, EntityFormSection as Ue, useHelpers as lt, ConfigurationSchemaSection as de, ConfigurationSchemaType as ot, EntityBaseConfigCard as it } from "@kong-ui-public/entities-shared";
6
6
  const st = {
7
7
  create: "New Gateway Service",
8
8
  serverless_create: "Add a Service",
@@ -288,7 +288,7 @@ const pe = {
288
288
  emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
289
289
  setup(n, { emit: $ }) {
290
290
  var U;
291
- const m = $, d = n, { i18n: { t: r, formatUnixTimeStamp: x } } = pe.useI18n(), O = Ee(), { axiosInstance: G } = Me((U = d.config) == null ? void 0 : U.axiosRequestConfig), s = V(1), I = h(() => d.config.app !== "kongManager" || !!d.config.disableSorting), b = {
291
+ const m = $, d = n, { i18n: { t: r, formatUnixTimeStamp: x } } = pe.useI18n(), O = Ee(), { axiosInstance: G } = Me((U = d.config) == null ? void 0 : U.axiosRequestConfig), s = V(1), T = h(() => d.config.app !== "kongManager" || !!d.config.disableSorting), b = {
292
292
  // the Name column is non-hidable
293
293
  name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
294
294
  ...d.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
@@ -308,7 +308,7 @@ const pe = {
308
308
  var f, l;
309
309
  let a = `${d.config.apiBaseUrl}${ie.list[d.config.app].all}`;
310
310
  return d.config.app === "konnect" ? a = a.replace(/{controlPlaneId}/gi, ((f = d.config) == null ? void 0 : f.controlPlaneId) || "") : d.config.app === "kongManager" && (a = a.replace(/\/{workspace}/gi, (l = d.config) != null && l.workspace ? `/${d.config.workspace}` : "")), a;
311
- }), ye = h(() => d.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${F.value}`) : new URL(F.value)), B = V(""), k = h(() => {
311
+ }), ye = h(() => d.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${F.value}`) : new URL(F.value)), D = V(""), k = h(() => {
312
312
  const a = d.config.app === "konnect" || d.config.isExactMatch;
313
313
  if (a)
314
314
  return {
@@ -322,7 +322,7 @@ const pe = {
322
322
  schema: d.config.filterSchema
323
323
  };
324
324
  }), { fetcher: H, fetcherState: J } = Oe(d.config, F.value), ge = () => {
325
- B.value = "";
325
+ D.value = "";
326
326
  }, e = () => {
327
327
  s.value++;
328
328
  }, g = V(null), z = V(!1), _e = h(() => ({
@@ -330,7 +330,7 @@ const pe = {
330
330
  ctaText: y.value ? d.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
331
331
  message: `${r("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
332
332
  title: y.value ? d.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
333
- })), j = V(!1), P = V(null), D = h(() => {
333
+ })), j = V(!1), P = V(null), B = h(() => {
334
334
  const a = {
335
335
  action: "disable",
336
336
  id: "",
@@ -415,7 +415,7 @@ const pe = {
415
415
  }, i = V(!1);
416
416
  Ve(J, (a) => {
417
417
  var f, l, C, c;
418
- if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status === Ie.NoRecords ? z.value = !0 : z.value = !1, a.status === Ie.Error) {
418
+ if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status === Te.NoRecords ? z.value = !0 : z.value = !1, a.status === Te.Error) {
419
419
  g.value = {
420
420
  title: r("errors.general")
421
421
  }, (c = (C = (l = a.error) == null ? void 0 : l.response) == null ? void 0 : C.data) != null && c.message && (g.value.message = a.error.response.data.message), m("error", a.error);
@@ -428,11 +428,11 @@ const pe = {
428
428
  y.value = await d.canCreate();
429
429
  }), (a, f) => {
430
430
  const l = R("KButton"), C = R("KBadge"), c = R("KInputSwitch"), N = R("KTruncate"), W = R("KDropdownItem"), Ce = R("KClipboardProvider");
431
- return w(), T("div", mt, [
431
+ return w(), I("div", mt, [
432
432
  u(o(He), {
433
433
  "cache-identifier": n.cacheIdentifier,
434
434
  "default-table-preferences": me,
435
- "disable-sorting": I.value,
435
+ "disable-sorting": T.value,
436
436
  "empty-state-options": _e.value,
437
437
  "enable-entity-actions": "",
438
438
  "error-message": g.value,
@@ -441,7 +441,7 @@ const pe = {
441
441
  "hide-toolbar": z.value,
442
442
  "pagination-type": "offset",
443
443
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
444
- query: B.value,
444
+ query: D.value,
445
445
  "table-headers": o(ve),
446
446
  onClearSearchInput: ge,
447
447
  "onClick:row": f[3] || (f[3] = (v) => ke(v)),
@@ -449,8 +449,8 @@ const pe = {
449
449
  }, {
450
450
  "toolbar-filter": p(() => [
451
451
  u(o(Je), {
452
- modelValue: B.value,
453
- "onUpdate:modelValue": f[0] || (f[0] = (v) => B.value = v),
452
+ modelValue: D.value,
453
+ "onUpdate:modelValue": f[0] || (f[0] = (v) => D.value = v),
454
454
  config: k.value
455
455
  }, null, 8, ["modelValue", "config"])
456
456
  ]),
@@ -475,7 +475,7 @@ const pe = {
475
475
  ]),
476
476
  _: 1
477
477
  }, 8, ["size", "to"]), [
478
- [Be, i.value]
478
+ [De, i.value]
479
479
  ])
480
480
  ]),
481
481
  _: 1
@@ -498,7 +498,7 @@ const pe = {
498
498
  E(_(v.x_meta.cluster_id), 1)
499
499
  ]),
500
500
  _: 2
501
- }, 1032, ["tooltip", "onClick"])) : (w(), T("b", vt, "-"))
501
+ }, 1032, ["tooltip", "onClick"])) : (w(), I("b", vt, "-"))
502
502
  ];
503
503
  }),
504
504
  enabled: p(({ row: v }) => [
@@ -526,7 +526,7 @@ const pe = {
526
526
  tags: p(({ rowValue: v }) => [
527
527
  (v == null ? void 0 : v.length) > 0 ? (w(), ne(N, { key: 0 }, {
528
528
  default: p(() => [
529
- (w(!0), T(De, null, Le(v, (M) => (w(), ne(C, {
529
+ (w(!0), I(Be, null, Le(v, (M) => (w(), ne(C, {
530
530
  key: M,
531
531
  onClick: f[2] || (f[2] = ce(() => {
532
532
  }, ["stop"]))
@@ -538,7 +538,7 @@ const pe = {
538
538
  }, 1024))), 128))
539
539
  ]),
540
540
  _: 2
541
- }, 1024)) : (w(), T("span", yt, "-"))
541
+ }, 1024)) : (w(), I("span", yt, "-"))
542
542
  ]),
543
543
  created_at: p(({ rowValue: v }) => [
544
544
  E(_(o(x)(v)), 1)
@@ -620,9 +620,9 @@ const pe = {
620
620
  _: 1
621
621
  }, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "query", "table-headers"]),
622
622
  u(o(ze), {
623
- action: D.value.action,
624
- "entity-id": D.value.id,
625
- "entity-name": D.value.name,
623
+ action: B.value.action,
624
+ "entity-id": B.value.id,
625
+ "entity-name": B.value.name,
626
626
  "entity-type": o(r)("glossary.gateway_services"),
627
627
  "on-confirm": re,
628
628
  visible: j.value,
@@ -654,7 +654,7 @@ const pe = {
654
654
  }, Ct = {
655
655
  key: 1,
656
656
  class: "gateway-service-form-group-fields"
657
- }, Vt = { key: 0 }, St = { class: "gateway-service-form-margin-top" }, Tt = { class: "gateway-service-form-margin-bottom" }, It = { class: "gateway-service-form-margin-bottom" }, Pt = { class: "gateway-service-form-margin-bottom" }, Ut = { class: "gateway-service-form-margin-bottom" }, Et = {
657
+ }, Vt = { key: 0 }, St = { class: "gateway-service-form-margin-top" }, It = { class: "gateway-service-form-margin-bottom" }, Tt = { class: "gateway-service-form-margin-bottom" }, Pt = { class: "gateway-service-form-margin-bottom" }, Ut = { class: "gateway-service-form-margin-bottom" }, Et = {
658
658
  key: 0,
659
659
  class: "gateway-service-form-margin-bottom"
660
660
  }, Mt = {
@@ -689,20 +689,12 @@ const pe = {
689
689
  type: Boolean,
690
690
  required: !1,
691
691
  default: !1
692
- },
693
- /**
694
- * Enable display of Terraform code
695
- * Guarded by FF: khcp-12445-terraform-config-details
696
- */
697
- enableTerraform: {
698
- type: Boolean,
699
- default: !1
700
692
  }
701
693
  },
702
694
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
703
695
  setup(n, { expose: $, emit: m }) {
704
696
  var te;
705
- const d = m, r = n, x = V(!0), O = Ee(), { i18nT: G, i18n: { t: s } } = pe.useI18n(), { getMessageFromError: I } = Ye(), { axiosInstance: b } = Me((te = r.config) == null ? void 0 : te.axiosRequestConfig), me = Ze(), ve = h(() => ie.form[r.config.app].edit), F = h(() => r.gatewayServiceId ? Pe.Edit : Pe.Create), ye = V(!1), B = h(() => !!r.gatewayServiceId), k = V(B.value ? "protocol" : "url"), H = pe.usePortFromProtocol(), J = V(""), ge = h(() => !!J.value), e = Te({
697
+ const d = m, r = n, x = V(!0), O = Ee(), { i18nT: G, i18n: { t: s } } = pe.useI18n(), { getMessageFromError: T } = Ye(), { axiosInstance: b } = Me((te = r.config) == null ? void 0 : te.axiosRequestConfig), me = Ze(), ve = h(() => ie.form[r.config.app].edit), F = h(() => r.gatewayServiceId ? Pe.Edit : Pe.Create), ye = V(!1), D = h(() => !!r.gatewayServiceId), k = V(D.value ? "protocol" : "url"), H = pe.usePortFromProtocol(), J = V(""), ge = h(() => !!J.value), e = Ie({
706
698
  fields: {
707
699
  name: "",
708
700
  protocol: "http",
@@ -722,7 +714,7 @@ const pe = {
722
714
  },
723
715
  isReadonly: !1,
724
716
  errorMessage: ""
725
- }), g = Te({
717
+ }), g = Ie({
726
718
  name: "",
727
719
  protocol: "http",
728
720
  host: "",
@@ -799,7 +791,7 @@ const pe = {
799
791
  }
800
792
  ], j = { url: "url", protocol: "protocol" }, P = (t, i) => {
801
793
  i.value;
802
- }, D = (t) => t ? parseFloat(t) : 0, se = () => {
794
+ }, B = (t) => t ? parseFloat(t) : 0, se = () => {
803
795
  x.value = !0, e.errorMessage = "", e.fields.host = g.host, e.fields.path = g.path, e.fields.port = g.port, e.fields.protocol = g.protocol, e.fields.url = g.url, e.fields.retries = g.retries, e.fields.connect_timeout = g.connect_timeout, e.fields.write_timeout = g.write_timeout, e.fields.read_timeout = g.read_timeout, e.fields.client_certificate = g.client_certificate, e.fields.ca_certificates = g.ca_certificates, e.fields.tls_verify_enabled = g.tls_verify_enabled, e.fields.tls_verify_value = g.tls_verify_value;
804
796
  }, Q = () => {
805
797
  if (e.fields.url && k.value === "url")
@@ -809,7 +801,7 @@ const pe = {
809
801
  const i = Number(t.port);
810
802
  ye.value = !!i, e.fields.port = i || H.getPortFromProtocol(e.fields.protocol), e.errorMessage = "", d("url-valid:success");
811
803
  } catch (t) {
812
- e.errorMessage = s("errors.urlErrorMessage"), d("url-valid:error", I(t));
804
+ e.errorMessage = s("errors.urlErrorMessage"), d("url-valid:error", T(t));
813
805
  }
814
806
  else
815
807
  d("url-valid:success"), e.errorMessage = "";
@@ -830,7 +822,7 @@ const pe = {
830
822
  return k.value === "protocol" && t;
831
823
  }), ke = (t) => {
832
824
  J.value = me.utf8Name(t);
833
- }, X = h(() => B.value && JSON.stringify(e.fields) !== JSON.stringify(g) || k.value === "url" && !!e.fields.url || k.value === "protocol" && !!e.fields.host), ae = (t) => {
825
+ }, X = h(() => D.value && JSON.stringify(e.fields) !== JSON.stringify(g) || k.value === "url" && !!e.fields.url || k.value === "protocol" && !!e.fields.host), ae = (t) => {
834
826
  var i, y, U;
835
827
  e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((i = t == null ? void 0 : t.tags) == null ? void 0 : i.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((y = t == null ? void 0 : t.ca_certificates) == null ? void 0 : y.join(",")) || "", e.fields.client_certificate = ((U = t == null ? void 0 : t.client_certificate) == null ? void 0 : U.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(g, e.fields);
836
828
  }, A = () => {
@@ -879,7 +871,7 @@ const pe = {
879
871
  }
880
872
  return f;
881
873
  } catch (a) {
882
- e.errorMessage = I(a), d("error", a);
874
+ e.errorMessage = T(a), d("error", a);
883
875
  } finally {
884
876
  e.isReadonly = !1;
885
877
  }
@@ -898,12 +890,11 @@ const pe = {
898
890
  initForm: ae
899
891
  }), (t, i) => {
900
892
  const y = R("KInput"), U = R("KLabel"), a = R("KRadio"), f = R("KSelect"), l = R("KCheckbox"), C = R("KCollapse");
901
- return w(), T("div", _t, [
893
+ return w(), I("div", _t, [
902
894
  u(o(tt), {
903
895
  "can-submit": X.value,
904
896
  config: n.config,
905
897
  "edit-id": n.gatewayServiceId,
906
- "enable-terraform": n.enableTerraform,
907
898
  "entity-type": o(Re).GatewayService,
908
899
  "error-message": e.errorMessage,
909
900
  "fetch-url": ve.value,
@@ -974,7 +965,7 @@ const pe = {
974
965
  title: o(s)("gateway_services.form.sections.keys.title")
975
966
  }, {
976
967
  default: p(() => [
977
- B.value ? L("", !0) : (w(), T("div", bt, [
968
+ D.value ? L("", !0) : (w(), I("div", bt, [
978
969
  S("div", ht, [
979
970
  u(U, { required: "" }, {
980
971
  default: p(() => [
@@ -997,7 +988,7 @@ const pe = {
997
988
  _: 1
998
989
  }, 8, ["modelValue", "selected-value"])
999
990
  ]),
1000
- k.value === "url" ? (w(), T("div", kt, [
991
+ k.value === "url" ? (w(), I("div", kt, [
1001
992
  u(y, {
1002
993
  modelValue: e.fields.url,
1003
994
  "onUpdate:modelValue": i[3] || (i[3] = (c) => e.fields.url = c),
@@ -1028,7 +1019,7 @@ const pe = {
1028
1019
  _: 1
1029
1020
  }, 8, ["modelValue", "selected-value"])
1030
1021
  ])),
1031
- k.value === "protocol" || B.value ? (w(), T("div", Ct, [
1022
+ k.value === "protocol" || D.value ? (w(), I("div", Ct, [
1032
1023
  u(f, {
1033
1024
  modelValue: e.fields.protocol,
1034
1025
  "onUpdate:modelValue": i[5] || (i[5] = (c) => e.fields.protocol = c),
@@ -1059,7 +1050,7 @@ const pe = {
1059
1050
  placeholder: o(s)("gateway_services.form.fields.host.placeholder"),
1060
1051
  required: ""
1061
1052
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder"]),
1062
- re.value ? (w(), T("div", Vt, [
1053
+ re.value ? (w(), I("div", Vt, [
1063
1054
  u(y, {
1064
1055
  modelValue: e.fields.path,
1065
1056
  "onUpdate:modelValue": i[8] || (i[8] = (c) => e.fields.path = c),
@@ -1080,7 +1071,7 @@ const pe = {
1080
1071
  "onUpdate:modelValue": [
1081
1072
  i[9] || (i[9] = (c) => e.fields.port = c),
1082
1073
  i[10] || (i[10] = () => {
1083
- e.fields.port = D(e.fields.port + "");
1074
+ e.fields.port = B(e.fields.port + "");
1084
1075
  })
1085
1076
  ],
1086
1077
  class: "gateway-service-form-margin-top",
@@ -1103,13 +1094,13 @@ const pe = {
1103
1094
  }, {
1104
1095
  default: p(() => [
1105
1096
  S("div", St, [
1106
- S("div", Tt, [
1097
+ S("div", It, [
1107
1098
  u(y, {
1108
1099
  modelValue: e.fields.retries,
1109
1100
  "onUpdate:modelValue": [
1110
1101
  i[11] || (i[11] = (c) => e.fields.retries = c),
1111
1102
  i[12] || (i[12] = () => {
1112
- e.fields.retries = D(e.fields.retries + "");
1103
+ e.fields.retries = B(e.fields.retries + "");
1113
1104
  })
1114
1105
  ],
1115
1106
  autocomplete: "off",
@@ -1124,13 +1115,13 @@ const pe = {
1124
1115
  type: "number"
1125
1116
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1126
1117
  ]),
1127
- S("div", It, [
1118
+ S("div", Tt, [
1128
1119
  u(y, {
1129
1120
  modelValue: e.fields.connect_timeout,
1130
1121
  "onUpdate:modelValue": [
1131
1122
  i[13] || (i[13] = (c) => e.fields.connect_timeout = c),
1132
1123
  i[14] || (i[14] = () => {
1133
- e.fields.connect_timeout = D(e.fields.connect_timeout + "");
1124
+ e.fields.connect_timeout = B(e.fields.connect_timeout + "");
1134
1125
  })
1135
1126
  ],
1136
1127
  autocomplete: "off",
@@ -1151,7 +1142,7 @@ const pe = {
1151
1142
  "onUpdate:modelValue": [
1152
1143
  i[15] || (i[15] = (c) => e.fields.write_timeout = c),
1153
1144
  i[16] || (i[16] = () => {
1154
- e.fields.write_timeout = D(e.fields.write_timeout + "");
1145
+ e.fields.write_timeout = B(e.fields.write_timeout + "");
1155
1146
  })
1156
1147
  ],
1157
1148
  autocomplete: "off",
@@ -1172,7 +1163,7 @@ const pe = {
1172
1163
  "onUpdate:modelValue": [
1173
1164
  i[17] || (i[17] = (c) => e.fields.read_timeout = c),
1174
1165
  i[18] || (i[18] = () => {
1175
- e.fields.read_timeout = D(e.fields.read_timeout + "");
1166
+ e.fields.read_timeout = B(e.fields.read_timeout + "");
1176
1167
  })
1177
1168
  ],
1178
1169
  autocomplete: "off",
@@ -1187,7 +1178,7 @@ const pe = {
1187
1178
  type: "number"
1188
1179
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1189
1180
  ]),
1190
- be.value ? (w(), T("div", Et, [
1181
+ be.value ? (w(), I("div", Et, [
1191
1182
  u(y, {
1192
1183
  modelValue: e.fields.client_certificate,
1193
1184
  "onUpdate:modelValue": i[19] || (i[19] = (c) => e.fields.client_certificate = c),
@@ -1205,7 +1196,7 @@ const pe = {
1205
1196
  type: "text"
1206
1197
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
1207
1198
  ])) : L("", !0),
1208
- he.value ? (w(), T("div", Mt, [
1199
+ he.value ? (w(), I("div", Mt, [
1209
1200
  u(y, {
1210
1201
  modelValue: e.fields.ca_certificates,
1211
1202
  "onUpdate:modelValue": i[20] || (i[20] = (c) => e.fields.ca_certificates = c),
@@ -1235,7 +1226,7 @@ const pe = {
1235
1226
  _: 1
1236
1227
  }, 8, ["modelValue", "label", "placeholder", "readonly"])
1237
1228
  ])) : L("", !0),
1238
- we.value ? (w(), T("div", Rt, [
1229
+ we.value ? (w(), I("div", Rt, [
1239
1230
  u(l, {
1240
1231
  modelValue: e.fields.tls_verify_enabled,
1241
1232
  "onUpdate:modelValue": i[21] || (i[21] = (c) => e.fields.tls_verify_enabled = c),
@@ -1257,7 +1248,7 @@ const pe = {
1257
1248
  ]),
1258
1249
  _: 1
1259
1250
  }, 8, ["modelValue", "description", "label"]),
1260
- e.fields.tls_verify_enabled ? (w(), T("div", xt, [
1251
+ e.fields.tls_verify_enabled ? (w(), I("div", xt, [
1261
1252
  u(a, {
1262
1253
  modelValue: e.fields.tls_verify_value,
1263
1254
  "onUpdate:modelValue": i[22] || (i[22] = (c) => e.fields.tls_verify_value = c),
@@ -1266,7 +1257,7 @@ const pe = {
1266
1257
  "selected-value": !0
1267
1258
  }, null, 8, ["modelValue", "label"])
1268
1259
  ])) : L("", !0),
1269
- e.fields.tls_verify_enabled ? (w(), T("div", At, [
1260
+ e.fields.tls_verify_enabled ? (w(), I("div", At, [
1270
1261
  u(a, {
1271
1262
  modelValue: e.fields.tls_verify_value,
1272
1263
  "onUpdate:modelValue": i[23] || (i[23] = (c) => e.fields.tls_verify_value = c),
@@ -1285,11 +1276,11 @@ const pe = {
1285
1276
  }, 8, ["description", "hide-info-header", "title"])
1286
1277
  ]),
1287
1278
  _: 3
1288
- }, 8, ["can-submit", "config", "edit-id", "enable-terraform", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
1279
+ }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
1289
1280
  ]);
1290
1281
  };
1291
1282
  }
1292
- }), Nt = /* @__PURE__ */ xe(Ft, [["__scopeId", "data-v-b3bd262f"]]), $t = { class: "kong-ui-gateway-service-entity-config-card" }, Wt = /* @__PURE__ */ Se({
1283
+ }), Nt = /* @__PURE__ */ xe(Ft, [["__scopeId", "data-v-35e0db56"]]), $t = { class: "kong-ui-gateway-service-entity-config-card" }, Wt = /* @__PURE__ */ Se({
1293
1284
  __name: "GatewayServiceConfigCard",
1294
1285
  props: {
1295
1286
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1312,19 +1303,11 @@ const pe = {
1312
1303
  hideTitle: {
1313
1304
  type: Boolean,
1314
1305
  default: !1
1315
- },
1316
- /**
1317
- * Enable display of Terraform code
1318
- * Guarded by FF: khcp-12445-terraform-config-details
1319
- */
1320
- enableTerraform: {
1321
- type: Boolean,
1322
- default: !1
1323
1306
  }
1324
1307
  },
1325
1308
  emits: ["loading", "fetch:error", "fetch:success"],
1326
1309
  setup(n) {
1327
- const $ = n, { i18n: { t: m }, i18nT: d } = pe.useI18n(), r = h(() => ie.form[$.config.app].edit), { getPropValue: x } = lt(), O = (s, I) => x(s, I) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), G = V({
1310
+ const $ = n, { i18n: { t: m }, i18nT: d } = pe.useI18n(), r = h(() => ie.form[$.config.app].edit), { getPropValue: x } = lt(), O = (s, T) => x(s, T) === !0 ? m("gateway_services.form.fields.tls_verify_option.true.display") : m("gateway_services.form.fields.tls_verify_option.false.display"), G = V({
1328
1311
  id: {},
1329
1312
  name: {
1330
1313
  tooltip: m("gateway_services.form.fields.name.tooltip")
@@ -1384,18 +1367,17 @@ const pe = {
1384
1367
  hidden: !0
1385
1368
  }
1386
1369
  });
1387
- return (s, I) => (w(), T("div", $t, [
1370
+ return (s, T) => (w(), I("div", $t, [
1388
1371
  u(o(it), {
1389
1372
  config: n.config,
1390
1373
  "config-card-doc": n.configCardDoc,
1391
1374
  "config-schema": G.value,
1392
- "enable-terraform": n.enableTerraform,
1393
1375
  "entity-type": o(Re).GatewayService,
1394
1376
  "fetch-url": r.value,
1395
1377
  "hide-title": n.hideTitle,
1396
- "onFetch:error": I[0] || (I[0] = (b) => s.$emit("fetch:error", b)),
1397
- "onFetch:success": I[1] || (I[1] = (b) => s.$emit("fetch:success", b)),
1398
- onLoading: I[2] || (I[2] = (b) => s.$emit("loading", b))
1378
+ "onFetch:error": T[0] || (T[0] = (b) => s.$emit("fetch:error", b)),
1379
+ "onFetch:success": T[1] || (T[1] = (b) => s.$emit("fetch:success", b)),
1380
+ onLoading: T[2] || (T[2] = (b) => s.$emit("loading", b))
1399
1381
  }, {
1400
1382
  "enabled-label-tooltip": p(() => [
1401
1383
  u(o(d), {
@@ -1443,7 +1425,7 @@ const pe = {
1443
1425
  E(_(o(x)("rowValue", b) ? o(x)("rowValue", b).id : "–"), 1)
1444
1426
  ]),
1445
1427
  _: 1
1446
- }, 8, ["config", "config-card-doc", "config-schema", "enable-terraform", "entity-type", "fetch-url", "hide-title"])
1428
+ }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
1447
1429
  ]));
1448
1430
  }
1449
1431
  });
@@ -1 +1 @@
1
- (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-gateway-services"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-i18n"],w["kong-ui-public-entities-shared"]))})(this,function(w,e,fe,me,pe,m){"use strict";const ye={actions:{create:"New Gateway Service",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New Gateway Service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this Gateway Service."},keys:{title:"Service Endpoint",description:"Define the endpoint for this service by specifying the full URL or by its separate elements.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, Host, Port and Path",viewAdvancedFields:"View Advanced Fields"}},fields:{upstream_url:{label:"Upstream URL",placeholder:"Enter a URL",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"Enter a host",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"Enter a path",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection Timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write Timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read Timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client Certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},ca_certificates:{label:"CA Certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS Verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function ge(){const n=pe.createI18n("en-us",ye);return{i18n:n,i18nT:pe.i18nTComponent(n)}}function _e(){return{getPortFromProtocol:(S,p)=>{const d=[80,443],s=Number(p);if((s||s===0)&&!d.includes(s))return s;switch(S){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const z={useI18n:ge,usePortFromProtocol:_e},Q="/v2/control-planes/{controlPlaneId}/core-entities",X="/{workspace}",A={list:{konnect:{all:`${Q}/services`},kongManager:{all:`${X}/services`}},form:{konnect:{create:`${Q}/services`,validate:`${Q}/v1/schemas/json/service/validate`,edit:`${Q}/services/{id}`},kongManager:{create:`${X}/services`,validate:`${X}/schemas/services/validate`,edit:`${X}/services/{id}`}}},be={class:"kong-ui-entities-gateway-services-list"},he={key:1},we={key:1},Ve=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||!n.createRoute||!n.getViewRoute||!n.getEditRoute||n.app==="kongManager"&&!n.isExactMatch&&!n.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","toggle:success"],setup(n,{emit:S}){var k;const p=S,d=n,{i18n:{t:s,formatUnixTimeStamp:x}}=z.useI18n(),R=fe.useRouter(),{axiosInstance:I}=m.useAxios((k=d.config)==null?void 0:k.axiosRequestConfig),i=e.ref(1),V=e.computed(()=>d.config.app!=="kongManager"||!!d.config.disableSorting),_={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:s("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:s("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:s("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:s("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:s("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:s("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:s("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:s("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:s("gateway_services.list.table_headers.created_at"),sortable:!0}},te={columnVisibility:{created_at:!1}},oe=_,E=e.computed(()=>{var f,l;let a=`${d.config.apiBaseUrl}${A.list[d.config.app].all}`;return d.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||""):d.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:"")),a}),le=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${E.value}`):new URL(E.value)),T=e.ref(""),b=e.computed(()=>{const a=d.config.app==="konnect"||d.config.isExactMatch;if(a)return{isExactMatch:a,placeholder:s(`search.placeholder.${d.config.app}`)};const{name:f,enabled:l,protocol:h,host:c,port:U,path:D}=_;return{isExactMatch:a,fields:{name:f,enabled:l,protocol:h,host:c,port:U,path:D},schema:d.config.filterSchema}}),{fetcher:$,fetcherState:G}=m.useFetcher(d.config,E.value),re=()=>{T.value=""},t=()=>{i.value++},g=e.ref(null),L=e.ref(!1),ie=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:y.value?d.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:y.value?d.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),F=e.ref(!1),v=e.ref(null),B=e.computed(()=>{const a={action:"disable",id:"",name:""};if(v.value){const{enabled:f,id:l,name:h}=v.value;a.action=f?"disable":"enable",a.id=l,a.name=h||l}return a}),Y=a=>{F.value=!0,v.value=a},q=()=>{F.value=!1,v.value=null},Z=async()=>{var h,c;if(!await((h=d.canEdit)==null?void 0:h.call(d,v.value))||!v.value)return;const f=`${le.value.href}/${v.value.id}`,l=!v.value.enabled;try{const{data:U}=((c=d.config)==null?void 0:c.app)==="konnect"?await I.put(f,{...v.value,enabled:l}):await I.patch(f,{...v.value,enabled:l});p("toggle:success",U)}catch(U){p("error",U)}v.value.enabled=l},se=a=>{d.config.getControlPlaneRoute&&R.push(d.config.getControlPlaneRoute(a))},ae=(a,f)=>{const l=a.id;if(!f(l)){p("copy:error",{entity:a,field:"id",message:s("errors.copy")});return}p("copy:success",{entity:a,field:"id",message:s("copy.success",{val:l})})},ne=(a,f)=>{const l=JSON.stringify(a);if(!f(l)){p("copy:error",{entity:a,message:s("errors.copy")});return}p("copy:success",{entity:a,message:s("copy.success_brief")})},ce=async a=>{var l;await((l=d.canRetrieve)==null?void 0:l.call(d,a))&&R.push(d.config.getViewRoute(a.id))},K=a=>({label:s("actions.view"),to:d.config.getViewRoute(a)}),ee=a=>({label:s("actions.edit"),to:d.config.getEditRoute(a)}),N=e.ref(void 0),W=e.ref(!1),P=e.ref(!1),O=e.ref(""),M=m.useDeleteUrlBuilder(d.config,E.value),j=a=>{N.value=a,W.value=!0,O.value=""},H=()=>{W.value=!1,N.value=void 0},o=async()=>{var a,f,l;if((a=N.value)!=null&&a.id){P.value=!0;try{await I.delete(M(N.value.id)),p("delete:success",N.value),H(),i.value++}catch(h){O.value=((l=(f=h.response)==null?void 0:f.data)==null?void 0:l.message)||h.message||s("errors.delete"),p("error",h)}finally{P.value=!1}}},r=e.ref(!1);e.watch(G,a=>{var f,l,h,c;if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)&&(r.value=a.response.data.length>0),a.status===m.FetcherStatus.NoRecords?L.value=!0:L.value=!1,a.status===m.FetcherStatus.Error){g.value={title:s("errors.general")},(c=(h=(l=a.error)==null?void 0:l.response)==null?void 0:h.data)!=null&&c.message&&(g.value.message=a.error.response.data.message),p("error",a.error);return}g.value=null});const y=e.ref(!1);return e.onBeforeMount(async()=>{y.value=await d.canCreate()}),(a,f)=>{const l=e.resolveComponent("KButton"),h=e.resolveComponent("KBadge"),c=e.resolveComponent("KInputSwitch"),U=e.resolveComponent("KTruncate"),D=e.resolveComponent("KDropdownItem"),de=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",be,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":n.cacheIdentifier,"default-table-preferences":te,"disable-sorting":V.value,"empty-state-options":ie.value,"enable-entity-actions":"","error-message":g.value,fetcher:e.unref($),"fetcher-cache-key":i.value,"hide-toolbar":L.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:T.value,"table-headers":e.unref(oe),onClearSearchInput:re,"onClick:row":f[3]||(f[3]=u=>ce(u)),onSort:t},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:T.value,"onUpdate:modelValue":f[0]||(f[0]=u=>T.value=u),config:b.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:n.useActionOutside?"medium":"large",to:n.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(me.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"]),[[e.vShow,r.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:u})=>[e.createElementVNode("b",null,e.toDisplayString(u??"-"),1)]),control_plane:e.withCtx(({row:u})=>{var C;return[(C=u.x_meta)!=null&&C.cluster_id?(e.openBlock(),e.createBlock(h,{key:0,tooltip:u.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(J=>se(u.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",he,"-"))]}),enabled:e.withCtx(({row:u})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canEdit(u),"force-show":""},{default:e.withCtx(({isAllowed:C})=>[e.createElementVNode("div",{onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(c,{modelValue:u.enabled,"onUpdate:modelValue":J=>u.enabled=J,"data-testid":`row-${u.id}-toggle-input`,disabled:!C,onClick:e.withModifiers(J=>Y(u),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:u})=>[(u==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(U,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,C=>(e.openBlock(),e.createBlock(h,{key:C,onClick:f[2]||(f[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",we,"-"))]),created_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(u)),1)]),updated_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(u)),1)]),actions:e.withCtx(({row:u})=>[e.createVNode(de,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(D,{"data-testid":"action-entity-copy-id",onClick:J=>ae(u,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(de,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(D,{"data-testid":"action-entity-copy-json",onClick:J=>ne(u,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canRetrieve(u)},{default:e.withCtx(()=>[e.createVNode(D,{"data-testid":"action-entity-view","has-divider":"",item:K(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canEdit(u)},{default:e.withCtx(()=>[e.createVNode(D,{"data-testid":"action-entity-edit",item:ee(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canDelete(u)},{default:e.withCtx(()=>[e.createVNode(D,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:C=>j(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers"]),e.createVNode(e.unref(m.EntityToggleModal),{action:B.value.action,"entity-id":B.value.id,"entity-name":B.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":Z,visible:F.value,onCancel:q,onProceed:q},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":P.value,description:e.unref(s)("actions.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(m.EntityTypes).GatewayService,error:O.value,title:e.unref(s)("actions.delete.title"),visible:W.value,onCancel:H,onProceed:o},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ue=(n,S)=>{const p=n.__vccOpts||n;for(const[d,s]of S)p[d]=s;return p},ve=ue(Ve,[["__scopeId","data-v-26fe95da"]]),ke={class:"kong-ui-entities-gateway-service-form"},Ce={key:0},xe={class:"gateway-service-form-traffic-label"},Ne={class:"gateway-service-form-margin-bottom"},Ee={key:0,class:"gateway-service-form-group-fields"},Se={key:1,class:"gateway-service-form-group-fields"},Te={key:0},Be={class:"gateway-service-form-margin-top"},Ie={class:"gateway-service-form-margin-bottom"},Pe={class:"gateway-service-form-margin-bottom"},Me={class:"gateway-service-form-margin-bottom"},Ue={class:"gateway-service-form-margin-bottom"},De={key:0,class:"gateway-service-form-margin-bottom"},Re={key:1,class:"gateway-service-form-margin-bottom"},Fe={key:2,class:"gateway-service-form-margin-bottom"},Ae={key:0,class:"checkbox-aligned-radio"},$e={key:1,class:"checkbox-aligned-radio"},Ge=ue(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(n,{expose:S,emit:p}){var H;const d=p,s=n,x=e.ref(!0),R=fe.useRouter(),{i18nT:I,i18n:{t:i}}=z.useI18n(),{getMessageFromError:V}=m.useErrors(),{axiosInstance:_}=m.useAxios((H=s.config)==null?void 0:H.axiosRequestConfig),te=m.useValidators(),oe=e.computed(()=>A.form[s.config.app].edit),E=e.computed(()=>s.gatewayServiceId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),le=e.ref(!1),T=e.computed(()=>!!s.gatewayServiceId),b=e.ref(T.value?"protocol":"url"),$=z.usePortFromProtocol(),G=e.ref(""),re=e.computed(()=>!!G.value),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""}),L=s.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),ie=[{label:i("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:i("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:i("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:i("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...L?[{label:i("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:i("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:i("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],F={url:"url",protocol:"protocol"},v=(o,r)=>{r.value},B=o=>o?parseFloat(o):0,Y=()=>{x.value=!0,t.errorMessage="",t.fields.host=g.host,t.fields.path=g.path,t.fields.port=g.port,t.fields.protocol=g.protocol,t.fields.url=g.url,t.fields.retries=g.retries,t.fields.connect_timeout=g.connect_timeout,t.fields.write_timeout=g.write_timeout,t.fields.read_timeout=g.read_timeout,t.fields.client_certificate=g.client_certificate,t.fields.ca_certificates=g.ca_certificates,t.fields.tls_verify_enabled=g.tls_verify_enabled,t.fields.tls_verify_value=g.tls_verify_value},q=()=>{if(t.fields.url&&b.value==="url")try{const o=new URL(t.fields.url);t.errorMessage="",t.fields.protocol=o.protocol.slice(0,-1),t.fields.host=o.hostname,t.fields.path=o.pathname;const r=Number(o.port);le.value=!!r,t.fields.port=r||$.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=i("errors.urlErrorMessage"),d("url-valid:error",V(o))}else d("url-valid:success"),t.errorMessage=""},Z=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),se=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ae=e.computed(()=>{if(b.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ne=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ce=o=>{G.value=te.utf8Name(o)},K=e.computed(()=>T.value&&JSON.stringify(t.fields)!==JSON.stringify(g)||b.value==="url"&&!!t.fields.url||b.value==="protocol"&&!!t.fields.host),ee=o=>{var r,y,k;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((r=o==null?void 0:o.tags)==null?void 0:r.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((y=o==null?void 0:o.ca_certificates)==null?void 0:y.join(","))||"",t.fields.client_certificate=((k=o==null?void 0:o.client_certificate)==null?void 0:k.id)||"",t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,Object.assign(g,t.fields)},N=()=>{R.push(s.config.cancelRoute)},W=e.computed(()=>{var r,y;let o=`${s.config.apiBaseUrl}${A.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=s.config)==null?void 0:r.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=s.config)!=null&&y.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),P=e.computed(()=>{var r,y;let o=`${s.config.apiBaseUrl}${A.form[s.config.app][E.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=s.config)==null?void 0:r.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=s.config)!=null&&y.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),O=o=>{let r="";o.url&&(r=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(r))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},M=e.computed(()=>{var r,y,k,a;const o={name:t.fields.name||null,tags:t.fields.tags?(k=(y=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:y.map(f=>String(f||"").trim()))==null?void 0:k.filter(f=>f!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(a=t.fields.ca_certificates)==null?void 0:a.split(",").filter(f=>f!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),Z.value||(o.path=null),E.value==="create"?b.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:E.value==="edit"&&delete o.url,o}),j=async()=>{var o,r,y,k;try{t.isReadonly=!0,q();const a=M.value;O(a);let f;if(await _.post(W.value,a),E.value==="create"?f=await _.post(P.value,a):E.value==="edit"&&(f=((o=s.config)==null?void 0:o.app)==="konnect"?await _.put(P.value,a):await _.patch(P.value,a)),f){const{data:l}=f;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||$.getPortFromProtocol(l.protocol),t.fields.protocol=(l==null?void 0:l.protocol)||"http",t.fields.host=(l==null?void 0:l.host)||"",t.fields.path=(l==null?void 0:l.path)||"",t.fields.url=(l==null?void 0:l.url)||"",t.fields.retries=l!=null&&l.retries||(l==null?void 0:l.retries)===0?l==null?void 0:l.retries:5,t.fields.connect_timeout=l!=null&&l.connect_timeout||(l==null?void 0:l.connect_timeout)===0?l==null?void 0:l.connect_timeout:6e4,t.fields.write_timeout=l!=null&&l.write_timeout||(l==null?void 0:l.write_timeout)===0?l==null?void 0:l.write_timeout:6e4,t.fields.read_timeout=l!=null&&l.read_timeout||(l==null?void 0:l.read_timeout)===0?l==null?void 0:l.read_timeout:6e4,t.fields.client_certificate=((r=l==null?void 0:l.client_certificate)==null?void 0:r.id)||"",t.fields.ca_certificates=(y=l==null?void 0:l.ca_certificates)!=null&&y.length?l==null?void 0:l.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(l==null?void 0:l.tls_verify)!==""&&(l==null?void 0:l.tls_verify)!==null&&(l==null?void 0:l.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(l==null?void 0:l.tls_verify),t.fields.tags=(k=l==null?void 0:l.tags)!=null&&k.length?l.tags.join(", "):"",Object.assign(g,t.fields),d("update",f==null?void 0:f.data)}return f}catch(a){t.errorMessage=V(a),d("error",a)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,g)}),e.watch(t.fields,o=>{t.fields.port=$.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",M.value)}),e.onMounted(()=>{d("model-updated",M.value)}),S({validateUrl:q,getPayload:M,saveFormData:j,canSubmit:K,initForm:ee}),(o,r)=>{const y=e.resolveComponent("KInput"),k=e.resolveComponent("KLabel"),a=e.resolveComponent("KRadio"),f=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),h=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":K.value,config:n.config,"edit-id":n.gatewayServiceId,"enable-terraform":n.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:N,"onFetch:error":r[25]||(r[25]=c=>o.$emit("error",c)),"onFetch:success":ee,onLoading:r[26]||(r[26]=c=>o.$emit("loading",c)),onSubmit:j},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:K.value,cancel:N,submit:j},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(i)("gateway_services.form.sections.general.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(i)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.fields.name,"onUpdate:modelValue":r[0]||(r[0]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:re.value,"error-message":G.value,label:e.unref(i)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(i)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ce},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(y,{modelValue:t.fields.tags,"onUpdate:modelValue":r[1]||(r[1]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(i)("gateway_services.form.fields.tags.help"),label:e.unref(i)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(i)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(i)("gateway_services.form.sections.keys.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(i)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",xe,[e.createVNode(k,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",Ne,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":r[2]||(r[2]=c=>b.value=c),"data-testid":"gateway-service-url-radio","selected-value":F.url,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),b.value==="url"?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(y,{modelValue:t.fields.url,"onUpdate:modelValue":r[3]||(r[3]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(i)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:n.config.app==="konnect"?e.unref(i)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(i)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(i)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":r[4]||(r[4]=c=>b.value=c),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":F.protocol,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),b.value==="protocol"||T.value?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(f,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[5]||(r[5]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:ie,label:e.unref(i)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:r[6]||(r[6]=c=>v(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(y,{modelValue:t.fields.host,"onUpdate:modelValue":r[7]||(r[7]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(i)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(i)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),Z.value?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(y,{modelValue:t.fields.path,"onUpdate:modelValue":r[8]||(r[8]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(i)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(i)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:t.fields.port,"onUpdate:modelValue":[r[9]||(r[9]=c=>t.fields.port=c),r[10]||(r[10]=()=>{t.fields.port=B(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(i)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:x.value,"onUpdate:modelValue":r[24]||(r[24]=c=>x.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(i)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Be,[e.createElementVNode("div",Ie,[e.createVNode(y,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=c=>t.fields.retries=c),r[12]||(r[12]=()=>{t.fields.retries=B(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(i)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Pe,[e.createVNode(y,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=c=>t.fields.connect_timeout=c),r[14]||(r[14]=()=>{t.fields.connect_timeout=B(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(i)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Me,[e.createVNode(y,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=c=>t.fields.write_timeout=c),r[16]||(r[16]=()=>{t.fields.write_timeout=B(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(i)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ue,[e.createVNode(y,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=c=>t.fields.read_timeout=c),r[18]||(r[18]=()=>{t.fields.read_timeout=B(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(i)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),se.value?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(y,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(i)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(i)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ae.value?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(y,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[20]||(r[20]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(i)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(i)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[21]||(r[21]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(i)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(i)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[22]||(r[22]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(i)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[23]||(r[23]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(i)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-b3bd262f"]]),Le={class:"kong-ui-gateway-service-entity-config-card"},qe=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(n){const S=n,{i18n:{t:p},i18nT:d}=z.useI18n(),s=e.computed(()=>A.form[S.config.app].edit),{getPropValue:x}=m.useHelpers(),R=(i,V)=>x(i,V)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),I=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:m.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(i,V)=>(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:n.config,"config-card-doc":n.configCardDoc,"config-schema":I.value,"enable-terraform":n.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":n.hideTitle,"onFetch:error":V[0]||(V[0]=_=>i.$emit("fetch:error",_)),"onFetch:success":V[1]||(V[1]=_=>i.$emit("fetch:success",_)),onLoading:V[2]||(V[2]=_=>i.$emit("loading",_))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(typeof e.unref(x)("rowValue",_)=="boolean"?R("rowValue",_):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(e.unref(x)("rowValue",_)?e.unref(x)("rowValue",_).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])]))}});w.GatewayServiceConfigCard=qe,w.GatewayServiceForm=Ge,w.GatewayServiceList=ve,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-gateway-services"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-i18n"],w["kong-ui-public-entities-shared"]))})(this,function(w,e,fe,me,pe,m){"use strict";const ye={actions:{create:"New Gateway Service",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New Gateway Service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this Gateway Service."},keys:{title:"Service Endpoint",description:"Define the endpoint for this service by specifying the full URL or by its separate elements.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, Host, Port and Path",viewAdvancedFields:"View Advanced Fields"}},fields:{upstream_url:{label:"Upstream URL",placeholder:"Enter a URL",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"Enter a host",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"Enter a path",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection Timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write Timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read Timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client Certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},ca_certificates:{label:"CA Certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS Verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function ge(){const n=pe.createI18n("en-us",ye);return{i18n:n,i18nT:pe.i18nTComponent(n)}}function _e(){return{getPortFromProtocol:(S,p)=>{const d=[80,443],s=Number(p);if((s||s===0)&&!d.includes(s))return s;switch(S){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const z={useI18n:ge,usePortFromProtocol:_e},Q="/v2/control-planes/{controlPlaneId}/core-entities",X="/{workspace}",A={list:{konnect:{all:`${Q}/services`},kongManager:{all:`${X}/services`}},form:{konnect:{create:`${Q}/services`,validate:`${Q}/v1/schemas/json/service/validate`,edit:`${Q}/services/{id}`},kongManager:{create:`${X}/services`,validate:`${X}/schemas/services/validate`,edit:`${X}/services/{id}`}}},be={class:"kong-ui-entities-gateway-services-list"},he={key:1},we={key:1},Ve=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||!n.createRoute||!n.getViewRoute||!n.getEditRoute||n.app==="kongManager"&&!n.isExactMatch&&!n.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","toggle:success"],setup(n,{emit:S}){var k;const p=S,d=n,{i18n:{t:s,formatUnixTimeStamp:x}}=z.useI18n(),R=fe.useRouter(),{axiosInstance:I}=m.useAxios((k=d.config)==null?void 0:k.axiosRequestConfig),r=e.ref(1),V=e.computed(()=>d.config.app!=="kongManager"||!!d.config.disableSorting),_={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:s("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:s("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:s("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:s("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:s("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:s("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:s("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:s("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:s("gateway_services.list.table_headers.created_at"),sortable:!0}},te={columnVisibility:{created_at:!1}},oe=_,E=e.computed(()=>{var f,l;let a=`${d.config.apiBaseUrl}${A.list[d.config.app].all}`;return d.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||""):d.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:"")),a}),le=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${E.value}`):new URL(E.value)),T=e.ref(""),b=e.computed(()=>{const a=d.config.app==="konnect"||d.config.isExactMatch;if(a)return{isExactMatch:a,placeholder:s(`search.placeholder.${d.config.app}`)};const{name:f,enabled:l,protocol:h,host:c,port:U,path:D}=_;return{isExactMatch:a,fields:{name:f,enabled:l,protocol:h,host:c,port:U,path:D},schema:d.config.filterSchema}}),{fetcher:$,fetcherState:G}=m.useFetcher(d.config,E.value),ie=()=>{T.value=""},t=()=>{r.value++},g=e.ref(null),L=e.ref(!1),re=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:y.value?d.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:y.value?d.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),F=e.ref(!1),v=e.ref(null),B=e.computed(()=>{const a={action:"disable",id:"",name:""};if(v.value){const{enabled:f,id:l,name:h}=v.value;a.action=f?"disable":"enable",a.id=l,a.name=h||l}return a}),Y=a=>{F.value=!0,v.value=a},q=()=>{F.value=!1,v.value=null},Z=async()=>{var h,c;if(!await((h=d.canEdit)==null?void 0:h.call(d,v.value))||!v.value)return;const f=`${le.value.href}/${v.value.id}`,l=!v.value.enabled;try{const{data:U}=((c=d.config)==null?void 0:c.app)==="konnect"?await I.put(f,{...v.value,enabled:l}):await I.patch(f,{...v.value,enabled:l});p("toggle:success",U)}catch(U){p("error",U)}v.value.enabled=l},se=a=>{d.config.getControlPlaneRoute&&R.push(d.config.getControlPlaneRoute(a))},ae=(a,f)=>{const l=a.id;if(!f(l)){p("copy:error",{entity:a,field:"id",message:s("errors.copy")});return}p("copy:success",{entity:a,field:"id",message:s("copy.success",{val:l})})},ne=(a,f)=>{const l=JSON.stringify(a);if(!f(l)){p("copy:error",{entity:a,message:s("errors.copy")});return}p("copy:success",{entity:a,message:s("copy.success_brief")})},ce=async a=>{var l;await((l=d.canRetrieve)==null?void 0:l.call(d,a))&&R.push(d.config.getViewRoute(a.id))},K=a=>({label:s("actions.view"),to:d.config.getViewRoute(a)}),ee=a=>({label:s("actions.edit"),to:d.config.getEditRoute(a)}),N=e.ref(void 0),W=e.ref(!1),P=e.ref(!1),O=e.ref(""),M=m.useDeleteUrlBuilder(d.config,E.value),j=a=>{N.value=a,W.value=!0,O.value=""},H=()=>{W.value=!1,N.value=void 0},o=async()=>{var a,f,l;if((a=N.value)!=null&&a.id){P.value=!0;try{await I.delete(M(N.value.id)),p("delete:success",N.value),H(),r.value++}catch(h){O.value=((l=(f=h.response)==null?void 0:f.data)==null?void 0:l.message)||h.message||s("errors.delete"),p("error",h)}finally{P.value=!1}}},i=e.ref(!1);e.watch(G,a=>{var f,l,h,c;if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)&&(i.value=a.response.data.length>0),a.status===m.FetcherStatus.NoRecords?L.value=!0:L.value=!1,a.status===m.FetcherStatus.Error){g.value={title:s("errors.general")},(c=(h=(l=a.error)==null?void 0:l.response)==null?void 0:h.data)!=null&&c.message&&(g.value.message=a.error.response.data.message),p("error",a.error);return}g.value=null});const y=e.ref(!1);return e.onBeforeMount(async()=>{y.value=await d.canCreate()}),(a,f)=>{const l=e.resolveComponent("KButton"),h=e.resolveComponent("KBadge"),c=e.resolveComponent("KInputSwitch"),U=e.resolveComponent("KTruncate"),D=e.resolveComponent("KDropdownItem"),de=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",be,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":n.cacheIdentifier,"default-table-preferences":te,"disable-sorting":V.value,"empty-state-options":re.value,"enable-entity-actions":"","error-message":g.value,fetcher:e.unref($),"fetcher-cache-key":r.value,"hide-toolbar":L.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:T.value,"table-headers":e.unref(oe),onClearSearchInput:ie,"onClick:row":f[3]||(f[3]=u=>ce(u)),onSort:t},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:T.value,"onUpdate:modelValue":f[0]||(f[0]=u=>T.value=u),config:b.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:n.useActionOutside?"medium":"large",to:n.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(me.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"]),[[e.vShow,i.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:u})=>[e.createElementVNode("b",null,e.toDisplayString(u??"-"),1)]),control_plane:e.withCtx(({row:u})=>{var C;return[(C=u.x_meta)!=null&&C.cluster_id?(e.openBlock(),e.createBlock(h,{key:0,tooltip:u.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(J=>se(u.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(u.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",he,"-"))]}),enabled:e.withCtx(({row:u})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canEdit(u),"force-show":""},{default:e.withCtx(({isAllowed:C})=>[e.createElementVNode("div",{onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(c,{modelValue:u.enabled,"onUpdate:modelValue":J=>u.enabled=J,"data-testid":`row-${u.id}-toggle-input`,disabled:!C,onClick:e.withModifiers(J=>Y(u),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:u})=>[(u==null?void 0:u.length)>0?(e.openBlock(),e.createBlock(U,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u,C=>(e.openBlock(),e.createBlock(h,{key:C,onClick:f[2]||(f[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(C),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",we,"-"))]),created_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(u)),1)]),updated_at:e.withCtx(({rowValue:u})=>[e.createTextVNode(e.toDisplayString(e.unref(x)(u)),1)]),actions:e.withCtx(({row:u})=>[e.createVNode(de,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(D,{"data-testid":"action-entity-copy-id",onClick:J=>ae(u,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(de,null,{default:e.withCtx(({copyToClipboard:C})=>[e.createVNode(D,{"data-testid":"action-entity-copy-json",onClick:J=>ne(u,C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canRetrieve(u)},{default:e.withCtx(()=>[e.createVNode(D,{"data-testid":"action-entity-view","has-divider":"",item:K(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canEdit(u)},{default:e.withCtx(()=>[e.createVNode(D,{"data-testid":"action-entity-edit",item:ee(u.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>n.canDelete(u)},{default:e.withCtx(()=>[e.createVNode(D,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:C=>j(u)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers"]),e.createVNode(e.unref(m.EntityToggleModal),{action:B.value.action,"entity-id":B.value.id,"entity-name":B.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":Z,visible:F.value,onCancel:q,onProceed:q},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":P.value,description:e.unref(s)("actions.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(m.EntityTypes).GatewayService,error:O.value,title:e.unref(s)("actions.delete.title"),visible:W.value,onCancel:H,onProceed:o},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),ue=(n,S)=>{const p=n.__vccOpts||n;for(const[d,s]of S)p[d]=s;return p},ve=ue(Ve,[["__scopeId","data-v-26fe95da"]]),ke={class:"kong-ui-entities-gateway-service-form"},Ce={key:0},xe={class:"gateway-service-form-traffic-label"},Ne={class:"gateway-service-form-margin-bottom"},Ee={key:0,class:"gateway-service-form-group-fields"},Se={key:1,class:"gateway-service-form-group-fields"},Te={key:0},Be={class:"gateway-service-form-margin-top"},Ie={class:"gateway-service-form-margin-bottom"},Pe={class:"gateway-service-form-margin-bottom"},Me={class:"gateway-service-form-margin-bottom"},Ue={class:"gateway-service-form-margin-bottom"},De={key:0,class:"gateway-service-form-margin-bottom"},Re={key:1,class:"gateway-service-form-margin-bottom"},Fe={key:2,class:"gateway-service-form-margin-bottom"},Ae={key:0,class:"checkbox-aligned-radio"},$e={key:1,class:"checkbox-aligned-radio"},Ge=ue(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(n,{expose:S,emit:p}){var H;const d=p,s=n,x=e.ref(!0),R=fe.useRouter(),{i18nT:I,i18n:{t:r}}=z.useI18n(),{getMessageFromError:V}=m.useErrors(),{axiosInstance:_}=m.useAxios((H=s.config)==null?void 0:H.axiosRequestConfig),te=m.useValidators(),oe=e.computed(()=>A.form[s.config.app].edit),E=e.computed(()=>s.gatewayServiceId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),le=e.ref(!1),T=e.computed(()=>!!s.gatewayServiceId),b=e.ref(T.value?"protocol":"url"),$=z.usePortFromProtocol(),G=e.ref(""),ie=e.computed(()=>!!G.value),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""}),L=s.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),re=[{label:r("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:r("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:r("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:r("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...L?[{label:r("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:r("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:r("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],F={url:"url",protocol:"protocol"},v=(o,i)=>{i.value},B=o=>o?parseFloat(o):0,Y=()=>{x.value=!0,t.errorMessage="",t.fields.host=g.host,t.fields.path=g.path,t.fields.port=g.port,t.fields.protocol=g.protocol,t.fields.url=g.url,t.fields.retries=g.retries,t.fields.connect_timeout=g.connect_timeout,t.fields.write_timeout=g.write_timeout,t.fields.read_timeout=g.read_timeout,t.fields.client_certificate=g.client_certificate,t.fields.ca_certificates=g.ca_certificates,t.fields.tls_verify_enabled=g.tls_verify_enabled,t.fields.tls_verify_value=g.tls_verify_value},q=()=>{if(t.fields.url&&b.value==="url")try{const o=new URL(t.fields.url);t.errorMessage="",t.fields.protocol=o.protocol.slice(0,-1),t.fields.host=o.hostname,t.fields.path=o.pathname;const i=Number(o.port);le.value=!!i,t.fields.port=i||$.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=r("errors.urlErrorMessage"),d("url-valid:error",V(o))}else d("url-valid:success"),t.errorMessage=""},Z=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),se=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ae=e.computed(()=>{if(b.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ne=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ce=o=>{G.value=te.utf8Name(o)},K=e.computed(()=>T.value&&JSON.stringify(t.fields)!==JSON.stringify(g)||b.value==="url"&&!!t.fields.url||b.value==="protocol"&&!!t.fields.host),ee=o=>{var i,y,k;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((i=o==null?void 0:o.tags)==null?void 0:i.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((y=o==null?void 0:o.ca_certificates)==null?void 0:y.join(","))||"",t.fields.client_certificate=((k=o==null?void 0:o.client_certificate)==null?void 0:k.id)||"",t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,Object.assign(g,t.fields)},N=()=>{R.push(s.config.cancelRoute)},W=e.computed(()=>{var i,y;let o=`${s.config.apiBaseUrl}${A.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=s.config)!=null&&y.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),P=e.computed(()=>{var i,y;let o=`${s.config.apiBaseUrl}${A.form[s.config.app][E.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(y=s.config)!=null&&y.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),O=o=>{let i="";o.url&&(i=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(i))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},M=e.computed(()=>{var i,y,k,a;const o={name:t.fields.name||null,tags:t.fields.tags?(k=(y=(i=t.fields.tags)==null?void 0:i.split(","))==null?void 0:y.map(f=>String(f||"").trim()))==null?void 0:k.filter(f=>f!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(a=t.fields.ca_certificates)==null?void 0:a.split(",").filter(f=>f!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),Z.value||(o.path=null),E.value==="create"?b.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:E.value==="edit"&&delete o.url,o}),j=async()=>{var o,i,y,k;try{t.isReadonly=!0,q();const a=M.value;O(a);let f;if(await _.post(W.value,a),E.value==="create"?f=await _.post(P.value,a):E.value==="edit"&&(f=((o=s.config)==null?void 0:o.app)==="konnect"?await _.put(P.value,a):await _.patch(P.value,a)),f){const{data:l}=f;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||$.getPortFromProtocol(l.protocol),t.fields.protocol=(l==null?void 0:l.protocol)||"http",t.fields.host=(l==null?void 0:l.host)||"",t.fields.path=(l==null?void 0:l.path)||"",t.fields.url=(l==null?void 0:l.url)||"",t.fields.retries=l!=null&&l.retries||(l==null?void 0:l.retries)===0?l==null?void 0:l.retries:5,t.fields.connect_timeout=l!=null&&l.connect_timeout||(l==null?void 0:l.connect_timeout)===0?l==null?void 0:l.connect_timeout:6e4,t.fields.write_timeout=l!=null&&l.write_timeout||(l==null?void 0:l.write_timeout)===0?l==null?void 0:l.write_timeout:6e4,t.fields.read_timeout=l!=null&&l.read_timeout||(l==null?void 0:l.read_timeout)===0?l==null?void 0:l.read_timeout:6e4,t.fields.client_certificate=((i=l==null?void 0:l.client_certificate)==null?void 0:i.id)||"",t.fields.ca_certificates=(y=l==null?void 0:l.ca_certificates)!=null&&y.length?l==null?void 0:l.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(l==null?void 0:l.tls_verify)!==""&&(l==null?void 0:l.tls_verify)!==null&&(l==null?void 0:l.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(l==null?void 0:l.tls_verify),t.fields.tags=(k=l==null?void 0:l.tags)!=null&&k.length?l.tags.join(", "):"",Object.assign(g,t.fields),d("update",f==null?void 0:f.data)}return f}catch(a){t.errorMessage=V(a),d("error",a)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,g)}),e.watch(t.fields,o=>{t.fields.port=$.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",M.value)}),e.onMounted(()=>{d("model-updated",M.value)}),S({validateUrl:q,getPayload:M,saveFormData:j,canSubmit:K,initForm:ee}),(o,i)=>{const y=e.resolveComponent("KInput"),k=e.resolveComponent("KLabel"),a=e.resolveComponent("KRadio"),f=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),h=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":K.value,config:n.config,"edit-id":n.gatewayServiceId,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:N,"onFetch:error":i[25]||(i[25]=c=>o.$emit("error",c)),"onFetch:success":ee,onLoading:i[26]||(i[26]=c=>o.$emit("loading",c)),onSubmit:j},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:K.value,cancel:N,submit:j},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.general.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(y,{modelValue:t.fields.name,"onUpdate:modelValue":i[0]||(i[0]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:ie.value,"error-message":G.value,label:e.unref(r)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(r)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ce},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(y,{modelValue:t.fields.tags,"onUpdate:modelValue":i[1]||(i[1]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(r)("gateway_services.form.fields.tags.help"),label:e.unref(r)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(r)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.keys.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[T.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ce,[e.createElementVNode("div",xe,[e.createVNode(k,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",Ne,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[2]||(i[2]=c=>b.value=c),"data-testid":"gateway-service-url-radio","selected-value":F.url,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),b.value==="url"?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(y,{modelValue:t.fields.url,"onUpdate:modelValue":i[3]||(i[3]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(r)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:n.config.app==="konnect"?e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(r)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[4]||(i[4]=c=>b.value=c),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":F.protocol,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),b.value==="protocol"||T.value?(e.openBlock(),e.createElementBlock("div",Se,[e.createVNode(f,{modelValue:t.fields.protocol,"onUpdate:modelValue":i[5]||(i[5]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:re,label:e.unref(r)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:i[6]||(i[6]=c=>v(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(y,{modelValue:t.fields.host,"onUpdate:modelValue":i[7]||(i[7]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(r)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(r)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),Z.value?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(y,{modelValue:t.fields.path,"onUpdate:modelValue":i[8]||(i[8]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(r)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(r)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(y,{modelValue:t.fields.port,"onUpdate:modelValue":[i[9]||(i[9]=c=>t.fields.port=c),i[10]||(i[10]=()=>{t.fields.port=B(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(r)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:x.value,"onUpdate:modelValue":i[24]||(i[24]=c=>x.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(r)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Be,[e.createElementVNode("div",Ie,[e.createVNode(y,{modelValue:t.fields.retries,"onUpdate:modelValue":[i[11]||(i[11]=c=>t.fields.retries=c),i[12]||(i[12]=()=>{t.fields.retries=B(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(r)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Pe,[e.createVNode(y,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[i[13]||(i[13]=c=>t.fields.connect_timeout=c),i[14]||(i[14]=()=>{t.fields.connect_timeout=B(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(r)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Me,[e.createVNode(y,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[i[15]||(i[15]=c=>t.fields.write_timeout=c),i[16]||(i[16]=()=>{t.fields.write_timeout=B(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(r)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ue,[e.createVNode(y,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[i[17]||(i[17]=c=>t.fields.read_timeout=c),i[18]||(i[18]=()=>{t.fields.read_timeout=B(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(r)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),se.value?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(y,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":i[19]||(i[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(r)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(r)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ae.value?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(y,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":i[20]||(i[20]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(r)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(r)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":i[21]||(i[21]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(I),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[22]||(i[22]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[23]||(i[23]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-35e0db56"]]),Le={class:"kong-ui-gateway-service-entity-config-card"},qe=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(n){const S=n,{i18n:{t:p},i18nT:d}=z.useI18n(),s=e.computed(()=>A.form[S.config.app].edit),{getPropValue:x}=m.useHelpers(),R=(r,V)=>x(r,V)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),I=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:m.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:m.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(r,V)=>(e.openBlock(),e.createElementBlock("div",Le,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:n.config,"config-card-doc":n.configCardDoc,"config-schema":I.value,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":n.hideTitle,"onFetch:error":V[0]||(V[0]=_=>r.$emit("fetch:error",_)),"onFetch:success":V[1]||(V[1]=_=>r.$emit("fetch:success",_)),onLoading:V[2]||(V[2]=_=>r.$emit("loading",_))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(typeof e.unref(x)("rowValue",_)=="boolean"?R("rowValue",_):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(e.unref(x)("rowValue",_)?e.unref(x)("rowValue",_).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});w.GatewayServiceConfigCard=qe,w.GatewayServiceForm=Ge,w.GatewayServiceList=ve,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-gateway-services-list[data-v-26fe95da]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-26fe95da]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-b3bd262f]{width:100%}.kong-ui-entities-gateway-service-form[data-v-b3bd262f] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-b3bd262f]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-b3bd262f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-b3bd262f],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-b3bd262f] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-b3bd262f]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-b3bd262f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-b3bd262f]{margin:4px;padding-left:24px}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-d957ab89]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-d957ab89]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-d957ab89]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-d957ab89] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-d957ab89]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-gateway-services-list[data-v-26fe95da]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-26fe95da]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-35e0db56]{width:100%}.kong-ui-entities-gateway-service-form[data-v-35e0db56] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-35e0db56]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-35e0db56]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-35e0db56]{margin:4px;padding-left:24px}
@@ -24,14 +24,6 @@ declare const _default: import("vue").DefineComponent<{
24
24
  type: BooleanConstructor;
25
25
  default: boolean;
26
26
  };
27
- /**
28
- * Enable display of Terraform code
29
- * Guarded by FF: khcp-12445-terraform-config-details
30
- */
31
- enableTerraform: {
32
- type: BooleanConstructor;
33
- default: boolean;
34
- };
35
27
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
36
28
  loading: (isLoading: boolean) => void;
37
29
  "fetch:error": (error: AxiosError<unknown, any>) => void;
@@ -58,20 +50,11 @@ declare const _default: import("vue").DefineComponent<{
58
50
  type: BooleanConstructor;
59
51
  default: boolean;
60
52
  };
61
- /**
62
- * Enable display of Terraform code
63
- * Guarded by FF: khcp-12445-terraform-config-details
64
- */
65
- enableTerraform: {
66
- type: BooleanConstructor;
67
- default: boolean;
68
- };
69
53
  }>> & {
70
54
  onLoading?: ((isLoading: boolean) => any) | undefined;
71
55
  "onFetch:success"?: ((data: Record<string, any>) => any) | undefined;
72
56
  "onFetch:error"?: ((error: AxiosError<unknown, any>) => any) | undefined;
73
57
  }, {
74
- enableTerraform: boolean;
75
58
  configCardDoc: string;
76
59
  hideTitle: boolean;
77
60
  }, {}>;
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceConfigCard.vue"],"names":[],"mappings":"AA4MA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qCAAqC,EAAE,iCAAiC,EAAqC,MAAM,UAAU,CAAA;AAU3I,OAAO,gDAAgD,CAAA;;IA4XrD,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;IAKH;;;OAGG;;;;;;;;;;IA9BH,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;IAKH;;;OAGG;;;;;;;;;;;;;;AArCL,wBA2CG"}
1
+ {"version":3,"file":"GatewayServiceConfigCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceConfigCard.vue"],"names":[],"mappings":"AAmMA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAAE,qCAAqC,EAAE,iCAAiC,EAAqC,MAAM,UAAU,CAAA;AAU3I,OAAO,gDAAgD,CAAA;;IAoWrD,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;IAtBH,oHAAoH;;cAElG,QAAQ,CAAC,iCAAiC,GAAG,qCAAqC,CAAC;;4BAE/E,iCAAiC,GAAG,qCAAqC,KAAG,OAAO;;IAQzG;;OAEG;;;;;;IAMH;;OAEG;;;;;;;;;;;;;AA7BL,wBAmCG"}
@@ -33,14 +33,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
33
33
  required: false;
34
34
  default: boolean;
35
35
  };
36
- /**
37
- * Enable display of Terraform code
38
- * Guarded by FF: khcp-12445-terraform-config-details
39
- */
40
- enableTerraform: {
41
- type: BooleanConstructor;
42
- default: boolean;
43
- };
44
36
  }, {
45
37
  validateUrl: () => void;
46
38
  getPayload: import("vue").ComputedRef<Record<string, any>>;
@@ -73,14 +65,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
73
65
  required: false;
74
66
  default: boolean;
75
67
  };
76
- /**
77
- * Enable display of Terraform code
78
- * Guarded by FF: khcp-12445-terraform-config-details
79
- */
80
- enableTerraform: {
81
- type: BooleanConstructor;
82
- default: boolean;
83
- };
84
68
  }>> & {
85
69
  onError?: ((error: any) => any) | undefined;
86
70
  onUpdate?: ((data: Record<string, any>) => any) | undefined;
@@ -91,7 +75,6 @@ declare const __VLS_component: import("vue").DefineComponent<{
91
75
  }, {
92
76
  gatewayServiceId: string;
93
77
  hideSectionsInfo: boolean;
94
- enableTerraform: boolean;
95
78
  }, {}>;
96
79
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
97
80
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"AAg5BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;AA2gBvD,iBAAS,cAAc;;;;0BAhOO,IAAI;0BAmGH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YA4rB3B,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AAqED,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAQnB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD;;;OAGG;;;;;;uBAl/BmB,IAAI;;wBAkMG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAtHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;IA24BhD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD;;;OAGG;;;;;;;;;;;;;;;;MAMH,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
1
+ {"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue"],"names":[],"mappings":"AAu4BA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;AA2fvD,iBAAS,cAAc;;;;0BAxNO,IAAI;0BAmGH,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;YAorB3B,GAAG;;;WAS3B,OAAO,IAA6B;EAEjD;AA6DD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;IAQnB,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;uBAz9BnC,IAAI;;wBAkMG,OAAO,CAAC,aAAa,GAAG,SAAS,CAAC;;qBAtHzC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAG,IAAI;;;;;;;;;IA23BhD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;IAQrG,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;;;;;;;;;;;MAOzD,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAKpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-gateway-services",
3
- "version": "3.8.18",
3
+ "version": "3.8.19",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-gateway-services.umd.js",
6
6
  "module": "./dist/entities-gateway-services.es.js",
@@ -26,7 +26,7 @@
26
26
  "axios": "^1.6.8",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.3.3",
29
- "@kong-ui-public/entities-shared": "^3.9.18",
29
+ "@kong-ui-public/entities-shared": "^3.9.19",
30
30
  "@kong-ui-public/i18n": "^2.2.3"
31
31
  },
32
32
  "devDependencies": {
@@ -36,7 +36,7 @@
36
36
  "axios": "^1.7.7",
37
37
  "vue": "^3.4.38",
38
38
  "vue-router": "^4.4.5",
39
- "@kong-ui-public/entities-shared": "^3.9.18",
39
+ "@kong-ui-public/entities-shared": "^3.9.19",
40
40
  "@kong-ui-public/i18n": "^2.2.3"
41
41
  },
42
42
  "repository": {