@kong-ui-public/entities-gateway-services 3.8.37 → 3.8.38-pr.1790.ad8708b43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as Ce, ref as V, computed as h, watch as Ve, onBeforeMount as xe, resolveComponent as F, openBlock as S, createElementBlock as U, createVNode as u, unref as o, withCtx as p, createBlock as Se, Teleport as Ae, withDirectives as Fe, createTextVNode as E, toDisplayString as _, vShow as $e, createElementVNode as C, withModifiers as we, reactive as Ie, onMounted as De, renderSlot as Be, createCommentVNode as G } from "vue";
|
|
2
2
|
import { useRouter as Ue } from "vue-router";
|
|
3
|
-
import { AddIcon as
|
|
4
|
-
import { createI18n as
|
|
5
|
-
import { useAxios as Ee, useFetcher as qe, useDeleteUrlBuilder as Ne, FetcherStatus as
|
|
3
|
+
import { AddIcon as Le } from "@kong/icons";
|
|
4
|
+
import { createI18n as Ge, i18nTComponent as Ke } from "@kong-ui-public/i18n";
|
|
5
|
+
import { useAxios as Ee, useFetcher as qe, useDeleteUrlBuilder as Ne, FetcherStatus as ke, EntityBaseTable as We, EntityFilter as Oe, PermissionsWrapper as le, TableTags as je, EntityToggleModal as He, EntityDeleteModal as Je, EntityTypes as ze, useErrors as Qe, useValidators as Xe, EntityBaseFormType as Te, useGatewayFeatureSupported as Ye, EntityBaseForm as Ze, SupportedEntityType as Me, EntityFormSection as Pe, useHelpers as et, ConfigurationSchemaSection as ne, ConfigurationSchemaType as tt, EntityBaseConfigCard as lt } from "@kong-ui-public/entities-shared";
|
|
6
6
|
const ot = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
@@ -183,7 +183,7 @@ const ot = {
|
|
|
183
183
|
glossary: nt
|
|
184
184
|
};
|
|
185
185
|
function dt() {
|
|
186
|
-
const n =
|
|
186
|
+
const n = Ge("en-us", ct);
|
|
187
187
|
return {
|
|
188
188
|
i18n: n,
|
|
189
189
|
i18nT: Ke(n)
|
|
@@ -236,7 +236,7 @@ const ue = {
|
|
|
236
236
|
edit: `${de}/services/{id}`
|
|
237
237
|
}
|
|
238
238
|
}
|
|
239
|
-
}, ft = { class: "kong-ui-entities-gateway-services-list" }, pt = { key: 1 }, mt = /* @__PURE__ */
|
|
239
|
+
}, ft = { class: "kong-ui-entities-gateway-services-list" }, pt = { key: 1 }, mt = /* @__PURE__ */ Ce({
|
|
240
240
|
__name: "GatewayServiceList",
|
|
241
241
|
props: {
|
|
242
242
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -330,7 +330,7 @@ const ue = {
|
|
|
330
330
|
ctaText: g.value ? d.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
331
331
|
message: `${r("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
|
|
332
332
|
title: g.value ? d.isServerless ? r("gateway_services.list.empty_state.serverless_title") : r("gateway_services.list.empty_state.title") : r("gateway_services.title")
|
|
333
|
-
})), O = V(!1), T = V(null),
|
|
333
|
+
})), O = V(!1), T = V(null), L = h(() => {
|
|
334
334
|
const a = {
|
|
335
335
|
action: "disable",
|
|
336
336
|
id: "",
|
|
@@ -412,9 +412,9 @@ const ue = {
|
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
}, i = V(!1);
|
|
415
|
-
|
|
415
|
+
Ve(H, (a) => {
|
|
416
416
|
var f, l, k, c;
|
|
417
|
-
if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status ===
|
|
417
|
+
if (Array.isArray((f = a == null ? void 0 : a.response) == null ? void 0 : f.data) && (i.value = a.response.data.length > 0), a.status === ke.InitialLoad || a.status === ke.NoRecords ? J.value = !0 : J.value = !1, a.status === ke.Error) {
|
|
418
418
|
y.value = {
|
|
419
419
|
title: r("errors.general")
|
|
420
420
|
}, (c = (k = (l = a.error) == null ? void 0 : l.response) == null ? void 0 : k.data) != null && c.message && (y.value.message = a.error.response.data.message), m("error", a.error);
|
|
@@ -454,7 +454,7 @@ const ue = {
|
|
|
454
454
|
}, null, 8, ["modelValue", "config"])
|
|
455
455
|
]),
|
|
456
456
|
"toolbar-button": p(() => [
|
|
457
|
-
(S(),
|
|
457
|
+
(S(), Se(Ae, {
|
|
458
458
|
disabled: !n.useActionOutside,
|
|
459
459
|
to: "#kong-ui-app-page-header-action-button"
|
|
460
460
|
}, [
|
|
@@ -469,7 +469,7 @@ const ue = {
|
|
|
469
469
|
to: n.config.createRoute
|
|
470
470
|
}, {
|
|
471
471
|
default: p(() => [
|
|
472
|
-
u(o(
|
|
472
|
+
u(o(Le)),
|
|
473
473
|
E(" " + _(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
474
474
|
]),
|
|
475
475
|
_: 1
|
|
@@ -487,7 +487,7 @@ const ue = {
|
|
|
487
487
|
control_plane: p(({ row: v }) => {
|
|
488
488
|
var A;
|
|
489
489
|
return [
|
|
490
|
-
(A = v.x_meta) != null && A.cluster_id ? (S(),
|
|
490
|
+
(A = v.x_meta) != null && A.cluster_id ? (S(), Se(k, {
|
|
491
491
|
key: 0,
|
|
492
492
|
tooltip: v.x_meta.cluster_id,
|
|
493
493
|
"truncation-tooltip": "",
|
|
@@ -605,9 +605,9 @@ const ue = {
|
|
|
605
605
|
_: 1
|
|
606
606
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "hide-toolbar", "query", "table-headers"]),
|
|
607
607
|
u(o(He), {
|
|
608
|
-
action:
|
|
609
|
-
"entity-id":
|
|
610
|
-
"entity-name":
|
|
608
|
+
action: L.value.action,
|
|
609
|
+
"entity-id": L.value.id,
|
|
610
|
+
"entity-name": L.value.name,
|
|
611
611
|
"entity-type": o(r)("glossary.gateway_services"),
|
|
612
612
|
"on-confirm": se,
|
|
613
613
|
visible: O.value,
|
|
@@ -633,7 +633,7 @@ const ue = {
|
|
|
633
633
|
for (const [d, r] of D)
|
|
634
634
|
m[d] = r;
|
|
635
635
|
return m;
|
|
636
|
-
},
|
|
636
|
+
}, Lt = /* @__PURE__ */ Re(mt, [["__scopeId", "data-v-d0611192"]]), vt = { class: "kong-ui-entities-gateway-service-form" }, gt = { key: 0 }, yt = { class: "gateway-service-form-traffic-label" }, _t = { class: "gateway-service-form-margin-bottom" }, bt = {
|
|
637
637
|
key: 0,
|
|
638
638
|
class: "gateway-service-form-group-fields"
|
|
639
639
|
}, ht = {
|
|
@@ -654,7 +654,7 @@ const ue = {
|
|
|
654
654
|
}, Mt = {
|
|
655
655
|
key: 1,
|
|
656
656
|
class: "checkbox-aligned-radio"
|
|
657
|
-
}, Rt = /* @__PURE__ */
|
|
657
|
+
}, Rt = /* @__PURE__ */ Ce({
|
|
658
658
|
__name: "GatewayServiceForm",
|
|
659
659
|
props: {
|
|
660
660
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -679,7 +679,7 @@ const ue = {
|
|
|
679
679
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
680
680
|
setup(n, { expose: D, emit: m }) {
|
|
681
681
|
var ee;
|
|
682
|
-
const d = m, r = n, M = V(!0), W = Ue(), { i18nT: K, i18n: { t: s } } = ue.useI18n(), { getMessageFromError: I } = Qe(), { axiosInstance: b } = Ee((ee = r.config) == null ? void 0 : ee.axiosRequestConfig), fe = Xe(), pe = h(() => oe.form[r.config.app].edit), $ = h(() => r.gatewayServiceId ? Te.Edit : Te.Create), me = V(!1), B = h(() => !!r.gatewayServiceId), w = V(B.value ? "protocol" : "url"), j = ue.usePortFromProtocol(), H = V(""), ve = h(() => !!H.value), e =
|
|
682
|
+
const d = m, r = n, M = V(!0), W = Ue(), { i18nT: K, i18n: { t: s } } = ue.useI18n(), { getMessageFromError: I } = Qe(), { axiosInstance: b } = Ee((ee = r.config) == null ? void 0 : ee.axiosRequestConfig), fe = Xe(), pe = h(() => oe.form[r.config.app].edit), $ = h(() => r.gatewayServiceId ? Te.Edit : Te.Create), me = V(!1), B = h(() => !!r.gatewayServiceId), w = V(B.value ? "protocol" : "url"), j = ue.usePortFromProtocol(), H = V(""), ve = h(() => !!H.value), e = Ie({
|
|
683
683
|
fields: {
|
|
684
684
|
name: "",
|
|
685
685
|
protocol: "http",
|
|
@@ -699,7 +699,7 @@ const ue = {
|
|
|
699
699
|
},
|
|
700
700
|
isReadonly: !1,
|
|
701
701
|
errorMessage: ""
|
|
702
|
-
}), y =
|
|
702
|
+
}), y = Ie({
|
|
703
703
|
name: "",
|
|
704
704
|
protocol: "http",
|
|
705
705
|
host: "",
|
|
@@ -776,7 +776,7 @@ const ue = {
|
|
|
776
776
|
}
|
|
777
777
|
], O = { url: "url", protocol: "protocol" }, T = (t, i) => {
|
|
778
778
|
i.value;
|
|
779
|
-
},
|
|
779
|
+
}, L = (t) => t ? parseFloat(t) : 0, ie = () => {
|
|
780
780
|
M.value = !0, e.errorMessage = "", e.fields.host = y.host, e.fields.path = y.path, e.fields.port = y.port, e.fields.protocol = y.protocol, e.fields.url = y.url, e.fields.retries = y.retries, e.fields.connect_timeout = y.connect_timeout, e.fields.write_timeout = y.write_timeout, e.fields.read_timeout = y.read_timeout, e.fields.client_certificate = y.client_certificate, e.fields.ca_certificates = y.ca_certificates, e.fields.tls_verify_enabled = y.tls_verify_enabled, e.fields.tls_verify_value = y.tls_verify_value;
|
|
781
781
|
}, z = () => {
|
|
782
782
|
if (e.fields.url && w.value === "url")
|
|
@@ -861,9 +861,9 @@ const ue = {
|
|
|
861
861
|
e.isReadonly = !1;
|
|
862
862
|
}
|
|
863
863
|
};
|
|
864
|
-
return
|
|
864
|
+
return Ve(() => r.gatewayServiceId, () => {
|
|
865
865
|
Object.assign(e.fields, y);
|
|
866
|
-
}),
|
|
866
|
+
}), Ve(e.fields, (t) => {
|
|
867
867
|
e.fields.port = j.getPortFromProtocol(t.protocol, String(t.port)), d("model-updated", N.value);
|
|
868
868
|
}), De(() => {
|
|
869
869
|
d("model-updated", N.value);
|
|
@@ -950,7 +950,7 @@ const ue = {
|
|
|
950
950
|
title: o(s)("gateway_services.form.sections.keys.title")
|
|
951
951
|
}, {
|
|
952
952
|
default: p(() => [
|
|
953
|
-
B.value ?
|
|
953
|
+
B.value ? G("", !0) : (S(), U("div", gt, [
|
|
954
954
|
C("div", yt, [
|
|
955
955
|
u(P, { required: "" }, {
|
|
956
956
|
default: p(() => [
|
|
@@ -989,7 +989,7 @@ const ue = {
|
|
|
989
989
|
placeholder: o(s)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
990
990
|
required: ""
|
|
991
991
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
992
|
-
])) :
|
|
992
|
+
])) : G("", !0),
|
|
993
993
|
u(a, {
|
|
994
994
|
modelValue: w.value,
|
|
995
995
|
"onUpdate:modelValue": i[4] || (i[4] = (c) => w.value = c),
|
|
@@ -1050,13 +1050,13 @@ const ue = {
|
|
|
1050
1050
|
name: "path",
|
|
1051
1051
|
placeholder: o(s)("gateway_services.form.fields.path.placeholder")
|
|
1052
1052
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1053
|
-
])) :
|
|
1053
|
+
])) : G("", !0),
|
|
1054
1054
|
u(g, {
|
|
1055
1055
|
modelValue: e.fields.port,
|
|
1056
1056
|
"onUpdate:modelValue": [
|
|
1057
1057
|
i[9] || (i[9] = (c) => e.fields.port = c),
|
|
1058
1058
|
i[10] || (i[10] = () => {
|
|
1059
|
-
e.fields.port =
|
|
1059
|
+
e.fields.port = L(e.fields.port + "");
|
|
1060
1060
|
})
|
|
1061
1061
|
],
|
|
1062
1062
|
class: "gateway-service-form-margin-top",
|
|
@@ -1069,7 +1069,7 @@ const ue = {
|
|
|
1069
1069
|
name: "port",
|
|
1070
1070
|
type: "number"
|
|
1071
1071
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1072
|
-
])) :
|
|
1072
|
+
])) : G("", !0),
|
|
1073
1073
|
u(k, {
|
|
1074
1074
|
modelValue: M.value,
|
|
1075
1075
|
"onUpdate:modelValue": i[24] || (i[24] = (c) => M.value = c),
|
|
@@ -1085,7 +1085,7 @@ const ue = {
|
|
|
1085
1085
|
"onUpdate:modelValue": [
|
|
1086
1086
|
i[11] || (i[11] = (c) => e.fields.retries = c),
|
|
1087
1087
|
i[12] || (i[12] = () => {
|
|
1088
|
-
e.fields.retries =
|
|
1088
|
+
e.fields.retries = L(e.fields.retries + "");
|
|
1089
1089
|
})
|
|
1090
1090
|
],
|
|
1091
1091
|
autocomplete: "off",
|
|
@@ -1106,7 +1106,7 @@ const ue = {
|
|
|
1106
1106
|
"onUpdate:modelValue": [
|
|
1107
1107
|
i[13] || (i[13] = (c) => e.fields.connect_timeout = c),
|
|
1108
1108
|
i[14] || (i[14] = () => {
|
|
1109
|
-
e.fields.connect_timeout =
|
|
1109
|
+
e.fields.connect_timeout = L(e.fields.connect_timeout + "");
|
|
1110
1110
|
})
|
|
1111
1111
|
],
|
|
1112
1112
|
autocomplete: "off",
|
|
@@ -1127,7 +1127,7 @@ const ue = {
|
|
|
1127
1127
|
"onUpdate:modelValue": [
|
|
1128
1128
|
i[15] || (i[15] = (c) => e.fields.write_timeout = c),
|
|
1129
1129
|
i[16] || (i[16] = () => {
|
|
1130
|
-
e.fields.write_timeout =
|
|
1130
|
+
e.fields.write_timeout = L(e.fields.write_timeout + "");
|
|
1131
1131
|
})
|
|
1132
1132
|
],
|
|
1133
1133
|
autocomplete: "off",
|
|
@@ -1148,7 +1148,7 @@ const ue = {
|
|
|
1148
1148
|
"onUpdate:modelValue": [
|
|
1149
1149
|
i[17] || (i[17] = (c) => e.fields.read_timeout = c),
|
|
1150
1150
|
i[18] || (i[18] = () => {
|
|
1151
|
-
e.fields.read_timeout =
|
|
1151
|
+
e.fields.read_timeout = L(e.fields.read_timeout + "");
|
|
1152
1152
|
})
|
|
1153
1153
|
],
|
|
1154
1154
|
autocomplete: "off",
|
|
@@ -1180,7 +1180,7 @@ const ue = {
|
|
|
1180
1180
|
readonly: e.isReadonly,
|
|
1181
1181
|
type: "text"
|
|
1182
1182
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
1183
|
-
])) :
|
|
1183
|
+
])) : G("", !0),
|
|
1184
1184
|
_e.value ? (S(), U("div", Pt, [
|
|
1185
1185
|
u(g, {
|
|
1186
1186
|
modelValue: e.fields.ca_certificates,
|
|
@@ -1210,7 +1210,7 @@ const ue = {
|
|
|
1210
1210
|
]),
|
|
1211
1211
|
_: 1
|
|
1212
1212
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1213
|
-
])) :
|
|
1213
|
+
])) : G("", !0),
|
|
1214
1214
|
be.value ? (S(), U("div", Ut, [
|
|
1215
1215
|
u(l, {
|
|
1216
1216
|
modelValue: e.fields.tls_verify_enabled,
|
|
@@ -1241,7 +1241,7 @@ const ue = {
|
|
|
1241
1241
|
label: o(s)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1242
1242
|
"selected-value": !0
|
|
1243
1243
|
}, null, 8, ["modelValue", "label"])
|
|
1244
|
-
])) :
|
|
1244
|
+
])) : G("", !0),
|
|
1245
1245
|
e.fields.tls_verify_enabled ? (S(), U("div", Mt, [
|
|
1246
1246
|
u(a, {
|
|
1247
1247
|
modelValue: e.fields.tls_verify_value,
|
|
@@ -1250,8 +1250,8 @@ const ue = {
|
|
|
1250
1250
|
label: o(s)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1251
1251
|
"selected-value": !1
|
|
1252
1252
|
}, null, 8, ["modelValue", "label"])
|
|
1253
|
-
])) :
|
|
1254
|
-
])) :
|
|
1253
|
+
])) : G("", !0)
|
|
1254
|
+
])) : G("", !0)
|
|
1255
1255
|
])
|
|
1256
1256
|
]),
|
|
1257
1257
|
_: 1
|
|
@@ -1265,7 +1265,7 @@ const ue = {
|
|
|
1265
1265
|
]);
|
|
1266
1266
|
};
|
|
1267
1267
|
}
|
|
1268
|
-
}),
|
|
1268
|
+
}), Gt = /* @__PURE__ */ Re(Rt, [["__scopeId", "data-v-35e0db56"]]), xt = { class: "kong-ui-gateway-service-entity-config-card" }, Kt = /* @__PURE__ */ Ce({
|
|
1269
1269
|
__name: "GatewayServiceConfigCard",
|
|
1270
1270
|
props: {
|
|
1271
1271
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1416,6 +1416,6 @@ const ue = {
|
|
|
1416
1416
|
});
|
|
1417
1417
|
export {
|
|
1418
1418
|
Kt as GatewayServiceConfigCard,
|
|
1419
|
-
|
|
1420
|
-
|
|
1419
|
+
Gt as GatewayServiceForm,
|
|
1420
|
+
Lt as GatewayServiceList
|
|
1421
1421
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-gateway-services"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-i18n"],w["kong-ui-public-entities-shared"]))})(this,function(w,e,de,ue,fe,u){"use strict";const me={actions:{create:"New Gateway Service",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New Gateway Service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this Gateway Service."},keys:{title:"Service Endpoint",description:"Define the endpoint for this service by specifying the full URL or by its separate elements.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, Host, Port and Path",viewAdvancedFields:"View Advanced Fields"}},fields:{upstream_url:{label:"Upstream URL",placeholder:"Enter a URL",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"Enter a host",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"Enter a path",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection Timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write Timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read Timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client Certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},ca_certificates:{label:"CA Certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS Verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function ge(){const n=fe.createI18n("en-us",me);return{i18n:n,i18nT:fe.i18nTComponent(n)}}function ye(){return{getPortFromProtocol:(T,p)=>{const d=[80,443],s=Number(p);if((s||s===0)&&!d.includes(s))return s;switch(T){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const J={useI18n:ge,usePortFromProtocol:ye},z="/v2/control-planes/{controlPlaneId}/core-entities",Q="/{workspace}",F={list:{konnect:{all:`${z}/services`},kongManager:{all:`${Q}/services`}},form:{konnect:{create:`${z}/services`,validate:`${z}/v1/schemas/json/service/validate`,edit:`${z}/services/{id}`},kongManager:{create:`${Q}/services`,validate:`${Q}/schemas/services/validate`,edit:`${Q}/services/{id}`}}},_e={class:"kong-ui-entities-gateway-services-list"},be={key:1},he=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||!n.createRoute||!n.getViewRoute||!n.getEditRoute||n.app==="kongManager"&&!n.isExactMatch&&!n.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","toggle:success"],setup(n,{emit:T}){var C;const p=T,d=n,{i18n:{t:s,formatUnixTimeStamp:k}}=J.useI18n(),D=de.useRouter(),{axiosInstance:B}=u.useAxios((C=d.config)==null?void 0:C.axiosRequestConfig),r=e.ref(1),v=e.computed(()=>d.config.app!=="kongManager"||!!d.config.disableSorting),_={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:s("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:s("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:s("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:s("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:s("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:s("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:s("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:s("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:s("gateway_services.list.table_headers.created_at"),sortable:!0}},te={columnVisibility:{created_at:!1}},oe=_,S=e.computed(()=>{var f,l;let a=`${d.config.apiBaseUrl}${F.list[d.config.app].all}`;return d.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||""):d.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:"")),a}),le=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${S.value}`):new URL(S.value)),I=e.ref(""),b=e.computed(()=>{const a=d.config.app==="konnect"||d.config.isExactMatch;if(a)return{isExactMatch:a,placeholder:s(`search.placeholder.${d.config.app}`)};const{name:f,enabled:l,protocol:h,host:c,port:x,path:ee}=_;return{isExactMatch:a,fields:{name:f,enabled:l,protocol:h,host:c,port:x,path:ee},schema:d.config.filterSchema}}),{fetcher:A,fetcherState:$}=u.useFetcher(d.config,S.value),ie=()=>{I.value=""},t=()=>{r.value++},y=e.ref(null),G=e.ref(!1),re=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:g.value?d.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:g.value?d.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),R=e.ref(!1),V=e.ref(null),P=e.computed(()=>{const a={action:"disable",id:"",name:""};if(V.value){const{enabled:f,id:l,name:h}=V.value;a.action=f?"disable":"enable",a.id=l,a.name=h||l}return a}),X=a=>{R.value=!0,V.value=a},L=()=>{R.value=!1,V.value=null},Y=async()=>{var h,c;if(!await((h=d.canEdit)==null?void 0:h.call(d,V.value))||!V.value)return;const f=`${le.value.href}/${V.value.id}`,l=!V.value.enabled;try{const{data:x}=((c=d.config)==null?void 0:c.app)==="konnect"?await B.put(f,{...V.value,enabled:l}):await B.patch(f,{...V.value,enabled:l});p("toggle:success",x),V.value.enabled=l}catch(x){p("error",x)}},se=a=>{d.config.getControlPlaneRoute&&D.push(d.config.getControlPlaneRoute(a))},ae=(a,f)=>{const l=a.id;if(!f(l)){p("copy:error",{entity:a,field:"id",message:s("errors.copy")});return}p("copy:success",{entity:a,field:"id",message:s("copy.success",{val:l})})},ne=(a,f)=>{const l=JSON.stringify(a);if(!f(l)){p("copy:error",{entity:a,message:s("errors.copy")});return}p("copy:success",{entity:a,message:s("copy.success_brief")})},ce=async a=>{var l;await((l=d.canRetrieve)==null?void 0:l.call(d,a))&&D.push(d.config.getViewRoute(a.id))},q=a=>({label:s("actions.view"),to:d.config.getViewRoute(a)}),Z=a=>({label:s("actions.edit"),to:d.config.getEditRoute(a)}),N=e.ref(void 0),K=e.ref(!1),U=e.ref(!1),W=e.ref(""),M=u.useDeleteUrlBuilder(d.config,S.value),O=a=>{N.value=a,K.value=!0,W.value=""},j=()=>{K.value=!1,N.value=void 0},o=async()=>{var a,f,l;if((a=N.value)!=null&&a.id){U.value=!0;try{await B.delete(M(N.value.id)),p("delete:success",N.value),j(),r.value++}catch(h){W.value=((l=(f=h.response)==null?void 0:f.data)==null?void 0:l.message)||h.message||s("errors.delete"),p("error",h)}finally{U.value=!1}}},i=e.ref(!1);e.watch($,a=>{var f,l,h,c;if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)&&(i.value=a.response.data.length>0),a.status===u.FetcherStatus.NoRecords?G.value=!0:G.value=!1,a.status===u.FetcherStatus.Error){y.value={title:s("errors.general")},(c=(h=(l=a.error)==null?void 0:l.response)==null?void 0:h.data)!=null&&c.message&&(y.value.message=a.error.response.data.message),p("error",a.error);return}y.value=null});const g=e.ref(!1);return e.onBeforeMount(async()=>{g.value=await d.canCreate()}),(a,f)=>{const l=e.resolveComponent("KButton"),h=e.resolveComponent("KBadge"),c=e.resolveComponent("KInputSwitch"),x=e.resolveComponent("KDropdownItem"),ee=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":n.cacheIdentifier,"default-table-preferences":te,"disable-sorting":v.value,"empty-state-options":re.value,"enable-entity-actions":"","error-message":y.value,fetcher:e.unref(A),"fetcher-cache-key":r.value,"hide-toolbar":G.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:I.value,"table-headers":e.unref(oe),onClearSearchInput:ie,"onClick:row":f[2]||(f[2]=m=>ce(m)),onSort:t},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:I.value,"onUpdate:modelValue":f[0]||(f[0]=m=>I.value=m),config:b.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:n.useActionOutside?"medium":"large",to:n.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ue.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"]),[[e.vShow,i.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:m})=>[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)]),control_plane:e.withCtx(({row:m})=>{var E;return[(E=m.x_meta)!=null&&E.cluster_id?(e.openBlock(),e.createBlock(h,{key:0,tooltip:m.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(H=>se(m.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",be,"-"))]}),enabled:e.withCtx(({row:m})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canEdit(m),"force-show":""},{default:e.withCtx(({isAllowed:E})=>[e.createElementVNode("div",{onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(c,{modelValue:m.enabled,"onUpdate:modelValue":H=>m.enabled=H,"data-testid":`row-${m.id}-toggle-input`,disabled:!E,onClick:e.withModifiers(H=>X(m),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:m})=>[e.createVNode(e.unref(u.TableTags),{tags:m},null,8,["tags"])]),created_at:e.withCtx(({rowValue:m})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(m)),1)]),updated_at:e.withCtx(({row:m,rowValue:E})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(E??m.created_at)),1)]),actions:e.withCtx(({row:m})=>[e.createVNode(ee,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-id",onClick:H=>ae(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(ee,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-json",onClick:H=>ne(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canRetrieve(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-view","has-divider":"",item:q(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-edit",item:Z(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(x,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:E=>O(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers"]),e.createVNode(e.unref(u.EntityToggleModal),{action:P.value.action,"entity-id":P.value.id,"entity-name":P.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":Y,visible:R.value,onCancel:L,onProceed:L},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":U.value,description:e.unref(s)("actions.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:W.value,title:e.unref(s)("actions.delete.title"),visible:K.value,onCancel:j,onProceed:o},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),pe=(n,T)=>{const p=n.__vccOpts||n;for(const[d,s]of T)p[d]=s;return p},we=pe(he,[["__scopeId","data-v-48f9a998"]]),ve={class:"kong-ui-entities-gateway-service-form"},Ve={key:0},Ce={class:"gateway-service-form-traffic-label"},ke={class:"gateway-service-form-margin-bottom"},Ne={key:0,class:"gateway-service-form-group-fields"},xe={key:1,class:"gateway-service-form-group-fields"},Ee={key:0},Se={class:"gateway-service-form-margin-top"},Te={class:"gateway-service-form-margin-bottom"},Ie={class:"gateway-service-form-margin-bottom"},Pe={class:"gateway-service-form-margin-bottom"},Be={class:"gateway-service-form-margin-bottom"},Ue={key:0,class:"gateway-service-form-margin-bottom"},Me={key:1,class:"gateway-service-form-margin-bottom"},De={key:2,class:"gateway-service-form-margin-bottom"},Re={key:0,class:"checkbox-aligned-radio"},Fe={key:1,class:"checkbox-aligned-radio"},Ae=pe(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(n,{expose:T,emit:p}){var j;const d=p,s=n,k=e.ref(!0),D=de.useRouter(),{i18nT:B,i18n:{t:r}}=J.useI18n(),{getMessageFromError:v}=u.useErrors(),{axiosInstance:_}=u.useAxios((j=s.config)==null?void 0:j.axiosRequestConfig),te=u.useValidators(),oe=e.computed(()=>F.form[s.config.app].edit),S=e.computed(()=>s.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),le=e.ref(!1),I=e.computed(()=>!!s.gatewayServiceId),b=e.ref(I.value?"protocol":"url"),A=J.usePortFromProtocol(),$=e.ref(""),ie=e.computed(()=>!!$.value),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""},isReadonly:!1,errorMessage:""}),y=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:""}),G=s.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),re=[{label:r("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:r("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:r("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:r("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...G?[{label:r("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:r("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:r("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],R={url:"url",protocol:"protocol"},V=(o,i)=>{i.value},P=o=>o?parseFloat(o):0,X=()=>{k.value=!0,t.errorMessage="",t.fields.host=y.host,t.fields.path=y.path,t.fields.port=y.port,t.fields.protocol=y.protocol,t.fields.url=y.url,t.fields.retries=y.retries,t.fields.connect_timeout=y.connect_timeout,t.fields.write_timeout=y.write_timeout,t.fields.read_timeout=y.read_timeout,t.fields.client_certificate=y.client_certificate,t.fields.ca_certificates=y.ca_certificates,t.fields.tls_verify_enabled=y.tls_verify_enabled,t.fields.tls_verify_value=y.tls_verify_value},L=()=>{if(t.fields.url&&b.value==="url")try{const o=new URL(t.fields.url);t.errorMessage="",t.fields.protocol=o.protocol.slice(0,-1),t.fields.host=o.hostname,t.fields.path=o.pathname;const i=Number(o.port);le.value=!!i,t.fields.port=i||A.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=r("errors.urlErrorMessage"),d("url-valid:error",v(o))}else d("url-valid:success"),t.errorMessage=""},Y=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),se=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ae=e.computed(()=>{if(b.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ne=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ce=o=>{$.value=te.utf8Name(o)},q=e.computed(()=>I.value&&JSON.stringify(t.fields)!==JSON.stringify(y)||b.value==="url"&&!!t.fields.url||b.value==="protocol"&&!!t.fields.host),Z=o=>{var i,g,C;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((i=o==null?void 0:o.tags)==null?void 0:i.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((g=o==null?void 0:o.ca_certificates)==null?void 0:g.join(","))||"",t.fields.client_certificate=((C=o==null?void 0:o.client_certificate)==null?void 0:C.id)||"",t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,Object.assign(y,t.fields)},N=()=>{D.push(s.config.cancelRoute)},K=e.computed(()=>{var i,g;let o=`${s.config.apiBaseUrl}${F.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(g=s.config)!=null&&g.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),U=e.computed(()=>{var i,g;let o=`${s.config.apiBaseUrl}${F.form[s.config.app][S.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(g=s.config)!=null&&g.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),W=o=>{let i="";o.url&&(i=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(i))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},M=e.computed(()=>{var i,g,C,a;const o={name:t.fields.name||null,tags:t.fields.tags?(C=(g=(i=t.fields.tags)==null?void 0:i.split(","))==null?void 0:g.map(f=>String(f||"").trim()))==null?void 0:C.filter(f=>f!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(a=t.fields.ca_certificates)==null?void 0:a.split(",").filter(f=>f!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),Y.value||(o.path=null),S.value==="create"?b.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:S.value==="edit"&&delete o.url,o}),O=async()=>{var o,i,g,C;try{t.isReadonly=!0,L();const a=M.value;W(a);let f;if(await _.post(K.value,a),S.value==="create"?f=await _.post(U.value,a):S.value==="edit"&&(f=((o=s.config)==null?void 0:o.app)==="konnect"?await _.put(U.value,a):await _.patch(U.value,a)),f){const{data:l}=f;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||A.getPortFromProtocol(l.protocol),t.fields.protocol=(l==null?void 0:l.protocol)||"http",t.fields.host=(l==null?void 0:l.host)||"",t.fields.path=(l==null?void 0:l.path)||"",t.fields.url=(l==null?void 0:l.url)||"",t.fields.retries=l!=null&&l.retries||(l==null?void 0:l.retries)===0?l==null?void 0:l.retries:5,t.fields.connect_timeout=l!=null&&l.connect_timeout||(l==null?void 0:l.connect_timeout)===0?l==null?void 0:l.connect_timeout:6e4,t.fields.write_timeout=l!=null&&l.write_timeout||(l==null?void 0:l.write_timeout)===0?l==null?void 0:l.write_timeout:6e4,t.fields.read_timeout=l!=null&&l.read_timeout||(l==null?void 0:l.read_timeout)===0?l==null?void 0:l.read_timeout:6e4,t.fields.client_certificate=((i=l==null?void 0:l.client_certificate)==null?void 0:i.id)||"",t.fields.ca_certificates=(g=l==null?void 0:l.ca_certificates)!=null&&g.length?l==null?void 0:l.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(l==null?void 0:l.tls_verify)!==""&&(l==null?void 0:l.tls_verify)!==null&&(l==null?void 0:l.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(l==null?void 0:l.tls_verify),t.fields.tags=(C=l==null?void 0:l.tags)!=null&&C.length?l.tags.join(", "):"",Object.assign(y,t.fields),d("update",f==null?void 0:f.data)}return f}catch(a){t.errorMessage=v(a),d("error",a)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,y)}),e.watch(t.fields,o=>{t.fields.port=A.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",M.value)}),e.onMounted(()=>{d("model-updated",M.value)}),T({validateUrl:L,getPayload:M,saveFormData:O,canSubmit:q,initForm:Z}),(o,i)=>{const g=e.resolveComponent("KInput"),C=e.resolveComponent("KLabel"),a=e.resolveComponent("KRadio"),f=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),h=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":q.value,config:n.config,"edit-id":n.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:N,"onFetch:error":i[25]||(i[25]=c=>o.$emit("error",c)),"onFetch:success":Z,onLoading:i[26]||(i[26]=c=>o.$emit("loading",c)),onSubmit:O},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:q.value,cancel:N,submit:O},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.general.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.fields.name,"onUpdate:modelValue":i[0]||(i[0]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:ie.value,"error-message":$.value,label:e.unref(r)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(r)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ce},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(g,{modelValue:t.fields.tags,"onUpdate:modelValue":i[1]||(i[1]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(r)("gateway_services.form.fields.tags.help"),label:e.unref(r)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(r)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.keys.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ce,[e.createVNode(C,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",ke,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[2]||(i[2]=c=>b.value=c),"data-testid":"gateway-service-url-radio","selected-value":R.url,onChange:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),b.value==="url"?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(g,{modelValue:t.fields.url,"onUpdate:modelValue":i[3]||(i[3]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(r)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:n.config.app==="konnect"?e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(r)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[4]||(i[4]=c=>b.value=c),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":R.protocol,onChange:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),b.value==="protocol"||I.value?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(f,{modelValue:t.fields.protocol,"onUpdate:modelValue":i[5]||(i[5]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:re,label:e.unref(r)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:i[6]||(i[6]=c=>V(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:t.fields.host,"onUpdate:modelValue":i[7]||(i[7]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(r)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(r)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),Y.value?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(g,{modelValue:t.fields.path,"onUpdate:modelValue":i[8]||(i[8]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(r)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(r)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(g,{modelValue:t.fields.port,"onUpdate:modelValue":[i[9]||(i[9]=c=>t.fields.port=c),i[10]||(i[10]=()=>{t.fields.port=P(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(r)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:k.value,"onUpdate:modelValue":i[24]||(i[24]=c=>k.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(r)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createElementVNode("div",Te,[e.createVNode(g,{modelValue:t.fields.retries,"onUpdate:modelValue":[i[11]||(i[11]=c=>t.fields.retries=c),i[12]||(i[12]=()=>{t.fields.retries=P(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(r)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ie,[e.createVNode(g,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[i[13]||(i[13]=c=>t.fields.connect_timeout=c),i[14]||(i[14]=()=>{t.fields.connect_timeout=P(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(r)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Pe,[e.createVNode(g,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[i[15]||(i[15]=c=>t.fields.write_timeout=c),i[16]||(i[16]=()=>{t.fields.write_timeout=P(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(r)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Be,[e.createVNode(g,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[i[17]||(i[17]=c=>t.fields.read_timeout=c),i[18]||(i[18]=()=>{t.fields.read_timeout=P(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(r)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),se.value?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(g,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":i[19]||(i[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(r)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(r)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ae.value?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(g,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":i[20]||(i[20]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(r)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(r)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":i[21]||(i[21]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[22]||(i[22]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[23]||(i[23]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-35e0db56"]]),$e={class:"kong-ui-gateway-service-entity-config-card"},Ge=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(n){const T=n,{i18n:{t:p},i18nT:d}=J.useI18n(),s=e.computed(()=>F.form[T.config.app].edit),{getPropValue:k}=u.useHelpers(),D=(r,v)=>k(r,v)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),B=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:u.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(r,v)=>(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:n.config,"config-card-doc":n.configCardDoc,"config-schema":B.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":n.hideTitle,"onFetch:error":v[0]||(v[0]=_=>r.$emit("fetch:error",_)),"onFetch:success":v[1]||(v[1]=_=>r.$emit("fetch:success",_)),onLoading:v[2]||(v[2]=_=>r.$emit("loading",_))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(typeof e.unref(k)("rowValue",_)=="boolean"?D("rowValue",_):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(e.unref(k)("rowValue",_)?e.unref(k)("rowValue",_).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});w.GatewayServiceConfigCard=Ge,w.GatewayServiceForm=Ae,w.GatewayServiceList=we,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/i18n"),require("@kong-ui-public/entities-shared")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/i18n","@kong-ui-public/entities-shared"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-gateway-services"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-i18n"],w["kong-ui-public-entities-shared"]))})(this,function(w,e,de,ue,fe,u){"use strict";const me={actions:{create:"New Gateway Service",serverless_create:"Add a Service",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",clear:"Clear",view:"View Details",delete:{title:"Delete a Gateway Service",description:"Deleting this Gateway Service will also remove any associated plugins. This action cannot be reversed.",menu_label:"Delete"}},search:{placeholder:{konnect:"Filter by name",kongManager:"Filter by exact name or ID"}},gateway_services:{title:"Gateway Services",list:{toolbar_actions:{new_gateway_service:"New Gateway Service"},table_headers:{name:"Name",control_plane:"Control Plane",protocol:"Protocol",host:"Host",port:"Port",path:"Path",enabled:"Enabled",tags:"Tags",id:"ID",created_at:"Created At",updated_at:"Last Modified"},empty_state:{title:"Configure a New Gateway Service",description:"Gateway services are used to proxy traffic.",serverless_title:"Configure your first Gateway Service"}},form:{sections:{general:{title:"General Information",description:"General information will help identify and manage this Gateway Service."},keys:{title:"Service Endpoint",description:"Define the endpoint for this service by specifying the full URL or by its separate elements.",checkedGroupLabel:"Choose how and where to send traffic",urlLabel:"Full URL",checkedGroupAltLabel:"Protocol, Host, Port and Path",viewAdvancedFields:"View Advanced Fields"}},fields:{upstream_url:{label:"Upstream URL",placeholder:"Enter a URL",tooltip_for_konnect:"This is the URL of the API you will manage in Konnect.",tooltip_for_km:"This is the URL of the API you will manage in Kong Gateway."},name:{label:"Name",placeholder:"Enter a unique name",tooltip:"The Service name."},protocol:{label:"Protocol",tooltip:"The protocol used to communicate with the upstream.",options:{http:"http",https:"https",tcp:"tcp",tls:"tls",tls_passthrough:"tls_passthrough",grpc:"grpc",grpcs:"grpcs",ws:"ws",wss:"wss",udp:"udp"}},host:{label:"Host",placeholder:"Enter a host",tooltip:"The host of the upstream server. Note that the host value is case sensitive."},path:{label:"Path",placeholder:"Enter a path",tooltip:"The path to be used in request to the upstream server."},port:{label:"Port",tooltip:"The upstream server port."},retries:{label:"Retries",tooltip:"The number of retries to execute upon failure to proxy."},connect_timeout:{label:"Connection Timeout",tooltip:"The timeout in milliseconds for establishing a connection to the upstream server."},write_timeout:{label:"Write Timeout",tooltip:"The timeout in milliseconds between two successive write operations for transmitting a request to the upstream server."},read_timeout:{label:"Read Timeout",tooltip:"The timeout in milliseconds between two successive read operations for transmitting a request to the upstream server."},client_certificate:{label:"Client Certificate",placeholder:"Enter a Certificate ID",tooltip:"Certificate to be used as client certificate while TLS handshaking to the upstream server."},ca_certificates:{label:"CA Certificates",placeholder:"Enter a comma separated list of CA Certificate IDs",tooltip:"Array of {code1} object UUIDs that are used to build the trust store while verifying upstream server's TLS certificate. If set to {code2} when Nginx default is respected. If default CA list in Nginx are not specified and TLS verification is enabled, then handshake with upstream server will always fail (because no CA are trusted).",code1:"CA Certificate",code2:"null"},tls_verify_enabled:{label:"TLS Verify",help:"If unchecked, use default system setting",tooltip:"Whether to enable verification of upstream server TLS certificate. If set to {code1}, then the Nginx default is respected.",code1:"null"},tls_verify_option:{unset:{display:"Use default system setting"},true:{label:"True",display:"On"},false:{label:"False",display:"Off"}},tags:{label:"Tags",tooltip:"An optional set of strings associated with the Service for grouping and filtering.",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"},enabled:{label:"Enabled",tooltip:"Whether the Service is active. If set to {false}, the proxy behavior will be as if any routes attached to it do not exist (404). Default: {true}.",false:"false",true:"true"}}}},errors:{general:"Gateway Services could not be retrieved",delete:"The gateway service could not be deleted at this time.",copy:"Failed to copy to clipboard",urlErrorMessage:"Error: invalid URL"},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},glossary:{gateway_services:"gateway services"}};function ge(){const n=fe.createI18n("en-us",me);return{i18n:n,i18nT:fe.i18nTComponent(n)}}function ye(){return{getPortFromProtocol:(T,p)=>{const d=[80,443],s=Number(p);if((s||s===0)&&!d.includes(s))return s;switch(T){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const J={useI18n:ge,usePortFromProtocol:ye},z="/v2/control-planes/{controlPlaneId}/core-entities",Q="/{workspace}",F={list:{konnect:{all:`${z}/services`},kongManager:{all:`${Q}/services`}},form:{konnect:{create:`${z}/services`,validate:`${z}/v1/schemas/json/service/validate`,edit:`${z}/services/{id}`},kongManager:{create:`${Q}/services`,validate:`${Q}/schemas/services/validate`,edit:`${Q}/services/{id}`}}},_e={class:"kong-ui-entities-gateway-services-list"},be={key:1},he=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||!n.createRoute||!n.getViewRoute||!n.getEditRoute||n.app==="kongManager"&&!n.isExactMatch&&!n.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1},isServerless:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success","toggle:success"],setup(n,{emit:T}){var C;const p=T,d=n,{i18n:{t:s,formatUnixTimeStamp:k}}=J.useI18n(),D=de.useRouter(),{axiosInstance:B}=u.useAxios((C=d.config)==null?void 0:C.axiosRequestConfig),r=e.ref(1),v=e.computed(()=>d.config.app!=="kongManager"||!!d.config.disableSorting),_={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...d.config.showControlPlaneColumn?{control_plane:{label:s("gateway_services.list.table_headers.control_plane")}}:{},protocol:{label:s("gateway_services.list.table_headers.protocol"),searchable:!0,sortable:!0},host:{label:s("gateway_services.list.table_headers.host"),searchable:!0,sortable:!0},port:{label:s("gateway_services.list.table_headers.port"),searchable:!0,sortable:!0},path:{label:s("gateway_services.list.table_headers.path"),searchable:!0,sortable:!0},enabled:{label:s("gateway_services.list.table_headers.enabled"),searchable:!0,sortable:!0},tags:{label:s("gateway_services.list.table_headers.tags"),sortable:!1},updated_at:{label:s("gateway_services.list.table_headers.updated_at"),sortable:!0},created_at:{label:s("gateway_services.list.table_headers.created_at"),sortable:!0}},te={columnVisibility:{created_at:!1}},oe=_,S=e.computed(()=>{var f,l;let a=`${d.config.apiBaseUrl}${F.list[d.config.app].all}`;return d.config.app==="konnect"?a=a.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||""):d.config.app==="kongManager"&&(a=a.replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:"")),a}),le=e.computed(()=>d.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${S.value}`):new URL(S.value)),I=e.ref(""),b=e.computed(()=>{const a=d.config.app==="konnect"||d.config.isExactMatch;if(a)return{isExactMatch:a,placeholder:s(`search.placeholder.${d.config.app}`)};const{name:f,enabled:l,protocol:h,host:c,port:x,path:ee}=_;return{isExactMatch:a,fields:{name:f,enabled:l,protocol:h,host:c,port:x,path:ee},schema:d.config.filterSchema}}),{fetcher:A,fetcherState:$}=u.useFetcher(d.config,S.value),ie=()=>{I.value=""},t=()=>{r.value++},y=e.ref(null),G=e.ref(!1),re=e.computed(()=>({ctaPath:d.config.createRoute,ctaText:g.value?d.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${d.config.additionMessageForEmptyState?` ${d.config.additionMessageForEmptyState}`:""}`,title:g.value?d.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),R=e.ref(!1),V=e.ref(null),P=e.computed(()=>{const a={action:"disable",id:"",name:""};if(V.value){const{enabled:f,id:l,name:h}=V.value;a.action=f?"disable":"enable",a.id=l,a.name=h||l}return a}),X=a=>{R.value=!0,V.value=a},L=()=>{R.value=!1,V.value=null},Y=async()=>{var h,c;if(!await((h=d.canEdit)==null?void 0:h.call(d,V.value))||!V.value)return;const f=`${le.value.href}/${V.value.id}`,l=!V.value.enabled;try{const{data:x}=((c=d.config)==null?void 0:c.app)==="konnect"?await B.put(f,{...V.value,enabled:l}):await B.patch(f,{...V.value,enabled:l});p("toggle:success",x),V.value.enabled=l}catch(x){p("error",x)}},se=a=>{d.config.getControlPlaneRoute&&D.push(d.config.getControlPlaneRoute(a))},ae=(a,f)=>{const l=a.id;if(!f(l)){p("copy:error",{entity:a,field:"id",message:s("errors.copy")});return}p("copy:success",{entity:a,field:"id",message:s("copy.success",{val:l})})},ne=(a,f)=>{const l=JSON.stringify(a);if(!f(l)){p("copy:error",{entity:a,message:s("errors.copy")});return}p("copy:success",{entity:a,message:s("copy.success_brief")})},ce=async a=>{var l;await((l=d.canRetrieve)==null?void 0:l.call(d,a))&&D.push(d.config.getViewRoute(a.id))},q=a=>({label:s("actions.view"),to:d.config.getViewRoute(a)}),Z=a=>({label:s("actions.edit"),to:d.config.getEditRoute(a)}),N=e.ref(void 0),K=e.ref(!1),U=e.ref(!1),W=e.ref(""),M=u.useDeleteUrlBuilder(d.config,S.value),O=a=>{N.value=a,K.value=!0,W.value=""},j=()=>{K.value=!1,N.value=void 0},o=async()=>{var a,f,l;if((a=N.value)!=null&&a.id){U.value=!0;try{await B.delete(M(N.value.id)),p("delete:success",N.value),j(),r.value++}catch(h){W.value=((l=(f=h.response)==null?void 0:f.data)==null?void 0:l.message)||h.message||s("errors.delete"),p("error",h)}finally{U.value=!1}}},i=e.ref(!1);e.watch($,a=>{var f,l,h,c;if(Array.isArray((f=a==null?void 0:a.response)==null?void 0:f.data)&&(i.value=a.response.data.length>0),a.status===u.FetcherStatus.InitialLoad||a.status===u.FetcherStatus.NoRecords?G.value=!0:G.value=!1,a.status===u.FetcherStatus.Error){y.value={title:s("errors.general")},(c=(h=(l=a.error)==null?void 0:l.response)==null?void 0:h.data)!=null&&c.message&&(y.value.message=a.error.response.data.message),p("error",a.error);return}y.value=null});const g=e.ref(!1);return e.onBeforeMount(async()=>{g.value=await d.canCreate()}),(a,f)=>{const l=e.resolveComponent("KButton"),h=e.resolveComponent("KBadge"),c=e.resolveComponent("KInputSwitch"),x=e.resolveComponent("KDropdownItem"),ee=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(u.EntityBaseTable),{"cache-identifier":n.cacheIdentifier,"default-table-preferences":te,"disable-sorting":v.value,"empty-state-options":re.value,"enable-entity-actions":"","error-message":y.value,fetcher:e.unref(A),"fetcher-cache-key":r.value,"hide-toolbar":G.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:I.value,"table-headers":e.unref(oe),onClearSearchInput:ie,"onClick:row":f[2]||(f[2]=m=>ce(m)),onSort:t},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(u.EntityFilter),{modelValue:I.value,"onUpdate:modelValue":f[0]||(f[0]=m=>I.value=m),config:b.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!n.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:n.useActionOutside?"medium":"large",to:n.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(ue.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["size","to"]),[[e.vShow,i.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:m})=>[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)]),control_plane:e.withCtx(({row:m})=>{var E;return[(E=m.x_meta)!=null&&E.cluster_id?(e.openBlock(),e.createBlock(h,{key:0,tooltip:m.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(H=>se(m.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",be,"-"))]}),enabled:e.withCtx(({row:m})=>[e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canEdit(m),"force-show":""},{default:e.withCtx(({isAllowed:E})=>[e.createElementVNode("div",{onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(c,{modelValue:m.enabled,"onUpdate:modelValue":H=>m.enabled=H,"data-testid":`row-${m.id}-toggle-input`,disabled:!E,onClick:e.withModifiers(H=>X(m),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:m})=>[e.createVNode(e.unref(u.TableTags),{tags:m},null,8,["tags"])]),created_at:e.withCtx(({rowValue:m})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(m)),1)]),updated_at:e.withCtx(({row:m,rowValue:E})=>[e.createTextVNode(e.toDisplayString(e.unref(k)(E??m.created_at)),1)]),actions:e.withCtx(({row:m})=>[e.createVNode(ee,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-id",onClick:H=>ae(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(ee,null,{default:e.withCtx(({copyToClipboard:E})=>[e.createVNode(x,{"data-testid":"action-entity-copy-json",onClick:H=>ne(m,E)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canRetrieve(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-view","has-divider":"",item:q(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(x,{"data-testid":"action-entity-edit",item:Z(m.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(u.PermissionsWrapper),{"auth-function":()=>n.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(x,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:E=>O(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.delete.menu_label")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","hide-toolbar","query","table-headers"]),e.createVNode(e.unref(u.EntityToggleModal),{action:P.value.action,"entity-id":P.value.id,"entity-name":P.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":Y,visible:R.value,onCancel:L,onProceed:L},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(u.EntityDeleteModal),{"action-pending":U.value,description:e.unref(s)("actions.delete.description"),"entity-name":N.value&&(N.value.name||N.value.id),"entity-type":e.unref(u.EntityTypes).GatewayService,error:W.value,title:e.unref(s)("actions.delete.title"),visible:K.value,onCancel:j,onProceed:o},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),pe=(n,T)=>{const p=n.__vccOpts||n;for(const[d,s]of T)p[d]=s;return p},we=pe(he,[["__scopeId","data-v-d0611192"]]),ve={class:"kong-ui-entities-gateway-service-form"},Ve={key:0},Ce={class:"gateway-service-form-traffic-label"},ke={class:"gateway-service-form-margin-bottom"},Ne={key:0,class:"gateway-service-form-group-fields"},xe={key:1,class:"gateway-service-form-group-fields"},Ee={key:0},Se={class:"gateway-service-form-margin-top"},Te={class:"gateway-service-form-margin-bottom"},Ie={class:"gateway-service-form-margin-bottom"},Pe={class:"gateway-service-form-margin-bottom"},Be={class:"gateway-service-form-margin-bottom"},Ue={key:0,class:"gateway-service-form-margin-bottom"},Me={key:1,class:"gateway-service-form-margin-bottom"},De={key:2,class:"gateway-service-form-margin-bottom"},Re={key:0,class:"checkbox-aligned-radio"},Fe={key:1,class:"checkbox-aligned-radio"},Ae=pe(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(n,{expose:T,emit:p}){var j;const d=p,s=n,k=e.ref(!0),D=de.useRouter(),{i18nT:B,i18n:{t:r}}=J.useI18n(),{getMessageFromError:v}=u.useErrors(),{axiosInstance:_}=u.useAxios((j=s.config)==null?void 0:j.axiosRequestConfig),te=u.useValidators(),oe=e.computed(()=>F.form[s.config.app].edit),S=e.computed(()=>s.gatewayServiceId?u.EntityBaseFormType.Edit:u.EntityBaseFormType.Create),le=e.ref(!1),I=e.computed(()=>!!s.gatewayServiceId),b=e.ref(I.value?"protocol":"url"),A=J.usePortFromProtocol(),$=e.ref(""),ie=e.computed(()=>!!$.value),t=e.reactive({fields:{name:"",protocol:"http",host:"",path:"",port:80,url:"",retries:5,connect_timeout:6e4,write_timeout:6e4,read_timeout:6e4,client_certificate:"",ca_certificates:"",tls_verify_enabled:!1,tls_verify_value:!1,tags:""},isReadonly:!1,errorMessage:""}),y=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:""}),G=s.config.app==="konnect"||u.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),re=[{label:r("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:r("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:r("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:r("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:r("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...G?[{label:r("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:r("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:r("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],R={url:"url",protocol:"protocol"},V=(o,i)=>{i.value},P=o=>o?parseFloat(o):0,X=()=>{k.value=!0,t.errorMessage="",t.fields.host=y.host,t.fields.path=y.path,t.fields.port=y.port,t.fields.protocol=y.protocol,t.fields.url=y.url,t.fields.retries=y.retries,t.fields.connect_timeout=y.connect_timeout,t.fields.write_timeout=y.write_timeout,t.fields.read_timeout=y.read_timeout,t.fields.client_certificate=y.client_certificate,t.fields.ca_certificates=y.ca_certificates,t.fields.tls_verify_enabled=y.tls_verify_enabled,t.fields.tls_verify_value=y.tls_verify_value},L=()=>{if(t.fields.url&&b.value==="url")try{const o=new URL(t.fields.url);t.errorMessage="",t.fields.protocol=o.protocol.slice(0,-1),t.fields.host=o.hostname,t.fields.path=o.pathname;const i=Number(o.port);le.value=!!i,t.fields.port=i||A.getPortFromProtocol(t.fields.protocol),t.errorMessage="",d("url-valid:success")}catch(o){t.errorMessage=r("errors.urlErrorMessage"),d("url-valid:error",v(o))}else d("url-valid:success"),t.errorMessage=""},Y=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),se=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ae=e.computed(()=>{if(b.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ne=e.computed(()=>{if(b.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return b.value==="protocol"&&o}),ce=o=>{$.value=te.utf8Name(o)},q=e.computed(()=>I.value&&JSON.stringify(t.fields)!==JSON.stringify(y)||b.value==="url"&&!!t.fields.url||b.value==="protocol"&&!!t.fields.host),Z=o=>{var i,g,C;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((i=o==null?void 0:o.tags)==null?void 0:i.join(", "))||"",t.fields.protocol=(o==null?void 0:o.protocol)||"http",t.fields.path=(o==null?void 0:o.path)||"",t.fields.read_timeout=o!=null&&o.read_timeout||(o==null?void 0:o.read_timeout)===0?o==null?void 0:o.read_timeout:6e4,t.fields.retries=o!=null&&o.retries||(o==null?void 0:o.retries)===0?o==null?void 0:o.retries:5,t.fields.host=(o==null?void 0:o.host)||"",t.fields.connect_timeout=o!=null&&o.connect_timeout||(o==null?void 0:o.connect_timeout)===0?o==null?void 0:o.connect_timeout:6e4,t.fields.tls_verify_enabled=(o==null?void 0:o.tls_verify)!==""&&(o==null?void 0:o.tls_verify)!==null&&(o==null?void 0:o.tls_verify)!==void 0,t.fields.tls_verify_value=o!=null&&o.tls_verify?o==null?void 0:o.tls_verify:!1,t.fields.ca_certificates=((g=o==null?void 0:o.ca_certificates)==null?void 0:g.join(","))||"",t.fields.client_certificate=((C=o==null?void 0:o.client_certificate)==null?void 0:C.id)||"",t.fields.write_timeout=o!=null&&o.write_timeout||(o==null?void 0:o.write_timeout)===0?o==null?void 0:o.write_timeout:6e4,t.fields.port=o!=null&&o.port||(o==null?void 0:o.port)===0?o==null?void 0:o.port:80,Object.assign(y,t.fields)},N=()=>{D.push(s.config.cancelRoute)},K=e.computed(()=>{var i,g;let o=`${s.config.apiBaseUrl}${F.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(g=s.config)!=null&&g.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),U=e.computed(()=>{var i,g;let o=`${s.config.apiBaseUrl}${F.form[s.config.app][S.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((i=s.config)==null?void 0:i.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(g=s.config)!=null&&g.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),W=o=>{let i="";o.url&&(i=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(i))&&(o.tls_verify=o.tls_verify_enabled?o.tls_verify_value:null),delete o.tls_verify_enabled,delete o.tls_verify_value},M=e.computed(()=>{var i,g,C,a;const o={name:t.fields.name||null,tags:t.fields.tags?(C=(g=(i=t.fields.tags)==null?void 0:i.split(","))==null?void 0:g.map(f=>String(f||"").trim()))==null?void 0:C.filter(f=>f!==""):null,protocol:t.fields.protocol,path:t.fields.path||null,read_timeout:t.fields.read_timeout,retries:t.fields.retries,host:t.fields.host,connect_timeout:t.fields.connect_timeout,tls_verify_value:t.fields.tls_verify_value,tls_verify_enabled:t.fields.tls_verify_enabled,ca_certificates:t.fields.ca_certificates?(a=t.fields.ca_certificates)==null?void 0:a.split(",").filter(f=>f!==""):null,client_certificate:t.fields.client_certificate?{id:t.fields.client_certificate}:null,write_timeout:t.fields.write_timeout,port:t.fields.port,url:t.fields.url};return t.fields.client_certificate&&["https","wss","tls"].includes(t.fields.protocol)&&(o.client_certificate={id:t.fields.client_certificate}),t.fields.tls_verify_enabled&&["https","wss","tls"].includes(t.fields.protocol)&&(o.tls_verify=t.fields.tls_verify_value),Y.value||(o.path=null),S.value==="create"?b.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:S.value==="edit"&&delete o.url,o}),O=async()=>{var o,i,g,C;try{t.isReadonly=!0,L();const a=M.value;W(a);let f;if(await _.post(K.value,a),S.value==="create"?f=await _.post(U.value,a):S.value==="edit"&&(f=((o=s.config)==null?void 0:o.app)==="konnect"?await _.put(U.value,a):await _.patch(U.value,a)),f){const{data:l}=f;t.fields.name=(l==null?void 0:l.name)||"",t.fields.port=l.port||A.getPortFromProtocol(l.protocol),t.fields.protocol=(l==null?void 0:l.protocol)||"http",t.fields.host=(l==null?void 0:l.host)||"",t.fields.path=(l==null?void 0:l.path)||"",t.fields.url=(l==null?void 0:l.url)||"",t.fields.retries=l!=null&&l.retries||(l==null?void 0:l.retries)===0?l==null?void 0:l.retries:5,t.fields.connect_timeout=l!=null&&l.connect_timeout||(l==null?void 0:l.connect_timeout)===0?l==null?void 0:l.connect_timeout:6e4,t.fields.write_timeout=l!=null&&l.write_timeout||(l==null?void 0:l.write_timeout)===0?l==null?void 0:l.write_timeout:6e4,t.fields.read_timeout=l!=null&&l.read_timeout||(l==null?void 0:l.read_timeout)===0?l==null?void 0:l.read_timeout:6e4,t.fields.client_certificate=((i=l==null?void 0:l.client_certificate)==null?void 0:i.id)||"",t.fields.ca_certificates=(g=l==null?void 0:l.ca_certificates)!=null&&g.length?l==null?void 0:l.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(l==null?void 0:l.tls_verify)!==""&&(l==null?void 0:l.tls_verify)!==null&&(l==null?void 0:l.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(l==null?void 0:l.tls_verify),t.fields.tags=(C=l==null?void 0:l.tags)!=null&&C.length?l.tags.join(", "):"",Object.assign(y,t.fields),d("update",f==null?void 0:f.data)}return f}catch(a){t.errorMessage=v(a),d("error",a)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,y)}),e.watch(t.fields,o=>{t.fields.port=A.getPortFromProtocol(o.protocol,String(o.port)),d("model-updated",M.value)}),e.onMounted(()=>{d("model-updated",M.value)}),T({validateUrl:L,getPayload:M,saveFormData:O,canSubmit:q,initForm:Z}),(o,i)=>{const g=e.resolveComponent("KInput"),C=e.resolveComponent("KLabel"),a=e.resolveComponent("KRadio"),f=e.resolveComponent("KSelect"),l=e.resolveComponent("KCheckbox"),h=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(e.unref(u.EntityBaseForm),{"can-submit":q.value,config:n.config,"edit-id":n.gatewayServiceId,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:N,"onFetch:error":i[25]||(i[25]=c=>o.$emit("error",c)),"onFetch:success":Z,onLoading:i[26]||(i[26]=c=>o.$emit("loading",c)),onSubmit:O},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:q.value,cancel:N,submit:O},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.general.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(g,{modelValue:t.fields.name,"onUpdate:modelValue":i[0]||(i[0]=c=>t.fields.name=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:ie.value,"error-message":$.value,label:e.unref(r)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.name.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"name",placeholder:e.unref(r)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:ce},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(g,{modelValue:t.fields.tags,"onUpdate:modelValue":i[1]||(i[1]=c=>t.fields.tags=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(r)("gateway_services.form.fields.tags.help"),label:e.unref(r)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(r)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(u.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.keys.description"),"hide-info-header":n.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[I.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",Ve,[e.createElementVNode("div",Ce,[e.createVNode(C,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",ke,[e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[2]||(i[2]=c=>b.value=c),"data-testid":"gateway-service-url-radio","selected-value":R.url,onChange:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),b.value==="url"?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(g,{modelValue:t.fields.url,"onUpdate:modelValue":i[3]||(i[3]=c=>t.fields.url=c),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(r)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:n.config.app==="konnect"?e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(r)("gateway_services.form.fields.upstream_url.tooltip_for_km"),tooltipAttributes:{maxWidth:"400"}},name:"url",placeholder:e.unref(r)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(a,{modelValue:b.value,"onUpdate:modelValue":i[4]||(i[4]=c=>b.value=c),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":R.protocol,onChange:X},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),b.value==="protocol"||I.value?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(f,{modelValue:t.fields.protocol,"onUpdate:modelValue":i[5]||(i[5]=c=>t.fields.protocol=c),"data-testid":"gateway-service-protocol-select",items:re,label:e.unref(r)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.protocol.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:t.isReadonly,required:"",width:"100%",onSelected:i[6]||(i[6]=c=>V(t.fields.protocol,c))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(g,{modelValue:t.fields.host,"onUpdate:modelValue":i[7]||(i[7]=c=>t.fields.host=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(r)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.host.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"host",placeholder:e.unref(r)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),Y.value?(e.openBlock(),e.createElementBlock("div",Ee,[e.createVNode(g,{modelValue:t.fields.path,"onUpdate:modelValue":i[8]||(i[8]=c=>t.fields.path=c),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(r)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.path.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"path",placeholder:e.unref(r)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(g,{modelValue:t.fields.port,"onUpdate:modelValue":[i[9]||(i[9]=c=>t.fields.port=c),i[10]||(i[10]=()=>{t.fields.port=P(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(r)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.port.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(h,{modelValue:k.value,"onUpdate:modelValue":i[24]||(i[24]=c=>k.value=c),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(r)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createElementVNode("div",Te,[e.createVNode(g,{modelValue:t.fields.retries,"onUpdate:modelValue":[i[11]||(i[11]=c=>t.fields.retries=c),i[12]||(i[12]=()=>{t.fields.retries=P(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(r)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.retries.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ie,[e.createVNode(g,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[i[13]||(i[13]=c=>t.fields.connect_timeout=c),i[14]||(i[14]=()=>{t.fields.connect_timeout=P(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(r)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.connect_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Pe,[e.createVNode(g,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[i[15]||(i[15]=c=>t.fields.write_timeout=c),i[16]||(i[16]=()=>{t.fields.write_timeout=P(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(r)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.write_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Be,[e.createVNode(g,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[i[17]||(i[17]=c=>t.fields.read_timeout=c),i[18]||(i[18]=()=>{t.fields.read_timeout=P(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(r)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.read_timeout.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),se.value?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(g,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":i[19]||(i[19]=c=>t.fields.client_certificate=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(r)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.client_certificate.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"clientCert",placeholder:e.unref(r)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ae.value?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(g,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":i[20]||(i[20]=c=>t.fields.ca_certificates=c),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(r)("gateway_services.form.fields.ca_certificates.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(r)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),ne.value?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(l,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":i[21]||(i[21]=c=>t.fields.tls_verify_enabled=c),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(r)("gateway_services.form.fields.tls_verify_enabled.label"),"label-attributes":{tooltipAttributes:{maxWidth:"400"}}},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(B),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(r)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[22]||(i[22]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(a,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":i[23]||(i[23]=c=>t.fields.tls_verify_value=c),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(r)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-35e0db56"]]),$e={class:"kong-ui-gateway-service-entity-config-card"},Ge=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:n=>!(!n||!["konnect","kongManager"].includes(n==null?void 0:n.app)||n.app==="konnect"&&!n.controlPlaneId||n.app==="kongManager"&&typeof n.workspace!="string"||!n.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(n){const T=n,{i18n:{t:p},i18nT:d}=J.useI18n(),s=e.computed(()=>F.form[T.config.app].edit),{getPropValue:k}=u.useHelpers(),D=(r,v)=>k(r,v)===!0?p("gateway_services.form.fields.tls_verify_option.true.display"):p("gateway_services.form.fields.tls_verify_option.false.display"),B=e.ref({id:{},name:{tooltip:p("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.protocol.tooltip")},host:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.host.tooltip")},path:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.path.tooltip")},port:{section:u.ConfigurationSchemaSection.Basic,tooltip:p("gateway_services.form.fields.port.tooltip")},tags:{tooltip:p("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:p("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:p("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:p("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:p("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:p("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:u.ConfigurationSchemaType.BadgeTag,label:p("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:p("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(r,v)=>(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(u.EntityBaseConfigCard),{config:n.config,"config-card-doc":n.configCardDoc,"config-schema":B.value,"entity-type":e.unref(u.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":n.hideTitle,"onFetch:error":v[0]||(v[0]=_=>r.$emit("fetch:error",_)),"onFetch:success":v[1]||(v[1]=_=>r.$emit("fetch:success",_)),onLoading:v[2]||(v[2]=_=>r.$emit("loading",_))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(d),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(p)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(typeof e.unref(k)("rowValue",_)=="boolean"?D("rowValue",_):e.unref(p)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(_=>[e.createTextVNode(e.toDisplayString(e.unref(k)("rowValue",_)?e.unref(k)("rowValue",_).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}});w.GatewayServiceConfigCard=Ge,w.GatewayServiceForm=Ae,w.GatewayServiceList=we,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-2fde1e51]{align-items:center;border-bottom:var(--445df5cd);display:var(--36146f00);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-2fde1e51]{width:var(--41377040)}.config-card-details-row .config-card-details-label label[data-v-2fde1e51]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-2fde1e51]{width:var(--4132e48a)}.config-card-details-row .config-card-details-value .truncated[data-v-2fde1e51]{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-2fde1e51]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-2fde1e51] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-2fde1e51]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-2fde1e51]{margin-right:4px}.config-card-details-row[data-v-2fde1e51] .k-label{margin-bottom:0}.config-card-details-row[data-v-2fde1e51] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-2fde1e51] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-gateway-services-list[data-v-48f9a998]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-48f9a998]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-35e0db56]{width:100%}.kong-ui-entities-gateway-service-form[data-v-35e0db56] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-35e0db56]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-35e0db56]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-35e0db56]{margin:4px;padding-left:24px}
|
|
1
|
+
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-2fde1e51]{align-items:center;border-bottom:var(--445df5cd);display:var(--36146f00);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-2fde1e51]{width:var(--41377040)}.config-card-details-row .config-card-details-label label[data-v-2fde1e51]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-2fde1e51]{width:var(--4132e48a)}.config-card-details-row .config-card-details-value .truncated[data-v-2fde1e51]{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-2fde1e51]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-2fde1e51] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-2fde1e51]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-2fde1e51]{margin-right:4px}.config-card-details-row[data-v-2fde1e51] .k-label{margin-bottom:0}.config-card-details-row[data-v-2fde1e51] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-2fde1e51] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-7ef5c755]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-7ef5c755]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-7ef5c755]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-7ef5c755] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-7ef5c755]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-6210a67a]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-6210a67a]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-6210a67a] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-6210a67a] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-6210a67a] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-765e475b]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-765e475b]{margin-left:auto}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-gateway-services-list[data-v-d0611192]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-d0611192]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-35e0db56]{width:100%}.kong-ui-entities-gateway-service-form[data-v-35e0db56] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-35e0db56]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-35e0db56] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-35e0db56]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-35e0db56]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-35e0db56]{margin:4px;padding-left:24px}
|
package/package.json
CHANGED