@kong-ui-public/entities-vaults 3.27.7-pr.2722.58e3ccec3.0 → 3.27.7-pr.2723.00609ddb6.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,7 +1,7 @@
1
- import { defineComponent as ce, ref as $, computed as w, watch as ke, onBeforeMount as we, resolveComponent as L, createElementBlock as D, openBlock as V, createVNode as d, unref as e, createSlots as Ke, withCtx as m, createTextVNode as de, toDisplayString as H, createElementVNode as x, createBlock as W, Teleport as Ye, createCommentVNode as B, reactive as ye, resolveDynamicComponent as Pe, TransitionGroup as Xe, Fragment as qe, renderList as et, mergeProps as je, normalizeClass as tt, nextTick as lt, renderSlot as ot } from "vue";
1
+ import { defineComponent as ce, ref as $, computed as w, watch as ke, onBeforeMount as we, resolveComponent as J, createElementBlock as W, openBlock as V, createVNode as u, unref as e, createSlots as Ke, withCtx as m, createTextVNode as ue, toDisplayString as H, createElementVNode as x, createBlock as D, Teleport as Ye, createCommentVNode as B, reactive as ye, resolveDynamicComponent as Pe, TransitionGroup as Xe, Fragment as qe, renderList as et, mergeProps as je, normalizeClass as tt, nextTick as lt, renderSlot as ot } from "vue";
2
2
  import { useRouter as Ee } from "vue-router";
3
- import { BookIcon as Me, AddIcon as Ae, SecurityIcon as at, ConjourIcon as rt, AzureIcon as it, HashicorpIcon as nt, GoogleCloudIcon as st, AwsIcon as ut, CodeIcon as dt, KongIcon as ct } from "@kong/icons";
4
- import { useAxios as _e, useTableState as ft, useFetcher as De, useDeleteUrlBuilder as We, FetcherStatus as Be, EntityBaseTable as Le, PermissionsWrapper as ge, TableTags as pt, EntityFilter as ze, EntityDeleteModal as Ge, EntityTypes as Je, useErrors as Ze, EntityBaseFormType as Ve, useGatewayFeatureSupported as mt, EntityBaseForm as Qe, SupportedEntityType as Ue, EntityFormSection as Re, useStringHelpers as vt, useHelpers as gt, ConfigurationSchemaType as Se, ConfigurationSchemaSection as Oe, EntityBaseConfigCard as bt, ConfigCardItem as _t, useDebouncedFilter as Ne } from "@kong-ui-public/entities-shared";
3
+ import { BookIcon as Me, AddIcon as Re, SecurityIcon as at, ConjourIcon as rt, AzureIcon as it, HashicorpIcon as nt, GoogleCloudIcon as st, AwsIcon as dt, CodeIcon as ut, KongIcon as ct } from "@kong/icons";
4
+ import { useAxios as _e, useTableState as ft, useFetcher as We, useDeleteUrlBuilder as De, FetcherStatus as Be, EntityBaseTable as Je, PermissionsWrapper as ge, TableTags as pt, EntityFilter as Le, EntityDeleteModal as ze, EntityTypes as Ge, useErrors as Ze, EntityBaseFormType as Ve, useGatewayFeatureSupported as mt, EntityBaseForm as Qe, SupportedEntityType as Ue, EntityFormSection as Ae, useStringHelpers as vt, useHelpers as gt, ConfigurationSchemaType as Se, ConfigurationSchemaSection as Ne, EntityBaseConfigCard as bt, ConfigCardItem as _t, useDebouncedFilter as Fe } from "@kong-ui-public/entities-shared";
5
5
  import { createI18n as ht, i18nTComponent as yt } from "@kong-ui-public/i18n";
