@kong-ui-public/entities-vaults 3.17.2 → 3.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as se, computed as w, ref as T, watch as he, onBeforeMount as Ve, resolveComponent as D, openBlock as I, createElementBlock as q, createVNode as u, unref as e, createSlots as Ue, withCtx as g, createBlock as J, Teleport as $e, createElementVNode as x, createCommentVNode as te, createTextVNode as
|
|
1
|
+
import { defineComponent as se, computed as w, ref as T, watch as he, onBeforeMount as Ve, resolveComponent as D, openBlock as I, createElementBlock as q, createVNode as u, unref as e, createSlots as Ue, withCtx as g, createBlock as J, Teleport as $e, createElementVNode as x, createCommentVNode as te, createTextVNode as pe, toDisplayString as $, reactive as ye, resolveDynamicComponent as Te, TransitionGroup as Je, Fragment as Qe, mergeProps as Oe, normalizeClass as Xe, nextTick as Ye } from "vue";
|
|
2
2
|
import { useRouter as Ie } from "vue-router";
|
|
3
3
|
import { BookIcon as Ke, AddIcon as Fe, SecurityIcon as et, KongIcon as Pe, AzureIcon as tt, HashicorpIcon as lt, GoogleCloudIcon as at, AwsIcon as ot, CodeIcon as rt } from "@kong/icons";
|
|
4
4
|
import { useAxios as ve, useTableState as it, useFetcher as qe, useDeleteUrlBuilder as De, FetcherStatus as je, EntityBaseTable as We, EntityFilter as Be, PermissionsWrapper as fe, TableTags as nt, EntityEmptyState as st, EntityDeleteModal as Le, EntityTypes as ze, useErrors as Ge, EntityBaseFormType as _e, useGatewayFeatureSupported as ct, EntityBaseForm as Ze, SupportedEntityType as xe, EntityFormSection as Se, ConfigurationSchemaSection as Me, ConfigurationSchemaType as ut, EntityBaseConfigCard as dt, useDebouncedFilter as Ne } from "@kong-ui-public/entities-shared";
|
|
@@ -402,7 +402,7 @@ function wt() {
|
|
|
402
402
|
}
|
|
403
403
|
const ge = {
|
|
404
404
|
useI18n: wt
|
|
405
|
-
}, Ce = "/v2/control-planes/{controlPlaneId}/core-entities", He = "/v2/control-planes/{controlPlaneId}/config-stores", we = "/{workspace}",
|
|
405
|
+
}, Ce = "/v2/control-planes/{controlPlaneId}/core-entities", He = "/v2/control-planes/{controlPlaneId}/config-stores", we = "/{workspace}", ce = {
|
|
406
406
|
list: {
|
|
407
407
|
konnect: {
|
|
408
408
|
getAll: `${Ce}/vaults`,
|
|
@@ -487,7 +487,7 @@ const ge = {
|
|
|
487
487
|
tags: { label: f("vaults.list.table_headers.tags"), sortable: !1 }
|
|
488
488
|
}, Q = O, ae = w(() => {
|
|
489
489
|
var i, a;
|
|
490
|
-
let h = `${s.config.apiBaseUrl}${
|
|
490
|
+
let h = `${s.config.apiBaseUrl}${ce.list[s.config.app].getAll}`;
|
|
491
491
|
return s.config.app === "konnect" ? h = h.replace(/{controlPlaneId}/gi, ((i = s.config) == null ? void 0 : i.controlPlaneId) || "") : s.config.app === "kongManager" && (h = h.replace(/\/{workspace}/gi, (a = s.config) != null && a.workspace ? `/${s.config.workspace}` : "")), h;
|
|
492
492
|
}), M = T(""), r = w(() => {
|
|
493
493
|
if (s.config.app === "konnect" || s.config.isExactMatch)
|
|
@@ -551,7 +551,7 @@ const ge = {
|
|
|
551
551
|
}, K = () => {
|
|
552
552
|
R.value = !1;
|
|
553
553
|
}, A = async (h) => {
|
|
554
|
-
const { apiBaseUrl: i, app: a, controlPlaneId: E } = s.config, P = `${i}${
|
|
554
|
+
const { apiBaseUrl: i, app: a, controlPlaneId: E } = s.config, P = `${i}${ce.list[a].deleteConfigStore}`.replace(/{controlPlaneId}/gi, E || "").replace(/{id}/gi, h);
|
|
555
555
|
try {
|
|
556
556
|
await S.delete(P);
|
|
557
557
|
} catch {
|
|
@@ -647,7 +647,7 @@ const ge = {
|
|
|
647
647
|
}, {
|
|
648
648
|
default: g(() => [
|
|
649
649
|
u(e(Fe)),
|
|
650
|
-
|
|
650
|
+
pe(" " + $(e(f)("vaults.list.toolbar_actions.new_vault")), 1)
|
|
651
651
|
]),
|
|
652
652
|
_: 1
|
|
653
653
|
}, 8, ["size", "to"])
|
|
@@ -679,7 +679,7 @@ const ge = {
|
|
|
679
679
|
onClick: (ne) => N(m, oe)
|
|
680
680
|
}, {
|
|
681
681
|
default: g(() => [
|
|
682
|
-
|
|
682
|
+
pe($(e(f)("actions.copy_id")), 1)
|
|
683
683
|
]),
|
|
684
684
|
_: 2
|
|
685
685
|
}, 1032, ["onClick"])
|
|
@@ -693,7 +693,7 @@ const ge = {
|
|
|
693
693
|
onClick: (ne) => le(m, oe)
|
|
694
694
|
}, {
|
|
695
695
|
default: g(() => [
|
|
696
|
-
|
|
696
|
+
pe($(e(f)("actions.copy_json")), 1)
|
|
697
697
|
]),
|
|
698
698
|
_: 2
|
|
699
699
|
}, 1032, ["onClick"])
|
|
@@ -734,7 +734,7 @@ const ge = {
|
|
|
734
734
|
onClick: (oe) => b(m)
|
|
735
735
|
}, {
|
|
736
736
|
default: g(() => [
|
|
737
|
-
|
|
737
|
+
pe($(e(f)("actions.delete")), 1)
|
|
738
738
|
]),
|
|
739
739
|
_: 2
|
|
740
740
|
}, 1032, ["onClick"])
|
|
@@ -796,7 +796,7 @@ const ge = {
|
|
|
796
796
|
(m = l.config) != null && m.isControlPlaneGroup ? {
|
|
797
797
|
name: "message",
|
|
798
798
|
fn: g(() => [
|
|
799
|
-
|
|
799
|
+
pe($(e(f)("vaults.list.empty_state_v2.group")), 1)
|
|
800
800
|
]),
|
|
801
801
|
key: "0"
|
|
802
802
|
} : void 0
|
|
@@ -820,12 +820,12 @@ const ge = {
|
|
|
820
820
|
]);
|
|
821
821
|
};
|
|
822
822
|
}
|
|
823
|
-
}),
|
|
823
|
+
}), ue = (l, C) => {
|
|
824
824
|
const c = l.__vccOpts || l;
|
|
825
825
|
for (const [s, f] of C)
|
|
826
826
|
c[s] = f;
|
|
827
827
|
return c;
|
|
828
|
-
}, wl = /* @__PURE__ */
|
|
828
|
+
}, wl = /* @__PURE__ */ ue($t, [["__scopeId", "data-v-8b4601f8"]]);
|
|
829
829
|
var t = /* @__PURE__ */ ((l) => (l.AWS = "aws", l.GCP = "gcp", l.HCV = "hcv", l.ENV = "env", l.AZURE = "azure", l.KONNECT = "konnect", l.CONJUR = "conjur", l))(t || {}), H = /* @__PURE__ */ ((l) => (l.TOKEN = "token", l.K8S = "kubernetes", l.APP_ROLE = "approle", l))(H || {});
|
|
830
830
|
const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-provider-cards-container" }, Pt = ["data-testid"], Mt = { class: "provider-item-title-container" }, Nt = { class: "provider-item-title" }, Ht = { class: "provider-item-description" }, Ot = {
|
|
831
831
|
key: "kong-vault-config-fields",
|
|
@@ -1013,7 +1013,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1013
1013
|
{ label: `${o("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
|
|
1014
1014
|
], F = [{ label: "secrets", value: "secrets" }], z = [{ label: "http", value: "http" }, { label: "https", value: "https" }], Y = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], v = w(() => c.vaultId ? _e.Edit : _e.Create), N = w(() => {
|
|
1015
1015
|
var i, a;
|
|
1016
|
-
return (a =
|
|
1016
|
+
return (a = ce.form[(i = c.config) == null ? void 0 : i.app]) == null ? void 0 : a.edit;
|
|
1017
1017
|
}), le = w(() => v.value === _e.Edit && c.config.app === "kongManager"), G = w(() => c.config.app === "konnect" || ct({
|
|
1018
1018
|
gatewayInfo: c.config.gatewayInfo,
|
|
1019
1019
|
// vault name can only be `env` in Gateway Community Edition
|
|
@@ -1062,12 +1062,12 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1062
1062
|
return o("form.config.conjur.description");
|
|
1063
1063
|
}
|
|
1064
1064
|
}, L = (i) => {
|
|
1065
|
-
var P, m, oe, ne,
|
|
1065
|
+
var P, m, oe, ne, de, n;
|
|
1066
1066
|
p.fields.prefix = ((P = i == null ? void 0 : i.item) == null ? void 0 : P.prefix) || (i == null ? void 0 : i.prefix) || "", p.fields.description = ((m = i == null ? void 0 : i.item) == null ? void 0 : m.description) || (i == null ? void 0 : i.description) || "";
|
|
1067
1067
|
const a = ((oe = i == null ? void 0 : i.item) == null ? void 0 : oe.tags) || (i == null ? void 0 : i.tags) || [];
|
|
1068
1068
|
p.fields.tags = (a == null ? void 0 : a.join(", ")) || "", Object.assign(k, p.fields);
|
|
1069
1069
|
const E = ((ne = i == null ? void 0 : i.item) == null ? void 0 : ne.config) || (i == null ? void 0 : i.config) || null;
|
|
1070
|
-
E && (Object.keys(E).length || (i == null ? void 0 : i.name) === t.KONNECT) ? (d.value = ((
|
|
1070
|
+
E && (Object.keys(E).length || (i == null ? void 0 : i.name) === t.KONNECT) ? (d.value = ((de = i == null ? void 0 : i.item) == null ? void 0 : de.name) || (i == null ? void 0 : i.name) || "", O.value = d.value, Q.value = ((n = i == null ? void 0 : i.config) == null ? void 0 : n.config_store_id) || void 0, Object.assign(r[d.value], E), Object.assign(X[d.value], E)) : p.errorMessage = "Error loading vault config";
|
|
1071
1071
|
}, y = w(() => d.value === t.HCV ? !Object.keys(r[t.HCV]).filter((i) => [
|
|
1072
1072
|
"namespace",
|
|
1073
1073
|
"ttl",
|
|
@@ -1079,10 +1079,10 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1079
1079
|
"approle_secret_id_file"
|
|
1080
1080
|
].includes(i) || r[t.HCV].auth_method !== H.K8S && (i === "kube_role" || i === "kube_api_token_file") || r[t.HCV].auth_method !== H.TOKEN && i === "token" || r[t.HCV].auth_method !== H.APP_ROLE && (i === "approle_role_id" || i === "approle_response_wrapping") || r[t.HCV].auth_method === H.APP_ROLE && i === "approle_response_wrapping" && typeof r[d.value][i] == "boolean" ? !1 : !r[d.value][i]).length : d.value === t.AZURE ? !Object.keys(r[t.AZURE]).filter((i) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(i) ? !1 : !r[d.value][i]).length : d.value === t.AWS ? !Object.keys(r[t.AWS]).filter((i) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(i) ? !1 : !r[d.value][i]).length : !Object.keys(r[d.value]).filter((i) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(i) ? !1 : !r[d.value][i]).length), b = w(() => !!p.fields.prefix && y.value), K = w(() => JSON.stringify(p.fields) !== JSON.stringify(k) || d.value !== O.value || JSON.stringify(r[d.value]) !== JSON.stringify(X[d.value])), A = w(() => {
|
|
1081
1081
|
var a, E;
|
|
1082
|
-
let i = `${c.config.apiBaseUrl}${
|
|
1082
|
+
let i = `${c.config.apiBaseUrl}${ce.form[c.config.app][v.value]}`;
|
|
1083
1083
|
return c.config.app === "konnect" ? i = i.replace(/{controlPlaneId}/gi, ((a = c.config) == null ? void 0 : a.controlPlaneId) || "") : c.config.app === "kongManager" && (i = i.replace(/\/{workspace}/gi, (E = c.config) != null && E.workspace ? `/${c.config.workspace}` : "")), i = i.replace(/{id}/gi, c.vaultId), i;
|
|
1084
1084
|
}), Z = w(() => {
|
|
1085
|
-
var ne,
|
|
1085
|
+
var ne, de;
|
|
1086
1086
|
const i = {
|
|
1087
1087
|
protocol: r[t.HCV].protocol,
|
|
1088
1088
|
host: r[t.HCV].host,
|
|
@@ -1130,7 +1130,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1130
1130
|
return {
|
|
1131
1131
|
prefix: p.fields.prefix,
|
|
1132
1132
|
description: p.fields.description || null,
|
|
1133
|
-
tags: (
|
|
1133
|
+
tags: (de = (ne = p.fields.tags.split(",")) == null ? void 0 : ne.map((n) => String(n || "").trim())) == null ? void 0 : de.filter((n) => n !== ""),
|
|
1134
1134
|
name: d.value,
|
|
1135
1135
|
config: {
|
|
1136
1136
|
...P,
|
|
@@ -1147,7 +1147,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1147
1147
|
var i;
|
|
1148
1148
|
try {
|
|
1149
1149
|
p.isReadonly = !0;
|
|
1150
|
-
const a = `${c.config.apiBaseUrl}${
|
|
1150
|
+
const a = `${c.config.apiBaseUrl}${ce.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((i = c.config) == null ? void 0 : i.controlPlaneId) || ""), E = await V.post(a);
|
|
1151
1151
|
return E == null ? void 0 : E.data.id;
|
|
1152
1152
|
} catch (a) {
|
|
1153
1153
|
p.errorMessage = _(a), s("error", a);
|
|
@@ -1167,7 +1167,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1167
1167
|
}
|
|
1168
1168
|
};
|
|
1169
1169
|
return (i, a) => {
|
|
1170
|
-
const E = D("KTooltip"), P = D("KSelect"), m = D("KInput"), oe = D("KCheckbox"), ne = D("KCollapse"),
|
|
1170
|
+
const E = D("KTooltip"), P = D("KSelect"), m = D("KInput"), oe = D("KCheckbox"), ne = D("KCollapse"), de = D("KTextArea");
|
|
1171
1171
|
return I(), q("div", Tt, [
|
|
1172
1172
|
u(e(Ze), {
|
|
1173
1173
|
"can-submit": b.value && K.value,
|
|
@@ -1201,7 +1201,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1201
1201
|
}, {
|
|
1202
1202
|
"selected-item-template": g(({ item: n }) => [
|
|
1203
1203
|
(I(), J(Te(R(n.value)))),
|
|
1204
|
-
|
|
1204
|
+
x("span", null, $(n == null ? void 0 : n.label), 1)
|
|
1205
1205
|
]),
|
|
1206
1206
|
"item-template": g(({ item: n }) => [
|
|
1207
1207
|
u(E, {
|
|
@@ -1715,7 +1715,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1715
1715
|
required: "",
|
|
1716
1716
|
type: "text"
|
|
1717
1717
|
}, null, 8, ["modelValue", "help", "is-readonly", "label", "label-attributes", "placeholder"]),
|
|
1718
|
-
u(
|
|
1718
|
+
u(de, {
|
|
1719
1719
|
modelValue: p.fields.description,
|
|
1720
1720
|
"onUpdate:modelValue": a[37] || (a[37] = (n) => p.fields.description = n),
|
|
1721
1721
|
modelModifiers: { trim: !0 },
|
|
@@ -1747,7 +1747,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1747
1747
|
]);
|
|
1748
1748
|
};
|
|
1749
1749
|
}
|
|
1750
|
-
}), Sl = /* @__PURE__ */
|
|
1750
|
+
}), Sl = /* @__PURE__ */ ue(Zt, [["__scopeId", "data-v-d616cf9a"]]), Jt = { class: "kong-ui-vault-entity-config-card" }, Il = /* @__PURE__ */ se({
|
|
1751
1751
|
__name: "VaultConfigCard",
|
|
1752
1752
|
props: {
|
|
1753
1753
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -1776,7 +1776,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1776
1776
|
setup(l) {
|
|
1777
1777
|
const C = l, c = w(() => {
|
|
1778
1778
|
var o, S;
|
|
1779
|
-
return (S =
|
|
1779
|
+
return (S = ce.form[(o = C.config) == null ? void 0 : o.app]) == null ? void 0 : S.edit;
|
|
1780
1780
|
}), { i18n: { t: s } } = ge.useI18n(), f = T({
|
|
1781
1781
|
id: {},
|
|
1782
1782
|
name: {
|
|
@@ -1963,7 +1963,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
1963
1963
|
}, {
|
|
1964
1964
|
default: g(() => [
|
|
1965
1965
|
u(e(Fe)),
|
|
1966
|
-
|
|
1966
|
+
pe(" " + $(e(f)("secrets.list.toolbar_actions.new_secret")), 1)
|
|
1967
1967
|
]),
|
|
1968
1968
|
_: 1
|
|
1969
1969
|
}, 8, ["to"])
|
|
@@ -2002,7 +2002,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2002
2002
|
onClick: (K) => le(b)
|
|
2003
2003
|
}, {
|
|
2004
2004
|
default: g(() => [
|
|
2005
|
-
|
|
2005
|
+
pe($(e(f)("actions.delete")), 1)
|
|
2006
2006
|
]),
|
|
2007
2007
|
_: 2
|
|
2008
2008
|
}, 1032, ["onClick"])
|
|
@@ -2026,7 +2026,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2026
2026
|
], 64);
|
|
2027
2027
|
};
|
|
2028
2028
|
}
|
|
2029
|
-
}), Yt = /* @__PURE__ */
|
|
2029
|
+
}), Yt = /* @__PURE__ */ ue(Xt, [["__scopeId", "data-v-074727f7"]]), el = { class: "kong-ui-entities-secrets-list" }, tl = /* @__PURE__ */ se({
|
|
2030
2030
|
__name: "SecretList",
|
|
2031
2031
|
props: {
|
|
2032
2032
|
/** The base konnect config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2091,7 +2091,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2091
2091
|
}), null, 16, ["config-store-id"])) : te("", !0)
|
|
2092
2092
|
]));
|
|
2093
2093
|
}
|
|
2094
|
-
}), xl = /* @__PURE__ */
|
|
2094
|
+
}), xl = /* @__PURE__ */ ue(tl, [["__scopeId", "data-v-0f9047e6"]]), ll = /* @__PURE__ */ se({
|
|
2095
2095
|
inheritAttrs: !1,
|
|
2096
2096
|
__name: "SecretFormInner",
|
|
2097
2097
|
props: {
|
|
@@ -2223,7 +2223,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2223
2223
|
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
|
|
2224
2224
|
};
|
|
2225
2225
|
}
|
|
2226
|
-
}), al = /* @__PURE__ */
|
|
2226
|
+
}), al = /* @__PURE__ */ ue(ll, [["__scopeId", "data-v-eb9c7fc4"]]), ol = { class: "kong-ui-entities-secret-form" }, rl = /* @__PURE__ */ se({
|
|
2227
2227
|
__name: "SecretForm",
|
|
2228
2228
|
props: {
|
|
2229
2229
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2274,7 +2274,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2274
2274
|
}), null, 16, ["config-store-id"])) : te("", !0)
|
|
2275
2275
|
]));
|
|
2276
2276
|
}
|
|
2277
|
-
}), El = /* @__PURE__ */
|
|
2277
|
+
}), El = /* @__PURE__ */ ue(rl, [["__scopeId", "data-v-02e6d2f3"]]), il = {
|
|
2278
2278
|
class: "vault-secret-picker-provider"
|
|
2279
2279
|
}, nl = /* @__PURE__ */ se({
|
|
2280
2280
|
__name: "VaultSecretPickerProvider",
|
|
@@ -2311,7 +2311,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2311
2311
|
_: 1
|
|
2312
2312
|
})]));
|
|
2313
2313
|
}
|
|
2314
|
-
}), Rl = /* @__PURE__ */
|
|
2314
|
+
}), Rl = /* @__PURE__ */ ue(nl, [["__scopeId", "data-v-66a1e406"]]), sl = (l) => {
|
|
2315
2315
|
let C = l.trim();
|
|
2316
2316
|
if (!C.startsWith("{") || !C.endsWith("}"))
|
|
2317
2317
|
throw new Error("Invalid secret reference: must be enclosed in curly braces");
|
|
@@ -2376,7 +2376,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2376
2376
|
error: M,
|
|
2377
2377
|
loadItems: r,
|
|
2378
2378
|
results: X
|
|
2379
|
-
} = Ne(s.config,
|
|
2379
|
+
} = Ne(s.config, ce.list[s.config.app].getAll, void 0, {
|
|
2380
2380
|
fetchedItemsKey: "data",
|
|
2381
2381
|
searchKeys: ["prefix"]
|
|
2382
2382
|
}), {
|
|
@@ -2408,7 +2408,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2408
2408
|
return ((y = k == null ? void 0 : k.value) == null ? void 0 : y.name) === "konnect";
|
|
2409
2409
|
}), ie = w(() => !!k.value && !!_.value), ee = (y) => y.label ? `${y.label} - (${y.vault.name} - ${y.vault.id})` : y.value, B = (y) => {
|
|
2410
2410
|
var K, A;
|
|
2411
|
-
let b = `${s.config.apiBaseUrl}${
|
|
2411
|
+
let b = `${s.config.apiBaseUrl}${ce.form[s.config.app].edit}`;
|
|
2412
2412
|
return s.config.app === "konnect" ? b = b.replace(/{controlPlaneId}/gi, ((K = s.config) == null ? void 0 : K.controlPlaneId) || "") : s.config.app === "kongManager" && (b = b.replace(/\/{workspace}/gi, (A = s.config) != null && A.workspace ? `/${s.config.workspace}` : "")), b.replace(/{id}/gi, y);
|
|
2413
2413
|
}, R = (y, b) => {
|
|
2414
2414
|
var K;
|
|
@@ -2561,7 +2561,7 @@ const Tt = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
|
|
|
2561
2561
|
}, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
|
|
2562
2562
|
};
|
|
2563
2563
|
}
|
|
2564
|
-
}), Al = /* @__PURE__ */
|
|
2564
|
+
}), Al = /* @__PURE__ */ ue(yl, [["__scopeId", "data-v-df8552cc"]]);
|
|
2565
2565
|
export {
|
|
2566
2566
|
El as SecretForm,
|
|
2567
2567
|
xl as SecretList,
|
|
@@ -2573,5 +2573,5 @@ export {
|
|
|
2573
2573
|
Al as VaultSecretPicker,
|
|
2574
2574
|
Rl as VaultSecretPickerProvider,
|
|
2575
2575
|
me as secretsEndpoints,
|
|
2576
|
-
|
|
2576
|
+
ce as vaultsEndpoints
|
|
2577
2577
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(R,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n"],e):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-vaults"]={},R.Vue,R.VueRouter,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"]))})(this,function(R,e,ie,z,m,de){"use strict";const ge={actions:{create:"New vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details",loading:"Loading..."},delete:{title:"Delete a Vault",title_for_secret:"Delete a Secret",description:"This action cannot be reversed."},errors:{general:"Vaults could not be retrieved",delete:"The vault could not be deleted at this time.",copy:"Failed to copy to clipboard"},search:{placeholder_for_vaults:{konnect:"Filter by exact prefix or ID"},placeholder_for_secrets:{konnect:"Filter by exact key"}},vaults:{title:"Vaults",list:{toolbar_actions:{new_vault:"New vault"},table_headers:{prefix:"Prefix",name:"Vault Type",description:"Description",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Vault",description:"Improve the security of your Kong Gateway deployment with centralized secrets."},empty_state_v2:{title:"Configure your first vault",group:"Vaults created in gateways within this group will automatically appear here.",description:"Vaults securely and centrally store sensitive information, such as credentials, tokens, and keys, to simplify secrets management.",create_cta:"New vault"}}},secrets:{title:"Secrets",list:{toolbar_actions:{new_secret:"Store New Secret"},table_headers:{key:"Secret Key",updated_at:"Updated At"},empty_state:{title:"No Secrets Stored",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}},form:{info:{title:"Secret",description:"Enter the secret key and secret value to be stored in Konnect vault"},fields:{key:{label:"Key",placeholder:"Enter key"},value:{label:"Value",placeholder:"Enter value here, can be simple values or multi-line"}},hint:"Once saved, the secret value will not be visible"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},labels:{vault_type:"Vault Type"},form:{sections:{general:{title:"General Information",description:"General information helps identify and manage this Vault instance."},config:{title:"Vault Configuration",description:"Select a type of Vault and configure properties specific to each type of Vault."}},fields:{prefix:{label:"Prefix",placeholder:"Enter a unique prefix for this vault",help:"e.g. my-vault",tooltip:"The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities."},description:{label:"Description",placeholder:"Enter some description for this vault"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}},config:{konnect:{label:"Konnect",description:"Access secrets stored directly in Konnect's unified platform to easily reference in Kong Gateway configuration."},env:{label:"Environment Variables",description:"Access secrets stored via variables to be made available in Kong Gateway at runtime.",fields:{prefix:{label:"Environment Variable Prefix",placeholder:"Enter your environment variable vault prefix",tooltip:"Data plane will access all the environment variables starting with this prefix."}}},aws:{label:"AWS Secrets Manager",description:"Access secrets stored in AWS Secrets Manager for Kong Gateway configuration.",fields:{region:{label:"Region",placeholder:"Select an AWS region",tooltip:"The AWS region your vault is located in",locations:{"us-east-1":{location:"N. Virginia"},"us-east-2":{location:"Ohio"},"us-west-1":{location:"N. California"},"us-west-2":{location:"Oregon"},"af-south-1":{location:"Cape Town"},"ap-east-1":{location:"Hong Kong"},"ap-southeast-3":{location:"Jakarta"},"ap-south-1":{location:"Mumbai"},"ap-northeast-1":{location:"Tokyo"},"ap-northeast-2":{location:"Seoul"},"ap-northeast-3":{location:"Osaka"},"ap-southeast-1":{location:"Singapore"},"ap-southeast-2":{location:"Sydney"},"ca-central-1":{location:"Canada"},"eu-central-1":{location:"Frankfurt"},"eu-west-1":{location:"Ireland"},"eu-west-2":{location:"London"},"eu-west-3":{location:"Paris"},"eu-south-1":{location:"Milan"},"eu-north-1":{location:"Stockholm"},"me-south-1":{location:"Bahrain"},"sa-east-1":{location:"São Paulo"},"us-gov-east-1":{location:"US East"},"us-gov-west-1":{location:"US West"}}},endpoint_url:{label:"Endpoint URL",tooltip:'The AWS SecretsManager service endpoint url. If not specified, the value used by vault will be the official AWS SecretsManager service url which is `https://secretsmanager.<region>.amazonaws.com`. You can specify a complete URL(including the "http/https" scheme) to override the endpoint that vault will connect to.'},assume_role_arn:{label:"Assume Role ARN",tooltip:"The target AWS IAM role ARN that will be assumed. Typically this is used for operating between multiple roles or cross-accounts. If you are not using assume role you should not specify this value."},role_session_name:{label:"Role Session Name",tooltip:"The role session name used for role assuming."},sts_endpoint_url:{label:"STS Endpoint URL",tooltip:"The custom STS endpoint URL used for role assuming in AWS Vault. Note that this value will override the default STS endpoint URL(which should be `https: //sts.amazonaws.com`, or `https: //sts.<region>.amazonaws.com` if you have `AWS_STS_REGIONAL_ENDPOINTS` set to `regional`). If you are not using private VPC endpoint for STS service, you should not specify this value."}}},gcp:{label:"Google Secret Manager",description:"Access secrets stored in Google Secret Manager for Kong Gateway configuration.",fields:{project_id:{label:"Project ID",placeholder:"Enter your Google Cloud Project ID",tooltip:{text:"Visit your Google API Console and select {italic-text} in the projects list to see your project ID",italicText:"Manage all projects"}}}},hcv:{label:"HashiCorp Vault",description:"Access secrets stored in HashiCorp Vault for Kong Gateway configuration.",fields:{protocol:{label:"Protocol"},host:{label:"Host"},port:{label:"Port"},mount:{label:"Mount"},kv:{label:"Kv"},namespace:{label:"Namespace"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},conjur:{label:"Conjur Vault",description:"Access secrets stored in Conjur Key Vault for Kong Gateway configuration.",fields:{endpoint_url:{label:"Endpoint URL"},login:{label:"Login"},api_token:{label:"API Token"}}},advancedFields:{title:"View Advanced Fields",ttl:"Time-to-Live",ttlTooltip:"Time-to-live (in seconds) of a secret from a vault when cached by this reference",negTtl:"Negative Time-to-Live",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret)",resurrectTtl:"Time-to-Live Resurrection",resurrectTtlTooltip:"Time (in seconds) for which stale secrets from the vault are resurrected for when they cannot be refreshed"}},unavailable:"This vault provider is available on Enterprise."},vault_secret_picker:{title:"Look up Key in Vault",vault:{label:"Vault",placeholder:"Select a vault"},secret_id:{label:"Secret ID",input_placeholder:"Enter a secret ID",select_placeholder:"Select or enter a complete secret ID"},optional_secret_key:{label:"Secret Key",placeholder:"Enter the key or key path to access a nested secret value",help:"Optional. e.g. tokens, tokens/refresh_token"},fetch_error:{vaults:"Could not fetch available vaults",secrets:"Could not fetch available secrets",vaults_and_secrets:"Could not fetch available vaults and secrets"},no_results:"No results found",actions:{use_key:"Use Key"},provider:{complete_action:"Look up {cta}",cta:"Key in Vault"}}};function ye(){const o=de.createI18n("en-us",ge);return{i18n:o,i18nT:de.i18nTComponent(o)}}const le={useI18n:ye},se="/v2/control-planes/{controlPlaneId}/core-entities",fe="/v2/control-planes/{controlPlaneId}/config-stores",ce="/{workspace}",Q={list:{konnect:{getAll:`${se}/vaults`,deleteConfigStore:`${fe}/{id}?force=true`},kongManager:{getAll:`${ce}/vaults`}},form:{konnect:{create:`${se}/vaults`,createConfigStore:fe,edit:`${se}/vaults/{id}`},kongManager:{create:`${ce}/vaults`,edit:`${ce}/vaults/{id}`}}},be="#00abd2",_e="24px",he={class:"kong-ui-entities-vaults-list"},Ve={class:"button-row"},ke={class:"empty-state-icon-gateway"},Ce={class:"table-content-overflow-wrapper"},we={class:"table-content-overflow-wrapper"},Ee=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(o,{emit:C}){var re;const c=C,s=o,{i18n:{t:u}}=le.useI18n(),a=ie.useRouter(),{axiosInstance:w}=m.useAxios((re=s.config)==null?void 0:re.axiosRequestConfig),{hasRecords:k,handleStateChange:_}=m.useTableState(()=>U.value),f=e.computed(()=>k.value&&s.config.app==="konnect"),V=e.computed(()=>!s.enableV2EmptyStates&&s.config.app==="konnect"),d=e.computed(()=>s.config.app!=="kongManager"||!!s.config.disableSorting),$={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},q=$,Z=e.computed(()=>{var n,l;let h=`${s.config.apiBaseUrl}${Q.list[s.config.app].getAll}`;return s.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((n=s.config)==null?void 0:n.controlPlaneId)||""):s.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(l=s.config)!=null&&l.workspace?`/${s.config.workspace}`:"")),h}),U=e.ref(""),r=e.computed(()=>{if(s.config.app==="konnect"||s.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder_for_vaults.konnect")};const{prefix:n,name:l}=$;return{isExactMatch:!1,fields:{name:l,prefix:n},schema:s.config.filterSchema}}),{fetcher:W,fetcherState:X,fetcherCacheKey:B}=m.useFetcher({...s.config,cacheIdentifier:s.cacheIdentifier},Z.value),O=()=>{U.value=""},j=()=>{B.value++},g=e.ref(null),T=async(h,n)=>{const l=h.id;if(!await n(l)){c("copy:error",{entity:h,field:"id",message:u("errors.copy")});return}c("copy:success",{entity:h,field:"id",message:u("copy.success",{val:l})})},G=async(h,n)=>{const l=JSON.stringify(h);if(!await n(l)){c("copy:error",{entity:h,message:u("errors.copy")});return}c("copy:success",{entity:h,message:u("copy.success_brief")})},H=async h=>{var l;await((l=s.canRetrieve)==null?void 0:l.call(s,h))&&a.push(s.config.getViewRoute(h.id))},Y=h=>({label:u("actions.view"),to:s.config.getViewRoute(h)}),L=h=>({label:u("actions.edit"),to:s.config.getEditRoute(h)}),M=e.ref(void 0),x=e.ref(!1),P=e.ref(!1),D=e.ref(""),b=m.useDeleteUrlBuilder(s.config,Z.value),y=h=>{M.value=h,x.value=!0},I=()=>{x.value=!1},N=async h=>{const{apiBaseUrl:n,app:l,controlPlaneId:E}=s.config,v=`${n}${Q.list[l].deleteConfigStore}`.replace(/{controlPlaneId}/gi,E||"").replace(/{id}/gi,h);try{await w.delete(v)}catch{}},F=async()=>{var h,n,l,E;if((h=M.value)!=null&&h.id){P.value=!0;try{await w.delete(b(M.value.id)),s.config.app==="konnect"&&((n=M.value.config)!=null&&n.config_store_id)&&N(M.value.config.config_store_id),P.value=!1,x.value=!1,B.value++,c("delete:success",M.value)}catch(v){D.value=((E=(l=v.response)==null?void 0:l.data)==null?void 0:E.message)||v.message||u("errors.delete"),c("error",v)}finally{P.value=!1}}},K=()=>{a.push(s.config.createRoute)};e.watch(X,h=>{var n,l,E;if(h.status===m.FetcherStatus.Error){g.value={title:u("errors.general")},(E=(l=(n=h.error)==null?void 0:n.response)==null?void 0:l.data)!=null&&E.message&&(g.value.message=h.error.response.data.message),c("error",h.error);return}g.value=null});const S=e.ref({ctaPath:s.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${s.config.additionMessageForEmptyState?` ${s.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")});return e.onBeforeMount(async()=>{await s.canCreate()&&(S.value.title=u("vaults.list.empty_state.title"),S.value.ctaText=u("actions.create"))}),(h,n)=>{const l=e.resolveComponent("KButton"),E=e.resolveComponent("KDropdownItem"),v=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":d.value,"empty-state-options":S.value,"enable-entity-actions":"","error-message":g.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(B),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:U.value,"table-headers":e.unref(q),onClearSearchInput:O,"onClick:row":n[4]||(n[4]=p=>H(p)),onSort:j,onState:e.unref(_)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:U.value,"onUpdate:modelValue":n[0]||(n[0]=p=>U.value=p),config:r.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[f.value?(e.openBlock(),e.createBlock(l,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:n[1]||(n[1]=p=>h.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-vault",size:o.useActionOutside?"medium":"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:p})=>[e.createElementVNode("div",Ce,[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)])]),name:e.withCtx(({rowValue:p})=>[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)]),description:e.withCtx(({rowValue:p})=>[e.createElementVNode("div",we,e.toDisplayString(p??"-"),1)]),tags:e.withCtx(({rowValue:p})=>[e.createVNode(e.unref(m.TableTags),{tags:p},null,8,["tags"])]),actions:e.withCtx(({row:p})=>[e.createVNode(v,null,{default:e.withCtx(({copyToClipboard:J})=>[e.createVNode(E,{"data-testid":"action-entity-copy-id",onClick:ee=>T(p,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(v,null,{default:e.withCtx(({copyToClipboard:J})=>[e.createVNode(E,{"data-testid":"action-entity-copy-json",onClick:ee=>G(p,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-view","has-divider":"",item:Y(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canEdit(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-edit",item:L(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canDelete(p)},{default:e.withCtx(()=>[e.createVNode(E,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:J=>y(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(k)&&V.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(l,{appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:n[2]||(n[2]=p=>h.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!U.value&&o.enableV2EmptyStates&&o.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var p;return[e.createVNode(e.unref(m.EntityEmptyState),{"action-button-text":e.unref(u)("vaults.list.toolbar_actions.new_vault"),appearance:"secondary","can-create":()=>o.canCreate(),"data-testid":"vaults-entity-empty-state",description:e.unref(u)("vaults.list.empty_state_v2.description"),"learn-more":o.config.app==="konnect",title:e.unref(u)("vaults.list.empty_state_v2.title"),"onClick:create":K,"onClick:learnMore":n[3]||(n[3]=J=>h.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",ke,[e.createVNode(e.unref(z.SecurityIcon),{color:e.unref(be),size:e.unref(_e)},null,8,["color","size"])])]),_:2},[(p=o.config)!=null&&p.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":P.value,description:e.unref(u)("delete.description"),"entity-name":M.value&&(M.value.prefix||M.value.id),"entity-type":e.unref(m.EntityTypes).Vault,error:D.value,title:e.unref(u)("delete.title"),visible:x.value,onCancel:I,onProceed:F},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(o,C)=>{const c=o.__vccOpts||o;for(const[s,u]of C)c[s]=u;return c},xe=te(Ee,[["__scopeId","data-v-8b4601f8"]]);var t=(o=>(o.AWS="aws",o.GCP="gcp",o.HCV="hcv",o.ENV="env",o.AZURE="azure",o.KONNECT="konnect",o.CONJUR="conjur",o))(t||{}),A=(o=>(o.TOKEN="token",o.K8S="kubernetes",o.APP_ROLE="approle",o))(A||{});const Ne={class:"kong-ui-entities-vault-form"},Se={class:"vault-form-provider-cards-container"},Ie=["data-testid"],ve={class:"provider-item-title-container"},Re={class:"provider-item-title"},Ae={class:"provider-item-description"},Ue={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Te={key:0,class:"vault-form-config-auth-method-container"},$e={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},Pe={key:6},Ke={class:"wrapper"},Me={class:"item-50"},De={class:"item-50"},Oe={class:"wrapper"},He={class:"item-100"},Fe=te(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var h;const c=o,s=C,{i18nT:u,i18n:{t:a}}=le.useI18n(),w=ie.useRouter(),{axiosInstance:k}=m.useAxios((h=c.config)==null?void 0:h.axiosRequestConfig),{getMessageFromError:_}=m.useErrors(),f=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),V=e.reactive({prefix:"",description:"",tags:""}),d=e.ref(c.config.konnectConfigStoreAvailable?t.KONNECT:t.ENV),$=e.ref(null),q=e.ref(),Z=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(d.value)),U=e.computed(()=>[...c.config.konnectConfigStoreAvailable?[{label:a("form.config.konnect.label"),value:t.KONNECT}]:[],{label:a("form.config.env.label"),value:t.ENV},{label:a("form.config.aws.label"),value:t.AWS,disabled:!H.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!H.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!H.value},...c.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!H.value}]:[],...c.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!H.value}]:[]]),r=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:A.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""},[t.CONJUR]:{}}),W=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:A.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""},[t.CONJUR]:{}}),X=[{label:`${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${a("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${a("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${a("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${a("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${a("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${a("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${a("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${a("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],B=[{label:"secrets",value:"secrets"}],O=[{label:"http",value:"http"},{label:"https",value:"https"}],j=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],g=e.computed(()=>c.vaultId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),T=e.computed(()=>{var n,l;return(l=Q.form[(n=c.config)==null?void 0:n.app])==null?void 0:l.edit}),G=e.computed(()=>g.value===m.EntityBaseFormType.Edit&&c.config.app==="kongManager"),H=e.computed(()=>c.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:c.config.gatewayInfo,supportedRange:{enterprise:[]}})),Y=()=>{var n;w.push(((n=c.config)==null?void 0:n.cancelRoute)||{name:"vault-list"})},L=n=>{s("loading",n)},M=n=>{s("error",n)},x=n=>{switch(n){case t.KONNECT:return z.KongIcon;case t.ENV:return z.CodeIcon;case t.AWS:return z.AwsIcon;case t.GCP:return z.GoogleCloudIcon;case t.HCV:return z.HashicorpIcon;case t.AZURE:return z.AzureIcon;case t.CONJUR:return z.KongIcon}},P=n=>{switch(n){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},D=n=>{var v,p,J,ee,ae,i;f.fields.prefix=((v=n==null?void 0:n.item)==null?void 0:v.prefix)||(n==null?void 0:n.prefix)||"",f.fields.description=((p=n==null?void 0:n.item)==null?void 0:p.description)||(n==null?void 0:n.description)||"";const l=((J=n==null?void 0:n.item)==null?void 0:J.tags)||(n==null?void 0:n.tags)||[];f.fields.tags=(l==null?void 0:l.join(", "))||"",Object.assign(V,f.fields);const E=((ee=n==null?void 0:n.item)==null?void 0:ee.config)||(n==null?void 0:n.config)||null;E&&(Object.keys(E).length||(n==null?void 0:n.name)===t.KONNECT)?(d.value=((ae=n==null?void 0:n.item)==null?void 0:ae.name)||(n==null?void 0:n.name)||"",$.value=d.value,q.value=((i=n==null?void 0:n.config)==null?void 0:i.config_store_id)||void 0,Object.assign(r[d.value],E),Object.assign(W[d.value],E)):f.errorMessage="Error loading vault config"},b=e.computed(()=>d.value===t.HCV?!Object.keys(r[t.HCV]).filter(n=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(n)||r[t.HCV].auth_method!==A.K8S&&(n==="kube_role"||n==="kube_api_token_file")||r[t.HCV].auth_method!==A.TOKEN&&n==="token"||r[t.HCV].auth_method!==A.APP_ROLE&&(n==="approle_role_id"||n==="approle_response_wrapping")||r[t.HCV].auth_method===A.APP_ROLE&&n==="approle_response_wrapping"&&typeof r[d.value][n]=="boolean"?!1:!r[d.value][n]).length:d.value===t.AZURE?!Object.keys(r[t.AZURE]).filter(n=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(n)?!1:!r[d.value][n]).length:d.value===t.AWS?!Object.keys(r[t.AWS]).filter(n=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(n)?!1:!r[d.value][n]).length:!Object.keys(r[d.value]).filter(n=>["ttl","neg_ttl","resurrect_ttl"].includes(n)?!1:!r[d.value][n]).length),y=e.computed(()=>!!f.fields.prefix&&b.value),I=e.computed(()=>JSON.stringify(f.fields)!==JSON.stringify(V)||d.value!==$.value||JSON.stringify(r[d.value])!==JSON.stringify(W[d.value])),N=e.computed(()=>{var l,E;let n=`${c.config.apiBaseUrl}${Q.form[c.config.app][g.value]}`;return c.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((l=c.config)==null?void 0:l.controlPlaneId)||""):c.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(E=c.config)!=null&&E.workspace?`/${c.config.workspace}`:"")),n=n.replace(/{id}/gi,c.vaultId),n}),F=e.computed(()=>{var ee,ae;const n={protocol:r[t.HCV].protocol,host:r[t.HCV].host,port:parseInt(r[t.HCV].port.toString()),mount:r[t.HCV].mount,kv:r[t.HCV].kv,namespace:r[t.HCV].namespace||null,auth_method:r[t.HCV].auth_method,...r[t.HCV].auth_method===A.TOKEN&&{token:r[t.HCV].token},...r[t.HCV].auth_method===A.K8S&&{kube_role:r[t.HCV].kube_role,kube_auth_path:r[t.HCV].kube_auth_path||void 0,kube_api_token_file:r[t.HCV].kube_api_token_file,token:null},...r[t.HCV].auth_method===A.APP_ROLE&&{approle_auth_path:r[t.HCV].approle_auth_path||void 0,approle_role_id:r[t.HCV].approle_role_id,approle_secret_id:r[t.HCV].approle_secret_id||void 0,approle_secret_id_file:r[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:r[t.HCV].approle_response_wrapping??!1}},l={...r[d.value],client_id:r[d.value].client_id||null,tenant_id:r[d.value].tenant_id||null},E={...r[d.value],endpoint_url:r[d.value].endpoint_url||null,assume_role_arn:r[d.value].assume_role_arn||null,...c.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:r[d.value].sts_endpoint_url||null}:{}};let v=r[d.value];d.value===t.HCV?v=n:d.value===t.AZURE?v=l:d.value===t.AWS&&(v=E);let p={};if(![t.KONNECT,t.ENV].includes(d.value)){const i=r[d.value],ue=i.ttl,pe=i.neg_ttl,me=i.resurrect_ttl;p={ttl:ue?parseInt(ue.toString(),10):null,neg_ttl:pe?parseInt(pe.toString(),10):null,resurrect_ttl:me?parseInt(me.toString(),10):null}}return{prefix:f.fields.prefix,description:f.fields.description||null,tags:(ae=(ee=f.fields.tags.split(","))==null?void 0:ee.map(i=>String(i||"").trim()))==null?void 0:ae.filter(i=>i!==""),name:d.value,config:{...v,...p}}}),K=e.computed(()=>({...F.value,config:{...F.value.config,config_store_id:q.value}})),S=async()=>{var n;try{f.isReadonly=!0;const l=`${c.config.apiBaseUrl}${Q.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((n=c.config)==null?void 0:n.controlPlaneId)||""),E=await k.post(l);return E==null?void 0:E.data.id}catch(l){f.errorMessage=_(l),s("error",l)}finally{f.isReadonly=!1}},re=async()=>{var n;try{f.isReadonly=!0;let l;g.value==="create"?d.value===t.KONNECT?(q.value=await S(),l=await k.post(N.value,K.value)):l=await k.post(N.value,F.value):g.value==="edit"&&(d.value===t.KONNECT&&!q.value?(q.value=await S(),l=await k.put(N.value,K.value)):l=((n=c.config)==null?void 0:n.app)==="konnect"?await k.put(N.value,K.value):await k.patch(N.value,F.value)),D(l==null?void 0:l.data),s("update",l==null?void 0:l.data)}catch(l){f.errorMessage=_(l),s("error",l)}finally{f.isReadonly=!1}};return(n,l)=>{const E=e.resolveComponent("KTooltip"),v=e.resolveComponent("KSelect"),p=e.resolveComponent("KInput"),J=e.resolveComponent("KCheckbox"),ee=e.resolveComponent("KCollapse"),ae=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":y.value&&I.value,config:o.config,"edit-id":o.vaultId,"entity-type":e.unref(m.SupportedEntityType).Vault,"error-message":f.errorMessage,"fetch-url":T.value,"form-fields":F.value,"is-readonly":f.isReadonly,onCancel:Y,"onFetch:error":M,"onFetch:success":D,onLoading:L,onSubmit:re},{default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createVNode(v,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=i=>d.value=i),"data-testid":"provider-select",disabled:G.value,"dropdown-max-height":"500",items:U.value},{"selected-item-template":e.withCtx(({item:i})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.value)))),e.createTextVNode(" "+e.toDisplayString(i==null?void 0:i.label),1)]),"item-template":e.withCtx(({item:i})=>[e.createVNode(E,{placement:"top",text:i.disabled?e.unref(a)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${i.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.value)))),e.createElementVNode("div",ve,[e.createElementVNode("span",Re,e.toDisplayString(i==null?void 0:i.label),1),e.createElementVNode("span",Ae,e.toDisplayString(P(i.value)),1)])],8,Ie)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[d.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(p,{modelValue:r[e.unref(t).ENV].prefix,"onUpdate:modelValue":l[1]||(l[1]=i=>r[e.unref(t).ENV].prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix","is-readonly":f.isReadonly,label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(v,{modelValue:r[e.unref(t).AWS].region,"onUpdate:modelValue":l[2]||(l[2]=i=>r[e.unref(t).AWS].region=i),"data-testid":"vault-form-config-aws-region",items:X,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":l[3]||(l[3]=i=>r[e.unref(t).AWS].endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":l[4]||(l[4]=i=>r[e.unref(t).AWS].assume_role_arn=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":l[5]||(l[5]=i=>r[e.unref(t).AWS].role_session_name=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),o.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(p,{key:0,modelValue:r[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":l[6]||(l[6]=i=>r[e.unref(t).AWS].sts_endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).GCP].project_id,"onUpdate:modelValue":l[7]||(l[7]=i=>r[e.unref(t).GCP].project_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","is-readonly","label","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(v,{modelValue:r[e.unref(t).HCV].protocol,"onUpdate:modelValue":l[8]||(l[8]=i=>r[e.unref(t).HCV].protocol=i),"data-testid":"vault-form-config-hcv-protocol",items:O,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].host,"onUpdate:modelValue":l[9]||(l[9]=i=>r[e.unref(t).HCV].host=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.host.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].port,"onUpdate:modelValue":l[10]||(l[10]=i=>r[e.unref(t).HCV].port=i),autocomplete:"off","data-testid":"vault-form-config-hcv-port","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",required:"",type:"number"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].mount,"onUpdate:modelValue":l[11]||(l[11]=i=>r[e.unref(t).HCV].mount=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.mount.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).HCV].kv,"onUpdate:modelValue":l[12]||(l[12]=i=>r[e.unref(t).HCV].kv=i),"data-testid":"vault-form-config-hcv-kv",items:j,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].namespace,"onUpdate:modelValue":l[13]||(l[13]=i=>r[e.unref(t).HCV].namespace=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.namespace.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).HCV].auth_method,"onUpdate:modelValue":l[14]||(l[14]=i=>r[e.unref(t).HCV].auth_method=i),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(A).TOKEN,value:e.unref(A).TOKEN},{label:e.unref(A).K8S,value:e.unref(A).K8S},...o.config.hcvAppRoleMethodAvailable?[{label:e.unref(A).APP_ROLE,value:e.unref(A).APP_ROLE}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),r[e.unref(t).HCV].auth_method===e.unref(A).TOKEN?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].token,"onUpdate:modelValue":l[15]||(l[15]=i=>r[e.unref(t).HCV].token=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.token.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):r[e.unref(t).HCV].auth_method===e.unref(A).K8S?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_role,"onUpdate:modelValue":l[16]||(l[16]=i=>r[e.unref(t).HCV].kube_role=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_role.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":l[17]||(l[17]=i=>r[e.unref(t).HCV].kube_auth_path=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":l[18]||(l[18]=i=>r[e.unref(t).HCV].kube_api_token_file=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):r[e.unref(t).HCV].auth_method===e.unref(A).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":l[19]||(l[19]=i=>r[e.unref(t).HCV].approle_auth_path=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":l[20]||(l[20]=i=>r[e.unref(t).HCV].approle_role_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":l[21]||(l[21]=i=>r[e.unref(t).HCV].approle_secret_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":l[22]||(l[22]=i=>r[e.unref(t).HCV].approle_secret_id_file=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(J,{modelValue:r[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":l[23]||(l[23]=i=>r[e.unref(t).HCV].approle_response_wrapping=i),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).AZURE].location,"onUpdate:modelValue":l[24]||(l[24]=i=>r[e.unref(t).AZURE].location=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.location.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":l[25]||(l[25]=i=>r[e.unref(t).AZURE].vault_uri=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.vault_uri.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":l[26]||(l[26]=i=>r[e.unref(t).AZURE].credentials_prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).AZURE].type,"onUpdate:modelValue":l[27]||(l[27]=i=>r[e.unref(t).AZURE].type=i),"data-testid":"vault-form-config-azure-type",items:B,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].client_id,"onUpdate:modelValue":l[28]||(l[28]=i=>r[e.unref(t).AZURE].client_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.client_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":l[29]||(l[29]=i=>r[e.unref(t).AZURE].tenant_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.tenant_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),d.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":l[30]||(l[30]=i=>r[e.unref(t).CONJUR].endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].login,"onUpdate:modelValue":l[31]||(l[31]=i=>r[e.unref(t).CONJUR].login=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.login.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].api_token,"onUpdate:modelValue":l[32]||(l[32]=i=>r[e.unref(t).CONJUR].api_token=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_token","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.api_token.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),o.config.ttl?(e.openBlock(),e.createElementBlock("div",Pe,[Z.value?(e.openBlock(),e.createBlock(ee,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ke,[e.createElementVNode("div",Me,[e.createVNode(p,{modelValue:r[d.value].ttl,"onUpdate:modelValue":l[33]||(l[33]=i=>r[d.value].ttl=i),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",De,[e.createVNode(p,{modelValue:r[d.value].neg_ttl,"onUpdate:modelValue":l[34]||(l[34]=i=>r[d.value].neg_ttl=i),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Oe,[e.createElementVNode("div",He,[e.createVNode(p,{modelValue:r[d.value].resurrect_ttl,"onUpdate:modelValue":l[35]||(l[35]=i=>r[d.value].resurrect_ttl=i),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.resurrectTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:f.fields.prefix,"onUpdate:modelValue":l[36]||(l[36]=i=>f.fields.prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),"is-readonly":f.isReadonly,label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","help","is-readonly","label","label-attributes","placeholder"]),e.createVNode(ae,{modelValue:f.fields.description,"onUpdate:modelValue":l[37]||(l[37]=i=>f.fields.description=i),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:f.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(p,{modelValue:f.fields.tags,"onUpdate:modelValue":l[38]||(l[38]=i=>f.fields.tags=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),"is-readonly":f.isReadonly,label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","is-readonly","label","placeholder"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-42fabd85"]]),qe={class:"kong-ui-vault-entity-config-card"},We=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const C=o,c=e.computed(()=>{var a,w;return(w=Q.form[(a=C.config)==null?void 0:a.app])==null?void 0:w.edit}),{i18n:{t:s}}=le.useI18n(),u=e.ref({id:{},name:{label:s("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:m.ConfigurationSchemaSection.Basic},description:{order:6,section:m.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:m.ConfigurationSchemaType.Json}});return(a,w)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":u.value,"entity-type":e.unref(m.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":o.hideTitle,"onFetch:error":w[0]||(w[0]=k=>a.$emit("fetch:error",k)),"onFetch:success":w[1]||(w[1]=k=>a.$emit("fetch:success",k)),onLoading:w[2]||(w[2]=k=>a.$emit("loading",k))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),ne="/v2/control-planes/{controlPlaneId}",oe={getVault:{konnect:`${ne}/core-entities/vaults/{id}`},list:{konnect:`${ne}/config-stores/{id}/secrets`},form:{konnect:{create:`${ne}/config-stores/{id}/secrets`,edit:`${ne}/config-stores/{id}/secrets/{secretId}`}}},je={class:"table-content-overflow-wrapper"},Le=te(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.getEditRoute)},configStoreId:{type:String,required:!0},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}},emits:["error","delete:success"],setup(o,{emit:C}){var M;const c=C,s=o,{i18n:{t:u,formatUnixTimeStamp:a}}=le.useI18n(),{axiosInstance:w}=m.useAxios((M=s.config)==null?void 0:M.axiosRequestConfig),_={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},f=x=>({"data-testid":x.key}),V=e.computed(()=>{var x;return`${s.config.apiBaseUrl}${oe.list[s.config.app]}`.replace(/{controlPlaneId}/gi,((x=s.config)==null?void 0:x.controlPlaneId)||"").replace(/{id}/gi,s.configStoreId||"")}),d=e.ref(""),$={isExactMatch:!0,placeholder:u("search.placeholder_for_secrets.konnect")},{fetcher:q,fetcherState:Z,fetcherCacheKey:U}=m.useFetcher({...s.config,cacheIdentifier:s.cacheIdentifier},V.value),r=()=>{d.value=""},W=e.ref(null),X=x=>({label:u("actions.edit"),to:s.config.getEditRoute(x)}),B=e.ref(void 0),O=e.ref(!1),j=e.ref(!1),g=e.ref(""),T=m.useDeleteUrlBuilder(s.config,V.value),G=x=>{B.value=x,O.value=!0},H=()=>{O.value=!1},Y=async()=>{var x,P,D;if((x=B.value)!=null&&x.key){j.value=!0;try{await w.delete(T(B.value.key)),j.value=!1,O.value=!1,U.value++,c("delete:success",B.value)}catch(b){g.value=((D=(P=b.response)==null?void 0:P.data)==null?void 0:D.message)||b.message||u("errors.delete"),c("error",b)}finally{j.value=!1}}};e.watch(Z,x=>{var P,D,b;if(x.status===m.FetcherStatus.Error){W.value={title:u("errors.general")},(b=(D=(P=x.error)==null?void 0:P.response)==null?void 0:D.data)!=null&&b.message&&(W.value.message=x.error.response.data.message),c("error",x.error);return}W.value=null});const L=e.ref({ctaPath:s.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${s.config.additionMessageForEmptyState?` ${s.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await s.canCreate()&&(L.value.title=u("secrets.list.empty_state.title"),L.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(x,P)=>{const D=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":"","empty-state-options":L.value,"enable-entity-actions":"","error-message":W.value,fetcher:e.unref(q),"fetcher-cache-key":e.unref(U),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:d.value,"row-attributes":f,"table-headers":e.unref(_),onClearSearchInput:r},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":P[0]||(P[0]=y=>d.value=y),config:$},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(D,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:y})=>[e.createElementVNode("div",je,[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)])]),updated_at:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",null,e.toDisplayString(y?e.unref(a)(new Date(y).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:X(y.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:I=>G(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":j.value,description:e.unref(u)("delete.description"),"entity-name":B.value&&B.value.key,"entity-type":e.unref(m.EntityTypes).Secret,error:g.value,title:e.unref(u)("delete.title_for_secret"),visible:O.value,onCancel:H,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-074727f7"]]),ze={class:"kong-ui-entities-secrets-list"},Ge=te(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.getEditRoute)},vaultId:{type:String,required:!0},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}},emits:["error","delete:success"],setup(o,{emit:C}){var f;const c=C,s=o,u=V=>{c("error",V)},a=V=>{c("delete:success",V)},{axiosInstance:w}=m.useAxios((f=s.config)==null?void 0:f.axiosRequestConfig),k=e.ref(""),_=e.computed(()=>{var V;return`${s.config.apiBaseUrl}${oe.getVault[s.config.app]}`.replace(/{controlPlaneId}/gi,((V=s.config)==null?void 0:V.controlPlaneId)||"").replace(/{id}/gi,s.vaultId)});return e.onBeforeMount(async()=>{var V;try{const{data:d}=await w.get(_.value);k.value=(V=d==null?void 0:d.config)==null?void 0:V.config_store_id}catch(d){c("error",d)}}),(V,d)=>(e.openBlock(),e.createElementBlock("div",ze,[k.value?(e.openBlock(),e.createBlock(Le,e.mergeProps({key:0},s,{"config-store-id":k.value,"onDelete:success":a,onError:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0f9047e6"]]),Ze=te(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var j;const c=o,s=C,{i18n:{t:u}}=le.useI18n(),a=ie.useRouter(),{axiosInstance:w}=m.useAxios((j=c.config)==null?void 0:j.axiosRequestConfig),{getMessageFromError:k}=m.useErrors(),_=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),f=e.reactive({key:"",value:""}),V=e.computed(()=>{var g,T;return(T=oe.form[(g=c.config)==null?void 0:g.app])==null?void 0:T.edit.replace(/{id}/gi,c.configStoreId).replace(/{secretId}/gi,c.secretId)}),d=()=>{var g;a.push(((g=c.config)==null?void 0:g.cancelRoute)||{name:"secret-list"})},$=g=>{s("loading",g)},q=g=>{s("error",g)},Z=g=>{var T,G;_.fields.key=((T=g==null?void 0:g.item)==null?void 0:T.key)||(g==null?void 0:g.key)||"",_.fields.value=((G=g==null?void 0:g.item)==null?void 0:G.value)||(g==null?void 0:g.value)||"",Object.assign(f,_.fields)},U=e.computed(()=>c.secretId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),r=e.computed(()=>{var g;return`${c.config.apiBaseUrl}${oe.form[c.config.app][U.value]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId).replace(/{secretId}/gi,c.secretId)}),W=e.computed(()=>!!_.fields.key&&!!_.fields.value),X=e.computed(()=>JSON.stringify(_.fields)!==JSON.stringify(f)),B=e.computed(()=>({key:_.fields.key,value:_.fields.value})),O=async()=>{try{_.readonly=!0;let g;U.value==="create"?g=await w.post(r.value,B.value):U.value==="edit"&&(g=await w.put(r.value,B.value)),Z(g==null?void 0:g.data),s("update",g==null?void 0:g.data)}catch(g){_.errorMessage=k(g),s("error",g)}finally{_.readonly=!1}};return(g,T)=>{const G=e.resolveComponent("KInput"),H=e.resolveComponent("KTextArea"),Y=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(m.EntityBaseForm),{"can-submit":W.value&&X.value,config:o.config,"edit-id":o.secretId,"entity-type":e.unref(m.SupportedEntityType).Other,"error-message":_.errorMessage,"fetch-url":V.value,"form-fields":B.value,"is-readonly":_.readonly,onCancel:d,"onFetch:error":q,"onFetch:success":Z,onLoading:$,onSubmit:O},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:_.fields.key,"onUpdate:modelValue":T[0]||(T[0]=L=>_.fields.key=L),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:U.value===e.unref(m.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("secrets.form.fields.key.placeholder"),readonly:_.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(H,{modelValue:_.fields.value,"onUpdate:modelValue":T[1]||(T[1]=L=>_.fields.value=L),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:_.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(Y,{appearance:"warning",message:e.unref(u)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])}}}),[["__scopeId","data-v-eb9c7fc4"]]),Je={class:"kong-ui-entities-secret-form"},Qe=te(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var V;const c=o,s=C,u=d=>{s("update",d)},a=d=>{s("error",d)},w=d=>{s("loading",d)},{axiosInstance:k}=m.useAxios((V=c.config)==null?void 0:V.axiosRequestConfig),_=e.ref(""),f=e.computed(()=>{var d;return`${c.config.apiBaseUrl}${oe.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((d=c.config)==null?void 0:d.controlPlaneId)||"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var d;try{const{data:$}=await k.get(f.value);_.value=(d=$==null?void 0:$.config)==null?void 0:d.config_store_id}catch($){s("error",$)}}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Je,[_.value?(e.openBlock(),e.createBlock(Ze,e.mergeProps({key:0},c,{"config-store-id":_.value,onError:a,onLoading:w,onUpdate:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-02e6d2f3"]]),Xe={class:"vault-secret-picker-provider"},Ye=te(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(o,{emit:C}){const c=o,s=C,{i18n:{t:u},i18nT:a}=le.useI18n();return(w,k)=>(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(e.unref(a),{keypath:"vault_secret_picker.provider.complete_action",scope:"global"},{cta:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"vault-secret-picker-provider-action":!0,disabled:c.disabled}),onClick:k[0]||(k[0]=()=>!c.disabled&&s("open",c.value,c.update))},e.toDisplayString(e.unref(u)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-66a1e406"]]),et=o=>{let C=o.trim();if(!C.startsWith("{")||!C.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(C=C.substring(1,C.length-1).trim(),!C.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const c=new URL(`http://${C.substring(8)}`);if(!c)throw new Error("Invalid secret reference: must have a vault prefix");const s=c.host,[,u,...a]=c.pathname.split("/");if(!s)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:s,secretId:u||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},tt=o=>{if(!o.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${o.vaultPrefix}`;return o.secretId&&(C=`${C}/${o.secretId}`),o.optionalSecretKey&&(C=`${C}/${o.optionalSecretKey}`),`{${C}}`},ot={key:1,class:"inputs-wrapper"},lt={"data-testid":"no-search-results"},at={class:"k-select-selected-item-label"},rt={class:"vault-secret-picker-vault-dropdown-item"},nt={class:"select-item-label"},it={class:"select-item-description"},st={class:"select-item-description"},ct={"data-testid":"no-search-results"},dt=te(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string")},setup:{type:null,required:!1,default:!1}},emits:["proceed","cancel"],setup(o,{emit:C}){var D;const{i18n:{t:c}}=le.useI18n(),s=o,u=C,{axiosInstance:a}=m.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(D=s.config)==null?void 0:D.axiosRequestConfig}),w=e.ref(!1),k=e.ref(""),_=e.ref(""),f=e.ref(""),V=e.ref(),d=e.computed(()=>{var b,y;return s.config.app==="konnect"?oe.list[s.config.app].replace(/{id}/gi,((y=(b=V.value)==null?void 0:b.config)==null?void 0:y.config_store_id)??""):"<not_applicable>"}),$=e.computed(()=>{if(U&&O)return c("vault_secret_picker.fetch_error.vaults_and_secrets");if(U)return c("vault_secret_picker.fetch_error.vaults");if(O)return c("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:q,loading:Z,error:U,loadItems:r,results:W}=m.useDebouncedFilter(s.config,Q.list[s.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:X,loading:B,error:O,loadItems:j,results:g}=m.useDebouncedFilter(s.config,d,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),T=e.computed(()=>{var I;let b=!1;const y=((I=W.value)==null?void 0:I.map(N=>(N.prefix===k.value&&(b=!0),{label:N.prefix,value:N.prefix,vault:N})))??[];return!b&&V.value&&y.push({label:V.value.prefix,value:V.value.prefix,vault:V.value}),y}),G=e.computed(()=>{var I;let b=!1;const y=((I=g.value)==null?void 0:I.map(N=>(N.key===_.value&&(b=!0),{label:N.key,value:N.key})))??[];return!b&&_.value&&y.push({label:_.value,value:_.value}),y}),H=e.computed(()=>{var b;return((b=V==null?void 0:V.value)==null?void 0:b.name)==="konnect"}),Y=e.computed(()=>!!V.value&&!!_.value),L=b=>b.label?`${b.label} - (${b.vault.name} - ${b.vault.id})`:b.value,M=b=>{var I,N;let y=`${s.config.apiBaseUrl}${Q.form[s.config.app].edit}`;return s.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((I=s.config)==null?void 0:I.controlPlaneId)||""):s.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(N=s.config)!=null&&N.workspace?`/${s.config.workspace}`:"")),y.replace(/{id}/gi,b)},x=(b,y)=>{var I;return s.config.app!=="konnect"?"<not_applicable>":`${s.config.apiBaseUrl}${oe.form[s.config.app].edit}`.replace(/{controlPlaneId}/gi,((I=s.config)==null?void 0:I.controlPlaneId)||"").replace(/{id}/gi,y).replace(/{secretId}/gi,b)},P=()=>{u("proceed",tt({vaultPrefix:k.value,secretId:_.value||void 0,optionalSecretKey:f.value||void 0}))};return e.watch(()=>s.setup,async b=>{if(b!==!1){if(w.value=!0,k.value="",V.value=void 0,_.value="",f.value="",typeof b=="string"&&b.trim().length>0)try{let y,I="",N="",F="";const K=et(b),{data:S}=await a.get(M(K.vaultPrefix));if(S!=null&&S.name)if(y=S,I=K.vaultPrefix,y.name==="konnect"){if(K.secretId){const{data:re}=await a.get(x(K.secretId,S.config.config_store_id));re.key===K.secretId&&(N=K.secretId,F=K.optionalSecretKey??"")}}else N=K.secretId??"",F=K.optionalSecretKey??"";await e.nextTick(()=>{k.value=I,V.value=y,_.value=N,f.value=F})}catch(y){console.debug(y)}w.value=!1,await r()}},{immediate:!0}),e.watch(k,async(b,y)=>{var I;w.value||b===y||(V.value=(I=T.value.find(N=>N.value===b))==null?void 0:I.vault,_.value="",f.value="")}),e.watch(d,async()=>{H.value&&await j()},{immediate:!0}),(b,y)=>{const I=e.resolveComponent("KEmptyState"),N=e.resolveComponent("KSelect"),F=e.resolveComponent("KInput"),K=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(K,{"action-button-disabled":!Y.value,"action-button-text":e.unref(c)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:e.unref(c)("vault_secret_picker.title"),visible:s.setup!==!1,onCancel:y[4]||(y[4]=()=>u("cancel")),onProceed:P},{default:e.withCtx(()=>[e.unref(U)||e.unref(O)?(e.openBlock(),e.createBlock(I,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:$.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(N,{modelValue:k.value,"onUpdate:modelValue":y[0]||(y[0]=S=>k.value=S),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:w.value,"enable-filtering":"","filter-function":()=>!0,items:T.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(c)("vault_secret_picker.vault.label"),loading:e.unref(Z),placeholder:e.unref(c)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(q)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",lt,e.toDisplayString(e.unref(c)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:S})=>[e.createElementVNode("span",at,e.toDisplayString(L(S)),1)]),"item-template":e.withCtx(({item:S})=>[e.createElementVNode("div",rt,[e.createElementVNode("span",nt,e.toDisplayString(S.label),1),e.createElementVNode("span",it,e.toDisplayString(S.vault.name),1),e.createElementVNode("span",st,e.toDisplayString(S.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),H.value?(e.openBlock(),e.createBlock(N,{key:0,modelValue:_.value,"onUpdate:modelValue":y[1]||(y[1]=S=>_.value=S),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:w.value||!V.value,"enable-filtering":"","filter-function":()=>!0,items:G.value,"kpop-attributes":{"data-testid":"vault-secret-picker-secret-id-popover"},label:e.unref(c)("vault_secret_picker.secret_id.label"),loading:e.unref(B),placeholder:e.unref(c)("vault_secret_picker.secret_id.select_placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(X)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ct,e.toDisplayString(e.unref(c)("vault_secret_picker.no_results")),1)]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"])):(e.openBlock(),e.createBlock(F,{key:1,modelValue:_.value,"onUpdate:modelValue":y[2]||(y[2]=S=>_.value=S),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:w.value||!V.value,label:e.unref(c)("vault_secret_picker.secret_id.label"),placeholder:e.unref(c)("vault_secret_picker.secret_id.input_placeholder"),required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder"])),e.createVNode(F,{modelValue:f.value,"onUpdate:modelValue":y[3]||(y[3]=S=>f.value=S),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:w.value||!V.value,help:e.unref(c)("vault_secret_picker.optional_secret_key.help"),label:e.unref(c)("vault_secret_picker.optional_secret_key.label"),placeholder:e.unref(c)("vault_secret_picker.optional_secret_key.placeholder"),type:"text"},null,8,["modelValue","disabled","help","label","placeholder"])]))]),_:1},8,["action-button-disabled","action-button-text","title","visible"])}}}),[["__scopeId","data-v-df8552cc"]]);R.SecretForm=Qe,R.SecretList=Ge,R.VaultAuthMethods=A,R.VaultConfigCard=We,R.VaultForm=Fe,R.VaultList=xe,R.VaultProviders=t,R.VaultSecretPicker=dt,R.VaultSecretPickerProvider=Ye,R.secretsEndpoints=oe,R.vaultsEndpoints=Q,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(R,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n"],e):(R=typeof globalThis<"u"?globalThis:R||self,e(R["kong-ui-public-entities-vaults"]={},R.Vue,R.VueRouter,R.KongIcons,R["kong-ui-public-entities-shared"],R["kong-ui-public-i18n"]))})(this,function(R,e,ie,z,m,de){"use strict";const ge={actions:{create:"New vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details",loading:"Loading..."},delete:{title:"Delete a Vault",title_for_secret:"Delete a Secret",description:"This action cannot be reversed."},errors:{general:"Vaults could not be retrieved",delete:"The vault could not be deleted at this time.",copy:"Failed to copy to clipboard"},search:{placeholder_for_vaults:{konnect:"Filter by exact prefix or ID"},placeholder_for_secrets:{konnect:"Filter by exact key"}},vaults:{title:"Vaults",list:{toolbar_actions:{new_vault:"New vault"},table_headers:{prefix:"Prefix",name:"Vault Type",description:"Description",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Vault",description:"Improve the security of your Kong Gateway deployment with centralized secrets."},empty_state_v2:{title:"Configure your first vault",group:"Vaults created in gateways within this group will automatically appear here.",description:"Vaults securely and centrally store sensitive information, such as credentials, tokens, and keys, to simplify secrets management.",create_cta:"New vault"}}},secrets:{title:"Secrets",list:{toolbar_actions:{new_secret:"Store New Secret"},table_headers:{key:"Secret Key",updated_at:"Updated At"},empty_state:{title:"No Secrets Stored",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}},form:{info:{title:"Secret",description:"Enter the secret key and secret value to be stored in Konnect vault"},fields:{key:{label:"Key",placeholder:"Enter key"},value:{label:"Value",placeholder:"Enter value here, can be simple values or multi-line"}},hint:"Once saved, the secret value will not be visible"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},labels:{vault_type:"Vault Type"},form:{sections:{general:{title:"General Information",description:"General information helps identify and manage this Vault instance."},config:{title:"Vault Configuration",description:"Select a type of Vault and configure properties specific to each type of Vault."}},fields:{prefix:{label:"Prefix",placeholder:"Enter a unique prefix for this vault",help:"e.g. my-vault",tooltip:"The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities."},description:{label:"Description",placeholder:"Enter some description for this vault"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}},config:{konnect:{label:"Konnect",description:"Access secrets stored directly in Konnect's unified platform to easily reference in Kong Gateway configuration."},env:{label:"Environment Variables",description:"Access secrets stored via variables to be made available in Kong Gateway at runtime.",fields:{prefix:{label:"Environment Variable Prefix",placeholder:"Enter your environment variable vault prefix",tooltip:"Data plane will access all the environment variables starting with this prefix."}}},aws:{label:"AWS Secrets Manager",description:"Access secrets stored in AWS Secrets Manager for Kong Gateway configuration.",fields:{region:{label:"Region",placeholder:"Select an AWS region",tooltip:"The AWS region your vault is located in",locations:{"us-east-1":{location:"N. Virginia"},"us-east-2":{location:"Ohio"},"us-west-1":{location:"N. California"},"us-west-2":{location:"Oregon"},"af-south-1":{location:"Cape Town"},"ap-east-1":{location:"Hong Kong"},"ap-southeast-3":{location:"Jakarta"},"ap-south-1":{location:"Mumbai"},"ap-northeast-1":{location:"Tokyo"},"ap-northeast-2":{location:"Seoul"},"ap-northeast-3":{location:"Osaka"},"ap-southeast-1":{location:"Singapore"},"ap-southeast-2":{location:"Sydney"},"ca-central-1":{location:"Canada"},"eu-central-1":{location:"Frankfurt"},"eu-west-1":{location:"Ireland"},"eu-west-2":{location:"London"},"eu-west-3":{location:"Paris"},"eu-south-1":{location:"Milan"},"eu-north-1":{location:"Stockholm"},"me-south-1":{location:"Bahrain"},"sa-east-1":{location:"São Paulo"},"us-gov-east-1":{location:"US East"},"us-gov-west-1":{location:"US West"}}},endpoint_url:{label:"Endpoint URL",tooltip:'The AWS SecretsManager service endpoint url. If not specified, the value used by vault will be the official AWS SecretsManager service url which is `https://secretsmanager.<region>.amazonaws.com`. You can specify a complete URL(including the "http/https" scheme) to override the endpoint that vault will connect to.'},assume_role_arn:{label:"Assume Role ARN",tooltip:"The target AWS IAM role ARN that will be assumed. Typically this is used for operating between multiple roles or cross-accounts. If you are not using assume role you should not specify this value."},role_session_name:{label:"Role Session Name",tooltip:"The role session name used for role assuming."},sts_endpoint_url:{label:"STS Endpoint URL",tooltip:"The custom STS endpoint URL used for role assuming in AWS Vault. Note that this value will override the default STS endpoint URL(which should be `https: //sts.amazonaws.com`, or `https: //sts.<region>.amazonaws.com` if you have `AWS_STS_REGIONAL_ENDPOINTS` set to `regional`). If you are not using private VPC endpoint for STS service, you should not specify this value."}}},gcp:{label:"Google Secret Manager",description:"Access secrets stored in Google Secret Manager for Kong Gateway configuration.",fields:{project_id:{label:"Project ID",placeholder:"Enter your Google Cloud Project ID",tooltip:{text:"Visit your Google API Console and select {italic-text} in the projects list to see your project ID",italicText:"Manage all projects"}}}},hcv:{label:"HashiCorp Vault",description:"Access secrets stored in HashiCorp Vault for Kong Gateway configuration.",fields:{protocol:{label:"Protocol"},host:{label:"Host"},port:{label:"Port"},mount:{label:"Mount"},kv:{label:"Kv"},namespace:{label:"Namespace"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},conjur:{label:"Conjur Vault",description:"Access secrets stored in Conjur Key Vault for Kong Gateway configuration.",fields:{endpoint_url:{label:"Endpoint URL"},login:{label:"Login"},api_token:{label:"API Token"}}},advancedFields:{title:"View Advanced Fields",ttl:"Time-to-Live",ttlTooltip:"Time-to-live (in seconds) of a secret from a vault when cached by this reference",negTtl:"Negative Time-to-Live",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret)",resurrectTtl:"Time-to-Live Resurrection",resurrectTtlTooltip:"Time (in seconds) for which stale secrets from the vault are resurrected for when they cannot be refreshed"}},unavailable:"This vault provider is available on Enterprise."},vault_secret_picker:{title:"Look up Key in Vault",vault:{label:"Vault",placeholder:"Select a vault"},secret_id:{label:"Secret ID",input_placeholder:"Enter a secret ID",select_placeholder:"Select or enter a complete secret ID"},optional_secret_key:{label:"Secret Key",placeholder:"Enter the key or key path to access a nested secret value",help:"Optional. e.g. tokens, tokens/refresh_token"},fetch_error:{vaults:"Could not fetch available vaults",secrets:"Could not fetch available secrets",vaults_and_secrets:"Could not fetch available vaults and secrets"},no_results:"No results found",actions:{use_key:"Use Key"},provider:{complete_action:"Look up {cta}",cta:"Key in Vault"}}};function ye(){const o=de.createI18n("en-us",ge);return{i18n:o,i18nT:de.i18nTComponent(o)}}const le={useI18n:ye},se="/v2/control-planes/{controlPlaneId}/core-entities",fe="/v2/control-planes/{controlPlaneId}/config-stores",ce="/{workspace}",Q={list:{konnect:{getAll:`${se}/vaults`,deleteConfigStore:`${fe}/{id}?force=true`},kongManager:{getAll:`${ce}/vaults`}},form:{konnect:{create:`${se}/vaults`,createConfigStore:fe,edit:`${se}/vaults/{id}`},kongManager:{create:`${ce}/vaults`,edit:`${ce}/vaults/{id}`}}},be="#00abd2",_e="24px",he={class:"kong-ui-entities-vaults-list"},Ve={class:"button-row"},ke={class:"empty-state-icon-gateway"},Ce={class:"table-content-overflow-wrapper"},we={class:"table-content-overflow-wrapper"},Ee=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.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},enableV2EmptyStates:{type:Boolean,default:!1}},emits:["error","click:learn-more","copy:success","copy:error","delete:success"],setup(o,{emit:C}){var re;const c=C,s=o,{i18n:{t:u}}=le.useI18n(),a=ie.useRouter(),{axiosInstance:w}=m.useAxios((re=s.config)==null?void 0:re.axiosRequestConfig),{hasRecords:k,handleStateChange:_}=m.useTableState(()=>U.value),f=e.computed(()=>k.value&&s.config.app==="konnect"),V=e.computed(()=>!s.enableV2EmptyStates&&s.config.app==="konnect"),d=e.computed(()=>s.config.app!=="kongManager"||!!s.config.disableSorting),$={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},q=$,Z=e.computed(()=>{var n,l;let h=`${s.config.apiBaseUrl}${Q.list[s.config.app].getAll}`;return s.config.app==="konnect"?h=h.replace(/{controlPlaneId}/gi,((n=s.config)==null?void 0:n.controlPlaneId)||""):s.config.app==="kongManager"&&(h=h.replace(/\/{workspace}/gi,(l=s.config)!=null&&l.workspace?`/${s.config.workspace}`:"")),h}),U=e.ref(""),r=e.computed(()=>{if(s.config.app==="konnect"||s.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder_for_vaults.konnect")};const{prefix:n,name:l}=$;return{isExactMatch:!1,fields:{name:l,prefix:n},schema:s.config.filterSchema}}),{fetcher:W,fetcherState:X,fetcherCacheKey:B}=m.useFetcher({...s.config,cacheIdentifier:s.cacheIdentifier},Z.value),O=()=>{U.value=""},j=()=>{B.value++},g=e.ref(null),T=async(h,n)=>{const l=h.id;if(!await n(l)){c("copy:error",{entity:h,field:"id",message:u("errors.copy")});return}c("copy:success",{entity:h,field:"id",message:u("copy.success",{val:l})})},G=async(h,n)=>{const l=JSON.stringify(h);if(!await n(l)){c("copy:error",{entity:h,message:u("errors.copy")});return}c("copy:success",{entity:h,message:u("copy.success_brief")})},H=async h=>{var l;await((l=s.canRetrieve)==null?void 0:l.call(s,h))&&a.push(s.config.getViewRoute(h.id))},Y=h=>({label:u("actions.view"),to:s.config.getViewRoute(h)}),L=h=>({label:u("actions.edit"),to:s.config.getEditRoute(h)}),M=e.ref(void 0),x=e.ref(!1),P=e.ref(!1),D=e.ref(""),b=m.useDeleteUrlBuilder(s.config,Z.value),y=h=>{M.value=h,x.value=!0},I=()=>{x.value=!1},N=async h=>{const{apiBaseUrl:n,app:l,controlPlaneId:E}=s.config,v=`${n}${Q.list[l].deleteConfigStore}`.replace(/{controlPlaneId}/gi,E||"").replace(/{id}/gi,h);try{await w.delete(v)}catch{}},F=async()=>{var h,n,l,E;if((h=M.value)!=null&&h.id){P.value=!0;try{await w.delete(b(M.value.id)),s.config.app==="konnect"&&((n=M.value.config)!=null&&n.config_store_id)&&N(M.value.config.config_store_id),P.value=!1,x.value=!1,B.value++,c("delete:success",M.value)}catch(v){D.value=((E=(l=v.response)==null?void 0:l.data)==null?void 0:E.message)||v.message||u("errors.delete"),c("error",v)}finally{P.value=!1}}},K=()=>{a.push(s.config.createRoute)};e.watch(X,h=>{var n,l,E;if(h.status===m.FetcherStatus.Error){g.value={title:u("errors.general")},(E=(l=(n=h.error)==null?void 0:n.response)==null?void 0:l.data)!=null&&E.message&&(g.value.message=h.error.response.data.message),c("error",h.error);return}g.value=null});const S=e.ref({ctaPath:s.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${s.config.additionMessageForEmptyState?` ${s.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")});return e.onBeforeMount(async()=>{await s.canCreate()&&(S.value.title=u("vaults.list.empty_state.title"),S.value.ctaText=u("actions.create"))}),(h,n)=>{const l=e.resolveComponent("KButton"),E=e.resolveComponent("KDropdownItem"),v=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":d.value,"empty-state-options":S.value,"enable-entity-actions":"","error-message":g.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(B),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:U.value,"table-headers":e.unref(q),onClearSearchInput:O,"onClick:row":n[4]||(n[4]=p=>H(p)),onSort:j,onState:e.unref(_)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:U.value,"onUpdate:modelValue":n[0]||(n[0]=p=>U.value=p),config:r.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[f.value?(e.openBlock(),e.createBlock(l,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:n[1]||(n[1]=p=>h.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(l,{appearance:"primary","data-testid":"toolbar-add-vault",size:o.useActionOutside?"medium":"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:p})=>[e.createElementVNode("div",Ce,[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)])]),name:e.withCtx(({rowValue:p})=>[e.createElementVNode("b",null,e.toDisplayString(p??"-"),1)]),description:e.withCtx(({rowValue:p})=>[e.createElementVNode("div",we,e.toDisplayString(p??"-"),1)]),tags:e.withCtx(({rowValue:p})=>[e.createVNode(e.unref(m.TableTags),{tags:p},null,8,["tags"])]),actions:e.withCtx(({row:p})=>[e.createVNode(v,null,{default:e.withCtx(({copyToClipboard:J})=>[e.createVNode(E,{"data-testid":"action-entity-copy-id",onClick:ee=>T(p,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(v,null,{default:e.withCtx(({copyToClipboard:J})=>[e.createVNode(E,{"data-testid":"action-entity-copy-json",onClick:ee=>G(p,J)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-view","has-divider":"",item:Y(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canEdit(p)},{default:e.withCtx(()=>[e.createVNode(E,{"data-testid":"action-entity-edit",item:L(p.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canDelete(p)},{default:e.withCtx(()=>[e.createVNode(E,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:J=>y(p)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!e.unref(k)&&V.value?{name:"outside-actions",fn:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(l,{appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:n[2]||(n[2]=p=>h.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})],8,["disabled"]))]),key:"0"}:void 0,!U.value&&o.enableV2EmptyStates&&o.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var p;return[e.createVNode(e.unref(m.EntityEmptyState),{"action-button-text":e.unref(u)("vaults.list.toolbar_actions.new_vault"),appearance:"secondary","can-create":()=>o.canCreate(),"data-testid":"vaults-entity-empty-state",description:e.unref(u)("vaults.list.empty_state_v2.description"),"learn-more":o.config.app==="konnect",title:e.unref(u)("vaults.list.empty_state_v2.title"),"onClick:create":K,"onClick:learnMore":n[3]||(n[3]=J=>h.$emit("click:learn-more"))},e.createSlots({image:e.withCtx(()=>[e.createElementVNode("div",ke,[e.createVNode(e.unref(z.SecurityIcon),{color:e.unref(be),size:e.unref(_e)},null,8,["color","size"])])]),_:2},[(p=o.config)!=null&&p.isControlPlaneGroup?{name:"message",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["action-button-text","can-create","description","learn-more","title"])]}),key:"1"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":P.value,description:e.unref(u)("delete.description"),"entity-name":M.value&&(M.value.prefix||M.value.id),"entity-type":e.unref(m.EntityTypes).Vault,error:D.value,title:e.unref(u)("delete.title"),visible:x.value,onCancel:I,onProceed:F},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(o,C)=>{const c=o.__vccOpts||o;for(const[s,u]of C)c[s]=u;return c},xe=te(Ee,[["__scopeId","data-v-8b4601f8"]]);var t=(o=>(o.AWS="aws",o.GCP="gcp",o.HCV="hcv",o.ENV="env",o.AZURE="azure",o.KONNECT="konnect",o.CONJUR="conjur",o))(t||{}),A=(o=>(o.TOKEN="token",o.K8S="kubernetes",o.APP_ROLE="approle",o))(A||{});const Ne={class:"kong-ui-entities-vault-form"},Se={class:"vault-form-provider-cards-container"},Ie=["data-testid"],ve={class:"provider-item-title-container"},Re={class:"provider-item-title"},Ae={class:"provider-item-description"},Ue={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Te={key:0,class:"vault-form-config-auth-method-container"},$e={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},Pe={key:6},Ke={class:"wrapper"},Me={class:"item-50"},De={class:"item-50"},Oe={class:"wrapper"},He={class:"item-100"},Fe=te(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var h;const c=o,s=C,{i18nT:u,i18n:{t:a}}=le.useI18n(),w=ie.useRouter(),{axiosInstance:k}=m.useAxios((h=c.config)==null?void 0:h.axiosRequestConfig),{getMessageFromError:_}=m.useErrors(),f=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),V=e.reactive({prefix:"",description:"",tags:""}),d=e.ref(c.config.konnectConfigStoreAvailable?t.KONNECT:t.ENV),$=e.ref(null),q=e.ref(),Z=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(d.value)),U=e.computed(()=>[...c.config.konnectConfigStoreAvailable?[{label:a("form.config.konnect.label"),value:t.KONNECT}]:[],{label:a("form.config.env.label"),value:t.ENV},{label:a("form.config.aws.label"),value:t.AWS,disabled:!H.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!H.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!H.value},...c.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!H.value}]:[],...c.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!H.value}]:[]]),r=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:A.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""},[t.CONJUR]:{}}),W=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:A.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""},[t.CONJUR]:{}}),X=[{label:`${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${a("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${a("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${a("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${a("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${a("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${a("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${a("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${a("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],B=[{label:"secrets",value:"secrets"}],O=[{label:"http",value:"http"},{label:"https",value:"https"}],j=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],g=e.computed(()=>c.vaultId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),T=e.computed(()=>{var n,l;return(l=Q.form[(n=c.config)==null?void 0:n.app])==null?void 0:l.edit}),G=e.computed(()=>g.value===m.EntityBaseFormType.Edit&&c.config.app==="kongManager"),H=e.computed(()=>c.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:c.config.gatewayInfo,supportedRange:{enterprise:[]}})),Y=()=>{var n;w.push(((n=c.config)==null?void 0:n.cancelRoute)||{name:"vault-list"})},L=n=>{s("loading",n)},M=n=>{s("error",n)},x=n=>{switch(n){case t.KONNECT:return z.KongIcon;case t.ENV:return z.CodeIcon;case t.AWS:return z.AwsIcon;case t.GCP:return z.GoogleCloudIcon;case t.HCV:return z.HashicorpIcon;case t.AZURE:return z.AzureIcon;case t.CONJUR:return z.KongIcon}},P=n=>{switch(n){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},D=n=>{var v,p,J,ee,ae,i;f.fields.prefix=((v=n==null?void 0:n.item)==null?void 0:v.prefix)||(n==null?void 0:n.prefix)||"",f.fields.description=((p=n==null?void 0:n.item)==null?void 0:p.description)||(n==null?void 0:n.description)||"";const l=((J=n==null?void 0:n.item)==null?void 0:J.tags)||(n==null?void 0:n.tags)||[];f.fields.tags=(l==null?void 0:l.join(", "))||"",Object.assign(V,f.fields);const E=((ee=n==null?void 0:n.item)==null?void 0:ee.config)||(n==null?void 0:n.config)||null;E&&(Object.keys(E).length||(n==null?void 0:n.name)===t.KONNECT)?(d.value=((ae=n==null?void 0:n.item)==null?void 0:ae.name)||(n==null?void 0:n.name)||"",$.value=d.value,q.value=((i=n==null?void 0:n.config)==null?void 0:i.config_store_id)||void 0,Object.assign(r[d.value],E),Object.assign(W[d.value],E)):f.errorMessage="Error loading vault config"},b=e.computed(()=>d.value===t.HCV?!Object.keys(r[t.HCV]).filter(n=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(n)||r[t.HCV].auth_method!==A.K8S&&(n==="kube_role"||n==="kube_api_token_file")||r[t.HCV].auth_method!==A.TOKEN&&n==="token"||r[t.HCV].auth_method!==A.APP_ROLE&&(n==="approle_role_id"||n==="approle_response_wrapping")||r[t.HCV].auth_method===A.APP_ROLE&&n==="approle_response_wrapping"&&typeof r[d.value][n]=="boolean"?!1:!r[d.value][n]).length:d.value===t.AZURE?!Object.keys(r[t.AZURE]).filter(n=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(n)?!1:!r[d.value][n]).length:d.value===t.AWS?!Object.keys(r[t.AWS]).filter(n=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(n)?!1:!r[d.value][n]).length:!Object.keys(r[d.value]).filter(n=>["ttl","neg_ttl","resurrect_ttl"].includes(n)?!1:!r[d.value][n]).length),y=e.computed(()=>!!f.fields.prefix&&b.value),I=e.computed(()=>JSON.stringify(f.fields)!==JSON.stringify(V)||d.value!==$.value||JSON.stringify(r[d.value])!==JSON.stringify(W[d.value])),N=e.computed(()=>{var l,E;let n=`${c.config.apiBaseUrl}${Q.form[c.config.app][g.value]}`;return c.config.app==="konnect"?n=n.replace(/{controlPlaneId}/gi,((l=c.config)==null?void 0:l.controlPlaneId)||""):c.config.app==="kongManager"&&(n=n.replace(/\/{workspace}/gi,(E=c.config)!=null&&E.workspace?`/${c.config.workspace}`:"")),n=n.replace(/{id}/gi,c.vaultId),n}),F=e.computed(()=>{var ee,ae;const n={protocol:r[t.HCV].protocol,host:r[t.HCV].host,port:parseInt(r[t.HCV].port.toString()),mount:r[t.HCV].mount,kv:r[t.HCV].kv,namespace:r[t.HCV].namespace||null,auth_method:r[t.HCV].auth_method,...r[t.HCV].auth_method===A.TOKEN&&{token:r[t.HCV].token},...r[t.HCV].auth_method===A.K8S&&{kube_role:r[t.HCV].kube_role,kube_auth_path:r[t.HCV].kube_auth_path||void 0,kube_api_token_file:r[t.HCV].kube_api_token_file,token:null},...r[t.HCV].auth_method===A.APP_ROLE&&{approle_auth_path:r[t.HCV].approle_auth_path||void 0,approle_role_id:r[t.HCV].approle_role_id,approle_secret_id:r[t.HCV].approle_secret_id||void 0,approle_secret_id_file:r[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:r[t.HCV].approle_response_wrapping??!1}},l={...r[d.value],client_id:r[d.value].client_id||null,tenant_id:r[d.value].tenant_id||null},E={...r[d.value],endpoint_url:r[d.value].endpoint_url||null,assume_role_arn:r[d.value].assume_role_arn||null,...c.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:r[d.value].sts_endpoint_url||null}:{}};let v=r[d.value];d.value===t.HCV?v=n:d.value===t.AZURE?v=l:d.value===t.AWS&&(v=E);let p={};if(![t.KONNECT,t.ENV].includes(d.value)){const i=r[d.value],ue=i.ttl,pe=i.neg_ttl,me=i.resurrect_ttl;p={ttl:ue?parseInt(ue.toString(),10):null,neg_ttl:pe?parseInt(pe.toString(),10):null,resurrect_ttl:me?parseInt(me.toString(),10):null}}return{prefix:f.fields.prefix,description:f.fields.description||null,tags:(ae=(ee=f.fields.tags.split(","))==null?void 0:ee.map(i=>String(i||"").trim()))==null?void 0:ae.filter(i=>i!==""),name:d.value,config:{...v,...p}}}),K=e.computed(()=>({...F.value,config:{...F.value.config,config_store_id:q.value}})),S=async()=>{var n;try{f.isReadonly=!0;const l=`${c.config.apiBaseUrl}${Q.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((n=c.config)==null?void 0:n.controlPlaneId)||""),E=await k.post(l);return E==null?void 0:E.data.id}catch(l){f.errorMessage=_(l),s("error",l)}finally{f.isReadonly=!1}},re=async()=>{var n;try{f.isReadonly=!0;let l;g.value==="create"?d.value===t.KONNECT?(q.value=await S(),l=await k.post(N.value,K.value)):l=await k.post(N.value,F.value):g.value==="edit"&&(d.value===t.KONNECT&&!q.value?(q.value=await S(),l=await k.put(N.value,K.value)):l=((n=c.config)==null?void 0:n.app)==="konnect"?await k.put(N.value,K.value):await k.patch(N.value,F.value)),D(l==null?void 0:l.data),s("update",l==null?void 0:l.data)}catch(l){f.errorMessage=_(l),s("error",l)}finally{f.isReadonly=!1}};return(n,l)=>{const E=e.resolveComponent("KTooltip"),v=e.resolveComponent("KSelect"),p=e.resolveComponent("KInput"),J=e.resolveComponent("KCheckbox"),ee=e.resolveComponent("KCollapse"),ae=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":y.value&&I.value,config:o.config,"edit-id":o.vaultId,"entity-type":e.unref(m.SupportedEntityType).Vault,"error-message":f.errorMessage,"fetch-url":T.value,"form-fields":F.value,"is-readonly":f.isReadonly,onCancel:Y,"onFetch:error":M,"onFetch:success":D,onLoading:L,onSubmit:re},{default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createVNode(v,{modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=i=>d.value=i),"data-testid":"provider-select",disabled:G.value,"dropdown-max-height":"500",items:U.value},{"selected-item-template":e.withCtx(({item:i})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.value)))),e.createElementVNode("span",null,e.toDisplayString(i==null?void 0:i.label),1)]),"item-template":e.withCtx(({item:i})=>[e.createVNode(E,{placement:"top",text:i.disabled?e.unref(a)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${i.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(x(i.value)))),e.createElementVNode("div",ve,[e.createElementVNode("span",Re,e.toDisplayString(i==null?void 0:i.label),1),e.createElementVNode("span",Ae,e.toDisplayString(P(i.value)),1)])],8,Ie)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[d.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(p,{modelValue:r[e.unref(t).ENV].prefix,"onUpdate:modelValue":l[1]||(l[1]=i=>r[e.unref(t).ENV].prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix","is-readonly":f.isReadonly,label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(v,{modelValue:r[e.unref(t).AWS].region,"onUpdate:modelValue":l[2]||(l[2]=i=>r[e.unref(t).AWS].region=i),"data-testid":"vault-form-config-aws-region",items:X,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":l[3]||(l[3]=i=>r[e.unref(t).AWS].endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":l[4]||(l[4]=i=>r[e.unref(t).AWS].assume_role_arn=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(p,{modelValue:r[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":l[5]||(l[5]=i=>r[e.unref(t).AWS].role_session_name=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),o.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(p,{key:0,modelValue:r[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":l[6]||(l[6]=i=>r[e.unref(t).AWS].sts_endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).GCP].project_id,"onUpdate:modelValue":l[7]||(l[7]=i=>r[e.unref(t).GCP].project_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","is-readonly","label","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(v,{modelValue:r[e.unref(t).HCV].protocol,"onUpdate:modelValue":l[8]||(l[8]=i=>r[e.unref(t).HCV].protocol=i),"data-testid":"vault-form-config-hcv-protocol",items:O,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].host,"onUpdate:modelValue":l[9]||(l[9]=i=>r[e.unref(t).HCV].host=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.host.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].port,"onUpdate:modelValue":l[10]||(l[10]=i=>r[e.unref(t).HCV].port=i),autocomplete:"off","data-testid":"vault-form-config-hcv-port","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",required:"",type:"number"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].mount,"onUpdate:modelValue":l[11]||(l[11]=i=>r[e.unref(t).HCV].mount=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.mount.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).HCV].kv,"onUpdate:modelValue":l[12]||(l[12]=i=>r[e.unref(t).HCV].kv=i),"data-testid":"vault-form-config-hcv-kv",items:j,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].namespace,"onUpdate:modelValue":l[13]||(l[13]=i=>r[e.unref(t).HCV].namespace=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.namespace.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).HCV].auth_method,"onUpdate:modelValue":l[14]||(l[14]=i=>r[e.unref(t).HCV].auth_method=i),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(A).TOKEN,value:e.unref(A).TOKEN},{label:e.unref(A).K8S,value:e.unref(A).K8S},...o.config.hcvAppRoleMethodAvailable?[{label:e.unref(A).APP_ROLE,value:e.unref(A).APP_ROLE}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),r[e.unref(t).HCV].auth_method===e.unref(A).TOKEN?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].token,"onUpdate:modelValue":l[15]||(l[15]=i=>r[e.unref(t).HCV].token=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.token.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):r[e.unref(t).HCV].auth_method===e.unref(A).K8S?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_role,"onUpdate:modelValue":l[16]||(l[16]=i=>r[e.unref(t).HCV].kube_role=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_role.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":l[17]||(l[17]=i=>r[e.unref(t).HCV].kube_auth_path=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":l[18]||(l[18]=i=>r[e.unref(t).HCV].kube_api_token_file=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):r[e.unref(t).HCV].auth_method===e.unref(A).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":l[19]||(l[19]=i=>r[e.unref(t).HCV].approle_auth_path=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":l[20]||(l[20]=i=>r[e.unref(t).HCV].approle_role_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":l[21]||(l[21]=i=>r[e.unref(t).HCV].approle_secret_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":l[22]||(l[22]=i=>r[e.unref(t).HCV].approle_secret_id_file=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file","is-readonly":f.isReadonly,label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(J,{modelValue:r[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":l[23]||(l[23]=i=>r[e.unref(t).HCV].approle_response_wrapping=i),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).AZURE].location,"onUpdate:modelValue":l[24]||(l[24]=i=>r[e.unref(t).AZURE].location=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.location.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":l[25]||(l[25]=i=>r[e.unref(t).AZURE].vault_uri=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.vault_uri.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":l[26]||(l[26]=i=>r[e.unref(t).AZURE].credentials_prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(v,{modelValue:r[e.unref(t).AZURE].type,"onUpdate:modelValue":l[27]||(l[27]=i=>r[e.unref(t).AZURE].type=i),"data-testid":"vault-form-config-azure-type",items:B,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:f.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].client_id,"onUpdate:modelValue":l[28]||(l[28]=i=>r[e.unref(t).AZURE].client_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.client_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":l[29]||(l[29]=i=>r[e.unref(t).AZURE].tenant_id=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id","is-readonly":f.isReadonly,label:e.unref(a)("form.config.azure.fields.tenant_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),d.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":l[30]||(l[30]=i=>r[e.unref(t).CONJUR].endpoint_url=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].login,"onUpdate:modelValue":l[31]||(l[31]=i=>r[e.unref(t).CONJUR].login=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.login.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(p,{modelValue:r[e.unref(t).CONJUR].api_token,"onUpdate:modelValue":l[32]||(l[32]=i=>r[e.unref(t).CONJUR].api_token=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_token","is-readonly":f.isReadonly,label:e.unref(a)("form.config.conjur.fields.api_token.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),o.config.ttl?(e.openBlock(),e.createElementBlock("div",Pe,[Z.value?(e.openBlock(),e.createBlock(ee,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ke,[e.createElementVNode("div",Me,[e.createVNode(p,{modelValue:r[d.value].ttl,"onUpdate:modelValue":l[33]||(l[33]=i=>r[d.value].ttl=i),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",De,[e.createVNode(p,{modelValue:r[d.value].neg_ttl,"onUpdate:modelValue":l[34]||(l[34]=i=>r[d.value].neg_ttl=i),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Oe,[e.createElementVNode("div",He,[e.createVNode(p,{modelValue:r[d.value].resurrect_ttl,"onUpdate:modelValue":l[35]||(l[35]=i=>r[d.value].resurrect_ttl=i),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.resurrectTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(p,{modelValue:f.fields.prefix,"onUpdate:modelValue":l[36]||(l[36]=i=>f.fields.prefix=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),"is-readonly":f.isReadonly,label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","help","is-readonly","label","label-attributes","placeholder"]),e.createVNode(ae,{modelValue:f.fields.description,"onUpdate:modelValue":l[37]||(l[37]=i=>f.fields.description=i),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:f.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(p,{modelValue:f.fields.tags,"onUpdate:modelValue":l[38]||(l[38]=i=>f.fields.tags=i),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),"is-readonly":f.isReadonly,label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","is-readonly","label","placeholder"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-d616cf9a"]]),qe={class:"kong-ui-vault-entity-config-card"},We=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const C=o,c=e.computed(()=>{var a,w;return(w=Q.form[(a=C.config)==null?void 0:a.app])==null?void 0:w.edit}),{i18n:{t:s}}=le.useI18n(),u=e.ref({id:{},name:{label:s("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:m.ConfigurationSchemaSection.Basic},description:{order:6,section:m.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:m.ConfigurationSchemaType.Json}});return(a,w)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":u.value,"entity-type":e.unref(m.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":o.hideTitle,"onFetch:error":w[0]||(w[0]=k=>a.$emit("fetch:error",k)),"onFetch:success":w[1]||(w[1]=k=>a.$emit("fetch:success",k)),onLoading:w[2]||(w[2]=k=>a.$emit("loading",k))},null,8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),ne="/v2/control-planes/{controlPlaneId}",oe={getVault:{konnect:`${ne}/core-entities/vaults/{id}`},list:{konnect:`${ne}/config-stores/{id}/secrets`},form:{konnect:{create:`${ne}/config-stores/{id}/secrets`,edit:`${ne}/config-stores/{id}/secrets/{secretId}`}}},je={class:"table-content-overflow-wrapper"},Le=te(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.getEditRoute)},configStoreId:{type:String,required:!0},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}},emits:["error","delete:success"],setup(o,{emit:C}){var M;const c=C,s=o,{i18n:{t:u,formatUnixTimeStamp:a}}=le.useI18n(),{axiosInstance:w}=m.useAxios((M=s.config)==null?void 0:M.axiosRequestConfig),_={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},f=x=>({"data-testid":x.key}),V=e.computed(()=>{var x;return`${s.config.apiBaseUrl}${oe.list[s.config.app]}`.replace(/{controlPlaneId}/gi,((x=s.config)==null?void 0:x.controlPlaneId)||"").replace(/{id}/gi,s.configStoreId||"")}),d=e.ref(""),$={isExactMatch:!0,placeholder:u("search.placeholder_for_secrets.konnect")},{fetcher:q,fetcherState:Z,fetcherCacheKey:U}=m.useFetcher({...s.config,cacheIdentifier:s.cacheIdentifier},V.value),r=()=>{d.value=""},W=e.ref(null),X=x=>({label:u("actions.edit"),to:s.config.getEditRoute(x)}),B=e.ref(void 0),O=e.ref(!1),j=e.ref(!1),g=e.ref(""),T=m.useDeleteUrlBuilder(s.config,V.value),G=x=>{B.value=x,O.value=!0},H=()=>{O.value=!1},Y=async()=>{var x,P,D;if((x=B.value)!=null&&x.key){j.value=!0;try{await w.delete(T(B.value.key)),j.value=!1,O.value=!1,U.value++,c("delete:success",B.value)}catch(b){g.value=((D=(P=b.response)==null?void 0:P.data)==null?void 0:D.message)||b.message||u("errors.delete"),c("error",b)}finally{j.value=!1}}};e.watch(Z,x=>{var P,D,b;if(x.status===m.FetcherStatus.Error){W.value={title:u("errors.general")},(b=(D=(P=x.error)==null?void 0:P.response)==null?void 0:D.data)!=null&&b.message&&(W.value.message=x.error.response.data.message),c("error",x.error);return}W.value=null});const L=e.ref({ctaPath:s.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${s.config.additionMessageForEmptyState?` ${s.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await s.canCreate()&&(L.value.title=u("secrets.list.empty_state.title"),L.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(x,P)=>{const D=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":"","empty-state-options":L.value,"enable-entity-actions":"","error-message":W.value,fetcher:e.unref(q),"fetcher-cache-key":e.unref(U),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:d.value,"row-attributes":f,"table-headers":e.unref(_),onClearSearchInput:r},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":P[0]||(P[0]=y=>d.value=y),config:$},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(D,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:y})=>[e.createElementVNode("div",je,[e.createElementVNode("b",null,e.toDisplayString(y??"-"),1)])]),updated_at:e.withCtx(({rowValue:y})=>[e.createElementVNode("span",null,e.toDisplayString(y?e.unref(a)(new Date(y).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:y})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canEdit(y)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:X(y.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>o.canDelete(y)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:I=>G(y)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":j.value,description:e.unref(u)("delete.description"),"entity-name":B.value&&B.value.key,"entity-type":e.unref(m.EntityTypes).Secret,error:g.value,title:e.unref(u)("delete.title_for_secret"),visible:O.value,onCancel:H,onProceed:Y},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-074727f7"]]),ze={class:"kong-ui-entities-secrets-list"},Ge=te(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.getEditRoute)},vaultId:{type:String,required:!0},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}},emits:["error","delete:success"],setup(o,{emit:C}){var f;const c=C,s=o,u=V=>{c("error",V)},a=V=>{c("delete:success",V)},{axiosInstance:w}=m.useAxios((f=s.config)==null?void 0:f.axiosRequestConfig),k=e.ref(""),_=e.computed(()=>{var V;return`${s.config.apiBaseUrl}${oe.getVault[s.config.app]}`.replace(/{controlPlaneId}/gi,((V=s.config)==null?void 0:V.controlPlaneId)||"").replace(/{id}/gi,s.vaultId)});return e.onBeforeMount(async()=>{var V;try{const{data:d}=await w.get(_.value);k.value=(V=d==null?void 0:d.config)==null?void 0:V.config_store_id}catch(d){c("error",d)}}),(V,d)=>(e.openBlock(),e.createElementBlock("div",ze,[k.value?(e.openBlock(),e.createBlock(Le,e.mergeProps({key:0},s,{"config-store-id":k.value,"onDelete:success":a,onError:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-0f9047e6"]]),Ze=te(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var j;const c=o,s=C,{i18n:{t:u}}=le.useI18n(),a=ie.useRouter(),{axiosInstance:w}=m.useAxios((j=c.config)==null?void 0:j.axiosRequestConfig),{getMessageFromError:k}=m.useErrors(),_=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),f=e.reactive({key:"",value:""}),V=e.computed(()=>{var g,T;return(T=oe.form[(g=c.config)==null?void 0:g.app])==null?void 0:T.edit.replace(/{id}/gi,c.configStoreId).replace(/{secretId}/gi,c.secretId)}),d=()=>{var g;a.push(((g=c.config)==null?void 0:g.cancelRoute)||{name:"secret-list"})},$=g=>{s("loading",g)},q=g=>{s("error",g)},Z=g=>{var T,G;_.fields.key=((T=g==null?void 0:g.item)==null?void 0:T.key)||(g==null?void 0:g.key)||"",_.fields.value=((G=g==null?void 0:g.item)==null?void 0:G.value)||(g==null?void 0:g.value)||"",Object.assign(f,_.fields)},U=e.computed(()=>c.secretId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),r=e.computed(()=>{var g;return`${c.config.apiBaseUrl}${oe.form[c.config.app][U.value]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId).replace(/{secretId}/gi,c.secretId)}),W=e.computed(()=>!!_.fields.key&&!!_.fields.value),X=e.computed(()=>JSON.stringify(_.fields)!==JSON.stringify(f)),B=e.computed(()=>({key:_.fields.key,value:_.fields.value})),O=async()=>{try{_.readonly=!0;let g;U.value==="create"?g=await w.post(r.value,B.value):U.value==="edit"&&(g=await w.put(r.value,B.value)),Z(g==null?void 0:g.data),s("update",g==null?void 0:g.data)}catch(g){_.errorMessage=k(g),s("error",g)}finally{_.readonly=!1}};return(g,T)=>{const G=e.resolveComponent("KInput"),H=e.resolveComponent("KTextArea"),Y=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(m.EntityBaseForm),{"can-submit":W.value&&X.value,config:o.config,"edit-id":o.secretId,"entity-type":e.unref(m.SupportedEntityType).Other,"error-message":_.errorMessage,"fetch-url":V.value,"form-fields":B.value,"is-readonly":_.readonly,onCancel:d,"onFetch:error":q,"onFetch:success":Z,onLoading:$,onSubmit:O},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(G,{modelValue:_.fields.key,"onUpdate:modelValue":T[0]||(T[0]=L=>_.fields.key=L),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:U.value===e.unref(m.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("secrets.form.fields.key.placeholder"),readonly:_.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(H,{modelValue:_.fields.value,"onUpdate:modelValue":T[1]||(T[1]=L=>_.fields.value=L),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:_.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(Y,{appearance:"warning",message:e.unref(u)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])}}}),[["__scopeId","data-v-eb9c7fc4"]]),Je={class:"kong-ui-entities-secret-form"},Qe=te(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var V;const c=o,s=C,u=d=>{s("update",d)},a=d=>{s("error",d)},w=d=>{s("loading",d)},{axiosInstance:k}=m.useAxios((V=c.config)==null?void 0:V.axiosRequestConfig),_=e.ref(""),f=e.computed(()=>{var d;return`${c.config.apiBaseUrl}${oe.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((d=c.config)==null?void 0:d.controlPlaneId)||"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var d;try{const{data:$}=await k.get(f.value);_.value=(d=$==null?void 0:$.config)==null?void 0:d.config_store_id}catch($){s("error",$)}}),(d,$)=>(e.openBlock(),e.createElementBlock("div",Je,[_.value?(e.openBlock(),e.createBlock(Ze,e.mergeProps({key:0},c,{"config-store-id":_.value,onError:a,onLoading:w,onUpdate:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-02e6d2f3"]]),Xe={class:"vault-secret-picker-provider"},Ye=te(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(o,{emit:C}){const c=o,s=C,{i18n:{t:u},i18nT:a}=le.useI18n();return(w,k)=>(e.openBlock(),e.createElementBlock("div",Xe,[e.createVNode(e.unref(a),{keypath:"vault_secret_picker.provider.complete_action",scope:"global"},{cta:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"vault-secret-picker-provider-action":!0,disabled:c.disabled}),onClick:k[0]||(k[0]=()=>!c.disabled&&s("open",c.value,c.update))},e.toDisplayString(e.unref(u)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-66a1e406"]]),et=o=>{let C=o.trim();if(!C.startsWith("{")||!C.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(C=C.substring(1,C.length-1).trim(),!C.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const c=new URL(`http://${C.substring(8)}`);if(!c)throw new Error("Invalid secret reference: must have a vault prefix");const s=c.host,[,u,...a]=c.pathname.split("/");if(!s)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:s,secretId:u||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},tt=o=>{if(!o.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${o.vaultPrefix}`;return o.secretId&&(C=`${C}/${o.secretId}`),o.optionalSecretKey&&(C=`${C}/${o.optionalSecretKey}`),`{${C}}`},ot={key:1,class:"inputs-wrapper"},lt={"data-testid":"no-search-results"},at={class:"k-select-selected-item-label"},rt={class:"vault-secret-picker-vault-dropdown-item"},nt={class:"select-item-label"},it={class:"select-item-description"},st={class:"select-item-description"},ct={"data-testid":"no-search-results"},dt=te(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string")},setup:{type:null,required:!1,default:!1}},emits:["proceed","cancel"],setup(o,{emit:C}){var D;const{i18n:{t:c}}=le.useI18n(),s=o,u=C,{axiosInstance:a}=m.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(D=s.config)==null?void 0:D.axiosRequestConfig}),w=e.ref(!1),k=e.ref(""),_=e.ref(""),f=e.ref(""),V=e.ref(),d=e.computed(()=>{var b,y;return s.config.app==="konnect"?oe.list[s.config.app].replace(/{id}/gi,((y=(b=V.value)==null?void 0:b.config)==null?void 0:y.config_store_id)??""):"<not_applicable>"}),$=e.computed(()=>{if(U&&O)return c("vault_secret_picker.fetch_error.vaults_and_secrets");if(U)return c("vault_secret_picker.fetch_error.vaults");if(O)return c("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:q,loading:Z,error:U,loadItems:r,results:W}=m.useDebouncedFilter(s.config,Q.list[s.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:X,loading:B,error:O,loadItems:j,results:g}=m.useDebouncedFilter(s.config,d,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),T=e.computed(()=>{var I;let b=!1;const y=((I=W.value)==null?void 0:I.map(N=>(N.prefix===k.value&&(b=!0),{label:N.prefix,value:N.prefix,vault:N})))??[];return!b&&V.value&&y.push({label:V.value.prefix,value:V.value.prefix,vault:V.value}),y}),G=e.computed(()=>{var I;let b=!1;const y=((I=g.value)==null?void 0:I.map(N=>(N.key===_.value&&(b=!0),{label:N.key,value:N.key})))??[];return!b&&_.value&&y.push({label:_.value,value:_.value}),y}),H=e.computed(()=>{var b;return((b=V==null?void 0:V.value)==null?void 0:b.name)==="konnect"}),Y=e.computed(()=>!!V.value&&!!_.value),L=b=>b.label?`${b.label} - (${b.vault.name} - ${b.vault.id})`:b.value,M=b=>{var I,N;let y=`${s.config.apiBaseUrl}${Q.form[s.config.app].edit}`;return s.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((I=s.config)==null?void 0:I.controlPlaneId)||""):s.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(N=s.config)!=null&&N.workspace?`/${s.config.workspace}`:"")),y.replace(/{id}/gi,b)},x=(b,y)=>{var I;return s.config.app!=="konnect"?"<not_applicable>":`${s.config.apiBaseUrl}${oe.form[s.config.app].edit}`.replace(/{controlPlaneId}/gi,((I=s.config)==null?void 0:I.controlPlaneId)||"").replace(/{id}/gi,y).replace(/{secretId}/gi,b)},P=()=>{u("proceed",tt({vaultPrefix:k.value,secretId:_.value||void 0,optionalSecretKey:f.value||void 0}))};return e.watch(()=>s.setup,async b=>{if(b!==!1){if(w.value=!0,k.value="",V.value=void 0,_.value="",f.value="",typeof b=="string"&&b.trim().length>0)try{let y,I="",N="",F="";const K=et(b),{data:S}=await a.get(M(K.vaultPrefix));if(S!=null&&S.name)if(y=S,I=K.vaultPrefix,y.name==="konnect"){if(K.secretId){const{data:re}=await a.get(x(K.secretId,S.config.config_store_id));re.key===K.secretId&&(N=K.secretId,F=K.optionalSecretKey??"")}}else N=K.secretId??"",F=K.optionalSecretKey??"";await e.nextTick(()=>{k.value=I,V.value=y,_.value=N,f.value=F})}catch(y){console.debug(y)}w.value=!1,await r()}},{immediate:!0}),e.watch(k,async(b,y)=>{var I;w.value||b===y||(V.value=(I=T.value.find(N=>N.value===b))==null?void 0:I.vault,_.value="",f.value="")}),e.watch(d,async()=>{H.value&&await j()},{immediate:!0}),(b,y)=>{const I=e.resolveComponent("KEmptyState"),N=e.resolveComponent("KSelect"),F=e.resolveComponent("KInput"),K=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(K,{"action-button-disabled":!Y.value,"action-button-text":e.unref(c)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:e.unref(c)("vault_secret_picker.title"),visible:s.setup!==!1,onCancel:y[4]||(y[4]=()=>u("cancel")),onProceed:P},{default:e.withCtx(()=>[e.unref(U)||e.unref(O)?(e.openBlock(),e.createBlock(I,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:$.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ot,[e.createVNode(N,{modelValue:k.value,"onUpdate:modelValue":y[0]||(y[0]=S=>k.value=S),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:w.value,"enable-filtering":"","filter-function":()=>!0,items:T.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(c)("vault_secret_picker.vault.label"),loading:e.unref(Z),placeholder:e.unref(c)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(q)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",lt,e.toDisplayString(e.unref(c)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:S})=>[e.createElementVNode("span",at,e.toDisplayString(L(S)),1)]),"item-template":e.withCtx(({item:S})=>[e.createElementVNode("div",rt,[e.createElementVNode("span",nt,e.toDisplayString(S.label),1),e.createElementVNode("span",it,e.toDisplayString(S.vault.name),1),e.createElementVNode("span",st,e.toDisplayString(S.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),H.value?(e.openBlock(),e.createBlock(N,{key:0,modelValue:_.value,"onUpdate:modelValue":y[1]||(y[1]=S=>_.value=S),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:w.value||!V.value,"enable-filtering":"","filter-function":()=>!0,items:G.value,"kpop-attributes":{"data-testid":"vault-secret-picker-secret-id-popover"},label:e.unref(c)("vault_secret_picker.secret_id.label"),loading:e.unref(B),placeholder:e.unref(c)("vault_secret_picker.secret_id.select_placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(X)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(c)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ct,e.toDisplayString(e.unref(c)("vault_secret_picker.no_results")),1)]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"])):(e.openBlock(),e.createBlock(F,{key:1,modelValue:_.value,"onUpdate:modelValue":y[2]||(y[2]=S=>_.value=S),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:w.value||!V.value,label:e.unref(c)("vault_secret_picker.secret_id.label"),placeholder:e.unref(c)("vault_secret_picker.secret_id.input_placeholder"),required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder"])),e.createVNode(F,{modelValue:f.value,"onUpdate:modelValue":y[3]||(y[3]=S=>f.value=S),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:w.value||!V.value,help:e.unref(c)("vault_secret_picker.optional_secret_key.help"),label:e.unref(c)("vault_secret_picker.optional_secret_key.label"),placeholder:e.unref(c)("vault_secret_picker.optional_secret_key.placeholder"),type:"text"},null,8,["modelValue","disabled","help","label","placeholder"])]))]),_:1},8,["action-button-disabled","action-button-text","title","visible"])}}}),[["__scopeId","data-v-df8552cc"]]);R.SecretForm=Qe,R.SecretList=Ge,R.VaultAuthMethods=A,R.VaultConfigCard=We,R.VaultForm=Fe,R.VaultList=xe,R.VaultProviders=t,R.VaultSecretPicker=dt,R.VaultSecretPickerProvider=Ye,R.secretsEndpoints=oe,R.vaultsEndpoints=Q,Object.defineProperty(R,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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-a19fafa9]{align-items:center;border-bottom:var(--eaabfd90);box-sizing:border-box;display:var(--ea5e332a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-a19fafa9]{box-sizing:border-box;padding-right:16px;width:var(--f719ead6)}.config-card-details-row .config-card-details-label label[data-v-a19fafa9]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-a19fafa9]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-a19fafa9]{min-width:0}.config-card-details-row .config-card-details-value[data-v-a19fafa9]{box-sizing:border-box;width:var(--f7155f20)}.config-card-details-row .config-card-details-value .truncated[data-v-a19fafa9]{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-a19fafa9]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-a19fafa9] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-a19fafa9]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-a19fafa9]{margin-right:4px}.config-card-details-row[data-v-a19fafa9] .k-label{margin-bottom:0}.config-card-details-row[data-v-a19fafa9] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-a19fafa9] .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(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{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-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-e8247cfa]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-e8247cfa]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-e8247cfa] .k-button:last-of-type,.form-actions[data-v-e8247cfa] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-48ae9c8c]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{width:640px}}.button-row[data-v-8b4601f8]{align-items:center;display:flex;gap:12px}.kong-ui-entities-vaults-list[data-v-8b4601f8]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-8b4601f8]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-8b4601f8]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-42fabd85]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-42fabd85]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-42fabd85]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-42fabd85]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-42fabd85],.kong-ui-entities-vault-form .vault-form-textarea[data-v-42fabd85]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-42fabd85]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-42fabd85]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-42fabd85]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-42fabd85]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-42fabd85]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-42fabd85]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-42fabd85] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-42fabd85]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-42fabd85]>*:not(:first-child){margin-top:24px}.kong-ui-entity-filter-input[data-v-074727f7]{margin-right:12px}.table-content-overflow-wrapper[data-v-074727f7]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secrets-list[data-v-0f9047e6]{width:100%}@media screen and (min-width: 1280px){[data-v-eb9c7fc4] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-secret-form[data-v-02e6d2f3]{width:100%}.vault-secret-picker-provider[data-v-66a1e406]{font-size:12px;margin:8px 0}.vault-secret-picker-provider-action[data-v-66a1e406]{color:#0044f4;cursor:pointer}.vault-secret-picker-provider-action.disabled[data-v-66a1e406]{color:#afb7c5;cursor:not-allowed}.vault-secret-picker .inputs-wrapper[data-v-df8552cc]{display:flex;flex-direction:column;gap:20px}.vault-secret-picker-vault-dropdown-item[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item[data-v-df8552cc]{display:flex;flex-direction:column}.vault-secret-picker-vault-dropdown-item span[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item span[data-v-df8552cc]{line-height:20px}.vault-secret-picker-vault-dropdown-item .select-item-label[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item .select-item-label[data-v-df8552cc]{font-weight:600}.vault-secret-picker-vault-dropdown-item .select-item-description[data-v-df8552cc]{color:#6c7489;font-size:12px}.vault-secret-picker .k-empty-state[data-v-df8552cc]{background:none;box-sizing:border-box}
|
|
1
|
+
.config-card-fieldset[data-v-f7096c33]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-f7096c33]{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-a19fafa9]{align-items:center;border-bottom:var(--eaabfd90);box-sizing:border-box;display:var(--ea5e332a);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-a19fafa9]{box-sizing:border-box;padding-right:16px;width:var(--f719ead6)}.config-card-details-row .config-card-details-label label[data-v-a19fafa9]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-a19fafa9]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-a19fafa9]{min-width:0}.config-card-details-row .config-card-details-value[data-v-a19fafa9]{box-sizing:border-box;width:var(--f7155f20)}.config-card-details-row .config-card-details-value .truncated[data-v-a19fafa9]{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-a19fafa9]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-a19fafa9] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-a19fafa9]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-a19fafa9]{margin-right:4px}.config-card-details-row[data-v-a19fafa9] .k-label{margin-bottom:0}.config-card-details-row[data-v-a19fafa9] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-a19fafa9] .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(--54aebfa2);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d67757a9]{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-be491a0e]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-be491a0e]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-be491a0e]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-be491a0e] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-be491a0e]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-e8247cfa]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-e8247cfa] .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-e8247cfa] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-e8247cfa]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-e8247cfa] .k-button:last-of-type,.form-actions[data-v-e8247cfa] .k-button:nth-last-of-type(2){margin-left:16px}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-d58db70c]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-d58db70c]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-d58db70c]{display:none}.kong-ui-entity-base-table[data-v-d58db70c] .empty-state-icon-gateway{background-color:#ecfcff;border-radius:4px;padding:8px}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-10fa27a5]{width:100%}.kong-ui-entity-filter-clear[data-v-10fa27a5]{cursor:pointer}.kong-ui-entity-filter[data-v-10fa27a5]{display:flex;position:relative}.kong-ui-entity-filter[data-v-10fa27a5] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-10fa27a5] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-10fa27a5]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-10fa27a5]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-10fa27a5]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-10fa27a5]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-10fa27a5]{color:#232633}.menu-item-expand-icon[data-v-10fa27a5]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-10fa27a5]{transform:rotate(180deg)}.menu-item-indicator[data-v-10fa27a5]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-10fa27a5]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-10fa27a5] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-10fa27a5] .k-input{width:100%}.menu-item-body[data-v-10fa27a5] .k-select-input .input{font-size:12px}.menu-item-body[data-v-10fa27a5] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-10fa27a5]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-10fa27a5]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-10fa27a5]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-48ae9c8c]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-48ae9c8c]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-48ae9c8c]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-48ae9c8c]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-48ae9c8c]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-48ae9c8c],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-48ae9c8c]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-48ae9c8c]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-48ae9c8c]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-48ae9c8c]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-48ae9c8c]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-48ae9c8c] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-48ae9c8c] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-48ae9c8c]{width:640px}}.button-row[data-v-8b4601f8]{align-items:center;display:flex;gap:12px}.kong-ui-entities-vaults-list[data-v-8b4601f8]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-8b4601f8]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-8b4601f8]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-d616cf9a]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-d616cf9a]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-d616cf9a]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-d616cf9a]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-d616cf9a],.kong-ui-entities-vault-form .vault-form-textarea[data-v-d616cf9a]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-d616cf9a]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-d616cf9a]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-d616cf9a]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-d616cf9a]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-d616cf9a]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-d616cf9a]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-d616cf9a] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-d616cf9a]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-d616cf9a]>*:not(:first-child){margin-top:24px}.kong-ui-entity-filter-input[data-v-074727f7]{margin-right:12px}.table-content-overflow-wrapper[data-v-074727f7]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secrets-list[data-v-0f9047e6]{width:100%}@media screen and (min-width: 1280px){[data-v-eb9c7fc4] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-secret-form[data-v-02e6d2f3]{width:100%}.vault-secret-picker-provider[data-v-66a1e406]{font-size:12px;margin:8px 0}.vault-secret-picker-provider-action[data-v-66a1e406]{color:#0044f4;cursor:pointer}.vault-secret-picker-provider-action.disabled[data-v-66a1e406]{color:#afb7c5;cursor:not-allowed}.vault-secret-picker .inputs-wrapper[data-v-df8552cc]{display:flex;flex-direction:column;gap:20px}.vault-secret-picker-vault-dropdown-item[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item[data-v-df8552cc]{display:flex;flex-direction:column}.vault-secret-picker-vault-dropdown-item span[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item span[data-v-df8552cc]{line-height:20px}.vault-secret-picker-vault-dropdown-item .select-item-label[data-v-df8552cc],.vault-secret-picker-secret-dropdown-item .select-item-label[data-v-df8552cc]{font-weight:600}.vault-secret-picker-vault-dropdown-item .select-item-description[data-v-df8552cc]{color:#6c7489;font-size:12px}.vault-secret-picker .k-empty-state[data-v-df8552cc]{background:none;box-sizing:border-box}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VaultForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultForm.vue"],"names":[],"mappings":"AAktCA,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAQV,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,UAAU,CAAA;AAOjB,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;;
|
|
1
|
+
{"version":3,"file":"VaultForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultForm.vue"],"names":[],"mappings":"AAktCA,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAQV,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EAGvB,MAAM,UAAU,CAAA;AAOjB,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;;IAwqCpD,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;;;;;;IAZ1F,oHAAoH;;cAElG,QAAQ,CAAC,sBAAsB,GAAG,0BAA0B,CAAC;;4BAEzD,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;;;;;;;;AAvB5F,wBA8BG"}
|