@kong-ui-public/entities-vaults 4.9.7 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as _e, computed as k, ref as z, watch as Ee, onBeforeMount as He, resolveComponent as Y, openBlock as y, createElementBlock as F, createVNode as u, unref as e, createSlots as qe, withCtx as g, createTextVNode as me, toDisplayString as N, createElementVNode as T, createBlock as q, Teleport as ut, createCommentVNode as O, reactive as Ae, resolveDynamicComponent as ze, TransitionGroup as ct, Fragment as Ye, renderList as ft, mergeProps as Xe, normalizeClass as pt, nextTick as mt, renderSlot as _t } from "vue";
2
- import { useRouter as Ke } from "vue-router";
3
- import { BookIcon as De, AddIcon as $e, SecurityIcon as vt, FolderIcon as gt, ConjourIcon as yt, AzureIcon as Ze, HashicorpIcon as ht, GoogleCloudIcon as bt, AwsIcon as wt, CodeIcon as Vt, KongIcon as Ct } from "@kong/icons";
4
- import { useAxios as Ve, useTableState as kt, useFetcher as et, useDeleteUrlBuilder as tt, FetcherStatus as at, EntityBaseTable as lt, PermissionsWrapper as we, TableTags as At, EntityFilter as ot, EntityDeleteModal as rt, EntityTypes as it, useErrors as nt, EntityBaseFormType as Se, useGatewayFeatureSupported as St, EntityBaseForm as st, SupportedEntityType as Ne, EntityFormSection as Pe, useStringHelpers as Rt, useHelpers as xt, ConfigurationSchemaType as Et, ConfigurationSchemaSection as Be, EntityBaseConfigCard as It, ConfigCardItem as Ut, useDebouncedFilter as Le } from "@kong-ui-public/entities-shared";
5
- import { createI18n as Ht, i18nTComponent as Tt } from "@kong-ui-public/i18n";
6
- const Mt = {
1
+ import { defineComponent as ye, computed as k, ref as D, watch as Ue, onBeforeMount as Ge, resolveComponent as Q, openBlock as v, createElementBlock as N, createVNode as u, unref as e, createSlots as Ze, withCtx as y, createTextVNode as ve, toDisplayString as O, createElementVNode as M, createBlock as H, Teleport as pt, createCommentVNode as j, reactive as Ee, resolveDynamicComponent as Be, TransitionGroup as mt, Fragment as tt, renderList as _t, mergeProps as at, normalizeClass as vt, nextTick as gt, renderSlot as yt } from "vue";
2
+ import { useRouter as je } from "vue-router";
3
+ import { BookIcon as Le, AddIcon as Ke, SecurityIcon as bt, FolderIcon as ht, ConjourIcon as wt, AzureIcon as Je, HashicorpIcon as Vt, GoogleCloudIcon as kt, AwsIcon as Ct, CodeIcon as At, KongIcon as St } from "@kong/icons";
4
+ import { useAxios as Ce, useTableState as Rt, useFetcher as lt, useDeleteUrlBuilder as ot, FetcherStatus as it, EntityBaseTable as rt, PermissionsWrapper as ke, TableTags as Et, EntityFilter as nt, EntityDeleteModal as st, EntityTypes as dt, useErrors as ut, EntityBaseFormType as ge, useGatewayFeatureSupported as xt, EntityBaseForm as ct, SupportedEntityType as qe, EntityFormSection as Oe, SensitiveInput as Te, useStringHelpers as It, useHelpers as Ut, ConfigurationSchemaType as Ht, ConfigurationSchemaSection as Qe, EntityBaseConfigCard as Tt, ConfigCardItem as Mt, useDebouncedFilter as Ye } from "@kong-ui-public/entities-shared";
5
+ import { createI18n as Gt, i18nTComponent as $t } from "@kong-ui-public/i18n";
6
+ const Pt = {
7
7
  create: "New vault",
8
8
  copy_id: "Copy ID",
9
9
  copy_json: "Copy JSON",
@@ -11,18 +11,18 @@ const Mt = {
11
11
  delete: "Delete",
12
12
  view: "View details",
13
13
  loading: "Loading..."
14
- }, Gt = {
14
+ }, Ft = {
15
15
  general: "Vaults could not be retrieved",
16
16
  delete: "The vault could not be deleted at this time.",
17
17
  copy: "Failed to copy to clipboard"
18
- }, $t = {
18
+ }, Nt = {
19
19
  placeholder_for_vaults: {
20
20
  konnect: "Filter by exact prefix or ID"
21
21
  },
22
22
  placeholder_for_secrets: {
23
23
  konnect: "Filter by exact key"
24
24
  }
25
- }, Pt = {
25
+ }, Kt = {
26
26
  title: "Vaults",
27
27
  list: {
28
28
  toolbar_actions: {
@@ -48,7 +48,7 @@ const Mt = {
48
48
  learn_more: "Learn more"
49
49
  }
50
50
  }
51
- }, Ft = {
51
+ }, Ot = {
52
52
  title: "Secrets",
53
53
  list: {
54
54
  toolbar_actions: {
@@ -80,14 +80,14 @@ const Mt = {
80
80
  },
81
81
  hint: "Once saved, the secret value will not be visible"
82
82
  }
83
- }, Kt = {
83
+ }, Wt = {
84
84
  success: "Copied {val} to clipboard",
85
85
  success_brief: "Successfully copied to clipboard"
86
- }, Nt = {
86
+ }, jt = {
87
87
  vault_type: "Vault type",
88
88
  vault_type_ai_gateway: "Type",
89
89
  vault_name_ai_gateway: "Name"
90
- }, Ot = {
90
+ }, qt = {
91
91
  sections: {
92
92
  general: {
93
93
  title: "General information",
@@ -472,7 +472,7 @@ const Mt = {
472
472
  }
473
473
  },
474
474
  unavailable: "This vault provider is available on Enterprise."
475
- }, Wt = {
475
+ }, zt = {
476
476
  title: "Look up key in vault",
477
477
  vault: {
478
478
  label: "Vault",
@@ -501,65 +501,65 @@ const Mt = {
501
501
  complete_action: "Look up {cta}",
502
502
  cta: "key in vault"
503
503
  }
504
- }, jt = {
505
- actions: Mt,
504
+ }, Dt = {
505
+ actions: Pt,
506
506
  delete: {
507
507
  title: "Delete a vault",
508
508
  title_for_secret: "Delete a secret",
509
509
  description: "This action cannot be reversed."
510
510
  },
511
- errors: Gt,
512
- search: $t,
513
- vaults: Pt,
514
- secrets: Ft,
515
- copy: Kt,
516
- labels: Nt,
517
- form: Ot,
518
- vault_secret_picker: Wt
511
+ errors: Ft,
512
+ search: Nt,
513
+ vaults: Kt,
514
+ secrets: Ot,
515
+ copy: Wt,
516
+ labels: jt,
517
+ form: qt,
518
+ vault_secret_picker: zt
519
519
  };
520
- function qt() {
521
- const l = Ht("en-us", jt);
520
+ function Zt() {
521
+ const l = Gt("en-us", Dt);
522
522
  return {
523
523
  i18n: l,
524
- i18nT: Tt(l)
524
+ i18nT: $t(l)
525
525
  // Translation component <i18n-t>
526
526
  };
527
527
  }
528
- const Ce = {
529
- useI18n: qt
530
- }, Te = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Je = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Me = "/{workspace}", xe = "/v1/ai-gateways/{aiGatewayId}", ue = {
528
+ const Ae = {
529
+ useI18n: Zt
530
+ }, Pe = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Xe = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Fe = "/{workspace}", Ie = "/v1/ai-gateways/{aiGatewayId}", fe = {
531
531
  list: {
532
532
  konnect: {
533
- getAll: `${Te}/vaults`,
534
- deleteConfigStore: `${Je}/{id}?force=true`
533
+ getAll: `${Pe}/vaults`,
534
+ deleteConfigStore: `${Xe}/{id}?force=true`
535
535
  },
536
536
  kongManager: {
537
- getAll: `${Me}/vaults`
537
+ getAll: `${Fe}/vaults`
538
538
  },
539
539
  aiGateway: {
540
- getAll: `${xe}/vaults`,
541
- deleteConfigStore: `${xe}/config-stores/{id}?force=true`
540
+ getAll: `${Ie}/vaults`,
541
+ deleteConfigStore: `${Ie}/config-stores/{id}?force=true`
542
542
  }
543
543
  },
544
544
  form: {
545
545
  konnect: {
546
- create: `${Te}/vaults`,
547
- createConfigStore: Je,
548
- edit: `${Te}/vaults/{id}`
546
+ create: `${Pe}/vaults`,
547
+ createConfigStore: Xe,
548
+ edit: `${Pe}/vaults/{id}`
549
549
  },
550
550
  kongManager: {
551
- create: `${Me}/vaults`,
552
- edit: `${Me}/vaults/{id}`
551
+ create: `${Fe}/vaults`,
552
+ edit: `${Fe}/vaults/{id}`
553
553
  },
554
554
  aiGateway: {
555
- create: `${xe}/vaults`,
556
- edit: `${xe}/vaults/{id}`,
557
- createConfigStore: `${xe}/config-stores`
555
+ create: `${Ie}/vaults`,
556
+ edit: `${Ie}/vaults/{id}`,
557
+ createConfigStore: `${Ie}/config-stores`
558
558
  }
559
559
  }
560
560
  };
561
561
  var t = /* @__PURE__ */ ((l) => (l.AWS = "aws", l.GCP = "gcp", l.HCV = "hcv", l.ENV = "env", l.AZURE = "azure", l.AZURE_CERTS = "azure-certs", l.KONNECT = "konnect", l.CONJUR = "conjur", l.FS = "fs", l))(t || {}), _ = /* @__PURE__ */ ((l) => (l.TOKEN = "token", l.K8S = "kubernetes", l.APP_ROLE = "approle", l.CERT = "cert", l.JWT = "jwt", l.AWS_IAM = "aws_iam", l.AWS_EC2 = "aws_ec2", l.AZURE = "azure", l.GCP_GCE = "gcp_gce", l.GCP_IAM = "gcp_iam", l))(_ || {});
562
- const dt = {
562
+ const ft = {
563
563
  [_.TOKEN]: {
564
564
  token: "token"
565
565
  },
@@ -616,7 +616,7 @@ const dt = {
616
616
  azure_auth_role: "role",
617
617
  azure_login_path: "login_path"
618
618
  }
619
- }, zt = [
619
+ }, Bt = [
620
620
  "protocol",
621
621
  "host",
622
622
  "port",
@@ -629,49 +629,49 @@ const dt = {
629
629
  "ttl",
630
630
  "neg_ttl",
631
631
  "resurrect_ttl"
632
- ], Dt = (l) => Object.fromEntries(Object.entries(l).map(([h, s]) => [s, h])), Zt = (l) => l == null, Fe = (l) => Object.fromEntries(Object.entries(l).filter(([, h]) => !Zt(h))), Bt = (l) => {
633
- const h = dt[l.auth_method] ?? {}, s = {};
634
- for (const d of zt)
632
+ ], Lt = (l) => Object.fromEntries(Object.entries(l).map(([b, s]) => [s, b])), Jt = (l) => l == null, We = (l) => Object.fromEntries(Object.entries(l).filter(([, b]) => !Jt(b))), Qt = (l) => {
633
+ const b = ft[l.auth_method] ?? {}, s = {};
634
+ for (const d of Bt)
635
635
  d in l && (s[d] = l[d]);
636
- for (const [d, p] of Object.entries(h))
636
+ for (const [d, p] of Object.entries(b))
637
637
  d in l && (s[p] = l[d]);
638
- return Fe(s);
639
- }, Lt = (l) => {
640
- const h = l.name;
638
+ return We(s);
639
+ }, Yt = (l) => {
640
+ const b = l.name;
641
641
  let s = l.config ?? {};
642
- if (h === t.HCV)
643
- s = Bt(s);
644
- else if (h === t.CONJUR) {
642
+ if (b === t.HCV)
643
+ s = Qt(s);
644
+ else if (b === t.CONJUR) {
645
645
  const d = { ...s };
646
- delete d.auth_method, s = Fe(d);
646
+ delete d.auth_method, s = We(d);
647
647
  } else
648
- s = Fe(s);
648
+ s = We(s);
649
649
  return {
650
- type: h,
650
+ type: b,
651
651
  name: l.prefix,
652
652
  // AI Gateway description is a non-nullable string; coerce the gateway's `null`
653
653
  // (used for an empty description) to an empty string.
654
654
  description: l.description ?? "",
655
655
  config: s
656
656
  };
657
- }, Jt = (l) => {
658
- const h = Dt(dt[l.auth_method] ?? {}), s = {};
657
+ }, Xt = (l) => {
658
+ const b = Lt(ft[l.auth_method] ?? {}), s = {};
659
659
  for (const [d, p] of Object.entries(l))
660
- s[h[d] ?? d] = p;
660
+ s[b[d] ?? d] = p;
661
661
  return s;
662
- }, Ie = (l) => {
663
- const h = l == null ? void 0 : l.type;
662
+ }, He = (l) => {
663
+ const b = l == null ? void 0 : l.type;
664
664
  let s = l != null && l.config ? { ...l.config } : {};
665
- return h === t.HCV ? s = Jt(s) : h === t.CONJUR && (s = { ...s, auth_method: "api_key" }), {
665
+ return b === t.HCV ? s = Xt(s) : b === t.CONJUR && (s = { ...s, auth_method: "api_key" }), {
666
666
  id: l == null ? void 0 : l.id,
667
667
  created_at: l == null ? void 0 : l.created_at,
668
668
  updated_at: l == null ? void 0 : l.updated_at,
669
- name: h,
669
+ name: b,
670
670
  prefix: l == null ? void 0 : l.name,
671
671
  description: (l == null ? void 0 : l.description) ?? "",
672
672
  config: s
673
673
  };
674
- }, Qt = { class: "kong-ui-entities-vaults-list" }, Yt = { class: "button-row" }, Xt = { class: "table-content-overflow-wrapper" }, ea = { class: "table-content-overflow-wrapper" }, ta = /* @__PURE__ */ _e({
674
+ }, ea = { class: "kong-ui-entities-vaults-list" }, ta = { class: "button-row" }, aa = { class: "table-content-overflow-wrapper" }, la = { class: "table-content-overflow-wrapper" }, oa = /* @__PURE__ */ ye({
675
675
  __name: "VaultList",
676
676
  props: {
677
677
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -716,9 +716,9 @@ const dt = {
716
716
  }
717
717
  },
718
718
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
719
- setup(l, { emit: h }) {
720
- var D;
721
- const s = h, d = l, { i18n: { t: p } } = Ce.useI18n(), r = Ke(), K = k(() => d.config.apiType === "aiGateway"), M = k(() => K.value ? "aiGateway" : d.config.app), w = (C) => C.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), { axiosInstance: x } = Ve((D = d.config) == null ? void 0 : D.axiosRequestConfig), { hasRecords: I, handleStateChange: E } = kt(() => J.value), v = k(() => I.value && d.config.app === "konnect"), n = k(() => d.config.app !== "kongManager" || !!d.config.disableSorting), U = {
719
+ setup(l, { emit: b }) {
720
+ var W;
721
+ const s = b, d = l, { i18n: { t: p } } = Ae.useI18n(), i = je(), K = k(() => d.config.apiType === "aiGateway"), G = k(() => K.value ? "aiGateway" : d.config.app), w = (h) => h.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), { axiosInstance: R } = Ce((W = d.config) == null ? void 0 : W.axiosRequestConfig), { hasRecords: I, handleStateChange: x } = Rt(() => J.value), g = k(() => I.value && d.config.app === "konnect"), n = k(() => d.config.app !== "kongManager" || !!d.config.disableSorting), U = {
722
722
  // the Prefix column is non-hidable
723
723
  prefix: { label: p("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0, hidable: !1 },
724
724
  // it's "Vault Type" on display, but we still use "name" to fit API schema
@@ -727,181 +727,181 @@ const dt = {
727
727
  tags: { label: p("vaults.list.table_headers.tags"), sortable: !1 }
728
728
  }, f = k(() => {
729
729
  if (K.value) {
730
- const { description: C, name: R, prefix: P } = U;
730
+ const { description: h, name: E, prefix: F } = U;
731
731
  return {
732
- prefix: { ...P, label: p("vaults.list.table_headers.prefix_ai_gateway") },
733
- name: R,
734
- description: C
732
+ prefix: { ...F, label: p("vaults.list.table_headers.prefix_ai_gateway") },
733
+ name: E,
734
+ description: h
735
735
  };
736
736
  }
737
737
  return U;
738
- }), le = k(() => {
739
- var R, P;
740
- let C = `${d.config.apiBaseUrl}${ue.list[M.value].getAll}`;
741
- return d.config.app === "konnect" && (C = C.replace(/{controlPlaneId}/gi, ((R = d.config) == null ? void 0 : R.controlPlaneId) || "")), w(C).replace(/\/{workspace}/gi, (P = d.config) != null && P.workspace ? `/${d.config.workspace}` : "");
742
- }), J = z(""), re = k(() => {
738
+ }), oe = k(() => {
739
+ var E, F;
740
+ let h = `${d.config.apiBaseUrl}${fe.list[G.value].getAll}`;
741
+ return d.config.app === "konnect" && (h = h.replace(/{controlPlaneId}/gi, ((E = d.config) == null ? void 0 : E.controlPlaneId) || "")), w(h).replace(/\/{workspace}/gi, (F = d.config) != null && F.workspace ? `/${d.config.workspace}` : "");
742
+ }), J = D(""), ne = k(() => {
743
743
  if (d.config.app === "konnect" || d.config.isExactMatch)
744
744
  return {
745
745
  isExactMatch: !0,
746
746
  placeholder: p("search.placeholder_for_vaults.konnect")
747
747
  };
748
- const { prefix: R, name: P } = U;
748
+ const { prefix: E, name: F } = U;
749
749
  return {
750
750
  isExactMatch: !1,
751
- fields: { name: P, prefix: R },
751
+ fields: { name: F, prefix: E },
752
752
  schema: d.config.filterSchema
753
753
  };
754
754
  }), {
755
- fetcher: ce,
756
- fetcherState: G,
755
+ fetcher: pe,
756
+ fetcherState: $,
757
757
  fetcherCacheKey: a
758
- } = et(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), le), ie = K.value ? async (C) => {
759
- const R = await ce(C);
760
- return { ...R, data: (R.data ?? []).map(Ie) };
761
- } : ce, V = () => {
758
+ } = lt(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), oe), se = K.value ? async (h) => {
759
+ const E = await pe(h);
760
+ return { ...E, data: (E.data ?? []).map(He) };
761
+ } : pe, V = () => {
762
762
  J.value = "";
763
- }, X = () => {
763
+ }, Y = () => {
764
764
  a.value++;
765
- }, oe = z(null), fe = async (C, R) => {
766
- const P = C.id;
767
- if (!await R(P)) {
765
+ }, ie = D(null), me = async (h, E) => {
766
+ const F = h.id;
767
+ if (!await E(F)) {
768
768
  s("copy:error", {
769
- entity: C,
769
+ entity: h,
770
770
  field: "id",
771
771
  message: p("errors.copy")
772
772
  });
773
773
  return;
774
774
  }
775
775
  s("copy:success", {
776
- entity: C,
776
+ entity: h,
777
777
  field: "id",
778
- message: p("copy.success", { val: P })
778
+ message: p("copy.success", { val: F })
779
779
  });
780
- }, se = async (C, R) => {
781
- const P = JSON.stringify(C);
782
- if (!await R(P)) {
780
+ }, re = async (h, E) => {
781
+ const F = JSON.stringify(h);
782
+ if (!await E(F)) {
783
783
  s("copy:error", {
784
- entity: C,
784
+ entity: h,
785
785
  message: p("errors.copy")
786
786
  });
787
787
  return;
788
788
  }
789
789
  s("copy:success", {
790
- entity: C,
790
+ entity: h,
791
791
  message: p("copy.success_brief")
792
792
  });
793
- }, ne = async (C) => {
794
- var P;
795
- await ((P = d.canRetrieve) == null ? void 0 : P.call(d, C)) && r.push(d.config.getViewRoute(C.id));
796
- }, ve = (C) => ({
793
+ }, L = async (h) => {
794
+ var F;
795
+ await ((F = d.canRetrieve) == null ? void 0 : F.call(d, h)) && i.push(d.config.getViewRoute(h.id));
796
+ }, be = (h) => ({
797
797
  label: p("actions.view"),
798
- to: d.config.getViewRoute(C)
799
- }), H = (C) => ({
798
+ to: d.config.getViewRoute(h)
799
+ }), q = (h) => ({
800
800
  label: p("actions.edit"),
801
- to: d.config.getEditRoute(C)
802
- }), W = z(void 0), ae = z(!1), ee = z(!1), Q = z(""), ke = tt(d.config, le.value), ye = (C) => {
803
- W.value = C, ae.value = !0;
804
- }, b = () => {
805
- ae.value = !1;
806
- }, S = async (C) => {
807
- var o;
808
- const { apiBaseUrl: R, controlPlaneId: P } = d.config, c = w(`${R}${ue.list[K.value ? "aiGateway" : "konnect"].deleteConfigStore}`).replace(/{controlPlaneId}/gi, P || "").replace(/\/{workspace}/gi, (o = d.config) != null && o.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, C);
801
+ to: d.config.getEditRoute(h)
802
+ }), T = D(void 0), le = D(!1), X = D(!1), ee = D(""), we = ot(d.config, oe.value), Se = (h) => {
803
+ T.value = h, le.value = !0;
804
+ }, C = () => {
805
+ le.value = !1;
806
+ }, A = async (h) => {
807
+ var c;
808
+ const { apiBaseUrl: E, controlPlaneId: F } = d.config, de = w(`${E}${fe.list[K.value ? "aiGateway" : "konnect"].deleteConfigStore}`).replace(/{controlPlaneId}/gi, F || "").replace(/\/{workspace}/gi, (c = d.config) != null && c.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, h);
809
809
  try {
810
- await x.delete(c);
810
+ await R.delete(de);
811
811
  } catch {
812
812
  }
813
- }, $ = async () => {
814
- var C, R, P, c;
815
- if ((C = W.value) != null && C.id) {
816
- ee.value = !0;
813
+ }, P = async () => {
814
+ var h, E, F, de;
815
+ if ((h = T.value) != null && h.id) {
816
+ X.value = !0;
817
817
  try {
818
- await x.delete(ke(W.value.id)), d.config.app === "konnect" && ((R = W.value.config) != null && R.config_store_id) && S(W.value.config.config_store_id), ee.value = !1, ae.value = !1, a.value++, s("delete:success", W.value);
819
- } catch (o) {
820
- Q.value = ((c = (P = o.response) == null ? void 0 : P.data) == null ? void 0 : c.message) || o.message || p("errors.delete"), s("error", o);
818
+ await R.delete(we(T.value.id)), d.config.app === "konnect" && ((E = T.value.config) != null && E.config_store_id) && A(T.value.config.config_store_id), X.value = !1, le.value = !1, a.value++, s("delete:success", T.value);
819
+ } catch (c) {
820
+ ee.value = ((de = (F = c.response) == null ? void 0 : F.data) == null ? void 0 : de.message) || c.message || p("errors.delete"), s("error", c);
821
821
  } finally {
822
- ee.value = !1;
822
+ X.value = !1;
823
823
  }
824
824
  }
825
- }, j = () => {
826
- r.push(d.config.createRoute);
825
+ }, z = () => {
826
+ i.push(d.config.createRoute);
827
827
  };
828
- Ee(G, (C) => {
829
- var R, P, c;
830
- if (C.status === at.Error) {
831
- oe.value = {
828
+ Ue($, (h) => {
829
+ var E, F, de;
830
+ if (h.status === it.Error) {
831
+ ie.value = {
832
832
  title: p("errors.general")
833
- }, (c = (P = (R = C.error) == null ? void 0 : R.response) == null ? void 0 : P.data) != null && c.message && (oe.value.message = C.error.response.data.message), s("error", C.error);
833
+ }, (de = (F = (E = h.error) == null ? void 0 : E.response) == null ? void 0 : F.data) != null && de.message && (ie.value.message = h.error.response.data.message), s("error", h.error);
834
834
  return;
835
835
  }
836
- oe.value = null;
836
+ ie.value = null;
837
837
  });
838
- const Z = z({
838
+ const te = D({
839
839
  ctaPath: d.config.createRoute,
840
840
  ctaText: void 0,
841
841
  message: `${p("vaults.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
842
842
  title: p("vaults.title")
843
- }), B = z(!1);
844
- return He(async () => {
845
- B.value = await d.canCreate(), B.value && (Z.value.title = p("vaults.list.empty_state.title"), Z.value.ctaText = p("actions.create"));
846
- }), (C, R) => {
847
- const P = Y("KButton"), c = Y("KEmptyState"), o = Y("KDropdownItem"), te = Y("KClipboardProvider");
848
- return y(), F("div", Qt, [
849
- u(e(lt), {
843
+ }), B = D(!1);
844
+ return Ge(async () => {
845
+ B.value = await d.canCreate(), B.value && (te.value.title = p("vaults.list.empty_state.title"), te.value.ctaText = p("actions.create"));
846
+ }), (h, E) => {
847
+ const F = Q("KButton"), de = Q("KEmptyState"), c = Q("KDropdownItem"), o = Q("KClipboardProvider");
848
+ return v(), N("div", ea, [
849
+ u(e(rt), {
850
850
  "cache-identifier": l.cacheIdentifier,
851
851
  "disable-sorting": n.value,
852
- "empty-state-options": Z.value,
852
+ "empty-state-options": te.value,
853
853
  "enable-entity-actions": "",
854
- "error-message": oe.value,
855
- fetcher: e(ie),
854
+ "error-message": ie.value,
855
+ fetcher: e(se),
856
856
  "fetcher-cache-key": e(a),
857
857
  "pagination-type": "offset",
858
858
  "preferences-storage-key": "kong-ui-entities-vaults-list",
859
859
  query: J.value,
860
860
  "table-headers": f.value,
861
861
  onClearSearchInput: V,
862
- "onClick:row": R[3] || (R[3] = (A) => ne(A)),
863
- onSort: X,
864
- onState: e(E)
865
- }, qe({
866
- "toolbar-filter": g(() => [
867
- u(e(ot), {
862
+ "onClick:row": E[3] || (E[3] = (S) => L(S)),
863
+ onSort: Y,
864
+ onState: e(x)
865
+ }, Ze({
866
+ "toolbar-filter": y(() => [
867
+ u(e(nt), {
868
868
  modelValue: J.value,
869
- "onUpdate:modelValue": R[0] || (R[0] = (A) => J.value = A),
870
- config: re.value
869
+ "onUpdate:modelValue": E[0] || (E[0] = (S) => J.value = S),
870
+ config: ne.value
871
871
  }, null, 8, ["modelValue", "config"])
872
872
  ]),
873
- "toolbar-button": g(() => [
874
- (y(), q(ut, {
873
+ "toolbar-button": y(() => [
874
+ (v(), H(pt, {
875
875
  disabled: !l.useActionOutside,
876
876
  to: "#kong-ui-app-page-header-action-button"
877
877
  }, [
878
- T("div", Yt, [
879
- v.value ? (y(), q(P, {
878
+ M("div", ta, [
879
+ g.value ? (v(), H(F, {
880
880
  key: 0,
881
881
  appearance: "secondary",
882
882
  class: "open-learning-hub",
883
883
  "data-testid": "vault-learn-more-button",
884
884
  icon: "",
885
- onClick: R[1] || (R[1] = (A) => C.$emit("click:learn-more"))
885
+ onClick: E[1] || (E[1] = (S) => h.$emit("click:learn-more"))
886
886
  }, {
887
- default: g(() => [
888
- u(e(De), { decorative: "" })
887
+ default: y(() => [
888
+ u(e(Le), { decorative: "" })
889
889
  ]),
890
890
  _: 1
891
- })) : O("", !0),
892
- u(e(we), {
891
+ })) : j("", !0),
892
+ u(e(ke), {
893
893
  "auth-function": () => l.canCreate()
894
894
  }, {
895
- default: g(() => [
896
- u(P, {
895
+ default: y(() => [
896
+ u(F, {
897
897
  appearance: "primary",
898
898
  "data-testid": "toolbar-add-vault",
899
899
  size: l.useActionOutside ? "medium" : "large",
900
900
  to: l.config.createRoute
901
901
  }, {
902
- default: g(() => [
903
- u(e($e)),
904
- me(" " + N(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
902
+ default: y(() => [
903
+ u(e(Ke)),
904
+ ve(" " + O(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
905
905
  ]),
906
906
  _: 1
907
907
  }, 8, ["size", "to"])
@@ -911,84 +911,84 @@ const dt = {
911
911
  ])
912
912
  ], 8, ["disabled"]))
913
913
  ]),
914
- prefix: g(({ rowValue: A }) => [
915
- T("div", Xt, [
916
- T("b", null, N(A ?? "-"), 1)
914
+ prefix: y(({ rowValue: S }) => [
915
+ M("div", aa, [
916
+ M("b", null, O(S ?? "-"), 1)
917
917
  ])
918
918
  ]),
919
- name: g(({ rowValue: A }) => [
920
- T("b", null, N(A ?? "-"), 1)
919
+ name: y(({ rowValue: S }) => [
920
+ M("b", null, O(S ?? "-"), 1)
921
921
  ]),
922
- description: g(({ rowValue: A }) => [
923
- T("div", ea, N(A ?? "-"), 1)
922
+ description: y(({ rowValue: S }) => [
923
+ M("div", la, O(S ?? "-"), 1)
924
924
  ]),
925
- tags: g(({ rowValue: A }) => [
926
- u(e(At), { tags: A }, null, 8, ["tags"])
925
+ tags: y(({ rowValue: S }) => [
926
+ u(e(Et), { tags: S }, null, 8, ["tags"])
927
927
  ]),
928
- actions: g(({ row: A }) => [
929
- u(te, null, {
930
- default: g(({ copyToClipboard: m }) => [
931
- u(o, {
928
+ actions: y(({ row: S }) => [
929
+ u(o, null, {
930
+ default: y(({ copyToClipboard: Z }) => [
931
+ u(c, {
932
932
  "data-testid": "action-entity-copy-id",
933
- onClick: (L) => fe(A, m)
933
+ onClick: (m) => me(S, Z)
934
934
  }, {
935
- default: g(() => [
936
- me(N(e(p)("actions.copy_id")), 1)
935
+ default: y(() => [
936
+ ve(O(e(p)("actions.copy_id")), 1)
937
937
  ]),
938
938
  _: 1
939
939
  }, 8, ["onClick"])
940
940
  ]),
941
941
  _: 2
942
942
  }, 1024),
943
- u(te, null, {
944
- default: g(({ copyToClipboard: m }) => [
945
- u(o, {
943
+ u(o, null, {
944
+ default: y(({ copyToClipboard: Z }) => [
945
+ u(c, {
946
946
  "data-testid": "action-entity-copy-json",
947
- onClick: (L) => se(A, m)
947
+ onClick: (m) => re(S, Z)
948
948
  }, {
949
- default: g(() => [
950
- me(N(e(p)("actions.copy_json")), 1)
949
+ default: y(() => [
950
+ ve(O(e(p)("actions.copy_json")), 1)
951
951
  ]),
952
952
  _: 1
953
953
  }, 8, ["onClick"])
954
954
  ]),
955
955
  _: 2
956
956
  }, 1024),
957
- u(e(we), {
958
- "auth-function": () => l.canRetrieve(A)
957
+ u(e(ke), {
958
+ "auth-function": () => l.canRetrieve(S)
959
959
  }, {
960
- default: g(() => [
961
- u(o, {
960
+ default: y(() => [
961
+ u(c, {
962
962
  "data-testid": "action-entity-view",
963
963
  "has-divider": "",
964
- item: ve(A.id)
964
+ item: be(S.id)
965
965
  }, null, 8, ["item"])
966
966
  ]),
967
967
  _: 2
968
968
  }, 1032, ["auth-function"]),
969
- u(e(we), {
970
- "auth-function": () => l.canEdit(A)
969
+ u(e(ke), {
970
+ "auth-function": () => l.canEdit(S)
971
971
  }, {
972
- default: g(() => [
973
- u(o, {
972
+ default: y(() => [
973
+ u(c, {
974
974
  "data-testid": "action-entity-edit",
975
- item: H(A.id)
975
+ item: q(S.id)
976
976
  }, null, 8, ["item"])
977
977
  ]),
978
978
  _: 2
979
979
  }, 1032, ["auth-function"]),
980
- u(e(we), {
981
- "auth-function": () => l.canDelete(A)
980
+ u(e(ke), {
981
+ "auth-function": () => l.canDelete(S)
982
982
  }, {
983
- default: g(() => [
984
- u(o, {
983
+ default: y(() => [
984
+ u(c, {
985
985
  danger: "",
986
986
  "data-testid": "action-entity-delete",
987
987
  "has-divider": "",
988
- onClick: (m) => ye(A)
988
+ onClick: (Z) => Se(S)
989
989
  }, {
990
- default: g(() => [
991
- me(N(e(p)("actions.delete")), 1)
990
+ default: y(() => [
991
+ ve(O(e(p)("actions.delete")), 1)
992
992
  ]),
993
993
  _: 1
994
994
  }, 8, ["onClick"])
@@ -1000,48 +1000,48 @@ const dt = {
1000
1000
  }, [
1001
1001
  !J.value && l.config.app === "konnect" ? {
1002
1002
  name: "empty-state",
1003
- fn: g(() => {
1004
- var A;
1003
+ fn: y(() => {
1004
+ var S;
1005
1005
  return [
1006
- u(c, {
1006
+ u(de, {
1007
1007
  "data-testid": "vaults-entity-empty-state",
1008
1008
  "icon-background": "",
1009
1009
  message: e(p)("vaults.list.empty_state_v2.description"),
1010
1010
  title: e(p)("vaults.list.empty_state_v2.title")
1011
- }, qe({
1012
- icon: g(() => [
1013
- u(e(vt), { decorative: "" })
1011
+ }, Ze({
1012
+ icon: y(() => [
1013
+ u(e(bt), { decorative: "" })
1014
1014
  ]),
1015
- action: g(() => [
1016
- B.value ? (y(), q(P, {
1015
+ action: y(() => [
1016
+ B.value ? (v(), H(F, {
1017
1017
  key: 0,
1018
1018
  "data-testid": "entity-create-button",
1019
- onClick: j
1019
+ onClick: z
1020
1020
  }, {
1021
- default: g(() => [
1022
- u(e($e), { decorative: "" }),
1023
- me(" " + N(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
1021
+ default: y(() => [
1022
+ u(e(Ke), { decorative: "" }),
1023
+ ve(" " + O(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
1024
1024
  ]),
1025
1025
  _: 1
1026
- })) : O("", !0),
1027
- u(P, {
1026
+ })) : j("", !0),
1027
+ u(F, {
1028
1028
  appearance: "secondary",
1029
1029
  "data-testid": "entity-learn-more-button",
1030
- onClick: R[2] || (R[2] = (m) => C.$emit("click:learn-more"))
1030
+ onClick: E[2] || (E[2] = (Z) => h.$emit("click:learn-more"))
1031
1031
  }, {
1032
- default: g(() => [
1033
- u(e(De), { decorative: "" }),
1034
- me(" " + N(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
1032
+ default: y(() => [
1033
+ u(e(Le), { decorative: "" }),
1034
+ ve(" " + O(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
1035
1035
  ]),
1036
1036
  _: 1
1037
1037
  })
1038
1038
  ]),
1039
1039
  _: 2
1040
1040
  }, [
1041
- (A = l.config) != null && A.isControlPlaneGroup ? {
1041
+ (S = l.config) != null && S.isControlPlaneGroup ? {
1042
1042
  name: "default",
1043
- fn: g(() => [
1044
- me(N(e(p)("vaults.list.empty_state_v2.group")), 1)
1043
+ fn: y(() => [
1044
+ ve(O(e(p)("vaults.list.empty_state_v2.group")), 1)
1045
1045
  ]),
1046
1046
  key: "0"
1047
1047
  } : void 0
@@ -1051,59 +1051,59 @@ const dt = {
1051
1051
  key: "0"
1052
1052
  } : void 0
1053
1053
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
1054
- u(e(rt), {
1055
- "action-pending": ee.value,
1054
+ u(e(st), {
1055
+ "action-pending": X.value,
1056
1056
  description: e(p)("delete.description"),
1057
- "entity-name": W.value && (W.value.prefix || W.value.id),
1058
- "entity-type": e(it).Vault,
1059
- error: Q.value,
1057
+ "entity-name": T.value && (T.value.prefix || T.value.id),
1058
+ "entity-type": e(dt).Vault,
1059
+ error: ee.value,
1060
1060
  title: e(p)("delete.title"),
1061
- visible: ae.value,
1062
- onCancel: b,
1063
- onProceed: $
1061
+ visible: le.value,
1062
+ onCancel: C,
1063
+ onProceed: P
1064
1064
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
1065
1065
  ]);
1066
1066
  };
1067
1067
  }
1068
- }), ge = (l, h) => {
1068
+ }), he = (l, b) => {
1069
1069
  const s = l.__vccOpts || l;
1070
- for (const [d, p] of h)
1070
+ for (const [d, p] of b)
1071
1071
  s[d] = p;
1072
1072
  return s;
1073
- }, tl = /* @__PURE__ */ ge(ta, [["__scopeId", "data-v-374c7841"]]), aa = { class: "kong-ui-entities-vault-form" }, la = { class: "vault-form-provider-cards-container" }, oa = ["data-testid"], ra = { class: "provider-item-title-container" }, ia = { class: "provider-item-title" }, na = { class: "provider-item-description" }, sa = {
1073
+ }, ol = /* @__PURE__ */ he(oa, [["__scopeId", "data-v-374c7841"]]), ia = { class: "kong-ui-entities-vault-form" }, ra = { class: "vault-form-provider-cards-container" }, na = ["data-testid"], sa = { class: "provider-item-title-container" }, da = { class: "provider-item-title" }, ua = { class: "provider-item-description" }, ca = {
1074
1074
  key: "kong-vault-config-fields",
1075
1075
  class: "vault-form-config-fields-container"
1076
- }, da = {
1076
+ }, fa = {
1077
1077
  key: 1,
1078
1078
  class: "vault-form-config-auth-method-container"
1079
- }, ua = {
1079
+ }, pa = {
1080
1080
  key: 2,
1081
1081
  class: "vault-form-config-auth-method-container"
1082
- }, ca = {
1082
+ }, ma = {
1083
1083
  key: 3,
1084
1084
  class: "vault-form-config-auth-method-container"
1085
- }, fa = {
1085
+ }, _a = {
1086
1086
  key: 4,
1087
1087
  class: "vault-form-config-auth-method-container"
1088
- }, pa = {
1088
+ }, va = {
1089
1089
  key: 5,
1090
1090
  class: "vault-form-config-auth-method-container"
1091
- }, ma = {
1091
+ }, ga = {
1092
1092
  key: 6,
1093
1093
  class: "vault-form-config-auth-method-container"
1094
- }, _a = {
1094
+ }, ya = {
1095
1095
  key: 7,
1096
1096
  class: "vault-form-config-auth-method-container"
1097
- }, va = {
1097
+ }, ba = {
1098
1098
  key: 8,
1099
1099
  class: "vault-form-config-auth-method-container"
1100
- }, ga = {
1100
+ }, ha = {
1101
1101
  key: 9,
1102
1102
  class: "vault-form-config-auth-method-container"
1103
- }, ya = {
1103
+ }, wa = {
1104
1104
  key: 10,
1105
1105
  class: "vault-form-config-auth-method-container"
1106
- }, ha = { key: 8 }, ba = { class: "wrapper" }, wa = { class: "item-50" }, Va = { class: "item-50" }, Ca = { class: "wrapper" }, ka = { class: "item-100" }, Aa = /* @__PURE__ */ _e({
1106
+ }, Va = { key: 8 }, ka = { class: "wrapper" }, Ca = { class: "item-50" }, Aa = { class: "item-50" }, Sa = { class: "wrapper" }, Ra = { class: "item-100" }, Ea = /* @__PURE__ */ ye({
1107
1107
  __name: "VaultForm",
1108
1108
  props: {
1109
1109
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1120,9 +1120,9 @@ const dt = {
1120
1120
  }
1121
1121
  },
1122
1122
  emits: ["update", "error", "loading"],
1123
- setup(l, { emit: h }) {
1124
- var P;
1125
- const s = l, d = h, { i18nT: p, i18n: { t: r } } = Ce.useI18n(), K = Ke(), { axiosInstance: M } = Ve((P = s.config) == null ? void 0 : P.axiosRequestConfig), { getMessageFromError: w } = nt(), x = k(() => s.config.apiType === "aiGateway"), I = k(() => x.value ? "aiGateway" : s.config.app), E = (c) => c.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || ""), v = x.value ? "https" : "http", n = Ae({
1123
+ setup(l, { emit: b }) {
1124
+ var de;
1125
+ const s = l, d = b, { i18nT: p, i18n: { t: i } } = Ae.useI18n(), K = je(), { axiosInstance: G } = Ce((de = s.config) == null ? void 0 : de.axiosRequestConfig), { getMessageFromError: w } = ut(), R = k(() => s.config.apiType === "aiGateway"), I = k(() => R.value ? "aiGateway" : s.config.app), x = (c) => c.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || ""), g = R.value ? "https" : "http", n = Ee({
1126
1126
  fields: {
1127
1127
  prefix: "",
1128
1128
  description: "",
@@ -1130,81 +1130,81 @@ const dt = {
1130
1130
  },
1131
1131
  isReadonly: !1,
1132
1132
  errorMessage: ""
1133
- }), U = Ae({
1133
+ }), U = Ee({
1134
1134
  prefix: "",
1135
1135
  description: "",
1136
1136
  tags: ""
1137
- }), f = z(s.config.app === "konnect" ? t.KONNECT : t.ENV), le = z(null), J = z(), re = k(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR, t.FS, t.AZURE_CERTS].includes(f.value)), ce = k(() => x.value ? [
1138
- { label: r("form.config.konnect.label"), value: t.KONNECT },
1139
- { label: r("form.config.env.label"), value: t.ENV },
1140
- { label: r("form.config.aws.label"), value: t.AWS },
1141
- { label: r("form.config.gcp.label"), value: t.GCP },
1142
- { label: r("form.config.hcv.label"), value: t.HCV },
1143
- { label: r("form.config.azure.label"), value: t.AZURE },
1144
- { label: r("form.config.conjur.label"), value: t.CONJUR }
1137
+ }), f = D(s.config.app === "konnect" ? t.KONNECT : t.ENV), oe = D(null), J = D(), ne = k(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR, t.FS, t.AZURE_CERTS].includes(f.value)), pe = k(() => R.value ? [
1138
+ { label: i("form.config.konnect.label"), value: t.KONNECT },
1139
+ { label: i("form.config.env.label"), value: t.ENV },
1140
+ { label: i("form.config.aws.label"), value: t.AWS },
1141
+ { label: i("form.config.gcp.label"), value: t.GCP },
1142
+ { label: i("form.config.hcv.label"), value: t.HCV },
1143
+ { label: i("form.config.azure.label"), value: t.AZURE },
1144
+ { label: i("form.config.conjur.label"), value: t.CONJUR }
1145
1145
  ] : [
1146
1146
  ...s.config.app === "konnect" ? [{
1147
- label: r("form.config.konnect.label"),
1147
+ label: i("form.config.konnect.label"),
1148
1148
  value: t.KONNECT
1149
1149
  }] : [],
1150
1150
  {
1151
- label: r("form.config.env.label"),
1151
+ label: i("form.config.env.label"),
1152
1152
  value: t.ENV
1153
1153
  },
1154
1154
  {
1155
- label: r("form.config.aws.label"),
1155
+ label: i("form.config.aws.label"),
1156
1156
  value: t.AWS,
1157
- disabled: !H.value
1157
+ disabled: !T.value
1158
1158
  },
1159
1159
  {
1160
- label: r("form.config.gcp.label"),
1160
+ label: i("form.config.gcp.label"),
1161
1161
  value: t.GCP,
1162
- disabled: !H.value
1162
+ disabled: !T.value
1163
1163
  },
1164
1164
  {
1165
- label: r("form.config.hcv.label"),
1165
+ label: i("form.config.hcv.label"),
1166
1166
  value: t.HCV,
1167
- disabled: !H.value
1167
+ disabled: !T.value
1168
1168
  },
1169
1169
  ...s.config.azureVaultProviderAvailable ? [{
1170
- label: r("form.config.azure.label"),
1170
+ label: i("form.config.azure.label"),
1171
1171
  value: t.AZURE,
1172
- disabled: !H.value
1172
+ disabled: !T.value
1173
1173
  }] : [],
1174
1174
  ...s.config.conjurVaultProviderAvailable ? [{
1175
- label: r("form.config.conjur.label"),
1175
+ label: i("form.config.conjur.label"),
1176
1176
  value: t.CONJUR,
1177
- disabled: !H.value
1177
+ disabled: !T.value
1178
1178
  }] : [],
1179
1179
  ...s.config.fsVaultProviderAvailable ? [{
1180
- label: r("form.config.fs.label"),
1180
+ label: i("form.config.fs.label"),
1181
1181
  value: t.FS,
1182
- disabled: !H.value
1182
+ disabled: !T.value
1183
1183
  }] : [],
1184
1184
  ...s.config.azureCertsVaultProviderAvailable ? [{
1185
- label: r("form.config.azure-certs.label"),
1185
+ label: i("form.config.azure-certs.label"),
1186
1186
  value: t.AZURE_CERTS,
1187
- disabled: !H.value
1187
+ disabled: !T.value
1188
1188
  }] : []
1189
- ]), G = s.config.base64FieldAvailable ? { base64_decode: !1 } : {}, a = Ae({
1189
+ ]), $ = s.config.base64FieldAvailable ? { base64_decode: !1 } : {}, a = Ee({
1190
1190
  [t.KONNECT]: {},
1191
1191
  [t.ENV]: {
1192
1192
  prefix: "",
1193
- ...G
1193
+ ...$
1194
1194
  },
1195
1195
  [t.AWS]: {
1196
1196
  region: "",
1197
1197
  endpoint_url: "",
1198
1198
  assume_role_arn: "",
1199
1199
  role_session_name: "KongVault",
1200
- ...G
1200
+ ...$
1201
1201
  },
1202
1202
  [t.GCP]: {
1203
1203
  project_id: "",
1204
- ...G
1204
+ ...$
1205
1205
  },
1206
1206
  [t.HCV]: {
1207
- protocol: v,
1207
+ protocol: g,
1208
1208
  host: "127.0.0.1",
1209
1209
  port: 8200,
1210
1210
  mount: "secret",
@@ -1244,7 +1244,7 @@ const dt = {
1244
1244
  jwt_role: "",
1245
1245
  oauth2_token_endpoint: "",
1246
1246
  oauth2_audiences: "",
1247
- ...G
1247
+ ...$
1248
1248
  },
1249
1249
  [t.AZURE]: {
1250
1250
  location: "",
@@ -1253,7 +1253,7 @@ const dt = {
1253
1253
  credentials_prefix: "AZURE",
1254
1254
  client_id: "",
1255
1255
  tenant_id: "",
1256
- ...G
1256
+ ...$
1257
1257
  },
1258
1258
  [t.AZURE_CERTS]: {
1259
1259
  vault_uri: "",
@@ -1265,31 +1265,31 @@ const dt = {
1265
1265
  [t.CONJUR]: {
1266
1266
  endpoint_url: "",
1267
1267
  auth_method: "api_key",
1268
- ...G
1268
+ ...$
1269
1269
  },
1270
1270
  [t.FS]: {
1271
1271
  prefix: "",
1272
- ...G
1272
+ ...$
1273
1273
  }
1274
- }), ie = Ae({
1274
+ }), se = Ee({
1275
1275
  [t.KONNECT]: {},
1276
1276
  [t.ENV]: {
1277
1277
  prefix: "",
1278
- ...G
1278
+ ...$
1279
1279
  },
1280
1280
  [t.AWS]: {
1281
1281
  region: "",
1282
1282
  endpoint_url: "",
1283
1283
  assume_role_arn: "",
1284
1284
  role_session_name: "KongVault",
1285
- ...G
1285
+ ...$
1286
1286
  },
1287
1287
  [t.GCP]: {
1288
1288
  project_id: "",
1289
- ...G
1289
+ ...$
1290
1290
  },
1291
1291
  [t.HCV]: {
1292
- protocol: v,
1292
+ protocol: g,
1293
1293
  host: "127.0.0.1",
1294
1294
  port: 8200,
1295
1295
  mount: "secret",
@@ -1329,7 +1329,7 @@ const dt = {
1329
1329
  jwt_role: "",
1330
1330
  oauth2_token_endpoint: "",
1331
1331
  oauth2_audiences: "",
1332
- ...G
1332
+ ...$
1333
1333
  },
1334
1334
  [t.AZURE]: {
1335
1335
  location: "",
@@ -1338,7 +1338,7 @@ const dt = {
1338
1338
  credentials_prefix: "AZURE",
1339
1339
  client_id: "",
1340
1340
  tenant_id: "",
1341
- ...G
1341
+ ...$
1342
1342
  },
1343
1343
  [t.AZURE_CERTS]: {
1344
1344
  vault_uri: "",
@@ -1350,104 +1350,104 @@ const dt = {
1350
1350
  [t.CONJUR]: {
1351
1351
  endpoint_url: "",
1352
1352
  auth_method: "api_key",
1353
- ...G
1353
+ ...$
1354
1354
  },
1355
1355
  [t.FS]: {
1356
1356
  prefix: "",
1357
- ...G
1357
+ ...$
1358
1358
  }
1359
1359
  }), V = [
1360
- { label: `${r("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`, value: "us-east-1" },
1361
- { label: `${r("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`, value: "us-east-2" },
1362
- { label: `${r("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`, value: "us-west-1" },
1363
- { label: `${r("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`, value: "us-west-2" },
1364
- { label: `${r("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`, value: "af-south-1" },
1365
- { label: `${r("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`, value: "ap-east-1" },
1366
- { label: `${r("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`, value: "ap-southeast-3" },
1367
- { label: `${r("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`, value: "ap-south-1" },
1368
- { label: `${r("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`, value: "ap-northeast-1" },
1369
- { label: `${r("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`, value: "ap-northeast-2" },
1370
- { label: `${r("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`, value: "ap-northeast-3" },
1371
- { label: `${r("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`, value: "ap-southeast-1" },
1372
- { label: `${r("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`, value: "ap-southeast-2" },
1373
- { label: `${r("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`, value: "ca-central-1" },
1374
- { label: `${r("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`, value: "eu-central-1" },
1375
- { label: `${r("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`, value: "eu-west-1" },
1376
- { label: `${r("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`, value: "eu-west-2" },
1377
- { label: `${r("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`, value: "eu-west-3" },
1378
- { label: `${r("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`, value: "eu-south-1" },
1379
- { label: `${r("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`, value: "eu-north-1" },
1380
- { label: `${r("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`, value: "me-south-1" },
1381
- { label: `${r("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`, value: "sa-east-1" },
1382
- { label: `${r("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
1383
- { label: `${r("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
1384
- ], X = [{ label: "secrets", value: "secrets" }], oe = [{ label: "http", value: "http" }, { label: "https", value: "https" }], fe = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], se = k(() => s.vaultId ? Se.Edit : Se.Create), ne = k(() => {
1360
+ { label: `${i("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`, value: "us-east-1" },
1361
+ { label: `${i("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`, value: "us-east-2" },
1362
+ { label: `${i("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`, value: "us-west-1" },
1363
+ { label: `${i("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`, value: "us-west-2" },
1364
+ { label: `${i("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`, value: "af-south-1" },
1365
+ { label: `${i("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`, value: "ap-east-1" },
1366
+ { label: `${i("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`, value: "ap-southeast-3" },
1367
+ { label: `${i("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`, value: "ap-south-1" },
1368
+ { label: `${i("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`, value: "ap-northeast-1" },
1369
+ { label: `${i("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`, value: "ap-northeast-2" },
1370
+ { label: `${i("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`, value: "ap-northeast-3" },
1371
+ { label: `${i("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`, value: "ap-southeast-1" },
1372
+ { label: `${i("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`, value: "ap-southeast-2" },
1373
+ { label: `${i("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`, value: "ca-central-1" },
1374
+ { label: `${i("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`, value: "eu-central-1" },
1375
+ { label: `${i("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`, value: "eu-west-1" },
1376
+ { label: `${i("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`, value: "eu-west-2" },
1377
+ { label: `${i("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`, value: "eu-west-3" },
1378
+ { label: `${i("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`, value: "eu-south-1" },
1379
+ { label: `${i("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`, value: "eu-north-1" },
1380
+ { label: `${i("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`, value: "me-south-1" },
1381
+ { label: `${i("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`, value: "sa-east-1" },
1382
+ { label: `${i("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
1383
+ { label: `${i("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
1384
+ ], Y = [{ label: "secrets", value: "secrets" }], ie = [{ label: "http", value: "http" }, { label: "https", value: "https" }], me = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], re = k(() => s.vaultId ? ge.Edit : ge.Create), L = k(() => re.value === ge.Edit ? "edit" : "create"), be = k(() => {
1385
1385
  var c;
1386
- return E((c = ue.form[I.value]) == null ? void 0 : c.edit);
1387
- }), ve = k(() => se.value === Se.Edit && (s.config.app === "kongManager" || x.value)), H = k(() => s.config.app === "konnect" || St({
1386
+ return x((c = fe.form[I.value]) == null ? void 0 : c.edit);
1387
+ }), q = k(() => re.value === ge.Edit && (s.config.app === "kongManager" || R.value)), T = k(() => s.config.app === "konnect" || xt({
1388
1388
  gatewayInfo: s.config.gatewayInfo,
1389
1389
  // vault name can only be `env` in Gateway Community Edition
1390
1390
  supportedRange: {
1391
1391
  enterprise: []
1392
1392
  }
1393
- })), W = () => {
1393
+ })), le = () => {
1394
1394
  var c;
1395
1395
  K.push(((c = s.config) == null ? void 0 : c.cancelRoute) || { name: "vault-list" });
1396
- }, ae = (c) => {
1396
+ }, X = (c) => {
1397
1397
  d("loading", c);
1398
1398
  }, ee = (c) => {
1399
1399
  d("error", c);
1400
- }, Q = (c) => {
1400
+ }, we = (c) => {
1401
1401
  switch (c) {
1402
1402
  case t.KONNECT:
1403
- return Ct;
1403
+ return St;
1404
1404
  case t.ENV:
1405
- return Vt;
1405
+ return At;
1406
1406
  case t.AWS:
1407
- return wt;
1407
+ return Ct;
1408
1408
  case t.GCP:
1409
- return bt;
1409
+ return kt;
1410
1410
  case t.HCV:
1411
- return ht;
1411
+ return Vt;
1412
1412
  case t.AZURE:
1413
- return Ze;
1413
+ return Je;
1414
1414
  case t.AZURE_CERTS:
1415
- return Ze;
1415
+ return Je;
1416
1416
  case t.CONJUR:
1417
- return yt;
1417
+ return wt;
1418
1418
  case t.FS:
1419
- return gt;
1419
+ return ht;
1420
1420
  }
1421
- }, ke = (c) => {
1421
+ }, Se = (c) => {
1422
1422
  switch (c) {
1423
1423
  case t.KONNECT:
1424
- return r("form.config.konnect.description");
1424
+ return i("form.config.konnect.description");
1425
1425
  case t.ENV:
1426
- return r("form.config.env.description");
1426
+ return i("form.config.env.description");
1427
1427
  case t.AWS:
1428
- return r("form.config.aws.description");
1428
+ return i("form.config.aws.description");
1429
1429
  case t.GCP:
1430
- return r("form.config.gcp.description");
1430
+ return i("form.config.gcp.description");
1431
1431
  case t.HCV:
1432
- return r("form.config.hcv.description");
1432
+ return i("form.config.hcv.description");
1433
1433
  case t.AZURE:
1434
- return r("form.config.azure.description");
1434
+ return i("form.config.azure.description");
1435
1435
  case t.AZURE_CERTS:
1436
- return r("form.config.azure-certs.description");
1436
+ return i("form.config.azure-certs.description");
1437
1437
  case t.CONJUR:
1438
- return r("form.config.conjur.description");
1438
+ return i("form.config.conjur.description");
1439
1439
  case t.FS:
1440
- return r("form.config.fs.description");
1440
+ return i("form.config.fs.description");
1441
1441
  }
1442
- }, ye = (c) => {
1443
- var m, L, pe, he, i, Re;
1444
- const o = x.value ? Ie((c == null ? void 0 : c.item) ?? c) : c;
1445
- n.fields.prefix = ((m = o == null ? void 0 : o.item) == null ? void 0 : m.prefix) || (o == null ? void 0 : o.prefix) || "", n.fields.description = ((L = o == null ? void 0 : o.item) == null ? void 0 : L.description) || (o == null ? void 0 : o.description) || "";
1446
- const te = ((pe = o == null ? void 0 : o.item) == null ? void 0 : pe.tags) || (o == null ? void 0 : o.tags) || [];
1447
- n.fields.tags = (te == null ? void 0 : te.join(", ")) || "", Object.assign(U, n.fields);
1448
- const A = ((he = o == null ? void 0 : o.item) == null ? void 0 : he.config) || (o == null ? void 0 : o.config) || null;
1449
- A && (Object.keys(A).length || (o == null ? void 0 : o.name) === t.KONNECT) ? (f.value = ((i = o == null ? void 0 : o.item) == null ? void 0 : i.name) || (o == null ? void 0 : o.name) || "", le.value = f.value, J.value = ((Re = o == null ? void 0 : o.config) == null ? void 0 : Re.config_store_id) || void 0, Object.assign(a[f.value], A), Object.assign(ie[f.value], A)) : n.errorMessage = "Error loading vault config";
1450
- }, b = (c) => c === "" || c == null, S = k(() => f.value === t.HCV ? !Object.keys(a[t.HCV]).filter((c) => [
1442
+ }, C = (c) => {
1443
+ var m, ae, _e, Ve, r, xe;
1444
+ const o = R.value ? He((c == null ? void 0 : c.item) ?? c) : c;
1445
+ n.fields.prefix = ((m = o == null ? void 0 : o.item) == null ? void 0 : m.prefix) || (o == null ? void 0 : o.prefix) || "", n.fields.description = ((ae = o == null ? void 0 : o.item) == null ? void 0 : ae.description) || (o == null ? void 0 : o.description) || "";
1446
+ const S = ((_e = o == null ? void 0 : o.item) == null ? void 0 : _e.tags) || (o == null ? void 0 : o.tags) || [];
1447
+ n.fields.tags = (S == null ? void 0 : S.join(", ")) || "", Object.assign(U, n.fields);
1448
+ const Z = ((Ve = o == null ? void 0 : o.item) == null ? void 0 : Ve.config) || (o == null ? void 0 : o.config) || null;
1449
+ Z && (Object.keys(Z).length || (o == null ? void 0 : o.name) === t.KONNECT) ? (f.value = ((r = o == null ? void 0 : o.item) == null ? void 0 : r.name) || (o == null ? void 0 : o.name) || "", oe.value = f.value, J.value = ((xe = o == null ? void 0 : o.config) == null ? void 0 : xe.config_store_id) || void 0, Object.assign(a[f.value], Z), Object.assign(se[f.value], Z)) : n.errorMessage = "Error loading vault config";
1450
+ }, A = (c) => c === "" || c == null, P = k(() => f.value === t.HCV ? !Object.keys(a[t.HCV]).filter((c) => [
1451
1451
  "namespace",
1452
1452
  "ttl",
1453
1453
  "neg_ttl",
@@ -1463,12 +1463,12 @@ const dt = {
1463
1463
  "aws_role_session_name",
1464
1464
  "azure_login_path",
1465
1465
  "gcp_login_path"
1466
- ].includes(c) || a[t.HCV].auth_method !== _.K8S && (c === "kube_role" || c === "kube_api_token_file") || !s.config.hcvCspAuthMethodsAvailable && ["aws_auth_role", "aws_auth_region", "aws_auth_nonce", "aws_access_key_id", "aws_secret_access_key", "aws_login_path", "aws_sts_endpoint_url", "aws_assume_role_arn", "aws_role_session_name", "azure_auth_role", "azure_login_path", "gcp_auth_role", "gcp_login_path", "gcp_service_account", "gcp_jwt_exp"].includes(c) || ![_.AWS_IAM, _.AWS_EC2].includes(a[t.HCV].auth_method) && c === "aws_auth_role" || a[t.HCV].auth_method !== _.AWS_IAM && ["aws_auth_region", "aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method === _.AWS_IAM && ["aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method !== _.AWS_EC2 && c === "aws_auth_nonce" || a[t.HCV].auth_method !== _.AZURE && c === "azure_auth_role" || ![_.GCP_GCE, _.GCP_IAM].includes(a[t.HCV].auth_method) && c === "gcp_auth_role" || a[t.HCV].auth_method !== _.GCP_IAM && ["gcp_service_account", "gcp_jwt_exp"].includes(c) || a[t.HCV].auth_method !== _.TOKEN && c === "token" || a[t.HCV].auth_method !== _.APP_ROLE && (c === "approle_role_id" || c === "approle_response_wrapping") || a[t.HCV].auth_method === _.APP_ROLE && c === "approle_response_wrapping" && typeof a[f.value][c] == "boolean" || a[t.HCV].auth_method !== _.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.JWT && ["oauth2_client_id", "oauth2_client_secret", "jwt_role", "oauth2_token_endpoint"].includes(c) ? !1 : b(a[f.value][c])).length : f.value === t.AZURE ? !Object.keys(a[t.AZURE]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : b(a[f.value][c])).length : f.value === t.AZURE_CERTS ? !Object.keys(a[t.AZURE_CERTS]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : b(a[f.value][c])).length : f.value === t.AWS ? !Object.keys(a[t.AWS]).filter((c) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(c) ? !1 : b(a[f.value][c])).length : !Object.keys(a[f.value]).filter((c) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : b(a[f.value][c])).length), $ = k(() => !!n.fields.prefix && S.value), j = k(() => JSON.stringify(n.fields) !== JSON.stringify(U) || f.value !== le.value || JSON.stringify(a[f.value]) !== JSON.stringify(ie[f.value])), Z = k(() => {
1467
- var o, te;
1468
- let c = `${s.config.apiBaseUrl}${ue.form[I.value][se.value]}`;
1469
- return s.config.app === "konnect" && (c = c.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "")), E(c).replace(/\/{workspace}/gi, (te = s.config) != null && te.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId ?? "");
1470
- }), B = k(() => {
1471
- var i, Re;
1466
+ ].includes(c) || a[t.HCV].auth_method !== _.K8S && (c === "kube_role" || c === "kube_api_token_file") || !s.config.hcvCspAuthMethodsAvailable && ["aws_auth_role", "aws_auth_region", "aws_auth_nonce", "aws_access_key_id", "aws_secret_access_key", "aws_login_path", "aws_sts_endpoint_url", "aws_assume_role_arn", "aws_role_session_name", "azure_auth_role", "azure_login_path", "gcp_auth_role", "gcp_login_path", "gcp_service_account", "gcp_jwt_exp"].includes(c) || ![_.AWS_IAM, _.AWS_EC2].includes(a[t.HCV].auth_method) && c === "aws_auth_role" || a[t.HCV].auth_method !== _.AWS_IAM && ["aws_auth_region", "aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method === _.AWS_IAM && ["aws_access_key_id", "aws_secret_access_key"].includes(c) || a[t.HCV].auth_method !== _.AWS_EC2 && c === "aws_auth_nonce" || a[t.HCV].auth_method !== _.AZURE && c === "azure_auth_role" || ![_.GCP_GCE, _.GCP_IAM].includes(a[t.HCV].auth_method) && c === "gcp_auth_role" || a[t.HCV].auth_method !== _.GCP_IAM && ["gcp_service_account", "gcp_jwt_exp"].includes(c) || a[t.HCV].auth_method !== _.TOKEN && c === "token" || R.value && re.value === ge.Edit && ["token", "oauth2_client_secret", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.APP_ROLE && (c === "approle_role_id" || c === "approle_response_wrapping") || a[t.HCV].auth_method === _.APP_ROLE && c === "approle_response_wrapping" && typeof a[f.value][c] == "boolean" || a[t.HCV].auth_method !== _.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(c) || a[t.HCV].auth_method !== _.JWT && ["oauth2_client_id", "oauth2_client_secret", "jwt_role", "oauth2_token_endpoint"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AZURE ? !Object.keys(a[t.AZURE]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AZURE_CERTS ? !Object.keys(a[t.AZURE_CERTS]).filter((c) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length : f.value === t.AWS ? !Object.keys(a[t.AWS]).filter((c) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(c) ? !1 : A(a[f.value][c])).length : !Object.keys(a[f.value]).filter((c) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(c) ? !1 : A(a[f.value][c])).length), z = k(() => !!n.fields.prefix && P.value), te = k(() => JSON.stringify(n.fields) !== JSON.stringify(U) || f.value !== oe.value || JSON.stringify(a[f.value]) !== JSON.stringify(se[f.value])), B = k(() => {
1467
+ var o, S;
1468
+ let c = `${s.config.apiBaseUrl}${fe.form[I.value][re.value]}`;
1469
+ return s.config.app === "konnect" && (c = c.replace(/{controlPlaneId}/gi, ((o = s.config) == null ? void 0 : o.controlPlaneId) || "")), x(c).replace(/\/{workspace}/gi, (S = s.config) != null && S.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId ?? "");
1470
+ }), W = k(() => {
1471
+ var xe, ze;
1472
1472
  const c = parseInt(String(a[t.HCV].gcp_jwt_exp), 10), o = {
1473
1473
  protocol: a[t.HCV].protocol,
1474
1474
  host: a[t.HCV].host,
@@ -1535,11 +1535,11 @@ const dt = {
1535
1535
  jwt_role: a[t.HCV].jwt_role,
1536
1536
  oauth2_token_endpoint: a[t.HCV].oauth2_token_endpoint
1537
1537
  }
1538
- }, te = {
1538
+ }, S = {
1539
1539
  ...a[f.value],
1540
1540
  client_id: a[f.value].client_id || null,
1541
1541
  tenant_id: a[f.value].tenant_id || null
1542
- }, A = {
1542
+ }, Z = {
1543
1543
  ...a[f.value],
1544
1544
  client_id: a[f.value].client_id || null,
1545
1545
  tenant_id: a[f.value].tenant_id || null
@@ -1549,51 +1549,59 @@ const dt = {
1549
1549
  assume_role_arn: a[f.value].assume_role_arn || null,
1550
1550
  ...s.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: a[f.value].sts_endpoint_url || null } : {}
1551
1551
  };
1552
- let L = a[f.value];
1553
- f.value === t.HCV ? L = o : f.value === t.AZURE ? L = te : f.value === t.AZURE_CERTS ? L = A : f.value === t.AWS && (L = m);
1554
- let pe = {};
1552
+ let ae = a[f.value];
1553
+ f.value === t.HCV ? ae = o : f.value === t.AZURE ? ae = S : f.value === t.AZURE_CERTS ? ae = Z : f.value === t.AWS && (ae = m);
1554
+ let _e = {};
1555
1555
  if (![t.KONNECT, t.ENV].includes(f.value)) {
1556
- const be = a[f.value], Oe = be.ttl, We = be.neg_ttl, je = be.resurrect_ttl;
1557
- pe = {
1558
- ttl: Oe ? parseInt(Oe.toString(), 10) : null,
1559
- neg_ttl: We ? parseInt(We.toString(), 10) : null,
1560
- resurrect_ttl: je ? parseInt(je.toString(), 10) : null
1556
+ const ue = a[f.value], $e = ue.ttl, Re = ue.neg_ttl, De = ue.resurrect_ttl;
1557
+ _e = {
1558
+ ttl: $e ? parseInt($e.toString(), 10) : null,
1559
+ neg_ttl: Re ? parseInt(Re.toString(), 10) : null,
1560
+ resurrect_ttl: De ? parseInt(De.toString(), 10) : null
1561
1561
  };
1562
1562
  }
1563
- const he = {
1563
+ const Ve = {
1564
1564
  prefix: n.fields.prefix,
1565
1565
  description: n.fields.description || null,
1566
- tags: (Re = (i = n.fields.tags.split(",")) == null ? void 0 : i.map((be) => String(be || "").trim())) == null ? void 0 : Re.filter((be) => be !== ""),
1566
+ tags: (ze = (xe = n.fields.tags.split(",")) == null ? void 0 : xe.map((ue) => String(ue || "").trim())) == null ? void 0 : ze.filter((ue) => ue !== ""),
1567
1567
  name: f.value,
1568
1568
  config: {
1569
- ...L,
1570
- ...pe
1569
+ ...ae,
1570
+ ..._e
1571
1571
  }
1572
1572
  };
1573
- return x.value ? Lt(he) : he;
1574
- }), D = k(() => ({
1575
- ...B.value,
1573
+ if (!R.value) return Ve;
1574
+ const r = Yt(Ve);
1575
+ if (re.value === ge.Edit) {
1576
+ const ue = { ...r.config };
1577
+ return ["token", "client_secret", "secret_access_key", "api_key", "key"].forEach((Re) => {
1578
+ Re in ue && A(ue[Re]) && delete ue[Re];
1579
+ }), { ...r, config: ue };
1580
+ }
1581
+ return r;
1582
+ }), h = k(() => ({
1583
+ ...W.value,
1576
1584
  config: {
1577
- ...B.value.config,
1585
+ ...W.value.config,
1578
1586
  config_store_id: J.value
1579
1587
  }
1580
- })), C = async () => {
1588
+ })), E = async () => {
1581
1589
  var c, o;
1582
1590
  try {
1583
1591
  n.isReadonly = !0;
1584
- const te = E(`${s.config.apiBaseUrl}${ue.form[x.value ? "aiGateway" : "konnect"].createConfigStore}`).replace(/{controlPlaneId}/gi, ((c = s.config) == null ? void 0 : c.controlPlaneId) || "").replace(/\/{workspace}/gi, (o = s.config) != null && o.workspace ? `/${s.config.workspace}` : ""), A = await M.post(te);
1585
- return A == null ? void 0 : A.data.id;
1586
- } catch (te) {
1587
- n.errorMessage = w(te), d("error", te);
1592
+ const S = x(`${s.config.apiBaseUrl}${fe.form[R.value ? "aiGateway" : "konnect"].createConfigStore}`).replace(/{controlPlaneId}/gi, ((c = s.config) == null ? void 0 : c.controlPlaneId) || "").replace(/\/{workspace}/gi, (o = s.config) != null && o.workspace ? `/${s.config.workspace}` : ""), Z = await G.post(S);
1593
+ return Z == null ? void 0 : Z.data.id;
1594
+ } catch (S) {
1595
+ n.errorMessage = w(S), d("error", S);
1588
1596
  } finally {
1589
1597
  n.isReadonly = !1;
1590
1598
  }
1591
- }, R = async () => {
1599
+ }, F = async () => {
1592
1600
  var c;
1593
1601
  try {
1594
1602
  n.isReadonly = !0;
1595
1603
  let o;
1596
- se.value === "create" ? f.value === t.KONNECT ? (J.value = await C(), o = await M.post(Z.value, D.value)) : o = await M.post(Z.value, B.value) : se.value === "edit" && (f.value === t.KONNECT && !J.value ? (J.value = await C(), o = await M.put(Z.value, D.value)) : o = ((c = s.config) == null ? void 0 : c.app) === "konnect" ? await M.put(Z.value, D.value) : await M.patch(Z.value, B.value)), ye(o == null ? void 0 : o.data), d("update", o == null ? void 0 : o.data);
1604
+ re.value === "create" ? f.value === t.KONNECT ? (J.value = await E(), o = await G.post(B.value, h.value)) : o = await G.post(B.value, W.value) : re.value === "edit" && (f.value === t.KONNECT && !J.value ? (J.value = await E(), o = await G.put(B.value, h.value)) : o = ((c = s.config) == null ? void 0 : c.app) === "konnect" ? await G.put(B.value, h.value) : await G.patch(B.value, W.value)), C(o == null ? void 0 : o.data), d("update", o == null ? void 0 : o.data);
1597
1605
  } catch (o) {
1598
1606
  n.errorMessage = w(o), d("error", o);
1599
1607
  } finally {
@@ -1601,59 +1609,60 @@ const dt = {
1601
1609
  }
1602
1610
  };
1603
1611
  return (c, o) => {
1604
- const te = Y("KTooltip"), A = Y("KSelect"), m = Y("KInput"), L = Y("KCheckbox"), pe = Y("KTextArea"), he = Y("KCollapse");
1605
- return y(), F("div", aa, [
1606
- u(e(st), {
1607
- "can-submit": $.value && j.value,
1612
+ const S = Q("KTooltip"), Z = Q("KSelect"), m = Q("KInput"), ae = Q("KCheckbox"), _e = Q("KTextArea"), Ve = Q("KCollapse");
1613
+ return v(), N("div", ia, [
1614
+ u(e(ct), {
1615
+ "can-submit": z.value && te.value,
1608
1616
  config: l.config,
1609
1617
  "edit-id": l.vaultId,
1610
- "entity-type": e(Ne).Vault,
1618
+ "entity-type": e(qe).Vault,
1611
1619
  "error-message": n.errorMessage,
1612
- "fetch-url": ne.value,
1613
- "form-fields": B.value,
1620
+ "fetch-url": be.value,
1621
+ "form-fields": W.value,
1614
1622
  "is-readonly": n.isReadonly,
1615
- onCancel: W,
1623
+ "tabs-to-hide": l.config.apiType === "aiGateway" ? ["terraform", "deck"] : [],
1624
+ onCancel: le,
1616
1625
  "onFetch:error": ee,
1617
- "onFetch:success": ye,
1618
- onLoading: ae,
1619
- onSubmit: R
1626
+ "onFetch:success": C,
1627
+ onLoading: X,
1628
+ onSubmit: F
1620
1629
  }, {
1621
- default: g(() => [
1622
- u(e(Pe), {
1623
- description: e(r)("form.sections.config.description"),
1624
- title: e(r)("form.sections.config.title")
1630
+ default: y(() => [
1631
+ u(e(Oe), {
1632
+ description: e(i)("form.sections.config.description"),
1633
+ title: e(i)("form.sections.config.title")
1625
1634
  }, {
1626
- default: g(() => [
1627
- T("div", la, [
1628
- u(A, {
1635
+ default: y(() => [
1636
+ M("div", ra, [
1637
+ u(Z, {
1629
1638
  modelValue: f.value,
1630
- "onUpdate:modelValue": o[0] || (o[0] = (i) => f.value = i),
1639
+ "onUpdate:modelValue": o[0] || (o[0] = (r) => f.value = r),
1631
1640
  "data-testid": "provider-select",
1632
- disabled: ve.value,
1641
+ disabled: q.value,
1633
1642
  "dropdown-max-height": "500",
1634
- items: ce.value,
1643
+ items: pe.value,
1635
1644
  readonly: n.isReadonly
1636
1645
  }, {
1637
- "selected-item-template": g(({ item: i }) => [
1638
- (y(), q(ze(Q(i.value)))),
1639
- T("span", null, N(i == null ? void 0 : i.label), 1)
1646
+ "selected-item-template": y(({ item: r }) => [
1647
+ (v(), H(Be(we(r.value)))),
1648
+ M("span", null, O(r == null ? void 0 : r.label), 1)
1640
1649
  ]),
1641
- "item-template": g(({ item: i }) => [
1642
- u(te, {
1650
+ "item-template": y(({ item: r }) => [
1651
+ u(S, {
1643
1652
  placement: "top",
1644
- text: i.disabled ? e(r)("form.unavailable") : ""
1653
+ text: r.disabled ? e(i)("form.unavailable") : ""
1645
1654
  }, {
1646
- default: g(() => [
1647
- T("div", {
1655
+ default: y(() => [
1656
+ M("div", {
1648
1657
  class: "provider-item",
1649
- "data-testid": `vault-form-provider-${i.value}`
1658
+ "data-testid": `vault-form-provider-${r.value}`
1650
1659
  }, [
1651
- (y(), q(ze(Q(i.value)))),
1652
- T("div", ra, [
1653
- T("span", ia, N(i == null ? void 0 : i.label), 1),
1654
- T("span", na, N(ke(i.value)), 1)
1660
+ (v(), H(Be(we(r.value)))),
1661
+ M("div", sa, [
1662
+ M("span", da, O(r == null ? void 0 : r.label), 1),
1663
+ M("span", ua, O(Se(r.value)), 1)
1655
1664
  ])
1656
- ], 8, oa)
1665
+ ], 8, na)
1657
1666
  ]),
1658
1667
  _: 2
1659
1668
  }, 1032, ["text"])
@@ -1661,63 +1670,63 @@ const dt = {
1661
1670
  _: 1
1662
1671
  }, 8, ["modelValue", "disabled", "items", "readonly"])
1663
1672
  ]),
1664
- u(ct, { name: "appear" }, {
1665
- default: g(() => [
1666
- f.value === e(t).ENV ? (y(), F("div", sa, [
1673
+ u(mt, { name: "appear" }, {
1674
+ default: y(() => [
1675
+ f.value === e(t).ENV ? (v(), N("div", ca, [
1667
1676
  u(m, {
1668
1677
  modelValue: a[e(t).ENV].prefix,
1669
- "onUpdate:modelValue": o[1] || (o[1] = (i) => a[e(t).ENV].prefix = i),
1678
+ "onUpdate:modelValue": o[1] || (o[1] = (r) => a[e(t).ENV].prefix = r),
1670
1679
  modelModifiers: { trim: !0 },
1671
1680
  autocomplete: "off",
1672
1681
  "data-testid": "vault-form-config-kong-prefix",
1673
- label: e(r)("form.config.env.fields.prefix.label"),
1682
+ label: e(i)("form.config.env.fields.prefix.label"),
1674
1683
  "label-attributes": {
1675
- info: e(r)("form.config.env.fields.prefix.tooltip"),
1684
+ info: e(i)("form.config.env.fields.prefix.tooltip"),
1676
1685
  tooltipAttributes: { maxWidth: "400" }
1677
1686
  },
1678
- placeholder: e(r)("form.config.env.fields.prefix.placeholder"),
1687
+ placeholder: e(i)("form.config.env.fields.prefix.placeholder"),
1679
1688
  readonly: n.isReadonly,
1680
1689
  required: "",
1681
1690
  type: "text"
1682
1691
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1683
- l.config.base64FieldAvailable ? (y(), q(L, {
1692
+ l.config.base64FieldAvailable ? (v(), H(ae, {
1684
1693
  key: 0,
1685
1694
  modelValue: a[e(t).ENV].base64_decode,
1686
- "onUpdate:modelValue": o[2] || (o[2] = (i) => a[e(t).ENV].base64_decode = i),
1695
+ "onUpdate:modelValue": o[2] || (o[2] = (r) => a[e(t).ENV].base64_decode = r),
1687
1696
  "data-testid": "vault-form-config-env-base64_decode",
1688
- label: e(r)("form.config.commonFields.base64_decode.label"),
1697
+ label: e(i)("form.config.commonFields.base64_decode.label"),
1689
1698
  "label-attributes": {
1690
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
1699
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
1691
1700
  tooltipAttributes: { maxWidth: "400" }
1692
1701
  },
1693
1702
  readonly: n.isReadonly
1694
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
1695
- ])) : O("", !0),
1696
- f.value === e(t).AWS ? (y(), F("div", {
1703
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
1704
+ ])) : j("", !0),
1705
+ f.value === e(t).AWS ? (v(), N("div", {
1697
1706
  key: `${e(t).AWS}-vault-config-fields`,
1698
1707
  class: "vault-form-config-fields-container"
1699
1708
  }, [
1700
- u(A, {
1709
+ u(Z, {
1701
1710
  modelValue: a[e(t).AWS].region,
1702
- "onUpdate:modelValue": o[3] || (o[3] = (i) => a[e(t).AWS].region = i),
1711
+ "onUpdate:modelValue": o[3] || (o[3] = (r) => a[e(t).AWS].region = r),
1703
1712
  "data-testid": "vault-form-config-aws-region",
1704
1713
  items: V,
1705
- label: e(r)("form.config.aws.fields.region.label"),
1706
- "label-attributes": { info: e(r)("form.config.aws.fields.region.tooltip") },
1707
- placeholder: e(r)("form.config.aws.fields.region.placeholder"),
1714
+ label: e(i)("form.config.aws.fields.region.label"),
1715
+ "label-attributes": { info: e(i)("form.config.aws.fields.region.tooltip") },
1716
+ placeholder: e(i)("form.config.aws.fields.region.placeholder"),
1708
1717
  readonly: n.isReadonly,
1709
1718
  required: "",
1710
1719
  width: "100%"
1711
1720
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1712
1721
  u(m, {
1713
1722
  modelValue: a[e(t).AWS].endpoint_url,
1714
- "onUpdate:modelValue": o[4] || (o[4] = (i) => a[e(t).AWS].endpoint_url = i),
1723
+ "onUpdate:modelValue": o[4] || (o[4] = (r) => a[e(t).AWS].endpoint_url = r),
1715
1724
  modelModifiers: { trim: !0 },
1716
1725
  autocomplete: "off",
1717
1726
  "data-testid": "vault-form-config-aws-endpoint_url",
1718
- label: e(r)("form.config.aws.fields.endpoint_url.label"),
1727
+ label: e(i)("form.config.aws.fields.endpoint_url.label"),
1719
1728
  "label-attributes": {
1720
- info: e(r)("form.config.aws.fields.endpoint_url.tooltip"),
1729
+ info: e(i)("form.config.aws.fields.endpoint_url.tooltip"),
1721
1730
  tooltipAttributes: { maxWidth: "400" }
1722
1731
  },
1723
1732
  readonly: n.isReadonly,
@@ -1725,13 +1734,13 @@ const dt = {
1725
1734
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1726
1735
  u(m, {
1727
1736
  modelValue: a[e(t).AWS].assume_role_arn,
1728
- "onUpdate:modelValue": o[5] || (o[5] = (i) => a[e(t).AWS].assume_role_arn = i),
1737
+ "onUpdate:modelValue": o[5] || (o[5] = (r) => a[e(t).AWS].assume_role_arn = r),
1729
1738
  modelModifiers: { trim: !0 },
1730
1739
  autocomplete: "off",
1731
1740
  "data-testid": "vault-form-config-aws-assume_role_arn",
1732
- label: e(r)("form.config.aws.fields.assume_role_arn.label"),
1741
+ label: e(i)("form.config.aws.fields.assume_role_arn.label"),
1733
1742
  "label-attributes": {
1734
- info: e(r)("form.config.aws.fields.assume_role_arn.tooltip"),
1743
+ info: e(i)("form.config.aws.fields.assume_role_arn.tooltip"),
1735
1744
  tooltipAttributes: { maxWidth: "400" }
1736
1745
  },
1737
1746
  readonly: n.isReadonly,
@@ -1739,128 +1748,128 @@ const dt = {
1739
1748
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1740
1749
  u(m, {
1741
1750
  modelValue: a[e(t).AWS].role_session_name,
1742
- "onUpdate:modelValue": o[6] || (o[6] = (i) => a[e(t).AWS].role_session_name = i),
1751
+ "onUpdate:modelValue": o[6] || (o[6] = (r) => a[e(t).AWS].role_session_name = r),
1743
1752
  modelModifiers: { trim: !0 },
1744
1753
  autocomplete: "off",
1745
1754
  "data-testid": "vault-form-config-aws-role_session_name",
1746
- label: e(r)("form.config.aws.fields.role_session_name.label"),
1755
+ label: e(i)("form.config.aws.fields.role_session_name.label"),
1747
1756
  "label-attributes": {
1748
- info: e(r)("form.config.aws.fields.role_session_name.tooltip"),
1757
+ info: e(i)("form.config.aws.fields.role_session_name.tooltip"),
1749
1758
  tooltipAttributes: { maxWidth: "400" }
1750
1759
  },
1751
1760
  readonly: n.isReadonly,
1752
1761
  required: "",
1753
1762
  type: "text"
1754
1763
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1755
- l.config.awsStsEndpointUrlAvailable ? (y(), q(m, {
1764
+ l.config.awsStsEndpointUrlAvailable ? (v(), H(m, {
1756
1765
  key: 0,
1757
1766
  modelValue: a[e(t).AWS].sts_endpoint_url,
1758
- "onUpdate:modelValue": o[7] || (o[7] = (i) => a[e(t).AWS].sts_endpoint_url = i),
1767
+ "onUpdate:modelValue": o[7] || (o[7] = (r) => a[e(t).AWS].sts_endpoint_url = r),
1759
1768
  modelModifiers: { trim: !0 },
1760
1769
  autocomplete: "off",
1761
1770
  "data-testid": "vault-form-config-aws-sts_endpoint_url",
1762
- label: e(r)("form.config.aws.fields.sts_endpoint_url.label"),
1771
+ label: e(i)("form.config.aws.fields.sts_endpoint_url.label"),
1763
1772
  "label-attributes": {
1764
- info: e(r)("form.config.aws.fields.sts_endpoint_url.tooltip"),
1773
+ info: e(i)("form.config.aws.fields.sts_endpoint_url.tooltip"),
1765
1774
  tooltipAttributes: { maxWidth: "400" }
1766
1775
  },
1767
1776
  readonly: n.isReadonly,
1768
1777
  type: "text"
1769
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0),
1770
- l.config.base64FieldAvailable ? (y(), q(L, {
1778
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0),
1779
+ l.config.base64FieldAvailable ? (v(), H(ae, {
1771
1780
  key: 1,
1772
1781
  modelValue: a[e(t).AWS].base64_decode,
1773
- "onUpdate:modelValue": o[8] || (o[8] = (i) => a[e(t).AWS].base64_decode = i),
1782
+ "onUpdate:modelValue": o[8] || (o[8] = (r) => a[e(t).AWS].base64_decode = r),
1774
1783
  "data-testid": "vault-form-config-aws-base64_decode",
1775
- label: e(r)("form.config.commonFields.base64_decode.label"),
1784
+ label: e(i)("form.config.commonFields.base64_decode.label"),
1776
1785
  "label-attributes": {
1777
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
1786
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
1778
1787
  tooltipAttributes: { maxWidth: "400" }
1779
1788
  },
1780
1789
  readonly: n.isReadonly
1781
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
1782
- ])) : O("", !0),
1783
- f.value === e(t).GCP ? (y(), F("div", {
1790
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
1791
+ ])) : j("", !0),
1792
+ f.value === e(t).GCP ? (v(), N("div", {
1784
1793
  key: `${e(t).GCP}-vault-config-fields`,
1785
1794
  class: "vault-form-config-fields-container"
1786
1795
  }, [
1787
1796
  u(m, {
1788
1797
  modelValue: a[e(t).GCP].project_id,
1789
- "onUpdate:modelValue": o[9] || (o[9] = (i) => a[e(t).GCP].project_id = i),
1798
+ "onUpdate:modelValue": o[9] || (o[9] = (r) => a[e(t).GCP].project_id = r),
1790
1799
  modelModifiers: { trim: !0 },
1791
1800
  autocomplete: "off",
1792
1801
  "data-testid": "vault-form-config-gcp-project-id",
1793
- label: e(r)("form.config.gcp.fields.project_id.label"),
1794
- placeholder: e(r)("form.config.gcp.fields.project_id.placeholder"),
1802
+ label: e(i)("form.config.gcp.fields.project_id.label"),
1803
+ placeholder: e(i)("form.config.gcp.fields.project_id.placeholder"),
1795
1804
  readonly: n.isReadonly,
1796
1805
  required: "",
1797
1806
  type: "text"
1798
1807
  }, {
1799
- "label-tooltip": g(() => [
1808
+ "label-tooltip": y(() => [
1800
1809
  u(e(p), {
1801
1810
  keypath: "form.config.gcp.fields.project_id.tooltip.text",
1802
1811
  scope: "global"
1803
1812
  }, {
1804
- "italic-text": g(() => [
1805
- T("em", null, N(e(r)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
1813
+ "italic-text": y(() => [
1814
+ M("em", null, O(e(i)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
1806
1815
  ]),
1807
1816
  _: 1
1808
1817
  })
1809
1818
  ]),
1810
1819
  _: 1
1811
1820
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
1812
- l.config.base64FieldAvailable ? (y(), q(L, {
1821
+ l.config.base64FieldAvailable ? (v(), H(ae, {
1813
1822
  key: 0,
1814
1823
  modelValue: a[e(t).GCP].base64_decode,
1815
- "onUpdate:modelValue": o[10] || (o[10] = (i) => a[e(t).GCP].base64_decode = i),
1824
+ "onUpdate:modelValue": o[10] || (o[10] = (r) => a[e(t).GCP].base64_decode = r),
1816
1825
  "data-testid": "vault-form-config-gcp-base64_decode",
1817
- label: e(r)("form.config.commonFields.base64_decode.label"),
1826
+ label: e(i)("form.config.commonFields.base64_decode.label"),
1818
1827
  "label-attributes": {
1819
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
1828
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
1820
1829
  tooltipAttributes: { maxWidth: "400" }
1821
1830
  },
1822
1831
  readonly: n.isReadonly
1823
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
1824
- ])) : O("", !0),
1825
- f.value === e(t).HCV ? (y(), F("div", {
1832
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
1833
+ ])) : j("", !0),
1834
+ f.value === e(t).HCV ? (v(), N("div", {
1826
1835
  key: `${e(t).HCV}-vault-config-fields`,
1827
1836
  class: "vault-form-config-fields-container"
1828
1837
  }, [
1829
- u(A, {
1838
+ u(Z, {
1830
1839
  modelValue: a[e(t).HCV].protocol,
1831
- "onUpdate:modelValue": o[11] || (o[11] = (i) => a[e(t).HCV].protocol = i),
1840
+ "onUpdate:modelValue": o[11] || (o[11] = (r) => a[e(t).HCV].protocol = r),
1832
1841
  "data-testid": "vault-form-config-hcv-protocol",
1833
- items: oe,
1834
- label: e(r)("form.config.hcv.fields.protocol.label"),
1842
+ items: ie,
1843
+ label: e(i)("form.config.hcv.fields.protocol.label"),
1835
1844
  readonly: n.isReadonly,
1836
1845
  required: "",
1837
1846
  width: "100%"
1838
1847
  }, null, 8, ["modelValue", "label", "readonly"]),
1839
- l.config.hcvSslVerifyAvailable ? (y(), q(L, {
1848
+ l.config.hcvSslVerifyAvailable ? (v(), H(ae, {
1840
1849
  key: 0,
1841
1850
  modelValue: a[e(t).HCV].ssl_verify,
1842
- "onUpdate:modelValue": o[12] || (o[12] = (i) => a[e(t).HCV].ssl_verify = i),
1851
+ "onUpdate:modelValue": o[12] || (o[12] = (r) => a[e(t).HCV].ssl_verify = r),
1843
1852
  "data-testid": "vault-form-config-hcv-ssl_verify",
1844
- label: e(r)("form.config.hcv.fields.ssl_verify.label"),
1853
+ label: e(i)("form.config.hcv.fields.ssl_verify.label"),
1845
1854
  readonly: n.isReadonly
1846
- }, null, 8, ["modelValue", "label", "readonly"])) : O("", !0),
1855
+ }, null, 8, ["modelValue", "label", "readonly"])) : j("", !0),
1847
1856
  u(m, {
1848
1857
  modelValue: a[e(t).HCV].host,
1849
- "onUpdate:modelValue": o[13] || (o[13] = (i) => a[e(t).HCV].host = i),
1858
+ "onUpdate:modelValue": o[13] || (o[13] = (r) => a[e(t).HCV].host = r),
1850
1859
  modelModifiers: { trim: !0 },
1851
1860
  autocomplete: "off",
1852
1861
  "data-testid": "vault-form-config-hcv-host",
1853
- label: e(r)("form.config.hcv.fields.host.label"),
1862
+ label: e(i)("form.config.hcv.fields.host.label"),
1854
1863
  readonly: n.isReadonly,
1855
1864
  required: "",
1856
1865
  type: "text"
1857
1866
  }, null, 8, ["modelValue", "label", "readonly"]),
1858
1867
  u(m, {
1859
1868
  modelValue: a[e(t).HCV].port,
1860
- "onUpdate:modelValue": o[14] || (o[14] = (i) => a[e(t).HCV].port = i),
1869
+ "onUpdate:modelValue": o[14] || (o[14] = (r) => a[e(t).HCV].port = r),
1861
1870
  autocomplete: "off",
1862
1871
  "data-testid": "vault-form-config-hcv-port",
1863
- label: e(r)("form.config.hcv.fields.port.label"),
1872
+ label: e(i)("form.config.hcv.fields.port.label"),
1864
1873
  min: "0",
1865
1874
  readonly: n.isReadonly,
1866
1875
  required: "",
@@ -1868,38 +1877,38 @@ const dt = {
1868
1877
  }, null, 8, ["modelValue", "label", "readonly"]),
1869
1878
  u(m, {
1870
1879
  modelValue: a[e(t).HCV].mount,
1871
- "onUpdate:modelValue": o[15] || (o[15] = (i) => a[e(t).HCV].mount = i),
1880
+ "onUpdate:modelValue": o[15] || (o[15] = (r) => a[e(t).HCV].mount = r),
1872
1881
  modelModifiers: { trim: !0 },
1873
1882
  autocomplete: "off",
1874
1883
  "data-testid": "vault-form-config-hcv-mount",
1875
- label: e(r)("form.config.hcv.fields.mount.label"),
1884
+ label: e(i)("form.config.hcv.fields.mount.label"),
1876
1885
  readonly: n.isReadonly,
1877
1886
  required: "",
1878
1887
  type: "text"
1879
1888
  }, null, 8, ["modelValue", "label", "readonly"]),
1880
- u(A, {
1889
+ u(Z, {
1881
1890
  modelValue: a[e(t).HCV].kv,
1882
- "onUpdate:modelValue": o[16] || (o[16] = (i) => a[e(t).HCV].kv = i),
1891
+ "onUpdate:modelValue": o[16] || (o[16] = (r) => a[e(t).HCV].kv = r),
1883
1892
  "data-testid": "vault-form-config-hcv-kv",
1884
- items: fe,
1885
- label: e(r)("form.config.hcv.fields.kv.label"),
1893
+ items: me,
1894
+ label: e(i)("form.config.hcv.fields.kv.label"),
1886
1895
  readonly: n.isReadonly,
1887
1896
  required: "",
1888
1897
  width: "100%"
1889
1898
  }, null, 8, ["modelValue", "label", "readonly"]),
1890
1899
  u(m, {
1891
1900
  modelValue: a[e(t).HCV].namespace,
1892
- "onUpdate:modelValue": o[17] || (o[17] = (i) => a[e(t).HCV].namespace = i),
1901
+ "onUpdate:modelValue": o[17] || (o[17] = (r) => a[e(t).HCV].namespace = r),
1893
1902
  modelModifiers: { trim: !0 },
1894
1903
  autocomplete: "off",
1895
1904
  "data-testid": "vault-form-config-hcv-namespace",
1896
- label: e(r)("form.config.hcv.fields.namespace.label"),
1905
+ label: e(i)("form.config.hcv.fields.namespace.label"),
1897
1906
  readonly: n.isReadonly,
1898
1907
  type: "text"
1899
1908
  }, null, 8, ["modelValue", "label", "readonly"]),
1900
- u(A, {
1909
+ u(Z, {
1901
1910
  modelValue: a[e(t).HCV].auth_method,
1902
- "onUpdate:modelValue": o[18] || (o[18] = (i) => a[e(t).HCV].auth_method = i),
1911
+ "onUpdate:modelValue": o[18] || (o[18] = (r) => a[e(t).HCV].auth_method = r),
1903
1912
  "data-testid": "vault-form-config-hcv-auth_method",
1904
1913
  items: [
1905
1914
  { label: e(_).TOKEN, value: e(_).TOKEN },
@@ -1915,161 +1924,180 @@ const dt = {
1915
1924
  { label: e(_).GCP_IAM, value: e(_).GCP_IAM }
1916
1925
  ] : []
1917
1926
  ],
1918
- label: e(r)("form.config.hcv.fields.auth_method.label"),
1927
+ label: e(i)("form.config.hcv.fields.auth_method.label"),
1919
1928
  readonly: n.isReadonly,
1920
1929
  required: "",
1921
1930
  width: "100%"
1922
1931
  }, null, 8, ["modelValue", "items", "label", "readonly"]),
1923
- a[e(t).HCV].auth_method === e(_).TOKEN ? (y(), F("div", da, [
1924
- u(m, {
1932
+ a[e(t).HCV].auth_method === e(_).TOKEN ? (v(), N("div", fa, [
1933
+ R.value ? (v(), H(e(Te), {
1934
+ key: 1,
1935
+ modelValue: a[e(t).HCV].token,
1936
+ "onUpdate:modelValue": o[20] || (o[20] = (r) => a[e(t).HCV].token = r),
1937
+ "data-testid": "vault-form-config-hcv-token",
1938
+ label: e(i)("form.config.hcv.fields.token.label"),
1939
+ mode: L.value,
1940
+ readonly: n.isReadonly,
1941
+ required: L.value === "create"
1942
+ }, null, 8, ["modelValue", "label", "mode", "readonly", "required"])) : (v(), H(m, {
1943
+ key: 0,
1925
1944
  modelValue: a[e(t).HCV].token,
1926
- "onUpdate:modelValue": o[19] || (o[19] = (i) => a[e(t).HCV].token = i),
1945
+ "onUpdate:modelValue": o[19] || (o[19] = (r) => a[e(t).HCV].token = r),
1927
1946
  modelModifiers: { trim: !0 },
1928
1947
  autocomplete: "off",
1929
1948
  "data-testid": "vault-form-config-hcv-token",
1930
- label: e(r)("form.config.hcv.fields.token.label"),
1949
+ label: e(i)("form.config.hcv.fields.token.label"),
1931
1950
  readonly: n.isReadonly,
1932
1951
  required: "",
1933
1952
  "show-password-mask-toggle": "",
1934
1953
  type: "password"
1935
- }, null, 8, ["modelValue", "label", "readonly"])
1936
- ])) : a[e(t).HCV].auth_method === e(_).K8S ? (y(), F("div", ua, [
1954
+ }, null, 8, ["modelValue", "label", "readonly"]))
1955
+ ])) : a[e(t).HCV].auth_method === e(_).K8S ? (v(), N("div", pa, [
1937
1956
  u(m, {
1938
1957
  modelValue: a[e(t).HCV].kube_role,
1939
- "onUpdate:modelValue": o[20] || (o[20] = (i) => a[e(t).HCV].kube_role = i),
1958
+ "onUpdate:modelValue": o[21] || (o[21] = (r) => a[e(t).HCV].kube_role = r),
1940
1959
  modelModifiers: { trim: !0 },
1941
1960
  autocomplete: "off",
1942
1961
  "data-testid": "vault-form-config-hcv-kube_role",
1943
- label: e(r)("form.config.hcv.fields.kube_role.label"),
1962
+ label: e(i)("form.config.hcv.fields.kube_role.label"),
1944
1963
  readonly: n.isReadonly,
1945
1964
  required: "",
1946
1965
  type: "text"
1947
1966
  }, null, 8, ["modelValue", "label", "readonly"]),
1948
1967
  u(m, {
1949
1968
  modelValue: a[e(t).HCV].kube_auth_path,
1950
- "onUpdate:modelValue": o[21] || (o[21] = (i) => a[e(t).HCV].kube_auth_path = i),
1969
+ "onUpdate:modelValue": o[22] || (o[22] = (r) => a[e(t).HCV].kube_auth_path = r),
1951
1970
  modelModifiers: { trim: !0 },
1952
1971
  autocomplete: "off",
1953
1972
  "data-testid": "vault-form-config-hcv-kube_auth_path",
1954
- label: e(r)("form.config.hcv.fields.kube_auth_path.label"),
1973
+ label: e(i)("form.config.hcv.fields.kube_auth_path.label"),
1955
1974
  readonly: n.isReadonly,
1956
1975
  type: "text"
1957
1976
  }, null, 8, ["modelValue", "label", "readonly"]),
1958
1977
  u(m, {
1959
1978
  modelValue: a[e(t).HCV].kube_api_token_file,
1960
- "onUpdate:modelValue": o[22] || (o[22] = (i) => a[e(t).HCV].kube_api_token_file = i),
1979
+ "onUpdate:modelValue": o[23] || (o[23] = (r) => a[e(t).HCV].kube_api_token_file = r),
1961
1980
  modelModifiers: { trim: !0 },
1962
1981
  autocomplete: "off",
1963
1982
  "data-testid": "vault-form-config-hcv-kube_api_token_file",
1964
- label: e(r)("form.config.hcv.fields.kube_api_token_file.label"),
1983
+ label: e(i)("form.config.hcv.fields.kube_api_token_file.label"),
1965
1984
  readonly: n.isReadonly,
1966
1985
  required: "",
1967
1986
  type: "text"
1968
1987
  }, null, 8, ["modelValue", "label", "readonly"])
1969
- ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_IAM ? (y(), F("div", ca, [
1988
+ ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_IAM ? (v(), N("div", ma, [
1970
1989
  u(m, {
1971
1990
  modelValue: a[e(t).HCV].aws_auth_role,
1972
- "onUpdate:modelValue": o[23] || (o[23] = (i) => a[e(t).HCV].aws_auth_role = i),
1991
+ "onUpdate:modelValue": o[24] || (o[24] = (r) => a[e(t).HCV].aws_auth_role = r),
1973
1992
  modelModifiers: { trim: !0 },
1974
1993
  autocomplete: "off",
1975
1994
  "data-testid": "vault-form-config-hcv-aws_auth_role",
1976
- label: e(r)("form.config.hcv.fields.aws_auth_role.label"),
1995
+ label: e(i)("form.config.hcv.fields.aws_auth_role.label"),
1977
1996
  readonly: n.isReadonly,
1978
1997
  required: "",
1979
1998
  type: "text"
1980
1999
  }, null, 8, ["modelValue", "label", "readonly"]),
1981
2000
  u(m, {
1982
2001
  modelValue: a[e(t).HCV].aws_auth_region,
1983
- "onUpdate:modelValue": o[24] || (o[24] = (i) => a[e(t).HCV].aws_auth_region = i),
2002
+ "onUpdate:modelValue": o[25] || (o[25] = (r) => a[e(t).HCV].aws_auth_region = r),
1984
2003
  modelModifiers: { trim: !0 },
1985
2004
  autocomplete: "off",
1986
2005
  "data-testid": "vault-form-config-hcv-aws_auth_region",
1987
- label: e(r)("form.config.hcv.fields.aws_auth_region.label"),
2006
+ label: e(i)("form.config.hcv.fields.aws_auth_region.label"),
1988
2007
  readonly: n.isReadonly,
1989
2008
  required: "",
1990
2009
  type: "text"
1991
2010
  }, null, 8, ["modelValue", "label", "readonly"]),
1992
2011
  u(m, {
1993
2012
  modelValue: a[e(t).HCV].aws_login_path,
1994
- "onUpdate:modelValue": o[25] || (o[25] = (i) => a[e(t).HCV].aws_login_path = i),
2013
+ "onUpdate:modelValue": o[26] || (o[26] = (r) => a[e(t).HCV].aws_login_path = r),
1995
2014
  modelModifiers: { trim: !0 },
1996
2015
  autocomplete: "off",
1997
2016
  "data-testid": "vault-form-config-hcv-aws_login_path",
1998
- label: e(r)("form.config.hcv.fields.aws_login_path.label"),
2017
+ label: e(i)("form.config.hcv.fields.aws_login_path.label"),
1999
2018
  readonly: n.isReadonly,
2000
2019
  type: "text"
2001
2020
  }, null, 8, ["modelValue", "label", "readonly"]),
2002
2021
  u(m, {
2003
2022
  modelValue: a[e(t).HCV].aws_access_key_id,
2004
- "onUpdate:modelValue": o[26] || (o[26] = (i) => a[e(t).HCV].aws_access_key_id = i),
2023
+ "onUpdate:modelValue": o[27] || (o[27] = (r) => a[e(t).HCV].aws_access_key_id = r),
2005
2024
  modelModifiers: { trim: !0 },
2006
2025
  autocomplete: "off",
2007
2026
  "data-testid": "vault-form-config-hcv-aws_access_key_id",
2008
- label: e(r)("form.config.hcv.fields.aws_access_key_id.label"),
2027
+ label: e(i)("form.config.hcv.fields.aws_access_key_id.label"),
2009
2028
  readonly: n.isReadonly,
2010
2029
  "show-password-mask-toggle": "",
2011
2030
  type: "password"
2012
2031
  }, null, 8, ["modelValue", "label", "readonly"]),
2013
- u(m, {
2032
+ R.value ? (v(), H(e(Te), {
2033
+ key: 1,
2034
+ modelValue: a[e(t).HCV].aws_secret_access_key,
2035
+ "onUpdate:modelValue": o[29] || (o[29] = (r) => a[e(t).HCV].aws_secret_access_key = r),
2036
+ "data-testid": "vault-form-config-hcv-aws_secret_access_key",
2037
+ label: e(i)("form.config.hcv.fields.aws_secret_access_key.label"),
2038
+ mode: L.value,
2039
+ readonly: n.isReadonly
2040
+ }, null, 8, ["modelValue", "label", "mode", "readonly"])) : (v(), H(m, {
2041
+ key: 0,
2014
2042
  modelValue: a[e(t).HCV].aws_secret_access_key,
2015
- "onUpdate:modelValue": o[27] || (o[27] = (i) => a[e(t).HCV].aws_secret_access_key = i),
2043
+ "onUpdate:modelValue": o[28] || (o[28] = (r) => a[e(t).HCV].aws_secret_access_key = r),
2016
2044
  modelModifiers: { trim: !0 },
2017
2045
  autocomplete: "off",
2018
2046
  "data-testid": "vault-form-config-hcv-aws_secret_access_key",
2019
- label: e(r)("form.config.hcv.fields.aws_secret_access_key.label"),
2047
+ label: e(i)("form.config.hcv.fields.aws_secret_access_key.label"),
2020
2048
  readonly: n.isReadonly,
2021
2049
  "show-password-mask-toggle": "",
2022
2050
  type: "password"
2023
- }, null, 8, ["modelValue", "label", "readonly"]),
2051
+ }, null, 8, ["modelValue", "label", "readonly"])),
2024
2052
  u(m, {
2025
2053
  modelValue: a[e(t).HCV].aws_sts_endpoint_url,
2026
- "onUpdate:modelValue": o[28] || (o[28] = (i) => a[e(t).HCV].aws_sts_endpoint_url = i),
2054
+ "onUpdate:modelValue": o[30] || (o[30] = (r) => a[e(t).HCV].aws_sts_endpoint_url = r),
2027
2055
  modelModifiers: { trim: !0 },
2028
2056
  autocomplete: "off",
2029
2057
  "data-testid": "vault-form-config-hcv-aws_sts_endpoint_url",
2030
- label: e(r)("form.config.hcv.fields.aws_sts_endpoint_url.label"),
2058
+ label: e(i)("form.config.hcv.fields.aws_sts_endpoint_url.label"),
2031
2059
  readonly: n.isReadonly,
2032
2060
  type: "text"
2033
2061
  }, null, 8, ["modelValue", "label", "readonly"]),
2034
2062
  u(m, {
2035
2063
  modelValue: a[e(t).HCV].aws_assume_role_arn,
2036
- "onUpdate:modelValue": o[29] || (o[29] = (i) => a[e(t).HCV].aws_assume_role_arn = i),
2064
+ "onUpdate:modelValue": o[31] || (o[31] = (r) => a[e(t).HCV].aws_assume_role_arn = r),
2037
2065
  modelModifiers: { trim: !0 },
2038
2066
  autocomplete: "off",
2039
2067
  "data-testid": "vault-form-config-hcv-aws_assume_role_arn",
2040
- label: e(r)("form.config.hcv.fields.aws_assume_role_arn.label"),
2068
+ label: e(i)("form.config.hcv.fields.aws_assume_role_arn.label"),
2041
2069
  readonly: n.isReadonly,
2042
2070
  type: "text"
2043
2071
  }, null, 8, ["modelValue", "label", "readonly"]),
2044
2072
  u(m, {
2045
2073
  modelValue: a[e(t).HCV].aws_role_session_name,
2046
- "onUpdate:modelValue": o[30] || (o[30] = (i) => a[e(t).HCV].aws_role_session_name = i),
2074
+ "onUpdate:modelValue": o[32] || (o[32] = (r) => a[e(t).HCV].aws_role_session_name = r),
2047
2075
  modelModifiers: { trim: !0 },
2048
2076
  autocomplete: "off",
2049
2077
  "data-testid": "vault-form-config-hcv-aws_role_session_name",
2050
- label: e(r)("form.config.hcv.fields.aws_role_session_name.label"),
2078
+ label: e(i)("form.config.hcv.fields.aws_role_session_name.label"),
2051
2079
  readonly: n.isReadonly,
2052
2080
  type: "text"
2053
2081
  }, null, 8, ["modelValue", "label", "readonly"])
2054
- ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_EC2 ? (y(), F("div", fa, [
2082
+ ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AWS_EC2 ? (v(), N("div", _a, [
2055
2083
  u(m, {
2056
2084
  modelValue: a[e(t).HCV].aws_auth_role,
2057
- "onUpdate:modelValue": o[31] || (o[31] = (i) => a[e(t).HCV].aws_auth_role = i),
2085
+ "onUpdate:modelValue": o[33] || (o[33] = (r) => a[e(t).HCV].aws_auth_role = r),
2058
2086
  modelModifiers: { trim: !0 },
2059
2087
  autocomplete: "off",
2060
2088
  "data-testid": "vault-form-config-hcv-aws_auth_role",
2061
- label: e(r)("form.config.hcv.fields.aws_auth_role.label"),
2089
+ label: e(i)("form.config.hcv.fields.aws_auth_role.label"),
2062
2090
  readonly: n.isReadonly,
2063
2091
  required: "",
2064
2092
  type: "text"
2065
2093
  }, null, 8, ["modelValue", "label", "readonly"]),
2066
2094
  u(m, {
2067
2095
  modelValue: a[e(t).HCV].aws_auth_nonce,
2068
- "onUpdate:modelValue": o[32] || (o[32] = (i) => a[e(t).HCV].aws_auth_nonce = i),
2096
+ "onUpdate:modelValue": o[34] || (o[34] = (r) => a[e(t).HCV].aws_auth_nonce = r),
2069
2097
  modelModifiers: { trim: !0 },
2070
2098
  autocomplete: "off",
2071
2099
  "data-testid": "vault-form-config-hcv-aws_auth_nonce",
2072
- label: e(r)("form.config.hcv.fields.aws_auth_nonce.label"),
2100
+ label: e(i)("form.config.hcv.fields.aws_auth_nonce.label"),
2073
2101
  readonly: n.isReadonly,
2074
2102
  required: "",
2075
2103
  "show-password-mask-toggle": "",
@@ -2077,213 +2105,223 @@ const dt = {
2077
2105
  }, null, 8, ["modelValue", "label", "readonly"]),
2078
2106
  u(m, {
2079
2107
  modelValue: a[e(t).HCV].aws_login_path,
2080
- "onUpdate:modelValue": o[33] || (o[33] = (i) => a[e(t).HCV].aws_login_path = i),
2108
+ "onUpdate:modelValue": o[35] || (o[35] = (r) => a[e(t).HCV].aws_login_path = r),
2081
2109
  modelModifiers: { trim: !0 },
2082
2110
  autocomplete: "off",
2083
2111
  "data-testid": "vault-form-config-hcv-aws_login_path",
2084
- label: e(r)("form.config.hcv.fields.aws_login_path.label"),
2112
+ label: e(i)("form.config.hcv.fields.aws_login_path.label"),
2085
2113
  readonly: n.isReadonly,
2086
2114
  type: "text"
2087
2115
  }, null, 8, ["modelValue", "label", "readonly"])
2088
- ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AZURE ? (y(), F("div", pa, [
2116
+ ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).AZURE ? (v(), N("div", va, [
2089
2117
  u(m, {
2090
2118
  modelValue: a[e(t).HCV].azure_auth_role,
2091
- "onUpdate:modelValue": o[34] || (o[34] = (i) => a[e(t).HCV].azure_auth_role = i),
2119
+ "onUpdate:modelValue": o[36] || (o[36] = (r) => a[e(t).HCV].azure_auth_role = r),
2092
2120
  modelModifiers: { trim: !0 },
2093
2121
  autocomplete: "off",
2094
2122
  "data-testid": "vault-form-config-hcv-azure_auth_role",
2095
- label: e(r)("form.config.hcv.fields.azure_auth_role.label"),
2123
+ label: e(i)("form.config.hcv.fields.azure_auth_role.label"),
2096
2124
  readonly: n.isReadonly,
2097
2125
  required: "",
2098
2126
  type: "text"
2099
2127
  }, null, 8, ["modelValue", "label", "readonly"]),
2100
2128
  u(m, {
2101
2129
  modelValue: a[e(t).HCV].azure_login_path,
2102
- "onUpdate:modelValue": o[35] || (o[35] = (i) => a[e(t).HCV].azure_login_path = i),
2130
+ "onUpdate:modelValue": o[37] || (o[37] = (r) => a[e(t).HCV].azure_login_path = r),
2103
2131
  modelModifiers: { trim: !0 },
2104
2132
  autocomplete: "off",
2105
2133
  "data-testid": "vault-form-config-hcv-azure_login_path",
2106
- label: e(r)("form.config.hcv.fields.azure_login_path.label"),
2134
+ label: e(i)("form.config.hcv.fields.azure_login_path.label"),
2107
2135
  readonly: n.isReadonly,
2108
2136
  type: "text"
2109
2137
  }, null, 8, ["modelValue", "label", "readonly"])
2110
- ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_GCE ? (y(), F("div", ma, [
2138
+ ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_GCE ? (v(), N("div", ga, [
2111
2139
  u(m, {
2112
2140
  modelValue: a[e(t).HCV].gcp_auth_role,
2113
- "onUpdate:modelValue": o[36] || (o[36] = (i) => a[e(t).HCV].gcp_auth_role = i),
2141
+ "onUpdate:modelValue": o[38] || (o[38] = (r) => a[e(t).HCV].gcp_auth_role = r),
2114
2142
  modelModifiers: { trim: !0 },
2115
2143
  autocomplete: "off",
2116
2144
  "data-testid": "vault-form-config-hcv-gcp_auth_role",
2117
- label: e(r)("form.config.hcv.fields.gcp_auth_role.label"),
2145
+ label: e(i)("form.config.hcv.fields.gcp_auth_role.label"),
2118
2146
  readonly: n.isReadonly,
2119
2147
  required: "",
2120
2148
  type: "text"
2121
2149
  }, null, 8, ["modelValue", "label", "readonly"]),
2122
2150
  u(m, {
2123
2151
  modelValue: a[e(t).HCV].gcp_login_path,
2124
- "onUpdate:modelValue": o[37] || (o[37] = (i) => a[e(t).HCV].gcp_login_path = i),
2152
+ "onUpdate:modelValue": o[39] || (o[39] = (r) => a[e(t).HCV].gcp_login_path = r),
2125
2153
  modelModifiers: { trim: !0 },
2126
2154
  autocomplete: "off",
2127
2155
  "data-testid": "vault-form-config-hcv-gcp_login_path",
2128
- label: e(r)("form.config.hcv.fields.gcp_login_path.label"),
2156
+ label: e(i)("form.config.hcv.fields.gcp_login_path.label"),
2129
2157
  readonly: n.isReadonly,
2130
2158
  type: "text"
2131
2159
  }, null, 8, ["modelValue", "label", "readonly"])
2132
- ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_IAM ? (y(), F("div", _a, [
2160
+ ])) : l.config.hcvCspAuthMethodsAvailable && a[e(t).HCV].auth_method === e(_).GCP_IAM ? (v(), N("div", ya, [
2133
2161
  u(m, {
2134
2162
  modelValue: a[e(t).HCV].gcp_auth_role,
2135
- "onUpdate:modelValue": o[38] || (o[38] = (i) => a[e(t).HCV].gcp_auth_role = i),
2163
+ "onUpdate:modelValue": o[40] || (o[40] = (r) => a[e(t).HCV].gcp_auth_role = r),
2136
2164
  modelModifiers: { trim: !0 },
2137
2165
  autocomplete: "off",
2138
2166
  "data-testid": "vault-form-config-hcv-gcp_auth_role",
2139
- label: e(r)("form.config.hcv.fields.gcp_auth_role.label"),
2167
+ label: e(i)("form.config.hcv.fields.gcp_auth_role.label"),
2140
2168
  readonly: n.isReadonly,
2141
2169
  required: "",
2142
2170
  type: "text"
2143
2171
  }, null, 8, ["modelValue", "label", "readonly"]),
2144
2172
  u(m, {
2145
2173
  modelValue: a[e(t).HCV].gcp_login_path,
2146
- "onUpdate:modelValue": o[39] || (o[39] = (i) => a[e(t).HCV].gcp_login_path = i),
2174
+ "onUpdate:modelValue": o[41] || (o[41] = (r) => a[e(t).HCV].gcp_login_path = r),
2147
2175
  modelModifiers: { trim: !0 },
2148
2176
  autocomplete: "off",
2149
2177
  "data-testid": "vault-form-config-hcv-gcp_login_path",
2150
- label: e(r)("form.config.hcv.fields.gcp_login_path.label"),
2178
+ label: e(i)("form.config.hcv.fields.gcp_login_path.label"),
2151
2179
  readonly: n.isReadonly,
2152
2180
  type: "text"
2153
2181
  }, null, 8, ["modelValue", "label", "readonly"]),
2154
2182
  u(m, {
2155
2183
  modelValue: a[e(t).HCV].gcp_service_account,
2156
- "onUpdate:modelValue": o[40] || (o[40] = (i) => a[e(t).HCV].gcp_service_account = i),
2184
+ "onUpdate:modelValue": o[42] || (o[42] = (r) => a[e(t).HCV].gcp_service_account = r),
2157
2185
  modelModifiers: { trim: !0 },
2158
2186
  autocomplete: "off",
2159
2187
  "data-testid": "vault-form-config-hcv-gcp_service_account",
2160
- label: e(r)("form.config.hcv.fields.gcp_service_account.label"),
2188
+ label: e(i)("form.config.hcv.fields.gcp_service_account.label"),
2161
2189
  readonly: n.isReadonly,
2162
2190
  required: "",
2163
2191
  type: "text"
2164
2192
  }, null, 8, ["modelValue", "label", "readonly"]),
2165
2193
  u(m, {
2166
2194
  modelValue: a[e(t).HCV].gcp_jwt_exp,
2167
- "onUpdate:modelValue": o[41] || (o[41] = (i) => a[e(t).HCV].gcp_jwt_exp = i),
2195
+ "onUpdate:modelValue": o[43] || (o[43] = (r) => a[e(t).HCV].gcp_jwt_exp = r),
2168
2196
  autocomplete: "off",
2169
2197
  "data-testid": "vault-form-config-hcv-gcp_jwt_exp",
2170
- label: e(r)("form.config.hcv.fields.gcp_jwt_exp.label"),
2198
+ label: e(i)("form.config.hcv.fields.gcp_jwt_exp.label"),
2171
2199
  readonly: n.isReadonly,
2172
2200
  required: "",
2173
2201
  type: "number"
2174
2202
  }, null, 8, ["modelValue", "label", "readonly"])
2175
- ])) : a[e(t).HCV].auth_method === e(_).APP_ROLE ? (y(), F("div", va, [
2203
+ ])) : a[e(t).HCV].auth_method === e(_).APP_ROLE ? (v(), N("div", ba, [
2176
2204
  u(m, {
2177
2205
  modelValue: a[e(t).HCV].approle_auth_path,
2178
- "onUpdate:modelValue": o[42] || (o[42] = (i) => a[e(t).HCV].approle_auth_path = i),
2206
+ "onUpdate:modelValue": o[44] || (o[44] = (r) => a[e(t).HCV].approle_auth_path = r),
2179
2207
  modelModifiers: { trim: !0 },
2180
2208
  autocomplete: "off",
2181
2209
  "data-testid": "vault-form-config-hcv-approle_auth_path",
2182
- label: e(r)("form.config.hcv.fields.approle_auth_path.label"),
2210
+ label: e(i)("form.config.hcv.fields.approle_auth_path.label"),
2183
2211
  readonly: n.isReadonly,
2184
2212
  type: "text"
2185
2213
  }, null, 8, ["modelValue", "label", "readonly"]),
2186
2214
  u(m, {
2187
2215
  modelValue: a[e(t).HCV].approle_role_id,
2188
- "onUpdate:modelValue": o[43] || (o[43] = (i) => a[e(t).HCV].approle_role_id = i),
2216
+ "onUpdate:modelValue": o[45] || (o[45] = (r) => a[e(t).HCV].approle_role_id = r),
2189
2217
  modelModifiers: { trim: !0 },
2190
2218
  autocomplete: "off",
2191
2219
  "data-testid": "vault-form-config-hcv-approle_role_id",
2192
- label: e(r)("form.config.hcv.fields.approle_role_id.label"),
2220
+ label: e(i)("form.config.hcv.fields.approle_role_id.label"),
2193
2221
  readonly: n.isReadonly,
2194
2222
  required: "",
2195
2223
  type: "text"
2196
2224
  }, null, 8, ["modelValue", "label", "readonly"]),
2197
2225
  u(m, {
2198
2226
  modelValue: a[e(t).HCV].approle_secret_id,
2199
- "onUpdate:modelValue": o[44] || (o[44] = (i) => a[e(t).HCV].approle_secret_id = i),
2227
+ "onUpdate:modelValue": o[46] || (o[46] = (r) => a[e(t).HCV].approle_secret_id = r),
2200
2228
  modelModifiers: { trim: !0 },
2201
2229
  autocomplete: "off",
2202
2230
  "data-testid": "vault-form-config-hcv-approle_secret_id",
2203
- label: e(r)("form.config.hcv.fields.approle_secret_id.label"),
2231
+ label: e(i)("form.config.hcv.fields.approle_secret_id.label"),
2204
2232
  readonly: n.isReadonly,
2205
2233
  "show-password-mask-toggle": "",
2206
2234
  type: "password"
2207
2235
  }, null, 8, ["modelValue", "label", "readonly"]),
2208
2236
  u(m, {
2209
2237
  modelValue: a[e(t).HCV].approle_secret_id_file,
2210
- "onUpdate:modelValue": o[45] || (o[45] = (i) => a[e(t).HCV].approle_secret_id_file = i),
2238
+ "onUpdate:modelValue": o[47] || (o[47] = (r) => a[e(t).HCV].approle_secret_id_file = r),
2211
2239
  modelModifiers: { trim: !0 },
2212
2240
  autocomplete: "off",
2213
2241
  "data-testid": "vault-form-config-hcv-approle_secret_id_file",
2214
- label: e(r)("form.config.hcv.fields.approle_secret_id_file.label"),
2242
+ label: e(i)("form.config.hcv.fields.approle_secret_id_file.label"),
2215
2243
  readonly: n.isReadonly,
2216
2244
  type: "text"
2217
2245
  }, null, 8, ["modelValue", "label", "readonly"]),
2218
- u(L, {
2246
+ u(ae, {
2219
2247
  modelValue: a[e(t).HCV].approle_response_wrapping,
2220
- "onUpdate:modelValue": o[46] || (o[46] = (i) => a[e(t).HCV].approle_response_wrapping = i),
2248
+ "onUpdate:modelValue": o[48] || (o[48] = (r) => a[e(t).HCV].approle_response_wrapping = r),
2221
2249
  "data-testid": "vault-form-config-hcv-approle_response_wrapping",
2222
- label: e(r)("form.config.hcv.fields.approle_response_wrapping.label")
2250
+ label: e(i)("form.config.hcv.fields.approle_response_wrapping.label")
2223
2251
  }, null, 8, ["modelValue", "label"])
2224
- ])) : a[e(t).HCV].auth_method === e(_).CERT ? (y(), F("div", ga, [
2252
+ ])) : a[e(t).HCV].auth_method === e(_).CERT ? (v(), N("div", ha, [
2225
2253
  u(m, {
2226
2254
  modelValue: a[e(t).HCV].cert_auth_role_name,
2227
- "onUpdate:modelValue": o[47] || (o[47] = (i) => a[e(t).HCV].cert_auth_role_name = i),
2255
+ "onUpdate:modelValue": o[49] || (o[49] = (r) => a[e(t).HCV].cert_auth_role_name = r),
2228
2256
  modelModifiers: { trim: !0 },
2229
2257
  autocomplete: "off",
2230
2258
  "data-testid": "vault-form-config-hcv-cert_auth_role_name",
2231
- label: e(r)("form.config.hcv.fields.cert_auth_role_name.label"),
2259
+ label: e(i)("form.config.hcv.fields.cert_auth_role_name.label"),
2232
2260
  readonly: n.isReadonly,
2233
2261
  required: ""
2234
2262
  }, null, 8, ["modelValue", "label", "readonly"]),
2235
- u(pe, {
2263
+ u(_e, {
2236
2264
  modelValue: a[e(t).HCV].cert_auth_cert,
2237
- "onUpdate:modelValue": o[48] || (o[48] = (i) => a[e(t).HCV].cert_auth_cert = i),
2265
+ "onUpdate:modelValue": o[50] || (o[50] = (r) => a[e(t).HCV].cert_auth_cert = r),
2238
2266
  modelModifiers: { trim: !0 },
2239
2267
  autocomplete: "off",
2240
2268
  "data-testid": "vault-form-config-hcv-cert_auth_cert",
2241
- label: e(r)("form.config.hcv.fields.cert_auth_cert.label"),
2269
+ label: e(i)("form.config.hcv.fields.cert_auth_cert.label"),
2242
2270
  readonly: n.isReadonly,
2243
2271
  required: ""
2244
2272
  }, null, 8, ["modelValue", "label", "readonly"]),
2245
- u(pe, {
2273
+ u(_e, {
2246
2274
  modelValue: a[e(t).HCV].cert_auth_cert_key,
2247
- "onUpdate:modelValue": o[49] || (o[49] = (i) => a[e(t).HCV].cert_auth_cert_key = i),
2275
+ "onUpdate:modelValue": o[51] || (o[51] = (r) => a[e(t).HCV].cert_auth_cert_key = r),
2248
2276
  modelModifiers: { trim: !0 },
2249
2277
  autocomplete: "off",
2250
2278
  "data-testid": "vault-form-config-hcv-cert_auth_cert_key",
2251
- label: e(r)("form.config.hcv.fields.cert_auth_cert_key.label"),
2279
+ label: e(i)("form.config.hcv.fields.cert_auth_cert_key.label"),
2252
2280
  readonly: n.isReadonly,
2253
2281
  required: ""
2254
2282
  }, null, 8, ["modelValue", "label", "readonly"])
2255
- ])) : a[e(t).HCV].auth_method === e(_).JWT ? (y(), F("div", ya, [
2283
+ ])) : a[e(t).HCV].auth_method === e(_).JWT ? (v(), N("div", wa, [
2256
2284
  u(m, {
2257
2285
  modelValue: a[e(t).HCV].oauth2_client_id,
2258
- "onUpdate:modelValue": o[50] || (o[50] = (i) => a[e(t).HCV].oauth2_client_id = i),
2286
+ "onUpdate:modelValue": o[52] || (o[52] = (r) => a[e(t).HCV].oauth2_client_id = r),
2259
2287
  modelModifiers: { trim: !0 },
2260
2288
  autocomplete: "off",
2261
2289
  "data-testid": "vault-form-config-hcv-oauth2_client_id",
2262
- label: e(r)("form.config.hcv.fields.oauth2_client_id.label"),
2290
+ label: e(i)("form.config.hcv.fields.oauth2_client_id.label"),
2263
2291
  readonly: n.isReadonly,
2264
2292
  required: ""
2265
2293
  }, null, 8, ["modelValue", "label", "readonly"]),
2266
- u(m, {
2294
+ R.value ? (v(), H(e(Te), {
2295
+ key: 1,
2267
2296
  modelValue: a[e(t).HCV].oauth2_client_secret,
2268
- "onUpdate:modelValue": o[51] || (o[51] = (i) => a[e(t).HCV].oauth2_client_secret = i),
2297
+ "onUpdate:modelValue": o[54] || (o[54] = (r) => a[e(t).HCV].oauth2_client_secret = r),
2298
+ "data-testid": "vault-form-config-hcv-oauth2_client_secret",
2299
+ label: e(i)("form.config.hcv.fields.oauth2_client_secret.label"),
2300
+ mode: L.value,
2301
+ readonly: n.isReadonly,
2302
+ required: L.value === "create"
2303
+ }, null, 8, ["modelValue", "label", "mode", "readonly", "required"])) : (v(), H(m, {
2304
+ key: 0,
2305
+ modelValue: a[e(t).HCV].oauth2_client_secret,
2306
+ "onUpdate:modelValue": o[53] || (o[53] = (r) => a[e(t).HCV].oauth2_client_secret = r),
2269
2307
  modelModifiers: { trim: !0 },
2270
2308
  autocomplete: "off",
2271
2309
  "data-testid": "vault-form-config-hcv-oauth2_client_secret",
2272
- label: e(r)("form.config.hcv.fields.oauth2_client_secret.label"),
2310
+ label: e(i)("form.config.hcv.fields.oauth2_client_secret.label"),
2273
2311
  readonly: n.isReadonly,
2274
2312
  required: "",
2275
2313
  "show-password-mask-toggle": "",
2276
2314
  type: "password"
2277
- }, null, 8, ["modelValue", "label", "readonly"]),
2315
+ }, null, 8, ["modelValue", "label", "readonly"])),
2278
2316
  u(m, {
2279
2317
  modelValue: a[e(t).HCV].jwt_role,
2280
- "onUpdate:modelValue": o[52] || (o[52] = (i) => a[e(t).HCV].jwt_role = i),
2318
+ "onUpdate:modelValue": o[55] || (o[55] = (r) => a[e(t).HCV].jwt_role = r),
2281
2319
  modelModifiers: { trim: !0 },
2282
2320
  autocomplete: "off",
2283
2321
  "data-testid": "vault-form-config-hcv-jwt_role",
2284
- label: e(r)("form.config.hcv.fields.jwt_role.label"),
2322
+ label: e(i)("form.config.hcv.fields.jwt_role.label"),
2285
2323
  "label-attributes": {
2286
- info: e(r)("form.config.hcv.fields.jwt_role.tooltip"),
2324
+ info: e(i)("form.config.hcv.fields.jwt_role.tooltip"),
2287
2325
  tooltipAttributes: { maxWidth: "400" }
2288
2326
  },
2289
2327
  readonly: n.isReadonly,
@@ -2291,182 +2329,182 @@ const dt = {
2291
2329
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2292
2330
  u(m, {
2293
2331
  modelValue: a[e(t).HCV].oauth2_token_endpoint,
2294
- "onUpdate:modelValue": o[53] || (o[53] = (i) => a[e(t).HCV].oauth2_token_endpoint = i),
2332
+ "onUpdate:modelValue": o[56] || (o[56] = (r) => a[e(t).HCV].oauth2_token_endpoint = r),
2295
2333
  modelModifiers: { trim: !0 },
2296
2334
  autocomplete: "off",
2297
2335
  "data-testid": "vault-form-config-hcv-oauth2_token_endpoint",
2298
- label: e(r)("form.config.hcv.fields.oauth2_token_endpoint.label"),
2336
+ label: e(i)("form.config.hcv.fields.oauth2_token_endpoint.label"),
2299
2337
  readonly: n.isReadonly,
2300
2338
  required: ""
2301
2339
  }, null, 8, ["modelValue", "label", "readonly"]),
2302
2340
  u(m, {
2303
2341
  modelValue: a[e(t).HCV].oauth2_audiences,
2304
- "onUpdate:modelValue": o[54] || (o[54] = (i) => a[e(t).HCV].oauth2_audiences = i),
2342
+ "onUpdate:modelValue": o[57] || (o[57] = (r) => a[e(t).HCV].oauth2_audiences = r),
2305
2343
  modelModifiers: { trim: !0 },
2306
2344
  autocomplete: "off",
2307
2345
  "data-testid": "vault-form-config-hcv-oauth2_audiences",
2308
- label: e(r)("form.config.hcv.fields.oauth2_audiences.label"),
2346
+ label: e(i)("form.config.hcv.fields.oauth2_audiences.label"),
2309
2347
  "label-attributes": {
2310
- info: e(r)("form.config.hcv.fields.oauth2_audiences.tooltip"),
2348
+ info: e(i)("form.config.hcv.fields.oauth2_audiences.tooltip"),
2311
2349
  tooltipAttributes: { maxWidth: "400" }
2312
2350
  },
2313
2351
  readonly: n.isReadonly
2314
2352
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
2315
- ])) : O("", !0),
2316
- l.config.base64FieldAvailable ? (y(), q(L, {
2353
+ ])) : j("", !0),
2354
+ l.config.base64FieldAvailable ? (v(), H(ae, {
2317
2355
  key: 11,
2318
2356
  modelValue: a[e(t).HCV].base64_decode,
2319
- "onUpdate:modelValue": o[55] || (o[55] = (i) => a[e(t).HCV].base64_decode = i),
2357
+ "onUpdate:modelValue": o[58] || (o[58] = (r) => a[e(t).HCV].base64_decode = r),
2320
2358
  "data-testid": "vault-form-config-hcv-base64_decode",
2321
- label: e(r)("form.config.commonFields.base64_decode.label"),
2359
+ label: e(i)("form.config.commonFields.base64_decode.label"),
2322
2360
  "label-attributes": {
2323
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
2361
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
2324
2362
  tooltipAttributes: { maxWidth: "400" }
2325
2363
  },
2326
2364
  readonly: n.isReadonly
2327
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
2328
- ])) : O("", !0),
2329
- f.value === e(t).AZURE ? (y(), F("div", {
2365
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
2366
+ ])) : j("", !0),
2367
+ f.value === e(t).AZURE ? (v(), N("div", {
2330
2368
  key: `${e(t).AZURE}-vault-config-fields`,
2331
2369
  class: "vault-form-config-fields-container"
2332
2370
  }, [
2333
2371
  u(m, {
2334
2372
  modelValue: a[e(t).AZURE].location,
2335
- "onUpdate:modelValue": o[56] || (o[56] = (i) => a[e(t).AZURE].location = i),
2373
+ "onUpdate:modelValue": o[59] || (o[59] = (r) => a[e(t).AZURE].location = r),
2336
2374
  modelModifiers: { trim: !0 },
2337
2375
  autocomplete: "off",
2338
2376
  "data-testid": "vault-form-config-azure-location",
2339
- label: e(r)("form.config.azure.fields.location.label"),
2377
+ label: e(i)("form.config.azure.fields.location.label"),
2340
2378
  readonly: n.isReadonly,
2341
2379
  required: "",
2342
2380
  type: "text"
2343
2381
  }, null, 8, ["modelValue", "label", "readonly"]),
2344
2382
  u(m, {
2345
2383
  modelValue: a[e(t).AZURE].vault_uri,
2346
- "onUpdate:modelValue": o[57] || (o[57] = (i) => a[e(t).AZURE].vault_uri = i),
2384
+ "onUpdate:modelValue": o[60] || (o[60] = (r) => a[e(t).AZURE].vault_uri = r),
2347
2385
  modelModifiers: { trim: !0 },
2348
2386
  autocomplete: "off",
2349
2387
  "data-testid": "vault-form-config-azure-uri",
2350
- label: e(r)("form.config.azure.fields.vault_uri.label"),
2388
+ label: e(i)("form.config.azure.fields.vault_uri.label"),
2351
2389
  readonly: n.isReadonly,
2352
2390
  required: "",
2353
2391
  type: "text"
2354
2392
  }, null, 8, ["modelValue", "label", "readonly"]),
2355
2393
  u(m, {
2356
2394
  modelValue: a[e(t).AZURE].credentials_prefix,
2357
- "onUpdate:modelValue": o[58] || (o[58] = (i) => a[e(t).AZURE].credentials_prefix = i),
2395
+ "onUpdate:modelValue": o[61] || (o[61] = (r) => a[e(t).AZURE].credentials_prefix = r),
2358
2396
  modelModifiers: { trim: !0 },
2359
2397
  autocomplete: "off",
2360
2398
  "data-testid": "vault-form-config-azure-prefix",
2361
- label: e(r)("form.config.azure.fields.credential_prefix.label"),
2399
+ label: e(i)("form.config.azure.fields.credential_prefix.label"),
2362
2400
  readonly: n.isReadonly,
2363
2401
  required: "",
2364
2402
  type: "text"
2365
2403
  }, null, 8, ["modelValue", "label", "readonly"]),
2366
- u(A, {
2404
+ u(Z, {
2367
2405
  modelValue: a[e(t).AZURE].type,
2368
- "onUpdate:modelValue": o[59] || (o[59] = (i) => a[e(t).AZURE].type = i),
2406
+ "onUpdate:modelValue": o[62] || (o[62] = (r) => a[e(t).AZURE].type = r),
2369
2407
  "data-testid": "vault-form-config-azure-type",
2370
- items: X,
2371
- label: e(r)("form.config.azure.fields.type.label"),
2372
- placeholder: e(r)("form.config.azure.fields.type.placeholder"),
2408
+ items: Y,
2409
+ label: e(i)("form.config.azure.fields.type.label"),
2410
+ placeholder: e(i)("form.config.azure.fields.type.placeholder"),
2373
2411
  readonly: n.isReadonly,
2374
2412
  required: "",
2375
2413
  width: "100%"
2376
2414
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2377
2415
  u(m, {
2378
2416
  modelValue: a[e(t).AZURE].client_id,
2379
- "onUpdate:modelValue": o[60] || (o[60] = (i) => a[e(t).AZURE].client_id = i),
2417
+ "onUpdate:modelValue": o[63] || (o[63] = (r) => a[e(t).AZURE].client_id = r),
2380
2418
  modelModifiers: { trim: !0 },
2381
2419
  autocomplete: "off",
2382
2420
  "data-testid": "vault-form-config-azure-client-id",
2383
- label: e(r)("form.config.azure.fields.client_id.label"),
2421
+ label: e(i)("form.config.azure.fields.client_id.label"),
2384
2422
  readonly: n.isReadonly,
2385
2423
  type: "text"
2386
2424
  }, null, 8, ["modelValue", "label", "readonly"]),
2387
2425
  u(m, {
2388
2426
  modelValue: a[e(t).AZURE].tenant_id,
2389
- "onUpdate:modelValue": o[61] || (o[61] = (i) => a[e(t).AZURE].tenant_id = i),
2427
+ "onUpdate:modelValue": o[64] || (o[64] = (r) => a[e(t).AZURE].tenant_id = r),
2390
2428
  modelModifiers: { trim: !0 },
2391
2429
  autocomplete: "off",
2392
2430
  "data-testid": "vault-form-config-azure-tenant-id",
2393
- label: e(r)("form.config.azure.fields.tenant_id.label"),
2431
+ label: e(i)("form.config.azure.fields.tenant_id.label"),
2394
2432
  readonly: n.isReadonly,
2395
2433
  type: "text"
2396
2434
  }, null, 8, ["modelValue", "label", "readonly"]),
2397
- l.config.base64FieldAvailable ? (y(), q(L, {
2435
+ l.config.base64FieldAvailable ? (v(), H(ae, {
2398
2436
  key: 0,
2399
2437
  modelValue: a[e(t).AZURE].base64_decode,
2400
- "onUpdate:modelValue": o[62] || (o[62] = (i) => a[e(t).AZURE].base64_decode = i),
2438
+ "onUpdate:modelValue": o[65] || (o[65] = (r) => a[e(t).AZURE].base64_decode = r),
2401
2439
  "data-testid": "vault-form-config-azure-base64_decode",
2402
- label: e(r)("form.config.commonFields.base64_decode.label"),
2440
+ label: e(i)("form.config.commonFields.base64_decode.label"),
2403
2441
  "label-attributes": {
2404
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
2442
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
2405
2443
  tooltipAttributes: { maxWidth: "400" }
2406
2444
  },
2407
2445
  readonly: n.isReadonly
2408
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
2409
- ])) : O("", !0),
2410
- f.value === e(t).AZURE_CERTS ? (y(), F("div", {
2446
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
2447
+ ])) : j("", !0),
2448
+ f.value === e(t).AZURE_CERTS ? (v(), N("div", {
2411
2449
  key: `${e(t).AZURE_CERTS}-vault-config-fields`,
2412
2450
  class: "vault-form-config-fields-container"
2413
2451
  }, [
2414
2452
  u(m, {
2415
2453
  modelValue: a[e(t).AZURE_CERTS].vault_uri,
2416
- "onUpdate:modelValue": o[63] || (o[63] = (i) => a[e(t).AZURE_CERTS].vault_uri = i),
2454
+ "onUpdate:modelValue": o[66] || (o[66] = (r) => a[e(t).AZURE_CERTS].vault_uri = r),
2417
2455
  modelModifiers: { trim: !0 },
2418
2456
  autocomplete: "off",
2419
2457
  "data-testid": "vault-form-config-azure-certs-vault-uri",
2420
- label: e(r)("form.config.azure-certs.fields.vault_uri.label"),
2458
+ label: e(i)("form.config.azure-certs.fields.vault_uri.label"),
2421
2459
  readonly: n.isReadonly,
2422
2460
  required: "",
2423
2461
  type: "text"
2424
2462
  }, null, 8, ["modelValue", "label", "readonly"]),
2425
2463
  u(m, {
2426
2464
  modelValue: a[e(t).AZURE_CERTS].credentials_prefix,
2427
- "onUpdate:modelValue": o[64] || (o[64] = (i) => a[e(t).AZURE_CERTS].credentials_prefix = i),
2465
+ "onUpdate:modelValue": o[67] || (o[67] = (r) => a[e(t).AZURE_CERTS].credentials_prefix = r),
2428
2466
  modelModifiers: { trim: !0 },
2429
2467
  autocomplete: "off",
2430
2468
  "data-testid": "vault-form-config-azure-certs-credentials-prefix",
2431
- label: e(r)("form.config.azure-certs.fields.credential_prefix.label"),
2469
+ label: e(i)("form.config.azure-certs.fields.credential_prefix.label"),
2432
2470
  readonly: n.isReadonly,
2433
2471
  required: "",
2434
2472
  type: "text"
2435
2473
  }, null, 8, ["modelValue", "label", "readonly"]),
2436
2474
  u(m, {
2437
2475
  modelValue: a[e(t).AZURE_CERTS].client_id,
2438
- "onUpdate:modelValue": o[65] || (o[65] = (i) => a[e(t).AZURE_CERTS].client_id = i),
2476
+ "onUpdate:modelValue": o[68] || (o[68] = (r) => a[e(t).AZURE_CERTS].client_id = r),
2439
2477
  modelModifiers: { trim: !0 },
2440
2478
  autocomplete: "off",
2441
2479
  "data-testid": "vault-form-config-azure-certs-client-id",
2442
- label: e(r)("form.config.azure-certs.fields.client_id.label"),
2480
+ label: e(i)("form.config.azure-certs.fields.client_id.label"),
2443
2481
  readonly: n.isReadonly,
2444
2482
  type: "text"
2445
2483
  }, null, 8, ["modelValue", "label", "readonly"]),
2446
2484
  u(m, {
2447
2485
  modelValue: a[e(t).AZURE_CERTS].tenant_id,
2448
- "onUpdate:modelValue": o[66] || (o[66] = (i) => a[e(t).AZURE_CERTS].tenant_id = i),
2486
+ "onUpdate:modelValue": o[69] || (o[69] = (r) => a[e(t).AZURE_CERTS].tenant_id = r),
2449
2487
  modelModifiers: { trim: !0 },
2450
2488
  autocomplete: "off",
2451
2489
  "data-testid": "vault-form-config-azure-certs-tenant-id",
2452
- label: e(r)("form.config.azure-certs.fields.tenant_id.label"),
2490
+ label: e(i)("form.config.azure-certs.fields.tenant_id.label"),
2453
2491
  readonly: n.isReadonly,
2454
2492
  type: "text"
2455
2493
  }, null, 8, ["modelValue", "label", "readonly"])
2456
- ])) : O("", !0),
2457
- f.value === e(t).CONJUR ? (y(), F("div", {
2494
+ ])) : j("", !0),
2495
+ f.value === e(t).CONJUR ? (v(), N("div", {
2458
2496
  key: `${e(t).CONJUR}-vault-config-fields`,
2459
2497
  class: "vault-form-config-fields-container"
2460
2498
  }, [
2461
2499
  u(m, {
2462
2500
  modelValue: a[e(t).CONJUR].endpoint_url,
2463
- "onUpdate:modelValue": o[67] || (o[67] = (i) => a[e(t).CONJUR].endpoint_url = i),
2501
+ "onUpdate:modelValue": o[70] || (o[70] = (r) => a[e(t).CONJUR].endpoint_url = r),
2464
2502
  modelModifiers: { trim: !0 },
2465
2503
  autocomplete: "off",
2466
2504
  "data-testid": "vault-form-config-conjur-endpoint_url",
2467
- label: e(r)("form.config.conjur.fields.endpoint_url.label"),
2505
+ label: e(i)("form.config.conjur.fields.endpoint_url.label"),
2468
2506
  "label-attributes": {
2469
- info: e(r)("form.config.conjur.fields.endpoint_url.tooltip"),
2507
+ info: e(i)("form.config.conjur.fields.endpoint_url.tooltip"),
2470
2508
  tooltipAttributes: { maxWidth: "400" }
2471
2509
  },
2472
2510
  readonly: n.isReadonly,
@@ -2475,13 +2513,13 @@ const dt = {
2475
2513
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2476
2514
  u(m, {
2477
2515
  modelValue: a[e(t).CONJUR].login,
2478
- "onUpdate:modelValue": o[68] || (o[68] = (i) => a[e(t).CONJUR].login = i),
2516
+ "onUpdate:modelValue": o[71] || (o[71] = (r) => a[e(t).CONJUR].login = r),
2479
2517
  modelModifiers: { trim: !0 },
2480
2518
  autocomplete: "off",
2481
2519
  "data-testid": "vault-form-config-conjur-login",
2482
- label: e(r)("form.config.conjur.fields.login.label"),
2520
+ label: e(i)("form.config.conjur.fields.login.label"),
2483
2521
  "label-attributes": {
2484
- info: e(r)("form.config.conjur.fields.login.tooltip"),
2522
+ info: e(i)("form.config.conjur.fields.login.tooltip"),
2485
2523
  tooltipAttributes: { maxWidth: "400" }
2486
2524
  },
2487
2525
  readonly: n.isReadonly,
@@ -2490,126 +2528,140 @@ const dt = {
2490
2528
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2491
2529
  u(m, {
2492
2530
  modelValue: a[e(t).CONJUR].account,
2493
- "onUpdate:modelValue": o[69] || (o[69] = (i) => a[e(t).CONJUR].account = i),
2531
+ "onUpdate:modelValue": o[72] || (o[72] = (r) => a[e(t).CONJUR].account = r),
2494
2532
  modelModifiers: { trim: !0 },
2495
2533
  autocomplete: "off",
2496
2534
  "data-testid": "vault-form-config-conjur-account",
2497
- label: e(r)("form.config.conjur.fields.account.label"),
2535
+ label: e(i)("form.config.conjur.fields.account.label"),
2498
2536
  "label-attributes": {
2499
- info: e(r)("form.config.conjur.fields.account.tooltip"),
2537
+ info: e(i)("form.config.conjur.fields.account.tooltip"),
2500
2538
  tooltipAttributes: { maxWidth: "400" }
2501
2539
  },
2502
2540
  readonly: n.isReadonly,
2503
2541
  required: "",
2504
2542
  type: "text"
2505
2543
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2506
- u(m, {
2544
+ R.value ? (v(), H(e(Te), {
2545
+ key: 1,
2507
2546
  modelValue: a[e(t).CONJUR].api_key,
2508
- "onUpdate:modelValue": o[70] || (o[70] = (i) => a[e(t).CONJUR].api_key = i),
2547
+ "onUpdate:modelValue": o[74] || (o[74] = (r) => a[e(t).CONJUR].api_key = r),
2548
+ "data-testid": "vault-form-config-conjur-api_key",
2549
+ label: e(i)("form.config.conjur.fields.api_key.label"),
2550
+ "label-attributes": {
2551
+ info: e(i)("form.config.conjur.fields.api_key.tooltip"),
2552
+ tooltipAttributes: { maxWidth: "400" }
2553
+ },
2554
+ mode: L.value,
2555
+ readonly: n.isReadonly,
2556
+ required: L.value === "create"
2557
+ }, null, 8, ["modelValue", "label", "label-attributes", "mode", "readonly", "required"])) : (v(), H(m, {
2558
+ key: 0,
2559
+ modelValue: a[e(t).CONJUR].api_key,
2560
+ "onUpdate:modelValue": o[73] || (o[73] = (r) => a[e(t).CONJUR].api_key = r),
2509
2561
  modelModifiers: { trim: !0 },
2510
2562
  autocomplete: "off",
2511
2563
  "data-testid": "vault-form-config-conjur-api_key",
2512
- label: e(r)("form.config.conjur.fields.api_key.label"),
2564
+ label: e(i)("form.config.conjur.fields.api_key.label"),
2513
2565
  "label-attributes": {
2514
- info: e(r)("form.config.conjur.fields.api_key.tooltip"),
2566
+ info: e(i)("form.config.conjur.fields.api_key.tooltip"),
2515
2567
  tooltipAttributes: { maxWidth: "400" }
2516
2568
  },
2517
2569
  readonly: n.isReadonly,
2518
2570
  required: "",
2519
2571
  "show-password-mask-toggle": "",
2520
2572
  type: "password"
2521
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2522
- l.config.base64FieldAvailable ? (y(), q(L, {
2523
- key: 0,
2573
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])),
2574
+ l.config.base64FieldAvailable ? (v(), H(ae, {
2575
+ key: 2,
2524
2576
  modelValue: a[e(t).CONJUR].base64_decode,
2525
- "onUpdate:modelValue": o[71] || (o[71] = (i) => a[e(t).CONJUR].base64_decode = i),
2577
+ "onUpdate:modelValue": o[75] || (o[75] = (r) => a[e(t).CONJUR].base64_decode = r),
2526
2578
  "data-testid": "vault-form-config-env-base64_decode",
2527
- label: e(r)("form.config.commonFields.base64_decode.label"),
2579
+ label: e(i)("form.config.commonFields.base64_decode.label"),
2528
2580
  "label-attributes": {
2529
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
2581
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
2530
2582
  tooltipAttributes: { maxWidth: "400" }
2531
2583
  },
2532
2584
  readonly: n.isReadonly
2533
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
2534
- ])) : O("", !0),
2535
- f.value === e(t).FS ? (y(), F("div", {
2585
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
2586
+ ])) : j("", !0),
2587
+ f.value === e(t).FS ? (v(), N("div", {
2536
2588
  key: `${e(t).FS}-vault-config-fields`,
2537
2589
  class: "vault-form-config-fields-container"
2538
2590
  }, [
2539
2591
  u(m, {
2540
2592
  modelValue: a[e(t).FS].prefix,
2541
- "onUpdate:modelValue": o[72] || (o[72] = (i) => a[e(t).FS].prefix = i),
2593
+ "onUpdate:modelValue": o[76] || (o[76] = (r) => a[e(t).FS].prefix = r),
2542
2594
  modelModifiers: { trim: !0 },
2543
2595
  autocomplete: "off",
2544
2596
  "data-testid": "vault-form-config-fs-prefix",
2545
- label: e(r)("form.config.fs.fields.prefix.label"),
2597
+ label: e(i)("form.config.fs.fields.prefix.label"),
2546
2598
  "label-attributes": {
2547
- info: e(r)("form.config.fs.fields.prefix.tooltip"),
2599
+ info: e(i)("form.config.fs.fields.prefix.tooltip"),
2548
2600
  tooltipAttributes: { maxWidth: "400" }
2549
2601
  },
2550
2602
  readonly: n.isReadonly,
2551
2603
  required: "",
2552
2604
  type: "text"
2553
2605
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
2554
- l.config.base64FieldAvailable ? (y(), q(L, {
2606
+ l.config.base64FieldAvailable ? (v(), H(ae, {
2555
2607
  key: 0,
2556
2608
  modelValue: a[e(t).FS].base64_decode,
2557
- "onUpdate:modelValue": o[73] || (o[73] = (i) => a[e(t).FS].base64_decode = i),
2609
+ "onUpdate:modelValue": o[77] || (o[77] = (r) => a[e(t).FS].base64_decode = r),
2558
2610
  "data-testid": "vault-form-config-fs-base64_decode",
2559
- label: e(r)("form.config.commonFields.base64_decode.label"),
2611
+ label: e(i)("form.config.commonFields.base64_decode.label"),
2560
2612
  "label-attributes": {
2561
- info: e(r)("form.config.commonFields.base64_decode.tooltip"),
2613
+ info: e(i)("form.config.commonFields.base64_decode.tooltip"),
2562
2614
  tooltipAttributes: { maxWidth: "400" }
2563
2615
  },
2564
2616
  readonly: n.isReadonly
2565
- }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : O("", !0)
2566
- ])) : O("", !0),
2567
- l.config.ttl ? (y(), F("div", ha, [
2568
- re.value ? (y(), q(he, {
2617
+ }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : j("", !0)
2618
+ ])) : j("", !0),
2619
+ l.config.ttl ? (v(), N("div", Va, [
2620
+ ne.value ? (v(), H(Ve, {
2569
2621
  key: 0,
2570
2622
  class: "advanced-fields-collapse",
2571
2623
  "data-testid": "advanced-fields-collapse",
2572
2624
  "trigger-alignment": "leading",
2573
- "trigger-label": e(r)("form.config.advancedFields.title")
2625
+ "trigger-label": e(i)("form.config.advancedFields.title")
2574
2626
  }, {
2575
- default: g(() => [
2576
- T("div", ba, [
2577
- T("div", wa, [
2627
+ default: y(() => [
2628
+ M("div", ka, [
2629
+ M("div", Ca, [
2578
2630
  u(m, {
2579
2631
  modelValue: a[f.value].ttl,
2580
- "onUpdate:modelValue": o[74] || (o[74] = (i) => a[f.value].ttl = i),
2632
+ "onUpdate:modelValue": o[78] || (o[78] = (r) => a[f.value].ttl = r),
2581
2633
  "data-testid": "vault-ttl-input",
2582
- label: e(r)("form.config.advancedFields.ttl"),
2634
+ label: e(i)("form.config.advancedFields.ttl"),
2583
2635
  "label-attributes": {
2584
- info: e(r)("form.config.advancedFields.ttlTooltip"),
2636
+ info: e(i)("form.config.advancedFields.ttlTooltip"),
2585
2637
  tooltipAttributes: { maxWidth: "400" }
2586
2638
  },
2587
2639
  type: "number"
2588
2640
  }, null, 8, ["modelValue", "label", "label-attributes"])
2589
2641
  ]),
2590
- T("div", Va, [
2642
+ M("div", Aa, [
2591
2643
  u(m, {
2592
2644
  modelValue: a[f.value].neg_ttl,
2593
- "onUpdate:modelValue": o[75] || (o[75] = (i) => a[f.value].neg_ttl = i),
2645
+ "onUpdate:modelValue": o[79] || (o[79] = (r) => a[f.value].neg_ttl = r),
2594
2646
  "data-testid": "vault-neg-ttl-input",
2595
- label: e(r)("form.config.advancedFields.negTtl"),
2647
+ label: e(i)("form.config.advancedFields.negTtl"),
2596
2648
  "label-attributes": {
2597
- info: e(r)("form.config.advancedFields.negTtlTooltip"),
2649
+ info: e(i)("form.config.advancedFields.negTtlTooltip"),
2598
2650
  tooltipAttributes: { maxWidth: "400" }
2599
2651
  },
2600
2652
  type: "number"
2601
2653
  }, null, 8, ["modelValue", "label", "label-attributes"])
2602
2654
  ])
2603
2655
  ]),
2604
- T("div", Ca, [
2605
- T("div", ka, [
2656
+ M("div", Sa, [
2657
+ M("div", Ra, [
2606
2658
  u(m, {
2607
2659
  modelValue: a[f.value].resurrect_ttl,
2608
- "onUpdate:modelValue": o[76] || (o[76] = (i) => a[f.value].resurrect_ttl = i),
2660
+ "onUpdate:modelValue": o[80] || (o[80] = (r) => a[f.value].resurrect_ttl = r),
2609
2661
  "data-testid": "vault-resurrect-ttl-input",
2610
- label: e(r)("form.config.advancedFields.resurrectTtl"),
2662
+ label: e(i)("form.config.advancedFields.resurrectTtl"),
2611
2663
  "label-attributes": {
2612
- info: e(r)("form.config.advancedFields.resurrectTtlTooltip"),
2664
+ info: e(i)("form.config.advancedFields.resurrectTtlTooltip"),
2613
2665
  tooltipAttributes: { maxWidth: "400" }
2614
2666
  },
2615
2667
  type: "number"
@@ -2618,57 +2670,57 @@ const dt = {
2618
2670
  ])
2619
2671
  ]),
2620
2672
  _: 1
2621
- }, 8, ["trigger-label"])) : O("", !0)
2622
- ])) : O("", !0)
2673
+ }, 8, ["trigger-label"])) : j("", !0)
2674
+ ])) : j("", !0)
2623
2675
  ]),
2624
2676
  _: 1
2625
2677
  })
2626
2678
  ]),
2627
2679
  _: 1
2628
2680
  }, 8, ["description", "title"]),
2629
- u(e(Pe), {
2630
- description: e(r)("form.sections.general.description"),
2631
- title: e(r)("form.sections.general.title")
2681
+ u(e(Oe), {
2682
+ description: e(i)("form.sections.general.description"),
2683
+ title: e(i)("form.sections.general.title")
2632
2684
  }, {
2633
- default: g(() => [
2685
+ default: y(() => [
2634
2686
  u(m, {
2635
2687
  modelValue: n.fields.prefix,
2636
- "onUpdate:modelValue": o[77] || (o[77] = (i) => n.fields.prefix = i),
2688
+ "onUpdate:modelValue": o[81] || (o[81] = (r) => n.fields.prefix = r),
2637
2689
  modelModifiers: { trim: !0 },
2638
2690
  autocomplete: "off",
2639
2691
  "data-testid": "vault-form-prefix",
2640
- help: e(r)(x.value ? "form.fields.prefix_ai_gateway.help" : "form.fields.prefix.help"),
2641
- label: e(r)(x.value ? "form.fields.prefix_ai_gateway.label" : "form.fields.prefix.label"),
2692
+ help: e(i)(R.value ? "form.fields.prefix_ai_gateway.help" : "form.fields.prefix.help"),
2693
+ label: e(i)(R.value ? "form.fields.prefix_ai_gateway.label" : "form.fields.prefix.label"),
2642
2694
  "label-attributes": {
2643
- info: e(r)(x.value ? "form.fields.prefix_ai_gateway.tooltip" : "form.fields.prefix.tooltip"),
2695
+ info: e(i)(R.value ? "form.fields.prefix_ai_gateway.tooltip" : "form.fields.prefix.tooltip"),
2644
2696
  tooltipAttributes: { maxWidth: "400" }
2645
2697
  },
2646
- placeholder: e(r)(x.value ? "form.fields.prefix_ai_gateway.placeholder" : "form.fields.prefix.placeholder"),
2698
+ placeholder: e(i)(R.value ? "form.fields.prefix_ai_gateway.placeholder" : "form.fields.prefix.placeholder"),
2647
2699
  readonly: n.isReadonly,
2648
2700
  required: "",
2649
2701
  type: "text"
2650
2702
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
2651
- u(pe, {
2703
+ u(_e, {
2652
2704
  modelValue: n.fields.description,
2653
- "onUpdate:modelValue": o[78] || (o[78] = (i) => n.fields.description = i),
2705
+ "onUpdate:modelValue": o[82] || (o[82] = (r) => n.fields.description = r),
2654
2706
  modelModifiers: { trim: !0 },
2655
2707
  "character-limit": 1e3,
2656
2708
  class: "vault-form-textarea",
2657
2709
  "data-testid": "vault-form-description",
2658
- label: e(r)("form.fields.description.label"),
2659
- placeholder: e(r)("form.fields.description.placeholder"),
2710
+ label: e(i)("form.fields.description.label"),
2711
+ placeholder: e(i)("form.fields.description.placeholder"),
2660
2712
  readonly: n.isReadonly
2661
2713
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2662
- x.value ? O("", !0) : (y(), q(m, {
2714
+ R.value ? j("", !0) : (v(), H(m, {
2663
2715
  key: 0,
2664
2716
  modelValue: n.fields.tags,
2665
- "onUpdate:modelValue": o[79] || (o[79] = (i) => n.fields.tags = i),
2717
+ "onUpdate:modelValue": o[83] || (o[83] = (r) => n.fields.tags = r),
2666
2718
  modelModifiers: { trim: !0 },
2667
2719
  autocomplete: "off",
2668
2720
  "data-testid": "vault-form-tags",
2669
- help: e(r)("form.fields.tags.help"),
2670
- label: e(r)("form.fields.tags.label"),
2671
- placeholder: e(r)("form.fields.tags.placeholder"),
2721
+ help: e(i)("form.fields.tags.help"),
2722
+ label: e(i)("form.fields.tags.label"),
2723
+ placeholder: e(i)("form.fields.tags.placeholder"),
2672
2724
  readonly: n.isReadonly,
2673
2725
  type: "text"
2674
2726
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"]))
@@ -2677,11 +2729,11 @@ const dt = {
2677
2729
  }, 8, ["description", "title"])
2678
2730
  ]),
2679
2731
  _: 1
2680
- }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"])
2732
+ }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly", "tabs-to-hide"])
2681
2733
  ]);
2682
2734
  };
2683
2735
  }
2684
- }), al = /* @__PURE__ */ ge(Aa, [["__scopeId", "data-v-f7a2ece1"]]), Sa = { class: "kong-ui-vault-entity-config-card" }, Qe = "************", ll = /* @__PURE__ */ _e({
2736
+ }), il = /* @__PURE__ */ he(Ea, [["__scopeId", "data-v-f76638fa"]]), xa = { class: "kong-ui-vault-entity-config-card" }, et = "************", rl = /* @__PURE__ */ ye({
2685
2737
  __name: "VaultConfigCard",
2686
2738
  props: {
2687
2739
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2708,11 +2760,11 @@ const dt = {
2708
2760
  },
2709
2761
  emits: ["loading", "fetch:error", "fetch:success"],
2710
2762
  setup(l) {
2711
- const h = l, s = ["token", "approle_secret_id", "api_key", "aws_access_key_id", "aws_secret_access_key", "aws_auth_nonce", "cert_auth_cert_key", "oauth2_client_secret"], d = k(() => h.config.apiType === "aiGateway"), p = k(() => {
2763
+ const b = l, s = ["token", "approle_secret_id", "api_key", "aws_access_key_id", "aws_secret_access_key", "aws_auth_nonce", "cert_auth_cert_key", "oauth2_client_secret"], d = k(() => b.config.apiType === "aiGateway"), p = k(() => {
2712
2764
  var n, U, f;
2713
- const v = d.value ? (n = ue.form.aiGateway) == null ? void 0 : n.edit : (f = ue.form[(U = h.config) == null ? void 0 : U.app]) == null ? void 0 : f.edit;
2714
- return v == null ? void 0 : v.replace(/{aiGatewayId}/gi, h.config.aiGatewayId || "");
2715
- }), r = (v) => d.value ? Ie(v) : v, { i18n: { t: K } } = Ce.useI18n(), { convertKeyToTitle: M } = Rt(), { getPropValue: w } = xt(), x = k(() => ({
2765
+ const g = d.value ? (n = fe.form.aiGateway) == null ? void 0 : n.edit : (f = fe.form[(U = b.config) == null ? void 0 : U.app]) == null ? void 0 : f.edit;
2766
+ return g == null ? void 0 : g.replace(/{aiGatewayId}/gi, b.config.aiGatewayId || "");
2767
+ }), i = (g) => d.value ? He(g) : g, { i18n: { t: K } } = Ae.useI18n(), { convertKeyToTitle: G } = It(), { getPropValue: w } = Ut(), R = k(() => ({
2716
2768
  id: {},
2717
2769
  name: {
2718
2770
  label: K(d.value ? "labels.vault_type_ai_gateway" : "labels.vault_type")
@@ -2721,12 +2773,12 @@ const dt = {
2721
2773
  created_at: {},
2722
2774
  prefix: {
2723
2775
  order: 5,
2724
- section: Be.Basic,
2776
+ section: Qe.Basic,
2725
2777
  label: d.value ? K("labels.vault_name_ai_gateway") : void 0
2726
2778
  },
2727
2779
  description: {
2728
2780
  order: 6,
2729
- section: Be.Basic
2781
+ section: Qe.Basic
2730
2782
  },
2731
2783
  // AI Gateway uses labels (not exposed this version) instead of tags.
2732
2784
  ...d.value ? {} : {
@@ -2736,71 +2788,72 @@ const dt = {
2736
2788
  },
2737
2789
  config: {
2738
2790
  order: 8,
2739
- type: Et.Json
2791
+ type: Ht.Json
2740
2792
  }
2741
- })), I = (v) => {
2742
- const n = { ...v.config };
2793
+ })), I = (g) => {
2794
+ const n = { ...g.config };
2743
2795
  s.forEach((f) => {
2744
- f in n && (n[f] = Qe);
2796
+ f in n && (n[f] = et);
2745
2797
  });
2746
- const U = { ...v, config: n };
2798
+ const U = { ...g, config: n };
2747
2799
  if (d.value) {
2748
2800
  const f = { ...U, type: U.name, name: U.prefix };
2749
2801
  return delete f.prefix, f;
2750
2802
  }
2751
2803
  return U;
2752
- }, E = (v) => {
2804
+ }, x = (g) => {
2753
2805
  var n, U;
2754
- return ((U = (n = x.value) == null ? void 0 : n[v]) == null ? void 0 : U.label) || M(v);
2806
+ return ((U = (n = R.value) == null ? void 0 : n[g]) == null ? void 0 : U.label) || G(g);
2755
2807
  };
2756
- return (v, n) => (y(), F("div", Sa, [
2757
- u(e(It), {
2808
+ return (g, n) => (v(), N("div", xa, [
2809
+ u(e(Tt), {
2758
2810
  "code-block-record-formatter": I,
2759
2811
  config: l.config,
2760
2812
  "config-card-doc": l.configCardDoc,
2761
- "config-schema": x.value,
2762
- "entity-type": e(Ne).Vault,
2813
+ "config-schema": R.value,
2814
+ "entity-type": e(qe).Vault,
2763
2815
  "fetch-url": p.value,
2816
+ "formats-to-hide": l.config.apiType === "aiGateway" ? ["terraform", "deck"] : [],
2764
2817
  "hide-title": l.hideTitle,
2765
- "record-resolver": r,
2766
- "onFetch:error": n[0] || (n[0] = (U) => v.$emit("fetch:error", U)),
2767
- "onFetch:success": n[1] || (n[1] = (U) => v.$emit("fetch:success", U)),
2768
- onLoading: n[2] || (n[2] = (U) => v.$emit("loading", U))
2818
+ "record-resolver": i,
2819
+ "onFetch:error": n[0] || (n[0] = (U) => g.$emit("fetch:error", U)),
2820
+ "onFetch:success": n[1] || (n[1] = (U) => g.$emit("fetch:success", U)),
2821
+ onLoading: n[2] || (n[2] = (U) => g.$emit("loading", U))
2769
2822
  }, {
2770
- config: g(({ rowValue: U }) => [
2771
- (y(!0), F(Ye, null, ft(Object.keys(U).sort(), (f) => (y(), q(e(Ut), {
2823
+ config: y(({ rowValue: U }) => [
2824
+ (v(!0), N(tt, null, _t(Object.keys(U).sort(), (f) => (v(), H(e(Mt), {
2772
2825
  key: f,
2773
2826
  item: {
2774
2827
  key: f,
2775
- value: s.includes(f) ? Qe : e(w)(f, U),
2776
- label: E(f)
2828
+ value: s.includes(f) ? et : e(w)(f, U),
2829
+ label: x(f)
2777
2830
  }
2778
2831
  }, null, 8, ["item"]))), 128))
2779
2832
  ]),
2780
2833
  _: 1
2781
- }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
2834
+ }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "formats-to-hide", "hide-title"])
2782
2835
  ]));
2783
2836
  }
2784
- }), Ra = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Ge = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Ue = "/v1/ai-gateways/{aiGatewayId}", de = {
2837
+ }), Ia = "/v2/control-planes/{controlPlaneId}/core-entities/{workspace}", Ne = "/v2/control-planes/{controlPlaneId}/{workspace}/config-stores", Me = "/v1/ai-gateways/{aiGatewayId}", ce = {
2785
2838
  getVault: {
2786
- konnect: `${Ra}/vaults/{id}`,
2787
- aiGateway: `${Ue}/vaults/{id}`
2839
+ konnect: `${Ia}/vaults/{id}`,
2840
+ aiGateway: `${Me}/vaults/{id}`
2788
2841
  },
2789
2842
  list: {
2790
- konnect: `${Ge}/{id}/secrets`,
2791
- aiGateway: `${Ue}/config-stores/{id}/secrets`
2843
+ konnect: `${Ne}/{id}/secrets`,
2844
+ aiGateway: `${Me}/config-stores/{id}/secrets`
2792
2845
  },
2793
2846
  form: {
2794
2847
  konnect: {
2795
- create: `${Ge}/{id}/secrets`,
2796
- edit: `${Ge}/{id}/secrets/{secretId}`
2848
+ create: `${Ne}/{id}/secrets`,
2849
+ edit: `${Ne}/{id}/secrets/{secretId}`
2797
2850
  },
2798
2851
  aiGateway: {
2799
- create: `${Ue}/config-stores/{id}/secrets`,
2800
- edit: `${Ue}/config-stores/{id}/secrets/{secretId}`
2852
+ create: `${Me}/config-stores/{id}/secrets`,
2853
+ edit: `${Me}/config-stores/{id}/secrets/{secretId}`
2801
2854
  }
2802
2855
  }
2803
- }, xa = { class: "table-content-overflow-wrapper" }, Ea = /* @__PURE__ */ _e({
2856
+ }, Ua = { class: "table-content-overflow-wrapper" }, Ha = /* @__PURE__ */ ye({
2804
2857
  inheritAttrs: !1,
2805
2858
  __name: "SecretListInner",
2806
2859
  props: {
@@ -2840,103 +2893,103 @@ const dt = {
2840
2893
  }
2841
2894
  },
2842
2895
  emits: ["error", "delete:success"],
2843
- setup(l, { emit: h }) {
2844
- var ve;
2845
- const s = h, d = l, { i18n: { t: p, formatUnixTimeStamp: r } } = Ce.useI18n(), { axiosInstance: K } = Ve((ve = d.config) == null ? void 0 : ve.axiosRequestConfig), w = {
2896
+ setup(l, { emit: b }) {
2897
+ var be;
2898
+ const s = b, d = l, { i18n: { t: p, formatUnixTimeStamp: i } } = Ae.useI18n(), { axiosInstance: K } = Ce((be = d.config) == null ? void 0 : be.axiosRequestConfig), w = {
2846
2899
  // the Secret Key column is non-hidable
2847
2900
  key: { label: p("secrets.list.table_headers.key"), sortable: !1, hidable: !1 },
2848
2901
  updated_at: { label: p("secrets.list.table_headers.updated_at"), sortable: !1 }
2849
- }, x = (H) => ({
2850
- "data-testid": H.key
2851
- }), I = k(() => d.config.apiType === "aiGateway" ? de.list.aiGateway : de.list[d.config.app]), E = k(() => {
2852
- var H, W;
2853
- return `${d.config.apiBaseUrl}${I.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((H = d.config) == null ? void 0 : H.controlPlaneId) || "").replace(/\/{workspace}/gi, (W = d.config) != null && W.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.configStoreId || "");
2854
- }), v = z(""), n = {
2902
+ }, R = (q) => ({
2903
+ "data-testid": q.key
2904
+ }), I = k(() => d.config.apiType === "aiGateway" ? ce.list.aiGateway : ce.list[d.config.app]), x = k(() => {
2905
+ var q, T;
2906
+ return `${d.config.apiBaseUrl}${I.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((q = d.config) == null ? void 0 : q.controlPlaneId) || "").replace(/\/{workspace}/gi, (T = d.config) != null && T.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.configStoreId || "");
2907
+ }), g = D(""), n = {
2855
2908
  isExactMatch: !0,
2856
2909
  placeholder: p("search.placeholder_for_secrets.konnect")
2857
2910
  }, {
2858
2911
  fetcher: U,
2859
2912
  fetcherState: f,
2860
- fetcherCacheKey: le
2861
- } = et(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), E), J = () => {
2862
- v.value = "";
2863
- }, re = z(null), ce = (H) => ({
2913
+ fetcherCacheKey: oe
2914
+ } = lt(k(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), x), J = () => {
2915
+ g.value = "";
2916
+ }, ne = D(null), pe = (q) => ({
2864
2917
  label: p("actions.edit"),
2865
- to: d.config.getEditRoute(H)
2866
- }), G = z(void 0), a = z(!1), ie = z(!1), V = z(""), X = tt(d.config, E.value), oe = (H) => {
2867
- G.value = H, a.value = !0;
2868
- }, fe = () => {
2918
+ to: d.config.getEditRoute(q)
2919
+ }), $ = D(void 0), a = D(!1), se = D(!1), V = D(""), Y = ot(d.config, x.value), ie = (q) => {
2920
+ $.value = q, a.value = !0;
2921
+ }, me = () => {
2869
2922
  a.value = !1;
2870
- }, se = async () => {
2871
- var H, W, ae;
2872
- if ((H = G.value) != null && H.key) {
2873
- ie.value = !0;
2923
+ }, re = async () => {
2924
+ var q, T, le;
2925
+ if ((q = $.value) != null && q.key) {
2926
+ se.value = !0;
2874
2927
  try {
2875
- await K.delete(X(G.value.key)), ie.value = !1, a.value = !1, le.value++, s("delete:success", G.value);
2876
- } catch (ee) {
2877
- V.value = ((ae = (W = ee.response) == null ? void 0 : W.data) == null ? void 0 : ae.message) || ee.message || p("errors.delete"), s("error", ee);
2928
+ await K.delete(Y($.value.key)), se.value = !1, a.value = !1, oe.value++, s("delete:success", $.value);
2929
+ } catch (X) {
2930
+ V.value = ((le = (T = X.response) == null ? void 0 : T.data) == null ? void 0 : le.message) || X.message || p("errors.delete"), s("error", X);
2878
2931
  } finally {
2879
- ie.value = !1;
2932
+ se.value = !1;
2880
2933
  }
2881
2934
  }
2882
2935
  };
2883
- Ee(f, (H) => {
2884
- var W, ae, ee;
2885
- if (H.status === at.Error) {
2886
- re.value = {
2936
+ Ue(f, (q) => {
2937
+ var T, le, X;
2938
+ if (q.status === it.Error) {
2939
+ ne.value = {
2887
2940
  title: p("errors.general")
2888
- }, (ee = (ae = (W = H.error) == null ? void 0 : W.response) == null ? void 0 : ae.data) != null && ee.message && (re.value.message = H.error.response.data.message), s("error", H.error);
2941
+ }, (X = (le = (T = q.error) == null ? void 0 : T.response) == null ? void 0 : le.data) != null && X.message && (ne.value.message = q.error.response.data.message), s("error", q.error);
2889
2942
  return;
2890
2943
  }
2891
- re.value = null;
2944
+ ne.value = null;
2892
2945
  });
2893
- const ne = z({
2946
+ const L = D({
2894
2947
  ctaPath: d.config.createRoute,
2895
2948
  ctaText: void 0,
2896
2949
  message: `${p("secrets.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
2897
2950
  title: p("secrets.title")
2898
2951
  });
2899
- return He(async () => {
2900
- await d.canCreate() && (ne.value.title = p("secrets.list.empty_state.title"), ne.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2901
- }), (H, W) => {
2902
- const ae = Y("KButton"), ee = Y("KDropdownItem");
2903
- return y(), F(Ye, null, [
2904
- u(e(lt), {
2952
+ return Ge(async () => {
2953
+ await d.canCreate() && (L.value.title = p("secrets.list.empty_state.title"), L.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2954
+ }), (q, T) => {
2955
+ const le = Q("KButton"), X = Q("KDropdownItem");
2956
+ return v(), N(tt, null, [
2957
+ u(e(rt), {
2905
2958
  "cache-identifier": l.cacheIdentifier,
2906
2959
  "disable-sorting": "",
2907
- "empty-state-options": ne.value,
2960
+ "empty-state-options": L.value,
2908
2961
  "enable-entity-actions": "",
2909
- "error-message": re.value,
2962
+ "error-message": ne.value,
2910
2963
  fetcher: e(U),
2911
- "fetcher-cache-key": e(le),
2964
+ "fetcher-cache-key": e(oe),
2912
2965
  "pagination-type": "offset",
2913
2966
  "preferences-storage-key": "kong-ui-entities-secrets-list",
2914
- query: v.value,
2915
- "row-attributes": x,
2967
+ query: g.value,
2968
+ "row-attributes": R,
2916
2969
  "table-headers": e(w),
2917
2970
  onClearSearchInput: J
2918
2971
  }, {
2919
- "toolbar-filter": g(() => [
2920
- u(e(ot), {
2921
- modelValue: v.value,
2922
- "onUpdate:modelValue": W[0] || (W[0] = (Q) => v.value = Q),
2972
+ "toolbar-filter": y(() => [
2973
+ u(e(nt), {
2974
+ modelValue: g.value,
2975
+ "onUpdate:modelValue": T[0] || (T[0] = (ee) => g.value = ee),
2923
2976
  config: n
2924
2977
  }, null, 8, ["modelValue"])
2925
2978
  ]),
2926
- "toolbar-button": g(() => [
2927
- u(e(we), {
2979
+ "toolbar-button": y(() => [
2980
+ u(e(ke), {
2928
2981
  "auth-function": () => l.canCreate()
2929
2982
  }, {
2930
- default: g(() => [
2931
- u(ae, {
2983
+ default: y(() => [
2984
+ u(le, {
2932
2985
  appearance: "primary",
2933
2986
  "data-testid": "toolbar-add-secret",
2934
2987
  size: "large",
2935
2988
  to: l.config.createRoute
2936
2989
  }, {
2937
- default: g(() => [
2938
- u(e($e)),
2939
- me(" " + N(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2990
+ default: y(() => [
2991
+ u(e(Ke)),
2992
+ ve(" " + O(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2940
2993
  ]),
2941
2994
  _: 1
2942
2995
  }, 8, ["to"])
@@ -2944,38 +2997,38 @@ const dt = {
2944
2997
  _: 1
2945
2998
  }, 8, ["auth-function"])
2946
2999
  ]),
2947
- key: g(({ rowValue: Q }) => [
2948
- T("div", xa, [
2949
- T("b", null, N(Q ?? "-"), 1)
3000
+ key: y(({ rowValue: ee }) => [
3001
+ M("div", Ua, [
3002
+ M("b", null, O(ee ?? "-"), 1)
2950
3003
  ])
2951
3004
  ]),
2952
- updated_at: g(({ rowValue: Q }) => [
2953
- T("span", null, N(Q ? e(r)(new Date(Q).getTime() / 1e3) : "-"), 1)
3005
+ updated_at: y(({ rowValue: ee }) => [
3006
+ M("span", null, O(ee ? e(i)(new Date(ee).getTime() / 1e3) : "-"), 1)
2954
3007
  ]),
2955
- actions: g(({ row: Q }) => [
2956
- u(e(we), {
2957
- "auth-function": () => l.canEdit(Q)
3008
+ actions: y(({ row: ee }) => [
3009
+ u(e(ke), {
3010
+ "auth-function": () => l.canEdit(ee)
2958
3011
  }, {
2959
- default: g(() => [
2960
- u(ee, {
3012
+ default: y(() => [
3013
+ u(X, {
2961
3014
  "data-testid": "action-entity-edit",
2962
- item: ce(Q.key)
3015
+ item: pe(ee.key)
2963
3016
  }, null, 8, ["item"])
2964
3017
  ]),
2965
3018
  _: 2
2966
3019
  }, 1032, ["auth-function"]),
2967
- u(e(we), {
2968
- "auth-function": () => l.canDelete(Q)
3020
+ u(e(ke), {
3021
+ "auth-function": () => l.canDelete(ee)
2969
3022
  }, {
2970
- default: g(() => [
2971
- u(ee, {
3023
+ default: y(() => [
3024
+ u(X, {
2972
3025
  danger: "",
2973
3026
  "data-testid": "action-entity-delete",
2974
3027
  "has-divider": "",
2975
- onClick: (ke) => oe(Q)
3028
+ onClick: (we) => ie(ee)
2976
3029
  }, {
2977
- default: g(() => [
2978
- me(N(e(p)("actions.delete")), 1)
3030
+ default: y(() => [
3031
+ ve(O(e(p)("actions.delete")), 1)
2979
3032
  ]),
2980
3033
  _: 1
2981
3034
  }, 8, ["onClick"])
@@ -2985,21 +3038,21 @@ const dt = {
2985
3038
  ]),
2986
3039
  _: 1
2987
3040
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
2988
- u(e(rt), {
2989
- "action-pending": ie.value,
3041
+ u(e(st), {
3042
+ "action-pending": se.value,
2990
3043
  description: e(p)("delete.description"),
2991
- "entity-name": G.value && G.value.key,
2992
- "entity-type": e(it).Secret,
3044
+ "entity-name": $.value && $.value.key,
3045
+ "entity-type": e(dt).Secret,
2993
3046
  error: V.value,
2994
3047
  title: e(p)("delete.title_for_secret"),
2995
3048
  visible: a.value,
2996
- onCancel: fe,
2997
- onProceed: se
3049
+ onCancel: me,
3050
+ onProceed: re
2998
3051
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
2999
3052
  ], 64);
3000
3053
  };
3001
3054
  }
3002
- }), Ia = /* @__PURE__ */ ge(Ea, [["__scopeId", "data-v-115ca40d"]]), Ua = { class: "kong-ui-entities-secrets-list" }, Ha = /* @__PURE__ */ _e({
3055
+ }), Ta = /* @__PURE__ */ he(Ha, [["__scopeId", "data-v-115ca40d"]]), Ma = { class: "kong-ui-entities-secrets-list" }, Ga = /* @__PURE__ */ ye({
3003
3056
  __name: "SecretList",
3004
3057
  props: {
3005
3058
  /** The base konnect config. Pass additional config props in the shared entity component as needed. */
@@ -3038,33 +3091,33 @@ const dt = {
3038
3091
  }
3039
3092
  },
3040
3093
  emits: ["error", "delete:success"],
3041
- setup(l, { emit: h }) {
3094
+ setup(l, { emit: b }) {
3042
3095
  var I;
3043
- const s = h, d = l, p = (E) => {
3044
- s("error", E);
3045
- }, r = (E) => {
3046
- s("delete:success", E);
3047
- }, { axiosInstance: K } = Ve((I = d.config) == null ? void 0 : I.axiosRequestConfig), M = z(""), w = k(() => d.config.apiType === "aiGateway" ? de.getVault.aiGateway : de.getVault[d.config.app]), x = k(() => {
3048
- var E, v;
3049
- return `${d.config.apiBaseUrl}${w.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((E = d.config) == null ? void 0 : E.controlPlaneId) || "").replace(/\/{workspace}/gi, (v = d.config) != null && v.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.vaultId);
3096
+ const s = b, d = l, p = (x) => {
3097
+ s("error", x);
3098
+ }, i = (x) => {
3099
+ s("delete:success", x);
3100
+ }, { axiosInstance: K } = Ce((I = d.config) == null ? void 0 : I.axiosRequestConfig), G = D(""), w = k(() => d.config.apiType === "aiGateway" ? ce.getVault.aiGateway : ce.getVault[d.config.app]), R = k(() => {
3101
+ var x, g;
3102
+ return `${d.config.apiBaseUrl}${w.value}`.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((x = d.config) == null ? void 0 : x.controlPlaneId) || "").replace(/\/{workspace}/gi, (g = d.config) != null && g.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, d.vaultId);
3050
3103
  });
3051
- return He(async () => {
3052
- var E;
3104
+ return Ge(async () => {
3105
+ var x;
3053
3106
  try {
3054
- const { data: v } = await K.get(x.value);
3055
- M.value = (E = v == null ? void 0 : v.config) == null ? void 0 : E.config_store_id;
3056
- } catch (v) {
3057
- s("error", v);
3107
+ const { data: g } = await K.get(R.value);
3108
+ G.value = (x = g == null ? void 0 : g.config) == null ? void 0 : x.config_store_id;
3109
+ } catch (g) {
3110
+ s("error", g);
3058
3111
  }
3059
- }), (E, v) => (y(), F("div", Ua, [
3060
- M.value ? (y(), q(Ia, Xe({ key: 0 }, d, {
3061
- "config-store-id": M.value,
3062
- "onDelete:success": r,
3112
+ }), (x, g) => (v(), N("div", Ma, [
3113
+ G.value ? (v(), H(Ta, at({ key: 0 }, d, {
3114
+ "config-store-id": G.value,
3115
+ "onDelete:success": i,
3063
3116
  onError: p
3064
- }), null, 16, ["config-store-id"])) : O("", !0)
3117
+ }), null, 16, ["config-store-id"])) : j("", !0)
3065
3118
  ]));
3066
3119
  }
3067
- }), ol = /* @__PURE__ */ ge(Ha, [["__scopeId", "data-v-e9c157a0"]]), Ta = /* @__PURE__ */ _e({
3120
+ }), nl = /* @__PURE__ */ he(Ga, [["__scopeId", "data-v-e9c157a0"]]), $a = /* @__PURE__ */ ye({
3068
3121
  inheritAttrs: !1,
3069
3122
  __name: "SecretFormInner",
3070
3123
  props: {
@@ -3087,92 +3140,92 @@ const dt = {
3087
3140
  }
3088
3141
  },
3089
3142
  emits: ["update", "error", "loading"],
3090
- setup(l, { emit: h }) {
3091
- var ie;
3092
- const s = l, d = h, { i18n: { t: p } } = Ce.useI18n(), r = Ke(), { axiosInstance: K } = Ve((ie = s.config) == null ? void 0 : ie.axiosRequestConfig), { getMessageFromError: M } = nt(), w = Ae({
3143
+ setup(l, { emit: b }) {
3144
+ var se;
3145
+ const s = l, d = b, { i18n: { t: p } } = Ae.useI18n(), i = je(), { axiosInstance: K } = Ce((se = s.config) == null ? void 0 : se.axiosRequestConfig), { getMessageFromError: G } = ut(), w = Ee({
3093
3146
  fields: {
3094
3147
  key: "",
3095
3148
  value: ""
3096
3149
  },
3097
3150
  readonly: !1,
3098
3151
  errorMessage: ""
3099
- }), x = Ae({
3152
+ }), R = Ee({
3100
3153
  key: "",
3101
3154
  value: ""
3102
- }), I = k(() => s.config.apiType === "aiGateway" ? de.form.aiGateway : de.form[s.config.app]), E = k(
3155
+ }), I = k(() => s.config.apiType === "aiGateway" ? ce.form.aiGateway : ce.form[s.config.app]), x = k(
3103
3156
  () => {
3104
3157
  var V;
3105
3158
  return (V = I.value) == null ? void 0 : V.edit.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{id}/gi, s.configStoreId).replace(/{secretId}/gi, s.secretId);
3106
3159
  }
3107
- ), v = () => {
3160
+ ), g = () => {
3108
3161
  var V;
3109
- r.push(((V = s.config) == null ? void 0 : V.cancelRoute) || { name: "secret-list" });
3162
+ i.push(((V = s.config) == null ? void 0 : V.cancelRoute) || { name: "secret-list" });
3110
3163
  }, n = (V) => {
3111
3164
  d("loading", V);
3112
3165
  }, U = (V) => {
3113
3166
  d("error", V);
3114
3167
  }, f = (V) => {
3115
- var X, oe;
3116
- w.fields.key = ((X = V == null ? void 0 : V.item) == null ? void 0 : X.key) || (V == null ? void 0 : V.key) || "", w.fields.value = ((oe = V == null ? void 0 : V.item) == null ? void 0 : oe.value) || (V == null ? void 0 : V.value) || "", Object.assign(x, w.fields);
3117
- }, le = k(() => s.secretId ? Se.Edit : Se.Create), J = k(() => {
3118
- var V, X;
3119
- return `${s.config.apiBaseUrl}${I.value[le.value]}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((V = s.config) == null ? void 0 : V.controlPlaneId) || "").replace(/\/{workspace}/gi, (X = s.config) != null && X.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.configStoreId).replace(/{secretId}/gi, s.secretId);
3120
- }), re = k(() => !!w.fields.key && !!w.fields.value), ce = k(() => JSON.stringify(w.fields) !== JSON.stringify(x)), G = k(() => ({
3168
+ var Y, ie;
3169
+ w.fields.key = ((Y = V == null ? void 0 : V.item) == null ? void 0 : Y.key) || (V == null ? void 0 : V.key) || "", w.fields.value = ((ie = V == null ? void 0 : V.item) == null ? void 0 : ie.value) || (V == null ? void 0 : V.value) || "", Object.assign(R, w.fields);
3170
+ }, oe = k(() => s.secretId ? ge.Edit : ge.Create), J = k(() => {
3171
+ var V, Y;
3172
+ return `${s.config.apiBaseUrl}${I.value[oe.value]}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((V = s.config) == null ? void 0 : V.controlPlaneId) || "").replace(/\/{workspace}/gi, (Y = s.config) != null && Y.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.configStoreId).replace(/{secretId}/gi, s.secretId);
3173
+ }), ne = k(() => !!w.fields.key && !!w.fields.value), pe = k(() => JSON.stringify(w.fields) !== JSON.stringify(R)), $ = k(() => ({
3121
3174
  key: w.fields.key,
3122
3175
  value: w.fields.value
3123
3176
  })), a = async () => {
3124
3177
  try {
3125
3178
  w.readonly = !0;
3126
3179
  let V;
3127
- le.value === "create" ? V = await K.post(J.value, G.value) : le.value === "edit" && (V = await K.put(J.value, G.value)), f(V == null ? void 0 : V.data), d("update", V == null ? void 0 : V.data);
3180
+ oe.value === "create" ? V = await K.post(J.value, $.value) : oe.value === "edit" && (V = await K.put(J.value, $.value)), f(V == null ? void 0 : V.data), d("update", V == null ? void 0 : V.data);
3128
3181
  } catch (V) {
3129
- w.errorMessage = M(V), d("error", V);
3182
+ w.errorMessage = G(V), d("error", V);
3130
3183
  } finally {
3131
3184
  w.readonly = !1;
3132
3185
  }
3133
3186
  };
3134
- return (V, X) => {
3135
- const oe = Y("KInput"), fe = Y("KTextArea"), se = Y("KAlert");
3136
- return y(), q(e(st), {
3137
- "can-submit": re.value && ce.value,
3187
+ return (V, Y) => {
3188
+ const ie = Q("KInput"), me = Q("KTextArea"), re = Q("KAlert");
3189
+ return v(), H(e(ct), {
3190
+ "can-submit": ne.value && pe.value,
3138
3191
  config: l.config,
3139
3192
  "edit-id": l.secretId,
3140
- "entity-type": e(Ne).Other,
3193
+ "entity-type": e(qe).Other,
3141
3194
  "error-message": w.errorMessage,
3142
- "fetch-url": E.value,
3143
- "form-fields": G.value,
3195
+ "fetch-url": x.value,
3196
+ "form-fields": $.value,
3144
3197
  "is-readonly": w.readonly,
3145
- onCancel: v,
3198
+ onCancel: g,
3146
3199
  "onFetch:error": U,
3147
3200
  "onFetch:success": f,
3148
3201
  onLoading: n,
3149
3202
  onSubmit: a
3150
3203
  }, {
3151
- default: g(() => [
3152
- T("div", null, [
3153
- u(e(Pe), {
3204
+ default: y(() => [
3205
+ M("div", null, [
3206
+ u(e(Oe), {
3154
3207
  description: e(p)("secrets.form.info.description"),
3155
3208
  "has-divider": "",
3156
3209
  title: e(p)("secrets.form.info.title")
3157
3210
  }, {
3158
- default: g(() => [
3159
- u(oe, {
3211
+ default: y(() => [
3212
+ u(ie, {
3160
3213
  modelValue: w.fields.key,
3161
- "onUpdate:modelValue": X[0] || (X[0] = (ne) => w.fields.key = ne),
3214
+ "onUpdate:modelValue": Y[0] || (Y[0] = (L) => w.fields.key = L),
3162
3215
  modelModifiers: { trim: !0 },
3163
3216
  autocomplete: "off",
3164
3217
  class: "key-field",
3165
3218
  "data-testid": "secret-form-key",
3166
- disabled: le.value === e(Se).Edit,
3219
+ disabled: oe.value === e(ge).Edit,
3167
3220
  label: e(p)("secrets.form.fields.key.label"),
3168
3221
  placeholder: e(p)("secrets.form.fields.key.placeholder"),
3169
3222
  readonly: w.readonly,
3170
3223
  required: "",
3171
3224
  type: "text"
3172
3225
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
3173
- u(fe, {
3226
+ u(me, {
3174
3227
  modelValue: w.fields.value,
3175
- "onUpdate:modelValue": X[1] || (X[1] = (ne) => w.fields.value = ne),
3228
+ "onUpdate:modelValue": Y[1] || (Y[1] = (L) => w.fields.value = L),
3176
3229
  modelModifiers: { trim: !0 },
3177
3230
  autocomplete: "off",
3178
3231
  "character-limit": !1,
@@ -3184,7 +3237,7 @@ const dt = {
3184
3237
  resizable: "",
3185
3238
  type: "text"
3186
3239
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
3187
- u(se, {
3240
+ u(re, {
3188
3241
  appearance: "warning",
3189
3242
  message: e(p)("secrets.form.hint")
3190
3243
  }, null, 8, ["message"])
@@ -3197,7 +3250,7 @@ const dt = {
3197
3250
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
3198
3251
  };
3199
3252
  }
3200
- }), Ma = /* @__PURE__ */ ge(Ta, [["__scopeId", "data-v-31bf6bef"]]), Ga = { class: "kong-ui-entities-secret-form" }, $a = /* @__PURE__ */ _e({
3253
+ }), Pa = /* @__PURE__ */ he($a, [["__scopeId", "data-v-31bf6bef"]]), Fa = { class: "kong-ui-entities-secret-form" }, Na = /* @__PURE__ */ ye({
3201
3254
  __name: "SecretForm",
3202
3255
  props: {
3203
3256
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -3219,38 +3272,38 @@ const dt = {
3219
3272
  }
3220
3273
  },
3221
3274
  emits: ["update", "error", "loading"],
3222
- setup(l, { emit: h }) {
3223
- var E;
3224
- const s = l, d = h, p = (v) => {
3225
- d("update", v);
3226
- }, r = (v) => {
3227
- d("error", v);
3228
- }, K = (v) => {
3229
- d("loading", v);
3230
- }, { axiosInstance: M } = Ve((E = s.config) == null ? void 0 : E.axiosRequestConfig), w = z(""), x = k(() => s.config.apiType === "aiGateway" ? de.getVault.aiGateway : de.getVault[s.config.app]), I = k(() => {
3231
- var v, n;
3232
- return `${s.config.apiBaseUrl}${x.value}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((v = s.config) == null ? void 0 : v.controlPlaneId) || "").replace(/\/{workspace}/gi, (n = s.config) != null && n.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId);
3275
+ setup(l, { emit: b }) {
3276
+ var x;
3277
+ const s = l, d = b, p = (g) => {
3278
+ d("update", g);
3279
+ }, i = (g) => {
3280
+ d("error", g);
3281
+ }, K = (g) => {
3282
+ d("loading", g);
3283
+ }, { axiosInstance: G } = Ce((x = s.config) == null ? void 0 : x.axiosRequestConfig), w = D(""), R = k(() => s.config.apiType === "aiGateway" ? ce.getVault.aiGateway : ce.getVault[s.config.app]), I = k(() => {
3284
+ var g, n;
3285
+ return `${s.config.apiBaseUrl}${R.value}`.replace(/{aiGatewayId}/gi, s.config.aiGatewayId || "").replace(/{controlPlaneId}/gi, ((g = s.config) == null ? void 0 : g.controlPlaneId) || "").replace(/\/{workspace}/gi, (n = s.config) != null && n.workspace ? `/${s.config.workspace}` : "").replace(/{id}/gi, s.vaultId);
3233
3286
  });
3234
- return He(async () => {
3235
- var v;
3287
+ return Ge(async () => {
3288
+ var g;
3236
3289
  try {
3237
- const { data: n } = await M.get(I.value);
3238
- w.value = (v = n == null ? void 0 : n.config) == null ? void 0 : v.config_store_id;
3290
+ const { data: n } = await G.get(I.value);
3291
+ w.value = (g = n == null ? void 0 : n.config) == null ? void 0 : g.config_store_id;
3239
3292
  } catch (n) {
3240
3293
  d("error", n);
3241
3294
  }
3242
- }), (v, n) => (y(), F("div", Ga, [
3243
- w.value ? (y(), q(Ma, Xe({ key: 0 }, s, {
3295
+ }), (g, n) => (v(), N("div", Fa, [
3296
+ w.value ? (v(), H(Pa, at({ key: 0 }, s, {
3244
3297
  "config-store-id": w.value,
3245
- onError: r,
3298
+ onError: i,
3246
3299
  onLoading: K,
3247
3300
  onUpdate: p
3248
- }), null, 16, ["config-store-id"])) : O("", !0)
3301
+ }), null, 16, ["config-store-id"])) : j("", !0)
3249
3302
  ]));
3250
3303
  }
3251
- }), rl = /* @__PURE__ */ ge($a, [["__scopeId", "data-v-1651a0c6"]]), Pa = {
3304
+ }), sl = /* @__PURE__ */ he(Na, [["__scopeId", "data-v-1651a0c6"]]), Ka = {
3252
3305
  class: "vault-secret-picker-provider"
3253
- }, Fa = /* @__PURE__ */ _e({
3306
+ }, Oa = /* @__PURE__ */ ye({
3254
3307
  __name: "VaultSecretPickerProvider",
3255
3308
  props: {
3256
3309
  value: {},
@@ -3263,56 +3316,56 @@ const dt = {
3263
3316
  },
3264
3317
  emits: ["open"],
3265
3318
  setup(l, {
3266
- emit: h
3319
+ emit: b
3267
3320
  }) {
3268
- const s = l, d = h, {
3321
+ const s = l, d = b, {
3269
3322
  i18n: {
3270
3323
  t: p
3271
3324
  },
3272
- i18nT: r
3273
- } = Ce.useI18n();
3274
- return (K, M) => (y(), F("div", Pa, [u(e(r), {
3325
+ i18nT: i
3326
+ } = Ae.useI18n();
3327
+ return (K, G) => (v(), N("div", Ka, [u(e(i), {
3275
3328
  keypath: "vault_secret_picker.provider.complete_action",
3276
3329
  scope: "global"
3277
3330
  }, {
3278
- cta: g(() => [T("span", {
3279
- class: pt({
3331
+ cta: y(() => [M("span", {
3332
+ class: vt({
3280
3333
  "vault-secret-picker-provider-action": !0,
3281
3334
  disabled: s.disabled
3282
3335
  }),
3283
- onClick: M[0] || (M[0] = () => !s.disabled && d("open", s.value, s.update))
3284
- }, N(e(p)("vault_secret_picker.provider.cta")), 3)]),
3336
+ onClick: G[0] || (G[0] = () => !s.disabled && d("open", s.value, s.update))
3337
+ }, O(e(p)("vault_secret_picker.provider.cta")), 3)]),
3285
3338
  _: 1
3286
3339
  })]));
3287
3340
  }
3288
- }), il = /* @__PURE__ */ ge(Fa, [["__scopeId", "data-v-d135d1d0"]]), Ka = (l) => {
3289
- let h = l.trim();
3290
- if (!h.startsWith("{") || !h.endsWith("}"))
3341
+ }), dl = /* @__PURE__ */ he(Oa, [["__scopeId", "data-v-d135d1d0"]]), Wa = (l) => {
3342
+ let b = l.trim();
3343
+ if (!b.startsWith("{") || !b.endsWith("}"))
3291
3344
  throw new Error("Invalid secret reference: must be enclosed in curly braces");
3292
- if (h = h.substring(1, h.length - 1).trim(), !h.startsWith("vault://"))
3345
+ if (b = b.substring(1, b.length - 1).trim(), !b.startsWith("vault://"))
3293
3346
  throw new Error("Invalid secret reference: must start with vault://");
3294
- const s = new URL(`http://${h.substring(8)}`);
3347
+ const s = new URL(`http://${b.substring(8)}`);
3295
3348
  if (!s)
3296
3349
  throw new Error("Invalid secret reference: must have a vault prefix");
3297
- const d = s.host, [, p, ...r] = s.pathname.split("/");
3350
+ const d = s.host, [, p, ...i] = s.pathname.split("/");
3298
3351
  if (!d)
3299
3352
  throw new Error("Invalid secret reference: must have a vault prefix");
3300
3353
  return {
3301
3354
  vaultPrefix: d,
3302
3355
  secretId: p || void 0,
3303
3356
  // Non-empty string or undefined
3304
- optionalSecretKey: r == null ? void 0 : r.join("/")
3357
+ optionalSecretKey: i == null ? void 0 : i.join("/")
3305
3358
  // Non-empty string or undefined
3306
3359
  };
3307
- }, Na = (l) => {
3360
+ }, ja = (l) => {
3308
3361
  if (!l.vaultPrefix)
3309
3362
  throw new Error("Invalid secret reference: must have a vault prefix");
3310
- let h = `vault://${l.vaultPrefix}`;
3311
- return l.secretId && (h = `${h}/${l.secretId}`), l.optionalSecretKey && (h = `${h}/${l.optionalSecretKey}`), `{${h}}`;
3312
- }, Oa = {
3363
+ let b = `vault://${l.vaultPrefix}`;
3364
+ return l.secretId && (b = `${b}/${l.secretId}`), l.optionalSecretKey && (b = `${b}/${l.optionalSecretKey}`), `{${b}}`;
3365
+ }, qa = {
3313
3366
  key: 1,
3314
3367
  class: "inputs-wrapper"
3315
- }, Wa = { "data-testid": "no-search-results" }, ja = { class: "k-select-selected-item-label" }, qa = { class: "vault-secret-picker-vault-dropdown-item" }, za = { class: "select-item-label" }, Da = { class: "select-item-description" }, Za = { class: "select-item-description" }, Ba = { "data-testid": "no-search-results" }, La = /* @__PURE__ */ _e({
3368
+ }, za = { "data-testid": "no-search-results" }, Da = { class: "k-select-selected-item-label" }, Za = { class: "vault-secret-picker-vault-dropdown-item" }, Ba = { class: "select-item-label" }, La = { class: "select-item-description" }, Ja = { class: "select-item-description" }, Qa = { "data-testid": "no-search-results" }, Ya = /* @__PURE__ */ ye({
3316
3369
  __name: "VaultSecretPicker",
3317
3370
  props: {
3318
3371
  config: {
@@ -3352,138 +3405,138 @@ const dt = {
3352
3405
  }
3353
3406
  },
3354
3407
  emits: ["proceed", "cancel"],
3355
- setup(l, { emit: h }) {
3356
- var ye;
3357
- const { i18n: { t: s } } = Ce.useI18n(), d = l, p = h, { axiosInstance: r } = Ve({
3408
+ setup(l, { emit: b }) {
3409
+ var Se;
3410
+ const { i18n: { t: s } } = Ae.useI18n(), d = l, p = b, { axiosInstance: i } = Ce({
3358
3411
  // 404 errors are allowed in this components
3359
- validateStatus: (b) => b === 404 || b >= 200 && b < 300,
3412
+ validateStatus: (C) => C === 404 || C >= 200 && C < 300,
3360
3413
  // Spread the passed-in config later to allow overriding
3361
- ...(ye = d.config) == null ? void 0 : ye.axiosRequestConfig
3362
- }), K = z(!1), M = z(""), w = z(""), x = z(""), I = z(), E = k(() => d.config.apiType === "aiGateway"), v = (b) => b.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), n = k(() => E.value ? v(ue.list.aiGateway.getAll) : ue.list[d.config.app].getAll), U = k(() => {
3363
- var b, S, $, j;
3364
- return E.value ? v(de.list.aiGateway).replace(/{id}/gi, ((S = (b = I.value) == null ? void 0 : b.config) == null ? void 0 : S.config_store_id) ?? "") : d.config.app === "konnect" ? de.list[d.config.app].replace(/{id}/gi, ((j = ($ = I.value) == null ? void 0 : $.config) == null ? void 0 : j.config_store_id) ?? "") : "<not_applicable>";
3414
+ ...(Se = d.config) == null ? void 0 : Se.axiosRequestConfig
3415
+ }), K = D(!1), G = D(""), w = D(""), R = D(""), I = D(), x = k(() => d.config.apiType === "aiGateway"), g = (C) => C.replace(/{aiGatewayId}/gi, d.config.aiGatewayId || ""), n = k(() => x.value ? g(fe.list.aiGateway.getAll) : fe.list[d.config.app].getAll), U = k(() => {
3416
+ var C, A, P, z;
3417
+ return x.value ? g(ce.list.aiGateway).replace(/{id}/gi, ((A = (C = I.value) == null ? void 0 : C.config) == null ? void 0 : A.config_store_id) ?? "") : d.config.app === "konnect" ? ce.list[d.config.app].replace(/{id}/gi, ((z = (P = I.value) == null ? void 0 : P.config) == null ? void 0 : z.config_store_id) ?? "") : "<not_applicable>";
3365
3418
  }), f = k(() => {
3366
- if (re && V)
3419
+ if (ne && V)
3367
3420
  return s("vault_secret_picker.fetch_error.vaults_and_secrets");
3368
- if (re)
3421
+ if (ne)
3369
3422
  return s("vault_secret_picker.fetch_error.vaults");
3370
3423
  if (V)
3371
3424
  return s("vault_secret_picker.fetch_error.secrets");
3372
3425
  }), {
3373
- debouncedQueryChange: le,
3426
+ debouncedQueryChange: oe,
3374
3427
  loading: J,
3375
- error: re,
3376
- loadItems: ce,
3377
- results: G
3378
- } = Le(d.config, n, void 0, {
3428
+ error: ne,
3429
+ loadItems: pe,
3430
+ results: $
3431
+ } = Ye(d.config, n, void 0, {
3379
3432
  fetchedItemsKey: "data",
3380
3433
  // AI Gateway vaults carry the identifier in `name`; gateway vaults in `prefix`.
3381
- searchKeys: E.value ? ["name"] : ["prefix"]
3434
+ searchKeys: x.value ? ["name"] : ["prefix"]
3382
3435
  }), {
3383
3436
  debouncedQueryChange: a,
3384
- loading: ie,
3437
+ loading: se,
3385
3438
  error: V,
3386
- loadItems: X,
3387
- results: oe
3388
- } = Le(d.config, U, void 0, {
3439
+ loadItems: Y,
3440
+ results: ie
3441
+ } = Ye(d.config, U, void 0, {
3389
3442
  fetchedItemsKey: "data",
3390
3443
  searchKeys: ["key"],
3391
3444
  exactMatchKey: "key"
3392
- }), fe = (b) => {
3393
- var S;
3394
- return (S = d.allowedProviders) != null && S.length ? d.allowedProviders.includes(b) : b !== t.AZURE_CERTS;
3395
- }, se = k(() => E.value ? (G.value ?? []).map((b) => Ie(b)) : G.value ?? []), ne = k(() => {
3396
- let b = !1;
3397
- const S = (se.value ?? []).filter(($) => fe($.name)).map(($) => ($.prefix === M.value && (b = !0), { label: $.prefix, value: $.prefix, vault: $ }));
3398
- return !b && I.value && S.push({
3445
+ }), me = (C) => {
3446
+ var A;
3447
+ return (A = d.allowedProviders) != null && A.length ? d.allowedProviders.includes(C) : C !== t.AZURE_CERTS;
3448
+ }, re = k(() => x.value ? ($.value ?? []).map((C) => He(C)) : $.value ?? []), L = k(() => {
3449
+ let C = !1;
3450
+ const A = (re.value ?? []).filter((P) => me(P.name)).map((P) => (P.prefix === G.value && (C = !0), { label: P.prefix, value: P.prefix, vault: P }));
3451
+ return !C && I.value && A.push({
3399
3452
  label: I.value.prefix,
3400
3453
  value: I.value.prefix,
3401
3454
  vault: I.value
3402
- }), S;
3403
- }), ve = k(() => {
3404
- var $;
3405
- let b = !1;
3406
- const S = (($ = oe.value) == null ? void 0 : $.map((j) => (j.key === w.value && (b = !0), { label: j.key, value: j.key }))) ?? [];
3407
- return !b && w.value && S.push({ label: w.value, value: w.value }), S;
3408
- }), H = k(() => {
3409
- var b;
3410
- return ((b = I == null ? void 0 : I.value) == null ? void 0 : b.name) === "konnect";
3411
- }), W = k(() => !!I.value && !!w.value && !d.additionalDisabled), ae = (b) => b.label ? `${b.label} - (${b.vault.name} - ${b.vault.id})` : b.value, ee = (b) => {
3412
- var j, Z;
3413
- const S = E.value ? ue.form.aiGateway.edit : ue.form[d.config.app].edit;
3414
- let $ = `${d.config.apiBaseUrl}${S}`;
3415
- return d.config.app === "konnect" && ($ = $.replace(/{controlPlaneId}/gi, ((j = d.config) == null ? void 0 : j.controlPlaneId) || "")), v($).replace(/\/{workspace}/gi, (Z = d.config) != null && Z.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, b);
3416
- }, Q = (b, S) => {
3417
- var j, Z;
3455
+ }), A;
3456
+ }), be = k(() => {
3457
+ var P;
3458
+ let C = !1;
3459
+ const A = ((P = ie.value) == null ? void 0 : P.map((z) => (z.key === w.value && (C = !0), { label: z.key, value: z.key }))) ?? [];
3460
+ return !C && w.value && A.push({ label: w.value, value: w.value }), A;
3461
+ }), q = k(() => {
3462
+ var C;
3463
+ return ((C = I == null ? void 0 : I.value) == null ? void 0 : C.name) === "konnect";
3464
+ }), T = k(() => !!I.value && !!w.value && !d.additionalDisabled), le = (C) => C.label ? `${C.label} - (${C.vault.name} - ${C.vault.id})` : C.value, X = (C) => {
3465
+ var z, te;
3466
+ const A = x.value ? fe.form.aiGateway.edit : fe.form[d.config.app].edit;
3467
+ let P = `${d.config.apiBaseUrl}${A}`;
3468
+ return d.config.app === "konnect" && (P = P.replace(/{controlPlaneId}/gi, ((z = d.config) == null ? void 0 : z.controlPlaneId) || "")), g(P).replace(/\/{workspace}/gi, (te = d.config) != null && te.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, C);
3469
+ }, ee = (C, A) => {
3470
+ var z, te;
3418
3471
  if (d.config.app !== "konnect")
3419
3472
  return "<not_applicable>";
3420
- const $ = E.value ? de.form.aiGateway.edit : de.form[d.config.app].edit;
3421
- return v(`${d.config.apiBaseUrl}${$}`).replace(/{controlPlaneId}/gi, ((j = d.config) == null ? void 0 : j.controlPlaneId) || "").replace(/\/{workspace}/gi, (Z = d.config) != null && Z.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, S).replace(/{secretId}/gi, b);
3422
- }, ke = () => {
3423
- p("proceed", Na({
3424
- vaultPrefix: M.value,
3473
+ const P = x.value ? ce.form.aiGateway.edit : ce.form[d.config.app].edit;
3474
+ return g(`${d.config.apiBaseUrl}${P}`).replace(/{controlPlaneId}/gi, ((z = d.config) == null ? void 0 : z.controlPlaneId) || "").replace(/\/{workspace}/gi, (te = d.config) != null && te.workspace ? `/${d.config.workspace}` : "").replace(/{id}/gi, A).replace(/{secretId}/gi, C);
3475
+ }, we = () => {
3476
+ p("proceed", ja({
3477
+ vaultPrefix: G.value,
3425
3478
  secretId: w.value || void 0,
3426
3479
  // Either a non-empty string or undefined
3427
- optionalSecretKey: x.value || void 0
3480
+ optionalSecretKey: R.value || void 0
3428
3481
  // Either a non-empty string or undefined
3429
3482
  }));
3430
3483
  };
3431
- return Ee(() => d.setup, async (b) => {
3432
- if (b !== !1) {
3433
- if (K.value = !0, M.value = "", I.value = void 0, w.value = "", x.value = "", typeof b == "string" && b.trim().length > 0)
3484
+ return Ue(() => d.setup, async (C) => {
3485
+ if (C !== !1) {
3486
+ if (K.value = !0, G.value = "", I.value = void 0, w.value = "", R.value = "", typeof C == "string" && C.trim().length > 0)
3434
3487
  try {
3435
- let S, $ = "", j = "", Z = "";
3436
- const B = Ka(b), { data: D } = await r.get(ee(B.vaultPrefix)), C = D && E.value ? Ie(D) : D;
3437
- if (C != null && C.name)
3438
- if (S = C, $ = B.vaultPrefix, S.name === "konnect") {
3488
+ let A, P = "", z = "", te = "";
3489
+ const B = Wa(C), { data: W } = await i.get(X(B.vaultPrefix)), h = W && x.value ? He(W) : W;
3490
+ if (h != null && h.name)
3491
+ if (A = h, P = B.vaultPrefix, A.name === "konnect") {
3439
3492
  if (B.secretId) {
3440
- const { data: R } = await r.get(Q(B.secretId, C.config.config_store_id));
3441
- R.key === B.secretId && (j = B.secretId, Z = B.optionalSecretKey ?? "");
3493
+ const { data: E } = await i.get(ee(B.secretId, h.config.config_store_id));
3494
+ E.key === B.secretId && (z = B.secretId, te = B.optionalSecretKey ?? "");
3442
3495
  }
3443
3496
  } else
3444
- j = B.secretId ?? "", Z = B.optionalSecretKey ?? "";
3445
- await mt(() => {
3446
- M.value = $, I.value = S, w.value = j, x.value = Z;
3497
+ z = B.secretId ?? "", te = B.optionalSecretKey ?? "";
3498
+ await gt(() => {
3499
+ G.value = P, I.value = A, w.value = z, R.value = te;
3447
3500
  });
3448
- } catch (S) {
3449
- console.debug(S);
3501
+ } catch (A) {
3502
+ console.debug(A);
3450
3503
  }
3451
- K.value = !1, await ce();
3504
+ K.value = !1, await pe();
3452
3505
  }
3453
- }, { immediate: !0 }), Ee(M, async (b, S) => {
3454
- var $;
3455
- K.value || b === S || (I.value = ($ = ne.value.find((j) => j.value === b)) == null ? void 0 : $.vault, w.value = "", x.value = "");
3456
- }), Ee(U, async () => {
3457
- H.value && await X();
3458
- }, { immediate: !0 }), (b, S) => {
3459
- const $ = Y("KEmptyState"), j = Y("KSelect"), Z = Y("KInput"), B = Y("KModal");
3460
- return y(), q(B, {
3461
- "action-button-disabled": !W.value,
3506
+ }, { immediate: !0 }), Ue(G, async (C, A) => {
3507
+ var P;
3508
+ K.value || C === A || (I.value = (P = L.value.find((z) => z.value === C)) == null ? void 0 : P.vault, w.value = "", R.value = "");
3509
+ }), Ue(U, async () => {
3510
+ q.value && await Y();
3511
+ }, { immediate: !0 }), (C, A) => {
3512
+ const P = Q("KEmptyState"), z = Q("KSelect"), te = Q("KInput"), B = Q("KModal");
3513
+ return v(), H(B, {
3514
+ "action-button-disabled": !T.value,
3462
3515
  "action-button-text": l.proceedButtonText || e(s)("vault_secret_picker.actions.use_key"),
3463
3516
  class: "vault-secret-picker",
3464
3517
  "data-testid": "vault-secret-picker-modal",
3465
3518
  title: l.title || e(s)("vault_secret_picker.title"),
3466
3519
  visible: d.setup !== !1,
3467
- onCancel: S[4] || (S[4] = () => p("cancel")),
3468
- onProceed: ke
3520
+ onCancel: A[4] || (A[4] = () => p("cancel")),
3521
+ onProceed: we
3469
3522
  }, {
3470
- default: g(() => [
3471
- e(re) || e(V) ? (y(), q($, {
3523
+ default: y(() => [
3524
+ e(ne) || e(V) ? (v(), H(P, {
3472
3525
  key: 0,
3473
3526
  "data-testid": "vault-secret-picker-fetch-error",
3474
3527
  "icon-variant": "error",
3475
3528
  message: f.value
3476
- }, null, 8, ["message"])) : (y(), F("div", Oa, [
3477
- _t(b.$slots, "form-prefix", {}, void 0, !0),
3478
- u(j, {
3479
- modelValue: M.value,
3480
- "onUpdate:modelValue": S[0] || (S[0] = (D) => M.value = D),
3529
+ }, null, 8, ["message"])) : (v(), N("div", qa, [
3530
+ yt(C.$slots, "form-prefix", {}, void 0, !0),
3531
+ u(z, {
3532
+ modelValue: G.value,
3533
+ "onUpdate:modelValue": A[0] || (A[0] = (W) => G.value = W),
3481
3534
  clearable: "",
3482
3535
  "data-testid": "vault-secret-picker-vault-select",
3483
3536
  disabled: K.value,
3484
3537
  "enable-filtering": "",
3485
3538
  "filter-function": () => !0,
3486
- items: ne.value,
3539
+ items: L.value,
3487
3540
  "kpop-attributes": { "data-testid": "vault-secret-picker-vault-popover" },
3488
3541
  label: e(s)("vault_secret_picker.vault.label"),
3489
3542
  loading: e(J),
@@ -3491,56 +3544,56 @@ const dt = {
3491
3544
  required: "",
3492
3545
  "reuse-item-template": "",
3493
3546
  width: "100%",
3494
- onQueryChange: e(le)
3547
+ onQueryChange: e(oe)
3495
3548
  }, {
3496
- loading: g(() => [
3497
- T("div", null, N(e(s)("actions.loading")), 1)
3549
+ loading: y(() => [
3550
+ M("div", null, O(e(s)("actions.loading")), 1)
3498
3551
  ]),
3499
- empty: g(() => [
3500
- T("div", Wa, N(e(s)("vault_secret_picker.no_results")), 1)
3552
+ empty: y(() => [
3553
+ M("div", za, O(e(s)("vault_secret_picker.no_results")), 1)
3501
3554
  ]),
3502
- "selected-item-template": g(({ item: D }) => [
3503
- T("span", ja, N(ae(D)), 1)
3555
+ "selected-item-template": y(({ item: W }) => [
3556
+ M("span", Da, O(le(W)), 1)
3504
3557
  ]),
3505
- "item-template": g(({ item: D }) => [
3506
- T("div", qa, [
3507
- T("span", za, N(D.label), 1),
3508
- T("span", Da, N(D.vault.name), 1),
3509
- T("span", Za, N(D.vault.id), 1)
3558
+ "item-template": y(({ item: W }) => [
3559
+ M("div", Za, [
3560
+ M("span", Ba, O(W.label), 1),
3561
+ M("span", La, O(W.vault.name), 1),
3562
+ M("span", Ja, O(W.vault.id), 1)
3510
3563
  ])
3511
3564
  ]),
3512
3565
  _: 1
3513
3566
  }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"]),
3514
- H.value ? (y(), q(j, {
3567
+ q.value ? (v(), H(z, {
3515
3568
  key: 0,
3516
3569
  modelValue: w.value,
3517
- "onUpdate:modelValue": S[1] || (S[1] = (D) => w.value = D),
3570
+ "onUpdate:modelValue": A[1] || (A[1] = (W) => w.value = W),
3518
3571
  clearable: "",
3519
3572
  "data-testid": "vault-secret-picker-secret-id-select",
3520
3573
  disabled: K.value || !I.value,
3521
3574
  "enable-filtering": "",
3522
3575
  "filter-function": () => !0,
3523
- items: ve.value,
3576
+ items: be.value,
3524
3577
  "kpop-attributes": { "data-testid": "vault-secret-picker-secret-id-popover" },
3525
3578
  label: e(s)("vault_secret_picker.secret_id.label"),
3526
- loading: e(ie),
3579
+ loading: e(se),
3527
3580
  placeholder: e(s)("vault_secret_picker.secret_id.select_placeholder"),
3528
3581
  required: "",
3529
3582
  "reuse-item-template": "",
3530
3583
  width: "100%",
3531
3584
  onQueryChange: e(a)
3532
3585
  }, {
3533
- loading: g(() => [
3534
- T("div", null, N(e(s)("actions.loading")), 1)
3586
+ loading: y(() => [
3587
+ M("div", null, O(e(s)("actions.loading")), 1)
3535
3588
  ]),
3536
- empty: g(() => [
3537
- T("div", Ba, N(e(s)("vault_secret_picker.no_results")), 1)
3589
+ empty: y(() => [
3590
+ M("div", Qa, O(e(s)("vault_secret_picker.no_results")), 1)
3538
3591
  ]),
3539
3592
  _: 1
3540
- }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (y(), q(Z, {
3593
+ }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (v(), H(te, {
3541
3594
  key: 1,
3542
3595
  modelValue: w.value,
3543
- "onUpdate:modelValue": S[2] || (S[2] = (D) => w.value = D),
3596
+ "onUpdate:modelValue": A[2] || (A[2] = (W) => w.value = W),
3544
3597
  modelModifiers: { trim: !0 },
3545
3598
  autocomplete: "off",
3546
3599
  "data-testid": "vault-secret-picker-secret-id-input",
@@ -3550,10 +3603,10 @@ const dt = {
3550
3603
  required: "",
3551
3604
  type: "text"
3552
3605
  }, null, 8, ["modelValue", "disabled", "label", "placeholder"])),
3553
- l.showSecretKey ? (y(), q(Z, {
3606
+ l.showSecretKey ? (v(), H(te, {
3554
3607
  key: 2,
3555
- modelValue: x.value,
3556
- "onUpdate:modelValue": S[3] || (S[3] = (D) => x.value = D),
3608
+ modelValue: R.value,
3609
+ "onUpdate:modelValue": A[3] || (A[3] = (W) => R.value = W),
3557
3610
  modelModifiers: { trim: !0 },
3558
3611
  autocomplete: "off",
3559
3612
  "data-testid": "vault-secret-picker-secret-key-input",
@@ -3562,24 +3615,24 @@ const dt = {
3562
3615
  label: e(s)("vault_secret_picker.optional_secret_key.label"),
3563
3616
  placeholder: e(s)("vault_secret_picker.optional_secret_key.placeholder"),
3564
3617
  type: "text"
3565
- }, null, 8, ["modelValue", "disabled", "help", "label", "placeholder"])) : O("", !0)
3618
+ }, null, 8, ["modelValue", "disabled", "help", "label", "placeholder"])) : j("", !0)
3566
3619
  ]))
3567
3620
  ]),
3568
3621
  _: 3
3569
3622
  }, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
3570
3623
  };
3571
3624
  }
3572
- }), nl = /* @__PURE__ */ ge(La, [["__scopeId", "data-v-2ab21bd2"]]);
3625
+ }), ul = /* @__PURE__ */ he(Ya, [["__scopeId", "data-v-2ab21bd2"]]);
3573
3626
  export {
3574
- rl as SecretForm,
3575
- ol as SecretList,
3627
+ sl as SecretForm,
3628
+ nl as SecretList,
3576
3629
  _ as VaultAuthMethods,
3577
- ll as VaultConfigCard,
3578
- al as VaultForm,
3579
- tl as VaultList,
3630
+ rl as VaultConfigCard,
3631
+ il as VaultForm,
3632
+ ol as VaultList,
3580
3633
  t as VaultProviders,
3581
- nl as VaultSecretPicker,
3582
- il as VaultSecretPickerProvider,
3583
- de as secretsEndpoints,
3584
- ue as vaultsEndpoints
3634
+ ul as VaultSecretPicker,
3635
+ dl as VaultSecretPickerProvider,
3636
+ ce as secretsEndpoints,
3637
+ fe as vaultsEndpoints
3585
3638
  };