6
6
  const Vt = {
7
7
  create: "New vault",
@@ -84,7 +84,7 @@ const Vt = {
84
84
  success_brief: "Successfully copied to clipboard"
85
85
  }, xt = {
86
86
  vault_type: "Vault Type"
87
- }, At = {
87
+ }, Rt = {
88
88
  sections: {
89
89
  general: {
90
90
  title: "General Information",
@@ -314,9 +314,9 @@ const Vt = {
314
314
  oauth2_client_secret: {
315
315
  label: "OAuth2 Client Secret"
316
316
  },
317
- oauth2_role_name: {
318
- label: "OAuth2 Role Name",
319
- tooltip: "The configured role name in HashiCorp Vault for OAuth2 auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."
317
+ jwt_role: {
318
+ label: "JWT Role",
319
+ tooltip: "The configured role name in HashiCorp Vault for JWT auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."
320
320
  },
321
321
  oauth2_token_endpoint: {
322
322
  label: "OAuth2 Token Endpoint"
@@ -387,7 +387,7 @@ const Vt = {
387
387
  }
388
388
  },
389
389
  unavailable: "This vault provider is available on Enterprise."
390
- }, Rt = {
390
+ }, At = {
391
391
  title: "Look up Key in Vault",
392
392
  vault: {
393
393
  label: "Vault",
@@ -429,8 +429,8 @@ const Vt = {
429
429
  secrets: St,
430
430
  copy: It,
431
431
  labels: xt,
432
- form: At,
433
- vault_secret_picker: Rt
432
+ form: Rt,
433
+ vault_secret_picker: At
434
434
  };
435
435
  function Ut() {
436
436
  const o = ht("en-us", Et);
@@ -442,11 +442,11 @@ function Ut() {
442
442
  }
443
443
  const he = {
444
444
  useI18n: Ut
445
- }, Ie = "/v2/control-planes/{controlPlaneId}/core-entities", Fe = "/v2/control-planes/{controlPlaneId}/config-stores", xe = "/{workspace}", pe = {
445
+ }, Ie = "/v2/control-planes/{controlPlaneId}/core-entities", Oe = "/v2/control-planes/{controlPlaneId}/config-stores", xe = "/{workspace}", pe = {
446
446
  list: {
447
447
  konnect: {
448
448
  getAll: `${Ie}/vaults`,
449
- deleteConfigStore: `${Fe}/{id}?force=true`
449
+ deleteConfigStore: `${Oe}/{id}?force=true`
450
450
  },
451
451
  kongManager: {
452
452
  getAll: `${xe}/vaults`
@@ -455,7 +455,7 @@ const he = {
455
455
  form: {
456
456
  konnect: {
457
457
  create: `${Ie}/vaults`,
458
- createConfigStore: Fe,
458
+ createConfigStore: Oe,
459
459
  edit: `${Ie}/vaults/{id}`
460
460
  },
461
461
  kongManager: {
@@ -510,19 +510,19 @@ const he = {
510
510
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
511
511
  setup(o, { emit: S }) {
512
512
  var fe;
513
- const c = S, u = o, { i18n: { t: p } } = he.useI18n(), a = Ee(), { axiosInstance: K } = _e((fe = u.config) == null ? void 0 : fe.axiosRequestConfig), { hasRecords: I, handleStateChange: h } = ft(() => Q.value), n = w(() => I.value && u.config.app === "konnect"), g = w(() => u.config.app !== "kongManager" || !!u.config.disableSorting), f = {
513
+ const c = S, d = o, { i18n: { t: p } } = he.useI18n(), a = Ee(), { axiosInstance: K } = _e((fe = d.config) == null ? void 0 : fe.axiosRequestConfig), { hasRecords: I, handleStateChange: h } = ft(() => Q.value), n = w(() => I.value && d.config.app === "konnect"), g = w(() => d.config.app !== "kongManager" || !!d.config.disableSorting), f = {
514
514
  // the Prefix column is non-hidable
515
515
  prefix: { label: p("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0, hidable: !1 },
516
516
  // it's "Vault Type" on display, but we still use "name" to fit API schema
517
517
  name: { label: p("vaults.list.table_headers.name"), searchable: !0, sortable: !0 },
518
518
  description: { label: p("vaults.list.table_headers.description"), sortable: !1 },
519
519
  tags: { label: p("vaults.list.table_headers.tags"), sortable: !1 }
520
- }, O = f, X = w(() => {
520
+ }, N = f, X = w(() => {
521
521
  var E, U;
522
- let k = `${u.config.apiBaseUrl}${pe.list[u.config.app].getAll}`;
523
- return u.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((E = u.config) == null ? void 0 : E.controlPlaneId) || "") : u.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (U = u.config) != null && U.workspace ? `/${u.config.workspace}` : "")), k;
522
+ let k = `${d.config.apiBaseUrl}${pe.list[d.config.app].getAll}`;
523
+ return d.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((E = d.config) == null ? void 0 : E.controlPlaneId) || "") : d.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (U = d.config) != null && U.workspace ? `/${d.config.workspace}` : "")), k;
524
524
  }), Q = $(""), Y = w(() => {
525
- if (u.config.app === "konnect" || u.config.isExactMatch)
525
+ if (d.config.app === "konnect" || d.config.isExactMatch)
526
526
  return {
527
527
  isExactMatch: !0,
528
528
  placeholder: p("search.placeholder_for_vaults.konnect")
@@ -531,17 +531,17 @@ const he = {
531
531
  return {
532
532
  isExactMatch: !1,
533
533
  fields: { name: U, prefix: E },
534
- schema: u.config.filterSchema
534
+ schema: d.config.filterSchema
535
535
  };
536
536
  }), {
537
- fetcher: F,
537
+ fetcher: O,
538
538
  fetcherState: l,
539
539
  fetcherCacheKey: ae
540
- } = De(w(() => ({ ...u.config, cacheIdentifier: u.cacheIdentifier })), X), G = () => {
540
+ } = We(w(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), X), z = () => {
541
541
  Q.value = "";
542
542
  }, ee = () => {
543
543
  ae.value++;
544
- }, J = $(null), y = async (k, E) => {
544
+ }, G = $(null), y = async (k, E) => {
545
545
  const U = k.id;
546
546
  if (!await E(U)) {
547
547
  c("copy:error", {
@@ -556,7 +556,7 @@ const he = {
556
556
  field: "id",
557
557
  message: p("copy.success", { val: U })
558
558
  });
559
- }, N = async (k, E) => {
559
+ }, F = async (k, E) => {
560
560
  const U = JSON.stringify(k);
561
561
  if (!await E(U)) {
562
562
  c("copy:error", {
@@ -571,19 +571,19 @@ const he = {
571
571
  });
572
572
  }, re = async (k) => {
573
573
  var U;
574
- await ((U = u.canRetrieve) == null ? void 0 : U.call(u, k)) && a.push(u.config.getViewRoute(k.id));
574
+ await ((U = d.canRetrieve) == null ? void 0 : U.call(d, k)) && a.push(d.config.getViewRoute(k.id));
575
575
  }, ne = (k) => ({
576
576
  label: p("actions.view"),
577
- to: u.config.getViewRoute(k)
577
+ to: d.config.getViewRoute(k)
578
578
  }), le = (k) => ({
579
579
  label: p("actions.edit"),
580
- to: u.config.getEditRoute(k)
581
- }), q = $(void 0), ie = $(!1), T = $(!1), Z = $(""), te = We(u.config, X.value), b = (k) => {
580
+ to: d.config.getEditRoute(k)
581
+ }), q = $(void 0), ie = $(!1), T = $(!1), Z = $(""), te = De(d.config, X.value), b = (k) => {
582
582
  q.value = k, ie.value = !0;
583
583
  }, v = () => {
584
584
  ie.value = !1;
585
585
  }, P = async (k) => {
586
- const { apiBaseUrl: E, app: U, controlPlaneId: s } = u.config, r = `${E}${pe.list[U].deleteConfigStore}`.replace(/{controlPlaneId}/gi, s || "").replace(/{id}/gi, k);
586
+ const { apiBaseUrl: E, app: U, controlPlaneId: s } = d.config, r = `${E}${pe.list[U].deleteConfigStore}`.replace(/{controlPlaneId}/gi, s || "").replace(/{id}/gi, k);
587
587
  try {
588
588
  await K.delete(r);
589
589
  } catch {
@@ -593,7 +593,7 @@ const he = {
593
593
  if ((k = q.value) != null && k.id) {
594
594
  T.value = !0;
595
595
  try {
596
- await K.delete(te(q.value.id)), u.config.app === "konnect" && ((E = q.value.config) != null && E.config_store_id) && P(q.value.config.config_store_id), T.value = !1, ie.value = !1, ae.value++, c("delete:success", q.value);
596
+ await K.delete(te(q.value.id)), d.config.app === "konnect" && ((E = q.value.config) != null && E.config_store_id) && P(q.value.config.config_store_id), T.value = !1, ie.value = !1, ae.value++, c("delete:success", q.value);
597
597
  } catch (r) {
598
598
  Z.value = ((s = (U = r.response) == null ? void 0 : U.data) == null ? void 0 : s.message) || r.message || p("errors.delete"), c("error", r);
599
599
  } finally {
@@ -601,60 +601,60 @@ const he = {
601
601
  }
602
602
  }
603
603
  }, se = () => {
604
- a.push(u.config.createRoute);
604
+ a.push(d.config.createRoute);
605
605
  };
606
606
  ke(l, (k) => {
607
607
  var E, U, s;
608
608
  if (k.status === Be.Error) {
609
- J.value = {
609
+ G.value = {
610
610
  title: p("errors.general")
611
- }, (s = (U = (E = k.error) == null ? void 0 : E.response) == null ? void 0 : U.data) != null && s.message && (J.value.message = k.error.response.data.message), c("error", k.error);
611
+ }, (s = (U = (E = k.error) == null ? void 0 : E.response) == null ? void 0 : U.data) != null && s.message && (G.value.message = k.error.response.data.message), c("error", k.error);
612
612
  return;
613
613
  }
614
- J.value = null;
614
+ G.value = null;
615
615
  });
616
616
  const j = $({
617
- ctaPath: u.config.createRoute,
617
+ ctaPath: d.config.createRoute,
618
618
  ctaText: void 0,
619
- message: `${p("vaults.list.empty_state.description")}${u.config.additionMessageForEmptyState ? ` ${u.config.additionMessageForEmptyState}` : ""}`,
619
+ message: `${p("vaults.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
620
620
  title: p("vaults.title")
621
- }), A = $(!1);
621
+ }), R = $(!1);
622
622
  return we(async () => {
623
- A.value = await u.canCreate(), A.value && (j.value.title = p("vaults.list.empty_state.title"), j.value.ctaText = p("actions.create"));
623
+ R.value = await d.canCreate(), R.value && (j.value.title = p("vaults.list.empty_state.title"), j.value.ctaText = p("actions.create"));
624
624
  }), (k, E) => {
625
- const U = L("KButton"), s = L("KEmptyState"), r = L("KDropdownItem"), z = L("KClipboardProvider");
626
- return V(), D("div", Tt, [
627
- d(e(Le), {
625
+ const U = J("KButton"), s = J("KEmptyState"), r = J("KDropdownItem"), L = J("KClipboardProvider");
626
+ return V(), W("div", Tt, [
627
+ u(e(Je), {
628
628
  "cache-identifier": o.cacheIdentifier,
629
629
  "disable-sorting": g.value,
630
630
  "empty-state-options": j.value,
631
631
  "enable-entity-actions": "",
632
- "error-message": J.value,
633
- fetcher: e(F),
632
+ "error-message": G.value,
633
+ fetcher: e(O),
634
634
  "fetcher-cache-key": e(ae),
635
635
  "pagination-type": "offset",
636
636
  "preferences-storage-key": "kong-ui-entities-vaults-list",
637
637
  query: Q.value,
638
- "table-headers": e(O),
639
- onClearSearchInput: G,
638
+ "table-headers": e(N),
639
+ onClearSearchInput: z,
640
640
  "onClick:row": E[3] || (E[3] = (C) => re(C)),
641
641
  onSort: ee,
642
642
  onState: e(h)
643
643
  }, Ke({
644
644
  "toolbar-filter": m(() => [
645
- d(e(ze), {
645
+ u(e(Le), {
646
646
  modelValue: Q.value,
647
647
  "onUpdate:modelValue": E[0] || (E[0] = (C) => Q.value = C),
648
648
  config: Y.value
649
649
  }, null, 8, ["modelValue", "config"])
650
650
  ]),
651
651
  "toolbar-button": m(() => [
652
- (V(), W(Ye, {
652
+ (V(), D(Ye, {
653
653
  disabled: !o.useActionOutside,
654
654
  to: "#kong-ui-app-page-header-action-button"
655
655
  }, [
656
656
  x("div", Ht, [
657
- n.value ? (V(), W(U, {
657
+ n.value ? (V(), D(U, {
658
658
  key: 0,
659
659
  appearance: "secondary",
660
660
  class: "open-learning-hub",
@@ -663,23 +663,23 @@ const he = {
663
663
  onClick: E[1] || (E[1] = (C) => k.$emit("click:learn-more"))
664
664
  }, {
665
665
  default: m(() => [
666
- d(e(Me), { decorative: "" })
666
+ u(e(Me), { decorative: "" })
667
667
  ]),
668
668
  _: 1
669
669
  })) : B("", !0),
670
- d(e(ge), {
670
+ u(e(ge), {
671
671
  "auth-function": () => o.canCreate()
672
672
  }, {
673
673
  default: m(() => [
674
- d(U, {
674
+ u(U, {
675
675
  appearance: "primary",
676
676
  "data-testid": "toolbar-add-vault",
677
677
  size: o.useActionOutside ? "medium" : "large",
678
678
  to: o.config.createRoute
679
679
  }, {
680
680
  default: m(() => [
681
- d(e(Ae)),
682
- de(" " + H(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
681
+ u(e(Re)),
682
+ ue(" " + H(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
683
683
  ]),
684
684
  _: 1
685
685
  }, 8, ["size", "to"])
@@ -701,42 +701,42 @@ const he = {
701
701
  x("div", Kt, H(C ?? "-"), 1)
702
702
  ]),
703
703
  tags: m(({ rowValue: C }) => [
704
- d(e(pt), { tags: C }, null, 8, ["tags"])
704
+ u(e(pt), { tags: C }, null, 8, ["tags"])
705
705
  ]),
706
706
  actions: m(({ row: C }) => [
707
- d(z, null, {
707
+ u(L, null, {
708
708
  default: m(({ copyToClipboard: _ }) => [
709
- d(r, {
709
+ u(r, {
710
710
  "data-testid": "action-entity-copy-id",
711
711
  onClick: (oe) => y(C, _)
712
712
  }, {
713
713
  default: m(() => [
714
- de(H(e(p)("actions.copy_id")), 1)
714
+ ue(H(e(p)("actions.copy_id")), 1)
715
715
  ]),
716
716
  _: 1
717
717
  }, 8, ["onClick"])
718
718
  ]),
719
719
  _: 2
720
720
  }, 1024),
721
- d(z, null, {
721
+ u(L, null, {
722
722
  default: m(({ copyToClipboard: _ }) => [
723
- d(r, {
723
+ u(r, {
724
724
  "data-testid": "action-entity-copy-json",
725
- onClick: (oe) => N(C, _)
725
+ onClick: (oe) => F(C, _)
726
726
  }, {
727
727
  default: m(() => [
728
- de(H(e(p)("actions.copy_json")), 1)
728
+ ue(H(e(p)("actions.copy_json")), 1)
729
729
  ]),
730
730
  _: 1
731
731
  }, 8, ["onClick"])
732
732
  ]),
733
733
  _: 2
734
734
  }, 1024),
735
- d(e(ge), {
735
+ u(e(ge), {
736
736
  "auth-function": () => o.canRetrieve(C)
737
737
  }, {
738
738
  default: m(() => [
739
- d(r, {
739
+ u(r, {
740
740
  "data-testid": "action-entity-view",
741
741
  "has-divider": "",
742
742
  item: ne(C.id)
@@ -744,29 +744,29 @@ const he = {
744
744
  ]),
745
745
  _: 2
746
746
  }, 1032, ["auth-function"]),
747
- d(e(ge), {
747
+ u(e(ge), {
748
748
  "auth-function": () => o.canEdit(C)
749
749
  }, {
750
750
  default: m(() => [
751
- d(r, {
751
+ u(r, {
752
752
  "data-testid": "action-entity-edit",
753
753
  item: le(C.id)
754
754
  }, null, 8, ["item"])
755
755
  ]),
756
756
  _: 2
757
757
  }, 1032, ["auth-function"]),
758
- d(e(ge), {
758
+ u(e(ge), {
759
759
  "auth-function": () => o.canDelete(C)
760
760
  }, {
761
761
  default: m(() => [
762
- d(r, {
762
+ u(r, {
763
763
  danger: "",
764
764
  "data-testid": "action-entity-delete",
765
765
  "has-divider": "",
766
766
  onClick: (_) => b(C)
767
767
  }, {
768
768
  default: m(() => [
769
- de(H(e(p)("actions.delete")), 1)
769
+ ue(H(e(p)("actions.delete")), 1)
770
770
  ]),
771
771
  _: 1
772
772
  }, 8, ["onClick"])
@@ -781,35 +781,35 @@ const he = {
781
781
  fn: m(() => {
782
782
  var C;
783
783
  return [
784
- d(s, {
784
+ u(s, {
785
785
  "data-testid": "vaults-entity-empty-state",
786
786
  "icon-background": "",
787
787
  message: e(p)("vaults.list.empty_state_v2.description"),
788
788
  title: e(p)("vaults.list.empty_state_v2.title")
789
789
  }, Ke({
790
790
  icon: m(() => [
791
- d(e(at), { decorative: "" })
791
+ u(e(at), { decorative: "" })
792
792
  ]),
793
793
  action: m(() => [
794
- A.value ? (V(), W(U, {
794
+ R.value ? (V(), D(U, {
795
795
  key: 0,
796
796
  "data-testid": "entity-create-button",
797
797
  onClick: se
798
798
  }, {
799
799
  default: m(() => [
800
- d(e(Ae), { decorative: "" }),
801
- de(" " + H(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
800
+ u(e(Re), { decorative: "" }),
801
+ ue(" " + H(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
802
802
  ]),
803
803
  _: 1
804
804
  })) : B("", !0),
805
- d(U, {
805
+ u(U, {
806
806
  appearance: "secondary",
807
807
  "data-testid": "entity-learn-more-button",
808
808
  onClick: E[2] || (E[2] = (_) => k.$emit("click:learn-more"))
809
809
  }, {
810
810
  default: m(() => [
811
- d(e(Me), { decorative: "" }),
812
- de(" " + H(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
811
+ u(e(Me), { decorative: "" }),
812
+ ue(" " + H(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
813
813
  ]),
814
814
  _: 1
815
815
  })
@@ -819,7 +819,7 @@ const he = {
819
819
  (C = o.config) != null && C.isControlPlaneGroup ? {
820
820
  name: "default",
821
821
  fn: m(() => [
822
- de(H(e(p)("vaults.list.empty_state_v2.group")), 1)
822
+ ue(H(e(p)("vaults.list.empty_state_v2.group")), 1)
823
823
  ]),
824
824
  key: "0"
825
825
  } : void 0
@@ -829,11 +829,11 @@ const he = {
829
829
  key: "0"
830
830
  } : void 0
831
831
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
832
- d(e(Ge), {
832
+ u(e(ze), {
833
833
  "action-pending": T.value,
834
834
  description: e(p)("delete.description"),
835
835
  "entity-name": q.value && (q.value.prefix || q.value.id),
836
- "entity-type": e(Je).Vault,
836
+ "entity-type": e(Ge).Vault,
837
837
  error: Z.value,
838
838
  title: e(p)("delete.title"),
839
839
  visible: ie.value,
@@ -845,30 +845,30 @@ const he = {
845
845
  }
846
846
  }), me = (o, S) => {
847
847
  const c = o.__vccOpts || o;
848
- for (const [u, p] of S)
849
- c[u] = p;
848
+ for (const [d, p] of S)
849
+ c[d] = p;
850
850
  return c;
851
851
  }, El = /* @__PURE__ */ me(Pt, [["__scopeId", "data-v-0f7e9fff"]]);
852
- var t = /* @__PURE__ */ ((o) => (o.AWS = "aws", o.GCP = "gcp", o.HCV = "hcv", o.ENV = "env", o.AZURE = "azure", o.KONNECT = "konnect", o.CONJUR = "conjur", o))(t || {}), R = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.K8S = "kubernetes", o.APP_ROLE = "approle", o.CERT = "cert", o.OAUTH2 = "oauth2", o))(R || {});
853
- const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-provider-cards-container" }, Nt = ["data-testid"], Ft = { class: "provider-item-title-container" }, qt = { class: "provider-item-title" }, jt = { class: "provider-item-description" }, Dt = {
852
+ var t = /* @__PURE__ */ ((o) => (o.AWS = "aws", o.GCP = "gcp", o.HCV = "hcv", o.ENV = "env", o.AZURE = "azure", o.KONNECT = "konnect", o.CONJUR = "conjur", o))(t || {}), A = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.K8S = "kubernetes", o.APP_ROLE = "approle", o.CERT = "cert", o.JWT = "jwt", o))(A || {});
853
+ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-provider-cards-container" }, Ft = ["data-testid"], Ot = { class: "provider-item-title-container" }, qt = { class: "provider-item-title" }, jt = { class: "provider-item-description" }, Wt = {
854
854
  key: "kong-vault-config-fields",
855
855
  class: "vault-form-config-fields-container"
856
- }, Wt = {
856
+ }, Dt = {
857
857
  key: 0,
858
858
  class: "vault-form-config-auth-method-container"
859
859
  }, Bt = {
860
860
  key: 1,
861
861
  class: "vault-form-config-auth-method-container"
862
- }, Lt = {
862
+ }, Jt = {
863
863
  key: 2,
864
864
  class: "vault-form-config-auth-method-container"
865
- }, zt = {
865
+ }, Lt = {
866
866
  key: 3,
867
867
  class: "vault-form-config-auth-method-container"
868
- }, Gt = {
868
+ }, zt = {
869
869
  key: 4,
870
870
  class: "vault-form-config-auth-method-container"
871
- }, Jt = { key: 6 }, Zt = { class: "wrapper" }, Qt = { class: "item-50" }, Yt = { class: "item-50" }, Xt = { class: "wrapper" }, el = { class: "item-100" }, tl = /* @__PURE__ */ ce({
871
+ }, Gt = { key: 6 }, Zt = { class: "wrapper" }, Qt = { class: "item-50" }, Yt = { class: "item-50" }, Xt = { class: "wrapper" }, el = { class: "item-100" }, tl = /* @__PURE__ */ ce({
872
872
  __name: "VaultForm",
873
873
  props: {
874
874
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -887,7 +887,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
887
887
  emits: ["update", "error", "loading"],
888
888
  setup(o, { emit: S }) {
889
889
  var U;
890
- const c = o, u = S, { i18nT: p, i18n: { t: a } } = he.useI18n(), K = Ee(), { axiosInstance: I } = _e((U = c.config) == null ? void 0 : U.axiosRequestConfig), { getMessageFromError: h } = Ze(), n = ye({
890
+ const c = o, d = S, { i18nT: p, i18n: { t: a } } = he.useI18n(), K = Ee(), { axiosInstance: I } = _e((U = c.config) == null ? void 0 : U.axiosRequestConfig), { getMessageFromError: h } = Ze(), n = ye({
891
891
  fields: {
892
892
  prefix: "",
893
893
  description: "",
@@ -899,7 +899,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
899
899
  prefix: "",
900
900
  description: "",
901
901
  tags: ""
902
- }), f = $(c.config.app === "konnect" ? t.KONNECT : t.ENV), O = $(null), X = $(), Q = w(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(f.value)), Y = w(() => [
902
+ }), f = $(c.config.app === "konnect" ? t.KONNECT : t.ENV), N = $(null), X = $(), Q = w(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(f.value)), Y = w(() => [
903
903
  ...c.config.app === "konnect" ? [{
904
904
  label: a("form.config.konnect.label"),
905
905
  value: t.KONNECT
@@ -933,22 +933,22 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
933
933
  value: t.CONJUR,
934
934
  disabled: !le.value
935
935
  }] : []
936
- ]), F = c.config.base64FieldAvailable ? { base64_decode: !1 } : {}, l = ye({
936
+ ]), O = c.config.base64FieldAvailable ? { base64_decode: !1 } : {}, l = ye({
937
937
  [t.KONNECT]: {},
938
938
  [t.ENV]: {
939
939
  prefix: "",
940
- ...F
940
+ ...O
941
941
  },
942
942
  [t.AWS]: {
943
943
  region: "",
944
944
  endpoint_url: "",
945
945
  assume_role_arn: "",
946
946
  role_session_name: "KongVault",
947
- ...F
947
+ ...O
948
948
  },
949
949
  [t.GCP]: {
950
950
  project_id: "",
951
- ...F
951
+ ...O
952
952
  },
953
953
  [t.HCV]: {
954
954
  protocol: "http",
@@ -957,7 +957,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
957
957
  mount: "secret",
958
958
  kv: "v1",
959
959
  namespace: "",
960
- auth_method: R.TOKEN,
960
+ auth_method: A.TOKEN,
961
961
  token: "",
962
962
  kube_role: "",
963
963
  kube_auth_path: "",
@@ -972,10 +972,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
972
972
  cert_auth_role_name: "",
973
973
  oauth2_client_id: "",
974
974
  oauth2_client_secret: "",
975
- oauth2_role_name: "",
975
+ jwt_role: "",
976
976
  oauth2_token_endpoint: "",
977
977
  oauth2_audiences: "",
978
- ...F
978
+ ...O
979
979
  },
980
980
  [t.AZURE]: {
981
981
  location: "",
@@ -984,29 +984,29 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
984
984
  credentials_prefix: "AZURE",
985
985
  client_id: "",
986
986
  tenant_id: "",
987
- ...F
987
+ ...O
988
988
  },
989
989
  [t.CONJUR]: {
990
990
  endpoint_url: "",
991
991
  auth_method: "api_key",
992
- ...F
992
+ ...O
993
993
  }
994
994
  }), ae = ye({
995
995
  [t.KONNECT]: {},
996
996
  [t.ENV]: {
997
997
  prefix: "",
998
- ...F
998
+ ...O
999
999
  },
1000
1000
  [t.AWS]: {
1001
1001
  region: "",
1002
1002
  endpoint_url: "",
1003
1003
  assume_role_arn: "",
1004
1004
  role_session_name: "KongVault",
1005
- ...F
1005
+ ...O
1006
1006
  },
1007
1007
  [t.GCP]: {
1008
1008
  project_id: "",
1009
- ...F
1009
+ ...O
1010
1010
  },
1011
1011
  [t.HCV]: {
1012
1012
  protocol: "http",
@@ -1015,7 +1015,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1015
1015
  mount: "secret",
1016
1016
  kv: "v1",
1017
1017
  namespace: "",
1018
- auth_method: R.TOKEN,
1018
+ auth_method: A.TOKEN,
1019
1019
  token: "",
1020
1020
  kube_role: "",
1021
1021
  kube_auth_path: "",
@@ -1025,7 +1025,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1025
1025
  approle_secret_id: "",
1026
1026
  approle_secret_id_file: "",
1027
1027
  approle_response_wrapping: !1,
1028
- ...F
1028
+ ...O
1029
1029
  },
1030
1030
  [t.AZURE]: {
1031
1031
  location: "",
@@ -1034,14 +1034,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1034
1034
  credentials_prefix: "AZURE",
1035
1035
  client_id: "",
1036
1036
  tenant_id: "",
1037
- ...F
1037
+ ...O
1038
1038
  },
1039
1039
  [t.CONJUR]: {
1040
1040
  endpoint_url: "",
1041
1041
  auth_method: "api_key",
1042
- ...F
1042
+ ...O
1043
1043
  }
1044
- }), G = [
1044
+ }), z = [
1045
1045
  { label: `${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`, value: "us-east-1" },
1046
1046
  { label: `${a("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`, value: "us-east-2" },
1047
1047
  { label: `${a("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`, value: "us-west-1" },
@@ -1066,10 +1066,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1066
1066
  { label: `${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`, value: "sa-east-1" },
1067
1067
  { label: `${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
1068
1068
  { label: `${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
1069
- ], ee = [{ label: "secrets", value: "secrets" }], J = [{ label: "http", value: "http" }, { label: "https", value: "https" }], y = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], N = w(() => c.vaultId ? Ve.Edit : Ve.Create), re = w(() => {
1069
+ ], ee = [{ label: "secrets", value: "secrets" }], G = [{ label: "http", value: "http" }, { label: "https", value: "https" }], y = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], F = w(() => c.vaultId ? Ve.Edit : Ve.Create), re = w(() => {
1070
1070
  var s, r;
1071
1071
  return (r = pe.form[(s = c.config) == null ? void 0 : s.app]) == null ? void 0 : r.edit;
1072
- }), ne = w(() => N.value === Ve.Edit && c.config.app === "kongManager"), le = w(() => c.config.app === "konnect" || mt({
1072
+ }), ne = w(() => F.value === Ve.Edit && c.config.app === "kongManager"), le = w(() => c.config.app === "konnect" || mt({
1073
1073
  gatewayInfo: c.config.gatewayInfo,
1074
1074
  // vault name can only be `env` in Gateway Community Edition
1075
1075
  supportedRange: {
@@ -1079,17 +1079,17 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1079
1079
  var s;
1080
1080
  K.push(((s = c.config) == null ? void 0 : s.cancelRoute) || { name: "vault-list" });
1081
1081
  }, ie = (s) => {
1082
- u("loading", s);
1082
+ d("loading", s);
1083
1083
  }, T = (s) => {
1084
- u("error", s);
1084
+ d("error", s);
1085
1085
  }, Z = (s) => {
1086
1086
  switch (s) {
1087
1087
  case t.KONNECT:
1088
1088
  return ct;
1089
1089
  case t.ENV:
1090
- return dt;
1091
- case t.AWS:
1092
1090
  return ut;
1091
+ case t.AWS:
1092
+ return dt;
1093
1093
  case t.GCP:
1094
1094
  return st;
1095
1095
  case t.HCV:
@@ -1117,12 +1117,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1117
1117
  return a("form.config.conjur.description");
1118
1118
  }
1119
1119
  }, b = (s) => {
1120
- var C, _, oe, ue, ve, i;
1120
+ var C, _, oe, de, ve, i;
1121
1121
  n.fields.prefix = ((C = s == null ? void 0 : s.item) == null ? void 0 : C.prefix) || (s == null ? void 0 : s.prefix) || "", n.fields.description = ((_ = s == null ? void 0 : s.item) == null ? void 0 : _.description) || (s == null ? void 0 : s.description) || "";
1122
1122
  const r = ((oe = s == null ? void 0 : s.item) == null ? void 0 : oe.tags) || (s == null ? void 0 : s.tags) || [];
1123
1123
  n.fields.tags = (r == null ? void 0 : r.join(", ")) || "", Object.assign(g, n.fields);
1124
- const z = ((ue = s == null ? void 0 : s.item) == null ? void 0 : ue.config) || (s == null ? void 0 : s.config) || null;
1125
- z && (Object.keys(z).length || (s == null ? void 0 : s.name) === t.KONNECT) ? (f.value = ((ve = s == null ? void 0 : s.item) == null ? void 0 : ve.name) || (s == null ? void 0 : s.name) || "", O.value = f.value, X.value = ((i = s == null ? void 0 : s.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(l[f.value], z), Object.assign(ae[f.value], z)) : n.errorMessage = "Error loading vault config";
1124
+ const L = ((de = s == null ? void 0 : s.item) == null ? void 0 : de.config) || (s == null ? void 0 : s.config) || null;
1125
+ L && (Object.keys(L).length || (s == null ? void 0 : s.name) === t.KONNECT) ? (f.value = ((ve = s == null ? void 0 : s.item) == null ? void 0 : ve.name) || (s == null ? void 0 : s.name) || "", N.value = f.value, X.value = ((i = s == null ? void 0 : s.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(l[f.value], L), Object.assign(ae[f.value], L)) : n.errorMessage = "Error loading vault config";
1126
1126
  }, v = (s) => s === "" || s == null, P = w(() => f.value === t.HCV ? !Object.keys(l[t.HCV]).filter((s) => [
1127
1127
  "namespace",
1128
1128
  "ttl",
@@ -1133,12 +1133,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1133
1133
  "approle_secret_id",
1134
1134
  "approle_secret_id_file",
1135
1135
  "oauth2_audiences"
1136
- ].includes(s) || l[t.HCV].auth_method !== R.K8S && (s === "kube_role" || s === "kube_api_token_file") || l[t.HCV].auth_method !== R.TOKEN && s === "token" || l[t.HCV].auth_method !== R.APP_ROLE && (s === "approle_role_id" || s === "approle_response_wrapping") || l[t.HCV].auth_method === R.APP_ROLE && s === "approle_response_wrapping" && typeof l[f.value][s] == "boolean" || l[t.HCV].auth_method !== R.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(s) || l[t.HCV].auth_method !== R.OAUTH2 && ["oauth2_client_id", "oauth2_client_secret", "oauth2_role_name", "oauth2_token_endpoint"].includes(s) ? !1 : v(l[f.value][s])).length : f.value === t.AZURE ? !Object.keys(l[t.AZURE]).filter((s) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : v(l[f.value][s])).length : f.value === t.AWS ? !Object.keys(l[t.AWS]).filter((s) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(s) ? !1 : v(l[f.value][s])).length : !Object.keys(l[f.value]).filter((s) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : v(l[f.value][s])).length), M = w(() => !!n.fields.prefix && P.value), se = w(() => JSON.stringify(n.fields) !== JSON.stringify(g) || f.value !== O.value || JSON.stringify(l[f.value]) !== JSON.stringify(ae[f.value])), j = w(() => {
1137
- var r, z;
1138
- let s = `${c.config.apiBaseUrl}${pe.form[c.config.app][N.value]}`;
1139
- return c.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((r = c.config) == null ? void 0 : r.controlPlaneId) || "") : c.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (z = c.config) != null && z.workspace ? `/${c.config.workspace}` : "")), s = s.replace(/{id}/gi, c.vaultId), s;
1140
- }), A = w(() => {
1141
- var ue, ve;
1136
+ ].includes(s) || l[t.HCV].auth_method !== A.K8S && (s === "kube_role" || s === "kube_api_token_file") || l[t.HCV].auth_method !== A.TOKEN && s === "token" || l[t.HCV].auth_method !== A.APP_ROLE && (s === "approle_role_id" || s === "approle_response_wrapping") || l[t.HCV].auth_method === A.APP_ROLE && s === "approle_response_wrapping" && typeof l[f.value][s] == "boolean" || l[t.HCV].auth_method !== A.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(s) || l[t.HCV].auth_method !== A.JWT && ["oauth2_client_id", "oauth2_client_secret", "jwt_role", "oauth2_token_endpoint"].includes(s) ? !1 : v(l[f.value][s])).length : f.value === t.AZURE ? !Object.keys(l[t.AZURE]).filter((s) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : v(l[f.value][s])).length : f.value === t.AWS ? !Object.keys(l[t.AWS]).filter((s) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(s) ? !1 : v(l[f.value][s])).length : !Object.keys(l[f.value]).filter((s) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : v(l[f.value][s])).length), M = w(() => !!n.fields.prefix && P.value), se = w(() => JSON.stringify(n.fields) !== JSON.stringify(g) || f.value !== N.value || JSON.stringify(l[f.value]) !== JSON.stringify(ae[f.value])), j = w(() => {
1137
+ var r, L;
1138
+ let s = `${c.config.apiBaseUrl}${pe.form[c.config.app][F.value]}`;
1139
+ return c.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((r = c.config) == null ? void 0 : r.controlPlaneId) || "") : c.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (L = c.config) != null && L.workspace ? `/${c.config.workspace}` : "")), s = s.replace(/{id}/gi, c.vaultId), s;
1140
+ }), R = w(() => {
1141
+ var de, ve;
1142
1142
  const s = {
1143
1143
  protocol: l[t.HCV].protocol,
1144
1144
  host: l[t.HCV].host,
@@ -1148,45 +1148,45 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1148
1148
  namespace: l[t.HCV].namespace || null,
1149
1149
  auth_method: l[t.HCV].auth_method,
1150
1150
  ...c.config.base64FieldAvailable && { base64_decode: l[t.HCV].base64_decode },
1151
- ...l[t.HCV].auth_method === R.TOKEN && { token: l[t.HCV].token },
1151
+ ...l[t.HCV].auth_method === A.TOKEN && { token: l[t.HCV].token },
1152
1152
  // For Kong Admin API, when auth_method is kubernetes, token must be in the request body and its value has to be null
1153
- ...l[t.HCV].auth_method === R.K8S && {
1153
+ ...l[t.HCV].auth_method === A.K8S && {
1154
1154
  kube_role: l[t.HCV].kube_role,
1155
1155
  kube_auth_path: l[t.HCV].kube_auth_path || void 0,
1156
1156
  kube_api_token_file: l[t.HCV].kube_api_token_file,
1157
1157
  token: null
1158
1158
  },
1159
- ...l[t.HCV].auth_method === R.APP_ROLE && {
1159
+ ...l[t.HCV].auth_method === A.APP_ROLE && {
1160
1160
  approle_auth_path: l[t.HCV].approle_auth_path || void 0,
1161
1161
  approle_role_id: l[t.HCV].approle_role_id,
1162
1162
  approle_secret_id: l[t.HCV].approle_secret_id || void 0,
1163
1163
  approle_secret_id_file: l[t.HCV].approle_secret_id_file || void 0,
1164
1164
  approle_response_wrapping: l[t.HCV].approle_response_wrapping ?? !1
1165
1165
  },
1166
- ...l[t.HCV].auth_method === R.CERT && {
1166
+ ...l[t.HCV].auth_method === A.CERT && {
1167
1167
  cert_auth_role_name: l[t.HCV].cert_auth_role_name,
1168
1168
  cert_auth_cert: l[t.HCV].cert_auth_cert,
1169
1169
  cert_auth_cert_key: l[t.HCV].cert_auth_cert_key
1170
1170
  },
1171
- ...l[t.HCV].auth_method === R.OAUTH2 && {
1171
+ ...l[t.HCV].auth_method === A.JWT && {
1172
1172
  oauth2_audiences: l[t.HCV].oauth2_audiences || null,
1173
1173
  oauth2_client_id: l[t.HCV].oauth2_client_id,
1174
1174
  oauth2_client_secret: l[t.HCV].oauth2_client_secret,
1175
- oauth2_role_name: l[t.HCV].oauth2_role_name,
1175
+ jwt_role: l[t.HCV].jwt_role,
1176
1176
  oauth2_token_endpoint: l[t.HCV].oauth2_token_endpoint
1177
1177
  }
1178
1178
  }, r = {
1179
1179
  ...l[f.value],
1180
1180
  client_id: l[f.value].client_id || null,
1181
1181
  tenant_id: l[f.value].tenant_id || null
1182
- }, z = {
1182
+ }, L = {
1183
1183
  ...l[f.value],
1184
1184
  endpoint_url: l[f.value].endpoint_url || null,
1185
1185
  assume_role_arn: l[f.value].assume_role_arn || null,
1186
1186
  ...c.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: l[f.value].sts_endpoint_url || null } : {}
1187
1187
  };
1188
1188
  let C = l[f.value];
1189
- f.value === t.HCV ? C = s : f.value === t.AZURE ? C = r : f.value === t.AWS && (C = z);
1189
+ f.value === t.HCV ? C = s : f.value === t.AZURE ? C = r : f.value === t.AWS && (C = L);
1190
1190
  let _ = {};
1191
1191
  if (![t.KONNECT, t.ENV].includes(f.value)) {
1192
1192
  const i = l[f.value], Te = i.ttl, He = i.neg_ttl, $e = i.resurrect_ttl;
@@ -1199,7 +1199,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1199
1199
  return {
1200
1200
  prefix: n.fields.prefix,
1201
1201
  description: n.fields.description || null,
1202
- tags: (ve = (ue = n.fields.tags.split(",")) == null ? void 0 : ue.map((i) => String(i || "").trim())) == null ? void 0 : ve.filter((i) => i !== ""),
1202
+ tags: (ve = (de = n.fields.tags.split(",")) == null ? void 0 : de.map((i) => String(i || "").trim())) == null ? void 0 : ve.filter((i) => i !== ""),
1203
1203
  name: f.value,
1204
1204
  config: {
1205
1205
  ...C,
@@ -1207,19 +1207,19 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1207
1207
  }
1208
1208
  };
1209
1209
  }), fe = w(() => ({
1210
- ...A.value,
1210
+ ...R.value,
1211
1211
  config: {
1212
- ...A.value.config,
1212
+ ...R.value.config,
1213
1213
  config_store_id: X.value
1214
1214
  }
1215
1215
  })), k = async () => {
1216
1216
  var s;
1217
1217
  try {
1218
1218
  n.isReadonly = !0;
1219
- const r = `${c.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((s = c.config) == null ? void 0 : s.controlPlaneId) || ""), z = await I.post(r);
1220
- return z == null ? void 0 : z.data.id;
1219
+ const r = `${c.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((s = c.config) == null ? void 0 : s.controlPlaneId) || ""), L = await I.post(r);
1220
+ return L == null ? void 0 : L.data.id;
1221
1221
  } catch (r) {
1222
- n.errorMessage = h(r), u("error", r);
1222
+ n.errorMessage = h(r), d("error", r);
1223
1223
  } finally {
1224
1224
  n.isReadonly = !1;
1225
1225
  }
@@ -1228,24 +1228,24 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1228
1228
  try {
1229
1229
  n.isReadonly = !0;
1230
1230
  let r;
1231
- N.value === "create" ? f.value === t.KONNECT ? (X.value = await k(), r = await I.post(j.value, fe.value)) : r = await I.post(j.value, A.value) : N.value === "edit" && (f.value === t.KONNECT && !X.value ? (X.value = await k(), r = await I.put(j.value, fe.value)) : r = ((s = c.config) == null ? void 0 : s.app) === "konnect" ? await I.put(j.value, fe.value) : await I.patch(j.value, A.value)), b(r == null ? void 0 : r.data), u("update", r == null ? void 0 : r.data);
1231
+ F.value === "create" ? f.value === t.KONNECT ? (X.value = await k(), r = await I.post(j.value, fe.value)) : r = await I.post(j.value, R.value) : F.value === "edit" && (f.value === t.KONNECT && !X.value ? (X.value = await k(), r = await I.put(j.value, fe.value)) : r = ((s = c.config) == null ? void 0 : s.app) === "konnect" ? await I.put(j.value, fe.value) : await I.patch(j.value, R.value)), b(r == null ? void 0 : r.data), d("update", r == null ? void 0 : r.data);
1232
1232
  } catch (r) {
1233
- n.errorMessage = h(r), u("error", r);
1233
+ n.errorMessage = h(r), d("error", r);
1234
1234
  } finally {
1235
1235
  n.isReadonly = !1;
1236
1236
  }
1237
1237
  };
1238
1238
  return (s, r) => {
1239
- const z = L("KTooltip"), C = L("KSelect"), _ = L("KInput"), oe = L("KCheckbox"), ue = L("KTextArea"), ve = L("KCollapse");
1240
- return V(), D("div", Mt, [
1241
- d(e(Qe), {
1239
+ const L = J("KTooltip"), C = J("KSelect"), _ = J("KInput"), oe = J("KCheckbox"), de = J("KTextArea"), ve = J("KCollapse");
1240
+ return V(), W("div", Mt, [
1241
+ u(e(Qe), {
1242
1242
  "can-submit": M.value && se.value,
1243
1243
  config: o.config,
1244
1244
  "edit-id": o.vaultId,
1245
1245
  "entity-type": e(Ue).Vault,
1246
1246
  "error-message": n.errorMessage,
1247
1247
  "fetch-url": re.value,
1248
- "form-fields": A.value,
1248
+ "form-fields": R.value,
1249
1249
  "is-readonly": n.isReadonly,
1250
1250
  onCancel: q,
1251
1251
  "onFetch:error": T,
@@ -1254,13 +1254,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1254
1254
  onSubmit: E
1255
1255
  }, {
1256
1256
  default: m(() => [
1257
- d(e(Re), {
1257
+ u(e(Ae), {
1258
1258
  description: e(a)("form.sections.config.description"),
1259
1259
  title: e(a)("form.sections.config.title")
1260
1260
  }, {
1261
1261
  default: m(() => [
1262
- x("div", Ot, [
1263
- d(C, {
1262
+ x("div", Nt, [
1263
+ u(C, {
1264
1264
  modelValue: f.value,
1265
1265
  "onUpdate:modelValue": r[0] || (r[0] = (i) => f.value = i),
1266
1266
  "data-testid": "provider-select",
@@ -1270,11 +1270,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1270
1270
  readonly: n.isReadonly
1271
1271
  }, {
1272
1272
  "selected-item-template": m(({ item: i }) => [
1273
- (V(), W(Pe(Z(i.value)))),
1273
+ (V(), D(Pe(Z(i.value)))),
1274
1274
  x("span", null, H(i == null ? void 0 : i.label), 1)
1275
1275
  ]),
1276
1276
  "item-template": m(({ item: i }) => [
1277
- d(z, {
1277
+ u(L, {
1278
1278
  placement: "top",
1279
1279
  text: i.disabled ? e(a)("form.unavailable") : ""
1280
1280
  }, {
@@ -1283,12 +1283,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1283
1283
  class: "provider-item",
1284
1284
  "data-testid": `vault-form-provider-${i.value}`
1285
1285
  }, [
1286
- (V(), W(Pe(Z(i.value)))),
1287
- x("div", Ft, [
1286
+ (V(), D(Pe(Z(i.value)))),
1287
+ x("div", Ot, [
1288
1288
  x("span", qt, H(i == null ? void 0 : i.label), 1),
1289
1289
  x("span", jt, H(te(i.value)), 1)
1290
1290
  ])
1291
- ], 8, Nt)
1291
+ ], 8, Ft)
1292
1292
  ]),
1293
1293
  _: 2
1294
1294
  }, 1032, ["text"])
@@ -1296,10 +1296,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1296
1296
  _: 1
1297
1297
  }, 8, ["modelValue", "disabled", "items", "readonly"])
1298
1298
  ]),
1299
- d(Xe, { name: "appear" }, {
1299
+ u(Xe, { name: "appear" }, {
1300
1300
  default: m(() => [
1301
- f.value === e(t).ENV ? (V(), D("div", Dt, [
1302
- d(_, {
1301
+ f.value === e(t).ENV ? (V(), W("div", Wt, [
1302
+ u(_, {
1303
1303
  modelValue: l[e(t).ENV].prefix,
1304
1304
  "onUpdate:modelValue": r[1] || (r[1] = (i) => l[e(t).ENV].prefix = i),
1305
1305
  modelModifiers: { trim: !0 },
@@ -1315,7 +1315,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1315
1315
  required: "",
1316
1316
  type: "text"
1317
1317
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1318
- o.config.base64FieldAvailable ? (V(), W(oe, {
1318
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1319
1319
  key: 0,
1320
1320
  modelValue: l[e(t).ENV].base64_decode,
1321
1321
  "onUpdate:modelValue": r[2] || (r[2] = (i) => l[e(t).ENV].base64_decode = i),
@@ -1328,15 +1328,15 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1328
1328
  readonly: n.isReadonly
1329
1329
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1330
1330
  ])) : B("", !0),
1331
- f.value === e(t).AWS ? (V(), D("div", {
1331
+ f.value === e(t).AWS ? (V(), W("div", {
1332
1332
  key: `${e(t).AWS}-vault-config-fields`,
1333
1333
  class: "vault-form-config-fields-container"
1334
1334
  }, [
1335
- d(C, {
1335
+ u(C, {
1336
1336
  modelValue: l[e(t).AWS].region,
1337
1337
  "onUpdate:modelValue": r[3] || (r[3] = (i) => l[e(t).AWS].region = i),
1338
1338
  "data-testid": "vault-form-config-aws-region",
1339
- items: G,
1339
+ items: z,
1340
1340
  label: e(a)("form.config.aws.fields.region.label"),
1341
1341
  "label-attributes": { info: e(a)("form.config.aws.fields.region.tooltip") },
1342
1342
  placeholder: e(a)("form.config.aws.fields.region.placeholder"),
@@ -1344,7 +1344,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1344
1344
  required: "",
1345
1345
  width: "100%"
1346
1346
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1347
- d(_, {
1347
+ u(_, {
1348
1348
  modelValue: l[e(t).AWS].endpoint_url,
1349
1349
  "onUpdate:modelValue": r[4] || (r[4] = (i) => l[e(t).AWS].endpoint_url = i),
1350
1350
  modelModifiers: { trim: !0 },
@@ -1358,7 +1358,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1358
1358
  readonly: n.isReadonly,
1359
1359
  type: "text"
1360
1360
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1361
- d(_, {
1361
+ u(_, {
1362
1362
  modelValue: l[e(t).AWS].assume_role_arn,
1363
1363
  "onUpdate:modelValue": r[5] || (r[5] = (i) => l[e(t).AWS].assume_role_arn = i),
1364
1364
  modelModifiers: { trim: !0 },
@@ -1372,7 +1372,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1372
1372
  readonly: n.isReadonly,
1373
1373
  type: "text"
1374
1374
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1375
- d(_, {
1375
+ u(_, {
1376
1376
  modelValue: l[e(t).AWS].role_session_name,
1377
1377
  "onUpdate:modelValue": r[6] || (r[6] = (i) => l[e(t).AWS].role_session_name = i),
1378
1378
  modelModifiers: { trim: !0 },
@@ -1387,7 +1387,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1387
1387
  required: "",
1388
1388
  type: "text"
1389
1389
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1390
- o.config.awsStsEndpointUrlAvailable ? (V(), W(_, {
1390
+ o.config.awsStsEndpointUrlAvailable ? (V(), D(_, {
1391
1391
  key: 0,
1392
1392
  modelValue: l[e(t).AWS].sts_endpoint_url,
1393
1393
  "onUpdate:modelValue": r[7] || (r[7] = (i) => l[e(t).AWS].sts_endpoint_url = i),
@@ -1402,7 +1402,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1402
1402
  readonly: n.isReadonly,
1403
1403
  type: "text"
1404
1404
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0),
1405
- o.config.base64FieldAvailable ? (V(), W(oe, {
1405
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1406
1406
  key: 1,
1407
1407
  modelValue: l[e(t).AWS].base64_decode,
1408
1408
  "onUpdate:modelValue": r[8] || (r[8] = (i) => l[e(t).AWS].base64_decode = i),
@@ -1415,11 +1415,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1415
1415
  readonly: n.isReadonly
1416
1416
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1417
1417
  ])) : B("", !0),
1418
- f.value === e(t).GCP ? (V(), D("div", {
1418
+ f.value === e(t).GCP ? (V(), W("div", {
1419
1419
  key: `${e(t).GCP}-vault-config-fields`,
1420
1420
  class: "vault-form-config-fields-container"
1421
1421
  }, [
1422
- d(_, {
1422
+ u(_, {
1423
1423
  modelValue: l[e(t).GCP].project_id,
1424
1424
  "onUpdate:modelValue": r[9] || (r[9] = (i) => l[e(t).GCP].project_id = i),
1425
1425
  modelModifiers: { trim: !0 },
@@ -1432,7 +1432,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1432
1432
  type: "text"
1433
1433
  }, {
1434
1434
  "label-tooltip": m(() => [
1435
- d(e(p), {
1435
+ u(e(p), {
1436
1436
  keypath: "form.config.gcp.fields.project_id.tooltip.text",
1437
1437
  scope: "global"
1438
1438
  }, {
@@ -1444,7 +1444,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1444
1444
  ]),
1445
1445
  _: 1
1446
1446
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
1447
- o.config.base64FieldAvailable ? (V(), W(oe, {
1447
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1448
1448
  key: 0,
1449
1449
  modelValue: l[e(t).GCP].base64_decode,
1450
1450
  "onUpdate:modelValue": r[10] || (r[10] = (i) => l[e(t).GCP].base64_decode = i),
@@ -1457,21 +1457,21 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1457
1457
  readonly: n.isReadonly
1458
1458
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1459
1459
  ])) : B("", !0),
1460
- f.value === e(t).HCV ? (V(), D("div", {
1460
+ f.value === e(t).HCV ? (V(), W("div", {
1461
1461
  key: `${e(t).HCV}-vault-config-fields`,
1462
1462
  class: "vault-form-config-fields-container"
1463
1463
  }, [
1464
- d(C, {
1464
+ u(C, {
1465
1465
  modelValue: l[e(t).HCV].protocol,
1466
1466
  "onUpdate:modelValue": r[11] || (r[11] = (i) => l[e(t).HCV].protocol = i),
1467
1467
  "data-testid": "vault-form-config-hcv-protocol",
1468
- items: J,
1468
+ items: G,
1469
1469
  label: e(a)("form.config.hcv.fields.protocol.label"),
1470
1470
  readonly: n.isReadonly,
1471
1471
  required: "",
1472
1472
  width: "100%"
1473
1473
  }, null, 8, ["modelValue", "label", "readonly"]),
1474
- d(_, {
1474
+ u(_, {
1475
1475
  modelValue: l[e(t).HCV].host,
1476
1476
  "onUpdate:modelValue": r[12] || (r[12] = (i) => l[e(t).HCV].host = i),
1477
1477
  modelModifiers: { trim: !0 },
@@ -1482,7 +1482,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1482
1482
  required: "",
1483
1483
  type: "text"
1484
1484
  }, null, 8, ["modelValue", "label", "readonly"]),
1485
- d(_, {
1485
+ u(_, {
1486
1486
  modelValue: l[e(t).HCV].port,
1487
1487
  "onUpdate:modelValue": r[13] || (r[13] = (i) => l[e(t).HCV].port = i),
1488
1488
  autocomplete: "off",
@@ -1493,7 +1493,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1493
1493
  required: "",
1494
1494
  type: "number"
1495
1495
  }, null, 8, ["modelValue", "label", "readonly"]),
1496
- d(_, {
1496
+ u(_, {
1497
1497
  modelValue: l[e(t).HCV].mount,
1498
1498
  "onUpdate:modelValue": r[14] || (r[14] = (i) => l[e(t).HCV].mount = i),
1499
1499
  modelModifiers: { trim: !0 },
@@ -1504,7 +1504,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1504
1504
  required: "",
1505
1505
  type: "text"
1506
1506
  }, null, 8, ["modelValue", "label", "readonly"]),
1507
- d(C, {
1507
+ u(C, {
1508
1508
  modelValue: l[e(t).HCV].kv,
1509
1509
  "onUpdate:modelValue": r[15] || (r[15] = (i) => l[e(t).HCV].kv = i),
1510
1510
  "data-testid": "vault-form-config-hcv-kv",
@@ -1514,7 +1514,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1514
1514
  required: "",
1515
1515
  width: "100%"
1516
1516
  }, null, 8, ["modelValue", "label", "readonly"]),
1517
- d(_, {
1517
+ u(_, {
1518
1518
  modelValue: l[e(t).HCV].namespace,
1519
1519
  "onUpdate:modelValue": r[16] || (r[16] = (i) => l[e(t).HCV].namespace = i),
1520
1520
  modelModifiers: { trim: !0 },
@@ -1524,24 +1524,24 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1524
1524
  readonly: n.isReadonly,
1525
1525
  type: "text"
1526
1526
  }, null, 8, ["modelValue", "label", "readonly"]),
1527
- d(C, {
1527
+ u(C, {
1528
1528
  modelValue: l[e(t).HCV].auth_method,
1529
1529
  "onUpdate:modelValue": r[17] || (r[17] = (i) => l[e(t).HCV].auth_method = i),
1530
1530
  "data-testid": "vault-form-config-hcv-auth_method",
1531
1531
  items: [
1532
- { label: e(R).TOKEN, value: e(R).TOKEN },
1533
- { label: e(R).K8S, value: e(R).K8S },
1534
- ...o.config.hcvAppRoleMethodAvailable ? [{ label: e(R).APP_ROLE, value: e(R).APP_ROLE }] : [],
1535
- ...o.config.hcvCertMethodAvailable ? [{ label: e(R).CERT, value: e(R).CERT }] : [],
1536
- ...o.config.hcvOauth2MethodAvailable ? [{ label: e(R).OAUTH2, value: e(R).OAUTH2 }] : []
1532
+ { label: e(A).TOKEN, value: e(A).TOKEN },
1533
+ { label: e(A).K8S, value: e(A).K8S },
1534
+ ...o.config.hcvAppRoleMethodAvailable ? [{ label: e(A).APP_ROLE, value: e(A).APP_ROLE }] : [],
1535
+ ...o.config.hcvCertMethodAvailable ? [{ label: e(A).CERT, value: e(A).CERT }] : [],
1536
+ ...o.config.hcvJwtMethodAvailable ? [{ label: e(A).JWT, value: e(A).JWT }] : []
1537
1537
  ],
1538
1538
  label: e(a)("form.config.hcv.fields.auth_method.label"),
1539
1539
  readonly: n.isReadonly,
1540
1540
  required: "",
1541
1541
  width: "100%"
1542
1542
  }, null, 8, ["modelValue", "items", "label", "readonly"]),
1543
- l[e(t).HCV].auth_method === e(R).TOKEN ? (V(), D("div", Wt, [
1544
- d(_, {
1543
+ l[e(t).HCV].auth_method === e(A).TOKEN ? (V(), W("div", Dt, [
1544
+ u(_, {
1545
1545
  modelValue: l[e(t).HCV].token,
1546
1546
  "onUpdate:modelValue": r[18] || (r[18] = (i) => l[e(t).HCV].token = i),
1547
1547
  modelModifiers: { trim: !0 },
@@ -1553,8 +1553,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1553
1553
  "show-password-mask-toggle": "",
1554
1554
  type: "password"
1555
1555
  }, null, 8, ["modelValue", "label", "readonly"])
1556
- ])) : l[e(t).HCV].auth_method === e(R).K8S ? (V(), D("div", Bt, [
1557
- d(_, {
1556
+ ])) : l[e(t).HCV].auth_method === e(A).K8S ? (V(), W("div", Bt, [
1557
+ u(_, {
1558
1558
  modelValue: l[e(t).HCV].kube_role,
1559
1559
  "onUpdate:modelValue": r[19] || (r[19] = (i) => l[e(t).HCV].kube_role = i),
1560
1560
  modelModifiers: { trim: !0 },
@@ -1565,7 +1565,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1565
1565
  required: "",
1566
1566
  type: "text"
1567
1567
  }, null, 8, ["modelValue", "label", "readonly"]),
1568
- d(_, {
1568
+ u(_, {
1569
1569
  modelValue: l[e(t).HCV].kube_auth_path,
1570
1570
  "onUpdate:modelValue": r[20] || (r[20] = (i) => l[e(t).HCV].kube_auth_path = i),
1571
1571
  modelModifiers: { trim: !0 },
@@ -1575,7 +1575,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1575
1575
  readonly: n.isReadonly,
1576
1576
  type: "text"
1577
1577
  }, null, 8, ["modelValue", "label", "readonly"]),
1578
- d(_, {
1578
+ u(_, {
1579
1579
  modelValue: l[e(t).HCV].kube_api_token_file,
1580
1580
  "onUpdate:modelValue": r[21] || (r[21] = (i) => l[e(t).HCV].kube_api_token_file = i),
1581
1581
  modelModifiers: { trim: !0 },
@@ -1586,8 +1586,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1586
1586
  required: "",
1587
1587
  type: "text"
1588
1588
  }, null, 8, ["modelValue", "label", "readonly"])
1589
- ])) : l[e(t).HCV].auth_method === e(R).APP_ROLE ? (V(), D("div", Lt, [
1590
- d(_, {
1589
+ ])) : l[e(t).HCV].auth_method === e(A).APP_ROLE ? (V(), W("div", Jt, [
1590
+ u(_, {
1591
1591
  modelValue: l[e(t).HCV].approle_auth_path,
1592
1592
  "onUpdate:modelValue": r[22] || (r[22] = (i) => l[e(t).HCV].approle_auth_path = i),
1593
1593
  modelModifiers: { trim: !0 },
@@ -1597,7 +1597,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1597
1597
  readonly: n.isReadonly,
1598
1598
  type: "text"
1599
1599
  }, null, 8, ["modelValue", "label", "readonly"]),
1600
- d(_, {
1600
+ u(_, {
1601
1601
  modelValue: l[e(t).HCV].approle_role_id,
1602
1602
  "onUpdate:modelValue": r[23] || (r[23] = (i) => l[e(t).HCV].approle_role_id = i),
1603
1603
  modelModifiers: { trim: !0 },
@@ -1608,7 +1608,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1608
1608
  required: "",
1609
1609
  type: "text"
1610
1610
  }, null, 8, ["modelValue", "label", "readonly"]),
1611
- d(_, {
1611
+ u(_, {
1612
1612
  modelValue: l[e(t).HCV].approle_secret_id,
1613
1613
  "onUpdate:modelValue": r[24] || (r[24] = (i) => l[e(t).HCV].approle_secret_id = i),
1614
1614
  modelModifiers: { trim: !0 },
@@ -1619,7 +1619,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1619
1619
  "show-password-mask-toggle": "",
1620
1620
  type: "password"
1621
1621
  }, null, 8, ["modelValue", "label", "readonly"]),
1622
- d(_, {
1622
+ u(_, {
1623
1623
  modelValue: l[e(t).HCV].approle_secret_id_file,
1624
1624
  "onUpdate:modelValue": r[25] || (r[25] = (i) => l[e(t).HCV].approle_secret_id_file = i),
1625
1625
  modelModifiers: { trim: !0 },
@@ -1629,14 +1629,14 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1629
1629
  readonly: n.isReadonly,
1630
1630
  type: "text"
1631
1631
  }, null, 8, ["modelValue", "label", "readonly"]),
1632
- d(oe, {
1632
+ u(oe, {
1633
1633
  modelValue: l[e(t).HCV].approle_response_wrapping,
1634
1634
  "onUpdate:modelValue": r[26] || (r[26] = (i) => l[e(t).HCV].approle_response_wrapping = i),
1635
1635
  "data-testid": "vault-form-config-hcv-approle_response_wrapping",
1636
1636
  label: e(a)("form.config.hcv.fields.approle_response_wrapping.label")
1637
1637
  }, null, 8, ["modelValue", "label"])
1638
- ])) : l[e(t).HCV].auth_method === e(R).CERT ? (V(), D("div", zt, [
1639
- d(_, {
1638
+ ])) : l[e(t).HCV].auth_method === e(A).CERT ? (V(), W("div", Lt, [
1639
+ u(_, {
1640
1640
  modelValue: l[e(t).HCV].cert_auth_role_name,
1641
1641
  "onUpdate:modelValue": r[27] || (r[27] = (i) => l[e(t).HCV].cert_auth_role_name = i),
1642
1642
  modelModifiers: { trim: !0 },
@@ -1646,7 +1646,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1646
1646
  readonly: n.isReadonly,
1647
1647
  required: ""
1648
1648
  }, null, 8, ["modelValue", "label", "readonly"]),
1649
- d(ue, {
1649
+ u(de, {
1650
1650
  modelValue: l[e(t).HCV].cert_auth_cert,
1651
1651
  "onUpdate:modelValue": r[28] || (r[28] = (i) => l[e(t).HCV].cert_auth_cert = i),
1652
1652
  modelModifiers: { trim: !0 },
@@ -1656,7 +1656,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1656
1656
  readonly: n.isReadonly,
1657
1657
  required: ""
1658
1658
  }, null, 8, ["modelValue", "label", "readonly"]),
1659
- d(ue, {
1659
+ u(de, {
1660
1660
  modelValue: l[e(t).HCV].cert_auth_cert_key,
1661
1661
  "onUpdate:modelValue": r[29] || (r[29] = (i) => l[e(t).HCV].cert_auth_cert_key = i),
1662
1662
  modelModifiers: { trim: !0 },
@@ -1666,8 +1666,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1666
1666
  readonly: n.isReadonly,
1667
1667
  required: ""
1668
1668
  }, null, 8, ["modelValue", "label", "readonly"])
1669
- ])) : l[e(t).HCV].auth_method === e(R).OAUTH2 ? (V(), D("div", Gt, [
1670
- d(_, {
1669
+ ])) : l[e(t).HCV].auth_method === e(A).JWT ? (V(), W("div", zt, [
1670
+ u(_, {
1671
1671
  modelValue: l[e(t).HCV].oauth2_client_id,
1672
1672
  "onUpdate:modelValue": r[30] || (r[30] = (i) => l[e(t).HCV].oauth2_client_id = i),
1673
1673
  modelModifiers: { trim: !0 },
@@ -1677,7 +1677,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1677
1677
  readonly: n.isReadonly,
1678
1678
  required: ""
1679
1679
  }, null, 8, ["modelValue", "label", "readonly"]),
1680
- d(_, {
1680
+ u(_, {
1681
1681
  modelValue: l[e(t).HCV].oauth2_client_secret,
1682
1682
  "onUpdate:modelValue": r[31] || (r[31] = (i) => l[e(t).HCV].oauth2_client_secret = i),
1683
1683
  modelModifiers: { trim: !0 },
@@ -1689,21 +1689,21 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1689
1689
  "show-password-mask-toggle": "",
1690
1690
  type: "password"
1691
1691
  }, null, 8, ["modelValue", "label", "readonly"]),
1692
- d(_, {
1693
- modelValue: l[e(t).HCV].oauth2_role_name,
1694
- "onUpdate:modelValue": r[32] || (r[32] = (i) => l[e(t).HCV].oauth2_role_name = i),
1692
+ u(_, {
1693
+ modelValue: l[e(t).HCV].jwt_role,
1694
+ "onUpdate:modelValue": r[32] || (r[32] = (i) => l[e(t).HCV].jwt_role = i),
1695
1695
  modelModifiers: { trim: !0 },
1696
1696
  autocomplete: "off",
1697
- "data-testid": "vault-form-config-hcv-oauth2_role_name",
1698
- label: e(a)("form.config.hcv.fields.oauth2_role_name.label"),
1697
+ "data-testid": "vault-form-config-hcv-jwt_role",
1698
+ label: e(a)("form.config.hcv.fields.jwt_role.label"),
1699
1699
  "label-attributes": {
1700
- info: e(a)("form.config.hcv.fields.oauth2_role_name.tooltip"),
1700
+ info: e(a)("form.config.hcv.fields.jwt_role.tooltip"),
1701
1701
  tooltipAttributes: { maxWidth: "400" }
1702
1702
  },
1703
1703
  readonly: n.isReadonly,
1704
1704
  required: ""
1705
1705
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1706
- d(_, {
1706
+ u(_, {
1707
1707
  modelValue: l[e(t).HCV].oauth2_token_endpoint,
1708
1708
  "onUpdate:modelValue": r[33] || (r[33] = (i) => l[e(t).HCV].oauth2_token_endpoint = i),
1709
1709
  modelModifiers: { trim: !0 },
@@ -1713,7 +1713,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1713
1713
  readonly: n.isReadonly,
1714
1714
  required: ""
1715
1715
  }, null, 8, ["modelValue", "label", "readonly"]),
1716
- d(_, {
1716
+ u(_, {
1717
1717
  modelValue: l[e(t).HCV].oauth2_audiences,
1718
1718
  "onUpdate:modelValue": r[34] || (r[34] = (i) => l[e(t).HCV].oauth2_audiences = i),
1719
1719
  modelModifiers: { trim: !0 },
@@ -1727,7 +1727,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1727
1727
  readonly: n.isReadonly
1728
1728
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])
1729
1729
  ])) : B("", !0),
1730
- o.config.base64FieldAvailable ? (V(), W(oe, {
1730
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1731
1731
  key: 5,
1732
1732
  modelValue: l[e(t).HCV].base64_decode,
1733
1733
  "onUpdate:modelValue": r[35] || (r[35] = (i) => l[e(t).HCV].base64_decode = i),
@@ -1740,11 +1740,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1740
1740
  readonly: n.isReadonly
1741
1741
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1742
1742
  ])) : B("", !0),
1743
- f.value === e(t).AZURE ? (V(), D("div", {
1743
+ f.value === e(t).AZURE ? (V(), W("div", {
1744
1744
  key: `${e(t).AZURE}-vault-config-fields`,
1745
1745
  class: "vault-form-config-fields-container"
1746
1746
  }, [
1747
- d(_, {
1747
+ u(_, {
1748
1748
  modelValue: l[e(t).AZURE].location,
1749
1749
  "onUpdate:modelValue": r[36] || (r[36] = (i) => l[e(t).AZURE].location = i),
1750
1750
  modelModifiers: { trim: !0 },
@@ -1755,7 +1755,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1755
1755
  required: "",
1756
1756
  type: "text"
1757
1757
  }, null, 8, ["modelValue", "label", "readonly"]),
1758
- d(_, {
1758
+ u(_, {
1759
1759
  modelValue: l[e(t).AZURE].vault_uri,
1760
1760
  "onUpdate:modelValue": r[37] || (r[37] = (i) => l[e(t).AZURE].vault_uri = i),
1761
1761
  modelModifiers: { trim: !0 },
@@ -1766,7 +1766,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1766
1766
  required: "",
1767
1767
  type: "text"
1768
1768
  }, null, 8, ["modelValue", "label", "readonly"]),
1769
- d(_, {
1769
+ u(_, {
1770
1770
  modelValue: l[e(t).AZURE].credentials_prefix,
1771
1771
  "onUpdate:modelValue": r[38] || (r[38] = (i) => l[e(t).AZURE].credentials_prefix = i),
1772
1772
  modelModifiers: { trim: !0 },
@@ -1777,7 +1777,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1777
1777
  required: "",
1778
1778
  type: "text"
1779
1779
  }, null, 8, ["modelValue", "label", "readonly"]),
1780
- d(C, {
1780
+ u(C, {
1781
1781
  modelValue: l[e(t).AZURE].type,
1782
1782
  "onUpdate:modelValue": r[39] || (r[39] = (i) => l[e(t).AZURE].type = i),
1783
1783
  "data-testid": "vault-form-config-azure-type",
@@ -1788,7 +1788,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1788
1788
  required: "",
1789
1789
  width: "100%"
1790
1790
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1791
- d(_, {
1791
+ u(_, {
1792
1792
  modelValue: l[e(t).AZURE].client_id,
1793
1793
  "onUpdate:modelValue": r[40] || (r[40] = (i) => l[e(t).AZURE].client_id = i),
1794
1794
  modelModifiers: { trim: !0 },
@@ -1798,7 +1798,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1798
1798
  readonly: n.isReadonly,
1799
1799
  type: "text"
1800
1800
  }, null, 8, ["modelValue", "label", "readonly"]),
1801
- d(_, {
1801
+ u(_, {
1802
1802
  modelValue: l[e(t).AZURE].tenant_id,
1803
1803
  "onUpdate:modelValue": r[41] || (r[41] = (i) => l[e(t).AZURE].tenant_id = i),
1804
1804
  modelModifiers: { trim: !0 },
@@ -1808,7 +1808,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1808
1808
  readonly: n.isReadonly,
1809
1809
  type: "text"
1810
1810
  }, null, 8, ["modelValue", "label", "readonly"]),
1811
- o.config.base64FieldAvailable ? (V(), W(oe, {
1811
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1812
1812
  key: 0,
1813
1813
  modelValue: l[e(t).AZURE].base64_decode,
1814
1814
  "onUpdate:modelValue": r[42] || (r[42] = (i) => l[e(t).AZURE].base64_decode = i),
@@ -1821,11 +1821,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1821
1821
  readonly: n.isReadonly
1822
1822
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1823
1823
  ])) : B("", !0),
1824
- f.value === e(t).CONJUR ? (V(), D("div", {
1824
+ f.value === e(t).CONJUR ? (V(), W("div", {
1825
1825
  key: `${e(t).CONJUR}-vault-config-fields`,
1826
1826
  class: "vault-form-config-fields-container"
1827
1827
  }, [
1828
- d(_, {
1828
+ u(_, {
1829
1829
  modelValue: l[e(t).CONJUR].endpoint_url,
1830
1830
  "onUpdate:modelValue": r[43] || (r[43] = (i) => l[e(t).CONJUR].endpoint_url = i),
1831
1831
  modelModifiers: { trim: !0 },
@@ -1840,7 +1840,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1840
1840
  required: "",
1841
1841
  type: "text"
1842
1842
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1843
- d(_, {
1843
+ u(_, {
1844
1844
  modelValue: l[e(t).CONJUR].login,
1845
1845
  "onUpdate:modelValue": r[44] || (r[44] = (i) => l[e(t).CONJUR].login = i),
1846
1846
  modelModifiers: { trim: !0 },
@@ -1855,7 +1855,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1855
1855
  required: "",
1856
1856
  type: "text"
1857
1857
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1858
- d(_, {
1858
+ u(_, {
1859
1859
  modelValue: l[e(t).CONJUR].account,
1860
1860
  "onUpdate:modelValue": r[45] || (r[45] = (i) => l[e(t).CONJUR].account = i),
1861
1861
  modelModifiers: { trim: !0 },
@@ -1870,7 +1870,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1870
1870
  required: "",
1871
1871
  type: "text"
1872
1872
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1873
- d(_, {
1873
+ u(_, {
1874
1874
  modelValue: l[e(t).CONJUR].api_key,
1875
1875
  "onUpdate:modelValue": r[46] || (r[46] = (i) => l[e(t).CONJUR].api_key = i),
1876
1876
  modelModifiers: { trim: !0 },
@@ -1886,7 +1886,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1886
1886
  "show-password-mask-toggle": "",
1887
1887
  type: "password"
1888
1888
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1889
- o.config.base64FieldAvailable ? (V(), W(oe, {
1889
+ o.config.base64FieldAvailable ? (V(), D(oe, {
1890
1890
  key: 0,
1891
1891
  modelValue: l[e(t).CONJUR].base64_decode,
1892
1892
  "onUpdate:modelValue": r[47] || (r[47] = (i) => l[e(t).CONJUR].base64_decode = i),
@@ -1899,8 +1899,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1899
1899
  readonly: n.isReadonly
1900
1900
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : B("", !0)
1901
1901
  ])) : B("", !0),
1902
- o.config.ttl ? (V(), D("div", Jt, [
1903
- Q.value ? (V(), W(ve, {
1902
+ o.config.ttl ? (V(), W("div", Gt, [
1903
+ Q.value ? (V(), D(ve, {
1904
1904
  key: 0,
1905
1905
  class: "advanced-fields-collapse",
1906
1906
  "data-testid": "advanced-fields-collapse",
@@ -1910,7 +1910,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1910
1910
  default: m(() => [
1911
1911
  x("div", Zt, [
1912
1912
  x("div", Qt, [
1913
- d(_, {
1913
+ u(_, {
1914
1914
  modelValue: l[f.value].ttl,
1915
1915
  "onUpdate:modelValue": r[48] || (r[48] = (i) => l[f.value].ttl = i),
1916
1916
  "data-testid": "vault-ttl-input",
@@ -1923,7 +1923,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1923
1923
  }, null, 8, ["modelValue", "label", "label-attributes"])
1924
1924
  ]),
1925
1925
  x("div", Yt, [
1926
- d(_, {
1926
+ u(_, {
1927
1927
  modelValue: l[f.value].neg_ttl,
1928
1928
  "onUpdate:modelValue": r[49] || (r[49] = (i) => l[f.value].neg_ttl = i),
1929
1929
  "data-testid": "vault-neg-ttl-input",
@@ -1938,7 +1938,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1938
1938
  ]),
1939
1939
  x("div", Xt, [
1940
1940
  x("div", el, [
1941
- d(_, {
1941
+ u(_, {
1942
1942
  modelValue: l[f.value].resurrect_ttl,
1943
1943
  "onUpdate:modelValue": r[50] || (r[50] = (i) => l[f.value].resurrect_ttl = i),
1944
1944
  "data-testid": "vault-resurrect-ttl-input",
@@ -1961,12 +1961,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1961
1961
  ]),
1962
1962
  _: 1
1963
1963
  }, 8, ["description", "title"]),
1964
- d(e(Re), {
1964
+ u(e(Ae), {
1965
1965
  description: e(a)("form.sections.general.description"),
1966
1966
  title: e(a)("form.sections.general.title")
1967
1967
  }, {
1968
1968
  default: m(() => [
1969
- d(_, {
1969
+ u(_, {
1970
1970
  modelValue: n.fields.prefix,
1971
1971
  "onUpdate:modelValue": r[51] || (r[51] = (i) => n.fields.prefix = i),
1972
1972
  modelModifiers: { trim: !0 },
@@ -1983,7 +1983,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1983
1983
  required: "",
1984
1984
  type: "text"
1985
1985
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
1986
- d(ue, {
1986
+ u(de, {
1987
1987
  modelValue: n.fields.description,
1988
1988
  "onUpdate:modelValue": r[52] || (r[52] = (i) => n.fields.description = i),
1989
1989
  modelModifiers: { trim: !0 },
@@ -1994,7 +1994,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
1994
1994
  placeholder: e(a)("form.fields.description.placeholder"),
1995
1995
  readonly: n.isReadonly
1996
1996
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1997
- d(_, {
1997
+ u(_, {
1998
1998
  modelValue: n.fields.tags,
1999
1999
  "onUpdate:modelValue": r[53] || (r[53] = (i) => n.fields.tags = i),
2000
2000
  modelModifiers: { trim: !0 },
@@ -2015,7 +2015,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2015
2015
  ]);
2016
2016
  };
2017
2017
  }
2018
- }), Ul = /* @__PURE__ */ me(tl, [["__scopeId", "data-v-264dd4a6"]]), ll = { class: "kong-ui-vault-entity-config-card" }, Tl = /* @__PURE__ */ ce({
2018
+ }), Ul = /* @__PURE__ */ me(tl, [["__scopeId", "data-v-69c9b94d"]]), ll = { class: "kong-ui-vault-entity-config-card" }, Tl = /* @__PURE__ */ ce({
2019
2019
  __name: "VaultConfigCard",
2020
2020
  props: {
2021
2021
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2042,7 +2042,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2042
2042
  },
2043
2043
  emits: ["loading", "fetch:error", "fetch:success"],
2044
2044
  setup(o) {
2045
- const S = o, c = ["token", "approle_secret_id", "api_key"], u = w(() => {
2045
+ const S = o, c = ["token", "approle_secret_id", "api_key"], d = w(() => {
2046
2046
  var n, g;
2047
2047
  return (g = pe.form[(n = S.config) == null ? void 0 : n.app]) == null ? void 0 : g.edit;
2048
2048
  }), { i18n: { t: p } } = he.useI18n(), { convertKeyToTitle: a } = vt(), { getPropValue: K } = gt(), I = $({
@@ -2054,11 +2054,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2054
2054
  created_at: {},
2055
2055
  prefix: {
2056
2056
  order: 5,
2057
- section: Oe.Basic
2057
+ section: Ne.Basic
2058
2058
  },
2059
2059
  description: {
2060
2060
  order: 6,
2061
- section: Oe.Basic
2061
+ section: Ne.Basic
2062
2062
  },
2063
2063
  tags: {
2064
2064
  order: 7
@@ -2071,26 +2071,26 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2071
2071
  var g, f;
2072
2072
  return ((f = (g = I.value) == null ? void 0 : g[n]) == null ? void 0 : f.label) || a(n);
2073
2073
  };
2074
- return (n, g) => (V(), D("div", ll, [
2075
- d(e(bt), {
2074
+ return (n, g) => (V(), W("div", ll, [
2075
+ u(e(bt), {
2076
2076
  config: o.config,
2077
2077
  "config-card-doc": o.configCardDoc,
2078
2078
  "config-schema": I.value,
2079
2079
  "entity-type": e(Ue).Vault,
2080
- "fetch-url": u.value,
2080
+ "fetch-url": d.value,
2081
2081
  "hide-title": o.hideTitle,
2082
2082
  "onFetch:error": g[0] || (g[0] = (f) => n.$emit("fetch:error", f)),
2083
2083
  "onFetch:success": g[1] || (g[1] = (f) => n.$emit("fetch:success", f)),
2084
2084
  onLoading: g[2] || (g[2] = (f) => n.$emit("loading", f))
2085
2085
  }, {
2086
2086
  config: m(({ rowValue: f }) => [
2087
- (V(!0), D(qe, null, et(Object.keys(f).sort(), (O) => (V(), W(e(_t), {
2088
- key: O,
2087
+ (V(!0), W(qe, null, et(Object.keys(f).sort(), (N) => (V(), D(e(_t), {
2088
+ key: N,
2089
2089
  item: {
2090
- key: O,
2091
- value: e(K)(O, f),
2092
- label: h(O),
2093
- type: c.includes(O) ? e(Se).Redacted : e(Se).Text
2090
+ key: N,
2091
+ value: e(K)(N, f),
2092
+ label: h(N),
2093
+ type: c.includes(N) ? e(Se).Redacted : e(Se).Text
2094
2094
  }
2095
2095
  }, null, 8, ["item"]))), 128))
2096
2096
  ]),
@@ -2153,7 +2153,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2153
2153
  emits: ["error", "delete:success"],
2154
2154
  setup(o, { emit: S }) {
2155
2155
  var ie;
2156
- const c = S, u = o, { i18n: { t: p, formatUnixTimeStamp: a } } = he.useI18n(), { axiosInstance: K } = _e((ie = u.config) == null ? void 0 : ie.axiosRequestConfig), h = {
2156
+ const c = S, d = o, { i18n: { t: p, formatUnixTimeStamp: a } } = he.useI18n(), { axiosInstance: K } = _e((ie = d.config) == null ? void 0 : ie.axiosRequestConfig), h = {
2157
2157
  // the Secret Key column is non-hidable
2158
2158
  key: { label: p("secrets.list.table_headers.key"), sortable: !1, hidable: !1 },
2159
2159
  updated_at: { label: p("secrets.list.table_headers.updated_at"), sortable: !1 }
@@ -2161,33 +2161,33 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2161
2161
  "data-testid": T.key
2162
2162
  }), g = w(() => {
2163
2163
  var T;
2164
- return `${u.config.apiBaseUrl}${be.list[u.config.app]}`.replace(/{controlPlaneId}/gi, ((T = u.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{id}/gi, u.configStoreId || "");
2165
- }), f = $(""), O = {
2164
+ return `${d.config.apiBaseUrl}${be.list[d.config.app]}`.replace(/{controlPlaneId}/gi, ((T = d.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{id}/gi, d.configStoreId || "");
2165
+ }), f = $(""), N = {
2166
2166
  isExactMatch: !0,
2167
2167
  placeholder: p("search.placeholder_for_secrets.konnect")
2168
2168
  }, {
2169
2169
  fetcher: X,
2170
2170
  fetcherState: Q,
2171
2171
  fetcherCacheKey: Y
2172
- } = De(w(() => ({ ...u.config, cacheIdentifier: u.cacheIdentifier })), g), F = () => {
2172
+ } = We(w(() => ({ ...d.config, cacheIdentifier: d.cacheIdentifier })), g), O = () => {
2173
2173
  f.value = "";
2174
2174
  }, l = $(null), ae = (T) => ({
2175
2175
  label: p("actions.edit"),
2176
- to: u.config.getEditRoute(T)
2177
- }), G = $(void 0), ee = $(!1), J = $(!1), y = $(""), N = We(u.config, g.value), re = (T) => {
2178
- G.value = T, ee.value = !0;
2176
+ to: d.config.getEditRoute(T)
2177
+ }), z = $(void 0), ee = $(!1), G = $(!1), y = $(""), F = De(d.config, g.value), re = (T) => {
2178
+ z.value = T, ee.value = !0;
2179
2179
  }, ne = () => {
2180
2180
  ee.value = !1;
2181
2181
  }, le = async () => {
2182
2182
  var T, Z, te;
2183
- if ((T = G.value) != null && T.key) {
2184
- J.value = !0;
2183
+ if ((T = z.value) != null && T.key) {
2184
+ G.value = !0;
2185
2185
  try {
2186
- await K.delete(N(G.value.key)), J.value = !1, ee.value = !1, Y.value++, c("delete:success", G.value);
2186
+ await K.delete(F(z.value.key)), G.value = !1, ee.value = !1, Y.value++, c("delete:success", z.value);
2187
2187
  } catch (b) {
2188
2188
  y.value = ((te = (Z = b.response) == null ? void 0 : Z.data) == null ? void 0 : te.message) || b.message || p("errors.delete"), c("error", b);
2189
2189
  } finally {
2190
- J.value = !1;
2190
+ G.value = !1;
2191
2191
  }
2192
2192
  }
2193
2193
  };
@@ -2202,17 +2202,17 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2202
2202
  l.value = null;
2203
2203
  });
2204
2204
  const q = $({
2205
- ctaPath: u.config.createRoute,
2205
+ ctaPath: d.config.createRoute,
2206
2206
  ctaText: void 0,
2207
- message: `${p("secrets.list.empty_state.description")}${u.config.additionMessageForEmptyState ? ` ${u.config.additionMessageForEmptyState}` : ""}`,
2207
+ message: `${p("secrets.list.empty_state.description")}${d.config.additionMessageForEmptyState ? ` ${d.config.additionMessageForEmptyState}` : ""}`,
2208
2208
  title: p("secrets.title")
2209
2209
  });
2210
2210
  return we(async () => {
2211
- await u.canCreate() && (q.value.title = p("secrets.list.empty_state.title"), q.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2211
+ await d.canCreate() && (q.value.title = p("secrets.list.empty_state.title"), q.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2212
2212
  }), (T, Z) => {
2213
- const te = L("KButton"), b = L("KDropdownItem");
2214
- return V(), D(qe, null, [
2215
- d(e(Le), {
2213
+ const te = J("KButton"), b = J("KDropdownItem");
2214
+ return V(), W(qe, null, [
2215
+ u(e(Je), {
2216
2216
  "cache-identifier": o.cacheIdentifier,
2217
2217
  "disable-sorting": "",
2218
2218
  "empty-state-options": q.value,
@@ -2225,29 +2225,29 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2225
2225
  query: f.value,
2226
2226
  "row-attributes": n,
2227
2227
  "table-headers": e(h),
2228
- onClearSearchInput: F
2228
+ onClearSearchInput: O
2229
2229
  }, {
2230
2230
  "toolbar-filter": m(() => [
2231
- d(e(ze), {
2231
+ u(e(Le), {
2232
2232
  modelValue: f.value,
2233
2233
  "onUpdate:modelValue": Z[0] || (Z[0] = (v) => f.value = v),
2234
- config: O
2234
+ config: N
2235
2235
  }, null, 8, ["modelValue"])
2236
2236
  ]),
2237
2237
  "toolbar-button": m(() => [
2238
- d(e(ge), {
2238
+ u(e(ge), {
2239
2239
  "auth-function": () => o.canCreate()
2240
2240
  }, {
2241
2241
  default: m(() => [
2242
- d(te, {
2242
+ u(te, {
2243
2243
  appearance: "primary",
2244
2244
  "data-testid": "toolbar-add-secret",
2245
2245
  size: "large",
2246
2246
  to: o.config.createRoute
2247
2247
  }, {
2248
2248
  default: m(() => [
2249
- d(e(Ae)),
2250
- de(" " + H(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2249
+ u(e(Re)),
2250
+ ue(" " + H(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2251
2251
  ]),
2252
2252
  _: 1
2253
2253
  }, 8, ["to"])
@@ -2264,29 +2264,29 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2264
2264
  x("span", null, H(v ? e(a)(new Date(v).getTime() / 1e3) : "-"), 1)
2265
2265
  ]),
2266
2266
  actions: m(({ row: v }) => [
2267
- d(e(ge), {
2267
+ u(e(ge), {
2268
2268
  "auth-function": () => o.canEdit(v)
2269
2269
  }, {
2270
2270
  default: m(() => [
2271
- d(b, {
2271
+ u(b, {
2272
2272
  "data-testid": "action-entity-edit",
2273
2273
  item: ae(v.key)
2274
2274
  }, null, 8, ["item"])
2275
2275
  ]),
2276
2276
  _: 2
2277
2277
  }, 1032, ["auth-function"]),
2278
- d(e(ge), {
2278
+ u(e(ge), {
2279
2279
  "auth-function": () => o.canDelete(v)
2280
2280
  }, {
2281
2281
  default: m(() => [
2282
- d(b, {
2282
+ u(b, {
2283
2283
  danger: "",
2284
2284
  "data-testid": "action-entity-delete",
2285
2285
  "has-divider": "",
2286
2286
  onClick: (P) => re(v)
2287
2287
  }, {
2288
2288
  default: m(() => [
2289
- de(H(e(p)("actions.delete")), 1)
2289
+ ue(H(e(p)("actions.delete")), 1)
2290
2290
  ]),
2291
2291
  _: 1
2292
2292
  }, 8, ["onClick"])
@@ -2296,11 +2296,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2296
2296
  ]),
2297
2297
  _: 1
2298
2298
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
2299
- d(e(Ge), {
2300
- "action-pending": J.value,
2299
+ u(e(ze), {
2300
+ "action-pending": G.value,
2301
2301
  description: e(p)("delete.description"),
2302
- "entity-name": G.value && G.value.key,
2303
- "entity-type": e(Je).Secret,
2302
+ "entity-name": z.value && z.value.key,
2303
+ "entity-type": e(Ge).Secret,
2304
2304
  error: y.value,
2305
2305
  title: e(p)("delete.title_for_secret"),
2306
2306
  visible: ee.value,
@@ -2351,13 +2351,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2351
2351
  emits: ["error", "delete:success"],
2352
2352
  setup(o, { emit: S }) {
2353
2353
  var n;
2354
- const c = S, u = o, p = (g) => {
2354
+ const c = S, d = o, p = (g) => {
2355
2355
  c("error", g);
2356
2356
  }, a = (g) => {
2357
2357
  c("delete:success", g);
2358
- }, { axiosInstance: K } = _e((n = u.config) == null ? void 0 : n.axiosRequestConfig), I = $(""), h = w(() => {
2358
+ }, { axiosInstance: K } = _e((n = d.config) == null ? void 0 : n.axiosRequestConfig), I = $(""), h = w(() => {
2359
2359
  var g;
2360
- return `${u.config.apiBaseUrl}${be.getVault[u.config.app]}`.replace(/{controlPlaneId}/gi, ((g = u.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{id}/gi, u.vaultId);
2360
+ return `${d.config.apiBaseUrl}${be.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi, ((g = d.config) == null ? void 0 : g.controlPlaneId) || "").replace(/{id}/gi, d.vaultId);
2361
2361
  });
2362
2362
  return we(async () => {
2363
2363
  var g;
@@ -2367,8 +2367,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2367
2367
  } catch (f) {
2368
2368
  c("error", f);
2369
2369
  }
2370
- }), (g, f) => (V(), D("div", il, [
2371
- I.value ? (V(), W(rl, je({ key: 0 }, u, {
2370
+ }), (g, f) => (V(), W("div", il, [
2371
+ I.value ? (V(), D(rl, je({ key: 0 }, d, {
2372
2372
  "config-store-id": I.value,
2373
2373
  "onDelete:success": a,
2374
2374
  onError: p
@@ -2399,8 +2399,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2399
2399
  },
2400
2400
  emits: ["update", "error", "loading"],
2401
2401
  setup(o, { emit: S }) {
2402
- var J;
2403
- const c = o, u = S, { i18n: { t: p } } = he.useI18n(), a = Ee(), { axiosInstance: K } = _e((J = c.config) == null ? void 0 : J.axiosRequestConfig), { getMessageFromError: I } = Ze(), h = ye({
2402
+ var G;
2403
+ const c = o, d = S, { i18n: { t: p } } = he.useI18n(), a = Ee(), { axiosInstance: K } = _e((G = c.config) == null ? void 0 : G.axiosRequestConfig), { getMessageFromError: I } = Ze(), h = ye({
2404
2404
  fields: {
2405
2405
  key: "",
2406
2406
  value: ""
@@ -2412,64 +2412,64 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2412
2412
  value: ""
2413
2413
  }), g = w(
2414
2414
  () => {
2415
- var y, N;
2416
- return (N = be.form[(y = c.config) == null ? void 0 : y.app]) == null ? void 0 : N.edit.replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2415
+ var y, F;
2416
+ return (F = be.form[(y = c.config) == null ? void 0 : y.app]) == null ? void 0 : F.edit.replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2417
2417
  }
2418
2418
  ), f = () => {
2419
2419
  var y;
2420
2420
  a.push(((y = c.config) == null ? void 0 : y.cancelRoute) || { name: "secret-list" });
2421
- }, O = (y) => {
2422
- u("loading", y);
2421
+ }, N = (y) => {
2422
+ d("loading", y);
2423
2423
  }, X = (y) => {
2424
- u("error", y);
2424
+ d("error", y);
2425
2425
  }, Q = (y) => {
2426
- var N, re;
2427
- h.fields.key = ((N = y == null ? void 0 : y.item) == null ? void 0 : N.key) || (y == null ? void 0 : y.key) || "", h.fields.value = ((re = y == null ? void 0 : y.item) == null ? void 0 : re.value) || (y == null ? void 0 : y.value) || "", Object.assign(n, h.fields);
2428
- }, Y = w(() => c.secretId ? Ve.Edit : Ve.Create), F = w(() => {
2426
+ var F, re;
2427
+ h.fields.key = ((F = y == null ? void 0 : y.item) == null ? void 0 : F.key) || (y == null ? void 0 : y.key) || "", h.fields.value = ((re = y == null ? void 0 : y.item) == null ? void 0 : re.value) || (y == null ? void 0 : y.value) || "", Object.assign(n, h.fields);
2428
+ }, Y = w(() => c.secretId ? Ve.Edit : Ve.Create), O = w(() => {
2429
2429
  var y;
2430
2430
  return `${c.config.apiBaseUrl}${be.form[c.config.app][Y.value]}`.replace(/{controlPlaneId}/gi, ((y = c.config) == null ? void 0 : y.controlPlaneId) || "").replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2431
- }), l = w(() => !!h.fields.key && !!h.fields.value), ae = w(() => JSON.stringify(h.fields) !== JSON.stringify(n)), G = w(() => ({
2431
+ }), l = w(() => !!h.fields.key && !!h.fields.value), ae = w(() => JSON.stringify(h.fields) !== JSON.stringify(n)), z = w(() => ({
2432
2432
  key: h.fields.key,
2433
2433
  value: h.fields.value
2434
2434
  })), ee = async () => {
2435
2435
  try {
2436
2436
  h.readonly = !0;
2437
2437
  let y;
2438
- Y.value === "create" ? y = await K.post(F.value, G.value) : Y.value === "edit" && (y = await K.put(F.value, G.value)), Q(y == null ? void 0 : y.data), u("update", y == null ? void 0 : y.data);
2438
+ Y.value === "create" ? y = await K.post(O.value, z.value) : Y.value === "edit" && (y = await K.put(O.value, z.value)), Q(y == null ? void 0 : y.data), d("update", y == null ? void 0 : y.data);
2439
2439
  } catch (y) {
2440
- h.errorMessage = I(y), u("error", y);
2440
+ h.errorMessage = I(y), d("error", y);
2441
2441
  } finally {
2442
2442
  h.readonly = !1;
2443
2443
  }
2444
2444
  };
2445
- return (y, N) => {
2446
- const re = L("KInput"), ne = L("KTextArea"), le = L("KAlert");
2447
- return V(), W(e(Qe), {
2445
+ return (y, F) => {
2446
+ const re = J("KInput"), ne = J("KTextArea"), le = J("KAlert");
2447
+ return V(), D(e(Qe), {
2448
2448
  "can-submit": l.value && ae.value,
2449
2449
  config: o.config,
2450
2450
  "edit-id": o.secretId,
2451
2451
  "entity-type": e(Ue).Other,
2452
2452
  "error-message": h.errorMessage,
2453
2453
  "fetch-url": g.value,
2454
- "form-fields": G.value,
2454
+ "form-fields": z.value,
2455
2455
  "is-readonly": h.readonly,
2456
2456
  onCancel: f,
2457
2457
  "onFetch:error": X,
2458
2458
  "onFetch:success": Q,
2459
- onLoading: O,
2459
+ onLoading: N,
2460
2460
  onSubmit: ee
2461
2461
  }, {
2462
2462
  default: m(() => [
2463
2463
  x("div", null, [
2464
- d(e(Re), {
2464
+ u(e(Ae), {
2465
2465
  description: e(p)("secrets.form.info.description"),
2466
2466
  "has-divider": "",
2467
2467
  title: e(p)("secrets.form.info.title")
2468
2468
  }, {
2469
2469
  default: m(() => [
2470
- d(re, {
2470
+ u(re, {
2471
2471
  modelValue: h.fields.key,
2472
- "onUpdate:modelValue": N[0] || (N[0] = (q) => h.fields.key = q),
2472
+ "onUpdate:modelValue": F[0] || (F[0] = (q) => h.fields.key = q),
2473
2473
  modelModifiers: { trim: !0 },
2474
2474
  autocomplete: "off",
2475
2475
  class: "key-field",
@@ -2481,9 +2481,9 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2481
2481
  required: "",
2482
2482
  type: "text"
2483
2483
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
2484
- d(ne, {
2484
+ u(ne, {
2485
2485
  modelValue: h.fields.value,
2486
- "onUpdate:modelValue": N[1] || (N[1] = (q) => h.fields.value = q),
2486
+ "onUpdate:modelValue": F[1] || (F[1] = (q) => h.fields.value = q),
2487
2487
  modelModifiers: { trim: !0 },
2488
2488
  autocomplete: "off",
2489
2489
  "data-testid": "secret-form-value",
@@ -2494,7 +2494,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2494
2494
  resizable: "",
2495
2495
  type: "text"
2496
2496
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2497
- d(le, {
2497
+ u(le, {
2498
2498
  appearance: "warning",
2499
2499
  message: e(p)("secrets.form.hint")
2500
2500
  }, null, 8, ["message"])
@@ -2507,7 +2507,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2507
2507
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
2508
2508
  };
2509
2509
  }
2510
- }), ul = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-5ee165bf"]]), dl = { class: "kong-ui-entities-secret-form" }, cl = /* @__PURE__ */ ce({
2510
+ }), dl = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-5ee165bf"]]), ul = { class: "kong-ui-entities-secret-form" }, cl = /* @__PURE__ */ ce({
2511
2511
  __name: "SecretForm",
2512
2512
  props: {
2513
2513
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2531,12 +2531,12 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2531
2531
  emits: ["update", "error", "loading"],
2532
2532
  setup(o, { emit: S }) {
2533
2533
  var g;
2534
- const c = o, u = S, p = (f) => {
2535
- u("update", f);
2534
+ const c = o, d = S, p = (f) => {
2535
+ d("update", f);
2536
2536
  }, a = (f) => {
2537
- u("error", f);
2537
+ d("error", f);
2538
2538
  }, K = (f) => {
2539
- u("loading", f);
2539
+ d("loading", f);
2540
2540
  }, { axiosInstance: I } = _e((g = c.config) == null ? void 0 : g.axiosRequestConfig), h = $(""), n = w(() => {
2541
2541
  var f;
2542
2542
  return `${c.config.apiBaseUrl}${be.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi, ((f = c.config) == null ? void 0 : f.controlPlaneId) || "").replace(/{id}/gi, c.vaultId);
@@ -2544,13 +2544,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2544
2544
  return we(async () => {
2545
2545
  var f;
2546
2546
  try {
2547
- const { data: O } = await I.get(n.value);
2548
- h.value = (f = O == null ? void 0 : O.config) == null ? void 0 : f.config_store_id;
2549
- } catch (O) {
2550
- u("error", O);
2547
+ const { data: N } = await I.get(n.value);
2548
+ h.value = (f = N == null ? void 0 : N.config) == null ? void 0 : f.config_store_id;
2549
+ } catch (N) {
2550
+ d("error", N);
2551
2551
  }
2552
- }), (f, O) => (V(), D("div", dl, [
2553
- h.value ? (V(), W(ul, je({ key: 0 }, c, {
2552
+ }), (f, N) => (V(), W("div", ul, [
2553
+ h.value ? (V(), D(dl, je({ key: 0 }, c, {
2554
2554
  "config-store-id": h.value,
2555
2555
  onError: a,
2556
2556
  onLoading: K,
@@ -2575,13 +2575,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2575
2575
  setup(o, {
2576
2576
  emit: S
2577
2577
  }) {
2578
- const c = o, u = S, {
2578
+ const c = o, d = S, {
2579
2579
  i18n: {
2580
2580
  t: p
2581
2581
  },
2582
2582
  i18nT: a
2583
2583
  } = he.useI18n();
2584
- return (K, I) => (V(), D("div", fl, [d(e(a), {
2584
+ return (K, I) => (V(), W("div", fl, [u(e(a), {
2585
2585
  keypath: "vault_secret_picker.provider.complete_action",
2586
2586
  scope: "global"
2587
2587
  }, {
@@ -2590,7 +2590,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2590
2590
  "vault-secret-picker-provider-action": !0,
2591
2591
  disabled: c.disabled
2592
2592
  }),
2593
- onClick: I[0] || (I[0] = () => !c.disabled && u("open", c.value, c.update))
2593
+ onClick: I[0] || (I[0] = () => !c.disabled && d("open", c.value, c.update))
2594
2594
  }, H(e(p)("vault_secret_picker.provider.cta")), 3)]),
2595
2595
  _: 1
2596
2596
  })]));
@@ -2604,11 +2604,11 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2604
2604
  const c = new URL(`http://${S.substring(8)}`);
2605
2605
  if (!c)
2606
2606
  throw new Error("Invalid secret reference: must have a vault prefix");
2607
- const u = c.host, [, p, ...a] = c.pathname.split("/");
2608
- if (!u)
2607
+ const d = c.host, [, p, ...a] = c.pathname.split("/");
2608
+ if (!d)
2609
2609
  throw new Error("Invalid secret reference: must have a vault prefix");
2610
2610
  return {
2611
- vaultPrefix: u,
2611
+ vaultPrefix: d,
2612
2612
  secretId: p || void 0,
2613
2613
  // Non-empty string or undefined
2614
2614
  optionalSecretKey: a == null ? void 0 : a.join("/")
@@ -2654,15 +2654,15 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2654
2654
  emits: ["proceed", "cancel"],
2655
2655
  setup(o, { emit: S }) {
2656
2656
  var te;
2657
- const { i18n: { t: c } } = he.useI18n(), u = o, p = S, { axiosInstance: a } = _e({
2657
+ const { i18n: { t: c } } = he.useI18n(), d = o, p = S, { axiosInstance: a } = _e({
2658
2658
  // 404 errors are allowed in this components
2659
2659
  validateStatus: (b) => b === 404 || b >= 200 && b < 300,
2660
2660
  // Spread the passed-in config later to allow overriding
2661
- ...(te = u.config) == null ? void 0 : te.axiosRequestConfig
2661
+ ...(te = d.config) == null ? void 0 : te.axiosRequestConfig
2662
2662
  }), K = $(!1), I = $(""), h = $(""), n = $(""), g = $(), f = w(() => {
2663
2663
  var b, v;
2664
- return u.config.app === "konnect" ? be.list[u.config.app].replace(/{id}/gi, ((v = (b = g.value) == null ? void 0 : b.config) == null ? void 0 : v.config_store_id) ?? "") : "<not_applicable>";
2665
- }), O = w(() => {
2664
+ return d.config.app === "konnect" ? be.list[d.config.app].replace(/{id}/gi, ((v = (b = g.value) == null ? void 0 : b.config) == null ? void 0 : v.config_store_id) ?? "") : "<not_applicable>";
2665
+ }), N = w(() => {
2666
2666
  if (Y && ee)
2667
2667
  return c("vault_secret_picker.fetch_error.vaults_and_secrets");
2668
2668
  if (Y)
@@ -2673,22 +2673,22 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2673
2673
  debouncedQueryChange: X,
2674
2674
  loading: Q,
2675
2675
  error: Y,
2676
- loadItems: F,
2676
+ loadItems: O,
2677
2677
  results: l
2678
- } = Ne(u.config, pe.list[u.config.app].getAll, void 0, {
2678
+ } = Fe(d.config, pe.list[d.config.app].getAll, void 0, {
2679
2679
  fetchedItemsKey: "data",
2680
2680
  searchKeys: ["prefix"]
2681
2681
  }), {
2682
2682
  debouncedQueryChange: ae,
2683
- loading: G,
2683
+ loading: z,
2684
2684
  error: ee,
2685
- loadItems: J,
2685
+ loadItems: G,
2686
2686
  results: y
2687
- } = Ne(u.config, f, void 0, {
2687
+ } = Fe(d.config, f, void 0, {
2688
2688
  fetchedItemsKey: "data",
2689
2689
  searchKeys: ["key"],
2690
2690
  exactMatchKey: "key"
2691
- }), N = w(() => {
2691
+ }), F = w(() => {
2692
2692
  var P;
2693
2693
  let b = !1;
2694
2694
  const v = ((P = l.value) == null ? void 0 : P.map((M) => (M.prefix === I.value && (b = !0), { label: M.prefix, value: M.prefix, vault: M }))) ?? [];
@@ -2705,13 +2705,13 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2705
2705
  }), ne = w(() => {
2706
2706
  var b;
2707
2707
  return ((b = g == null ? void 0 : g.value) == null ? void 0 : b.name) === "konnect";
2708
- }), le = w(() => !!g.value && !!h.value && !u.additionalDisabled), q = (b) => b.label ? `${b.label} - (${b.vault.name} - ${b.vault.id})` : b.value, ie = (b) => {
2708
+ }), le = w(() => !!g.value && !!h.value && !d.additionalDisabled), q = (b) => b.label ? `${b.label} - (${b.vault.name} - ${b.vault.id})` : b.value, ie = (b) => {
2709
2709
  var P, M;
2710
- let v = `${u.config.apiBaseUrl}${pe.form[u.config.app].edit}`;
2711
- return u.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((P = u.config) == null ? void 0 : P.controlPlaneId) || "") : u.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (M = u.config) != null && M.workspace ? `/${u.config.workspace}` : "")), v.replace(/{id}/gi, b);
2710
+ let v = `${d.config.apiBaseUrl}${pe.form[d.config.app].edit}`;
2711
+ return d.config.app === "konnect" ? v = v.replace(/{controlPlaneId}/gi, ((P = d.config) == null ? void 0 : P.controlPlaneId) || "") : d.config.app === "kongManager" && (v = v.replace(/\/{workspace}/gi, (M = d.config) != null && M.workspace ? `/${d.config.workspace}` : "")), v.replace(/{id}/gi, b);
2712
2712
  }, T = (b, v) => {
2713
2713
  var P;
2714
- return u.config.app !== "konnect" ? "<not_applicable>" : `${u.config.apiBaseUrl}${be.form[u.config.app].edit}`.replace(/{controlPlaneId}/gi, ((P = u.config) == null ? void 0 : P.controlPlaneId) || "").replace(/{id}/gi, v).replace(/{secretId}/gi, b);
2714
+ return d.config.app !== "konnect" ? "<not_applicable>" : `${d.config.apiBaseUrl}${be.form[d.config.app].edit}`.replace(/{controlPlaneId}/gi, ((P = d.config) == null ? void 0 : P.controlPlaneId) || "").replace(/{id}/gi, v).replace(/{secretId}/gi, b);
2715
2715
  }, Z = () => {
2716
2716
  p("proceed", vl({
2717
2717
  vaultPrefix: I.value,
@@ -2721,16 +2721,16 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2721
2721
  // Either a non-empty string or undefined
2722
2722
  }));
2723
2723
  };
2724
- return ke(() => u.setup, async (b) => {
2724
+ return ke(() => d.setup, async (b) => {
2725
2725
  if (b !== !1) {
2726
2726
  if (K.value = !0, I.value = "", g.value = void 0, h.value = "", n.value = "", typeof b == "string" && b.trim().length > 0)
2727
2727
  try {
2728
2728
  let v, P = "", M = "", se = "";
2729
- const j = ml(b), { data: A } = await a.get(ie(j.vaultPrefix));
2730
- if (A != null && A.name)
2731
- if (v = A, P = j.vaultPrefix, v.name === "konnect") {
2729
+ const j = ml(b), { data: R } = await a.get(ie(j.vaultPrefix));
2730
+ if (R != null && R.name)
2731
+ if (v = R, P = j.vaultPrefix, v.name === "konnect") {
2732
2732
  if (j.secretId) {
2733
- const { data: fe } = await a.get(T(j.secretId, A.config.config_store_id));
2733
+ const { data: fe } = await a.get(T(j.secretId, R.config.config_store_id));
2734
2734
  fe.key === j.secretId && (M = j.secretId, se = j.optionalSecretKey ?? "");
2735
2735
  }
2736
2736
  } else
@@ -2741,42 +2741,42 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2741
2741
  } catch (v) {
2742
2742
  console.debug(v);
2743
2743
  }
2744
- K.value = !1, await F();
2744
+ K.value = !1, await O();
2745
2745
  }
2746
2746
  }, { immediate: !0 }), ke(I, async (b, v) => {
2747
2747
  var P;
2748
- K.value || b === v || (g.value = (P = N.value.find((M) => M.value === b)) == null ? void 0 : P.vault, h.value = "", n.value = "");
2748
+ K.value || b === v || (g.value = (P = F.value.find((M) => M.value === b)) == null ? void 0 : P.vault, h.value = "", n.value = "");
2749
2749
  }), ke(f, async () => {
2750
- ne.value && await J();
2750
+ ne.value && await G();
2751
2751
  }, { immediate: !0 }), (b, v) => {
2752
- const P = L("KEmptyState"), M = L("KSelect"), se = L("KInput"), j = L("KModal");
2753
- return V(), W(j, {
2752
+ const P = J("KEmptyState"), M = J("KSelect"), se = J("KInput"), j = J("KModal");
2753
+ return V(), D(j, {
2754
2754
  "action-button-disabled": !le.value,
2755
2755
  "action-button-text": o.proceedButtonText || e(c)("vault_secret_picker.actions.use_key"),
2756
2756
  class: "vault-secret-picker",
2757
2757
  "data-testid": "vault-secret-picker-modal",
2758
2758
  title: o.title || e(c)("vault_secret_picker.title"),
2759
- visible: u.setup !== !1,
2759
+ visible: d.setup !== !1,
2760
2760
  onCancel: v[4] || (v[4] = () => p("cancel")),
2761
2761
  onProceed: Z
2762
2762
  }, {
2763
2763
  default: m(() => [
2764
- e(Y) || e(ee) ? (V(), W(P, {
2764
+ e(Y) || e(ee) ? (V(), D(P, {
2765
2765
  key: 0,
2766
2766
  "data-testid": "vault-secret-picker-fetch-error",
2767
2767
  "icon-variant": "error",
2768
- message: O.value
2769
- }, null, 8, ["message"])) : (V(), D("div", gl, [
2768
+ message: N.value
2769
+ }, null, 8, ["message"])) : (V(), W("div", gl, [
2770
2770
  ot(b.$slots, "form-prefix", {}, void 0, !0),
2771
- d(M, {
2771
+ u(M, {
2772
2772
  modelValue: I.value,
2773
- "onUpdate:modelValue": v[0] || (v[0] = (A) => I.value = A),
2773
+ "onUpdate:modelValue": v[0] || (v[0] = (R) => I.value = R),
2774
2774
  clearable: "",
2775
2775
  "data-testid": "vault-secret-picker-vault-select",
2776
2776
  disabled: K.value,
2777
2777
  "enable-filtering": "",
2778
2778
  "filter-function": () => !0,
2779
- items: N.value,
2779
+ items: F.value,
2780
2780
  "kpop-attributes": { "data-testid": "vault-secret-picker-vault-popover" },
2781
2781
  label: e(c)("vault_secret_picker.vault.label"),
2782
2782
  loading: e(Q),
@@ -2792,22 +2792,22 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2792
2792
  empty: m(() => [
2793
2793
  x("div", bl, H(e(c)("vault_secret_picker.no_results")), 1)
2794
2794
  ]),
2795
- "selected-item-template": m(({ item: A }) => [
2796
- x("span", _l, H(q(A)), 1)
2795
+ "selected-item-template": m(({ item: R }) => [
2796
+ x("span", _l, H(q(R)), 1)
2797
2797
  ]),
2798
- "item-template": m(({ item: A }) => [
2798
+ "item-template": m(({ item: R }) => [
2799
2799
  x("div", hl, [
2800
- x("span", yl, H(A.label), 1),
2801
- x("span", Vl, H(A.vault.name), 1),
2802
- x("span", kl, H(A.vault.id), 1)
2800
+ x("span", yl, H(R.label), 1),
2801
+ x("span", Vl, H(R.vault.name), 1),
2802
+ x("span", kl, H(R.vault.id), 1)
2803
2803
  ])
2804
2804
  ]),
2805
2805
  _: 1
2806
2806
  }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"]),
2807
- ne.value ? (V(), W(M, {
2807
+ ne.value ? (V(), D(M, {
2808
2808
  key: 0,
2809
2809
  modelValue: h.value,
2810
- "onUpdate:modelValue": v[1] || (v[1] = (A) => h.value = A),
2810
+ "onUpdate:modelValue": v[1] || (v[1] = (R) => h.value = R),
2811
2811
  clearable: "",
2812
2812
  "data-testid": "vault-secret-picker-secret-id-select",
2813
2813
  disabled: K.value || !g.value,
@@ -2816,7 +2816,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2816
2816
  items: re.value,
2817
2817
  "kpop-attributes": { "data-testid": "vault-secret-picker-secret-id-popover" },
2818
2818
  label: e(c)("vault_secret_picker.secret_id.label"),
2819
- loading: e(G),
2819
+ loading: e(z),
2820
2820
  placeholder: e(c)("vault_secret_picker.secret_id.select_placeholder"),
2821
2821
  required: "",
2822
2822
  "reuse-item-template": "",
@@ -2830,10 +2830,10 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2830
2830
  x("div", Cl, H(e(c)("vault_secret_picker.no_results")), 1)
2831
2831
  ]),
2832
2832
  _: 1
2833
- }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (V(), W(se, {
2833
+ }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (V(), D(se, {
2834
2834
  key: 1,
2835
2835
  modelValue: h.value,
2836
- "onUpdate:modelValue": v[2] || (v[2] = (A) => h.value = A),
2836
+ "onUpdate:modelValue": v[2] || (v[2] = (R) => h.value = R),
2837
2837
  modelModifiers: { trim: !0 },
2838
2838
  autocomplete: "off",
2839
2839
  "data-testid": "vault-secret-picker-secret-id-input",
@@ -2843,9 +2843,9 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2843
2843
  required: "",
2844
2844
  type: "text"
2845
2845
  }, null, 8, ["modelValue", "disabled", "label", "placeholder"])),
2846
- d(se, {
2846
+ u(se, {
2847
2847
  modelValue: n.value,
2848
- "onUpdate:modelValue": v[3] || (v[3] = (A) => n.value = A),
2848
+ "onUpdate:modelValue": v[3] || (v[3] = (R) => n.value = R),
2849
2849
  modelModifiers: { trim: !0 },
2850
2850
  autocomplete: "off",
2851
2851
  "data-testid": "vault-secret-picker-secret-key-input",
@@ -2865,7 +2865,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Ot = { class: "vault-form-p
2865
2865
  export {
2866
2866
  $l as SecretForm,
2867
2867
  Hl as SecretList,
2868
- R as VaultAuthMethods,
2868
+ A as VaultAuthMethods,
2869
2869
  Tl as VaultConfigCard,
2870
2870
  Ul as VaultForm,
2871
2871
  El as VaultList,