@kong-ui-public/entities-gateway-services 3.7.0 → 3.7.1
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 ke, ref as S, computed as h, watch as we, onBeforeMount as Ee, resolveComponent as E, openBlock as w, createElementBlock as I, createVNode as d, unref as o, withCtx as f, createBlock as ce, Teleport as Me, withDirectives as Re, createTextVNode as R, toDisplayString as b, vShow as
|
|
1
|
+
import { defineComponent as ke, ref as S, computed as h, watch as we, onBeforeMount as Ee, resolveComponent as E, openBlock as w, createElementBlock as I, createVNode as d, unref as o, withCtx as f, createBlock as ce, Teleport as Me, withDirectives as Re, createTextVNode as R, toDisplayString as b, vShow as xe, createElementVNode as V, withModifiers as de, Fragment as Fe, renderList as Ae, reactive as Ce, onMounted as $e, renderSlot as Be, createCommentVNode as B } from "vue";
|
|
2
2
|
import { useRouter as Ie } from "vue-router";
|
|
3
|
-
import { AddIcon as
|
|
3
|
+
import { AddIcon as De } from "@kong/icons";
|
|
4
4
|
import { createI18n as Ge, i18nTComponent as Le } from "@kong-ui-public/i18n";
|
|
5
|
-
import { useAxios as Te, useFetcher as Ke, useDeleteUrlBuilder as qe, FetcherStatus as Ne, EntityBaseTable as
|
|
5
|
+
import { useAxios as Te, useFetcher as Ke, useDeleteUrlBuilder as qe, FetcherStatus as Ne, EntityBaseTable as We, EntityFilter as Oe, PermissionsWrapper as te, EntityToggleModal as je, EntityDeleteModal as He, EntityTypes as Je, useErrors as ze, useValidators as Qe, EntityBaseFormType as Ve, useGatewayFeatureSupported as Xe, EntityBaseForm as Ye, SupportedEntityType as Pe, EntityFormSection as Se, useHelpers as Ze, ConfigurationSchemaSection as ue, ConfigurationSchemaType as et, EntityBaseConfigCard as tt } from "@kong-ui-public/entities-shared";
|
|
6
6
|
const lt = {
|
|
7
7
|
create: "New Gateway Service",
|
|
8
8
|
serverless_create: "Add a Service",
|
|
@@ -190,11 +190,11 @@ function ct() {
|
|
|
190
190
|
}
|
|
191
191
|
function dt() {
|
|
192
192
|
return {
|
|
193
|
-
getPortFromProtocol: (
|
|
193
|
+
getPortFromProtocol: (A, p) => {
|
|
194
194
|
const c = [80, 443], r = Number(p);
|
|
195
195
|
if ((r || r === 0) && !c.includes(r))
|
|
196
196
|
return r;
|
|
197
|
-
switch (
|
|
197
|
+
switch (A) {
|
|
198
198
|
case "grpcs":
|
|
199
199
|
case "tls":
|
|
200
200
|
case "https":
|
|
@@ -284,9 +284,9 @@ const me = {
|
|
|
284
284
|
}
|
|
285
285
|
},
|
|
286
286
|
emits: ["error", "copy:success", "copy:error", "delete:success", "toggle:success"],
|
|
287
|
-
setup(a, { emit:
|
|
287
|
+
setup(a, { emit: A }) {
|
|
288
288
|
var t;
|
|
289
|
-
const p =
|
|
289
|
+
const p = A, c = a, { i18n: { t: r } } = me.useI18n(), M = Ie(), { axiosInstance: G } = Te((t = c.config) == null ? void 0 : t.axiosRequestConfig), D = S(1), s = h(() => c.config.app !== "kongManager" || !!c.config.disableSorting), T = {
|
|
290
290
|
// the Name column is non-hidable
|
|
291
291
|
name: { label: r("gateway_services.list.table_headers.name"), searchable: !0, sortable: !0, hidable: !1 },
|
|
292
292
|
...c.config.showControlPlaneColumn ? { control_plane: { label: r("gateway_services.list.table_headers.control_plane") } } : {},
|
|
@@ -300,24 +300,24 @@ const me = {
|
|
|
300
300
|
var n, m;
|
|
301
301
|
let l = `${c.config.apiBaseUrl}${le.list[c.config.app].all}`;
|
|
302
302
|
return c.config.app === "konnect" ? l = l.replace(/{controlPlaneId}/gi, ((n = c.config) == null ? void 0 : n.controlPlaneId) || "") : c.config.app === "kongManager" && (l = l.replace(/\/{workspace}/gi, (m = c.config) != null && m.workspace ? `/${c.config.workspace}` : "")), l;
|
|
303
|
-
}), ve = h(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${N.value}`) : new URL(N.value)),
|
|
303
|
+
}), ve = h(() => c.config.apiBaseUrl.startsWith("/") ? new URL(`${window.location.origin}${N.value}`) : new URL(N.value)), x = S(""), ge = h(() => {
|
|
304
304
|
const l = c.config.app === "konnect" || c.config.isExactMatch;
|
|
305
305
|
if (l)
|
|
306
306
|
return {
|
|
307
307
|
isExactMatch: l,
|
|
308
308
|
placeholder: r(`search.placeholder.${c.config.app}`)
|
|
309
309
|
};
|
|
310
|
-
const { name: n, enabled: m, protocol: v, host: y, port: i, path:
|
|
310
|
+
const { name: n, enabled: m, protocol: v, host: y, port: i, path: $ } = T;
|
|
311
311
|
return {
|
|
312
312
|
isExactMatch: l,
|
|
313
|
-
fields: { name: n, enabled: m, protocol: v, host: y, port: i, path:
|
|
313
|
+
fields: { name: n, enabled: m, protocol: v, host: y, port: i, path: $ },
|
|
314
314
|
schema: c.config.filterSchema
|
|
315
315
|
};
|
|
316
|
-
}), { fetcher:
|
|
317
|
-
|
|
316
|
+
}), { fetcher: W, fetcherState: C } = Ke(c.config, N.value), Q = () => {
|
|
317
|
+
x.value = "";
|
|
318
318
|
}, X = () => {
|
|
319
|
-
|
|
320
|
-
},
|
|
319
|
+
D.value++;
|
|
320
|
+
}, O = S(null), e = h(() => ({
|
|
321
321
|
ctaPath: c.config.createRoute,
|
|
322
322
|
ctaText: z.value ? c.isServerless ? r("actions.serverless_create") : r("actions.create") : void 0,
|
|
323
323
|
message: `${r("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
|
|
@@ -388,51 +388,51 @@ const me = {
|
|
|
388
388
|
}), be = (l) => ({
|
|
389
389
|
label: r("actions.edit"),
|
|
390
390
|
to: c.config.getEditRoute(l)
|
|
391
|
-
}),
|
|
392
|
-
|
|
391
|
+
}), F = S(void 0), K = S(!1), j = S(!1), H = S(""), he = qe(c.config, N.value), Z = (l) => {
|
|
392
|
+
F.value = l, K.value = !0, H.value = "";
|
|
393
393
|
}, ne = () => {
|
|
394
|
-
K.value = !1,
|
|
394
|
+
K.value = !1, F.value = void 0;
|
|
395
395
|
}, q = async () => {
|
|
396
396
|
var l, n, m;
|
|
397
|
-
if ((l =
|
|
398
|
-
|
|
397
|
+
if ((l = F.value) != null && l.id) {
|
|
398
|
+
j.value = !0;
|
|
399
399
|
try {
|
|
400
|
-
await G.delete(he(
|
|
400
|
+
await G.delete(he(F.value.id)), p("delete:success", F.value), ne(), D.value++;
|
|
401
401
|
} catch (v) {
|
|
402
402
|
H.value = ((m = (n = v.response) == null ? void 0 : n.data) == null ? void 0 : m.message) || v.message || r("errors.delete"), p("error", v);
|
|
403
403
|
} finally {
|
|
404
|
-
|
|
404
|
+
j.value = !1;
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
}, J = S(!1);
|
|
408
408
|
we(C, (l) => {
|
|
409
409
|
var n, m, v, y;
|
|
410
410
|
if (Array.isArray((n = l == null ? void 0 : l.response) == null ? void 0 : n.data) && (J.value = l.response.data.length > 0), l.status === Ne.Error) {
|
|
411
|
-
|
|
411
|
+
O.value = {
|
|
412
412
|
title: r("errors.general")
|
|
413
|
-
}, (y = (v = (m = l.error) == null ? void 0 : m.response) == null ? void 0 : v.data) != null && y.message && (
|
|
413
|
+
}, (y = (v = (m = l.error) == null ? void 0 : m.response) == null ? void 0 : v.data) != null && y.message && (O.value.message = l.error.response.data.message), p("error", l.error);
|
|
414
414
|
return;
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
O.value = null;
|
|
417
417
|
});
|
|
418
418
|
const z = S(!1);
|
|
419
419
|
return Ee(async () => {
|
|
420
420
|
z.value = await c.canCreate();
|
|
421
421
|
}), (l, n) => {
|
|
422
|
-
const m = E("KButton"), v = E("KBadge"), y = E("KInputSwitch"), i = E("KTruncate"),
|
|
422
|
+
const m = E("KButton"), v = E("KBadge"), y = E("KInputSwitch"), i = E("KTruncate"), $ = E("KDropdownItem"), u = E("KClipboardProvider");
|
|
423
423
|
return w(), I("div", ut, [
|
|
424
|
-
d(o(
|
|
424
|
+
d(o(We), {
|
|
425
425
|
"cache-identifier": a.cacheIdentifier,
|
|
426
426
|
"disable-pagination-page-jump": "",
|
|
427
427
|
"disable-sorting": s.value,
|
|
428
428
|
"empty-state-options": e.value,
|
|
429
429
|
"enable-entity-actions": "",
|
|
430
|
-
"error-message":
|
|
431
|
-
fetcher: o(
|
|
432
|
-
"fetcher-cache-key":
|
|
430
|
+
"error-message": O.value,
|
|
431
|
+
fetcher: o(W),
|
|
432
|
+
"fetcher-cache-key": D.value,
|
|
433
433
|
"pagination-type": "offset",
|
|
434
434
|
"preferences-storage-key": "kong-ui-entities-gateway-services-list",
|
|
435
|
-
query:
|
|
435
|
+
query: x.value,
|
|
436
436
|
"table-headers": o(k),
|
|
437
437
|
"use-action-outside": a.useActionOutside,
|
|
438
438
|
onClearSearchInput: Q,
|
|
@@ -440,9 +440,9 @@ const me = {
|
|
|
440
440
|
onSort: X
|
|
441
441
|
}, {
|
|
442
442
|
"toolbar-filter": f(() => [
|
|
443
|
-
d(o(
|
|
444
|
-
modelValue:
|
|
445
|
-
"onUpdate:modelValue": n[0] || (n[0] = (g) =>
|
|
443
|
+
d(o(Oe), {
|
|
444
|
+
modelValue: x.value,
|
|
445
|
+
"onUpdate:modelValue": n[0] || (n[0] = (g) => x.value = g),
|
|
446
446
|
config: ge.value
|
|
447
447
|
}, null, 8, ["modelValue", "config"])
|
|
448
448
|
]),
|
|
@@ -462,12 +462,12 @@ const me = {
|
|
|
462
462
|
to: a.config.createRoute
|
|
463
463
|
}, {
|
|
464
464
|
default: f(() => [
|
|
465
|
-
d(o(
|
|
465
|
+
d(o(De)),
|
|
466
466
|
R(" " + b(o(r)("gateway_services.list.toolbar_actions.new_gateway_service")), 1)
|
|
467
467
|
]),
|
|
468
468
|
_: 1
|
|
469
469
|
}, 8, ["to"]), [
|
|
470
|
-
[
|
|
470
|
+
[xe, J.value]
|
|
471
471
|
])
|
|
472
472
|
]),
|
|
473
473
|
_: 1
|
|
@@ -518,7 +518,7 @@ const me = {
|
|
|
518
518
|
tags: f(({ rowValue: g }) => [
|
|
519
519
|
(g == null ? void 0 : g.length) > 0 ? (w(), ce(i, { key: 0 }, {
|
|
520
520
|
default: f(() => [
|
|
521
|
-
(w(!0), I(
|
|
521
|
+
(w(!0), I(Fe, null, Ae(g, (U) => (w(), ce(v, {
|
|
522
522
|
key: U,
|
|
523
523
|
onClick: n[2] || (n[2] = de(() => {
|
|
524
524
|
}, ["stop"]))
|
|
@@ -535,7 +535,7 @@ const me = {
|
|
|
535
535
|
actions: f(({ row: g }) => [
|
|
536
536
|
d(u, null, {
|
|
537
537
|
default: f(({ copyToClipboard: U }) => [
|
|
538
|
-
d(
|
|
538
|
+
d($, {
|
|
539
539
|
"data-testid": "action-entity-copy-id",
|
|
540
540
|
onClick: (ee) => re(g, U)
|
|
541
541
|
}, {
|
|
@@ -549,7 +549,7 @@ const me = {
|
|
|
549
549
|
}, 1024),
|
|
550
550
|
d(u, null, {
|
|
551
551
|
default: f(({ copyToClipboard: U }) => [
|
|
552
|
-
d(
|
|
552
|
+
d($, {
|
|
553
553
|
"data-testid": "action-entity-copy-json",
|
|
554
554
|
onClick: (ee) => ae(g, U)
|
|
555
555
|
}, {
|
|
@@ -565,7 +565,7 @@ const me = {
|
|
|
565
565
|
"auth-function": () => a.canRetrieve(g)
|
|
566
566
|
}, {
|
|
567
567
|
default: f(() => [
|
|
568
|
-
d(
|
|
568
|
+
d($, {
|
|
569
569
|
"data-testid": "action-entity-view",
|
|
570
570
|
"has-divider": "",
|
|
571
571
|
item: _e(g.id)
|
|
@@ -577,7 +577,7 @@ const me = {
|
|
|
577
577
|
"auth-function": () => a.canEdit(g)
|
|
578
578
|
}, {
|
|
579
579
|
default: f(() => [
|
|
580
|
-
d(
|
|
580
|
+
d($, {
|
|
581
581
|
"data-testid": "action-entity-edit",
|
|
582
582
|
item: be(g.id)
|
|
583
583
|
}, null, 8, ["item"])
|
|
@@ -588,7 +588,7 @@ const me = {
|
|
|
588
588
|
"auth-function": () => a.canDelete(g)
|
|
589
589
|
}, {
|
|
590
590
|
default: f(() => [
|
|
591
|
-
d(
|
|
591
|
+
d($, {
|
|
592
592
|
danger: "",
|
|
593
593
|
"data-testid": "action-entity-delete",
|
|
594
594
|
"has-divider": "",
|
|
@@ -605,7 +605,7 @@ const me = {
|
|
|
605
605
|
]),
|
|
606
606
|
_: 1
|
|
607
607
|
}, 8, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "use-action-outside"]),
|
|
608
|
-
d(o(
|
|
608
|
+
d(o(je), {
|
|
609
609
|
action: Y.value.action,
|
|
610
610
|
"entity-id": Y.value.id,
|
|
611
611
|
"entity-name": Y.value.name,
|
|
@@ -616,9 +616,9 @@ const me = {
|
|
|
616
616
|
onProceed: ie
|
|
617
617
|
}, null, 8, ["action", "entity-id", "entity-name", "entity-type", "visible"]),
|
|
618
618
|
d(o(He), {
|
|
619
|
-
"action-pending":
|
|
619
|
+
"action-pending": j.value,
|
|
620
620
|
description: o(r)("actions.delete.description"),
|
|
621
|
-
"entity-name":
|
|
621
|
+
"entity-name": F.value && (F.value.name || F.value.id),
|
|
622
622
|
"entity-type": o(Je).GatewayService,
|
|
623
623
|
error: H.value,
|
|
624
624
|
title: o(r)("actions.delete.title"),
|
|
@@ -629,9 +629,9 @@ const me = {
|
|
|
629
629
|
]);
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
|
-
}), Ue = (a,
|
|
632
|
+
}), Ue = (a, A) => {
|
|
633
633
|
const p = a.__vccOpts || a;
|
|
634
|
-
for (const [c, r] of
|
|
634
|
+
for (const [c, r] of A)
|
|
635
635
|
p[c] = r;
|
|
636
636
|
return p;
|
|
637
637
|
}, Gt = /* @__PURE__ */ Ue(mt, [["__scopeId", "data-v-a3f3e09a"]]), 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 = {
|
|
@@ -686,9 +686,9 @@ const me = {
|
|
|
686
686
|
}
|
|
687
687
|
},
|
|
688
688
|
emits: ["update", "error", "url-valid:success", "url-valid:error", "loading", "model-updated"],
|
|
689
|
-
setup(a, { expose:
|
|
689
|
+
setup(a, { expose: A, emit: p }) {
|
|
690
690
|
var z;
|
|
691
|
-
const c = p, r = a, M = S(!0), G = Ie(), { i18nT:
|
|
691
|
+
const c = p, r = a, M = S(!0), G = Ie(), { i18nT: D, i18n: { t: s } } = me.useI18n(), { getMessageFromError: T } = ze(), { axiosInstance: k } = Te((z = r.config) == null ? void 0 : z.axiosRequestConfig), N = Qe(), ve = h(() => le.form[r.config.app].edit), x = h(() => r.gatewayServiceId ? Ve.Edit : Ve.Create), ge = S(!1), W = h(() => !!r.gatewayServiceId), C = S(W.value ? "protocol" : "url"), Q = me.usePortFromProtocol(), X = S(""), O = h(() => !!X.value), e = Ce({
|
|
692
692
|
fields: {
|
|
693
693
|
name: "",
|
|
694
694
|
protocol: "http",
|
|
@@ -814,9 +814,9 @@ const me = {
|
|
|
814
814
|
return !0;
|
|
815
815
|
const t = ["https", "wss", "tls"].includes(e.fields.protocol);
|
|
816
816
|
return C.value === "protocol" && t;
|
|
817
|
-
}),
|
|
817
|
+
}), F = (t) => {
|
|
818
818
|
X.value = N.utf8Name(t);
|
|
819
|
-
}, K = h(() =>
|
|
819
|
+
}, K = h(() => W.value && JSON.stringify(e.fields) !== JSON.stringify(_) || C.value === "url" && !!e.fields.url || C.value === "protocol" && !!e.fields.host), j = (t) => {
|
|
820
820
|
var l, n, m;
|
|
821
821
|
e.fields.name = (t == null ? void 0 : t.name) || "", e.fields.tags = ((l = t == null ? void 0 : t.tags) == null ? void 0 : l.join(", ")) || "", e.fields.protocol = (t == null ? void 0 : t.protocol) || "http", e.fields.path = (t == null ? void 0 : t.path) || "", e.fields.read_timeout = t != null && t.read_timeout || (t == null ? void 0 : t.read_timeout) === 0 ? t == null ? void 0 : t.read_timeout : 6e4, e.fields.retries = t != null && t.retries || (t == null ? void 0 : t.retries) === 0 ? t == null ? void 0 : t.retries : 5, e.fields.host = (t == null ? void 0 : t.host) || "", e.fields.connect_timeout = t != null && t.connect_timeout || (t == null ? void 0 : t.connect_timeout) === 0 ? t == null ? void 0 : t.connect_timeout : 6e4, e.fields.tls_verify_enabled = (t == null ? void 0 : t.tls_verify) !== "" && (t == null ? void 0 : t.tls_verify) !== null && (t == null ? void 0 : t.tls_verify) !== void 0, e.fields.tls_verify_value = t != null && t.tls_verify ? t == null ? void 0 : t.tls_verify : !1, e.fields.ca_certificates = ((n = t == null ? void 0 : t.ca_certificates) == null ? void 0 : n.join(",")) || "", e.fields.client_certificate = ((m = t == null ? void 0 : t.client_certificate) == null ? void 0 : m.id) || "", e.fields.write_timeout = t != null && t.write_timeout || (t == null ? void 0 : t.write_timeout) === 0 ? t == null ? void 0 : t.write_timeout : 6e4, e.fields.port = t != null && t.port || (t == null ? void 0 : t.port) === 0 ? t == null ? void 0 : t.port : 80, Object.assign(_, e.fields);
|
|
822
822
|
}, H = () => {
|
|
@@ -827,7 +827,7 @@ const me = {
|
|
|
827
827
|
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((l = r.config) == null ? void 0 : l.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (n = r.config) != null && n.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
828
828
|
}), Z = h(() => {
|
|
829
829
|
var l, n;
|
|
830
|
-
let t = `${r.config.apiBaseUrl}${le.form[r.config.app][
|
|
830
|
+
let t = `${r.config.apiBaseUrl}${le.form[r.config.app][x.value]}`;
|
|
831
831
|
return r.config.app === "konnect" ? t = t.replace(/{controlPlaneId}/gi, ((l = r.config) == null ? void 0 : l.controlPlaneId) || "") : r.config.app === "kongManager" && (t = t.replace(/\/{workspace}/gi, (n = r.config) != null && n.workspace ? `/${r.config.workspace}` : "")), t = t.replace(/{id}/gi, r.gatewayServiceId), t;
|
|
832
832
|
}), ne = (t) => {
|
|
833
833
|
let l = "";
|
|
@@ -851,7 +851,7 @@ const me = {
|
|
|
851
851
|
port: e.fields.port,
|
|
852
852
|
url: e.fields.url
|
|
853
853
|
};
|
|
854
|
-
return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), ae.value || (t.path = null),
|
|
854
|
+
return e.fields.client_certificate && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.client_certificate = { id: e.fields.client_certificate }), e.fields.tls_verify_enabled && ["https", "wss", "tls"].includes(e.fields.protocol) && (t.tls_verify = e.fields.tls_verify_value), ae.value || (t.path = null), x.value === "create" ? C.value === "url" ? (delete t.protocol, delete t.host, delete t.path, r.config.app === "konnect" && delete t.port) : delete t.url : x.value === "edit" && delete t.url, t;
|
|
855
855
|
}), J = async () => {
|
|
856
856
|
var t, l, n, m;
|
|
857
857
|
try {
|
|
@@ -859,7 +859,7 @@ const me = {
|
|
|
859
859
|
const v = q.value;
|
|
860
860
|
ne(v);
|
|
861
861
|
let y;
|
|
862
|
-
if (await k.post(he.value, v),
|
|
862
|
+
if (await k.post(he.value, v), x.value === "create" ? y = await k.post(Z.value, v) : x.value === "edit" && (y = ((t = r.config) == null ? void 0 : t.app) === "konnect" ? await k.put(Z.value, v) : await k.patch(Z.value, v)), y) {
|
|
863
863
|
const { data: i } = y;
|
|
864
864
|
e.fields.name = (i == null ? void 0 : i.name) || "", e.fields.port = i.port || Q.getPortFromProtocol(i.protocol), e.fields.protocol = (i == null ? void 0 : i.protocol) || "http", e.fields.host = (i == null ? void 0 : i.host) || "", e.fields.path = (i == null ? void 0 : i.path) || "", e.fields.url = (i == null ? void 0 : i.url) || "", e.fields.retries = i != null && i.retries || (i == null ? void 0 : i.retries) === 0 ? i == null ? void 0 : i.retries : 5, e.fields.connect_timeout = i != null && i.connect_timeout || (i == null ? void 0 : i.connect_timeout) === 0 ? i == null ? void 0 : i.connect_timeout : 6e4, e.fields.write_timeout = i != null && i.write_timeout || (i == null ? void 0 : i.write_timeout) === 0 ? i == null ? void 0 : i.write_timeout : 6e4, e.fields.read_timeout = i != null && i.read_timeout || (i == null ? void 0 : i.read_timeout) === 0 ? i == null ? void 0 : i.read_timeout : 6e4, e.fields.client_certificate = ((l = i == null ? void 0 : i.client_certificate) == null ? void 0 : l.id) || "", e.fields.ca_certificates = (n = i == null ? void 0 : i.ca_certificates) != null && n.length ? i == null ? void 0 : i.ca_certificates.join(",") : "", e.fields.tls_verify_enabled = (i == null ? void 0 : i.tls_verify) !== "" && (i == null ? void 0 : i.tls_verify) !== null && (i == null ? void 0 : i.tls_verify) !== void 0, e.fields.tls_verify_value = e.fields.tls_verify_enabled && (i == null ? void 0 : i.tls_verify), e.fields.tags = (m = i == null ? void 0 : i.tags) != null && m.length ? i.tags.join(", ") : "", Object.assign(_, e.fields), c("update", y == null ? void 0 : y.data);
|
|
865
865
|
}
|
|
@@ -874,16 +874,16 @@ const me = {
|
|
|
874
874
|
Object.assign(e.fields, _);
|
|
875
875
|
}), we(e.fields, (t) => {
|
|
876
876
|
e.fields.port = Q.getPortFromProtocol(t.protocol, String(t.port)), c("model-updated", q.value);
|
|
877
|
-
}),
|
|
877
|
+
}), $e(() => {
|
|
878
878
|
c("model-updated", q.value);
|
|
879
|
-
}),
|
|
879
|
+
}), A({
|
|
880
880
|
validateUrl: re,
|
|
881
881
|
getPayload: q,
|
|
882
882
|
saveFormData: J,
|
|
883
883
|
canSubmit: K,
|
|
884
|
-
initForm:
|
|
884
|
+
initForm: j
|
|
885
885
|
}), (t, l) => {
|
|
886
|
-
const n = E("KInput"), m = E("KLabel"), v = E("KRadio"), y = E("KSelect"), i = E("KCheckbox"),
|
|
886
|
+
const n = E("KInput"), m = E("KLabel"), v = E("KRadio"), y = E("KSelect"), i = E("KCheckbox"), $ = E("KCollapse");
|
|
887
887
|
return w(), I("div", vt, [
|
|
888
888
|
d(o(Ye), {
|
|
889
889
|
"can-submit": K.value,
|
|
@@ -897,12 +897,12 @@ const me = {
|
|
|
897
897
|
"is-readonly": e.isReadonly,
|
|
898
898
|
onCancel: H,
|
|
899
899
|
"onFetch:error": l[25] || (l[25] = (u) => t.$emit("error", u)),
|
|
900
|
-
"onFetch:success":
|
|
900
|
+
"onFetch:success": j,
|
|
901
901
|
onLoading: l[26] || (l[26] = (u) => t.$emit("loading", u)),
|
|
902
902
|
onSubmit: J
|
|
903
903
|
}, {
|
|
904
904
|
"form-actions": f(() => [
|
|
905
|
-
|
|
905
|
+
Be(t.$slots, "form-actions", {
|
|
906
906
|
canSubmit: K.value,
|
|
907
907
|
cancel: H,
|
|
908
908
|
submit: J
|
|
@@ -921,15 +921,18 @@ const me = {
|
|
|
921
921
|
modelModifiers: { trim: !0 },
|
|
922
922
|
autocomplete: "off",
|
|
923
923
|
"data-testid": "gateway-service-name-input",
|
|
924
|
-
error:
|
|
924
|
+
error: O.value,
|
|
925
925
|
"error-message": X.value,
|
|
926
926
|
label: o(s)("gateway_services.form.fields.name.label"),
|
|
927
|
-
"label-attributes": {
|
|
927
|
+
"label-attributes": {
|
|
928
|
+
info: o(s)("gateway_services.form.fields.name.tooltip"),
|
|
929
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
930
|
+
},
|
|
928
931
|
name: "name",
|
|
929
932
|
placeholder: o(s)("gateway_services.form.fields.name.placeholder"),
|
|
930
933
|
readonly: e.isReadonly,
|
|
931
934
|
type: "text",
|
|
932
|
-
onInput:
|
|
935
|
+
onInput: F
|
|
933
936
|
}, null, 8, ["modelValue", "error", "error-message", "label", "label-attributes", "placeholder", "readonly"]),
|
|
934
937
|
d(n, {
|
|
935
938
|
modelValue: e.fields.tags,
|
|
@@ -939,7 +942,10 @@ const me = {
|
|
|
939
942
|
"data-testid": "gateway-service-tags-input",
|
|
940
943
|
help: o(s)("gateway_services.form.fields.tags.help"),
|
|
941
944
|
label: o(s)("gateway_services.form.fields.tags.label"),
|
|
942
|
-
"label-attributes": {
|
|
945
|
+
"label-attributes": {
|
|
946
|
+
info: o(s)("gateway_services.form.fields.tags.tooltip"),
|
|
947
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
948
|
+
},
|
|
943
949
|
name: "tags",
|
|
944
950
|
placeholder: o(s)("gateway_services.form.fields.tags.placeholder"),
|
|
945
951
|
readonly: e.isReadonly,
|
|
@@ -954,7 +960,7 @@ const me = {
|
|
|
954
960
|
title: o(s)("gateway_services.form.sections.keys.title")
|
|
955
961
|
}, {
|
|
956
962
|
default: f(() => [
|
|
957
|
-
|
|
963
|
+
W.value ? B("", !0) : (w(), I("div", gt, [
|
|
958
964
|
V("div", yt, [
|
|
959
965
|
d(m, { required: "" }, {
|
|
960
966
|
default: f(() => [
|
|
@@ -986,13 +992,14 @@ const me = {
|
|
|
986
992
|
"data-testid": "gateway-service-url-input",
|
|
987
993
|
label: o(s)("gateway_services.form.fields.upstream_url.label"),
|
|
988
994
|
"label-attributes": {
|
|
989
|
-
info: a.config.app === "konnect" ? o(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(s)("gateway_services.form.fields.upstream_url.tooltip_for_km")
|
|
995
|
+
info: a.config.app === "konnect" ? o(s)("gateway_services.form.fields.upstream_url.tooltip_for_konnect") : o(s)("gateway_services.form.fields.upstream_url.tooltip_for_km"),
|
|
996
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
990
997
|
},
|
|
991
998
|
name: "url",
|
|
992
999
|
placeholder: o(s)("gateway_services.form.fields.upstream_url.placeholder"),
|
|
993
1000
|
required: ""
|
|
994
1001
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
995
|
-
])) :
|
|
1002
|
+
])) : B("", !0),
|
|
996
1003
|
d(v, {
|
|
997
1004
|
modelValue: C.value,
|
|
998
1005
|
"onUpdate:modelValue": l[4] || (l[4] = (u) => C.value = u),
|
|
@@ -1007,7 +1014,7 @@ const me = {
|
|
|
1007
1014
|
_: 1
|
|
1008
1015
|
}, 8, ["modelValue", "selected-value"])
|
|
1009
1016
|
])),
|
|
1010
|
-
C.value === "protocol" ||
|
|
1017
|
+
C.value === "protocol" || W.value ? (w(), I("div", ht, [
|
|
1011
1018
|
d(y, {
|
|
1012
1019
|
modelValue: e.fields.protocol,
|
|
1013
1020
|
"onUpdate:modelValue": l[5] || (l[5] = (u) => e.fields.protocol = u),
|
|
@@ -1015,7 +1022,8 @@ const me = {
|
|
|
1015
1022
|
items: Y,
|
|
1016
1023
|
label: o(s)("gateway_services.form.fields.protocol.label"),
|
|
1017
1024
|
"label-attributes": {
|
|
1018
|
-
info: o(s)("gateway_services.form.fields.protocol.tooltip")
|
|
1025
|
+
info: o(s)("gateway_services.form.fields.protocol.tooltip"),
|
|
1026
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1019
1027
|
},
|
|
1020
1028
|
readonly: e.isReadonly,
|
|
1021
1029
|
required: "",
|
|
@@ -1030,7 +1038,8 @@ const me = {
|
|
|
1030
1038
|
"data-testid": "gateway-service-host-input",
|
|
1031
1039
|
label: o(s)("gateway_services.form.fields.host.label"),
|
|
1032
1040
|
"label-attributes": {
|
|
1033
|
-
info: o(s)("gateway_services.form.fields.host.tooltip")
|
|
1041
|
+
info: o(s)("gateway_services.form.fields.host.tooltip"),
|
|
1042
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1034
1043
|
},
|
|
1035
1044
|
name: "host",
|
|
1036
1045
|
placeholder: o(s)("gateway_services.form.fields.host.placeholder"),
|
|
@@ -1045,12 +1054,13 @@ const me = {
|
|
|
1045
1054
|
"data-testid": "gateway-service-path-input",
|
|
1046
1055
|
label: o(s)("gateway_services.form.fields.path.label"),
|
|
1047
1056
|
"label-attributes": {
|
|
1048
|
-
info: o(s)("gateway_services.form.fields.path.tooltip")
|
|
1057
|
+
info: o(s)("gateway_services.form.fields.path.tooltip"),
|
|
1058
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1049
1059
|
},
|
|
1050
1060
|
name: "path",
|
|
1051
1061
|
placeholder: o(s)("gateway_services.form.fields.path.placeholder")
|
|
1052
1062
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder"])
|
|
1053
|
-
])) :
|
|
1063
|
+
])) : B("", !0),
|
|
1054
1064
|
d(n, {
|
|
1055
1065
|
modelValue: e.fields.port,
|
|
1056
1066
|
"onUpdate:modelValue": [
|
|
@@ -1063,13 +1073,14 @@ const me = {
|
|
|
1063
1073
|
"data-testid": "gateway-service-port-input",
|
|
1064
1074
|
label: o(s)("gateway_services.form.fields.port.label"),
|
|
1065
1075
|
"label-attributes": {
|
|
1066
|
-
info: o(s)("gateway_services.form.fields.port.tooltip")
|
|
1076
|
+
info: o(s)("gateway_services.form.fields.port.tooltip"),
|
|
1077
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1067
1078
|
},
|
|
1068
1079
|
name: "port",
|
|
1069
1080
|
type: "number"
|
|
1070
1081
|
}, null, 8, ["modelValue", "label", "label-attributes"])
|
|
1071
|
-
])) :
|
|
1072
|
-
d(
|
|
1082
|
+
])) : B("", !0),
|
|
1083
|
+
d($, {
|
|
1073
1084
|
modelValue: M.value,
|
|
1074
1085
|
"onUpdate:modelValue": l[24] || (l[24] = (u) => M.value = u),
|
|
1075
1086
|
"data-testid": "advanced-fields-collapse",
|
|
@@ -1090,7 +1101,10 @@ const me = {
|
|
|
1090
1101
|
autocomplete: "off",
|
|
1091
1102
|
"data-testid": "gateway-service-retries-input",
|
|
1092
1103
|
label: o(s)("gateway_services.form.fields.retries.label"),
|
|
1093
|
-
"label-attributes": {
|
|
1104
|
+
"label-attributes": {
|
|
1105
|
+
info: o(s)("gateway_services.form.fields.retries.tooltip"),
|
|
1106
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1107
|
+
},
|
|
1094
1108
|
name: "retries",
|
|
1095
1109
|
readonly: e.isReadonly,
|
|
1096
1110
|
type: "number"
|
|
@@ -1108,7 +1122,10 @@ const me = {
|
|
|
1108
1122
|
autocomplete: "off",
|
|
1109
1123
|
"data-testid": "gateway-service-connTimeout-input",
|
|
1110
1124
|
label: o(s)("gateway_services.form.fields.connect_timeout.label"),
|
|
1111
|
-
"label-attributes": {
|
|
1125
|
+
"label-attributes": {
|
|
1126
|
+
info: o(s)("gateway_services.form.fields.connect_timeout.tooltip"),
|
|
1127
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1128
|
+
},
|
|
1112
1129
|
name: "connTimeout",
|
|
1113
1130
|
readonly: e.isReadonly,
|
|
1114
1131
|
type: "number"
|
|
@@ -1126,7 +1143,10 @@ const me = {
|
|
|
1126
1143
|
autocomplete: "off",
|
|
1127
1144
|
"data-testid": "gateway-service-writeTimeout-input",
|
|
1128
1145
|
label: o(s)("gateway_services.form.fields.write_timeout.label"),
|
|
1129
|
-
"label-attributes": {
|
|
1146
|
+
"label-attributes": {
|
|
1147
|
+
info: o(s)("gateway_services.form.fields.write_timeout.tooltip"),
|
|
1148
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1149
|
+
},
|
|
1130
1150
|
name: "writeTimeout",
|
|
1131
1151
|
readonly: e.isReadonly,
|
|
1132
1152
|
type: "number"
|
|
@@ -1144,7 +1164,10 @@ const me = {
|
|
|
1144
1164
|
autocomplete: "off",
|
|
1145
1165
|
"data-testid": "gateway-service-readTimeout-input",
|
|
1146
1166
|
label: o(s)("gateway_services.form.fields.read_timeout.label"),
|
|
1147
|
-
"label-attributes": {
|
|
1167
|
+
"label-attributes": {
|
|
1168
|
+
info: o(s)("gateway_services.form.fields.read_timeout.tooltip"),
|
|
1169
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1170
|
+
},
|
|
1148
1171
|
name: "readTimeout",
|
|
1149
1172
|
readonly: e.isReadonly,
|
|
1150
1173
|
type: "number"
|
|
@@ -1158,13 +1181,16 @@ const me = {
|
|
|
1158
1181
|
autocomplete: "off",
|
|
1159
1182
|
"data-testid": "gateway-service-clientCert-input",
|
|
1160
1183
|
label: o(s)("gateway_services.form.fields.client_certificate.label"),
|
|
1161
|
-
"label-attributes": {
|
|
1184
|
+
"label-attributes": {
|
|
1185
|
+
info: o(s)("gateway_services.form.fields.client_certificate.tooltip"),
|
|
1186
|
+
tooltipAttributes: { maxWidth: "400" }
|
|
1187
|
+
},
|
|
1162
1188
|
name: "clientCert",
|
|
1163
1189
|
placeholder: o(s)("gateway_services.form.fields.client_certificate.placeholder"),
|
|
1164
1190
|
readonly: e.isReadonly,
|
|
1165
1191
|
type: "text"
|
|
1166
1192
|
}, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"])
|
|
1167
|
-
])) :
|
|
1193
|
+
])) : B("", !0),
|
|
1168
1194
|
_e.value ? (w(), I("div", Pt, [
|
|
1169
1195
|
d(n, {
|
|
1170
1196
|
modelValue: e.fields.ca_certificates,
|
|
@@ -1173,12 +1199,13 @@ const me = {
|
|
|
1173
1199
|
autocomplete: "off",
|
|
1174
1200
|
"data-testid": "gateway-service-ca-certs-input",
|
|
1175
1201
|
label: o(s)("gateway_services.form.fields.ca_certificates.label"),
|
|
1202
|
+
"label-attributes": { tooltipAttributes: { maxWidth: "400" } },
|
|
1176
1203
|
placeholder: o(s)("gateway_services.form.fields.ca_certificates.placeholder"),
|
|
1177
1204
|
readonly: e.isReadonly,
|
|
1178
1205
|
type: "text"
|
|
1179
1206
|
}, {
|
|
1180
1207
|
"label-tooltip": f(() => [
|
|
1181
|
-
d(o(
|
|
1208
|
+
d(o(D), {
|
|
1182
1209
|
keypath: "gateway_services.form.fields.ca_certificates.tooltip",
|
|
1183
1210
|
scope: "global"
|
|
1184
1211
|
}, {
|
|
@@ -1193,17 +1220,18 @@ const me = {
|
|
|
1193
1220
|
]),
|
|
1194
1221
|
_: 1
|
|
1195
1222
|
}, 8, ["modelValue", "label", "placeholder", "readonly"])
|
|
1196
|
-
])) :
|
|
1223
|
+
])) : B("", !0),
|
|
1197
1224
|
be.value ? (w(), I("div", Ut, [
|
|
1198
1225
|
d(i, {
|
|
1199
1226
|
modelValue: e.fields.tls_verify_enabled,
|
|
1200
1227
|
"onUpdate:modelValue": l[21] || (l[21] = (u) => e.fields.tls_verify_enabled = u),
|
|
1201
1228
|
"data-testid": "gateway-service-tls-verify-checkbox",
|
|
1202
1229
|
description: o(s)("gateway_services.form.fields.tls_verify_enabled.help"),
|
|
1203
|
-
label: o(s)("gateway_services.form.fields.tls_verify_enabled.label")
|
|
1230
|
+
label: o(s)("gateway_services.form.fields.tls_verify_enabled.label"),
|
|
1231
|
+
"label-attributes": { tooltipAttributes: { maxWidth: "400" } }
|
|
1204
1232
|
}, {
|
|
1205
1233
|
tooltip: f(() => [
|
|
1206
|
-
d(o(
|
|
1234
|
+
d(o(D), {
|
|
1207
1235
|
keypath: "gateway_services.form.fields.tls_verify_enabled.tooltip",
|
|
1208
1236
|
scope: "global"
|
|
1209
1237
|
}, {
|
|
@@ -1223,7 +1251,7 @@ const me = {
|
|
|
1223
1251
|
label: o(s)("gateway_services.form.fields.tls_verify_option.true.label"),
|
|
1224
1252
|
"selected-value": !0
|
|
1225
1253
|
}, null, 8, ["modelValue", "label"])
|
|
1226
|
-
])) :
|
|
1254
|
+
])) : B("", !0),
|
|
1227
1255
|
e.fields.tls_verify_enabled ? (w(), I("div", Mt, [
|
|
1228
1256
|
d(v, {
|
|
1229
1257
|
modelValue: e.fields.tls_verify_value,
|
|
@@ -1232,8 +1260,8 @@ const me = {
|
|
|
1232
1260
|
label: o(s)("gateway_services.form.fields.tls_verify_option.false.label"),
|
|
1233
1261
|
"selected-value": !1
|
|
1234
1262
|
}, null, 8, ["modelValue", "label"])
|
|
1235
|
-
])) :
|
|
1236
|
-
])) :
|
|
1263
|
+
])) : B("", !0)
|
|
1264
|
+
])) : B("", !0)
|
|
1237
1265
|
])
|
|
1238
1266
|
]),
|
|
1239
1267
|
_: 1
|
|
@@ -1247,7 +1275,7 @@ const me = {
|
|
|
1247
1275
|
]);
|
|
1248
1276
|
};
|
|
1249
1277
|
}
|
|
1250
|
-
}), Lt = /* @__PURE__ */ Ue(Rt, [["__scopeId", "data-v-
|
|
1278
|
+
}), Lt = /* @__PURE__ */ Ue(Rt, [["__scopeId", "data-v-b3bd262f"]]), xt = { class: "kong-ui-gateway-service-entity-config-card" }, Kt = /* @__PURE__ */ ke({
|
|
1251
1279
|
__name: "GatewayServiceConfigCard",
|
|
1252
1280
|
props: {
|
|
1253
1281
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1282,7 +1310,7 @@ const me = {
|
|
|
1282
1310
|
},
|
|
1283
1311
|
emits: ["loading", "fetch:error", "fetch:success"],
|
|
1284
1312
|
setup(a) {
|
|
1285
|
-
const
|
|
1313
|
+
const A = a, { i18n: { t: p }, i18nT: c } = me.useI18n(), r = h(() => le.form[A.config.app].edit), { getPropValue: M } = Ze(), G = (s, T) => M(s, T) === !0 ? p("gateway_services.form.fields.tls_verify_option.true.display") : p("gateway_services.form.fields.tls_verify_option.false.display"), D = S({
|
|
1286
1314
|
id: {},
|
|
1287
1315
|
name: {
|
|
1288
1316
|
tooltip: p("gateway_services.form.fields.name.tooltip")
|
|
@@ -1342,11 +1370,11 @@ const me = {
|
|
|
1342
1370
|
hidden: !0
|
|
1343
1371
|
}
|
|
1344
1372
|
});
|
|
1345
|
-
return (s, T) => (w(), I("div",
|
|
1373
|
+
return (s, T) => (w(), I("div", xt, [
|
|
1346
1374
|
d(o(tt), {
|
|
1347
1375
|
config: a.config,
|
|
1348
1376
|
"config-card-doc": a.configCardDoc,
|
|
1349
|
-
"config-schema":
|
|
1377
|
+
"config-schema": D.value,
|
|
1350
1378
|
"enable-terraform": a.enableTerraform,
|
|
1351
1379
|
"entity-type": o(Pe).GatewayService,
|
|
1352
1380
|
"fetch-url": r.value,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,e(v["kong-ui-public-entities-gateway-services"]={},v.Vue,v.VueRouter,v.KongIcons,v["kong-ui-public-i18n"],v["kong-ui-public-entities-shared"]))})(this,function(v,e,ne,fe,ce,m){"use strict";const pe={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"},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 ue(){const a=ce.createI18n("en-us",pe);return{i18n:a,i18nT:ce.i18nTComponent(a)}}function me(){return{getPortFromProtocol:(E,f)=>{const c=[80,443],s=Number(f);if((s||s===0)&&!c.includes(s))return s;switch(E){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const H={useI18n:ue,usePortFromProtocol:me},J="/v2/control-planes/{controlPlaneId}/core-entities",z="/{workspace}",L={list:{konnect:{all:`${J}/services`},kongManager:{all:`${z}/services`}},form:{konnect:{create:`${J}/services`,validate:`${J}/v1/schemas/json/service/validate`,edit:`${J}/services/{id}`},kongManager:{create:`${z}/services`,validate:`${z}/schemas/services/validate`,edit:`${z}/services/{id}`}}},ye={class:"kong-ui-entities-gateway-services-list"},ge={key:1},_e={key:1},be=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.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(a,{emit:E}){var o;const f=E,c=a,{i18n:{t:s}}=H.useI18n(),C=ne.useRouter(),{axiosInstance:B}=m.useAxios((o=c.config)==null?void 0:o.axiosRequestConfig),T=e.ref(1),i=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),h={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...c.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}},b=h,U=e.computed(()=>{var n,p;let l=`${c.config.apiBaseUrl}${L.list[c.config.app].all}`;return c.config.app==="konnect"?l=l.replace(/{controlPlaneId}/gi,((n=c.config)==null?void 0:n.controlPlaneId)||""):c.config.app==="kongManager"&&(l=l.replace(/\/{workspace}/gi,(p=c.config)!=null&&p.workspace?`/${c.config.workspace}`:"")),l}),oe=e.computed(()=>c.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${U.value}`):new URL(U.value)),N=e.ref(""),le=e.computed(()=>{const l=c.config.app==="konnect"||c.config.isExactMatch;if(l)return{isExactMatch:l,placeholder:s(`search.placeholder.${c.config.app}`)};const{name:n,enabled:p,protocol:u,host:g,port:r,path:S}=h;return{isExactMatch:l,fields:{name:n,enabled:p,protocol:u,host:g,port:r,path:S},schema:c.config.filterSchema}}),{fetcher:D,fetcherState:w}=m.useFetcher(c.config,U.value),q=()=>{N.value=""},K=()=>{T.value++},R=e.ref(null),t=e.computed(()=>({ctaPath:c.config.createRoute,ctaText:A.value?c.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:A.value?c.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),_=e.ref(!1),V=e.ref(null),O=e.computed(()=>{const l={action:"disable",id:"",name:""};if(V.value){const{enabled:n,id:p,name:u}=V.value;l.action=n?"disable":"enable",l.id=p,l.name=u||p}return l}),Q=l=>{_.value=!0,V.value=l},X=()=>{_.value=!1,V.value=null},I=async()=>{var u,g;if(!await((u=c.canEdit)==null?void 0:u.call(c,V.value))||!V.value)return;const n=`${oe.value.href}/${V.value.id}`,p=!V.value.enabled;try{const{data:r}=((g=c.config)==null?void 0:g.app)==="konnect"?await B.put(n,{...V.value,enabled:p}):await B.patch(n,{...V.value,enabled:p});f("toggle:success",r)}catch(r){f("error",r)}V.value.enabled=p},Y=l=>{c.config.getControlPlaneRoute&&C.push(c.config.getControlPlaneRoute(l))},Z=(l,n)=>{const p=l.id;if(!n(p)){f("copy:error",{entity:l,field:"id",message:s("errors.copy")});return}f("copy:success",{entity:l,field:"id",message:s("copy.success",{val:p})})},ee=(l,n)=>{const p=JSON.stringify(l);if(!n(p)){f("copy:error",{entity:l,message:s("errors.copy")});return}f("copy:success",{entity:l,message:s("copy.success_brief")})},re=async l=>{var p;await((p=c.canRetrieve)==null?void 0:p.call(c,l))&&C.push(c.config.getViewRoute(l.id))},ie=l=>({label:s("actions.view"),to:c.config.getViewRoute(l)}),se=l=>({label:s("actions.edit"),to:c.config.getEditRoute(l)}),x=e.ref(void 0),P=e.ref(!1),F=e.ref(!1),$=e.ref(""),ae=m.useDeleteUrlBuilder(c.config,U.value),j=l=>{x.value=l,P.value=!0,$.value=""},te=()=>{P.value=!1,x.value=void 0},M=async()=>{var l,n,p;if((l=x.value)!=null&&l.id){F.value=!0;try{await B.delete(ae(x.value.id)),f("delete:success",x.value),te(),T.value++}catch(u){$.value=((p=(n=u.response)==null?void 0:n.data)==null?void 0:p.message)||u.message||s("errors.delete"),f("error",u)}finally{F.value=!1}}},G=e.ref(!1);e.watch(w,l=>{var n,p,u,g;if(Array.isArray((n=l==null?void 0:l.response)==null?void 0:n.data)&&(G.value=l.response.data.length>0),l.status===m.FetcherStatus.Error){R.value={title:s("errors.general")},(g=(u=(p=l.error)==null?void 0:p.response)==null?void 0:u.data)!=null&&g.message&&(R.value.message=l.error.response.data.message),f("error",l.error);return}R.value=null});const A=e.ref(!1);return e.onBeforeMount(async()=>{A.value=await c.canCreate()}),(l,n)=>{const p=e.resolveComponent("KButton"),u=e.resolveComponent("KBadge"),g=e.resolveComponent("KInputSwitch"),r=e.resolveComponent("KTruncate"),S=e.resolveComponent("KDropdownItem"),d=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":i.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":R.value,fetcher:e.unref(D),"fetcher-cache-key":T.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:N.value,"table-headers":e.unref(b),"use-action-outside":a.useActionOutside,onClearSearchInput:q,"onClick:row":n[3]||(n[3]=y=>re(y)),onSort:K},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=y=>N.value=y),config:le.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(p,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(fe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["to"]),[[e.vShow,G.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),control_plane:e.withCtx(({row:y})=>{var k;return[(k=y.x_meta)!=null&&k.cluster_id?(e.openBlock(),e.createBlock(u,{key:0,tooltip:y.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(W=>Y(y.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",ge,"-"))]}),enabled:e.withCtx(({row:y})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(y),"force-show":""},{default:e.withCtx(({isAllowed:k})=>[e.createElementVNode("div",{onClick:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(g,{modelValue:y.enabled,"onUpdate:modelValue":W=>y.enabled=W,"data-testid":`row-${y.id}-toggle-input`,disabled:!k,onClick:e.withModifiers(W=>Q(y),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,k=>(e.openBlock(),e.createBlock(u,{key:k,onClick:n[2]||(n[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",_e,"-"))]),actions:e.withCtx(({row:y})=>[e.createVNode(d,null,{default:e.withCtx(({copyToClipboard:k})=>[e.createVNode(S,{"data-testid":"action-entity-copy-id",onClick:W=>Z(y,k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(d,null,{default:e.withCtx(({copyToClipboard:k})=>[e.createVNode(S,{"data-testid":"action-entity-copy-json",onClick:W=>ee(y,k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(S,{"data-testid":"action-entity-view","has-divider":"",item:ie(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(S,{"data-testid":"action-entity-edit",item:se(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(S,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>j(y)},{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","query","table-headers","use-action-outside"]),e.createVNode(e.unref(m.EntityToggleModal),{action:O.value.action,"entity-id":O.value.id,"entity-name":O.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":I,visible:_.value,onCancel:X,onProceed:X},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":F.value,description:e.unref(s)("actions.delete.description"),"entity-name":x.value&&(x.value.name||x.value.id),"entity-type":e.unref(m.EntityTypes).GatewayService,error:$.value,title:e.unref(s)("actions.delete.title"),visible:P.value,onCancel:te,onProceed:M},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),de=(a,E)=>{const f=a.__vccOpts||a;for(const[c,s]of E)f[c]=s;return f},we=de(be,[["__scopeId","data-v-a3f3e09a"]]),he={class:"kong-ui-entities-gateway-service-form"},ve={key:0},Ve={class:"gateway-service-form-traffic-label"},ke={class:"gateway-service-form-margin-bottom"},Ce={key:0,class:"gateway-service-form-group-fields"},Ne={key:1,class:"gateway-service-form-group-fields"},xe={key:0},Ee={class:"gateway-service-form-margin-top"},Se={class:"gateway-service-form-margin-bottom"},Te={class:"gateway-service-form-margin-bottom"},Be={class:"gateway-service-form-margin-bottom"},Ie={class:"gateway-service-form-margin-bottom"},Pe={key:0,class:"gateway-service-form-margin-bottom"},Me={key:1,class:"gateway-service-form-margin-bottom"},Ue={key:2,class:"gateway-service-form-margin-bottom"},De={key:0,class:"checkbox-aligned-radio"},Re={key:1,class:"checkbox-aligned-radio"},Fe=de(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(a,{expose:E,emit:f}){var A;const c=f,s=a,C=e.ref(!0),B=ne.useRouter(),{i18nT:T,i18n:{t:i}}=H.useI18n(),{getMessageFromError:h}=m.useErrors(),{axiosInstance:b}=m.useAxios((A=s.config)==null?void 0:A.axiosRequestConfig),U=m.useValidators(),oe=e.computed(()=>L.form[s.config.app].edit),N=e.computed(()=>s.gatewayServiceId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),le=e.ref(!1),D=e.computed(()=>!!s.gatewayServiceId),w=e.ref(D.value?"protocol":"url"),q=H.usePortFromProtocol(),K=e.ref(""),R=e.computed(()=>!!K.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:""}),_=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:""}),V=s.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),O=[{label:i("gateway_services.form.fields.protocol.options.http"),value:"http",group:"http"},{label:i("gateway_services.form.fields.protocol.options.https"),value:"https",group:"http"},{label:i("gateway_services.form.fields.protocol.options.tcp"),value:"tcp",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.tls"),value:"tls",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.tls_passthrough"),value:"tls_passthrough",group:"tcp"},{label:i("gateway_services.form.fields.protocol.options.grpc"),value:"grpc",group:"grpc"},{label:i("gateway_services.form.fields.protocol.options.grpcs"),value:"grpcs",group:"grpc"},...V?[{label:i("gateway_services.form.fields.protocol.options.ws"),value:"ws",group:"websocket"},{label:i("gateway_services.form.fields.protocol.options.wss"),value:"wss",group:"websocket"}]:[],{label:i("gateway_services.form.fields.protocol.options.udp"),value:"udp",group:"udp"}],Q={url:"url",protocol:"protocol"},X=(o,l)=>{l.value},I=o=>o?parseFloat(o):0,Y=()=>{C.value=!0,t.errorMessage="",t.fields.host=_.host,t.fields.path=_.path,t.fields.port=_.port,t.fields.protocol=_.protocol,t.fields.url=_.url,t.fields.retries=_.retries,t.fields.connect_timeout=_.connect_timeout,t.fields.write_timeout=_.write_timeout,t.fields.read_timeout=_.read_timeout,t.fields.client_certificate=_.client_certificate,t.fields.ca_certificates=_.ca_certificates,t.fields.tls_verify_enabled=_.tls_verify_enabled,t.fields.tls_verify_value=_.tls_verify_value},Z=()=>{if(t.fields.url&&w.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 l=Number(o.port);le.value=!!l,t.fields.port=l||q.getPortFromProtocol(t.fields.protocol),t.errorMessage="",c("url-valid:success")}catch(o){t.errorMessage=i("errors.urlErrorMessage"),c("url-valid:error",h(o))}else c("url-valid:success"),t.errorMessage=""},ee=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),re=e.computed(()=>{if(w.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return w.value==="protocol"&&o}),ie=e.computed(()=>{if(w.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return w.value==="protocol"&&o}),se=e.computed(()=>{if(w.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return w.value==="protocol"&&o}),x=o=>{K.value=U.utf8Name(o)},P=e.computed(()=>D.value&&JSON.stringify(t.fields)!==JSON.stringify(_)||w.value==="url"&&!!t.fields.url||w.value==="protocol"&&!!t.fields.host),F=o=>{var l,n,p;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((l=o==null?void 0:o.tags)==null?void 0:l.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=((n=o==null?void 0:o.ca_certificates)==null?void 0:n.join(","))||"",t.fields.client_certificate=((p=o==null?void 0:o.client_certificate)==null?void 0:p.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(_,t.fields)},$=()=>{B.push(s.config.cancelRoute)},ae=e.computed(()=>{var l,n;let o=`${s.config.apiBaseUrl}${L.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((l=s.config)==null?void 0:l.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(n=s.config)!=null&&n.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),j=e.computed(()=>{var l,n;let o=`${s.config.apiBaseUrl}${L.form[s.config.app][N.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((l=s.config)==null?void 0:l.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(n=s.config)!=null&&n.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),te=o=>{let l="";o.url&&(l=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(l))&&(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 l,n,p,u;const o={name:t.fields.name||null,tags:t.fields.tags?(p=(n=(l=t.fields.tags)==null?void 0:l.split(","))==null?void 0:n.map(g=>String(g||"").trim()))==null?void 0:p.filter(g=>g!==""):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?(u=t.fields.ca_certificates)==null?void 0:u.split(",").filter(g=>g!==""):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),ee.value||(o.path=null),N.value==="create"?w.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:N.value==="edit"&&delete o.url,o}),G=async()=>{var o,l,n,p;try{t.isReadonly=!0,Z();const u=M.value;te(u);let g;if(await b.post(ae.value,u),N.value==="create"?g=await b.post(j.value,u):N.value==="edit"&&(g=((o=s.config)==null?void 0:o.app)==="konnect"?await b.put(j.value,u):await b.patch(j.value,u)),g){const{data:r}=g;t.fields.name=(r==null?void 0:r.name)||"",t.fields.port=r.port||q.getPortFromProtocol(r.protocol),t.fields.protocol=(r==null?void 0:r.protocol)||"http",t.fields.host=(r==null?void 0:r.host)||"",t.fields.path=(r==null?void 0:r.path)||"",t.fields.url=(r==null?void 0:r.url)||"",t.fields.retries=r!=null&&r.retries||(r==null?void 0:r.retries)===0?r==null?void 0:r.retries:5,t.fields.connect_timeout=r!=null&&r.connect_timeout||(r==null?void 0:r.connect_timeout)===0?r==null?void 0:r.connect_timeout:6e4,t.fields.write_timeout=r!=null&&r.write_timeout||(r==null?void 0:r.write_timeout)===0?r==null?void 0:r.write_timeout:6e4,t.fields.read_timeout=r!=null&&r.read_timeout||(r==null?void 0:r.read_timeout)===0?r==null?void 0:r.read_timeout:6e4,t.fields.client_certificate=((l=r==null?void 0:r.client_certificate)==null?void 0:l.id)||"",t.fields.ca_certificates=(n=r==null?void 0:r.ca_certificates)!=null&&n.length?r==null?void 0:r.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(r==null?void 0:r.tls_verify)!==""&&(r==null?void 0:r.tls_verify)!==null&&(r==null?void 0:r.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(r==null?void 0:r.tls_verify),t.fields.tags=(p=r==null?void 0:r.tags)!=null&&p.length?r.tags.join(", "):"",Object.assign(_,t.fields),c("update",g==null?void 0:g.data)}return g}catch(u){t.errorMessage=h(u),c("error",u)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,_)}),e.watch(t.fields,o=>{t.fields.port=q.getPortFromProtocol(o.protocol,String(o.port)),c("model-updated",M.value)}),e.onMounted(()=>{c("model-updated",M.value)}),E({validateUrl:Z,getPayload:M,saveFormData:G,canSubmit:P,initForm:F}),(o,l)=>{const n=e.resolveComponent("KInput"),p=e.resolveComponent("KLabel"),u=e.resolveComponent("KRadio"),g=e.resolveComponent("KSelect"),r=e.resolveComponent("KCheckbox"),S=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":P.value,config:a.config,"edit-id":a.gatewayServiceId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:$,"onFetch:error":l[25]||(l[25]=d=>o.$emit("error",d)),"onFetch:success":F,onLoading:l[26]||(l[26]=d=>o.$emit("loading",d)),onSubmit:G},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:P.value,cancel:$,submit:G},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(i)("gateway_services.form.sections.general.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(i)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.fields.name,"onUpdate:modelValue":l[0]||(l[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:R.value,"error-message":K.value,label:e.unref(i)("gateway_services.form.fields.name.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.name.tooltip")},name:"name",placeholder:e.unref(i)("gateway_services.form.fields.name.placeholder"),readonly:t.isReadonly,type:"text",onInput:x},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(n,{modelValue:t.fields.tags,"onUpdate:modelValue":l[1]||(l[1]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(i)("gateway_services.form.fields.tags.help"),label:e.unref(i)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.tags.tooltip")},name:"tags",placeholder:e.unref(i)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(i)("gateway_services.form.sections.keys.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(i)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",Ve,[e.createVNode(p,{required:""},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.checkedGroupLabel")),1)]),_:1})]),e.createElementVNode("div",ke,[e.createVNode(u,{modelValue:w.value,"onUpdate:modelValue":l[2]||(l[2]=d=>w.value=d),"data-testid":"gateway-service-url-radio","selected-value":Q.url,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),w.value==="url"?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(n,{modelValue:t.fields.url,"onUpdate:modelValue":l[3]||(l[3]=d=>t.fields.url=d),modelModifiers:{trim:!0},class:"gateway-service-url-input gateway-service-form-margin-bottom","data-testid":"gateway-service-url-input",label:e.unref(i)("gateway_services.form.fields.upstream_url.label"),"label-attributes":{info:a.config.app==="konnect"?e.unref(i)("gateway_services.form.fields.upstream_url.tooltip_for_konnect"):e.unref(i)("gateway_services.form.fields.upstream_url.tooltip_for_km")},name:"url",placeholder:e.unref(i)("gateway_services.form.fields.upstream_url.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(u,{modelValue:w.value,"onUpdate:modelValue":l[4]||(l[4]=d=>w.value=d),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":Q.protocol,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(i)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),w.value==="protocol"||D.value?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(g,{modelValue:t.fields.protocol,"onUpdate:modelValue":l[5]||(l[5]=d=>t.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:O,label:e.unref(i)("gateway_services.form.fields.protocol.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.protocol.tooltip")},readonly:t.isReadonly,required:"",width:"100%",onSelected:l[6]||(l[6]=d=>X(t.fields.protocol,d))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(n,{modelValue:t.fields.host,"onUpdate:modelValue":l[7]||(l[7]=d=>t.fields.host=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-host-input",label:e.unref(i)("gateway_services.form.fields.host.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.host.tooltip")},name:"host",placeholder:e.unref(i)("gateway_services.form.fields.host.placeholder"),required:""},null,8,["modelValue","label","label-attributes","placeholder"]),ee.value?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(n,{modelValue:t.fields.path,"onUpdate:modelValue":l[8]||(l[8]=d=>t.fields.path=d),modelModifiers:{trim:!0},class:"gateway-service-form-margin-top","data-testid":"gateway-service-path-input",label:e.unref(i)("gateway_services.form.fields.path.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.path.tooltip")},name:"path",placeholder:e.unref(i)("gateway_services.form.fields.path.placeholder")},null,8,["modelValue","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),e.createVNode(n,{modelValue:t.fields.port,"onUpdate:modelValue":[l[9]||(l[9]=d=>t.fields.port=d),l[10]||(l[10]=()=>{t.fields.port=I(t.fields.port+"")})],class:"gateway-service-form-margin-top","data-testid":"gateway-service-port-input",label:e.unref(i)("gateway_services.form.fields.port.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.port.tooltip")},name:"port",type:"number"},null,8,["modelValue","label","label-attributes"])])):e.createCommentVNode("",!0),e.createVNode(S,{modelValue:C.value,"onUpdate:modelValue":l[24]||(l[24]=d=>C.value=d),"data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(i)("gateway_services.form.sections.keys.viewAdvancedFields")},{default:e.withCtx(()=>[e.createElementVNode("div",Ee,[e.createElementVNode("div",Se,[e.createVNode(n,{modelValue:t.fields.retries,"onUpdate:modelValue":[l[11]||(l[11]=d=>t.fields.retries=d),l[12]||(l[12]=()=>{t.fields.retries=I(t.fields.retries+"")})],autocomplete:"off","data-testid":"gateway-service-retries-input",label:e.unref(i)("gateway_services.form.fields.retries.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.retries.tooltip")},name:"retries",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Te,[e.createVNode(n,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[l[13]||(l[13]=d=>t.fields.connect_timeout=d),l[14]||(l[14]=()=>{t.fields.connect_timeout=I(t.fields.connect_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-connTimeout-input",label:e.unref(i)("gateway_services.form.fields.connect_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.connect_timeout.tooltip")},name:"connTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Be,[e.createVNode(n,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[l[15]||(l[15]=d=>t.fields.write_timeout=d),l[16]||(l[16]=()=>{t.fields.write_timeout=I(t.fields.write_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-writeTimeout-input",label:e.unref(i)("gateway_services.form.fields.write_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.write_timeout.tooltip")},name:"writeTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),e.createElementVNode("div",Ie,[e.createVNode(n,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[l[17]||(l[17]=d=>t.fields.read_timeout=d),l[18]||(l[18]=()=>{t.fields.read_timeout=I(t.fields.read_timeout+"")})],autocomplete:"off","data-testid":"gateway-service-readTimeout-input",label:e.unref(i)("gateway_services.form.fields.read_timeout.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.read_timeout.tooltip")},name:"readTimeout",readonly:t.isReadonly,type:"number"},null,8,["modelValue","label","label-attributes","readonly"])]),re.value?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(n,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":l[19]||(l[19]=d=>t.fields.client_certificate=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-clientCert-input",label:e.unref(i)("gateway_services.form.fields.client_certificate.label"),"label-attributes":{info:e.unref(i)("gateway_services.form.fields.client_certificate.tooltip")},name:"clientCert",placeholder:e.unref(i)("gateway_services.form.fields.client_certificate.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"])])):e.createCommentVNode("",!0),ie.value?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(n,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":l[20]||(l[20]=d=>t.fields.ca_certificates=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-ca-certs-input",label:e.unref(i)("gateway_services.form.fields.ca_certificates.label"),placeholder:e.unref(i)("gateway_services.form.fields.ca_certificates.placeholder"),readonly:t.isReadonly,type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(T),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"])])):e.createCommentVNode("",!0),se.value?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(r,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":l[21]||(l[21]=d=>t.fields.tls_verify_enabled=d),"data-testid":"gateway-service-tls-verify-checkbox",description:e.unref(i)("gateway_services.form.fields.tls_verify_enabled.help"),label:e.unref(i)("gateway_services.form.fields.tls_verify_enabled.label")},{tooltip:e.withCtx(()=>[e.createVNode(e.unref(T),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(i)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),_:1},8,["modelValue","description","label"]),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(u,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":l[22]||(l[22]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-true-option",label:e.unref(i)("gateway_services.form.fields.tls_verify_option.true.label"),"selected-value":!0},null,8,["modelValue","label"])])):e.createCommentVNode("",!0),t.fields.tls_verify_enabled?(e.openBlock(),e.createElementBlock("div",Re,[e.createVNode(u,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":l[23]||(l[23]=d=>t.fields.tls_verify_value=d),"data-testid":"gateway-service-tls-verify-false-option",label:e.unref(i)("gateway_services.form.fields.tls_verify_option.false.label"),"selected-value":!1},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)])]),_:1},8,["modelValue","trigger-label"])]),_:1},8,["description","hide-info-header","title"])]),_:3},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-30adb753"]]),$e={class:"kong-ui-gateway-service-entity-config-card"},Ge=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(a){const E=a,{i18n:{t:f},i18nT:c}=H.useI18n(),s=e.computed(()=>L.form[E.config.app].edit),{getPropValue:C}=m.useHelpers(),B=(i,h)=>C(i,h)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),T=e.ref({id:{},name:{tooltip:f("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.protocol.tooltip")},host:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.host.tooltip")},path:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.path.tooltip")},port:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.port.tooltip")},tags:{tooltip:f("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:f("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:f("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:f("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:f("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:f("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:m.ConfigurationSchemaType.BadgeTag,label:f("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:f("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(i,h)=>(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":T.value,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":a.hideTitle,"onFetch:error":h[0]||(h[0]=b=>i.$emit("fetch:error",b)),"onFetch:success":h[1]||(h[1]=b=>i.$emit("fetch:success",b)),onLoading:h[2]||(h[2]=b=>i.$emit("loading",b))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(b=>[e.createTextVNode(e.toDisplayString(typeof e.unref(C)("rowValue",b)=="boolean"?B("rowValue",b):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(b=>[e.createTextVNode(e.toDisplayString(e.unref(C)("rowValue",b)?e.unref(C)("rowValue",b).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])]))}});v.GatewayServiceConfigCard=Ge,v.GatewayServiceForm=Fe,v.GatewayServiceList=we,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,e(v["kong-ui-public-entities-gateway-services"]={},v.Vue,v.VueRouter,v.KongIcons,v["kong-ui-public-i18n"],v["kong-ui-public-entities-shared"]))})(this,function(v,e,ne,fe,ce,m){"use strict";const pe={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"},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 ue(){const a=ce.createI18n("en-us",pe);return{i18n:a,i18nT:ce.i18nTComponent(a)}}function me(){return{getPortFromProtocol:(E,f)=>{const c=[80,443],s=Number(f);if((s||s===0)&&!c.includes(s))return s;switch(E){case"grpcs":case"tls":case"https":case"wss":return 443;case"grpc":case"tcp":case"http":case"ws":default:return 80}}}}const H={useI18n:ue,usePortFromProtocol:me},J="/v2/control-planes/{controlPlaneId}/core-entities",z="/{workspace}",L={list:{konnect:{all:`${J}/services`},kongManager:{all:`${z}/services`}},form:{konnect:{create:`${J}/services`,validate:`${J}/v1/schemas/json/service/validate`,edit:`${J}/services/{id}`},kongManager:{create:`${z}/services`,validate:`${z}/schemas/services/validate`,edit:`${z}/services/{id}`}}},ye={class:"kong-ui-entities-gateway-services-list"},ge={key:1},_e={key:1},be=e.defineComponent({__name:"GatewayServiceList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.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(a,{emit:E}){var o;const f=E,c=a,{i18n:{t:s}}=H.useI18n(),C=ne.useRouter(),{axiosInstance:B}=m.useAxios((o=c.config)==null?void 0:o.axiosRequestConfig),T=e.ref(1),r=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),w={name:{label:s("gateway_services.list.table_headers.name"),searchable:!0,sortable:!0,hidable:!1},...c.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}},b=w,U=e.computed(()=>{var n,p;let l=`${c.config.apiBaseUrl}${L.list[c.config.app].all}`;return c.config.app==="konnect"?l=l.replace(/{controlPlaneId}/gi,((n=c.config)==null?void 0:n.controlPlaneId)||""):c.config.app==="kongManager"&&(l=l.replace(/\/{workspace}/gi,(p=c.config)!=null&&p.workspace?`/${c.config.workspace}`:"")),l}),oe=e.computed(()=>c.config.apiBaseUrl.startsWith("/")?new URL(`${window.location.origin}${U.value}`):new URL(U.value)),N=e.ref(""),le=e.computed(()=>{const l=c.config.app==="konnect"||c.config.isExactMatch;if(l)return{isExactMatch:l,placeholder:s(`search.placeholder.${c.config.app}`)};const{name:n,enabled:p,protocol:u,host:g,port:i,path:S}=w;return{isExactMatch:l,fields:{name:n,enabled:p,protocol:u,host:g,port:i,path:S},schema:c.config.filterSchema}}),{fetcher:D,fetcherState:h}=m.useFetcher(c.config,U.value),q=()=>{N.value=""},K=()=>{T.value++},R=e.ref(null),t=e.computed(()=>({ctaPath:c.config.createRoute,ctaText:G.value?c.isServerless?s("actions.serverless_create"):s("actions.create"):void 0,message:`${s("gateway_services.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:G.value?c.isServerless?s("gateway_services.list.empty_state.serverless_title"):s("gateway_services.list.empty_state.title"):s("gateway_services.title")})),_=e.ref(!1),V=e.ref(null),W=e.computed(()=>{const l={action:"disable",id:"",name:""};if(V.value){const{enabled:n,id:p,name:u}=V.value;l.action=n?"disable":"enable",l.id=p,l.name=u||p}return l}),Q=l=>{_.value=!0,V.value=l},X=()=>{_.value=!1,V.value=null},I=async()=>{var u,g;if(!await((u=c.canEdit)==null?void 0:u.call(c,V.value))||!V.value)return;const n=`${oe.value.href}/${V.value.id}`,p=!V.value.enabled;try{const{data:i}=((g=c.config)==null?void 0:g.app)==="konnect"?await B.put(n,{...V.value,enabled:p}):await B.patch(n,{...V.value,enabled:p});f("toggle:success",i)}catch(i){f("error",i)}V.value.enabled=p},Y=l=>{c.config.getControlPlaneRoute&&C.push(c.config.getControlPlaneRoute(l))},Z=(l,n)=>{const p=l.id;if(!n(p)){f("copy:error",{entity:l,field:"id",message:s("errors.copy")});return}f("copy:success",{entity:l,field:"id",message:s("copy.success",{val:p})})},ee=(l,n)=>{const p=JSON.stringify(l);if(!n(p)){f("copy:error",{entity:l,message:s("errors.copy")});return}f("copy:success",{entity:l,message:s("copy.success_brief")})},ie=async l=>{var p;await((p=c.canRetrieve)==null?void 0:p.call(c,l))&&C.push(c.config.getViewRoute(l.id))},re=l=>({label:s("actions.view"),to:c.config.getViewRoute(l)}),se=l=>({label:s("actions.edit"),to:c.config.getEditRoute(l)}),x=e.ref(void 0),P=e.ref(!1),F=e.ref(!1),$=e.ref(""),ae=m.useDeleteUrlBuilder(c.config,U.value),O=l=>{x.value=l,P.value=!0,$.value=""},te=()=>{P.value=!1,x.value=void 0},M=async()=>{var l,n,p;if((l=x.value)!=null&&l.id){F.value=!0;try{await B.delete(ae(x.value.id)),f("delete:success",x.value),te(),T.value++}catch(u){$.value=((p=(n=u.response)==null?void 0:n.data)==null?void 0:p.message)||u.message||s("errors.delete"),f("error",u)}finally{F.value=!1}}},A=e.ref(!1);e.watch(h,l=>{var n,p,u,g;if(Array.isArray((n=l==null?void 0:l.response)==null?void 0:n.data)&&(A.value=l.response.data.length>0),l.status===m.FetcherStatus.Error){R.value={title:s("errors.general")},(g=(u=(p=l.error)==null?void 0:p.response)==null?void 0:u.data)!=null&&g.message&&(R.value.message=l.error.response.data.message),f("error",l.error);return}R.value=null});const G=e.ref(!1);return e.onBeforeMount(async()=>{G.value=await c.canCreate()}),(l,n)=>{const p=e.resolveComponent("KButton"),u=e.resolveComponent("KBadge"),g=e.resolveComponent("KInputSwitch"),i=e.resolveComponent("KTruncate"),S=e.resolveComponent("KDropdownItem"),d=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ye,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":r.value,"empty-state-options":t.value,"enable-entity-actions":"","error-message":R.value,fetcher:e.unref(D),"fetcher-cache-key":T.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-gateway-services-list",query:N.value,"table-headers":e.unref(b),"use-action-outside":a.useActionOutside,onClearSearchInput:q,"onClick:row":n[3]||(n[3]=y=>ie(y)),onSort:K},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:N.value,"onUpdate:modelValue":n[0]||(n[0]=y=>N.value=y),config:le.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(p,{appearance:"primary","data-testid":"toolbar-add-gateway-service",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(fe.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(s)("gateway_services.list.toolbar_actions.new_gateway_service")),1)]),_:1},8,["to"]),[[e.vShow,A.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),name:e.withCtx(({rowValue:y})=>[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)]),control_plane:e.withCtx(({row:y})=>{var k;return[(k=y.x_meta)!=null&&k.cluster_id?(e.openBlock(),e.createBlock(u,{key:0,tooltip:y.x_meta.cluster_id,"truncation-tooltip":"",onClick:e.withModifiers(j=>Y(y.x_meta.cluster_id),["stop"])},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(y.x_meta.cluster_id),1)]),_:2},1032,["tooltip","onClick"])):(e.openBlock(),e.createElementBlock("b",ge,"-"))]}),enabled:e.withCtx(({row:y})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(y),"force-show":""},{default:e.withCtx(({isAllowed:k})=>[e.createElementVNode("div",{onClick:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(g,{modelValue:y.enabled,"onUpdate:modelValue":j=>y.enabled=j,"data-testid":`row-${y.id}-toggle-input`,disabled:!k,onClick:e.withModifiers(j=>Q(y),["prevent"])},null,8,["modelValue","onUpdate:modelValue","data-testid","disabled","onClick"])])]),_:2},1032,["auth-function"])]),tags:e.withCtx(({rowValue:y})=>[(y==null?void 0:y.length)>0?(e.openBlock(),e.createBlock(i,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y,k=>(e.openBlock(),e.createBlock(u,{key:k,onClick:n[2]||(n[2]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(k),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",_e,"-"))]),actions:e.withCtx(({row:y})=>[e.createVNode(d,null,{default:e.withCtx(({copyToClipboard:k})=>[e.createVNode(S,{"data-testid":"action-entity-copy-id",onClick:j=>Z(y,k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(d,null,{default:e.withCtx(({copyToClipboard:k})=>[e.createVNode(S,{"data-testid":"action-entity-copy-json",onClick:j=>ee(y,k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(s)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(y)},{default:e.withCtx(()=>[e.createVNode(S,{"data-testid":"action-entity-view","has-divider":"",item:re(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(S,{"data-testid":"action-entity-edit",item:se(y.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(S,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:k=>O(y)},{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","query","table-headers","use-action-outside"]),e.createVNode(e.unref(m.EntityToggleModal),{action:W.value.action,"entity-id":W.value.id,"entity-name":W.value.name,"entity-type":e.unref(s)("glossary.gateway_services"),"on-confirm":I,visible:_.value,onCancel:X,onProceed:X},null,8,["action","entity-id","entity-name","entity-type","visible"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":F.value,description:e.unref(s)("actions.delete.description"),"entity-name":x.value&&(x.value.name||x.value.id),"entity-type":e.unref(m.EntityTypes).GatewayService,error:$.value,title:e.unref(s)("actions.delete.title"),visible:P.value,onCancel:te,onProceed:M},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),de=(a,E)=>{const f=a.__vccOpts||a;for(const[c,s]of E)f[c]=s;return f},he=de(be,[["__scopeId","data-v-a3f3e09a"]]),we={class:"kong-ui-entities-gateway-service-form"},ve={key:0},Ve={class:"gateway-service-form-traffic-label"},ke={class:"gateway-service-form-margin-bottom"},Ce={key:0,class:"gateway-service-form-group-fields"},Ne={key:1,class:"gateway-service-form-group-fields"},xe={key:0},Ee={class:"gateway-service-form-margin-top"},Se={class:"gateway-service-form-margin-bottom"},Te={class:"gateway-service-form-margin-bottom"},Be={class:"gateway-service-form-margin-bottom"},Ie={class:"gateway-service-form-margin-bottom"},Pe={key:0,class:"gateway-service-form-margin-bottom"},Me={key:1,class:"gateway-service-form-margin-bottom"},Ue={key:2,class:"gateway-service-form-margin-bottom"},De={key:0,class:"checkbox-aligned-radio"},Re={key:1,class:"checkbox-aligned-radio"},Fe=de(e.defineComponent({__name:"GatewayServiceForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.cancelRoute)},gatewayServiceId:{type:String,required:!1,default:""},hideSectionsInfo:{type:Boolean,required:!1,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","url-valid:success","url-valid:error","loading","model-updated"],setup(a,{expose:E,emit:f}){var G;const c=f,s=a,C=e.ref(!0),B=ne.useRouter(),{i18nT:T,i18n:{t:r}}=H.useI18n(),{getMessageFromError:w}=m.useErrors(),{axiosInstance:b}=m.useAxios((G=s.config)==null?void 0:G.axiosRequestConfig),U=m.useValidators(),oe=e.computed(()=>L.form[s.config.app].edit),N=e.computed(()=>s.gatewayServiceId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),le=e.ref(!1),D=e.computed(()=>!!s.gatewayServiceId),h=e.ref(D.value?"protocol":"url"),q=H.usePortFromProtocol(),K=e.ref(""),R=e.computed(()=>!!K.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:""}),_=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:""}),V=s.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:s.config.gatewayInfo,supportedRange:{enterprise:["3.0"]}}),W=[{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"},...V?[{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"}],Q={url:"url",protocol:"protocol"},X=(o,l)=>{l.value},I=o=>o?parseFloat(o):0,Y=()=>{C.value=!0,t.errorMessage="",t.fields.host=_.host,t.fields.path=_.path,t.fields.port=_.port,t.fields.protocol=_.protocol,t.fields.url=_.url,t.fields.retries=_.retries,t.fields.connect_timeout=_.connect_timeout,t.fields.write_timeout=_.write_timeout,t.fields.read_timeout=_.read_timeout,t.fields.client_certificate=_.client_certificate,t.fields.ca_certificates=_.ca_certificates,t.fields.tls_verify_enabled=_.tls_verify_enabled,t.fields.tls_verify_value=_.tls_verify_value},Z=()=>{if(t.fields.url&&h.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 l=Number(o.port);le.value=!!l,t.fields.port=l||q.getPortFromProtocol(t.fields.protocol),t.errorMessage="",c("url-valid:success")}catch(o){t.errorMessage=r("errors.urlErrorMessage"),c("url-valid:error",w(o))}else c("url-valid:success"),t.errorMessage=""},ee=e.computed(()=>!["tcp","tls","tls_passthrough","grpc","grpcs","udp"].includes(t.fields.protocol)),ie=e.computed(()=>{if(h.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return h.value==="protocol"&&o}),re=e.computed(()=>{if(h.value==="url")return!0;const o=["https","tls"].includes(t.fields.protocol);return h.value==="protocol"&&o}),se=e.computed(()=>{if(h.value==="url")return!0;const o=["https","wss","tls"].includes(t.fields.protocol);return h.value==="protocol"&&o}),x=o=>{K.value=U.utf8Name(o)},P=e.computed(()=>D.value&&JSON.stringify(t.fields)!==JSON.stringify(_)||h.value==="url"&&!!t.fields.url||h.value==="protocol"&&!!t.fields.host),F=o=>{var l,n,p;t.fields.name=(o==null?void 0:o.name)||"",t.fields.tags=((l=o==null?void 0:o.tags)==null?void 0:l.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=((n=o==null?void 0:o.ca_certificates)==null?void 0:n.join(","))||"",t.fields.client_certificate=((p=o==null?void 0:o.client_certificate)==null?void 0:p.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(_,t.fields)},$=()=>{B.push(s.config.cancelRoute)},ae=e.computed(()=>{var l,n;let o=`${s.config.apiBaseUrl}${L.form[s.config.app].validate}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((l=s.config)==null?void 0:l.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(n=s.config)!=null&&n.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),O=e.computed(()=>{var l,n;let o=`${s.config.apiBaseUrl}${L.form[s.config.app][N.value]}`;return s.config.app==="konnect"?o=o.replace(/{controlPlaneId}/gi,((l=s.config)==null?void 0:l.controlPlaneId)||""):s.config.app==="kongManager"&&(o=o.replace(/\/{workspace}/gi,(n=s.config)!=null&&n.workspace?`/${s.config.workspace}`:"")),o=o.replace(/{id}/gi,s.gatewayServiceId),o}),te=o=>{let l="";o.url&&(l=new URL(o.url).protocol),(["https","wss","tls"].includes(o.protocol)||["https","wss","tls"].includes(l))&&(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 l,n,p,u;const o={name:t.fields.name||null,tags:t.fields.tags?(p=(n=(l=t.fields.tags)==null?void 0:l.split(","))==null?void 0:n.map(g=>String(g||"").trim()))==null?void 0:p.filter(g=>g!==""):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?(u=t.fields.ca_certificates)==null?void 0:u.split(",").filter(g=>g!==""):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),ee.value||(o.path=null),N.value==="create"?h.value==="url"?(delete o.protocol,delete o.host,delete o.path,s.config.app==="konnect"&&delete o.port):delete o.url:N.value==="edit"&&delete o.url,o}),A=async()=>{var o,l,n,p;try{t.isReadonly=!0,Z();const u=M.value;te(u);let g;if(await b.post(ae.value,u),N.value==="create"?g=await b.post(O.value,u):N.value==="edit"&&(g=((o=s.config)==null?void 0:o.app)==="konnect"?await b.put(O.value,u):await b.patch(O.value,u)),g){const{data:i}=g;t.fields.name=(i==null?void 0:i.name)||"",t.fields.port=i.port||q.getPortFromProtocol(i.protocol),t.fields.protocol=(i==null?void 0:i.protocol)||"http",t.fields.host=(i==null?void 0:i.host)||"",t.fields.path=(i==null?void 0:i.path)||"",t.fields.url=(i==null?void 0:i.url)||"",t.fields.retries=i!=null&&i.retries||(i==null?void 0:i.retries)===0?i==null?void 0:i.retries:5,t.fields.connect_timeout=i!=null&&i.connect_timeout||(i==null?void 0:i.connect_timeout)===0?i==null?void 0:i.connect_timeout:6e4,t.fields.write_timeout=i!=null&&i.write_timeout||(i==null?void 0:i.write_timeout)===0?i==null?void 0:i.write_timeout:6e4,t.fields.read_timeout=i!=null&&i.read_timeout||(i==null?void 0:i.read_timeout)===0?i==null?void 0:i.read_timeout:6e4,t.fields.client_certificate=((l=i==null?void 0:i.client_certificate)==null?void 0:l.id)||"",t.fields.ca_certificates=(n=i==null?void 0:i.ca_certificates)!=null&&n.length?i==null?void 0:i.ca_certificates.join(","):"",t.fields.tls_verify_enabled=(i==null?void 0:i.tls_verify)!==""&&(i==null?void 0:i.tls_verify)!==null&&(i==null?void 0:i.tls_verify)!==void 0,t.fields.tls_verify_value=t.fields.tls_verify_enabled&&(i==null?void 0:i.tls_verify),t.fields.tags=(p=i==null?void 0:i.tags)!=null&&p.length?i.tags.join(", "):"",Object.assign(_,t.fields),c("update",g==null?void 0:g.data)}return g}catch(u){t.errorMessage=w(u),c("error",u)}finally{t.isReadonly=!1}};return e.watch(()=>s.gatewayServiceId,()=>{Object.assign(t.fields,_)}),e.watch(t.fields,o=>{t.fields.port=q.getPortFromProtocol(o.protocol,String(o.port)),c("model-updated",M.value)}),e.onMounted(()=>{c("model-updated",M.value)}),E({validateUrl:Z,getPayload:M,saveFormData:A,canSubmit:P,initForm:F}),(o,l)=>{const n=e.resolveComponent("KInput"),p=e.resolveComponent("KLabel"),u=e.resolveComponent("KRadio"),g=e.resolveComponent("KSelect"),i=e.resolveComponent("KCheckbox"),S=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",we,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":P.value,config:a.config,"edit-id":a.gatewayServiceId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"error-message":t.errorMessage,"fetch-url":oe.value,"form-fields":M.value,"is-readonly":t.isReadonly,onCancel:$,"onFetch:error":l[25]||(l[25]=d=>o.$emit("error",d)),"onFetch:success":F,onLoading:l[26]||(l[26]=d=>o.$emit("loading",d)),onSubmit:A},{"form-actions":e.withCtx(()=>[e.renderSlot(o.$slots,"form-actions",{canSubmit:P.value,cancel:$,submit:A},void 0,!0)]),default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.general.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:t.fields.name,"onUpdate:modelValue":l[0]||(l[0]=d=>t.fields.name=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-name-input",error:R.value,"error-message":K.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:x},null,8,["modelValue","error","error-message","label","label-attributes","placeholder","readonly"]),e.createVNode(n,{modelValue:t.fields.tags,"onUpdate:modelValue":l[1]||(l[1]=d=>t.fields.tags=d),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"gateway-service-tags-input",help:e.unref(r)("gateway_services.form.fields.tags.help"),label:e.unref(r)("gateway_services.form.fields.tags.label"),"label-attributes":{info:e.unref(r)("gateway_services.form.fields.tags.tooltip"),tooltipAttributes:{maxWidth:"400"}},name:"tags",placeholder:e.unref(r)("gateway_services.form.fields.tags.placeholder"),readonly:t.isReadonly,type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"])]),_:1},8,["description","hide-info-header","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(r)("gateway_services.form.sections.keys.description"),"hide-info-header":a.hideSectionsInfo,title:e.unref(r)("gateway_services.form.sections.keys.title")},{default:e.withCtx(()=>[D.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ve,[e.createElementVNode("div",Ve,[e.createVNode(p,{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(u,{modelValue:h.value,"onUpdate:modelValue":l[2]||(l[2]=d=>h.value=d),"data-testid":"gateway-service-url-radio","selected-value":Q.url,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.urlLabel")),1)]),_:1},8,["modelValue","selected-value"])]),h.value==="url"?(e.openBlock(),e.createElementBlock("div",Ce,[e.createVNode(n,{modelValue:t.fields.url,"onUpdate:modelValue":l[3]||(l[3]=d=>t.fields.url=d),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:a.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(u,{modelValue:h.value,"onUpdate:modelValue":l[4]||(l[4]=d=>h.value=d),"checked-group":"protocol","data-testid":"gateway-service-protocol-radio","selected-value":Q.protocol,onChange:Y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(r)("gateway_services.form.sections.keys.checkedGroupAltLabel")),1)]),_:1},8,["modelValue","selected-value"])])),h.value==="protocol"||D.value?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(g,{modelValue:t.fields.protocol,"onUpdate:modelValue":l[5]||(l[5]=d=>t.fields.protocol=d),"data-testid":"gateway-service-protocol-select",items:W,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:l[6]||(l[6]=d=>X(t.fields.protocol,d))},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(n,{modelValue:t.fields.host,"onUpdate:modelValue":l[7]||(l[7]=d=>t.fields.host=d),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"]),ee.value?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(n,{modelValue:t.fields.path,"onUpdate:modelValue":l[8]||(l[8]=d=>t.fields.path=d),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(n,{modelValue:t.fields.port,"onUpdate:modelValue":[l[9]||(l[9]=d=>t.fields.port=d),l[10]||(l[10]=()=>{t.fields.port=I(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(S,{modelValue:C.value,"onUpdate:modelValue":l[24]||(l[24]=d=>C.value=d),"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",Ee,[e.createElementVNode("div",Se,[e.createVNode(n,{modelValue:t.fields.retries,"onUpdate:modelValue":[l[11]||(l[11]=d=>t.fields.retries=d),l[12]||(l[12]=()=>{t.fields.retries=I(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",Te,[e.createVNode(n,{modelValue:t.fields.connect_timeout,"onUpdate:modelValue":[l[13]||(l[13]=d=>t.fields.connect_timeout=d),l[14]||(l[14]=()=>{t.fields.connect_timeout=I(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",Be,[e.createVNode(n,{modelValue:t.fields.write_timeout,"onUpdate:modelValue":[l[15]||(l[15]=d=>t.fields.write_timeout=d),l[16]||(l[16]=()=>{t.fields.write_timeout=I(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",Ie,[e.createVNode(n,{modelValue:t.fields.read_timeout,"onUpdate:modelValue":[l[17]||(l[17]=d=>t.fields.read_timeout=d),l[18]||(l[18]=()=>{t.fields.read_timeout=I(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"])]),ie.value?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(n,{modelValue:t.fields.client_certificate,"onUpdate:modelValue":l[19]||(l[19]=d=>t.fields.client_certificate=d),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),re.value?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(n,{modelValue:t.fields.ca_certificates,"onUpdate:modelValue":l[20]||(l[20]=d=>t.fields.ca_certificates=d),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(T),{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),se.value?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(i,{modelValue:t.fields.tls_verify_enabled,"onUpdate:modelValue":l[21]||(l[21]=d=>t.fields.tls_verify_enabled=d),"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(T),{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",De,[e.createVNode(u,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":l[22]||(l[22]=d=>t.fields.tls_verify_value=d),"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",Re,[e.createVNode(u,{modelValue:t.fields.tls_verify_value,"onUpdate:modelValue":l[23]||(l[23]=d=>t.fields.tls_verify_value=d),"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","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-b3bd262f"]]),$e={class:"kong-ui-gateway-service-entity-config-card"},Ae=e.defineComponent({__name:"GatewayServiceConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(a){const E=a,{i18n:{t:f},i18nT:c}=H.useI18n(),s=e.computed(()=>L.form[E.config.app].edit),{getPropValue:C}=m.useHelpers(),B=(r,w)=>C(r,w)===!0?f("gateway_services.form.fields.tls_verify_option.true.display"):f("gateway_services.form.fields.tls_verify_option.false.display"),T=e.ref({id:{},name:{tooltip:f("gateway_services.form.fields.name.tooltip")},enabled:{},updated_at:{},created_at:{},protocol:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.protocol.tooltip")},host:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.host.tooltip")},path:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.path.tooltip")},port:{section:m.ConfigurationSchemaSection.Basic,tooltip:f("gateway_services.form.fields.port.tooltip")},tags:{tooltip:f("gateway_services.form.fields.tags.tooltip")},retries:{order:1,tooltip:f("gateway_services.form.fields.retries.tooltip")},connect_timeout:{order:2,tooltip:f("gateway_services.form.fields.connect_timeout.tooltip")},write_timeout:{order:3,tooltip:f("gateway_services.form.fields.write_timeout.tooltip")},read_timeout:{order:4,tooltip:f("gateway_services.form.fields.read_timeout.tooltip")},client_certificate:{order:5,tooltip:f("gateway_services.form.fields.client_certificate.tooltip")},ca_certificates:{type:m.ConfigurationSchemaType.BadgeTag,label:f("gateway_services.form.fields.ca_certificates.label"),order:6},tls_verify:{label:f("gateway_services.form.fields.tls_verify_enabled.label")},tls_verify_depth:{hidden:!0}});return(r,w)=>(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":T.value,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).GatewayService,"fetch-url":s.value,"hide-title":a.hideTitle,"onFetch:error":w[0]||(w[0]=b=>r.$emit("fetch:error",b)),"onFetch:success":w[1]||(w[1]=b=>r.$emit("fetch:success",b)),onLoading:w[2]||(w[2]=b=>r.$emit("loading",b))},{"enabled-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.enabled.tooltip",scope:"global"},{false:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.false")),1)]),true:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.enabled.true")),1)]),_:1})]),"ca_certificates-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.ca_certificates.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code1")),1)]),code2:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.ca_certificates.code2")),1)]),_:1})]),"tls_verify-label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(c),{keypath:"gateway_services.form.fields.tls_verify_enabled.tooltip",scope:"global"},{code1:e.withCtx(()=>[e.createElementVNode("code",null,e.toDisplayString(e.unref(f)("gateway_services.form.fields.tls_verify_enabled.code1")),1)]),_:1})]),tls_verify:e.withCtx(b=>[e.createTextVNode(e.toDisplayString(typeof e.unref(C)("rowValue",b)=="boolean"?B("rowValue",b):e.unref(f)("gateway_services.form.fields.tls_verify_option.unset.display")),1)]),client_certificate:e.withCtx(b=>[e.createTextVNode(e.toDisplayString(e.unref(C)("rowValue",b)?e.unref(C)("rowValue",b).id:"–"),1)]),_:1},8,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])]))}});v.GatewayServiceConfigCard=Ae,v.GatewayServiceForm=Fe,v.GatewayServiceList=he,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.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-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{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-94990087]{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-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{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-a3f3e09a]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-a3f3e09a]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-30adb753]{width:100%}.kong-ui-entities-gateway-service-form[data-v-30adb753] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-30adb753]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-30adb753]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-30adb753],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-30adb753] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-30adb753]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-30adb753]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-30adb753]{margin:4px;padding-left:24px}
|
|
1
|
+
.config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.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-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{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-94990087]{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-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{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-a3f3e09a]{width:100%}.kong-ui-entities-gateway-services-list .kong-ui-entity-filter-input[data-v-a3f3e09a]{margin-right:12px}.kong-ui-entities-gateway-service-form[data-v-b3bd262f]{width:100%}.kong-ui-entities-gateway-service-form[data-v-b3bd262f] .k-tooltip{max-width:300px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-top[data-v-b3bd262f]{margin-top:16px}.kong-ui-entities-gateway-service-form .gateway-service-form-traffic-label[data-v-b3bd262f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-b3bd262f],.kong-ui-entities-gateway-service-form .gateway-service-url-input[data-v-b3bd262f] .input-element-wrapper{display:flex}.kong-ui-entities-gateway-service-form .gateway-service-form-group-fields[data-v-b3bd262f]{margin-left:24px}.kong-ui-entities-gateway-service-form .gateway-service-form-margin-bottom[data-v-b3bd262f]{margin-bottom:16px}.kong-ui-entities-gateway-service-form .checkbox-aligned-radio[data-v-b3bd262f]{margin:4px;padding-left:24px}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;;
|
|
1
|
+
{"version":3,"file":"GatewayServiceForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/GatewayServiceForm.vue.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAGnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAC1C,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EAGpC,MAAM,UAAU,CAAA;AAajB,OAAO,gDAAgD,CAAA;;IAuzCrD,oHAAoH;;;;;;IAYpH,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD;;;OAGG;;;;;;;;;;;;;;;;;;;IA3BH,oHAAoH;;;;;;IAYpH,qGAAqG;;;;;;IAMrG,yDAAyD;;;;;;IAMzD;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;AAQL,wBAAwG;AACxG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
|