@kong-ui-public/entities-gateway-services 3.14.3 → 3.14.4

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,4 +1,4 @@
1
- import { defineComponent as De, ref as R, computed as V, watch as Me, onBeforeMount as He, resolveComponent as D, createElementBlock as T, openBlock as S, createVNode as n, unref as r, createSlots as Ve, withCtx as d, createTextVNode as U, toDisplayString as h, createElementVNode as E, withModifiers as Ue, createBlock as de, Teleport as Ze, createCommentVNode as M, reactive as Be, onMounted as Je, Transition as Re, Fragment as Qe, renderList as Xe, renderSlot as Ye } from "vue";
1
+ import { defineComponent as De, ref as $, computed as C, watch as Me, onBeforeMount as He, resolveComponent as D, createElementBlock as R, openBlock as V, createVNode as n, unref as r, createSlots as Ve, withCtx as d, createTextVNode as U, toDisplayString as h, createBlock as se, createCommentVNode as T, createElementVNode as E, withModifiers as Te, Teleport as Ze, reactive as Be, onMounted as Je, Transition as Ue, Fragment as Qe, renderList as Xe, renderSlot as Ye } from "vue";
2
2
  import { useRouter as Ne } from "vue-router";
3
3
  import { BookIcon as Ke, AddIcon as Le, ServicesIcon as et } from "@kong/icons";
4
4
  import { createI18n as tt, i18nTComponent as ot } from "@kong-ui-public/i18n";
@@ -296,7 +296,7 @@ const X = {
296
296
  edit: `${xe}/services/{id}`
297
297
  }
298
298
  }
