@kong-ui-public/entities-vaults 3.23.4 → 3.23.5

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.
@@ -517,7 +517,7 @@ const ye = {
517
517
  };
518
518
  }), {
519
519
  fetcher: N,
520
- fetcherState: a,
520
+ fetcherState: o,
521
521
  fetcherCacheKey: ae
522
522
  } = Oe(w(() => ({ ...s.config, cacheIdentifier: s.cacheIdentifier })), ee), G = () => {
523
523
  Y.value = "";
@@ -585,7 +585,7 @@ const ye = {
585
585
  }, ce = () => {
586
586
  r.push(s.config.createRoute);
587
587
  };
588
- ke(a, (y) => {
588
+ ke(o, (y) => {
589
589
  var R, U, L;
590
590
  if (y.status === je.Error) {
591
591
  J.value = {
@@ -619,14 +619,14 @@ const ye = {
619
619
  query: Y.value,
620
620
  "table-headers": e(z),
621
621
  onClearSearchInput: G,
622
- "onClick:row": R[3] || (R[3] = (o) => re(o)),
622
+ "onClick:row": R[3] || (R[3] = (a) => re(a)),
623
623
  onSort: te,
624
624
  onState: e(_)
625
625
  }, $e({
626
626
  "toolbar-filter": v(() => [
627
627
  d(e(We), {
628
628
  modelValue: Y.value,
629
- "onUpdate:modelValue": R[0] || (R[0] = (o) => Y.value = o),
629
+ "onUpdate:modelValue": R[0] || (R[0] = (a) => Y.value = a),
630
630
  config: X.value
631
631
  }, null, 8, ["modelValue", "config"])
632
632
  ]),
@@ -642,7 +642,7 @@ const ye = {
642
642
  class: "open-learning-hub",
643
643
  "data-testid": "vault-learn-more-button",
644
644
  icon: "",
645
- onClick: R[1] || (R[1] = (o) => y.$emit("click:learn-more"))
645
+ onClick: R[1] || (R[1] = (a) => y.$emit("click:learn-more"))
646
646
  }, {
647
647
  default: v(() => [
648
648
  d(e(et), { decorative: "" })
@@ -671,26 +671,26 @@ const ye = {
671
671
  ])
672
672
  ], 8, ["disabled"]))
673
673
  ]),
674
- prefix: v(({ rowValue: o }) => [
674
+ prefix: v(({ rowValue: a }) => [
675
675
  x("div", $t, [
676
- x("b", null, T(o ?? "-"), 1)
676
+ x("b", null, T(a ?? "-"), 1)
677
677
  ])
678
678
  ]),
679
- name: v(({ rowValue: o }) => [
680
- x("b", null, T(o ?? "-"), 1)
679
+ name: v(({ rowValue: a }) => [
680
+ x("b", null, T(a ?? "-"), 1)
681
681
  ]),
682
- description: v(({ rowValue: o }) => [
683
- x("div", Kt, T(o ?? "-"), 1)
682
+ description: v(({ rowValue: a }) => [
683
+ x("div", Kt, T(a ?? "-"), 1)
684
684
  ]),
685
- tags: v(({ rowValue: o }) => [
686
- d(e(ut), { tags: o }, null, 8, ["tags"])
685
+ tags: v(({ rowValue: a }) => [
686
+ d(e(ut), { tags: a }, null, 8, ["tags"])
687
687
  ]),
688
- actions: v(({ row: o }) => [
688
+ actions: v(({ row: a }) => [
689
689
  d(n, null, {
690
690
  default: v(({ copyToClipboard: q }) => [
691
691
  d(L, {
692
692
  "data-testid": "action-entity-copy-id",
693
- onClick: (Q) => b(o, q)
693
+ onClick: (Q) => b(a, q)
694
694
  }, {
695
695
  default: v(() => [
696
696
  ve(T(e(p)("actions.copy_id")), 1)
@@ -704,7 +704,7 @@ const ye = {
704
704
  default: v(({ copyToClipboard: q }) => [
705
705
  d(L, {
706
706
  "data-testid": "action-entity-copy-json",
707
- onClick: (Q) => M(o, q)
707
+ onClick: (Q) => M(a, q)
708
708
  }, {
709
709
  default: v(() => [
710
710
  ve(T(e(p)("actions.copy_json")), 1)
@@ -715,37 +715,37 @@ const ye = {
715
715
  _: 2
716
716
  }, 1024),
717
717
  d(e(ge), {
718
- "auth-function": () => l.canRetrieve(o)
718
+ "auth-function": () => l.canRetrieve(a)
719
719
  }, {
720
720
  default: v(() => [
721
721
  d(L, {
722
722
  "data-testid": "action-entity-view",
723
723
  "has-divider": "",
724
- item: se(o.id)
724
+ item: se(a.id)
725
725
  }, null, 8, ["item"])
726
726
  ]),
727
727
  _: 2
728
728
  }, 1032, ["auth-function"]),
729
729
  d(e(ge), {
730
- "auth-function": () => l.canEdit(o)
730
+ "auth-function": () => l.canEdit(a)
731
731
  }, {
732
732
  default: v(() => [
733
733
  d(L, {
734
734
  "data-testid": "action-entity-edit",
735
- item: oe(o.id)
735
+ item: oe(a.id)
736
736
  }, null, 8, ["item"])
737
737
  ]),
738
738
  _: 2
739
739
  }, 1032, ["auth-function"]),
740
740
  d(e(ge), {
741
- "auth-function": () => l.canDelete(o)
741
+ "auth-function": () => l.canDelete(a)
742
742
  }, {
743
743
  default: v(() => [
744
744
  d(L, {
745
745
  danger: "",
746
746
  "data-testid": "action-entity-delete",
747
747
  "has-divider": "",
748
- onClick: (q) => g(o)
748
+ onClick: (q) => g(a)
749
749
  }, {
750
750
  default: v(() => [
751
751
  ve(T(e(p)("actions.delete")), 1)
@@ -761,7 +761,7 @@ const ye = {
761
761
  !Y.value && l.config.app === "konnect" ? {
762
762
  name: "empty-state",
763
763
  fn: v(() => {
764
- var o;
764
+ var a;
765
765
  return [
766
766
  d(e(dt), {
767
767
  "action-button-text": e(p)("vaults.list.toolbar_actions.new_vault"),
@@ -784,7 +784,7 @@ const ye = {
784
784
  ]),
785
785
  _: 2
786
786
  }, [
787
- (o = l.config) != null && o.isControlPlaneGroup ? {
787
+ (a = l.config) != null && a.isControlPlaneGroup ? {
788
788
  name: "message",
789
789
  fn: v(() => [
790
790
  ve(T(e(p)("vaults.list.empty_state_v2.group")), 1)
@@ -816,7 +816,7 @@ const ye = {
816
816
  for (const [s, p] of S)
817
817
  c[s] = p;
818
818
  return c;
819
- }, Rl = /* @__PURE__ */ pe(Pt, [["__scopeId", "data-v-ab8da779"]]);
819
+ }, Rl = /* @__PURE__ */ pe(Pt, [["__scopeId", "data-v-d286806a"]]);
820
820
  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.CERT = "cert", l))(H || {});
821
821
  const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-provider-cards-container" }, Nt = ["data-testid"], Ft = { class: "provider-item-title-container" }, Ot = { class: "provider-item-title" }, qt = { class: "provider-item-description" }, jt = {
822
822
  key: "kong-vault-config-fields",
@@ -898,7 +898,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
898
898
  value: t.CONJUR,
899
899
  disabled: !oe.value
900
900
  }] : []
901
- ]), N = c.config.base64FieldAvailable ? { base64_decode: !1 } : {}, a = he({
901
+ ]), N = c.config.base64FieldAvailable ? { base64_decode: !1 } : {}, o = he({
902
902
  [t.KONNECT]: {},
903
903
  [t.ENV]: {
904
904
  prefix: "",
@@ -1027,8 +1027,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1027
1027
  { label: `${r("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
1028
1028
  { label: `${r("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
1029
1029
  ], te = [{ label: "secrets", value: "secrets" }], J = [{ label: "http", value: "http" }, { label: "https", value: "https" }], b = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], M = w(() => c.vaultId ? Ve.Edit : Ve.Create), re = w(() => {
1030
- var n, o;
1031
- return (o = fe.form[(n = c.config) == null ? void 0 : n.app]) == null ? void 0 : o.edit;
1030
+ var n, a;
1031
+ return (a = fe.form[(n = c.config) == null ? void 0 : n.app]) == null ? void 0 : a.edit;
1032
1032
  }), se = w(() => M.value === Ve.Edit && c.config.app === "kongManager"), oe = w(() => c.config.app === "konnect" || ft({
1033
1033
  gatewayInfo: c.config.gatewayInfo,
1034
1034
  // vault name can only be `env` in Gateway Community Edition
@@ -1079,11 +1079,11 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1079
1079
  }, g = (n) => {
1080
1080
  var Q, V, ne, ue, me, i;
1081
1081
  u.fields.prefix = ((Q = n == null ? void 0 : n.item) == null ? void 0 : Q.prefix) || (n == null ? void 0 : n.prefix) || "", u.fields.description = ((V = n == null ? void 0 : n.item) == null ? void 0 : V.description) || (n == null ? void 0 : n.description) || "";
1082
- const o = ((ne = n == null ? void 0 : n.item) == null ? void 0 : ne.tags) || (n == null ? void 0 : n.tags) || [];
1083
- u.fields.tags = (o == null ? void 0 : o.join(", ")) || "", Object.assign(h, u.fields);
1082
+ const a = ((ne = n == null ? void 0 : n.item) == null ? void 0 : ne.tags) || (n == null ? void 0 : n.tags) || [];
1083
+ u.fields.tags = (a == null ? void 0 : a.join(", ")) || "", Object.assign(h, u.fields);
1084
1084
  const q = ((ue = n == null ? void 0 : n.item) == null ? void 0 : ue.config) || (n == null ? void 0 : n.config) || null;
1085
- q && (Object.keys(q).length || (n == null ? void 0 : n.name) === t.KONNECT) ? (f.value = ((me = n == null ? void 0 : n.item) == null ? void 0 : me.name) || (n == null ? void 0 : n.name) || "", z.value = f.value, ee.value = ((i = n == null ? void 0 : n.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(a[f.value], q), Object.assign(ae[f.value], q)) : u.errorMessage = "Error loading vault config";
1086
- }, m = (n) => n === "" || n == null, K = w(() => f.value === t.HCV ? !Object.keys(a[t.HCV]).filter((n) => [
1085
+ q && (Object.keys(q).length || (n == null ? void 0 : n.name) === t.KONNECT) ? (f.value = ((me = n == null ? void 0 : n.item) == null ? void 0 : me.name) || (n == null ? void 0 : n.name) || "", z.value = f.value, ee.value = ((i = n == null ? void 0 : n.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(o[f.value], q), Object.assign(ae[f.value], q)) : u.errorMessage = "Error loading vault config";
1086
+ }, m = (n) => n === "" || n == null, K = w(() => f.value === t.HCV ? !Object.keys(o[t.HCV]).filter((n) => [
1087
1087
  "namespace",
1088
1088
  "ttl",
1089
1089
  "neg_ttl",
@@ -1092,56 +1092,56 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1092
1092
  "approle_auth_path",
1093
1093
  "approle_secret_id",
1094
1094
  "approle_secret_id_file"
1095
- ].includes(n) || a[t.HCV].auth_method !== H.K8S && (n === "kube_role" || n === "kube_api_token_file") || a[t.HCV].auth_method !== H.TOKEN && n === "token" || a[t.HCV].auth_method !== H.APP_ROLE && (n === "approle_role_id" || n === "approle_response_wrapping") || a[t.HCV].auth_method === H.APP_ROLE && n === "approle_response_wrapping" && typeof a[f.value][n] == "boolean" || a[t.HCV].auth_method !== H.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(n) ? !1 : m(a[f.value][n])).length : f.value === t.AZURE ? !Object.keys(a[t.AZURE]).filter((n) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(a[f.value][n])).length : f.value === t.AWS ? !Object.keys(a[t.AWS]).filter((n) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(n) ? !1 : m(a[f.value][n])).length : !Object.keys(a[f.value]).filter((n) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(a[f.value][n])).length), P = w(() => !!u.fields.prefix && K.value), ce = w(() => JSON.stringify(u.fields) !== JSON.stringify(h) || f.value !== z.value || JSON.stringify(a[f.value]) !== JSON.stringify(ae[f.value])), O = w(() => {
1096
- var o, q;
1095
+ ].includes(n) || o[t.HCV].auth_method !== H.K8S && (n === "kube_role" || n === "kube_api_token_file") || o[t.HCV].auth_method !== H.TOKEN && n === "token" || o[t.HCV].auth_method !== H.APP_ROLE && (n === "approle_role_id" || n === "approle_response_wrapping") || o[t.HCV].auth_method === H.APP_ROLE && n === "approle_response_wrapping" && typeof o[f.value][n] == "boolean" || o[t.HCV].auth_method !== H.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(n) ? !1 : m(o[f.value][n])).length : f.value === t.AZURE ? !Object.keys(o[t.AZURE]).filter((n) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(o[f.value][n])).length : f.value === t.AWS ? !Object.keys(o[t.AWS]).filter((n) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(n) ? !1 : m(o[f.value][n])).length : !Object.keys(o[f.value]).filter((n) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(o[f.value][n])).length), P = w(() => !!u.fields.prefix && K.value), ce = w(() => JSON.stringify(u.fields) !== JSON.stringify(h) || f.value !== z.value || JSON.stringify(o[f.value]) !== JSON.stringify(ae[f.value])), O = w(() => {
1096
+ var a, q;
1097
1097
  let n = `${c.config.apiBaseUrl}${fe.form[c.config.app][M.value]}`;
1098
- return c.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((o = c.config) == null ? void 0 : o.controlPlaneId) || "") : c.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (q = c.config) != null && q.workspace ? `/${c.config.workspace}` : "")), n = n.replace(/{id}/gi, c.vaultId), n;
1098
+ return c.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((a = c.config) == null ? void 0 : a.controlPlaneId) || "") : c.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (q = c.config) != null && q.workspace ? `/${c.config.workspace}` : "")), n = n.replace(/{id}/gi, c.vaultId), n;
1099
1099
  }), E = w(() => {
1100
1100
  var ue, me;
1101
1101
  const n = {
1102
- protocol: a[t.HCV].protocol,
1103
- host: a[t.HCV].host,
1104
- port: parseInt(a[t.HCV].port.toString()),
1105
- mount: a[t.HCV].mount,
1106
- kv: a[t.HCV].kv,
1107
- namespace: a[t.HCV].namespace || null,
1108
- auth_method: a[t.HCV].auth_method,
1109
- ...c.config.base64FieldAvailable && { base64_decode: a[t.HCV].base64_decode },
1110
- ...a[t.HCV].auth_method === H.TOKEN && { token: a[t.HCV].token },
1102
+ protocol: o[t.HCV].protocol,
1103
+ host: o[t.HCV].host,
1104
+ port: parseInt(o[t.HCV].port.toString()),
1105
+ mount: o[t.HCV].mount,
1106
+ kv: o[t.HCV].kv,
1107
+ namespace: o[t.HCV].namespace || null,
1108
+ auth_method: o[t.HCV].auth_method,
1109
+ ...c.config.base64FieldAvailable && { base64_decode: o[t.HCV].base64_decode },
1110
+ ...o[t.HCV].auth_method === H.TOKEN && { token: o[t.HCV].token },
1111
1111
  // For Kong Admin API, when auth_method is kubernetes, token must be in the request body and its value has to be null
1112
- ...a[t.HCV].auth_method === H.K8S && {
1113
- kube_role: a[t.HCV].kube_role,
1114
- kube_auth_path: a[t.HCV].kube_auth_path || void 0,
1115
- kube_api_token_file: a[t.HCV].kube_api_token_file,
1112
+ ...o[t.HCV].auth_method === H.K8S && {
1113
+ kube_role: o[t.HCV].kube_role,
1114
+ kube_auth_path: o[t.HCV].kube_auth_path || void 0,
1115
+ kube_api_token_file: o[t.HCV].kube_api_token_file,
1116
1116
  token: null
1117
1117
  },
1118
- ...a[t.HCV].auth_method === H.APP_ROLE && {
1119
- approle_auth_path: a[t.HCV].approle_auth_path || void 0,
1120
- approle_role_id: a[t.HCV].approle_role_id,
1121
- approle_secret_id: a[t.HCV].approle_secret_id || void 0,
1122
- approle_secret_id_file: a[t.HCV].approle_secret_id_file || void 0,
1123
- approle_response_wrapping: a[t.HCV].approle_response_wrapping ?? !1
1118
+ ...o[t.HCV].auth_method === H.APP_ROLE && {
1119
+ approle_auth_path: o[t.HCV].approle_auth_path || void 0,
1120
+ approle_role_id: o[t.HCV].approle_role_id,
1121
+ approle_secret_id: o[t.HCV].approle_secret_id || void 0,
1122
+ approle_secret_id_file: o[t.HCV].approle_secret_id_file || void 0,
1123
+ approle_response_wrapping: o[t.HCV].approle_response_wrapping ?? !1
1124
1124
  },
1125
- ...a[t.HCV].auth_method === H.CERT && {
1126
- cert_auth_role_name: a[t.HCV].cert_auth_role_name,
1127
- cert_auth_cert: a[t.HCV].cert_auth_cert,
1128
- cert_auth_cert_key: a[t.HCV].cert_auth_cert_key
1125
+ ...o[t.HCV].auth_method === H.CERT && {
1126
+ cert_auth_role_name: o[t.HCV].cert_auth_role_name,
1127
+ cert_auth_cert: o[t.HCV].cert_auth_cert,
1128
+ cert_auth_cert_key: o[t.HCV].cert_auth_cert_key
1129
1129
  }
1130
- }, o = {
1131
- ...a[f.value],
1132
- client_id: a[f.value].client_id || null,
1133
- tenant_id: a[f.value].tenant_id || null
1130
+ }, a = {
1131
+ ...o[f.value],
1132
+ client_id: o[f.value].client_id || null,
1133
+ tenant_id: o[f.value].tenant_id || null
1134
1134
  }, q = {
1135
- ...a[f.value],
1136
- endpoint_url: a[f.value].endpoint_url || null,
1137
- assume_role_arn: a[f.value].assume_role_arn || null,
1138
- ...c.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: a[f.value].sts_endpoint_url || null } : {}
1135
+ ...o[f.value],
1136
+ endpoint_url: o[f.value].endpoint_url || null,
1137
+ assume_role_arn: o[f.value].assume_role_arn || null,
1138
+ ...c.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: o[f.value].sts_endpoint_url || null } : {}
1139
1139
  };
1140
- let Q = a[f.value];
1141
- f.value === t.HCV ? Q = n : f.value === t.AZURE ? Q = o : f.value === t.AWS && (Q = q);
1140
+ let Q = o[f.value];
1141
+ f.value === t.HCV ? Q = n : f.value === t.AZURE ? Q = a : f.value === t.AWS && (Q = q);
1142
1142
  let V = {};
1143
1143
  if (![t.KONNECT, t.ENV].includes(f.value)) {
1144
- const i = a[f.value], Ae = i.ttl, Ue = i.neg_ttl, Te = i.resurrect_ttl;
1144
+ const i = o[f.value], Ae = i.ttl, Ue = i.neg_ttl, Te = i.resurrect_ttl;
1145
1145
  V = {
1146
1146
  ttl: Ae ? parseInt(Ae.toString(), 10) : null,
1147
1147
  neg_ttl: Ue ? parseInt(Ue.toString(), 10) : null,
@@ -1168,10 +1168,10 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1168
1168
  var n;
1169
1169
  try {
1170
1170
  u.isReadonly = !0;
1171
- const o = `${c.config.apiBaseUrl}${fe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((n = c.config) == null ? void 0 : n.controlPlaneId) || ""), q = await C.post(o);
1171
+ const a = `${c.config.apiBaseUrl}${fe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((n = c.config) == null ? void 0 : n.controlPlaneId) || ""), q = await C.post(a);
1172
1172
  return q == null ? void 0 : q.data.id;
1173
- } catch (o) {
1174
- u.errorMessage = _(o), s("error", o);
1173
+ } catch (a) {
1174
+ u.errorMessage = _(a), s("error", a);
1175
1175
  } finally {
1176
1176
  u.isReadonly = !1;
1177
1177
  }
@@ -1179,15 +1179,15 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1179
1179
  var n;
1180
1180
  try {
1181
1181
  u.isReadonly = !0;
1182
- let o;
1183
- M.value === "create" ? f.value === t.KONNECT ? (ee.value = await R(), o = await C.post(O.value, y.value)) : o = await C.post(O.value, E.value) : M.value === "edit" && (f.value === t.KONNECT && !ee.value ? (ee.value = await R(), o = await C.put(O.value, y.value)) : o = ((n = c.config) == null ? void 0 : n.app) === "konnect" ? await C.put(O.value, y.value) : await C.patch(O.value, E.value)), g(o == null ? void 0 : o.data), s("update", o == null ? void 0 : o.data);
1184
- } catch (o) {
1185
- u.errorMessage = _(o), s("error", o);
1182
+ let a;
1183
+ M.value === "create" ? f.value === t.KONNECT ? (ee.value = await R(), a = await C.post(O.value, y.value)) : a = await C.post(O.value, E.value) : M.value === "edit" && (f.value === t.KONNECT && !ee.value ? (ee.value = await R(), a = await C.put(O.value, y.value)) : a = ((n = c.config) == null ? void 0 : n.app) === "konnect" ? await C.put(O.value, y.value) : await C.patch(O.value, E.value)), g(a == null ? void 0 : a.data), s("update", a == null ? void 0 : a.data);
1184
+ } catch (a) {
1185
+ u.errorMessage = _(a), s("error", a);
1186
1186
  } finally {
1187
1187
  u.isReadonly = !1;
1188
1188
  }
1189
1189
  };
1190
- return (n, o) => {
1190
+ return (n, a) => {
1191
1191
  const q = B("KTooltip"), Q = B("KSelect"), V = B("KInput"), ne = B("KCheckbox"), ue = B("KTextArea"), me = B("KCollapse");
1192
1192
  return k(), D("div", Ht, [
1193
1193
  d(e(Ge), {
@@ -1214,7 +1214,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1214
1214
  x("div", Mt, [
1215
1215
  d(Q, {
1216
1216
  modelValue: f.value,
1217
- "onUpdate:modelValue": o[0] || (o[0] = (i) => f.value = i),
1217
+ "onUpdate:modelValue": a[0] || (a[0] = (i) => f.value = i),
1218
1218
  "data-testid": "provider-select",
1219
1219
  disabled: se.value,
1220
1220
  "dropdown-max-height": "500",
@@ -1252,8 +1252,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1252
1252
  default: v(() => [
1253
1253
  f.value === e(t).ENV ? (k(), D("div", jt, [
1254
1254
  d(V, {
1255
- modelValue: a[e(t).ENV].prefix,
1256
- "onUpdate:modelValue": o[1] || (o[1] = (i) => a[e(t).ENV].prefix = i),
1255
+ modelValue: o[e(t).ENV].prefix,
1256
+ "onUpdate:modelValue": a[1] || (a[1] = (i) => o[e(t).ENV].prefix = i),
1257
1257
  modelModifiers: { trim: !0 },
1258
1258
  autocomplete: "off",
1259
1259
  "data-testid": "vault-form-config-kong-prefix",
@@ -1269,8 +1269,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1269
1269
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1270
1270
  l.config.base64FieldAvailable ? (k(), W(ne, {
1271
1271
  key: 0,
1272
- modelValue: a[e(t).ENV].base64_decode,
1273
- "onUpdate:modelValue": o[2] || (o[2] = (i) => a[e(t).ENV].base64_decode = i),
1272
+ modelValue: o[e(t).ENV].base64_decode,
1273
+ "onUpdate:modelValue": a[2] || (a[2] = (i) => o[e(t).ENV].base64_decode = i),
1274
1274
  "data-testid": "vault-form-config-env-base64_decode",
1275
1275
  label: e(r)("form.config.commonFields.base64_decode.label"),
1276
1276
  "label-attributes": {
@@ -1285,8 +1285,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1285
1285
  class: "vault-form-config-fields-container"
1286
1286
  }, [
1287
1287
  d(Q, {
1288
- modelValue: a[e(t).AWS].region,
1289
- "onUpdate:modelValue": o[3] || (o[3] = (i) => a[e(t).AWS].region = i),
1288
+ modelValue: o[e(t).AWS].region,
1289
+ "onUpdate:modelValue": a[3] || (a[3] = (i) => o[e(t).AWS].region = i),
1290
1290
  "data-testid": "vault-form-config-aws-region",
1291
1291
  items: G,
1292
1292
  label: e(r)("form.config.aws.fields.region.label"),
@@ -1297,8 +1297,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1297
1297
  width: "100%"
1298
1298
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1299
1299
  d(V, {
1300
- modelValue: a[e(t).AWS].endpoint_url,
1301
- "onUpdate:modelValue": o[4] || (o[4] = (i) => a[e(t).AWS].endpoint_url = i),
1300
+ modelValue: o[e(t).AWS].endpoint_url,
1301
+ "onUpdate:modelValue": a[4] || (a[4] = (i) => o[e(t).AWS].endpoint_url = i),
1302
1302
  modelModifiers: { trim: !0 },
1303
1303
  autocomplete: "off",
1304
1304
  "data-testid": "vault-form-config-aws-endpoint_url",
@@ -1311,8 +1311,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1311
1311
  type: "text"
1312
1312
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1313
1313
  d(V, {
1314
- modelValue: a[e(t).AWS].assume_role_arn,
1315
- "onUpdate:modelValue": o[5] || (o[5] = (i) => a[e(t).AWS].assume_role_arn = i),
1314
+ modelValue: o[e(t).AWS].assume_role_arn,
1315
+ "onUpdate:modelValue": a[5] || (a[5] = (i) => o[e(t).AWS].assume_role_arn = i),
1316
1316
  modelModifiers: { trim: !0 },
1317
1317
  autocomplete: "off",
1318
1318
  "data-testid": "vault-form-config-aws-assume_role_arn",
@@ -1325,8 +1325,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1325
1325
  type: "text"
1326
1326
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1327
1327
  d(V, {
1328
- modelValue: a[e(t).AWS].role_session_name,
1329
- "onUpdate:modelValue": o[6] || (o[6] = (i) => a[e(t).AWS].role_session_name = i),
1328
+ modelValue: o[e(t).AWS].role_session_name,
1329
+ "onUpdate:modelValue": a[6] || (a[6] = (i) => o[e(t).AWS].role_session_name = i),
1330
1330
  modelModifiers: { trim: !0 },
1331
1331
  autocomplete: "off",
1332
1332
  "data-testid": "vault-form-config-aws-role_session_name",
@@ -1341,8 +1341,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1341
1341
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1342
1342
  l.config.awsStsEndpointUrlAvailable ? (k(), W(V, {
1343
1343
  key: 0,
1344
- modelValue: a[e(t).AWS].sts_endpoint_url,
1345
- "onUpdate:modelValue": o[7] || (o[7] = (i) => a[e(t).AWS].sts_endpoint_url = i),
1344
+ modelValue: o[e(t).AWS].sts_endpoint_url,
1345
+ "onUpdate:modelValue": a[7] || (a[7] = (i) => o[e(t).AWS].sts_endpoint_url = i),
1346
1346
  modelModifiers: { trim: !0 },
1347
1347
  autocomplete: "off",
1348
1348
  "data-testid": "vault-form-config-aws-sts_endpoint_url",
@@ -1356,8 +1356,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1356
1356
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0),
1357
1357
  l.config.base64FieldAvailable ? (k(), W(ne, {
1358
1358
  key: 1,
1359
- modelValue: a[e(t).AWS].base64_decode,
1360
- "onUpdate:modelValue": o[8] || (o[8] = (i) => a[e(t).AWS].base64_decode = i),
1359
+ modelValue: o[e(t).AWS].base64_decode,
1360
+ "onUpdate:modelValue": a[8] || (a[8] = (i) => o[e(t).AWS].base64_decode = i),
1361
1361
  "data-testid": "vault-form-config-aws-base64_decode",
1362
1362
  label: e(r)("form.config.commonFields.base64_decode.label"),
1363
1363
  "label-attributes": {
@@ -1372,8 +1372,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1372
1372
  class: "vault-form-config-fields-container"
1373
1373
  }, [
1374
1374
  d(V, {
1375
- modelValue: a[e(t).GCP].project_id,
1376
- "onUpdate:modelValue": o[9] || (o[9] = (i) => a[e(t).GCP].project_id = i),
1375
+ modelValue: o[e(t).GCP].project_id,
1376
+ "onUpdate:modelValue": a[9] || (a[9] = (i) => o[e(t).GCP].project_id = i),
1377
1377
  modelModifiers: { trim: !0 },
1378
1378
  autocomplete: "off",
1379
1379
  "data-testid": "vault-form-config-gcp-project-id",
@@ -1398,8 +1398,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1398
1398
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
1399
1399
  l.config.base64FieldAvailable ? (k(), W(ne, {
1400
1400
  key: 0,
1401
- modelValue: a[e(t).GCP].base64_decode,
1402
- "onUpdate:modelValue": o[10] || (o[10] = (i) => a[e(t).GCP].base64_decode = i),
1401
+ modelValue: o[e(t).GCP].base64_decode,
1402
+ "onUpdate:modelValue": a[10] || (a[10] = (i) => o[e(t).GCP].base64_decode = i),
1403
1403
  "data-testid": "vault-form-config-gcp-base64_decode",
1404
1404
  label: e(r)("form.config.commonFields.base64_decode.label"),
1405
1405
  "label-attributes": {
@@ -1414,8 +1414,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1414
1414
  class: "vault-form-config-fields-container"
1415
1415
  }, [
1416
1416
  d(Q, {
1417
- modelValue: a[e(t).HCV].protocol,
1418
- "onUpdate:modelValue": o[11] || (o[11] = (i) => a[e(t).HCV].protocol = i),
1417
+ modelValue: o[e(t).HCV].protocol,
1418
+ "onUpdate:modelValue": a[11] || (a[11] = (i) => o[e(t).HCV].protocol = i),
1419
1419
  "data-testid": "vault-form-config-hcv-protocol",
1420
1420
  items: J,
1421
1421
  label: e(r)("form.config.hcv.fields.protocol.label"),
@@ -1424,8 +1424,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1424
1424
  width: "100%"
1425
1425
  }, null, 8, ["modelValue", "label", "readonly"]),
1426
1426
  d(V, {
1427
- modelValue: a[e(t).HCV].host,
1428
- "onUpdate:modelValue": o[12] || (o[12] = (i) => a[e(t).HCV].host = i),
1427
+ modelValue: o[e(t).HCV].host,
1428
+ "onUpdate:modelValue": a[12] || (a[12] = (i) => o[e(t).HCV].host = i),
1429
1429
  modelModifiers: { trim: !0 },
1430
1430
  autocomplete: "off",
1431
1431
  "data-testid": "vault-form-config-hcv-host",
@@ -1435,8 +1435,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1435
1435
  type: "text"
1436
1436
  }, null, 8, ["modelValue", "label", "readonly"]),
1437
1437
  d(V, {
1438
- modelValue: a[e(t).HCV].port,
1439
- "onUpdate:modelValue": o[13] || (o[13] = (i) => a[e(t).HCV].port = i),
1438
+ modelValue: o[e(t).HCV].port,
1439
+ "onUpdate:modelValue": a[13] || (a[13] = (i) => o[e(t).HCV].port = i),
1440
1440
  autocomplete: "off",
1441
1441
  "data-testid": "vault-form-config-hcv-port",
1442
1442
  label: e(r)("form.config.hcv.fields.port.label"),
@@ -1446,8 +1446,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1446
1446
  type: "number"
1447
1447
  }, null, 8, ["modelValue", "label", "readonly"]),
1448
1448
  d(V, {
1449
- modelValue: a[e(t).HCV].mount,
1450
- "onUpdate:modelValue": o[14] || (o[14] = (i) => a[e(t).HCV].mount = i),
1449
+ modelValue: o[e(t).HCV].mount,
1450
+ "onUpdate:modelValue": a[14] || (a[14] = (i) => o[e(t).HCV].mount = i),
1451
1451
  modelModifiers: { trim: !0 },
1452
1452
  autocomplete: "off",
1453
1453
  "data-testid": "vault-form-config-hcv-mount",
@@ -1457,8 +1457,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1457
1457
  type: "text"
1458
1458
  }, null, 8, ["modelValue", "label", "readonly"]),
1459
1459
  d(Q, {
1460
- modelValue: a[e(t).HCV].kv,
1461
- "onUpdate:modelValue": o[15] || (o[15] = (i) => a[e(t).HCV].kv = i),
1460
+ modelValue: o[e(t).HCV].kv,
1461
+ "onUpdate:modelValue": a[15] || (a[15] = (i) => o[e(t).HCV].kv = i),
1462
1462
  "data-testid": "vault-form-config-hcv-kv",
1463
1463
  items: b,
1464
1464
  label: e(r)("form.config.hcv.fields.kv.label"),
@@ -1467,8 +1467,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1467
1467
  width: "100%"
1468
1468
  }, null, 8, ["modelValue", "label", "readonly"]),
1469
1469
  d(V, {
1470
- modelValue: a[e(t).HCV].namespace,
1471
- "onUpdate:modelValue": o[16] || (o[16] = (i) => a[e(t).HCV].namespace = i),
1470
+ modelValue: o[e(t).HCV].namespace,
1471
+ "onUpdate:modelValue": a[16] || (a[16] = (i) => o[e(t).HCV].namespace = i),
1472
1472
  modelModifiers: { trim: !0 },
1473
1473
  autocomplete: "off",
1474
1474
  "data-testid": "vault-form-config-hcv-namespace",
@@ -1477,8 +1477,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1477
1477
  type: "text"
1478
1478
  }, null, 8, ["modelValue", "label", "readonly"]),
1479
1479
  d(Q, {
1480
- modelValue: a[e(t).HCV].auth_method,
1481
- "onUpdate:modelValue": o[17] || (o[17] = (i) => a[e(t).HCV].auth_method = i),
1480
+ modelValue: o[e(t).HCV].auth_method,
1481
+ "onUpdate:modelValue": a[17] || (a[17] = (i) => o[e(t).HCV].auth_method = i),
1482
1482
  "data-testid": "vault-form-config-hcv-auth_method",
1483
1483
  items: [
1484
1484
  { label: e(H).TOKEN, value: e(H).TOKEN },
@@ -1491,10 +1491,10 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1491
1491
  required: "",
1492
1492
  width: "100%"
1493
1493
  }, null, 8, ["modelValue", "items", "label", "readonly"]),
1494
- a[e(t).HCV].auth_method === e(H).TOKEN ? (k(), D("div", Dt, [
1494
+ o[e(t).HCV].auth_method === e(H).TOKEN ? (k(), D("div", Dt, [
1495
1495
  d(V, {
1496
- modelValue: a[e(t).HCV].token,
1497
- "onUpdate:modelValue": o[18] || (o[18] = (i) => a[e(t).HCV].token = i),
1496
+ modelValue: o[e(t).HCV].token,
1497
+ "onUpdate:modelValue": a[18] || (a[18] = (i) => o[e(t).HCV].token = i),
1498
1498
  modelModifiers: { trim: !0 },
1499
1499
  autocomplete: "off",
1500
1500
  "data-testid": "vault-form-config-hcv-token",
@@ -1503,10 +1503,10 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1503
1503
  required: "",
1504
1504
  type: "text"
1505
1505
  }, null, 8, ["modelValue", "label", "readonly"])
1506
- ])) : a[e(t).HCV].auth_method === e(H).K8S ? (k(), D("div", Wt, [
1506
+ ])) : o[e(t).HCV].auth_method === e(H).K8S ? (k(), D("div", Wt, [
1507
1507
  d(V, {
1508
- modelValue: a[e(t).HCV].kube_role,
1509
- "onUpdate:modelValue": o[19] || (o[19] = (i) => a[e(t).HCV].kube_role = i),
1508
+ modelValue: o[e(t).HCV].kube_role,
1509
+ "onUpdate:modelValue": a[19] || (a[19] = (i) => o[e(t).HCV].kube_role = i),
1510
1510
  modelModifiers: { trim: !0 },
1511
1511
  autocomplete: "off",
1512
1512
  "data-testid": "vault-form-config-hcv-kube_role",
@@ -1516,8 +1516,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1516
1516
  type: "text"
1517
1517
  }, null, 8, ["modelValue", "label", "readonly"]),
1518
1518
  d(V, {
1519
- modelValue: a[e(t).HCV].kube_auth_path,
1520
- "onUpdate:modelValue": o[20] || (o[20] = (i) => a[e(t).HCV].kube_auth_path = i),
1519
+ modelValue: o[e(t).HCV].kube_auth_path,
1520
+ "onUpdate:modelValue": a[20] || (a[20] = (i) => o[e(t).HCV].kube_auth_path = i),
1521
1521
  modelModifiers: { trim: !0 },
1522
1522
  autocomplete: "off",
1523
1523
  "data-testid": "vault-form-config-hcv-kube_auth_path",
@@ -1526,8 +1526,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1526
1526
  type: "text"
1527
1527
  }, null, 8, ["modelValue", "label", "readonly"]),
1528
1528
  d(V, {
1529
- modelValue: a[e(t).HCV].kube_api_token_file,
1530
- "onUpdate:modelValue": o[21] || (o[21] = (i) => a[e(t).HCV].kube_api_token_file = i),
1529
+ modelValue: o[e(t).HCV].kube_api_token_file,
1530
+ "onUpdate:modelValue": a[21] || (a[21] = (i) => o[e(t).HCV].kube_api_token_file = i),
1531
1531
  modelModifiers: { trim: !0 },
1532
1532
  autocomplete: "off",
1533
1533
  "data-testid": "vault-form-config-hcv-kube_api_token_file",
@@ -1536,10 +1536,10 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1536
1536
  required: "",
1537
1537
  type: "text"
1538
1538
  }, null, 8, ["modelValue", "label", "readonly"])
1539
- ])) : a[e(t).HCV].auth_method === e(H).APP_ROLE ? (k(), D("div", Bt, [
1539
+ ])) : o[e(t).HCV].auth_method === e(H).APP_ROLE ? (k(), D("div", Bt, [
1540
1540
  d(V, {
1541
- modelValue: a[e(t).HCV].approle_auth_path,
1542
- "onUpdate:modelValue": o[22] || (o[22] = (i) => a[e(t).HCV].approle_auth_path = i),
1541
+ modelValue: o[e(t).HCV].approle_auth_path,
1542
+ "onUpdate:modelValue": a[22] || (a[22] = (i) => o[e(t).HCV].approle_auth_path = i),
1543
1543
  modelModifiers: { trim: !0 },
1544
1544
  autocomplete: "off",
1545
1545
  "data-testid": "vault-form-config-hcv-approle_auth_path",
@@ -1548,8 +1548,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1548
1548
  type: "text"
1549
1549
  }, null, 8, ["modelValue", "label", "readonly"]),
1550
1550
  d(V, {
1551
- modelValue: a[e(t).HCV].approle_role_id,
1552
- "onUpdate:modelValue": o[23] || (o[23] = (i) => a[e(t).HCV].approle_role_id = i),
1551
+ modelValue: o[e(t).HCV].approle_role_id,
1552
+ "onUpdate:modelValue": a[23] || (a[23] = (i) => o[e(t).HCV].approle_role_id = i),
1553
1553
  modelModifiers: { trim: !0 },
1554
1554
  autocomplete: "off",
1555
1555
  "data-testid": "vault-form-config-hcv-approle_role_id",
@@ -1559,8 +1559,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1559
1559
  type: "text"
1560
1560
  }, null, 8, ["modelValue", "label", "readonly"]),
1561
1561
  d(V, {
1562
- modelValue: a[e(t).HCV].approle_secret_id,
1563
- "onUpdate:modelValue": o[24] || (o[24] = (i) => a[e(t).HCV].approle_secret_id = i),
1562
+ modelValue: o[e(t).HCV].approle_secret_id,
1563
+ "onUpdate:modelValue": a[24] || (a[24] = (i) => o[e(t).HCV].approle_secret_id = i),
1564
1564
  modelModifiers: { trim: !0 },
1565
1565
  autocomplete: "off",
1566
1566
  "data-testid": "vault-form-config-hcv-approle_secret_id",
@@ -1569,8 +1569,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1569
1569
  type: "text"
1570
1570
  }, null, 8, ["modelValue", "label", "readonly"]),
1571
1571
  d(V, {
1572
- modelValue: a[e(t).HCV].approle_secret_id_file,
1573
- "onUpdate:modelValue": o[25] || (o[25] = (i) => a[e(t).HCV].approle_secret_id_file = i),
1572
+ modelValue: o[e(t).HCV].approle_secret_id_file,
1573
+ "onUpdate:modelValue": a[25] || (a[25] = (i) => o[e(t).HCV].approle_secret_id_file = i),
1574
1574
  modelModifiers: { trim: !0 },
1575
1575
  autocomplete: "off",
1576
1576
  "data-testid": "vault-form-config-hcv-approle_secret_id_file",
@@ -1579,15 +1579,15 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1579
1579
  type: "text"
1580
1580
  }, null, 8, ["modelValue", "label", "readonly"]),
1581
1581
  d(ne, {
1582
- modelValue: a[e(t).HCV].approle_response_wrapping,
1583
- "onUpdate:modelValue": o[26] || (o[26] = (i) => a[e(t).HCV].approle_response_wrapping = i),
1582
+ modelValue: o[e(t).HCV].approle_response_wrapping,
1583
+ "onUpdate:modelValue": a[26] || (a[26] = (i) => o[e(t).HCV].approle_response_wrapping = i),
1584
1584
  "data-testid": "vault-form-config-hcv-approle_response_wrapping",
1585
1585
  label: e(r)("form.config.hcv.fields.approle_response_wrapping.label")
1586
1586
  }, null, 8, ["modelValue", "label"])
1587
- ])) : a[e(t).HCV].auth_method === e(H).CERT ? (k(), D("div", zt, [
1587
+ ])) : o[e(t).HCV].auth_method === e(H).CERT ? (k(), D("div", zt, [
1588
1588
  d(V, {
1589
- modelValue: a[e(t).HCV].cert_auth_role_name,
1590
- "onUpdate:modelValue": o[27] || (o[27] = (i) => a[e(t).HCV].cert_auth_role_name = i),
1589
+ modelValue: o[e(t).HCV].cert_auth_role_name,
1590
+ "onUpdate:modelValue": a[27] || (a[27] = (i) => o[e(t).HCV].cert_auth_role_name = i),
1591
1591
  modelModifiers: { trim: !0 },
1592
1592
  autocomplete: "off",
1593
1593
  "data-testid": "vault-form-config-hcv-cert_auth_role_name",
@@ -1596,8 +1596,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1596
1596
  required: ""
1597
1597
  }, null, 8, ["modelValue", "label", "readonly"]),
1598
1598
  d(ue, {
1599
- modelValue: a[e(t).HCV].cert_auth_cert,
1600
- "onUpdate:modelValue": o[28] || (o[28] = (i) => a[e(t).HCV].cert_auth_cert = i),
1599
+ modelValue: o[e(t).HCV].cert_auth_cert,
1600
+ "onUpdate:modelValue": a[28] || (a[28] = (i) => o[e(t).HCV].cert_auth_cert = i),
1601
1601
  modelModifiers: { trim: !0 },
1602
1602
  autocomplete: "off",
1603
1603
  "data-testid": "vault-form-config-hcv-cert_auth_cert",
@@ -1606,8 +1606,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1606
1606
  required: ""
1607
1607
  }, null, 8, ["modelValue", "label", "readonly"]),
1608
1608
  d(ue, {
1609
- modelValue: a[e(t).HCV].cert_auth_cert_key,
1610
- "onUpdate:modelValue": o[29] || (o[29] = (i) => a[e(t).HCV].cert_auth_cert_key = i),
1609
+ modelValue: o[e(t).HCV].cert_auth_cert_key,
1610
+ "onUpdate:modelValue": a[29] || (a[29] = (i) => o[e(t).HCV].cert_auth_cert_key = i),
1611
1611
  modelModifiers: { trim: !0 },
1612
1612
  autocomplete: "off",
1613
1613
  "data-testid": "vault-form-config-hcv-cert_auth_cert_key",
@@ -1618,8 +1618,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1618
1618
  ])) : j("", !0),
1619
1619
  l.config.base64FieldAvailable ? (k(), W(ne, {
1620
1620
  key: 4,
1621
- modelValue: a[e(t).HCV].base64_decode,
1622
- "onUpdate:modelValue": o[30] || (o[30] = (i) => a[e(t).HCV].base64_decode = i),
1621
+ modelValue: o[e(t).HCV].base64_decode,
1622
+ "onUpdate:modelValue": a[30] || (a[30] = (i) => o[e(t).HCV].base64_decode = i),
1623
1623
  "data-testid": "vault-form-config-hcv-base64_decode",
1624
1624
  label: e(r)("form.config.commonFields.base64_decode.label"),
1625
1625
  "label-attributes": {
@@ -1634,8 +1634,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1634
1634
  class: "vault-form-config-fields-container"
1635
1635
  }, [
1636
1636
  d(V, {
1637
- modelValue: a[e(t).AZURE].location,
1638
- "onUpdate:modelValue": o[31] || (o[31] = (i) => a[e(t).AZURE].location = i),
1637
+ modelValue: o[e(t).AZURE].location,
1638
+ "onUpdate:modelValue": a[31] || (a[31] = (i) => o[e(t).AZURE].location = i),
1639
1639
  modelModifiers: { trim: !0 },
1640
1640
  autocomplete: "off",
1641
1641
  "data-testid": "vault-form-config-azure-location",
@@ -1645,8 +1645,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1645
1645
  type: "text"
1646
1646
  }, null, 8, ["modelValue", "label", "readonly"]),
1647
1647
  d(V, {
1648
- modelValue: a[e(t).AZURE].vault_uri,
1649
- "onUpdate:modelValue": o[32] || (o[32] = (i) => a[e(t).AZURE].vault_uri = i),
1648
+ modelValue: o[e(t).AZURE].vault_uri,
1649
+ "onUpdate:modelValue": a[32] || (a[32] = (i) => o[e(t).AZURE].vault_uri = i),
1650
1650
  modelModifiers: { trim: !0 },
1651
1651
  autocomplete: "off",
1652
1652
  "data-testid": "vault-form-config-azure-uri",
@@ -1656,8 +1656,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1656
1656
  type: "text"
1657
1657
  }, null, 8, ["modelValue", "label", "readonly"]),
1658
1658
  d(V, {
1659
- modelValue: a[e(t).AZURE].credentials_prefix,
1660
- "onUpdate:modelValue": o[33] || (o[33] = (i) => a[e(t).AZURE].credentials_prefix = i),
1659
+ modelValue: o[e(t).AZURE].credentials_prefix,
1660
+ "onUpdate:modelValue": a[33] || (a[33] = (i) => o[e(t).AZURE].credentials_prefix = i),
1661
1661
  modelModifiers: { trim: !0 },
1662
1662
  autocomplete: "off",
1663
1663
  "data-testid": "vault-form-config-azure-prefix",
@@ -1667,8 +1667,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1667
1667
  type: "text"
1668
1668
  }, null, 8, ["modelValue", "label", "readonly"]),
1669
1669
  d(Q, {
1670
- modelValue: a[e(t).AZURE].type,
1671
- "onUpdate:modelValue": o[34] || (o[34] = (i) => a[e(t).AZURE].type = i),
1670
+ modelValue: o[e(t).AZURE].type,
1671
+ "onUpdate:modelValue": a[34] || (a[34] = (i) => o[e(t).AZURE].type = i),
1672
1672
  "data-testid": "vault-form-config-azure-type",
1673
1673
  items: te,
1674
1674
  label: e(r)("form.config.azure.fields.type.label"),
@@ -1678,8 +1678,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1678
1678
  width: "100%"
1679
1679
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1680
1680
  d(V, {
1681
- modelValue: a[e(t).AZURE].client_id,
1682
- "onUpdate:modelValue": o[35] || (o[35] = (i) => a[e(t).AZURE].client_id = i),
1681
+ modelValue: o[e(t).AZURE].client_id,
1682
+ "onUpdate:modelValue": a[35] || (a[35] = (i) => o[e(t).AZURE].client_id = i),
1683
1683
  modelModifiers: { trim: !0 },
1684
1684
  autocomplete: "off",
1685
1685
  "data-testid": "vault-form-config-azure-client-id",
@@ -1688,8 +1688,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1688
1688
  type: "text"
1689
1689
  }, null, 8, ["modelValue", "label", "readonly"]),
1690
1690
  d(V, {
1691
- modelValue: a[e(t).AZURE].tenant_id,
1692
- "onUpdate:modelValue": o[36] || (o[36] = (i) => a[e(t).AZURE].tenant_id = i),
1691
+ modelValue: o[e(t).AZURE].tenant_id,
1692
+ "onUpdate:modelValue": a[36] || (a[36] = (i) => o[e(t).AZURE].tenant_id = i),
1693
1693
  modelModifiers: { trim: !0 },
1694
1694
  autocomplete: "off",
1695
1695
  "data-testid": "vault-form-config-azure-tenant-id",
@@ -1699,8 +1699,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1699
1699
  }, null, 8, ["modelValue", "label", "readonly"]),
1700
1700
  l.config.base64FieldAvailable ? (k(), W(ne, {
1701
1701
  key: 0,
1702
- modelValue: a[e(t).AZURE].base64_decode,
1703
- "onUpdate:modelValue": o[37] || (o[37] = (i) => a[e(t).AZURE].base64_decode = i),
1702
+ modelValue: o[e(t).AZURE].base64_decode,
1703
+ "onUpdate:modelValue": a[37] || (a[37] = (i) => o[e(t).AZURE].base64_decode = i),
1704
1704
  "data-testid": "vault-form-config-azure-base64_decode",
1705
1705
  label: e(r)("form.config.commonFields.base64_decode.label"),
1706
1706
  "label-attributes": {
@@ -1715,8 +1715,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1715
1715
  class: "vault-form-config-fields-container"
1716
1716
  }, [
1717
1717
  d(V, {
1718
- modelValue: a[e(t).CONJUR].endpoint_url,
1719
- "onUpdate:modelValue": o[38] || (o[38] = (i) => a[e(t).CONJUR].endpoint_url = i),
1718
+ modelValue: o[e(t).CONJUR].endpoint_url,
1719
+ "onUpdate:modelValue": a[38] || (a[38] = (i) => o[e(t).CONJUR].endpoint_url = i),
1720
1720
  modelModifiers: { trim: !0 },
1721
1721
  autocomplete: "off",
1722
1722
  "data-testid": "vault-form-config-conjur-endpoint_url",
@@ -1730,8 +1730,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1730
1730
  type: "text"
1731
1731
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1732
1732
  d(V, {
1733
- modelValue: a[e(t).CONJUR].login,
1734
- "onUpdate:modelValue": o[39] || (o[39] = (i) => a[e(t).CONJUR].login = i),
1733
+ modelValue: o[e(t).CONJUR].login,
1734
+ "onUpdate:modelValue": a[39] || (a[39] = (i) => o[e(t).CONJUR].login = i),
1735
1735
  modelModifiers: { trim: !0 },
1736
1736
  autocomplete: "off",
1737
1737
  "data-testid": "vault-form-config-conjur-login",
@@ -1745,8 +1745,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1745
1745
  type: "text"
1746
1746
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1747
1747
  d(V, {
1748
- modelValue: a[e(t).CONJUR].account,
1749
- "onUpdate:modelValue": o[40] || (o[40] = (i) => a[e(t).CONJUR].account = i),
1748
+ modelValue: o[e(t).CONJUR].account,
1749
+ "onUpdate:modelValue": a[40] || (a[40] = (i) => o[e(t).CONJUR].account = i),
1750
1750
  modelModifiers: { trim: !0 },
1751
1751
  autocomplete: "off",
1752
1752
  "data-testid": "vault-form-config-conjur-account",
@@ -1760,8 +1760,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1760
1760
  type: "text"
1761
1761
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1762
1762
  d(V, {
1763
- modelValue: a[e(t).CONJUR].api_key,
1764
- "onUpdate:modelValue": o[41] || (o[41] = (i) => a[e(t).CONJUR].api_key = i),
1763
+ modelValue: o[e(t).CONJUR].api_key,
1764
+ "onUpdate:modelValue": a[41] || (a[41] = (i) => o[e(t).CONJUR].api_key = i),
1765
1765
  modelModifiers: { trim: !0 },
1766
1766
  autocomplete: "off",
1767
1767
  "data-testid": "vault-form-config-conjur-api_key",
@@ -1777,8 +1777,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1777
1777
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1778
1778
  l.config.base64FieldAvailable ? (k(), W(ne, {
1779
1779
  key: 0,
1780
- modelValue: a[e(t).CONJUR].base64_decode,
1781
- "onUpdate:modelValue": o[42] || (o[42] = (i) => a[e(t).CONJUR].base64_decode = i),
1780
+ modelValue: o[e(t).CONJUR].base64_decode,
1781
+ "onUpdate:modelValue": a[42] || (a[42] = (i) => o[e(t).CONJUR].base64_decode = i),
1782
1782
  "data-testid": "vault-form-config-env-base64_decode",
1783
1783
  label: e(r)("form.config.commonFields.base64_decode.label"),
1784
1784
  "label-attributes": {
@@ -1800,8 +1800,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1800
1800
  x("div", Gt, [
1801
1801
  x("div", Jt, [
1802
1802
  d(V, {
1803
- modelValue: a[f.value].ttl,
1804
- "onUpdate:modelValue": o[43] || (o[43] = (i) => a[f.value].ttl = i),
1803
+ modelValue: o[f.value].ttl,
1804
+ "onUpdate:modelValue": a[43] || (a[43] = (i) => o[f.value].ttl = i),
1805
1805
  "data-testid": "vault-ttl-input",
1806
1806
  label: e(r)("form.config.advancedFields.ttl"),
1807
1807
  "label-attributes": {
@@ -1813,8 +1813,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1813
1813
  ]),
1814
1814
  x("div", Zt, [
1815
1815
  d(V, {
1816
- modelValue: a[f.value].neg_ttl,
1817
- "onUpdate:modelValue": o[44] || (o[44] = (i) => a[f.value].neg_ttl = i),
1816
+ modelValue: o[f.value].neg_ttl,
1817
+ "onUpdate:modelValue": a[44] || (a[44] = (i) => o[f.value].neg_ttl = i),
1818
1818
  "data-testid": "vault-neg-ttl-input",
1819
1819
  label: e(r)("form.config.advancedFields.negTtl"),
1820
1820
  "label-attributes": {
@@ -1828,8 +1828,8 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1828
1828
  x("div", Qt, [
1829
1829
  x("div", Yt, [
1830
1830
  d(V, {
1831
- modelValue: a[f.value].resurrect_ttl,
1832
- "onUpdate:modelValue": o[45] || (o[45] = (i) => a[f.value].resurrect_ttl = i),
1831
+ modelValue: o[f.value].resurrect_ttl,
1832
+ "onUpdate:modelValue": a[45] || (a[45] = (i) => o[f.value].resurrect_ttl = i),
1833
1833
  "data-testid": "vault-resurrect-ttl-input",
1834
1834
  label: e(r)("form.config.advancedFields.resurrectTtl"),
1835
1835
  "label-attributes": {
@@ -1857,7 +1857,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1857
1857
  default: v(() => [
1858
1858
  d(V, {
1859
1859
  modelValue: u.fields.prefix,
1860
- "onUpdate:modelValue": o[46] || (o[46] = (i) => u.fields.prefix = i),
1860
+ "onUpdate:modelValue": a[46] || (a[46] = (i) => u.fields.prefix = i),
1861
1861
  modelModifiers: { trim: !0 },
1862
1862
  autocomplete: "off",
1863
1863
  "data-testid": "vault-form-prefix",
@@ -1874,7 +1874,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1874
1874
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
1875
1875
  d(ue, {
1876
1876
  modelValue: u.fields.description,
1877
- "onUpdate:modelValue": o[47] || (o[47] = (i) => u.fields.description = i),
1877
+ "onUpdate:modelValue": a[47] || (a[47] = (i) => u.fields.description = i),
1878
1878
  modelModifiers: { trim: !0 },
1879
1879
  "character-limit": 1e3,
1880
1880
  class: "vault-form-textarea",
@@ -1885,7 +1885,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
1885
1885
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1886
1886
  d(V, {
1887
1887
  modelValue: u.fields.tags,
1888
- "onUpdate:modelValue": o[48] || (o[48] = (i) => u.fields.tags = i),
1888
+ "onUpdate:modelValue": a[48] || (a[48] = (i) => u.fields.tags = i),
1889
1889
  modelModifiers: { trim: !0 },
1890
1890
  autocomplete: "off",
1891
1891
  "data-testid": "vault-form-tags",
@@ -2044,7 +2044,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2044
2044
  fetcherCacheKey: X
2045
2045
  } = Oe(w(() => ({ ...s.config, cacheIdentifier: s.cacheIdentifier })), h), N = () => {
2046
2046
  f.value = "";
2047
- }, a = $(null), ae = (A) => ({
2047
+ }, o = $(null), ae = (A) => ({
2048
2048
  label: p("actions.edit"),
2049
2049
  to: s.config.getEditRoute(A)
2050
2050
  }), G = $(void 0), te = $(!1), J = $(!1), b = $(""), M = qe(s.config, h.value), re = (A) => {
@@ -2067,12 +2067,12 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2067
2067
  ke(Y, (A) => {
2068
2068
  var Z, le, g;
2069
2069
  if (A.status === je.Error) {
2070
- a.value = {
2070
+ o.value = {
2071
2071
  title: p("errors.general")
2072
- }, (g = (le = (Z = A.error) == null ? void 0 : Z.response) == null ? void 0 : le.data) != null && g.message && (a.value.message = A.error.response.data.message), c("error", A.error);
2072
+ }, (g = (le = (Z = A.error) == null ? void 0 : Z.response) == null ? void 0 : le.data) != null && g.message && (o.value.message = A.error.response.data.message), c("error", A.error);
2073
2073
  return;
2074
2074
  }
2075
- a.value = null;
2075
+ o.value = null;
2076
2076
  });
2077
2077
  const F = $({
2078
2078
  ctaPath: s.config.createRoute,
@@ -2090,7 +2090,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2090
2090
  "disable-sorting": "",
2091
2091
  "empty-state-options": F.value,
2092
2092
  "enable-entity-actions": "",
2093
- "error-message": a.value,
2093
+ "error-message": o.value,
2094
2094
  fetcher: e(ee),
2095
2095
  "fetcher-cache-key": e(X),
2096
2096
  "pagination-type": "offset",
@@ -2301,7 +2301,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2301
2301
  }, X = w(() => c.secretId ? Ve.Edit : Ve.Create), N = w(() => {
2302
2302
  var b;
2303
2303
  return `${c.config.apiBaseUrl}${be.form[c.config.app][X.value]}`.replace(/{controlPlaneId}/gi, ((b = c.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2304
- }), a = w(() => !!_.fields.key && !!_.fields.value), ae = w(() => JSON.stringify(_.fields) !== JSON.stringify(u)), G = w(() => ({
2304
+ }), o = w(() => !!_.fields.key && !!_.fields.value), ae = w(() => JSON.stringify(_.fields) !== JSON.stringify(u)), G = w(() => ({
2305
2305
  key: _.fields.key,
2306
2306
  value: _.fields.value
2307
2307
  })), te = async () => {
@@ -2318,7 +2318,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2318
2318
  return (b, M) => {
2319
2319
  const re = B("KInput"), se = B("KTextArea"), oe = B("KAlert");
2320
2320
  return k(), W(e(Ge), {
2321
- "can-submit": a.value && ae.value,
2321
+ "can-submit": o.value && ae.value,
2322
2322
  config: l.config,
2323
2323
  "edit-id": l.secretId,
2324
2324
  "entity-type": e(Ee).Other,
@@ -2532,7 +2532,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2532
2532
  loading: Y,
2533
2533
  error: X,
2534
2534
  loadItems: N,
2535
- results: a
2535
+ results: o
2536
2536
  } = He(s.config, fe.list[s.config.app].getAll, void 0, {
2537
2537
  fetchedItemsKey: "data",
2538
2538
  searchKeys: ["prefix"]
@@ -2549,7 +2549,7 @@ const Ht = { class: "kong-ui-entities-vault-form" }, Mt = { class: "vault-form-p
2549
2549
  }), M = w(() => {
2550
2550
  var K;
2551
2551
  let g = !1;
2552
- const m = ((K = a.value) == null ? void 0 : K.map((P) => (P.prefix === C.value && (g = !0), { label: P.prefix, value: P.prefix, vault: P }))) ?? [];
2552
+ const m = ((K = o.value) == null ? void 0 : K.map((P) => (P.prefix === C.value && (g = !0), { label: P.prefix, value: P.prefix, vault: P }))) ?? [];
2553
2553
  return !g && h.value && m.push({
2554
2554
  label: h.value.prefix,
2555
2555
  value: h.value.prefix,