299
- }, Ft = { class: "kong-ui-entities-gateway-services-list" }, At = { class: "button-row" }, Tt = { key: 1 }, Ut = /* @__PURE__ */ De({
299
+ }, Ft = { class: "kong-ui-entities-gateway-services-list" }, At = { class: "button-row" }, Rt = { key: 1 }, Tt = /* @__PURE__ */ De({
300
300
  __name: "GatewayServiceList",
301
301
  props: {
302
302
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -354,7 +354,7 @@ const X = {
354
354
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success", "toggle:success"],
355
355
  setup(s, { emit: N }) {
356
356
  var re;
357
- const p = N, c = s, { i18n: { t: a, formatUnixTimeStamp: v } } = X.useI18n(), F = Ne(), { axiosInstance: q } = We((re = c.config) == null ? void 0 : re.axiosRequestConfig), { hasRecords: l, handleStateChange: B } = rt(() => O.value), P = V(() => l.value && c.config.app === "konnect"), Se = V(() => c.config.app !== "kongManager" || !!c.config.disableSorting), se = {
357
+ const p = N, c = s, { i18n: { t: a, formatUnixTimeStamp: v } } = X.useI18n(), F = Ne(), { axiosInstance: q } = We((re = c.config) == null ? void 0 : re.axiosRequestConfig), { hasRecords: l, handleStateChange: B } = rt(() => O.value), P = C(() => l.value && c.config.app === "konnect"), Se = C(() => c.config.app !== "kongManager" || !!c.config.disableSorting), ae = {
358
358
  // the Name column is non-hidable
359
359
  name: { label: a("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
360
360
  ...c.config.showControlPlaneColumn ? { control_plane: { label: a("gateway_services.list.table_headers.control_plane") } } : {},
@@ -370,18 +370,18 @@ const X = {
370
370
  columnVisibility: {
371
371
  created_at: !1
372
372
  }
373
- }, fe = se, Y = V(() => {
373
+ }, fe = ae, Y = C(() => {
374
374
  var g, y;
375
375
  let u = `${c.config.apiBaseUrl}${Ce.list[c.config.app].all}`;
376
376
  return c.config.app === "konnect" ? u = u.replace(/{controlPlaneId}/gi, ((g = c.config) == null ? void 0 : g.controlPlaneId) || "") : c.config.app === "kongManager" && (u = u.replace(/\/{workspace}/gi, (y = c.config) != null && y.workspace ? `/${c.config.workspace}` : "")), u;
377
- }), Ee = V(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${Y.value}`) : new URL(Y.value)), O = R(""), j = V(() => {
377
+ }), Ee = C(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${Y.value}`) : new URL(Y.value)), O = $(""), j = C(() => {
378
378
  const u = c.config.app === "konnect" || c.config.isExactMatch;
379
379
  if (u)
380
380
  return {
381
381
  isExactMatch: u,
382
382
  placeholder: a(`search.placeholder.${c.config.app}`)
383
383
  };
384
- const { name: g, enabled: y, protocol: I, host: K, port: L, path: A } = se;
384
+ const { name: g, enabled: y, protocol: I, host: K, port: L, path: A } = ae;
385
385
  return {
386
386
  isExactMatch: u,
387
387
  fields: { name: g, enabled: y, protocol: I, host: K, port: L, path: A },
@@ -390,42 +390,42 @@ const X = {
390
390
  }), {
391
391
  fetcher: Pe,
392
392
  fetcherState: z,
393
- fetcherCacheKey: C
394
- } = it(V(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), Y), ae = () => {
393
+ fetcherCacheKey: S
394
+ } = it(C(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), Y), ne = () => {
395
395
  O.value = "";
396
- }, ne = () => {
397
- C.value++;
398
- }, ee = R(null), e = V(() => ({
396
+ }, ce = () => {
397
+ S.value++;
398
+ }, ee = $(null), e = C(() => ({
399
399
  ctaPath: c.config.createRoute,
400
400
  ctaText: oe.value ? c.isServerless ? a("actions.serverless_create") : a("actions.create") : void 0,
401
401
  message: `${a("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
402
402
  title: oe.value ? c.isServerless ? a("gateway_services.list.empty_state.serverless_title") : a("gateway_services.list.empty_state.title") : a("gateway_services.title")
403
- })), w = R(!1), $ = R(null), te = V(() => {
403
+ })), w = $(!1), x = $(null), te = C(() => {
404
404
  const u = {
405
405
  action: "disable",
406
406
  id: "",
407
407
  name: ""
408
408
  };
409
- if ($.value) {
410
- const { enabled: g, id: y, name: I } = $.value;
409
+ if (x.value) {
410
+ const { enabled: g, id: y, name: I } = x.value;
411
411
  u.action = g ? "disable" : "enable", u.id = y, u.name = I || y;
412
412
  }
413
413
  return u;
414
414
  }), pe = (u) => {
415
- w.value = !0, $.value = u;
415
+ w.value = !0, x.value = u;
416
416
  }, me = () => {
417
- w.value = !1, $.value = null;
417
+ w.value = !1, x.value = null;
418
418
  }, H = async () => {
419
419
  var I, K;
420
- if (!await ((I = c.canEdit) == null ? void 0 : I.call(c, $.value)) || !$.value)
420
+ if (!await ((I = c.canEdit) == null ? void 0 : I.call(c, x.value)) || !x.value)
421
421
  return;
422
- const g = `${Ee.value.href}/${$.value.id}`, y = !$.value.enabled;
422
+ const g = `${Ee.value.href}/${x.value.id}`, y = !x.value.enabled;
423
423
  try {
424
424
  const L = (K = c.config) == null ? void 0 : K.app;
425
425
  let A;
426
426
  O.value && L === "konnect" && (A = await q.get(g));
427
- const { data: t } = L === "konnect" ? await q.put(g, { ...(A == null ? void 0 : A.data) || $.value, enabled: y }) : await q.patch(g, { ...$.value, enabled: y });
428
- p("toggle:success", t), $.value.enabled = y;
427
+ const { data: t } = L === "konnect" ? await q.put(g, { ...(A == null ? void 0 : A.data) || x.value, enabled: y }) : await q.patch(g, { ...x.value, enabled: y });
428
+ p("toggle:success", t), x.value.enabled = y;
429
429
  } catch (L) {
430
430
  p("error", L);
431
431
  }
@@ -468,26 +468,29 @@ const X = {
468
468
  }), Ie = (u) => ({
469
469
  label: a("actions.edit"),
470
470
  to: c.config.getEditRoute(u)
471
- }), Z = (u) => ({
472
- label: a("actions.debugger"),
473
- to: c.config.getDebugRoute(u)
474
- }), x = R(void 0), W = R(!1), J = R(!1), ce = R(""), Fe = lt(c.config, Y.value), be = (u) => {
475
- x.value = u, W.value = !0, ce.value = "";
471
+ }), Z = (u) => {
472
+ if (c.config.getDebugRoute)
473
+ return {
474
+ label: a("actions.debugger"),
475
+ to: c.config.getDebugRoute(u)
476
+ };
477
+ }, M = $(void 0), W = $(!1), J = $(!1), de = $(""), Fe = lt(c.config, Y.value), be = (u) => {
478
+ M.value = u, W.value = !0, de.value = "";
476
479
  }, we = () => {
477
- W.value = !1, x.value = void 0;
480
+ W.value = !1, M.value = void 0;
478
481
  }, Ae = async () => {
479
482
  var u, g, y;
480
- if ((u = x.value) != null && u.id) {
483
+ if ((u = M.value) != null && u.id) {
481
484
  J.value = !0;
482
485
  try {
483
- await q.delete(Fe(x.value.id)), p("delete:success", x.value), we(), C.value++;
486
+ await q.delete(Fe(M.value.id)), p("delete:success", M.value), we(), S.value++;
484
487
  } catch (I) {
485
- ce.value = ((y = (g = I.response) == null ? void 0 : g.data) == null ? void 0 : y.message) || I.message || a("errors.delete"), p("error", I);
488
+ de.value = ((y = (g = I.response) == null ? void 0 : g.data) == null ? void 0 : y.message) || I.message || a("errors.delete"), p("error", I);
486
489
  } finally {
487
490
  J.value = !1;
488
491
  }
489
492
  }
490
- }, Te = () => {
493
+ }, Re = () => {
491
494
  F.push(c.config.createRoute);
492
495
  };
493
496
  Me(z, (u) => {
@@ -500,12 +503,12 @@ const X = {
500
503
  }
501
504
  ee.value = null;
502
505
  });
503
- const oe = R(!1);
506
+ const oe = $(!1);
504
507
  return He(async () => {
505
508
  oe.value = await c.canCreate();
506
509
  }), (u, g) => {
507
510
  const y = D("KButton"), I = D("KEmptyState"), K = D("KBadge"), L = D("KInputSwitch"), A = D("KDropdownItem"), t = D("KClipboardProvider");
508
- return S(), T("div", Ft, [
511
+ return V(), R("div", Ft, [
509
512
  n(r(at), {
510
513
  "cache-identifier": s.cacheIdentifier,
511
514
  "default-table-preferences": ue,
@@ -514,14 +517,14 @@ const X = {
514
517
  "enable-entity-actions": "",
515
518
  "error-message": ee.value,
516
519
  fetcher: r(Pe),
517
- "fetcher-cache-key": r(C),
520
+ "fetcher-cache-key": r(S),
518
521
  "pagination-type": "offset",
519
522
  "preferences-storage-key": "kong-ui-entities-gateway-services-list",
520
523
  query: O.value,
521
524
  "table-headers": r(fe),
522
- onClearSearchInput: ae,
525
+ onClearSearchInput: ne,
523
526
  "onClick:row": g[4] || (g[4] = (o) => _e(o)),
524
- onSort: ne,
527
+ onSort: ce,
525
528
  onState: r(B)
526
529
  }, Ve({
527
530
  "toolbar-filter": d(() => [
@@ -532,12 +535,12 @@ const X = {
532
535
  }, null, 8, ["modelValue", "config"])
533
536
  ]),
534
537
  "toolbar-button": d(() => [
535
- (S(), de(Ze, {
538
+ (V(), se(Ze, {
536
539
  disabled: !s.useActionOutside,
537
540
  to: "#kong-ui-app-page-header-action-button"
538
541
  }, [
539
542
  E("div", At, [
540
- P.value ? (S(), de(y, {
543
+ P.value ? (V(), se(y, {
541
544
  key: 0,
542
545
  appearance: "secondary",
543
546
  class: "open-learning-hub",
@@ -549,7 +552,7 @@ const X = {
549
552
  n(r(Ke), { decorative: "" })
550
553
  ]),
551
554
  _: 1
552
- })) : M("", !0),
555
+ })) : T("", !0),
553
556
  n(r(le), {
554
557
  "auth-function": () => s.canCreate()
555
558
  }, {
@@ -578,17 +581,17 @@ const X = {
578
581
  control_plane: d(({ row: o }) => {
579
582
  var m;
580
583
  return [
581
- (m = o.x_meta) != null && m.cluster_id ? (S(), de(K, {
584
+ (m = o.x_meta) != null && m.cluster_id ? (V(), se(K, {
582
585
  key: 0,
583
586
  tooltip: o.x_meta.cluster_id,
584
587
  "truncation-tooltip": "",
585
- onClick: Ue((b) => ve(o.x_meta.cluster_id), ["stop"])
588
+ onClick: Te((b) => ve(o.x_meta.cluster_id), ["stop"])
586
589
  }, {
587
590
  default: d(() => [
588
591
  U(h(o.x_meta.cluster_id), 1)
589
592
  ]),
590
593
  _: 2
591
- }, 1032, ["tooltip", "onClick"])) : (S(), T("b", Tt, "-"))
594
+ }, 1032, ["tooltip", "onClick"])) : (V(), R("b", Rt, "-"))
592
595
  ];
593
596
  }),
594
597
  enabled: d(({ row: o }) => [
@@ -598,7 +601,7 @@ const X = {
598
601
  }, {
599
602
  default: d(({ isAllowed: m }) => [
600
603
  E("div", {
601
- onClick: g[3] || (g[3] = Ue(() => {
604
+ onClick: g[3] || (g[3] = Te(() => {
602
605
  }, ["stop"]))
603
606
  }, [
604
607
  n(L, {
@@ -606,7 +609,7 @@ const X = {
606
609
  "onUpdate:modelValue": (b) => o.enabled = b,
607
610
  "data-testid": `row-${o.id}-toggle-input`,
608
611
  disabled: !m,
609
- onClick: Ue((b) => pe(o), ["prevent"])
612
+ onClick: Te((b) => pe(o), ["prevent"])
610
613
  }, null, 8, ["modelValue", "onUpdate:modelValue", "data-testid", "disabled", "onClick"])
611
614
  ])
612
615
  ]),
@@ -667,10 +670,11 @@ const X = {
667
670
  "auth-function": () => s.canDebug(o)
668
671
  }, {
669
672
  default: d(() => [
670
- n(A, {
673
+ s.config.getDebugRoute ? (V(), se(A, {
674
+ key: 0,
671
675
  "data-testid": "action-entity-debug",
672
676
  item: Z(o.id)
673
- }, null, 8, ["item"])
677
+ }, null, 8, ["item"])) : T("", !0)
674
678
  ]),
675
679
  _: 2
676
680
  }, 1032, ["auth-function"]),
@@ -721,17 +725,17 @@ const X = {
721
725
  n(r(et), { decorative: "" })
722
726
  ]),
723
727
  action: d(() => [
724
- oe.value ? (S(), de(y, {
728
+ oe.value ? (V(), se(y, {
725
729
  key: 0,
726
730
  "data-testid": "entity-create-button",
727
- onClick: Te
731
+ onClick: Re
728
732
  }, {
729
733
  default: d(() => [
730
734
  n(r(Le), { decorative: "" }),
731
735
  U(" " + h(r(a)("gateway_services.empty_state_v2.create")), 1)
732
736
  ]),
733
737
  _: 1
734
- })) : M("", !0),
738
+ })) : T("", !0),
735
739
  n(y, {
736
740
  appearance: "secondary",
737
741
  "data-testid": "entity-learn-more-button",
@@ -772,9 +776,9 @@ const X = {
772
776
  n(r(ut), {
773
777
  "action-pending": J.value,
774
778
  description: r(a)("actions.delete.description"),
775
- "entity-name": x.value && (x.value.name || x.value.id),
779
+ "entity-name": M.value && (M.value.name || M.value.id),
776
780
  "entity-type": r(ft).GatewayService,
777
- error: ce.value,
781
+ error: de.value,
778
782
  title: r(a)("actions.delete.title"),
779
783
  visible: W.value,
780
784
  onCancel: we,
@@ -788,7 +792,7 @@ const X = {
788
792
  for (const [c, a] of N)
789
793
  p[c] = a;
790
794
  return p;
791
- }, no = /* @__PURE__ */ ze(Ut, [["__scopeId", "data-v-7f1b285f"]]), Rt = { class: "kong-ui-gateway-service-entity-config-card" }, co = /* @__PURE__ */ De({
795
+ }, no = /* @__PURE__ */ ze(Tt, [["__scopeId", "data-v-be14eac9"]]), Ut = { class: "kong-ui-gateway-service-entity-config-card" }, co = /* @__PURE__ */ De({
792
796
  __name: "GatewayServiceConfigCard",
793
797
  props: {
794
798
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -815,7 +819,7 @@ const X = {
815
819
  },
816
820
  emits: ["loading", "fetch:error", "fetch:success"],
817
821
  setup(s) {
818
- const N = s, { i18n: { t: p }, i18nT: c } = X.useI18n(), a = V(() => Ce.form[N.config.app].edit), { getPropValue: v } = Oe(), F = (l, B) => v(l, B) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), q = R({
822
+ const N = s, { i18n: { t: p }, i18nT: c } = X.useI18n(), a = C(() => Ce.form[N.config.app].edit), { getPropValue: v } = Oe(), F = (l, B) => v(l, B) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), q = $({
819
823
  id: {},
820
824
  name: {
821
825
  tooltip: p("gateway_services.form.fields.name.tooltip")
@@ -875,7 +879,7 @@ const X = {
875
879
  hidden: !0
876
880
  }
877
881
  });
878
- return (l, B) => (S(), T("div", Rt, [
882
+ return (l, B) => (V(), R("div", Ut, [
879
883
  n(r(mt), {
880
884
  config: s.config,
881
885
  "config-card-doc": s.configCardDoc,
@@ -1000,7 +1004,7 @@ const X = {
1000
1004
  emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated", "try-sample-api"],
1001
1005
  setup(s, { expose: N, emit: p }) {
1002
1006
  var A;
1003
- const c = p, a = s, v = R(!0), F = Ne(), { i18nT: q, i18n: { t: l } } = X.useI18n(), { getErrorFieldsFromError: B } = vt(), { axiosInstance: P } = We((A = a.config) == null ? void 0 : A.axiosRequestConfig), Se = gt(), { validateHost: se, validatePath: ue, validatePort: fe, validateProtocol: Y } = X.useUrlValidators(), { objectsAreEqual: Ee } = Oe(), O = V(() => Ce.form[a.config.app].edit), j = V(() => a.gatewayServiceId ? qe.Edit : qe.Create), Pe = R(!1), z = V(() => !!a.gatewayServiceId), C = R(z.value ? "protocol" : "url"), ae = X.usePortFromProtocol(), ne = R(""), ee = V(() => !!ne.value || !!Z("name")), e = Be({
1007
+ const c = p, a = s, v = $(!0), F = Ne(), { i18nT: q, i18n: { t: l } } = X.useI18n(), { getErrorFieldsFromError: B } = vt(), { axiosInstance: P } = We((A = a.config) == null ? void 0 : A.axiosRequestConfig), Se = gt(), { validateHost: ae, validatePath: ue, validatePort: fe, validateProtocol: Y } = X.useUrlValidators(), { objectsAreEqual: Ee } = Oe(), O = C(() => Ce.form[a.config.app].edit), j = C(() => a.gatewayServiceId ? qe.Edit : qe.Create), Pe = $(!1), z = C(() => !!a.gatewayServiceId), S = $(z.value ? "protocol" : "url"), ne = X.usePortFromProtocol(), ce = $(""), ee = C(() => !!ce.value || !!Z("name")), e = Be({
1004
1008
  fields: {
1005
1009
  name: "",
1006
1010
  protocol: "http",
@@ -1054,7 +1058,7 @@ const X = {
1054
1058
  tls_verify_value: !1,
1055
1059
  tags: "",
1056
1060
  enabled: !0
1057
- }), $ = a.config.app === "konnect" || yt({
1061
+ }), x = a.config.app === "konnect" || yt({
1058
1062
  gatewayInfo: a.config.gatewayInfo,
1059
1063
  // 'ws' and 'wss' are not valid values for the protocol field in Gateway Community Edition or before Gateway Enterprise Edition 3.0
1060
1064
  supportedRange: {
@@ -1096,7 +1100,7 @@ const X = {
1096
1100
  value: "grpcs",
1097
1101
  group: "grpc"
1098
1102
  },
1099
- ...$ ? [
1103
+ ...x ? [
1100
1104
  {
1101
1105
  label: l("gateway_services.form.fields.protocol.options.ws"),
1102
1106
  value: "ws",
@@ -1114,13 +1118,13 @@ const X = {
1114
1118
  group: "udp"
1115
1119
  }
1116
1120
  ], pe = { url: "url", protocol: "protocol" }, me = (t) => {
1117
- e.fields.protocol = t.value, e.fields.port = ae.getPortFromProtocol(e.fields.protocol, String(e.fields.port));
1121
+ e.fields.protocol = t.value, e.fields.port = ne.getPortFromProtocol(e.fields.protocol, String(e.fields.port));
1118
1122
  }, H = (t) => t ? parseFloat(t) : 0, ve = () => {
1119
1123
  e.fields.host = w.host, e.fields.path = w.path, e.fields.port = w.port, e.fields.protocol = w.protocol, e.fields.url = w.url, e.fields.retries = w.retries, e.fields.connect_timeout = w.connect_timeout, e.fields.write_timeout = w.write_timeout, e.fields.read_timeout = w.read_timeout, e.fields.client_certificate = w.client_certificate, e.fields.ca_certificates = w.ca_certificates, e.fields.tls_verify_enabled = w.tls_verify_enabled, e.fields.tls_verify_value = w.tls_verify_value, e.fields.enabled = w.enabled;
1120
1124
  }, ge = () => {
1121
1125
  v.value = !0, W(), e.errorMessages = [], ve();
1122
1126
  }, ye = () => {
1123
- switch (ve(), e.fields.name = `${G.name}-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, C.value) {
1127
+ switch (ve(), e.fields.name = `${G.name}-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, S.value) {
1124
1128
  case "url":
1125
1129
  e.fields.url = `${G.protocol}://${G.host}${G.path}`;
1126
1130
  break;
@@ -1136,7 +1140,7 @@ const X = {
1136
1140
  const t = new URL(e.fields.url), o = Y(t.protocol, te);
1137
1141
  if (o) throw new Error(o);
1138
1142
  e.fields.protocol = t.protocol.slice(0, -1);
1139
- const m = se(t.hostname);
1143
+ const m = ae(t.hostname);
1140
1144
  if (m) throw new Error(m);
1141
1145
  e.fields.host = t.hostname;
1142
1146
  const b = ue(t.pathname);
@@ -1145,19 +1149,19 @@ const X = {
1145
1149
  const _ = fe(t.port);
1146
1150
  if (_) throw new Error(_);
1147
1151
  const k = Number(t.port);
1148
- Pe.value = !!k, e.fields.port = k || ae.getPortFromProtocol(e.fields.protocol), c("url-valid:success");
1152
+ Pe.value = !!k, e.fields.port = k || ne.getPortFromProtocol(e.fields.protocol), c("url-valid:success");
1149
1153
  } catch {
1150
1154
  c("url-valid:error", l("gateway_services.form.errors.url.invalid")), e.formFieldErrors.url = l("gateway_services.form.errors.url.invalid");
1151
1155
  }
1152
1156
  }, he = (t) => {
1153
1157
  W(t);
1154
- }, Ie = V(() => !!e.formFieldErrors.url || !!e.formFieldErrors.host || !!e.formFieldErrors.port), Z = (t) => {
1158
+ }, Ie = C(() => !!e.formFieldErrors.url || !!e.formFieldErrors.host || !!e.formFieldErrors.port), Z = (t) => {
1155
1159
  if (e.errorMessages.length) return "";
1156
1160
  const o = e.formFieldErrors;
1157
1161
  return o[t] ? o[t] : "";
1158
- }, x = (t) => {
1162
+ }, M = (t) => {
1159
1163
  W(t ?? void 0);
1160
- const o = se(e.fields.host);
1164
+ const o = ae(e.fields.host);
1161
1165
  o && (e.formFieldErrors.host = o);
1162
1166
  const m = ue(e.fields.path);
1163
1167
  m && (e.formFieldErrors.path = m);
@@ -1170,46 +1174,46 @@ const X = {
1170
1174
  for (let o in e.formFieldErrors)
1171
1175
  e.formFieldErrors[o] = "";
1172
1176
  e.errorMessages = [];
1173
- }, J = V(() => {
1177
+ }, J = C(() => {
1174
1178
  for (let t in e.formFieldErrors)
1175
1179
  if (e.formFieldErrors[t].length)
1176
1180
  return !1;
1177
1181
  return !0;
1178
- }), ce = () => {
1179
- e.fields.url && C.value === "url" ? _e() : x();
1180
- }, Fe = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, be = V(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), we = V(() => {
1181
- if (C.value === "url")
1182
+ }), de = () => {
1183
+ e.fields.url && S.value === "url" ? _e() : M();
1184
+ }, Fe = () => `new-service-${(/* @__PURE__ */ new Date()).toISOString().replace(/\D/g, "").slice(0, 17)}`, be = C(() => !["tcp", "tls", "tls_passthrough", "grpc", "grpcs", "udp"].includes(e.fields.protocol)), we = C(() => {
1185
+ if (S.value === "url")
1182
1186
  return !0;
1183
1187
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
1184
- return C.value === "protocol" && t;
1185
- }), Ae = V(() => {
1186
- if (C.value === "url")
1188
+ return S.value === "protocol" && t;
1189
+ }), Ae = C(() => {
1190
+ if (S.value === "url")
1187
1191
  return !0;
1188
1192
  const t = ["https", "tls"].includes(e.fields.protocol);
1189
- return C.value === "protocol" && t;
1190
- }), Te = V(() => {
1191
- if (C.value === "url")
1193
+ return S.value === "protocol" && t;
1194
+ }), Re = C(() => {
1195
+ if (S.value === "url")
1192
1196
  return !0;
1193
1197
  const t = ["https", "wss", "tls"].includes(e.fields.protocol);
1194
- return C.value === "protocol" && t;
1198
+ return S.value === "protocol" && t;
1195
1199
  }), oe = (t) => {
1196
- W("name"), ne.value = Se.utf8Name(t);
1197
- }, re = V(() => {
1198
- const t = !z.value || !Ee(e.fields, w), o = C.value === "url" && !!e.fields.url && J.value, m = C.value === "protocol" && !!e.fields.host && J.value;
1200
+ W("name"), ce.value = Se.utf8Name(t);
1201
+ }, re = C(() => {
1202
+ const t = !z.value || !Ee(e.fields, w), o = S.value === "url" && !!e.fields.url && J.value, m = S.value === "protocol" && !!e.fields.host && J.value;
1199
1203
  return t && (o || m);
1200
1204
  }), u = (t) => {
1201
1205
  var o, m, b;
1202
1206
  e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((o = t == null ? void 0 : t.tags) == null ? void 0 : o.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 = ((m = t == null ? void 0 : t.ca_certificates) == null ? void 0 : m.join(",")) || "", e.fields.client_certificate = ((b = t == null ? void 0 : t.client_certificate) == null ? void 0 : b.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, e.fields.enabled = (t == null ? void 0 : t.enabled) ?? !0, Object.assign(w, e.fields);
1203
1207
  }, g = () => {
1204
1208
  F.push(a.config.cancelRoute);
1205
- }, y = V(() => {
1209
+ }, y = C(() => {
1206
1210
  var o, m;
1207
1211
  let t = `${a.config.apiBaseUrl}${Ce.form[a.config.app][j.value]}`;
1208
1212
  return a.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((o = a.config) == null ? void 0 : o.controlPlaneId) || "") : a.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (m = a.config) != null && m.workspace ? `/${a.config.workspace}` : "")), t = t.replace(/{id}/gi, a.gatewayServiceId), t;
1209
1213
  }), I = (t) => {
1210
1214
  let o = "";
1211
1215
  t.url && (o = new URL(t.url).protocol), (["https", "wss", "tls"].includes(t.protocol) || ["https", "wss", "tls"].includes(o)) && (t.tls_verify = t.tls_verify_enabled ? t.tls_verify_value : null), delete t.tls_verify_enabled, delete t.tls_verify_value;
1212
- }, K = V(() => {
1216
+ }, K = C(() => {
1213
1217
  var o, m, b, _;
1214
1218
  const t = {
1215
1219
  name: e.fields.name || null,
@@ -1229,7 +1233,7 @@ const X = {
1229
1233
  url: e.fields.url,
1230
1234
  enabled: e.fields.enabled
1231
1235
  };
1232
- return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), be.value || (t.path = null), j.value === "create" ? C.value === "url" ? (delete t.protocol, delete t.host, delete t.path, a.config.app === "konnect" && delete t.port) : delete t.url : j.value === "edit" && delete t.url, t;
1236
+ return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), be.value || (t.path = null), j.value === "create" ? S.value === "url" ? (delete t.protocol, delete t.host, delete t.path, a.config.app === "konnect" && delete t.port) : delete t.url : j.value === "edit" && delete t.url, t;
1233
1237
  }), L = async () => {
1234
1238
  var t, o, m, b;
1235
1239
  try {
@@ -1239,7 +1243,7 @@ const X = {
1239
1243
  let k;
1240
1244
  if (j.value === "create" ? k = await P.post(y.value, _) : j.value === "edit" && (k = ((t = a.config) == null ? void 0 : t.app) === "konnect" ? await P.put(y.value, _) : await P.patch(y.value, _)), k) {
1241
1245
  const { data: i } = k;
1242
- e.fields.name = (i == null ? void 0 : i.name) || "", e.fields.port = i.port || ae.getPortFromProtocol(i.protocol), e.fields.protocol = (i == null ? void 0 : i.protocol) || "http", e.fields.host = (i == null ? void 0 : i.host) || "", e.fields.path = (i == null ? void 0 : i.path) || "", e.fields.url = (i == null ? void 0 : i.url) || "", e.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, e.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, e.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, e.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, e.fields.client_certificate = ((o = i == null ? void 0 : i.client_certificate) == null ? void 0 : o.id) || "", e.fields.ca_certificates = (m = i == null ? void 0 : i.ca_certificates) != null && m.length ? i == null ? void 0 : i.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (i == null ? void 0 : i.tls_verify), e.fields.tags = (b = i == null ? void 0 : i.tags) != null && b.length ? i.tags.join(", ") : "", e.fields.enabled = (i == null ? void 0 : i.enabled) ?? !0, Object.assign(w, e.fields), c("update", k == null ? void 0 : k.data);
1246
+ e.fields.name = (i == null ? void 0 : i.name) || "", e.fields.port = i.port || ne.getPortFromProtocol(i.protocol), e.fields.protocol = (i == null ? void 0 : i.protocol) || "http", e.fields.host = (i == null ? void 0 : i.host) || "", e.fields.path = (i == null ? void 0 : i.path) || "", e.fields.url = (i == null ? void 0 : i.url) || "", e.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, e.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, e.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, e.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, e.fields.client_certificate = ((o = i == null ? void 0 : i.client_certificate) == null ? void 0 : o.id) || "", e.fields.ca_certificates = (m = i == null ? void 0 : i.ca_certificates) != null && m.length ? i == null ? void 0 : i.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (i == null ? void 0 : i.tls_verify), e.fields.tags = (b = i == null ? void 0 : i.tags) != null && b.length ? i.tags.join(", ") : "", e.fields.enabled = (i == null ? void 0 : i.enabled) ?? !0, Object.assign(w, e.fields), c("update", k == null ? void 0 : k.data);
1243
1247
  }
1244
1248
  return k;
1245
1249
  } catch (_) {
@@ -1262,14 +1266,14 @@ const X = {
1262
1266
  }), Je(() => {
1263
1267
  c("model-updated", K.value), z.value || (e.fields.name = Fe());
1264
1268
  }), N({
1265
- validateUrl: ce,
1269
+ validateUrl: de,
1266
1270
  getPayload: K,
1267
1271
  saveFormData: L,
1268
1272
  canSubmit: re,
1269
1273
  initForm: u
1270
1274
  }), (t, o) => {
1271
1275
  const m = D("KRadio"), b = D("KButton"), _ = D("KInput"), k = D("KSelect"), i = D("KCheckbox"), Q = D("KCollapse"), ie = D("KAlert");
1272
- return S(), T("div", $t, [
1276
+ return V(), R("div", $t, [
1273
1277
  n(r(_t), {
1274
1278
  "can-submit": re.value,
1275
1279
  config: s.config,
@@ -1298,11 +1302,11 @@ const X = {
1298
1302
  title: r(l)("gateway_services.form.sections.keys.title")
1299
1303
  }, {
1300
1304
  default: d(() => [
1301
- z.value ? M("", !0) : (S(), T("div", xt, [
1305
+ z.value ? T("", !0) : (V(), R("div", xt, [
1302
1306
  E("div", Mt, [
1303
1307
  n(m, {
1304
- modelValue: C.value,
1305
- "onUpdate:modelValue": o[0] || (o[0] = (f) => C.value = f),
1308
+ modelValue: S.value,
1309
+ "onUpdate:modelValue": o[0] || (o[0] = (f) => S.value = f),
1306
1310
  card: "",
1307
1311
  "card-orientation": "horizontal",
1308
1312
  "data-testid": "gateway-service-url-radio",
@@ -1312,8 +1316,8 @@ const X = {
1312
1316
  onChange: ge
1313
1317
  }, null, 8, ["modelValue", "description", "label", "selected-value"]),
1314
1318
  n(m, {
1315
- modelValue: C.value,
1316
- "onUpdate:modelValue": o[1] || (o[1] = (f) => C.value = f),
1319
+ modelValue: S.value,
1320
+ "onUpdate:modelValue": o[1] || (o[1] = (f) => S.value = f),
1317
1321
  card: "",
1318
1322
  "card-orientation": "horizontal",
1319
1323
  "checked-group": "protocol",
@@ -1324,9 +1328,9 @@ const X = {
1324
1328
  onChange: ge
1325
1329
  }, null, 8, ["modelValue", "description", "label", "selected-value"])
1326
1330
  ]),
1327
- n(Re, { name: "slide-fade" }, {
1331
+ n(Ue, { name: "slide-fade" }, {
1328
1332
  default: d(() => [
1329
- C.value === "url" ? (S(), T("div", Dt, [
1333
+ S.value === "url" ? (V(), R("div", Dt, [
1330
1334
  n(_, {
1331
1335
  modelValue: e.fields.url,
1332
1336
  "onUpdate:modelValue": o[2] || (o[2] = (f) => e.fields.url = f),
@@ -1363,14 +1367,14 @@ const X = {
1363
1367
  key: "0"
1364
1368
  }
1365
1369
  ]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
1366
- ])) : M("", !0)
1370
+ ])) : T("", !0)
1367
1371
  ]),
1368
1372
  _: 1
1369
1373
  })
1370
1374
  ])),
1371
- n(Re, { name: "slide-fade" }, {
1375
+ n(Ue, { name: "slide-fade" }, {
1372
1376
  default: d(() => [
1373
- C.value === "protocol" || z.value ? (S(), T("div", Bt, [
1377
+ S.value === "protocol" || z.value ? (V(), R("div", Bt, [
1374
1378
  n(k, {
1375
1379
  modelValue: e.fields.protocol,
1376
1380
  "onUpdate:modelValue": o[3] || (o[3] = (f) => e.fields.protocol = f),
@@ -1402,7 +1406,7 @@ const X = {
1402
1406
  name: "host",
1403
1407
  placeholder: r(l)("gateway_services.form.fields.host.placeholder"),
1404
1408
  required: "",
1405
- onInput: o[5] || (o[5] = (f) => x("host"))
1409
+ onInput: o[5] || (o[5] = (f) => M("host"))
1406
1410
  }, Ve({ _: 2 }, [
1407
1411
  s.hideTrySampleApiButton ? void 0 : {
1408
1412
  name: "after",
@@ -1421,7 +1425,7 @@ const X = {
1421
1425
  key: "0"
1422
1426
  }
1423
1427
  ]), 1032, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"]),
1424
- be.value ? (S(), T("div", Kt, [
1428
+ be.value ? (V(), R("div", Kt, [
1425
1429
  n(_, {
1426
1430
  modelValue: e.fields.path,
1427
1431
  "onUpdate:modelValue": o[6] || (o[6] = (f) => e.fields.path = f),
@@ -1437,9 +1441,9 @@ const X = {
1437
1441
  },
1438
1442
  name: "path",
1439
1443
  placeholder: r(l)("gateway_services.form.fields.path.placeholder"),
1440
- onInput: o[7] || (o[7] = (f) => x("path"))
1444
+ onInput: o[7] || (o[7] = (f) => M("path"))
1441
1445
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder"])
1442
- ])) : M("", !0),
1446
+ ])) : T("", !0),
1443
1447
  n(_, {
1444
1448
  modelValue: e.fields.port,
1445
1449
  "onUpdate:modelValue": [
@@ -1459,9 +1463,9 @@ const X = {
1459
1463
  },
1460
1464
  name: "port",
1461
1465
  type: "number",
1462
- onInput: o[9] || (o[9] = (f) => x("port"))
1466
+ onInput: o[9] || (o[9] = (f) => M("port"))
1463
1467
  }, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes"])
1464
- ])) : M("", !0)
1468
+ ])) : T("", !0)
1465
1469
  ]),
1466
1470
  _: 1
1467
1471
  }),
@@ -1473,9 +1477,9 @@ const X = {
1473
1477
  "trigger-label": r(l)("gateway_services.form.sections.keys.viewAdvancedFields")
1474
1478
  }, {
1475
1479
  default: d(() => [
1476
- n(Re, { name: "slide-fade" }, {
1480
+ n(Ue, { name: "slide-fade" }, {
1477
1481
  default: d(() => [
1478
- v.value ? M("", !0) : (S(), T("div", Lt, [
1482
+ v.value ? T("", !0) : (V(), R("div", Lt, [
1479
1483
  E("div", qt, [
1480
1484
  n(_, {
1481
1485
  modelValue: e.fields.retries,
@@ -1560,7 +1564,7 @@ const X = {
1560
1564
  type: "number"
1561
1565
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1562
1566
  ]),
1563
- we.value ? (S(), T("div", Ot, [
1567
+ we.value ? (V(), R("div", Ot, [
1564
1568
  n(_, {
1565
1569
  modelValue: e.fields.client_certificate,
1566
1570
  "onUpdate:modelValue": o[19] || (o[19] = (f) => e.fields.client_certificate = f),
@@ -1579,8 +1583,8 @@ const X = {
1579
1583
  type: "text",
1580
1584
  onInput: o[20] || (o[20] = (f) => he("client_certificate"))
1581
1585
  }, null, 8, ["modelValue", "error", "label", "label-attributes", "placeholder", "readonly"])
1582
- ])) : M("", !0),
1583
- Ae.value ? (S(), T("div", jt, [
1586
+ ])) : T("", !0),
1587
+ Ae.value ? (V(), R("div", jt, [
1584
1588
  n(_, {
1585
1589
  modelValue: e.fields.ca_certificates,
1586
1590
  "onUpdate:modelValue": o[21] || (o[21] = (f) => e.fields.ca_certificates = f),
@@ -1611,8 +1615,8 @@ const X = {
1611
1615
  ]),
1612
1616
  _: 1
1613
1617
  }, 8, ["modelValue", "error", "label", "placeholder", "readonly"])
1614
- ])) : M("", !0),
1615
- Te.value ? (S(), T("div", zt, [
1618
+ ])) : T("", !0),
1619
+ Re.value ? (V(), R("div", zt, [
1616
1620
  n(i, {
1617
1621
  modelValue: e.fields.tls_verify_enabled,
1618
1622
  "onUpdate:modelValue": o[23] || (o[23] = (f) => e.fields.tls_verify_enabled = f),
@@ -1634,7 +1638,7 @@ const X = {
1634
1638
  ]),
1635
1639
  _: 1
1636
1640
  }, 8, ["modelValue", "description", "label"]),
1637
- e.fields.tls_verify_enabled ? (S(), T("div", Ht, [
1641
+ e.fields.tls_verify_enabled ? (V(), R("div", Ht, [
1638
1642
  n(m, {
1639
1643
  modelValue: e.fields.tls_verify_value,
1640
1644
  "onUpdate:modelValue": o[24] || (o[24] = (f) => e.fields.tls_verify_value = f),
@@ -1642,8 +1646,8 @@ const X = {
1642
1646
  label: r(l)("gateway_services.form.fields.tls_verify_option.true.label"),
1643
1647
  "selected-value": !0
1644
1648
  }, null, 8, ["modelValue", "label"])
1645
- ])) : M("", !0),
1646
- e.fields.tls_verify_enabled ? (S(), T("div", Zt, [
1649
+ ])) : T("", !0),
1650
+ e.fields.tls_verify_enabled ? (V(), R("div", Zt, [
1647
1651
  n(m, {
1648
1652
  modelValue: e.fields.tls_verify_value,
1649
1653
  "onUpdate:modelValue": o[25] || (o[25] = (f) => e.fields.tls_verify_value = f),
@@ -1651,8 +1655,8 @@ const X = {
1651
1655
  label: r(l)("gateway_services.form.fields.tls_verify_option.false.label"),
1652
1656
  "selected-value": !1
1653
1657
  }, null, 8, ["modelValue", "label"])
1654
- ])) : M("", !0)
1655
- ])) : M("", !0)
1658
+ ])) : T("", !0)
1659
+ ])) : T("", !0)
1656
1660
  ]))
1657
1661
  ]),
1658
1662
  _: 1
@@ -1676,7 +1680,7 @@ const X = {
1676
1680
  autocomplete: "off",
1677
1681
  "data-testid": "gateway-service-name-input",
1678
1682
  error: ee.value,
1679
- "error-message": ne.value,
1683
+ "error-message": ce.value,
1680
1684
  label: r(l)("gateway_services.form.fields.name.label"),
1681
1685
  "label-attributes": {
1682
1686
  info: r(l)("gateway_services.form.fields.name.tooltip"),
@@ -1720,18 +1724,18 @@ const X = {
1720
1724
  ]),
1721
1725
  _: 1
1722
1726
  }, 8, ["description", "hide-info-header", "title"]),
1723
- e.errorMessages.length ? (S(), de(ie, {
1727
+ e.errorMessages.length ? (V(), se(ie, {
1724
1728
  key: 0,
1725
1729
  appearance: "danger",
1726
1730
  "data-testid": "form-error"
1727
1731
  }, {
1728
1732
  default: d(() => [
1729
1733
  E("ul", Qt, [
1730
- (S(!0), T(Qe, null, Xe(e.errorMessages, (f) => (S(), T("li", { key: f }, h(f), 1))), 128))
1734
+ (V(!0), R(Qe, null, Xe(e.errorMessages, (f) => (V(), R("li", { key: f }, h(f), 1))), 128))
1731
1735
  ])
1732
1736
  ]),
1733
1737
  _: 1
1734
- })) : M("", !0)
1738
+ })) : T("", !0)
1735
1739
  ]),
1736
1740
  _: 3
1737
1741
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "fetch-url", "form-fields", "is-readonly"])
@@ -1 +1 @@
1
- (function(E,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):(E=typeof globalThis<"u"?globalThis:E||self,e(E["kong-ui-public-entities-gateway-services"]={},E.Vue,E.VueRouter,E.KongIcons,E["kong-ui-public-i18n"],E["kong-ui-public-entities-shared"]))})(this,function(E,e,Ve,J,ke,u){"use strict";const Ne={actions:{create:"New gateway service",debugger:"Start debugging",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"}},empty_state_v2:{create:"New gateway service",title:"Configure your first gateway service",group:"Services created in gateways within this group will automatically appear here.",description:"Gateway services represent backend APIs or microservices that receive traffic routed through the gateway.",learn_more:"Learn more"},form:{buttons:{try_sample:"Try sample API"},errors:{host:{empty:"Host cannot be empty",invalid:"Invalid host"},port:{type:"Port must be a number",invalid:"Port must be between 0 and 65535"},path:{prefix:"Path must begin with /",invalid:"Path should not include characters outside of the reserved list of RFC 3986"},protocol:{empty:"Protocol cannot be empty",invalid:"Protocol - value must be one of http, https, grpc, grpcs, tcp, udp, tls, tls_passthrough, ws, wss"},url:{invalid:"The URL must follow a valid format. Example: https://api.kong-air.com/flights"}},sections:{general:{title:"General Information",description:"Provide a name and tags to help identify and manage this service."},keys:{title:"Service endpoint",description:"Define where this service should send requests.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, host, port and path",url:{label:"Full URL",description:"Define the service using a single, complete API URL for simple setup."},protocol:{label:"Protocol, host, port, and path",description:"Manually specify each component of the API’s URL for advanced configurations."},viewAdvancedFields:"View advanced fields"}},fields:{upstream_url:{label:"Full URL",placeholder:"e.g. https://api.kong-air.com/flights",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:"e.g. api.kong-air.com",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"e.g. /sample",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",collapse:"Add tags"},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 Ee(){const s=ke.createI18n("en-us",Ne);return{i18n:s,i18nT:ke.i18nTComponent(s)}}function xe(){return{getPortFromProtocol:(A,f)=>{const n=[80,443],a=Number(f);if((a||a===0)&&!n.includes(a))return a;switch(A){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}function Se(){const{i18n:{t:s}}=R.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return s("gateway_services.form.errors.host.empty");const C=/^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;return/^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(m)||C.test(m)?"":s("gateway_services.form.errors.host.invalid")},validateProtocol:(m,C)=>!m||m.trim()===""?s("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),C.find(l=>{if(l.value===m)return l})===void 0?s("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?s("gateway_services.form.errors.path.invalid"):"":s("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const C=typeof m=="string"?parseInt(m,10):m;return isNaN(C)?s("gateway_services.form.errors.port.type"):C<0||C>65535?s("gateway_services.form.errors.port.invalid"):""}}}const R={useI18n:Ee,usePortFromProtocol:xe,useUrlValidators:Se},ue="/v2/control-planes/{controlPlaneId}/core-entities",me="/{workspace}",te={list:{konnect:{all:`${ue}/services`},kongManager:{all:`${me}/services`}},form:{konnect:{create:`${ue}/services`,edit:`${ue}/services/{id}`},kongManager:{create:`${me}/services`,edit:`${me}/services/{id}`}}},Pe={class:"kong-ui-entities-gateway-services-list"},Ie={class:"button-row"},Te={key:1},Fe=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.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},canDebug:{type:Function,required:!1,default:async()=>!1},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(s,{emit:A}){var H;const f=A,n=s,{i18n:{t:a,formatUnixTimeStamp:m}}=R.useI18n(),C=Ve.useRouter(),{axiosInstance:B}=u.useAxios((H=n.config)==null?void 0:H.axiosRequestConfig),{hasRecords:l,handleStateChange:P}=u.useTableState(()=>U.value),V=e.computed(()=>l.value&&n.config.app==="konnect"),ge=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),Q={name:{label:a("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...n.config.showControlPlaneColumn?{control_plane:{label:a("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:a("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:a("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:a("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:a("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:a("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:a("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:a("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("gateway_services.list.table_headers.created_at"),sortable:!0}},oe={columnVisibility:{created_at:!1}},re=Q,W=e.computed(()=>{var g,y;let c=`${n.config.apiBaseUrl}${te.list[n.config.app].all}`;return n.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((g=n.config)==null?void 0:g.controlPlaneId)||""):n.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(y=n.config)!=null&&y.workspace?`/${n.config.workspace}`:"")),c}),ye=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${W.value}`):new URL(W.value)),U=e.ref(""),$=e.computed(()=>{const c=n.config.app==="konnect"||n.config.isExactMatch;if(c)return{isExactMatch:c,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:g,enabled:y,protocol:k,host:I,port:T,path:N}=Q;return{isExactMatch:c,fields:{name:g,enabled:y,protocol:k,host:I,port:T,path:N},schema:n.config.filterSchema}}),{fetcher:_e,fetcherState:M,fetcherCacheKey:v}=u.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),W),X=()=>{U.value=""},Y=()=>{v.value++},O=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:z.value?n.isServerless?a("actions.serverless_create"):a("actions.create"):void 0,message:`${a("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState?` ${n.config.additionMessageForEmptyState}`:""}`,title:z.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),b=e.ref(!1),x=e.ref(null),j=e.computed(()=>{const c={action:"disable",id:"",name:""};if(x.value){const{enabled:g,id:y,name:k}=x.value;c.action=g?"disable":"enable",c.id=y,c.name=k||y}return c}),ie=c=>{b.value=!0,x.value=c},le=()=>{b.value=!1,x.value=null},K=async()=>{var k,I;if(!await((k=n.canEdit)==null?void 0:k.call(n,x.value))||!x.value)return;const g=`${ye.value.href}/${x.value.id}`,y=!x.value.enabled;try{const T=(I=n.config)==null?void 0:I.app;let N;U.value&&T==="konnect"&&(N=await B.get(g));const{data:o}=T==="konnect"?await B.put(g,{...(N==null?void 0:N.data)||x.value,enabled:y}):await B.patch(g,{...x.value,enabled:y});f("toggle:success",o),x.value.enabled=y}catch(T){f("error",T)}},se=c=>{n.config.getControlPlaneRoute&&C.push(n.config.getControlPlaneRoute(c))},ae=async(c,g)=>{const y=c.id;if(!await g(y)){f("copy:error",{entity:c,field:"id",message:a("errors.copy")});return}f("copy:success",{entity:c,field:"id",message:a("copy.success",{val:y})})},ne=async(c,g)=>{const y=JSON.stringify(c);if(!await g(y)){f("copy:error",{entity:c,message:a("errors.copy")});return}f("copy:success",{entity:c,message:a("copy.success_brief")})},ce=async c=>{var y;await((y=n.canRetrieve)==null?void 0:y.call(n,c))&&C.push(n.config.getViewRoute(c.id))},de=c=>({label:a("actions.view"),to:n.config.getViewRoute(c)}),he=c=>({label:a("actions.edit"),to:n.config.getEditRoute(c)}),q=c=>({label:a("actions.debugger"),to:n.config.getDebugRoute(c)}),S=e.ref(void 0),D=e.ref(!1),L=e.ref(!1),ee=e.ref(""),be=u.useDeleteUrlBuilder(n.config,W.value),fe=c=>{S.value=c,D.value=!0,ee.value=""},pe=()=>{D.value=!1,S.value=void 0},we=async()=>{var c,g,y;if((c=S.value)!=null&&c.id){L.value=!0;try{await B.delete(be(S.value.id)),f("delete:success",S.value),pe(),v.value++}catch(k){ee.value=((y=(g=k.response)==null?void 0:g.data)==null?void 0:y.message)||k.message||a("errors.delete"),f("error",k)}finally{L.value=!1}}},ve=()=>{C.push(n.config.createRoute)};e.watch(M,c=>{var g,y,k;if(c.status===u.FetcherStatus.Error){O.value={title:a("errors.general")},(k=(y=(g=c.error)==null?void 0:g.response)==null?void 0:y.data)!=null&&k.message&&(O.value.message=c.error.response.data.message),f("error",c.error);return}O.value=null});const z=e.ref(!1);return e.onBeforeMount(async()=>{z.value=await n.canCreate()}),(c,g)=>{const y=e.resolveComponent("KButton"),k=e.resolveComponent("KEmptyState"),I=e.resolveComponent("KBadge"),T=e.resolveComponent("KInputSwitch"),N=e.resolveComponent("KDropdownItem"),o=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"default-table-preferences":oe,"disable-sorting":ge.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":O.value,fetcher:e.unref(_e),"fetcher-cache-key":e.unref(v),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:U.value,"table-headers":e.unref(re),onClearSearchInput:X,"onClick:row":g[4]||(g[4]=r=>ce(r)),onSort:Y,onState:e.unref(P)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:U.value,"onUpdate:modelValue":g[0]||(g[0]=r=>U.value=r),config:$.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ie,[V.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:g[1]||(g[1]=r=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:r})=>[e.createElementVNode("b",null,e.toDisplayString(r??"-"),1)]),control_plane:e.withCtx(({row:r})=>{var p;return[(p=r.x_meta)!=null&&p.cluster_id?(e.openBlock(),e.createBlock(I,{key:0,tooltip:r.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(h=>se(r.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Te,"-"))]}),enabled:e.withCtx(({row:r})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(r),"force-show":""},{default:e.withCtx(({isAllowed:p})=>[e.createElementVNode("div",{onClick:g[3]||(g[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(T,{modelValue:r.enabled,"onUpdate:modelValue":h=>r.enabled=h,"data-testid":`row-${r.id}-toggle-input`,disabled:!p,onClick:e.withModifiers(h=>ie(r),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:r})=>[e.createVNode(e.unref(u.TableTags),{tags:r},null,8,["tags"])]),created_at:e.withCtx(({rowValue:r})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(r)),1)]),updated_at:e.withCtx(({row:r,rowValue:p})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(p??r.created_at)),1)]),actions:e.withCtx(({row:r})=>[e.createVNode(o,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createVNode(N,{"data-testid":"action-entity-copy-id",onClick:h=>ae(r,p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(o,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createVNode(N,{"data-testid":"action-entity-copy-json",onClick:h=>ne(r,p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(r)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-view","has-divider":"",item:de(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDebug(r)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-debug",item:q(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(r)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-edit",item:he(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDelete(r)},{default:e.withCtx(()=>[e.createVNode(N,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:p=>fe(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!U.value&&s.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var r;return[e.createVNode(k,{"data-testid":"gateway-services-entity-empty-state","icon-background":"",message:e.unref(a)("gateway_services.empty_state_v2.description"),title:e.unref(a)("gateway_services.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(J.ServicesIcon),{decorative:""})]),action:e.withCtx(()=>[z.value?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"entity-create-button",onClick:ve},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(y,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:g[2]||(g[2]=p=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(r=s.config)!=null&&r.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(u.EntityToggleModal),{action:j.value.action,"entity-id":j.value.id,"entity-name":j.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":K,visible:b.value,onCancel:le,onProceed:le},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":L.value,description:e.unref(a)("actions.delete.description"),"entity-name":S.value&&(S.value.name||S.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:ee.value,title:e.unref(a)("actions.delete.title"),visible:D.value,onCancel:pe,onProceed:we},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Ce=(s,A)=>{const f=s.__vccOpts||s;for(const[n,a]of A)f[n]=a;return f},Be=Ce(Fe,[["__scopeId","data-v-7f1b285f"]]),Ae={class:"kong-ui-gateway-service-entity-config-card"},De=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(s){const A=s,{i18n:{t:f},i18nT:n}=R.useI18n(),a=e.computed(()=>te.form[A.config.app].edit),{getPropValue:m}=u.useHelpers(),C=(l,P)=>m(l,P)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),B=e.ref({id:{},name:{tooltip:f("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.path.tooltip")},port:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.port.tooltip")},tags:{tooltip:f("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:f("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:f("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:f("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:f("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:f("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:u.ConfigurationSchemaType.BadgeTag,label:f("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:f("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(l,P)=>(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":B.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":s.hideTitle,"onFetch:error":P[0]||(P[0]=V=>l.$emit("fetch:error",V)),"onFetch:success":P[1]||(P[1]=V=>l.$emit("fetch:success",V)),onLoading:P[2]||(P[2]=V=>l.$emit("loading",V))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",V)=="boolean"?C("rowValue",V):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",V)?e.unref(m)("rowValue",V).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),F={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Ue={class:"kong-ui-entities-gateway-service-form"},Re={key:0,class:"gateway-service-form-general-info"},$e={class:"gateway-service-form-group-selection-wrapper"},Me={key:0,class:"gateway-service-form-group-fields"},Ke={key:0,class:"gateway-service-form-group-fields"},qe={key:0},Le={key:0,class:"gateway-service-form-advanced-fields"},Ge={class:"gateway-service-form-margin-bottom"},We={class:"gateway-service-form-margin-bottom"},Oe={class:"gateway-service-form-margin-bottom"},je={class:"gateway-service-form-margin-bottom"},ze={key:0,class:"gateway-service-form-margin-bottom"},He={key:1,class:"gateway-service-form-margin-bottom"},Ze={key:2,class:"gateway-service-form-margin-bottom"},Je={key:0,class:"checkbox-aligned-radio"},Qe={key:1,class:"checkbox-aligned-radio"},Xe={class:"gateway-service-form-tags"},Ye={class:"form-error-list"},et=Ce(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(s,{expose:A,emit:f}){var N;const n=f,a=s,m=e.ref(!0),C=Ve.useRouter(),{i18nT:B,i18n:{t:l}}=R.useI18n(),{getErrorFieldsFromError:P}=u.useErrors(),{axiosInstance:V}=u.useAxios((N=a.config)==null?void 0:N.axiosRequestConfig),ge=u.useValidators(),{validateHost:Q,validatePath:oe,validatePort:re,validateProtocol:W}=R.useUrlValidators(),{objectsAreEqual:ye}=u.useHelpers(),U=e.computed(()=>te.form[a.config.app].edit),$=e.computed(()=>a.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),_e=e.ref(!1),M=e.computed(()=>!!a.gatewayServiceId),v=e.ref(M.value?"protocol":"url"),X=R.usePortFromProtocol(),Y=e.ref(""),O=e.computed(()=>!!Y.value||!!q("name")),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:"",enabled:!0},isReadonly:!1,errorMessages:[],formFieldErrors:{host:"",port:"",path:"",name:"",url:"",tags:"",retries:"",connect_timeout:"",write_timeout:"",read_timeout:"",client_certificate:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),b=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:"",enabled:!0}),x=a.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),j=[{label:l("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:l("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:l("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:l("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...x?[{label:l("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:l("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:l("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],ie={url:"url",protocol:"protocol"},le=o=>{t.fields.protocol=o.value,t.fields.port=X.getPortFromProtocol(t.fields.protocol,String(t.fields.port))},K=o=>o?parseFloat(o):0,se=()=>{t.fields.host=b.host,t.fields.path=b.path,t.fields.port=b.port,t.fields.protocol=b.protocol,t.fields.url=b.url,t.fields.retries=b.retries,t.fields.connect_timeout=b.connect_timeout,t.fields.write_timeout=b.write_timeout,t.fields.read_timeout=b.read_timeout,t.fields.client_certificate=b.client_certificate,t.fields.ca_certificates=b.ca_certificates,t.fields.tls_verify_enabled=b.tls_verify_enabled,t.fields.tls_verify_value=b.tls_verify_value,t.fields.enabled=b.enabled},ae=()=>{m.value=!0,D(),t.errorMessages=[],se()},ne=()=>{switch(se(),t.fields.name=`${F.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,v.value){case"url":t.fields.url=`${F.protocol}://${F.host}${F.path}`;break;case"protocol":t.fields.host=F.host,t.fields.path=F.path,t.fields.protocol=F.protocol,t.fields.port=F.port;break;default:t.fields.url=`${F.protocol}://${F.host}${F.path}`}},ce=()=>{if(D(),t.fields.url.length)try{const o=new URL(t.fields.url),r=W(o.protocol,j);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const p=Q(o.hostname);if(p)throw new Error(p);t.fields.host=o.hostname;const h=oe(o.pathname);if(h)throw new Error(h);t.fields.path=o.pathname;const _=re(o.port);if(_)throw new Error(_);const w=Number(o.port);_e.value=!!w,t.fields.port=w||X.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",l("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=l("gateway_services.form.errors.url.invalid")}},de=o=>{D(o)},he=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),q=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},S=o=>{D(o??void 0);const r=Q(t.fields.host);r&&(t.formFieldErrors.host=r);const p=oe(t.fields.path);p&&(t.formFieldErrors.path=p);const h=re(t.fields.port);h&&(t.formFieldErrors.port=h),L.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||l("gateway_services.form.errors.url.invalid"))},D=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},L=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),ee=()=>{t.fields.url&&v.value==="url"?ce():S()},be=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,fe=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),pe=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),we=e.computed(()=>{if(v.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),z=o=>{D("name"),Y.value=ge.utf8Name(o)},H=e.computed(()=>{const o=!M.value||!ye(t.fields,b),r=v.value==="url"&&!!t.fields.url&&L.value,p=v.value==="protocol"&&!!t.fields.host&&L.value;return o&&(r||p)}),c=o=>{var r,p,h;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=((p=o==null?void 0:o.ca_certificates)==null?void 0:p.join(","))||"",t.fields.client_certificate=((h=o==null?void 0:o.client_certificate)==null?void 0:h.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,t.fields.enabled=(o==null?void 0:o.enabled)??!0,Object.assign(b,t.fields)},g=()=>{C.push(a.config.cancelRoute)},y=e.computed(()=>{var r,p;let o=`${a.config.apiBaseUrl}${te.form[a.config.app][$.value]}`;return a.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=a.config)==null?void 0:r.controlPlaneId)||""):a.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(p=a.config)!=null&&p.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),k=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},I=e.computed(()=>{var r,p,h,_;const o={name:t.fields.name||null,tags:t.fields.tags?(h=(p=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:p.map(w=>String(w||"").trim()))==null?void 0:h.filter(w=>w!==""):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?(_=t.fields.ca_certificates)==null?void 0:_.split(",").filter(w=>w!==""):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,enabled:t.fields.enabled};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),fe.value||(o.path=null),$.value==="create"?v.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:$.value==="edit"&&delete o.url,o}),T=async()=>{var o,r,p,h;try{t.isReadonly=!0;const _=I.value;k(_);let w;if($.value==="create"?w=await V.post(y.value,_):$.value==="edit"&&(w=((o=a.config)==null?void 0:o.app)==="konnect"?await V.put(y.value,_):await V.patch(y.value,_)),w){const{data:i}=w;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||X.getPortFromProtocol(i.protocol),t.fields.protocol=(i==null?void 0:i.protocol)||"http",t.fields.host=(i==null?void 0:i.host)||"",t.fields.path=(i==null?void 0:i.path)||"",t.fields.url=(i==null?void 0:i.url)||"",t.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,t.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,t.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,t.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,t.fields.client_certificate=((r=i==null?void 0:i.client_certificate)==null?void 0:r.id)||"",t.fields.ca_certificates=(p=i==null?void 0:i.ca_certificates)!=null&&p.length?i==null?void 0:i.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(i==null?void 0:i.tls_verify)!==""&&(i==null?void 0:i.tls_verify)!==null&&(i==null?void 0:i.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),t.fields.tags=(h=i==null?void 0:i.tags)!=null&&h.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(b,t.fields),n("update",w==null?void 0:w.data)}return w}catch(_){const{fields:w,messages:i}=P(_);t.errorMessages=i,w.length&&w.forEach(G=>{const Z=G.field;Z==="client_certificate.id"?t.formFieldErrors.client_certificate=G.message:Z.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=G.message:Object.keys(t.formFieldErrors).includes(Z)&&(t.formFieldErrors={...t.formFieldErrors,[Z]:G.message})}),n("error",_)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,b)}),e.watch(t.fields,()=>{n("model-updated",I.value)}),e.onMounted(()=>{n("model-updated",I.value),M.value||(t.fields.name=be())}),A({validateUrl:ee,getPayload:I,saveFormData:T,canSubmit:H,initForm:c}),(o,r)=>{const p=e.resolveComponent("KRadio"),h=e.resolveComponent("KButton"),_=e.resolveComponent("KInput"),w=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),G=e.resolveComponent("KCollapse"),Z=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":H.value,config:s.config,"edit-id":s.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":U.value,"form-fields":I.value,"is-readonly":t.isReadonly,onCancel:g,"onFetch:error":r[30]||(r[30]=d=>o.$emit("error",d)),"onFetch:success":c,onLoading:r[31]||(r[31]=d=>o.$emit("loading",d)),onSubmit:T},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:H.value,cancel:g,submit:T},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.keys.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Re,[e.createElementVNode("div",$e,[e.createVNode(p,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=d=>v.value=d),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(l)("gateway_services.form.sections.keys.url.description"),label:e.unref(l)("gateway_services.form.sections.keys.url.label"),"selected-value":ie.url,onChange:ae},null,8,["modelValue","description","label","selected-value"]),e.createVNode(p,{modelValue:v.value,"onUpdate:modelValue":r[1]||(r[1]=d=>v.value=d),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(l)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(l)("gateway_services.form.sections.keys.protocol.label"),"selected-value":ie.protocol,onChange:ae},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="url"?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(_,{modelValue:t.fields.url,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.url=d),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",error:he.value,"error-message":q("url"),label:e.unref(l)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:s.config.app==="konnect"?e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(l)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:ce},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(h,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:ne},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0)]),_:1})])),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="protocol"||M.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(w,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:j,label:e.unref(l)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:le},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:t.fields.host,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.host=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",error:!!t.formFieldErrors.host,"error-message":q("host"),label:e.unref(l)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(l)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[5]||(r[5]=d=>S("host"))},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(h,{appearance:"tertiary",size:"small",onClick:ne},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),fe.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(_,{modelValue:t.fields.path,"onUpdate:modelValue":r[6]||(r[6]=d=>t.fields.path=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",error:!!t.formFieldErrors.path,"error-message":q("path"),label:e.unref(l)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(l)("gateway_services.form.fields.path.placeholder"),onInput:r[7]||(r[7]=d=>S("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(_,{modelValue:t.fields.port,"onUpdate:modelValue":[r[8]||(r[8]=d=>t.fields.port=d),r[10]||(r[10]=()=>{t.fields.port=K(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":q("port"),label:e.unref(l)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[9]||(r[9]=d=>S("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(G,{modelValue:m.value,"onUpdate:modelValue":r[26]||(r[26]=d=>m.value=d),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",Ge,[e.createVNode(_,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=d=>t.fields.retries=d),r[12]||(r[12]=()=>{t.fields.retries=K(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(l)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(l)("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",We,[e.createVNode(_,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=d=>t.fields.connect_timeout=d),r[14]||(r[14]=()=>{t.fields.connect_timeout=K(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(l)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(l)("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",Oe,[e.createVNode(_,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=d=>t.fields.write_timeout=d),r[16]||(r[16]=()=>{t.fields.write_timeout=K(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(l)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(l)("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",je,[e.createVNode(_,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=d=>t.fields.read_timeout=d),r[18]||(r[18]=()=>{t.fields.read_timeout=K(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(l)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),pe.value?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(_,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.client_certificate=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",error:!!t.formFieldErrors.client_certificate,label:e.unref(l)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(l)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[20]||(r[20]=d=>de("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),we.value?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(_,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[21]||(r[21]=d=>t.fields.ca_certificates=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",error:!!t.formFieldErrors.ca_certificates,label:e.unref(l)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[22]||(r[22]=d=>de("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(i,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[23]||(r[23]=d=>t.fields.tls_verify_enabled=d),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("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",Je,[e.createVNode(p,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[24]||(r[24]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(l)("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",Qe,[e.createVNode(p,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(l)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.fields.name,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:O.value,"error-message":Y.value,label:e.unref(l)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(l)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:z},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(G,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",Xe,[e.createVNode(_,{modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(l)("gateway_services.form.fields.tags.help"),label:e.unref(l)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(l)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[29]||(r[29]=d=>D("tags"))},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])])]),_:1},8,["trigger-label"])]),_:1},8,["description","hide-info-header","title"]),t.errorMessages.length?(e.openBlock(),e.createBlock(Z,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errorMessages,d=>(e.openBlock(),e.createElementBlock("li",{key:d},e.toDisplayString(d),1))),128))])]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["can-submit","config","edit-id","entity-type","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-72fe312f"]]),{validateHost:tt,validatePort:ot,validateProtocol:rt,validatePath:it}=R.useUrlValidators(),lt=()=>({validateHost:tt,validatePort:ot,validateProtocol:rt,validatePath:it});E.GatewayServiceConfigCard=De,E.GatewayServiceForm=et,E.GatewayServiceList=Be,E.useUrlValidator=lt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
1
+ (function(E,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):(E=typeof globalThis<"u"?globalThis:E||self,e(E["kong-ui-public-entities-gateway-services"]={},E.Vue,E.VueRouter,E.KongIcons,E["kong-ui-public-i18n"],E["kong-ui-public-entities-shared"]))})(this,function(E,e,Ve,J,ke,u){"use strict";const Ne={actions:{create:"New gateway service",debugger:"Start debugging",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"}},empty_state_v2:{create:"New gateway service",title:"Configure your first gateway service",group:"Services created in gateways within this group will automatically appear here.",description:"Gateway services represent backend APIs or microservices that receive traffic routed through the gateway.",learn_more:"Learn more"},form:{buttons:{try_sample:"Try sample API"},errors:{host:{empty:"Host cannot be empty",invalid:"Invalid host"},port:{type:"Port must be a number",invalid:"Port must be between 0 and 65535"},path:{prefix:"Path must begin with /",invalid:"Path should not include characters outside of the reserved list of RFC 3986"},protocol:{empty:"Protocol cannot be empty",invalid:"Protocol - value must be one of http, https, grpc, grpcs, tcp, udp, tls, tls_passthrough, ws, wss"},url:{invalid:"The URL must follow a valid format. Example: https://api.kong-air.com/flights"}},sections:{general:{title:"General Information",description:"Provide a name and tags to help identify and manage this service."},keys:{title:"Service endpoint",description:"Define where this service should send requests.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, host, port and path",url:{label:"Full URL",description:"Define the service using a single, complete API URL for simple setup."},protocol:{label:"Protocol, host, port, and path",description:"Manually specify each component of the API’s URL for advanced configurations."},viewAdvancedFields:"View advanced fields"}},fields:{upstream_url:{label:"Full URL",placeholder:"e.g. https://api.kong-air.com/flights",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:"e.g. api.kong-air.com",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"e.g. /sample",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",collapse:"Add tags"},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 Ee(){const s=ke.createI18n("en-us",Ne);return{i18n:s,i18nT:ke.i18nTComponent(s)}}function xe(){return{getPortFromProtocol:(A,f)=>{const n=[80,443],a=Number(f);if((a||a===0)&&!n.includes(a))return a;switch(A){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}function Se(){const{i18n:{t:s}}=U.useI18n();return{validateHost:m=>{if(!m||m.trim()==="")return s("gateway_services.form.errors.host.empty");const C=/^(?!:\/\/)([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(\.([a-zA-Z0-9]([a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?))*)(\.[a-zA-Z]{1,63})?$/;return/^((25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])\.){3}(25[0-5]|2[0-4][0-9]|[0-1]?[0-9]?[0-9])$/.test(m)||C.test(m)?"":s("gateway_services.form.errors.host.invalid")},validateProtocol:(m,C)=>!m||m.trim()===""?s("gateway_services.form.errors.protocol.empty"):(m=m.slice(0,-1),C.find(l=>{if(l.value===m)return l})===void 0?s("gateway_services.form.errors.protocol.invalid"):""),validatePath:m=>!m||m===""?"":m.startsWith("/")?/[^A-Za-z0-9\-._~:/?#[\]@!$&'()*+,;=%]/.test(m)?s("gateway_services.form.errors.path.invalid"):"":s("gateway_services.form.errors.path.prefix"),validatePort:m=>{if(m==null||m==="")return"";const C=typeof m=="string"?parseInt(m,10):m;return isNaN(C)?s("gateway_services.form.errors.port.type"):C<0||C>65535?s("gateway_services.form.errors.port.invalid"):""}}}const U={useI18n:Ee,usePortFromProtocol:xe,useUrlValidators:Se},ue="/v2/control-planes/{controlPlaneId}/core-entities",me="/{workspace}",te={list:{konnect:{all:`${ue}/services`},kongManager:{all:`${me}/services`}},form:{konnect:{create:`${ue}/services`,edit:`${ue}/services/{id}`},kongManager:{create:`${me}/services`,edit:`${me}/services/{id}`}}},Pe={class:"kong-ui-entities-gateway-services-list"},Ie={class:"button-row"},Be={key:1},Te=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||!s.createRoute||!s.getViewRoute||!s.getEditRoute||s.app==="kongManager"&&!s.isExactMatch&&!s.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},canDebug:{type:Function,required:!1,default:async()=>!1},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success","toggle:success"],setup(s,{emit:A}){var H;const f=A,n=s,{i18n:{t:a,formatUnixTimeStamp:m}}=U.useI18n(),C=Ve.useRouter(),{axiosInstance:F}=u.useAxios((H=n.config)==null?void 0:H.axiosRequestConfig),{hasRecords:l,handleStateChange:P}=u.useTableState(()=>R.value),V=e.computed(()=>l.value&&n.config.app==="konnect"),ge=e.computed(()=>n.config.app!=="kongManager"||!!n.config.disableSorting),Q={name:{label:a("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...n.config.showControlPlaneColumn?{control_plane:{label:a("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:a("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:a("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:a("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:a("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:a("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:a("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:a("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:a("gateway_services.list.table_headers.created_at"),sortable:!0}},oe={columnVisibility:{created_at:!1}},re=Q,W=e.computed(()=>{var g,y;let c=`${n.config.apiBaseUrl}${te.list[n.config.app].all}`;return n.config.app==="konnect"?c=c.replace(/{controlPlaneId}/gi,((g=n.config)==null?void 0:g.controlPlaneId)||""):n.config.app==="kongManager"&&(c=c.replace(/\/{workspace}/gi,(y=n.config)!=null&&y.workspace?`/${n.config.workspace}`:"")),c}),ye=e.computed(()=>n.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${W.value}`):new URL(W.value)),R=e.ref(""),$=e.computed(()=>{const c=n.config.app==="konnect"||n.config.isExactMatch;if(c)return{isExactMatch:c,placeholder:a(`search.placeholder.${n.config.app}`)};const{name:g,enabled:y,protocol:k,host:I,port:B,path:N}=Q;return{isExactMatch:c,fields:{name:g,enabled:y,protocol:k,host:I,port:B,path:N},schema:n.config.filterSchema}}),{fetcher:_e,fetcherState:M,fetcherCacheKey:v}=u.useFetcher(e.computed(()=>({...n.config,cacheIdentifier:n.cacheIdentifier})),W),X=()=>{R.value=""},Y=()=>{v.value++},O=e.ref(null),t=e.computed(()=>({ctaPath:n.config.createRoute,ctaText:z.value?n.isServerless?a("actions.serverless_create"):a("actions.create"):void 0,message:`${a("gateway_services.list.empty_state.description")}${n.config.additionMessageForEmptyState?` ${n.config.additionMessageForEmptyState}`:""}`,title:z.value?n.isServerless?a("gateway_services.list.empty_state.serverless_title"):a("gateway_services.list.empty_state.title"):a("gateway_services.title")})),b=e.ref(!1),x=e.ref(null),j=e.computed(()=>{const c={action:"disable",id:"",name:""};if(x.value){const{enabled:g,id:y,name:k}=x.value;c.action=g?"disable":"enable",c.id=y,c.name=k||y}return c}),ie=c=>{b.value=!0,x.value=c},le=()=>{b.value=!1,x.value=null},K=async()=>{var k,I;if(!await((k=n.canEdit)==null?void 0:k.call(n,x.value))||!x.value)return;const g=`${ye.value.href}/${x.value.id}`,y=!x.value.enabled;try{const B=(I=n.config)==null?void 0:I.app;let N;R.value&&B==="konnect"&&(N=await F.get(g));const{data:o}=B==="konnect"?await F.put(g,{...(N==null?void 0:N.data)||x.value,enabled:y}):await F.patch(g,{...x.value,enabled:y});f("toggle:success",o),x.value.enabled=y}catch(B){f("error",B)}},se=c=>{n.config.getControlPlaneRoute&&C.push(n.config.getControlPlaneRoute(c))},ae=async(c,g)=>{const y=c.id;if(!await g(y)){f("copy:error",{entity:c,field:"id",message:a("errors.copy")});return}f("copy:success",{entity:c,field:"id",message:a("copy.success",{val:y})})},ne=async(c,g)=>{const y=JSON.stringify(c);if(!await g(y)){f("copy:error",{entity:c,message:a("errors.copy")});return}f("copy:success",{entity:c,message:a("copy.success_brief")})},ce=async c=>{var y;await((y=n.canRetrieve)==null?void 0:y.call(n,c))&&C.push(n.config.getViewRoute(c.id))},de=c=>({label:a("actions.view"),to:n.config.getViewRoute(c)}),he=c=>({label:a("actions.edit"),to:n.config.getEditRoute(c)}),q=c=>{if(n.config.getDebugRoute)return{label:a("actions.debugger"),to:n.config.getDebugRoute(c)}},S=e.ref(void 0),D=e.ref(!1),L=e.ref(!1),ee=e.ref(""),be=u.useDeleteUrlBuilder(n.config,W.value),fe=c=>{S.value=c,D.value=!0,ee.value=""},pe=()=>{D.value=!1,S.value=void 0},we=async()=>{var c,g,y;if((c=S.value)!=null&&c.id){L.value=!0;try{await F.delete(be(S.value.id)),f("delete:success",S.value),pe(),v.value++}catch(k){ee.value=((y=(g=k.response)==null?void 0:g.data)==null?void 0:y.message)||k.message||a("errors.delete"),f("error",k)}finally{L.value=!1}}},ve=()=>{C.push(n.config.createRoute)};e.watch(M,c=>{var g,y,k;if(c.status===u.FetcherStatus.Error){O.value={title:a("errors.general")},(k=(y=(g=c.error)==null?void 0:g.response)==null?void 0:y.data)!=null&&k.message&&(O.value.message=c.error.response.data.message),f("error",c.error);return}O.value=null});const z=e.ref(!1);return e.onBeforeMount(async()=>{z.value=await n.canCreate()}),(c,g)=>{const y=e.resolveComponent("KButton"),k=e.resolveComponent("KEmptyState"),I=e.resolveComponent("KBadge"),B=e.resolveComponent("KInputSwitch"),N=e.resolveComponent("KDropdownItem"),o=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":s.cacheIdentifier,"default-table-preferences":oe,"disable-sorting":ge.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":O.value,fetcher:e.unref(_e),"fetcher-cache-key":e.unref(v),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:R.value,"table-headers":e.unref(re),onClearSearchInput:X,"onClick:row":g[4]||(g[4]=r=>ce(r)),onSort:Y,onState:e.unref(P)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:R.value,"onUpdate:modelValue":g[0]||(g[0]=r=>R.value=r),config:$.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!s.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ie,[V.value?(e.openBlock(),e.createBlock(y,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"gateway-services-learn-more-button",icon:"",onClick:g[1]||(g[1]=r=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canCreate()},{default:e.withCtx(()=>[e.createVNode(y,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:s.useActionOutside?"medium":"large",to:s.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),name:e.withCtx(({rowValue:r})=>[e.createElementVNode("b",null,e.toDisplayString(r??"-"),1)]),control_plane:e.withCtx(({row:r})=>{var p;return[(p=r.x_meta)!=null&&p.cluster_id?(e.openBlock(),e.createBlock(I,{key:0,tooltip:r.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(h=>se(r.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(r.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",Be,"-"))]}),enabled:e.withCtx(({row:r})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(r),"force-show":""},{default:e.withCtx(({isAllowed:p})=>[e.createElementVNode("div",{onClick:g[3]||(g[3]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(B,{modelValue:r.enabled,"onUpdate:modelValue":h=>r.enabled=h,"data-testid":`row-${r.id}-toggle-input`,disabled:!p,onClick:e.withModifiers(h=>ie(r),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:r})=>[e.createVNode(e.unref(u.TableTags),{tags:r},null,8,["tags"])]),created_at:e.withCtx(({rowValue:r})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(r)),1)]),updated_at:e.withCtx(({row:r,rowValue:p})=>[e.createTextVNode(e.toDisplayString(e.unref(m)(p??r.created_at)),1)]),actions:e.withCtx(({row:r})=>[e.createVNode(o,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createVNode(N,{"data-testid":"action-entity-copy-id",onClick:h=>ae(r,p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(o,null,{default:e.withCtx(({copyToClipboard:p})=>[e.createVNode(N,{"data-testid":"action-entity-copy-json",onClick:h=>ne(r,p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canRetrieve(r)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-view","has-divider":"",item:de(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDebug(r)},{default:e.withCtx(()=>[s.config.getDebugRoute?(e.openBlock(),e.createBlock(N,{key:0,"data-testid":"action-entity-debug",item:q(r.id)},null,8,["item"])):e.createCommentVNode("",!0)]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canEdit(r)},{default:e.withCtx(()=>[e.createVNode(N,{"data-testid":"action-entity-edit",item:he(r.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>s.canDelete(r)},{default:e.withCtx(()=>[e.createVNode(N,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:p=>fe(r)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("actions.delete.menu_label")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!R.value&&s.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var r;return[e.createVNode(k,{"data-testid":"gateway-services-entity-empty-state","icon-background":"",message:e.unref(a)("gateway_services.empty_state_v2.description"),title:e.unref(a)("gateway_services.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(J.ServicesIcon),{decorative:""})]),action:e.withCtx(()=>[z.value?(e.openBlock(),e.createBlock(y,{key:0,"data-testid":"entity-create-button",onClick:ve},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.create")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(y,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:g[2]||(g[2]=p=>c.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(r=s.config)!=null&&r.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(a)("gateway_services.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(u.EntityToggleModal),{action:j.value.action,"entity-id":j.value.id,"entity-name":j.value.name,"entity-type":e.unref(a)("glossary.gateway_services"),"on-confirm":K,visible:b.value,onCancel:le,onProceed:le},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":L.value,description:e.unref(a)("actions.delete.description"),"entity-name":S.value&&(S.value.name||S.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:ee.value,title:e.unref(a)("actions.delete.title"),visible:D.value,onCancel:pe,onProceed:we},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),Ce=(s,A)=>{const f=s.__vccOpts||s;for(const[n,a]of A)f[n]=a;return f},Fe=Ce(Te,[["__scopeId","data-v-be14eac9"]]),Ae={class:"kong-ui-gateway-service-entity-config-card"},De=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(s){const A=s,{i18n:{t:f},i18nT:n}=U.useI18n(),a=e.computed(()=>te.form[A.config.app].edit),{getPropValue:m}=u.useHelpers(),C=(l,P)=>m(l,P)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),F=e.ref({id:{},name:{tooltip:f("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.path.tooltip")},port:{section:u.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.port.tooltip")},tags:{tooltip:f("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:f("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:f("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:f("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:f("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:f("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:u.ConfigurationSchemaType.BadgeTag,label:f("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:f("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(l,P)=>(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:s.config,"config-card-doc":s.configCardDoc,"config-schema":F.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":a.value,"hide-title":s.hideTitle,"onFetch:error":P[0]||(P[0]=V=>l.$emit("fetch:error",V)),"onFetch:success":P[1]||(P[1]=V=>l.$emit("fetch:success",V)),onLoading:P[2]||(P[2]=V=>l.$emit("loading",V))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(n),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(typeof e.unref(m)("rowValue",V)=="boolean"?C("rowValue",V):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(V=>[e.createTextVNode(e.toDisplayString(e.unref(m)("rowValue",V)?e.unref(m)("rowValue",V).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),T={name:"Kong-Air-Flights-API",protocol:"https",path:"/flights",host:"api.kong-air.com",port:443},Re={class:"kong-ui-entities-gateway-service-form"},Ue={key:0,class:"gateway-service-form-general-info"},$e={class:"gateway-service-form-group-selection-wrapper"},Me={key:0,class:"gateway-service-form-group-fields"},Ke={key:0,class:"gateway-service-form-group-fields"},qe={key:0},Le={key:0,class:"gateway-service-form-advanced-fields"},Ge={class:"gateway-service-form-margin-bottom"},We={class:"gateway-service-form-margin-bottom"},Oe={class:"gateway-service-form-margin-bottom"},je={class:"gateway-service-form-margin-bottom"},ze={key:0,class:"gateway-service-form-margin-bottom"},He={key:1,class:"gateway-service-form-margin-bottom"},Ze={key:2,class:"gateway-service-form-margin-bottom"},Je={key:0,class:"checkbox-aligned-radio"},Qe={key:1,class:"checkbox-aligned-radio"},Xe={class:"gateway-service-form-tags"},Ye={class:"form-error-list"},et=Ce(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:s=>!(!s||!["konnect","kongManager"].includes(s==null?void 0:s.app)||s.app==="konnect"&&!s.controlPlaneId||s.app==="kongManager"&&typeof s.workspace!="string"||!s.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},hideTrySampleApiButton:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated","try-sample-api"],setup(s,{expose:A,emit:f}){var N;const n=f,a=s,m=e.ref(!0),C=Ve.useRouter(),{i18nT:F,i18n:{t:l}}=U.useI18n(),{getErrorFieldsFromError:P}=u.useErrors(),{axiosInstance:V}=u.useAxios((N=a.config)==null?void 0:N.axiosRequestConfig),ge=u.useValidators(),{validateHost:Q,validatePath:oe,validatePort:re,validateProtocol:W}=U.useUrlValidators(),{objectsAreEqual:ye}=u.useHelpers(),R=e.computed(()=>te.form[a.config.app].edit),$=e.computed(()=>a.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),_e=e.ref(!1),M=e.computed(()=>!!a.gatewayServiceId),v=e.ref(M.value?"protocol":"url"),X=U.usePortFromProtocol(),Y=e.ref(""),O=e.computed(()=>!!Y.value||!!q("name")),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:"",enabled:!0},isReadonly:!1,errorMessages:[],formFieldErrors:{host:"",port:"",path:"",name:"",url:"",tags:"",retries:"",connect_timeout:"",write_timeout:"",read_timeout:"",client_certificate:"",ca_certificates:"",tls_verify_enabled:"",tls_verify_value:""}}),b=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:"",enabled:!0}),x=a.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:a.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),j=[{label:l("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:l("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:l("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:l("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:l("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...x?[{label:l("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:l("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:l("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],ie={url:"url",protocol:"protocol"},le=o=>{t.fields.protocol=o.value,t.fields.port=X.getPortFromProtocol(t.fields.protocol,String(t.fields.port))},K=o=>o?parseFloat(o):0,se=()=>{t.fields.host=b.host,t.fields.path=b.path,t.fields.port=b.port,t.fields.protocol=b.protocol,t.fields.url=b.url,t.fields.retries=b.retries,t.fields.connect_timeout=b.connect_timeout,t.fields.write_timeout=b.write_timeout,t.fields.read_timeout=b.read_timeout,t.fields.client_certificate=b.client_certificate,t.fields.ca_certificates=b.ca_certificates,t.fields.tls_verify_enabled=b.tls_verify_enabled,t.fields.tls_verify_value=b.tls_verify_value,t.fields.enabled=b.enabled},ae=()=>{m.value=!0,D(),t.errorMessages=[],se()},ne=()=>{switch(se(),t.fields.name=`${T.name}-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,v.value){case"url":t.fields.url=`${T.protocol}://${T.host}${T.path}`;break;case"protocol":t.fields.host=T.host,t.fields.path=T.path,t.fields.protocol=T.protocol,t.fields.port=T.port;break;default:t.fields.url=`${T.protocol}://${T.host}${T.path}`}},ce=()=>{if(D(),t.fields.url.length)try{const o=new URL(t.fields.url),r=W(o.protocol,j);if(r)throw new Error(r);t.fields.protocol=o.protocol.slice(0,-1);const p=Q(o.hostname);if(p)throw new Error(p);t.fields.host=o.hostname;const h=oe(o.pathname);if(h)throw new Error(h);t.fields.path=o.pathname;const _=re(o.port);if(_)throw new Error(_);const w=Number(o.port);_e.value=!!w,t.fields.port=w||X.getPortFromProtocol(t.fields.protocol),n("url-valid:success")}catch{n("url-valid:error",l("gateway_services.form.errors.url.invalid")),t.formFieldErrors.url=l("gateway_services.form.errors.url.invalid")}},de=o=>{D(o)},he=e.computed(()=>!!t.formFieldErrors.url||!!t.formFieldErrors.host||!!t.formFieldErrors.port),q=o=>{if(t.errorMessages.length)return"";const r=t.formFieldErrors;return r[o]?r[o]:""},S=o=>{D(o??void 0);const r=Q(t.fields.host);r&&(t.formFieldErrors.host=r);const p=oe(t.fields.path);p&&(t.formFieldErrors.path=p);const h=re(t.fields.port);h&&(t.formFieldErrors.port=h),L.value?n("url-valid:success"):n("url-valid:error",t.errorMessages.join(",")||l("gateway_services.form.errors.url.invalid"))},D=o=>{if(o)t.formFieldErrors[o]="";else for(let r in t.formFieldErrors)t.formFieldErrors[r]="";t.errorMessages=[]},L=e.computed(()=>{for(let o in t.formFieldErrors)if(t.formFieldErrors[o].length)return!1;return!0}),ee=()=>{t.fields.url&&v.value==="url"?ce():S()},be=()=>`new-service-${new Date().toISOString().replace(/\D/g,"").slice(0,17)}`,fe=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),pe=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),we=e.computed(()=>{if(v.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),ve=e.computed(()=>{if(v.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return v.value==="protocol"&&o}),z=o=>{D("name"),Y.value=ge.utf8Name(o)},H=e.computed(()=>{const o=!M.value||!ye(t.fields,b),r=v.value==="url"&&!!t.fields.url&&L.value,p=v.value==="protocol"&&!!t.fields.host&&L.value;return o&&(r||p)}),c=o=>{var r,p,h;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=((p=o==null?void 0:o.ca_certificates)==null?void 0:p.join(","))||"",t.fields.client_certificate=((h=o==null?void 0:o.client_certificate)==null?void 0:h.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,t.fields.enabled=(o==null?void 0:o.enabled)??!0,Object.assign(b,t.fields)},g=()=>{C.push(a.config.cancelRoute)},y=e.computed(()=>{var r,p;let o=`${a.config.apiBaseUrl}${te.form[a.config.app][$.value]}`;return a.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((r=a.config)==null?void 0:r.controlPlaneId)||""):a.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(p=a.config)!=null&&p.workspace?`/${a.config.workspace}`:"")),o=o.replace(/{id}/gi,a.gatewayServiceId),o}),k=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},I=e.computed(()=>{var r,p,h,_;const o={name:t.fields.name||null,tags:t.fields.tags?(h=(p=(r=t.fields.tags)==null?void 0:r.split(","))==null?void 0:p.map(w=>String(w||"").trim()))==null?void 0:h.filter(w=>w!==""):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?(_=t.fields.ca_certificates)==null?void 0:_.split(",").filter(w=>w!==""):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,enabled:t.fields.enabled};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),fe.value||(o.path=null),$.value==="create"?v.value==="url"?(delete o.protocol,delete o.host,delete o.path,a.config.app==="konnect"&&delete o.port):delete o.url:$.value==="edit"&&delete o.url,o}),B=async()=>{var o,r,p,h;try{t.isReadonly=!0;const _=I.value;k(_);let w;if($.value==="create"?w=await V.post(y.value,_):$.value==="edit"&&(w=((o=a.config)==null?void 0:o.app)==="konnect"?await V.put(y.value,_):await V.patch(y.value,_)),w){const{data:i}=w;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||X.getPortFromProtocol(i.protocol),t.fields.protocol=(i==null?void 0:i.protocol)||"http",t.fields.host=(i==null?void 0:i.host)||"",t.fields.path=(i==null?void 0:i.path)||"",t.fields.url=(i==null?void 0:i.url)||"",t.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,t.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,t.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,t.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,t.fields.client_certificate=((r=i==null?void 0:i.client_certificate)==null?void 0:r.id)||"",t.fields.ca_certificates=(p=i==null?void 0:i.ca_certificates)!=null&&p.length?i==null?void 0:i.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(i==null?void 0:i.tls_verify)!==""&&(i==null?void 0:i.tls_verify)!==null&&(i==null?void 0:i.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),t.fields.tags=(h=i==null?void 0:i.tags)!=null&&h.length?i.tags.join(", "):"",t.fields.enabled=(i==null?void 0:i.enabled)??!0,Object.assign(b,t.fields),n("update",w==null?void 0:w.data)}return w}catch(_){const{fields:w,messages:i}=P(_);t.errorMessages=i,w.length&&w.forEach(G=>{const Z=G.field;Z==="client_certificate.id"?t.formFieldErrors.client_certificate=G.message:Z.startsWith("ca_certificates")?t.formFieldErrors.ca_certificates=G.message:Object.keys(t.formFieldErrors).includes(Z)&&(t.formFieldErrors={...t.formFieldErrors,[Z]:G.message})}),n("error",_)}finally{t.isReadonly=!1}};return e.watch(()=>a.gatewayServiceId,()=>{Object.assign(t.fields,b)}),e.watch(t.fields,()=>{n("model-updated",I.value)}),e.onMounted(()=>{n("model-updated",I.value),M.value||(t.fields.name=be())}),A({validateUrl:ee,getPayload:I,saveFormData:B,canSubmit:H,initForm:c}),(o,r)=>{const p=e.resolveComponent("KRadio"),h=e.resolveComponent("KButton"),_=e.resolveComponent("KInput"),w=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),G=e.resolveComponent("KCollapse"),Z=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":H.value,config:s.config,"edit-id":s.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":R.value,"form-fields":I.value,"is-readonly":t.isReadonly,onCancel:g,"onFetch:error":r[30]||(r[30]=d=>o.$emit("error",d)),"onFetch:success":c,onLoading:r[31]||(r[31]=d=>o.$emit("loading",d)),onSubmit:B},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:H.value,cancel:g,submit:B},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.keys.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[M.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ue,[e.createElementVNode("div",$e,[e.createVNode(p,{modelValue:v.value,"onUpdate:modelValue":r[0]||(r[0]=d=>v.value=d),card:"","card-orientation":"horizontal","data-testid":"gateway-service-url-radio",description:e.unref(l)("gateway_services.form.sections.keys.url.description"),label:e.unref(l)("gateway_services.form.sections.keys.url.label"),"selected-value":ie.url,onChange:ae},null,8,["modelValue","description","label","selected-value"]),e.createVNode(p,{modelValue:v.value,"onUpdate:modelValue":r[1]||(r[1]=d=>v.value=d),card:"","card-orientation":"horizontal","checked-group":"protocol","data-testid":"gateway-service-protocol-radio",description:e.unref(l)("gateway_services.form.sections.keys.protocol.description"),label:e.unref(l)("gateway_services.form.sections.keys.protocol.label"),"selected-value":ie.protocol,onChange:ae},null,8,["modelValue","description","label","selected-value"])]),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="url"?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(_,{modelValue:t.fields.url,"onUpdate:modelValue":r[2]||(r[2]=d=>t.fields.url=d),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",error:he.value,"error-message":q("url"),label:e.unref(l)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:s.config.app==="konnect"?e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(l)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(l)("gateway_services.form.fields.upstream_url.placeholder"),required:"",onInput:ce},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(h,{appearance:"tertiary","data-testid":"try-sample-api",size:"small",onClick:ne},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0)]),_:1})])),e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[v.value==="protocol"||M.value?(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(w,{modelValue:t.fields.protocol,"onUpdate:modelValue":r[3]||(r[3]=d=>t.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:j,label:e.unref(l)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:le},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:t.fields.host,"onUpdate:modelValue":r[4]||(r[4]=d=>t.fields.host=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",error:!!t.formFieldErrors.host,"error-message":q("host"),label:e.unref(l)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(l)("gateway_services.form.fields.host.placeholder"),required:"",onInput:r[5]||(r[5]=d=>S("host"))},e.createSlots({_:2},[s.hideTrySampleApiButton?void 0:{name:"after",fn:e.withCtx(()=>[e.createVNode(h,{appearance:"tertiary",size:"small",onClick:ne},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("gateway_services.form.buttons.try_sample")),1)]),_:1})]),key:"0"}]),1032,["modelValue","error","error-message","label","label-attributes","placeholder"]),fe.value?(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(_,{modelValue:t.fields.path,"onUpdate:modelValue":r[6]||(r[6]=d=>t.fields.path=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",error:!!t.formFieldErrors.path,"error-message":q("path"),label:e.unref(l)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(l)("gateway_services.form.fields.path.placeholder"),onInput:r[7]||(r[7]=d=>S("path"))},null,8,["modelValue","error","error-message","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(_,{modelValue:t.fields.port,"onUpdate:modelValue":[r[8]||(r[8]=d=>t.fields.port=d),r[10]||(r[10]=()=>{t.fields.port=K(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",error:!!t.formFieldErrors.port,"error-message":q("port"),label:e.unref(l)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number",onInput:r[9]||(r[9]=d=>S("port"))},null,8,["modelValue","error","error-message","label","label-attributes"])])):e.createCommentVNode("",!0)]),_:1}),e.createVNode(G,{modelValue:m.value,"onUpdate:modelValue":r[26]||(r[26]=d=>m.value=d),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createVNode(e.Transition,{name:"slide-fade"},{default:e.withCtx(()=>[m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Le,[e.createElementVNode("div",Ge,[e.createVNode(_,{modelValue:t.fields.retries,"onUpdate:modelValue":[r[11]||(r[11]=d=>t.fields.retries=d),r[12]||(r[12]=()=>{t.fields.retries=K(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(l)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(l)("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",We,[e.createVNode(_,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[r[13]||(r[13]=d=>t.fields.connect_timeout=d),r[14]||(r[14]=()=>{t.fields.connect_timeout=K(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(l)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(l)("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",Oe,[e.createVNode(_,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[r[15]||(r[15]=d=>t.fields.write_timeout=d),r[16]||(r[16]=()=>{t.fields.write_timeout=K(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(l)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(l)("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",je,[e.createVNode(_,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[r[17]||(r[17]=d=>t.fields.read_timeout=d),r[18]||(r[18]=()=>{t.fields.read_timeout=K(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(l)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),pe.value?(e.openBlock(),e.createElementBlock("div",ze,[e.createVNode(_,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":r[19]||(r[19]=d=>t.fields.client_certificate=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",error:!!t.formFieldErrors.client_certificate,label:e.unref(l)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(l)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[20]||(r[20]=d=>de("client_certificate"))},null,8,["modelValue","error","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),we.value?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(_,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":r[21]||(r[21]=d=>t.fields.ca_certificates=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",error:!!t.formFieldErrors.ca_certificates,label:e.unref(l)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[22]||(r[22]=d=>de("ca_certificates"))},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(F),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","error","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ve.value?(e.openBlock(),e.createElementBlock("div",Ze,[e.createVNode(i,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":r[23]||(r[23]=d=>t.fields.tls_verify_enabled=d),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(l)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(F),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(l)("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",Je,[e.createVNode(p,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[24]||(r[24]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(l)("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",Qe,[e.createVNode(p,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":r[25]||(r[25]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(l)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(l)("gateway_services.form.sections.general.description"),"hide-info-header":s.hideSectionsInfo,title:e.unref(l)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:t.fields.name,"onUpdate:modelValue":r[27]||(r[27]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:O.value,"error-message":Y.value,label:e.unref(l)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(l)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:z},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(G,{"data-testid":"tags-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("gateway_services.form.fields.tags.collapse")},{default:e.withCtx(()=>[e.createElementVNode("div",Xe,[e.createVNode(_,{modelValue:t.fields.tags,"onUpdate:modelValue":r[28]||(r[28]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(l)("gateway_services.form.fields.tags.help"),label:e.unref(l)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(l)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(l)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text",onInput:r[29]||(r[29]=d=>D("tags"))},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])])]),_:1},8,["trigger-label"])]),_:1},8,["description","hide-info-header","title"]),t.errorMessages.length?(e.openBlock(),e.createBlock(Z,{key:0,appearance:"danger","data-testid":"form-error"},{default:e.withCtx(()=>[e.createElementVNode("ul",Ye,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.errorMessages,d=>(e.openBlock(),e.createElementBlock("li",{key:d},e.toDisplayString(d),1))),128))])]),_:1})):e.createCommentVNode("",!0)]),_:3},8,["can-submit","config","edit-id","entity-type","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-72fe312f"]]),{validateHost:tt,validatePort:ot,validateProtocol:rt,validatePath:it}=U.useUrlValidators(),lt=()=>({validateHost:tt,validatePort:ot,validateProtocol:rt,validatePath:it});E.GatewayServiceConfigCard=De,E.GatewayServiceForm=et,E.GatewayServiceList=Fe,E.useUrlValidator=lt,Object.defineProperty(E,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{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-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{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-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .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(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{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-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.kong-ui-entity-base-form[data-v-7cbcaad8]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .slideout-content{overflow-y:unset!important}.form-actions[data-v-7cbcaad8]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-7cbcaad8] .k-button:last-of-type,.form-actions[data-v-7cbcaad8] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-7cbcaad8]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.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-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{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-084f7978]{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-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{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}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}.button-row[data-v-7f1b285f]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-7f1b285f]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-7f1b285f]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-72fe312f]{width:100%}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .form-section-wrapper{padding-bottom:48px}.kong-ui-entities-gateway-service-form .form-error-list[data-v-72fe312f]{list-style-type:disc;margin:0;padding-left:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-72fe312f]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-72fe312f]{display:flex;flex-direction:column;gap:16px;margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-72fe312f]{margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-72fe312f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-72fe312f],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-72fe312f] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-72fe312f]{display:flex;flex-direction:column;gap:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-72fe312f]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-72fe312f] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-72fe312f]{margin:4px;padding-left:24px}.slide-fade-enter-active[data-v-72fe312f]{transition:all .5s ease}.slide-fade-enter-from[data-v-72fe312f]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-72fe312f]{opacity:0;transform:translateY(5px)}
1
+ .config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{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-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-40ffb9f1]{align-items:center;border-bottom:var(--v0b2cd434);box-sizing:border-box;display:var(--bb02ad32);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-40ffb9f1]{box-sizing:border-box;padding-right:16px;width:var(--d92de3ce)}.config-card-details-row .config-card-details-label label[data-v-40ffb9f1]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-40ffb9f1]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-40ffb9f1]{min-width:0}.config-card-details-row .config-card-details-value[data-v-40ffb9f1]{box-sizing:border-box;width:var(--d9295818)}.config-card-details-row .config-card-details-value .truncated[data-v-40ffb9f1]{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-40ffb9f1]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-40ffb9f1] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-40ffb9f1]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-40ffb9f1]{margin-right:4px}.config-card-details-row[data-v-40ffb9f1] .k-label{margin-bottom:0}.config-card-details-row[data-v-40ffb9f1] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-40ffb9f1] .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(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{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-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.kong-ui-entity-base-form[data-v-7cbcaad8]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .slideout-content{overflow-y:unset!important}.form-actions[data-v-7cbcaad8]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-7cbcaad8] .k-button:last-of-type,.form-actions[data-v-7cbcaad8] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-7cbcaad8]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.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-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{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-084f7978]{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-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{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}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}.button-row[data-v-be14eac9]{align-items:center;display:flex;gap:12px}.kong-ui-entities-gateway-services-list[data-v-be14eac9]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-be14eac9]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-72fe312f]{width:100%}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .k-radio{align-items:normal}.kong-ui-entities-gateway-service-form[data-v-72fe312f] .form-section-wrapper{padding-bottom:48px}.kong-ui-entities-gateway-service-form .form-error-list[data-v-72fe312f]{list-style-type:disc;margin:0;padding-left:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-72fe312f]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-advanced-fields[data-v-72fe312f]{display:flex;flex-direction:column;gap:16px;margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-tags[data-v-72fe312f]{margin-left:12px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-72fe312f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-72fe312f],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-72fe312f] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-general-info[data-v-72fe312f]{display:flex;flex-direction:column;gap:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-72fe312f]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-group-selection-wrapper[data-v-72fe312f] .radio-label-wrapper{height:auto}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-72fe312f]{margin:4px;padding-left:24px}.slide-fade-enter-active[data-v-72fe312f]{transition:all .5s ease}.slide-fade-enter-from[data-v-72fe312f]{opacity:0;transform:translateY(-5px)}.slide-fade-leave-to[data-v-72fe312f]{opacity:0;transform:translateY(5px)}
@@ -1 +1 @@
1
- {"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AAsrBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASvC,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAejB,OAAO,gDAAgD,CAAA;;IAgzCrD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;IAnD9C,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;;qBAjCX,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;oBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;AA/C7E,wBA8DG"}
1
+ {"version":3,"file":"GatewayServiceList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceList.vue"],"names":[],"mappings":"AAyrBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAMnC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AASvC,OAAO,KAAK,EACV,mCAAmC,EACnC,+BAA+B,EAC/B,SAAS,EACT,gBAAgB,EACjB,MAAM,UAAU,CAAA;AAejB,OAAO,gDAAgD,CAAA;;IAszCrD,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;IAnD9C,oHAAoH;;cAElG,QAAQ,CAAC,+BAA+B,GAAG,mCAAmC,CAAC;;4BAE3E,+BAA+B,GAAG,mCAAmC,KAAG,OAAO;;;;;;IAYrG,yHAAyH;;cAErG,QAAQ,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI9D,2HAA2H;;cAEvG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,yHAAyH;;cAErG,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,4IAA4I;;cAExH,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,8IAA8I;;cAE1H,QAAQ,CAAC,CAAC,GAAG,EAAE,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;;;;IAI5E,iHAAiH;;;;;IAKjH,8CAA8C;;;;;;;;;;;;;;qBAjCX,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;qBAM1B,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;mBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;uBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;oBAMxC,SAAS,KAAK,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;;;;AA/C7E,wBA8DG"}
@@ -12,7 +12,7 @@ export interface BaseGatewayServiceListConfig {
12
12
  /** A function that returns the route for the belonged control plane */
13
13
  getControlPlaneRoute?: (id: string) => RouteLocationRaw;
14
14
  /** A function that returns the route for starting a debug session for a Gateway Service */
15
- getDebugRoute: (id: string) => RouteLocationRaw;
15
+ getDebugRoute?: (id: string) => RouteLocationRaw;
16
16
  }
17
17
  /** Konnect GatewayService list config */
18
18
  export interface KonnectGatewayServiceListConfig extends KonnectBaseTableConfig, BaseGatewayServiceListConfig {
@@ -1 +1 @@
1
- {"version":3,"file":"gateway-service-list.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEvH,MAAM,WAAW,4BAA4B;IAC3C,wDAAwD;IACxD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,2CAA2C;IAC3C,WAAW,EAAE,gBAAgB,CAAA;IAC7B,sEAAsE;IACtE,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,sEAAsE;IACtE,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IACvD,2FAA2F;IAC3F,aAAa,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CAChD;AAED,yCAAyC;AACzC,MAAM,WAAW,+BAAgC,SAAQ,sBAAsB,EAAE,4BAA4B;CAAG;AAEhH,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,0BAA0B,EAAE,4BAA4B;IACnH,mCAAmC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB;IACrB,MAAM,EAAE,SAAS,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
1
+ {"version":3,"file":"gateway-service-list.d.ts","sourceRoot":"","sources":["../../../src/types/gateway-service-list.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,KAAK,EAAE,YAAY,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAA;AAEvH,MAAM,WAAW,4BAA4B;IAC3C,wDAAwD;IACxD,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAChC,2CAA2C;IAC3C,WAAW,EAAE,gBAAgB,CAAA;IAC7B,sEAAsE;IACtE,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,sEAAsE;IACtE,YAAY,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IAC9C,uEAAuE;IACvE,oBAAoB,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;IACvD,2FAA2F;IAC3F,aAAa,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,gBAAgB,CAAA;CACjD;AAED,yCAAyC;AACzC,MAAM,WAAW,+BAAgC,SAAQ,sBAAsB,EAAE,4BAA4B;CAAG;AAEhH,8CAA8C;AAC9C,MAAM,WAAW,mCAAoC,SAAQ,0BAA0B,EAAE,4BAA4B;IACnH,mCAAmC;IACnC,YAAY,CAAC,EAAE,YAAY,CAAA;CAC5B;AAED,MAAM,WAAW,SAAU,SAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;IACpD,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;CACb;AAED,+BAA+B;AAC/B,MAAM,WAAW,gBAAgB;IAC/B,qBAAqB;IACrB,MAAM,EAAE,SAAS,CAAA;IACjB,2EAA2E;IAC3E,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,0BAA0B;IAC1B,OAAO,EAAE,MAAM,CAAA;CAChB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-gateway-services",
3
- "version": "3.14.3",
3
+ "version": "3.14.4",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-gateway-services.umd.js",
6
6
  "module": "./dist/entities-gateway-services.es.js",
@@ -26,8 +26,8 @@
26
26
  "axios": "^1.12.0",
27
27
  "vue": ">= 3.3.13 < 4",
28
28
  "vue-router": "^4.4.5",
29
- "@kong-ui-public/i18n": "^2.4.4",
30
- "@kong-ui-public/entities-shared": "^3.36.4"
29
+ "@kong-ui-public/entities-shared": "^3.36.4",
30
+ "@kong-ui-public/i18n": "^2.4.4"
31
31
  },
32
32
  "devDependencies": {
33
33
  "@kong/design-tokens": "1.18.2",