@kong-ui-public/entities-vaults 3.26.1 → 3.26.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,9 +1,9 @@
1
- import { defineComponent as ue, ref as K, computed as S, watch as ke, onBeforeMount as we, resolveComponent as B, createElementBlock as W, openBlock as C, createVNode as d, unref as e, createSlots as Ke, withCtx as v, createTextVNode as de, toDisplayString as $, createElementVNode as R, createBlock as j, Teleport as Ze, createCommentVNode as D, reactive as he, resolveDynamicComponent as Pe, TransitionGroup as Qe, Fragment as Ye, mergeProps as Oe, normalizeClass as Xe, nextTick as et, renderSlot as tt } from "vue";
2
- import { useRouter as Ee } from "vue-router";
3
- import { BookIcon as He, AddIcon as xe, SecurityIcon as lt, ConjourIcon as ot, AzureIcon as at, HashicorpIcon as rt, GoogleCloudIcon as it, AwsIcon as nt, CodeIcon as st, KongIcon as ct } from "@kong/icons";
4
- import { useAxios as _e, useTableState as dt, useFetcher as qe, useDeleteUrlBuilder as De, FetcherStatus as je, EntityBaseTable as We, PermissionsWrapper as ge, TableTags as ut, EntityFilter as Be, EntityDeleteModal as Le, EntityTypes as ze, useErrors as Ge, EntityBaseFormType as Ve, useGatewayFeatureSupported as ft, EntityBaseForm as Je, SupportedEntityType as Ae, EntityFormSection as Re, ConfigurationSchemaType as pt, ConfigurationSchemaSection as Me, EntityBaseConfigCard as mt, useDebouncedFilter as Fe } from "@kong-ui-public/entities-shared";
5
- import { createI18n as vt, i18nTComponent as gt } from "@kong-ui-public/i18n";
6
- const bt = {
1
+ import { defineComponent as ue, ref as $, computed as w, watch as ke, onBeforeMount as we, resolveComponent as B, createElementBlock as W, openBlock as V, createVNode as u, unref as e, createSlots as Ke, withCtx as v, createTextVNode as de, toDisplayString as T, createElementVNode as I, createBlock as j, Teleport as Ye, createCommentVNode as D, reactive as he, resolveDynamicComponent as He, TransitionGroup as Xe, Fragment as qe, renderList as et, mergeProps as je, normalizeClass as tt, nextTick as lt, renderSlot as ot } from "vue";
2
+ import { useRouter as Ae } from "vue-router";
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 ct, CodeIcon as dt, KongIcon as ut } 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 Ee, useStringHelpers as vt, useHelpers as gt, ConfigurationSchemaType as Se, ConfigurationSchemaSection as Fe, EntityBaseConfigCard as bt, ConfigCardItem as _t, useDebouncedFilter as Ne } from "@kong-ui-public/entities-shared";
5
+ import { createI18n as yt, i18nTComponent as ht } from "@kong-ui-public/i18n";
6
+ const Vt = {
7
7
  create: "New vault",
8
8
  copy_id: "Copy ID",
9
9
  copy_json: "Copy JSON",
@@ -11,18 +11,18 @@ const bt = {
11
11
  delete: "Delete",
12
12
  view: "View Details",
13
13
  loading: "Loading..."
14
- }, _t = {
14
+ }, kt = {
15
15
  general: "Vaults could not be retrieved",
16
16
  delete: "The vault could not be deleted at this time.",
17
17
  copy: "Failed to copy to clipboard"
18
- }, yt = {
18
+ }, Ct = {
19
19
  placeholder_for_vaults: {
20
20
  konnect: "Filter by exact prefix or ID"
21
21
  },
22
22
  placeholder_for_secrets: {
23
23
  konnect: "Filter by exact key"
24
24
  }
25
- }, ht = {
25
+ }, wt = {
26
26
  title: "Vaults",
27
27
  list: {
28
28
  toolbar_actions: {
@@ -47,7 +47,7 @@ const bt = {
47
47
  learn_more: "Learn more"
48
48
  }
49
49
  }
50
- }, Vt = {
50
+ }, St = {
51
51
  title: "Secrets",
52
52
  list: {
53
53
  toolbar_actions: {
@@ -79,12 +79,12 @@ const bt = {
79
79
  },
80
80
  hint: "Once saved, the secret value will not be visible"
81
81
  }
82
- }, kt = {
82
+ }, It = {
83
83
  success: "Copied {val} to clipboard",
84
84
  success_brief: "Successfully copied to clipboard"
85
- }, Ct = {
85
+ }, xt = {
86
86
  vault_type: "Vault Type"
87
- }, wt = {
87
+ }, Rt = {
88
88
  sections: {
89
89
  general: {
90
90
  title: "General Information",
@@ -370,7 +370,7 @@ const bt = {
370
370
  }
371
371
  },
372
372
  unavailable: "This vault provider is available on Enterprise."
373
- }, St = {
373
+ }, Et = {
374
374
  title: "Look up Key in Vault",
375
375
  vault: {
376
376
  label: "Vault",
@@ -399,54 +399,54 @@ const bt = {
399
399
  complete_action: "Look up {cta}",
400
400
  cta: "key in vault"
401
401
  }
402
- }, It = {
403
- actions: bt,
402
+ }, At = {
403
+ actions: Vt,
404
404
  delete: {
405
405
  title: "Delete a Vault",
406
406
  title_for_secret: "Delete a Secret",
407
407
  description: "This action cannot be reversed."
408
408
  },
409
- errors: _t,
410
- search: yt,
411
- vaults: ht,
412
- secrets: Vt,
413
- copy: kt,
414
- labels: Ct,
415
- form: wt,
416
- vault_secret_picker: St
409
+ errors: kt,
410
+ search: Ct,
411
+ vaults: wt,
412
+ secrets: St,
413
+ copy: It,
414
+ labels: xt,
415
+ form: Rt,
416
+ vault_secret_picker: Et
417
417
  };
418
- function xt() {
419
- const l = vt("en-us", It);
418
+ function Ut() {
419
+ const l = yt("en-us", At);
420
420
  return {
421
421
  i18n: l,
422
- i18nT: gt(l)
422
+ i18nT: ht(l)
423
423
  // Translation component <i18n-t>
424
424
  };
425
425
  }
426
426
  const ye = {
427
- useI18n: xt
428
- }, Se = "/v2/control-planes/{controlPlaneId}/core-entities", Ne = "/v2/control-planes/{controlPlaneId}/config-stores", Ie = "/{workspace}", pe = {
427
+ useI18n: Ut
428
+ }, Ie = "/v2/control-planes/{controlPlaneId}/core-entities", Oe = "/v2/control-planes/{controlPlaneId}/config-stores", xe = "/{workspace}", pe = {
429
429
  list: {
430
430
  konnect: {
431
- getAll: `${Se}/vaults`,
432
- deleteConfigStore: `${Ne}/{id}?force=true`
431
+ getAll: `${Ie}/vaults`,
432
+ deleteConfigStore: `${Oe}/{id}?force=true`
433
433
  },
434
434
  kongManager: {
435
- getAll: `${Ie}/vaults`
435
+ getAll: `${xe}/vaults`
436
436
  }
437
437
  },
438
438
  form: {
439
439
  konnect: {
440
- create: `${Se}/vaults`,
441
- createConfigStore: Ne,
442
- edit: `${Se}/vaults/{id}`
443
- },
444
- kongManager: {
445
440
  create: `${Ie}/vaults`,
441
+ createConfigStore: Oe,
446
442
  edit: `${Ie}/vaults/{id}`
443
+ },
444
+ kongManager: {
445
+ create: `${xe}/vaults`,
446
+ edit: `${xe}/vaults/{id}`
447
447
  }
448
448
  }
449
- }, Rt = { class: "kong-ui-entities-vaults-list" }, Et = { class: "button-row" }, At = { class: "table-content-overflow-wrapper" }, Ut = { class: "table-content-overflow-wrapper" }, Tt = /* @__PURE__ */ ue({
449
+ }, Tt = { class: "kong-ui-entities-vaults-list" }, $t = { class: "button-row" }, Pt = { class: "table-content-overflow-wrapper" }, Kt = { class: "table-content-overflow-wrapper" }, Ht = /* @__PURE__ */ ue({
450
450
  __name: "VaultList",
451
451
  props: {
452
452
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -491,125 +491,125 @@ const ye = {
491
491
  }
492
492
  },
493
493
  emits: ["error", "click:learn-more", "copy:success", "copy:error", "delete:success"],
494
- setup(l, { emit: I }) {
494
+ setup(l, { emit: S }) {
495
495
  var fe;
496
- const c = I, s = l, { i18n: { t: p } } = ye.useI18n(), a = Ee(), { axiosInstance: x } = _e((fe = s.config) == null ? void 0 : fe.axiosRequestConfig), { hasRecords: w, handleStateChange: _ } = dt(() => Q.value), u = S(() => w.value && s.config.app === "konnect"), h = S(() => s.config.app !== "kongManager" || !!s.config.disableSorting), f = {
496
+ const d = S, c = l, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance: P } = _e((fe = c.config) == null ? void 0 : fe.axiosRequestConfig), { hasRecords: x, handleStateChange: m } = ft(() => Q.value), n = w(() => x.value && c.config.app === "konnect"), b = w(() => c.config.app !== "kongManager" || !!c.config.disableSorting), f = {
497
497
  // the Prefix column is non-hidable
498
498
  prefix: { label: p("vaults.list.table_headers.prefix"), searchable: !0, sortable: !0, hidable: !1 },
499
499
  // it's "Vault Type" on display, but we still use "name" to fit API schema
500
500
  name: { label: p("vaults.list.table_headers.name"), searchable: !0, sortable: !0 },
501
501
  description: { label: p("vaults.list.table_headers.description"), sortable: !1 },
502
502
  tags: { label: p("vaults.list.table_headers.tags"), sortable: !1 }
503
- }, z = f, X = S(() => {
504
- var A, U;
505
- let V = `${s.config.apiBaseUrl}${pe.list[s.config.app].getAll}`;
506
- return s.config.app === "konnect" ? V = V.replace(/{controlPlaneId}/gi, ((A = s.config) == null ? void 0 : A.controlPlaneId) || "") : s.config.app === "kongManager" && (V = V.replace(/\/{workspace}/gi, (U = s.config) != null && U.workspace ? `/${s.config.workspace}` : "")), V;
507
- }), Q = K(""), Y = S(() => {
508
- if (s.config.app === "konnect" || s.config.isExactMatch)
503
+ }, z = f, X = w(() => {
504
+ var E, A;
505
+ let k = `${c.config.apiBaseUrl}${pe.list[c.config.app].getAll}`;
506
+ return c.config.app === "konnect" ? k = k.replace(/{controlPlaneId}/gi, ((E = c.config) == null ? void 0 : E.controlPlaneId) || "") : c.config.app === "kongManager" && (k = k.replace(/\/{workspace}/gi, (A = c.config) != null && A.workspace ? `/${c.config.workspace}` : "")), k;
507
+ }), Q = $(""), Y = w(() => {
508
+ if (c.config.app === "konnect" || c.config.isExactMatch)
509
509
  return {
510
510
  isExactMatch: !0,
511
511
  placeholder: p("search.placeholder_for_vaults.konnect")
512
512
  };
513
- const { prefix: A, name: U } = f;
513
+ const { prefix: E, name: A } = f;
514
514
  return {
515
515
  isExactMatch: !1,
516
- fields: { name: U, prefix: A },
517
- schema: s.config.filterSchema
516
+ fields: { name: A, prefix: E },
517
+ schema: c.config.filterSchema
518
518
  };
519
519
  }), {
520
520
  fetcher: N,
521
521
  fetcherState: o,
522
522
  fetcherCacheKey: ae
523
- } = qe(S(() => ({ ...s.config, cacheIdentifier: s.cacheIdentifier })), X), G = () => {
523
+ } = De(w(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), X), G = () => {
524
524
  Q.value = "";
525
525
  }, ee = () => {
526
526
  ae.value++;
527
- }, J = K(null), b = async (V, A) => {
528
- const U = V.id;
529
- if (!await A(U)) {
530
- c("copy:error", {
531
- entity: V,
527
+ }, J = $(null), y = async (k, E) => {
528
+ const A = k.id;
529
+ if (!await E(A)) {
530
+ d("copy:error", {
531
+ entity: k,
532
532
  field: "id",
533
533
  message: p("errors.copy")
534
534
  });
535
535
  return;
536
536
  }
537
- c("copy:success", {
538
- entity: V,
537
+ d("copy:success", {
538
+ entity: k,
539
539
  field: "id",
540
- message: p("copy.success", { val: U })
540
+ message: p("copy.success", { val: A })
541
541
  });
542
- }, F = async (V, A) => {
543
- const U = JSON.stringify(V);
544
- if (!await A(U)) {
545
- c("copy:error", {
546
- entity: V,
542
+ }, F = async (k, E) => {
543
+ const A = JSON.stringify(k);
544
+ if (!await E(A)) {
545
+ d("copy:error", {
546
+ entity: k,
547
547
  message: p("errors.copy")
548
548
  });
549
549
  return;
550
550
  }
551
- c("copy:success", {
552
- entity: V,
551
+ d("copy:success", {
552
+ entity: k,
553
553
  message: p("copy.success_brief")
554
554
  });
555
- }, re = async (V) => {
556
- var U;
557
- await ((U = s.canRetrieve) == null ? void 0 : U.call(s, V)) && a.push(s.config.getViewRoute(V.id));
558
- }, ne = (V) => ({
555
+ }, re = async (k) => {
556
+ var A;
557
+ await ((A = c.canRetrieve) == null ? void 0 : A.call(c, k)) && a.push(c.config.getViewRoute(k.id));
558
+ }, ne = (k) => ({
559
559
  label: p("actions.view"),
560
- to: s.config.getViewRoute(V)
561
- }), le = (V) => ({
560
+ to: c.config.getViewRoute(k)
561
+ }), le = (k) => ({
562
562
  label: p("actions.edit"),
563
- to: s.config.getEditRoute(V)
564
- }), O = K(void 0), ie = K(!1), T = K(!1), Z = K(""), te = De(s.config, X.value), g = (V) => {
565
- O.value = V, ie.value = !0;
566
- }, m = () => {
563
+ to: c.config.getEditRoute(k)
564
+ }), O = $(void 0), ie = $(!1), U = $(!1), Z = $(""), te = We(c.config, X.value), _ = (k) => {
565
+ O.value = k, ie.value = !0;
566
+ }, g = () => {
567
567
  ie.value = !1;
568
- }, P = async (V) => {
569
- const { apiBaseUrl: A, app: U, controlPlaneId: n } = s.config, r = `${A}${pe.list[U].deleteConfigStore}`.replace(/{controlPlaneId}/gi, n || "").replace(/{id}/gi, V);
568
+ }, K = async (k) => {
569
+ const { apiBaseUrl: E, app: A, controlPlaneId: s } = c.config, r = `${E}${pe.list[A].deleteConfigStore}`.replace(/{controlPlaneId}/gi, s || "").replace(/{id}/gi, k);
570
570
  try {
571
- await x.delete(r);
571
+ await P.delete(r);
572
572
  } catch {
573
573
  }
574
574
  }, H = async () => {
575
- var V, A, U, n;
576
- if ((V = O.value) != null && V.id) {
577
- T.value = !0;
575
+ var k, E, A, s;
576
+ if ((k = O.value) != null && k.id) {
577
+ U.value = !0;
578
578
  try {
579
- await x.delete(te(O.value.id)), s.config.app === "konnect" && ((A = O.value.config) != null && A.config_store_id) && P(O.value.config.config_store_id), T.value = !1, ie.value = !1, ae.value++, c("delete:success", O.value);
579
+ await P.delete(te(O.value.id)), c.config.app === "konnect" && ((E = O.value.config) != null && E.config_store_id) && K(O.value.config.config_store_id), U.value = !1, ie.value = !1, ae.value++, d("delete:success", O.value);
580
580
  } catch (r) {
581
- Z.value = ((n = (U = r.response) == null ? void 0 : U.data) == null ? void 0 : n.message) || r.message || p("errors.delete"), c("error", r);
581
+ Z.value = ((s = (A = r.response) == null ? void 0 : A.data) == null ? void 0 : s.message) || r.message || p("errors.delete"), d("error", r);
582
582
  } finally {
583
- T.value = !1;
583
+ U.value = !1;
584
584
  }
585
585
  }
586
586
  }, se = () => {
587
- a.push(s.config.createRoute);
587
+ a.push(c.config.createRoute);
588
588
  };
589
- ke(o, (V) => {
590
- var A, U, n;
591
- if (V.status === je.Error) {
589
+ ke(o, (k) => {
590
+ var E, A, s;
591
+ if (k.status === Be.Error) {
592
592
  J.value = {
593
593
  title: p("errors.general")
594
- }, (n = (U = (A = V.error) == null ? void 0 : A.response) == null ? void 0 : U.data) != null && n.message && (J.value.message = V.error.response.data.message), c("error", V.error);
594
+ }, (s = (A = (E = k.error) == null ? void 0 : E.response) == null ? void 0 : A.data) != null && s.message && (J.value.message = k.error.response.data.message), d("error", k.error);
595
595
  return;
596
596
  }
597
597
  J.value = null;
598
598
  });
599
- const q = K({
600
- ctaPath: s.config.createRoute,
599
+ const q = $({
600
+ ctaPath: c.config.createRoute,
601
601
  ctaText: void 0,
602
- message: `${p("vaults.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
602
+ message: `${p("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
603
603
  title: p("vaults.title")
604
- }), E = K(!1);
604
+ }), R = $(!1);
605
605
  return we(async () => {
606
- E.value = await s.canCreate(), E.value && (q.value.title = p("vaults.list.empty_state.title"), q.value.ctaText = p("actions.create"));
607
- }), (V, A) => {
608
- const U = B("KButton"), n = B("KEmptyState"), r = B("KDropdownItem"), L = B("KClipboardProvider");
609
- return C(), W("div", Rt, [
610
- d(e(We), {
606
+ R.value = await c.canCreate(), R.value && (q.value.title = p("vaults.list.empty_state.title"), q.value.ctaText = p("actions.create"));
607
+ }), (k, E) => {
608
+ const A = B("KButton"), s = B("KEmptyState"), r = B("KDropdownItem"), L = B("KClipboardProvider");
609
+ return V(), W("div", Tt, [
610
+ u(e(Le), {
611
611
  "cache-identifier": l.cacheIdentifier,
612
- "disable-sorting": h.value,
612
+ "disable-sorting": b.value,
613
613
  "empty-state-options": q.value,
614
614
  "enable-entity-actions": "",
615
615
  "error-message": J.value,
@@ -620,49 +620,49 @@ const ye = {
620
620
  query: Q.value,
621
621
  "table-headers": e(z),
622
622
  onClearSearchInput: G,
623
- "onClick:row": A[3] || (A[3] = (k) => re(k)),
623
+ "onClick:row": E[3] || (E[3] = (C) => re(C)),
624
624
  onSort: ee,
625
- onState: e(_)
625
+ onState: e(m)
626
626
  }, Ke({
627
627
  "toolbar-filter": v(() => [
628
- d(e(Be), {
628
+ u(e(ze), {
629
629
  modelValue: Q.value,
630
- "onUpdate:modelValue": A[0] || (A[0] = (k) => Q.value = k),
630
+ "onUpdate:modelValue": E[0] || (E[0] = (C) => Q.value = C),
631
631
  config: Y.value
632
632
  }, null, 8, ["modelValue", "config"])
633
633
  ]),
634
634
  "toolbar-button": v(() => [
635
- (C(), j(Ze, {
635
+ (V(), j(Ye, {
636
636
  disabled: !l.useActionOutside,
637
637
  to: "#kong-ui-app-page-header-action-button"
638
638
  }, [
639
- R("div", Et, [
640
- u.value ? (C(), j(U, {
639
+ I("div", $t, [
640
+ n.value ? (V(), j(A, {
641
641
  key: 0,
642
642
  appearance: "secondary",
643
643
  class: "open-learning-hub",
644
644
  "data-testid": "vault-learn-more-button",
645
645
  icon: "",
646
- onClick: A[1] || (A[1] = (k) => V.$emit("click:learn-more"))
646
+ onClick: E[1] || (E[1] = (C) => k.$emit("click:learn-more"))
647
647
  }, {
648
648
  default: v(() => [
649
- d(e(He), { decorative: "" })
649
+ u(e(Me), { decorative: "" })
650
650
  ]),
651
651
  _: 1
652
652
  })) : D("", !0),
653
- d(e(ge), {
653
+ u(e(ge), {
654
654
  "auth-function": () => l.canCreate()
655
655
  }, {
656
656
  default: v(() => [
657
- d(U, {
657
+ u(A, {
658
658
  appearance: "primary",
659
659
  "data-testid": "toolbar-add-vault",
660
660
  size: l.useActionOutside ? "medium" : "large",
661
661
  to: l.config.createRoute
662
662
  }, {
663
663
  default: v(() => [
664
- d(e(xe)),
665
- de(" " + $(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
664
+ u(e(Re)),
665
+ de(" " + T(e(p)("vaults.list.toolbar_actions.new_vault")), 1)
666
666
  ]),
667
667
  _: 1
668
668
  }, 8, ["size", "to"])
@@ -672,84 +672,84 @@ const ye = {
672
672
  ])
673
673
  ], 8, ["disabled"]))
674
674
  ]),
675
- prefix: v(({ rowValue: k }) => [
676
- R("div", At, [
677
- R("b", null, $(k ?? "-"), 1)
675
+ prefix: v(({ rowValue: C }) => [
676
+ I("div", Pt, [
677
+ I("b", null, T(C ?? "-"), 1)
678
678
  ])
679
679
  ]),
680
- name: v(({ rowValue: k }) => [
681
- R("b", null, $(k ?? "-"), 1)
680
+ name: v(({ rowValue: C }) => [
681
+ I("b", null, T(C ?? "-"), 1)
682
682
  ]),
683
- description: v(({ rowValue: k }) => [
684
- R("div", Ut, $(k ?? "-"), 1)
683
+ description: v(({ rowValue: C }) => [
684
+ I("div", Kt, T(C ?? "-"), 1)
685
685
  ]),
686
- tags: v(({ rowValue: k }) => [
687
- d(e(ut), { tags: k }, null, 8, ["tags"])
686
+ tags: v(({ rowValue: C }) => [
687
+ u(e(pt), { tags: C }, null, 8, ["tags"])
688
688
  ]),
689
- actions: v(({ row: k }) => [
690
- d(L, null, {
691
- default: v(({ copyToClipboard: y }) => [
692
- d(r, {
689
+ actions: v(({ row: C }) => [
690
+ u(L, null, {
691
+ default: v(({ copyToClipboard: h }) => [
692
+ u(r, {
693
693
  "data-testid": "action-entity-copy-id",
694
- onClick: (oe) => b(k, y)
694
+ onClick: (oe) => y(C, h)
695
695
  }, {
696
696
  default: v(() => [
697
- de($(e(p)("actions.copy_id")), 1)
697
+ de(T(e(p)("actions.copy_id")), 1)
698
698
  ]),
699
699
  _: 2
700
700
  }, 1032, ["onClick"])
701
701
  ]),
702
702
  _: 2
703
703
  }, 1024),
704
- d(L, null, {
705
- default: v(({ copyToClipboard: y }) => [
706
- d(r, {
704
+ u(L, null, {
705
+ default: v(({ copyToClipboard: h }) => [
706
+ u(r, {
707
707
  "data-testid": "action-entity-copy-json",
708
- onClick: (oe) => F(k, y)
708
+ onClick: (oe) => F(C, h)
709
709
  }, {
710
710
  default: v(() => [
711
- de($(e(p)("actions.copy_json")), 1)
711
+ de(T(e(p)("actions.copy_json")), 1)
712
712
  ]),
713
713
  _: 2
714
714
  }, 1032, ["onClick"])
715
715
  ]),
716
716
  _: 2
717
717
  }, 1024),
718
- d(e(ge), {
719
- "auth-function": () => l.canRetrieve(k)
718
+ u(e(ge), {
719
+ "auth-function": () => l.canRetrieve(C)
720
720
  }, {
721
721
  default: v(() => [
722
- d(r, {
722
+ u(r, {
723
723
  "data-testid": "action-entity-view",
724
724
  "has-divider": "",
725
- item: ne(k.id)
725
+ item: ne(C.id)
726
726
  }, null, 8, ["item"])
727
727
  ]),
728
728
  _: 2
729
729
  }, 1032, ["auth-function"]),
730
- d(e(ge), {
731
- "auth-function": () => l.canEdit(k)
730
+ u(e(ge), {
731
+ "auth-function": () => l.canEdit(C)
732
732
  }, {
733
733
  default: v(() => [
734
- d(r, {
734
+ u(r, {
735
735
  "data-testid": "action-entity-edit",
736
- item: le(k.id)
736
+ item: le(C.id)
737
737
  }, null, 8, ["item"])
738
738
  ]),
739
739
  _: 2
740
740
  }, 1032, ["auth-function"]),
741
- d(e(ge), {
742
- "auth-function": () => l.canDelete(k)
741
+ u(e(ge), {
742
+ "auth-function": () => l.canDelete(C)
743
743
  }, {
744
744
  default: v(() => [
745
- d(r, {
745
+ u(r, {
746
746
  danger: "",
747
747
  "data-testid": "action-entity-delete",
748
748
  "has-divider": "",
749
- onClick: (y) => g(k)
749
+ onClick: (h) => _(C)
750
750
  }, {
751
751
  default: v(() => [
752
- de($(e(p)("actions.delete")), 1)
752
+ de(T(e(p)("actions.delete")), 1)
753
753
  ]),
754
754
  _: 2
755
755
  }, 1032, ["onClick"])
@@ -762,47 +762,47 @@ const ye = {
762
762
  !Q.value && l.config.app === "konnect" ? {
763
763
  name: "empty-state",
764
764
  fn: v(() => {
765
- var k;
765
+ var C;
766
766
  return [
767
- d(n, {
767
+ u(s, {
768
768
  "data-testid": "vaults-entity-empty-state",
769
769
  "icon-background": "",
770
770
  message: e(p)("vaults.list.empty_state_v2.description"),
771
771
  title: e(p)("vaults.list.empty_state_v2.title")
772
772
  }, Ke({
773
773
  icon: v(() => [
774
- d(e(lt), { decorative: "" })
774
+ u(e(at), { decorative: "" })
775
775
  ]),
776
776
  action: v(() => [
777
- E.value ? (C(), j(U, {
777
+ R.value ? (V(), j(A, {
778
778
  key: 0,
779
779
  "data-testid": "entity-create-button",
780
780
  onClick: se
781
781
  }, {
782
782
  default: v(() => [
783
- d(e(xe), { decorative: "" }),
784
- de(" " + $(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
783
+ u(e(Re), { decorative: "" }),
784
+ de(" " + T(e(p)("vaults.list.empty_state_v2.create_cta")), 1)
785
785
  ]),
786
786
  _: 1
787
787
  })) : D("", !0),
788
- d(U, {
788
+ u(A, {
789
789
  appearance: "secondary",
790
790
  "data-testid": "entity-learn-more-button",
791
- onClick: A[2] || (A[2] = (y) => V.$emit("click:learn-more"))
791
+ onClick: E[2] || (E[2] = (h) => k.$emit("click:learn-more"))
792
792
  }, {
793
793
  default: v(() => [
794
- d(e(He), { decorative: "" }),
795
- de(" " + $(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
794
+ u(e(Me), { decorative: "" }),
795
+ de(" " + T(e(p)("vaults.list.empty_state_v2.learn_more")), 1)
796
796
  ]),
797
797
  _: 1
798
798
  })
799
799
  ]),
800
800
  _: 2
801
801
  }, [
802
- (k = l.config) != null && k.isControlPlaneGroup ? {
802
+ (C = l.config) != null && C.isControlPlaneGroup ? {
803
803
  name: "default",
804
804
  fn: v(() => [
805
- de($(e(p)("vaults.list.empty_state_v2.group")), 1)
805
+ de(T(e(p)("vaults.list.empty_state_v2.group")), 1)
806
806
  ]),
807
807
  key: "0"
808
808
  } : void 0
@@ -812,43 +812,43 @@ const ye = {
812
812
  key: "0"
813
813
  } : void 0
814
814
  ]), 1032, ["cache-identifier", "disable-sorting", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers", "onState"]),
815
- d(e(Le), {
816
- "action-pending": T.value,
815
+ u(e(Ge), {
816
+ "action-pending": U.value,
817
817
  description: e(p)("delete.description"),
818
818
  "entity-name": O.value && (O.value.prefix || O.value.id),
819
- "entity-type": e(ze).Vault,
819
+ "entity-type": e(Je).Vault,
820
820
  error: Z.value,
821
821
  title: e(p)("delete.title"),
822
822
  visible: ie.value,
823
- onCancel: m,
823
+ onCancel: g,
824
824
  onProceed: H
825
825
  }, null, 8, ["action-pending", "description", "entity-name", "entity-type", "error", "title", "visible"])
826
826
  ]);
827
827
  };
828
828
  }
829
- }), me = (l, I) => {
830
- const c = l.__vccOpts || l;
831
- for (const [s, p] of I)
832
- c[s] = p;
833
- return c;
834
- }, Sl = /* @__PURE__ */ me(Tt, [["__scopeId", "data-v-0f7e9fff"]]);
829
+ }), me = (l, S) => {
830
+ const d = l.__vccOpts || l;
831
+ for (const [c, p] of S)
832
+ d[c] = p;
833
+ return d;
834
+ }, El = /* @__PURE__ */ me(Ht, [["__scopeId", "data-v-0f7e9fff"]]);
835
835
  var t = /* @__PURE__ */ ((l) => (l.AWS = "aws", l.GCP = "gcp", l.HCV = "hcv", l.ENV = "env", l.AZURE = "azure", l.KONNECT = "konnect", l.CONJUR = "conjur", l))(t || {}), M = /* @__PURE__ */ ((l) => (l.TOKEN = "token", l.K8S = "kubernetes", l.APP_ROLE = "approle", l.CERT = "cert", l))(M || {});
836
- const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-provider-cards-container" }, Pt = ["data-testid"], Ht = { class: "provider-item-title-container" }, Mt = { class: "provider-item-title" }, Ft = { class: "provider-item-description" }, Nt = {
836
+ const Mt = { class: "kong-ui-entities-vault-form" }, Ft = { class: "vault-form-provider-cards-container" }, Nt = ["data-testid"], Ot = { class: "provider-item-title-container" }, qt = { class: "provider-item-title" }, jt = { class: "provider-item-description" }, Dt = {
837
837
  key: "kong-vault-config-fields",
838
838
  class: "vault-form-config-fields-container"
839
- }, Ot = {
839
+ }, Wt = {
840
840
  key: 0,
841
841
  class: "vault-form-config-auth-method-container"
842
- }, qt = {
842
+ }, Bt = {
843
843
  key: 1,
844
844
  class: "vault-form-config-auth-method-container"
845
- }, Dt = {
845
+ }, Lt = {
846
846
  key: 2,
847
847
  class: "vault-form-config-auth-method-container"
848
- }, jt = {
848
+ }, zt = {
849
849
  key: 3,
850
850
  class: "vault-form-config-auth-method-container"
851
- }, Wt = { key: 6 }, Bt = { class: "wrapper" }, Lt = { class: "item-50" }, zt = { class: "item-50" }, Gt = { class: "wrapper" }, Jt = { class: "item-100" }, Zt = /* @__PURE__ */ ue({
851
+ }, Gt = { key: 6 }, Jt = { class: "wrapper" }, Zt = { class: "item-50" }, Qt = { class: "item-50" }, Yt = { class: "wrapper" }, Xt = { class: "item-100" }, el = /* @__PURE__ */ ue({
852
852
  __name: "VaultForm",
853
853
  props: {
854
854
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -865,9 +865,9 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
865
865
  }
866
866
  },
867
867
  emits: ["update", "error", "loading"],
868
- setup(l, { emit: I }) {
869
- var U;
870
- const c = l, s = I, { i18nT: p, i18n: { t: a } } = ye.useI18n(), x = Ee(), { axiosInstance: w } = _e((U = c.config) == null ? void 0 : U.axiosRequestConfig), { getMessageFromError: _ } = Ge(), u = he({
868
+ setup(l, { emit: S }) {
869
+ var A;
870
+ const d = l, c = S, { i18nT: p, i18n: { t: a } } = ye.useI18n(), P = Ae(), { axiosInstance: x } = _e((A = d.config) == null ? void 0 : A.axiosRequestConfig), { getMessageFromError: m } = Ze(), n = he({
871
871
  fields: {
872
872
  prefix: "",
873
873
  description: "",
@@ -875,12 +875,12 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
875
875
  },
876
876
  isReadonly: !1,
877
877
  errorMessage: ""
878
- }), h = he({
878
+ }), b = he({
879
879
  prefix: "",
880
880
  description: "",
881
881
  tags: ""
882
- }), f = K(c.config.konnectConfigStoreAvailable ? t.KONNECT : t.ENV), z = K(null), X = K(), Q = S(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(f.value)), Y = S(() => [
883
- ...c.config.konnectConfigStoreAvailable ? [{
882
+ }), f = $(d.config.konnectConfigStoreAvailable ? t.KONNECT : t.ENV), z = $(null), X = $(), Q = w(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(f.value)), Y = w(() => [
883
+ ...d.config.konnectConfigStoreAvailable ? [{
884
884
  label: a("form.config.konnect.label"),
885
885
  value: t.KONNECT
886
886
  }] : [],
@@ -903,17 +903,17 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
903
903
  value: t.HCV,
904
904
  disabled: !le.value
905
905
  },
906
- ...c.config.azureVaultProviderAvailable ? [{
906
+ ...d.config.azureVaultProviderAvailable ? [{
907
907
  label: a("form.config.azure.label"),
908
908
  value: t.AZURE,
909
909
  disabled: !le.value
910
910
  }] : [],
911
- ...c.config.conjurVaultProviderAvailable ? [{
911
+ ...d.config.conjurVaultProviderAvailable ? [{
912
912
  label: a("form.config.conjur.label"),
913
913
  value: t.CONJUR,
914
914
  disabled: !le.value
915
915
  }] : []
916
- ]), N = c.config.base64FieldAvailable ? { base64_decode: !1 } : {}, o = he({
916
+ ]), N = d.config.base64FieldAvailable ? { base64_decode: !1 } : {}, o = he({
917
917
  [t.KONNECT]: {},
918
918
  [t.ENV]: {
919
919
  prefix: "",
@@ -1041,41 +1041,41 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1041
1041
  { label: `${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`, value: "sa-east-1" },
1042
1042
  { label: `${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`, value: "us-gov-east-1" },
1043
1043
  { label: `${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`, value: "us-gov-west-1" }
1044
- ], ee = [{ label: "secrets", value: "secrets" }], J = [{ label: "http", value: "http" }, { label: "https", value: "https" }], b = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], F = S(() => c.vaultId ? Ve.Edit : Ve.Create), re = S(() => {
1045
- var n, r;
1046
- return (r = pe.form[(n = c.config) == null ? void 0 : n.app]) == null ? void 0 : r.edit;
1047
- }), ne = S(() => F.value === Ve.Edit && c.config.app === "kongManager"), le = S(() => c.config.app === "konnect" || ft({
1048
- gatewayInfo: c.config.gatewayInfo,
1044
+ ], ee = [{ label: "secrets", value: "secrets" }], J = [{ label: "http", value: "http" }, { label: "https", value: "https" }], y = [{ label: "v1", value: "v1" }, { label: "v2", value: "v2" }], F = w(() => d.vaultId ? Ve.Edit : Ve.Create), re = w(() => {
1045
+ var s, r;
1046
+ return (r = pe.form[(s = d.config) == null ? void 0 : s.app]) == null ? void 0 : r.edit;
1047
+ }), ne = w(() => F.value === Ve.Edit && d.config.app === "kongManager"), le = w(() => d.config.app === "konnect" || mt({
1048
+ gatewayInfo: d.config.gatewayInfo,
1049
1049
  // vault name can only be `env` in Gateway Community Edition
1050
1050
  supportedRange: {
1051
1051
  enterprise: []
1052
1052
  }
1053
1053
  })), O = () => {
1054
- var n;
1055
- x.push(((n = c.config) == null ? void 0 : n.cancelRoute) || { name: "vault-list" });
1056
- }, ie = (n) => {
1057
- s("loading", n);
1058
- }, T = (n) => {
1059
- s("error", n);
1060
- }, Z = (n) => {
1061
- switch (n) {
1054
+ var s;
1055
+ P.push(((s = d.config) == null ? void 0 : s.cancelRoute) || { name: "vault-list" });
1056
+ }, ie = (s) => {
1057
+ c("loading", s);
1058
+ }, U = (s) => {
1059
+ c("error", s);
1060
+ }, Z = (s) => {
1061
+ switch (s) {
1062
1062
  case t.KONNECT:
1063
- return ct;
1063
+ return ut;
1064
1064
  case t.ENV:
1065
- return st;
1065
+ return dt;
1066
1066
  case t.AWS:
1067
- return nt;
1067
+ return ct;
1068
1068
  case t.GCP:
1069
- return it;
1069
+ return st;
1070
1070
  case t.HCV:
1071
- return rt;
1071
+ return nt;
1072
1072
  case t.AZURE:
1073
- return at;
1073
+ return it;
1074
1074
  case t.CONJUR:
1075
- return ot;
1075
+ return rt;
1076
1076
  }
1077
- }, te = (n) => {
1078
- switch (n) {
1077
+ }, te = (s) => {
1078
+ switch (s) {
1079
1079
  case t.KONNECT:
1080
1080
  return a("form.config.konnect.description");
1081
1081
  case t.ENV:
@@ -1091,14 +1091,14 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1091
1091
  case t.CONJUR:
1092
1092
  return a("form.config.conjur.description");
1093
1093
  }
1094
- }, g = (n) => {
1095
- var k, y, oe, ce, ve, i;
1096
- u.fields.prefix = ((k = n == null ? void 0 : n.item) == null ? void 0 : k.prefix) || (n == null ? void 0 : n.prefix) || "", u.fields.description = ((y = n == null ? void 0 : n.item) == null ? void 0 : y.description) || (n == null ? void 0 : n.description) || "";
1097
- const r = ((oe = n == null ? void 0 : n.item) == null ? void 0 : oe.tags) || (n == null ? void 0 : n.tags) || [];
1098
- u.fields.tags = (r == null ? void 0 : r.join(", ")) || "", Object.assign(h, u.fields);
1099
- const L = ((ce = n == null ? void 0 : n.item) == null ? void 0 : ce.config) || (n == null ? void 0 : n.config) || null;
1100
- L && (Object.keys(L).length || (n == null ? void 0 : n.name) === t.KONNECT) ? (f.value = ((ve = n == null ? void 0 : n.item) == null ? void 0 : ve.name) || (n == null ? void 0 : n.name) || "", z.value = f.value, X.value = ((i = n == null ? void 0 : n.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(o[f.value], L), Object.assign(ae[f.value], L)) : u.errorMessage = "Error loading vault config";
1101
- }, m = (n) => n === "" || n == null, P = S(() => f.value === t.HCV ? !Object.keys(o[t.HCV]).filter((n) => [
1094
+ }, _ = (s) => {
1095
+ var C, h, oe, ce, ve, i;
1096
+ n.fields.prefix = ((C = s == null ? void 0 : s.item) == null ? void 0 : C.prefix) || (s == null ? void 0 : s.prefix) || "", n.fields.description = ((h = s == null ? void 0 : s.item) == null ? void 0 : h.description) || (s == null ? void 0 : s.description) || "";
1097
+ const r = ((oe = s == null ? void 0 : s.item) == null ? void 0 : oe.tags) || (s == null ? void 0 : s.tags) || [];
1098
+ n.fields.tags = (r == null ? void 0 : r.join(", ")) || "", Object.assign(b, n.fields);
1099
+ const L = ((ce = s == null ? void 0 : s.item) == null ? void 0 : ce.config) || (s == null ? void 0 : s.config) || null;
1100
+ 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) || "", z.value = f.value, X.value = ((i = s == null ? void 0 : s.config) == null ? void 0 : i.config_store_id) || void 0, Object.assign(o[f.value], L), Object.assign(ae[f.value], L)) : n.errorMessage = "Error loading vault config";
1101
+ }, g = (s) => s === "" || s == null, K = w(() => f.value === t.HCV ? !Object.keys(o[t.HCV]).filter((s) => [
1102
1102
  "namespace",
1103
1103
  "ttl",
1104
1104
  "neg_ttl",
@@ -1107,13 +1107,13 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1107
1107
  "approle_auth_path",
1108
1108
  "approle_secret_id",
1109
1109
  "approle_secret_id_file"
1110
- ].includes(n) || o[t.HCV].auth_method !== M.K8S && (n === "kube_role" || n === "kube_api_token_file") || o[t.HCV].auth_method !== M.TOKEN && n === "token" || o[t.HCV].auth_method !== M.APP_ROLE && (n === "approle_role_id" || n === "approle_response_wrapping") || o[t.HCV].auth_method === M.APP_ROLE && n === "approle_response_wrapping" && typeof o[f.value][n] == "boolean" || o[t.HCV].auth_method !== M.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(n) ? !1 : m(o[f.value][n])).length : f.value === t.AZURE ? !Object.keys(o[t.AZURE]).filter((n) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(o[f.value][n])).length : f.value === t.AWS ? !Object.keys(o[t.AWS]).filter((n) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(n) ? !1 : m(o[f.value][n])).length : !Object.keys(o[f.value]).filter((n) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(n) ? !1 : m(o[f.value][n])).length), H = S(() => !!u.fields.prefix && P.value), se = S(() => JSON.stringify(u.fields) !== JSON.stringify(h) || f.value !== z.value || JSON.stringify(o[f.value]) !== JSON.stringify(ae[f.value])), q = S(() => {
1110
+ ].includes(s) || o[t.HCV].auth_method !== M.K8S && (s === "kube_role" || s === "kube_api_token_file") || o[t.HCV].auth_method !== M.TOKEN && s === "token" || o[t.HCV].auth_method !== M.APP_ROLE && (s === "approle_role_id" || s === "approle_response_wrapping") || o[t.HCV].auth_method === M.APP_ROLE && s === "approle_response_wrapping" && typeof o[f.value][s] == "boolean" || o[t.HCV].auth_method !== M.CERT && ["cert_auth_role_name", "cert_auth_cert", "cert_auth_cert_key"].includes(s) ? !1 : g(o[f.value][s])).length : f.value === t.AZURE ? !Object.keys(o[t.AZURE]).filter((s) => ["client_id", "tenant_id", "ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : g(o[f.value][s])).length : f.value === t.AWS ? !Object.keys(o[t.AWS]).filter((s) => ["endpoint_url", "assume_role_arn", "ttl", "neg_ttl", "resurrect_ttl", "sts_endpoint_url"].includes(s) ? !1 : g(o[f.value][s])).length : !Object.keys(o[f.value]).filter((s) => ["ttl", "neg_ttl", "resurrect_ttl"].includes(s) ? !1 : g(o[f.value][s])).length), H = w(() => !!n.fields.prefix && K.value), se = w(() => JSON.stringify(n.fields) !== JSON.stringify(b) || f.value !== z.value || JSON.stringify(o[f.value]) !== JSON.stringify(ae[f.value])), q = w(() => {
1111
1111
  var r, L;
1112
- let n = `${c.config.apiBaseUrl}${pe.form[c.config.app][F.value]}`;
1113
- return c.config.app === "konnect" ? n = n.replace(/{controlPlaneId}/gi, ((r = c.config) == null ? void 0 : r.controlPlaneId) || "") : c.config.app === "kongManager" && (n = n.replace(/\/{workspace}/gi, (L = c.config) != null && L.workspace ? `/${c.config.workspace}` : "")), n = n.replace(/{id}/gi, c.vaultId), n;
1114
- }), E = S(() => {
1112
+ let s = `${d.config.apiBaseUrl}${pe.form[d.config.app][F.value]}`;
1113
+ return d.config.app === "konnect" ? s = s.replace(/{controlPlaneId}/gi, ((r = d.config) == null ? void 0 : r.controlPlaneId) || "") : d.config.app === "kongManager" && (s = s.replace(/\/{workspace}/gi, (L = d.config) != null && L.workspace ? `/${d.config.workspace}` : "")), s = s.replace(/{id}/gi, d.vaultId), s;
1114
+ }), R = w(() => {
1115
1115
  var ce, ve;
1116
- const n = {
1116
+ const s = {
1117
1117
  protocol: o[t.HCV].protocol,
1118
1118
  host: o[t.HCV].host,
1119
1119
  port: parseInt(o[t.HCV].port.toString()),
@@ -1121,7 +1121,7 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1121
1121
  kv: o[t.HCV].kv,
1122
1122
  namespace: o[t.HCV].namespace || null,
1123
1123
  auth_method: o[t.HCV].auth_method,
1124
- ...c.config.base64FieldAvailable && { base64_decode: o[t.HCV].base64_decode },
1124
+ ...d.config.base64FieldAvailable && { base64_decode: o[t.HCV].base64_decode },
1125
1125
  ...o[t.HCV].auth_method === M.TOKEN && { token: o[t.HCV].token },
1126
1126
  // For Kong Admin API, when auth_method is kubernetes, token must be in the request body and its value has to be null
1127
1127
  ...o[t.HCV].auth_method === M.K8S && {
@@ -1150,112 +1150,112 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1150
1150
  ...o[f.value],
1151
1151
  endpoint_url: o[f.value].endpoint_url || null,
1152
1152
  assume_role_arn: o[f.value].assume_role_arn || null,
1153
- ...c.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: o[f.value].sts_endpoint_url || null } : {}
1153
+ ...d.config.awsStsEndpointUrlAvailable ? { sts_endpoint_url: o[f.value].sts_endpoint_url || null } : {}
1154
1154
  };
1155
- let k = o[f.value];
1156
- f.value === t.HCV ? k = n : f.value === t.AZURE ? k = r : f.value === t.AWS && (k = L);
1157
- let y = {};
1155
+ let C = o[f.value];
1156
+ f.value === t.HCV ? C = s : f.value === t.AZURE ? C = r : f.value === t.AWS && (C = L);
1157
+ let h = {};
1158
1158
  if (![t.KONNECT, t.ENV].includes(f.value)) {
1159
- const i = o[f.value], Ue = i.ttl, Te = i.neg_ttl, $e = i.resurrect_ttl;
1160
- y = {
1161
- ttl: Ue ? parseInt(Ue.toString(), 10) : null,
1162
- neg_ttl: Te ? parseInt(Te.toString(), 10) : null,
1163
- resurrect_ttl: $e ? parseInt($e.toString(), 10) : null
1159
+ const i = o[f.value], Te = i.ttl, $e = i.neg_ttl, Pe = i.resurrect_ttl;
1160
+ h = {
1161
+ ttl: Te ? parseInt(Te.toString(), 10) : null,
1162
+ neg_ttl: $e ? parseInt($e.toString(), 10) : null,
1163
+ resurrect_ttl: Pe ? parseInt(Pe.toString(), 10) : null
1164
1164
  };
1165
1165
  }
1166
1166
  return {
1167
- prefix: u.fields.prefix,
1168
- description: u.fields.description || null,
1169
- tags: (ve = (ce = u.fields.tags.split(",")) == null ? void 0 : ce.map((i) => String(i || "").trim())) == null ? void 0 : ve.filter((i) => i !== ""),
1167
+ prefix: n.fields.prefix,
1168
+ description: n.fields.description || null,
1169
+ tags: (ve = (ce = n.fields.tags.split(",")) == null ? void 0 : ce.map((i) => String(i || "").trim())) == null ? void 0 : ve.filter((i) => i !== ""),
1170
1170
  name: f.value,
1171
1171
  config: {
1172
- ...k,
1173
- ...y
1172
+ ...C,
1173
+ ...h
1174
1174
  }
1175
1175
  };
1176
- }), fe = S(() => ({
1177
- ...E.value,
1176
+ }), fe = w(() => ({
1177
+ ...R.value,
1178
1178
  config: {
1179
- ...E.value.config,
1179
+ ...R.value.config,
1180
1180
  config_store_id: X.value
1181
1181
  }
1182
- })), V = async () => {
1183
- var n;
1182
+ })), k = async () => {
1183
+ var s;
1184
1184
  try {
1185
- u.isReadonly = !0;
1186
- const r = `${c.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((n = c.config) == null ? void 0 : n.controlPlaneId) || ""), L = await w.post(r);
1185
+ n.isReadonly = !0;
1186
+ const r = `${d.config.apiBaseUrl}${pe.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi, ((s = d.config) == null ? void 0 : s.controlPlaneId) || ""), L = await x.post(r);
1187
1187
  return L == null ? void 0 : L.data.id;
1188
1188
  } catch (r) {
1189
- u.errorMessage = _(r), s("error", r);
1189
+ n.errorMessage = m(r), c("error", r);
1190
1190
  } finally {
1191
- u.isReadonly = !1;
1191
+ n.isReadonly = !1;
1192
1192
  }
1193
- }, A = async () => {
1194
- var n;
1193
+ }, E = async () => {
1194
+ var s;
1195
1195
  try {
1196
- u.isReadonly = !0;
1196
+ n.isReadonly = !0;
1197
1197
  let r;
1198
- F.value === "create" ? f.value === t.KONNECT ? (X.value = await V(), r = await w.post(q.value, fe.value)) : r = await w.post(q.value, E.value) : F.value === "edit" && (f.value === t.KONNECT && !X.value ? (X.value = await V(), r = await w.put(q.value, fe.value)) : r = ((n = c.config) == null ? void 0 : n.app) === "konnect" ? await w.put(q.value, fe.value) : await w.patch(q.value, E.value)), g(r == null ? void 0 : r.data), s("update", r == null ? void 0 : r.data);
1198
+ F.value === "create" ? f.value === t.KONNECT ? (X.value = await k(), r = await x.post(q.value, fe.value)) : r = await x.post(q.value, R.value) : F.value === "edit" && (f.value === t.KONNECT && !X.value ? (X.value = await k(), r = await x.put(q.value, fe.value)) : r = ((s = d.config) == null ? void 0 : s.app) === "konnect" ? await x.put(q.value, fe.value) : await x.patch(q.value, R.value)), _(r == null ? void 0 : r.data), c("update", r == null ? void 0 : r.data);
1199
1199
  } catch (r) {
1200
- u.errorMessage = _(r), s("error", r);
1200
+ n.errorMessage = m(r), c("error", r);
1201
1201
  } finally {
1202
- u.isReadonly = !1;
1202
+ n.isReadonly = !1;
1203
1203
  }
1204
1204
  };
1205
- return (n, r) => {
1206
- const L = B("KTooltip"), k = B("KSelect"), y = B("KInput"), oe = B("KCheckbox"), ce = B("KTextArea"), ve = B("KCollapse");
1207
- return C(), W("div", $t, [
1208
- d(e(Je), {
1205
+ return (s, r) => {
1206
+ const L = B("KTooltip"), C = B("KSelect"), h = B("KInput"), oe = B("KCheckbox"), ce = B("KTextArea"), ve = B("KCollapse");
1207
+ return V(), W("div", Mt, [
1208
+ u(e(Qe), {
1209
1209
  "can-submit": H.value && se.value,
1210
1210
  config: l.config,
1211
1211
  "edit-id": l.vaultId,
1212
- "entity-type": e(Ae).Vault,
1213
- "error-message": u.errorMessage,
1212
+ "entity-type": e(Ue).Vault,
1213
+ "error-message": n.errorMessage,
1214
1214
  "fetch-url": re.value,
1215
- "form-fields": E.value,
1216
- "is-readonly": u.isReadonly,
1215
+ "form-fields": R.value,
1216
+ "is-readonly": n.isReadonly,
1217
1217
  onCancel: O,
1218
- "onFetch:error": T,
1219
- "onFetch:success": g,
1218
+ "onFetch:error": U,
1219
+ "onFetch:success": _,
1220
1220
  onLoading: ie,
1221
- onSubmit: A
1221
+ onSubmit: E
1222
1222
  }, {
1223
1223
  default: v(() => [
1224
- d(e(Re), {
1224
+ u(e(Ee), {
1225
1225
  description: e(a)("form.sections.config.description"),
1226
1226
  title: e(a)("form.sections.config.title")
1227
1227
  }, {
1228
1228
  default: v(() => [
1229
- R("div", Kt, [
1230
- d(k, {
1229
+ I("div", Ft, [
1230
+ u(C, {
1231
1231
  modelValue: f.value,
1232
1232
  "onUpdate:modelValue": r[0] || (r[0] = (i) => f.value = i),
1233
1233
  "data-testid": "provider-select",
1234
1234
  disabled: ne.value,
1235
1235
  "dropdown-max-height": "500",
1236
1236
  items: Y.value,
1237
- readonly: u.isReadonly
1237
+ readonly: n.isReadonly
1238
1238
  }, {
1239
1239
  "selected-item-template": v(({ item: i }) => [
1240
- (C(), j(Pe(Z(i.value)))),
1241
- R("span", null, $(i == null ? void 0 : i.label), 1)
1240
+ (V(), j(He(Z(i.value)))),
1241
+ I("span", null, T(i == null ? void 0 : i.label), 1)
1242
1242
  ]),
1243
1243
  "item-template": v(({ item: i }) => [
1244
- d(L, {
1244
+ u(L, {
1245
1245
  placement: "top",
1246
1246
  text: i.disabled ? e(a)("form.unavailable") : ""
1247
1247
  }, {
1248
1248
  default: v(() => [
1249
- R("div", {
1249
+ I("div", {
1250
1250
  class: "provider-item",
1251
1251
  "data-testid": `vault-form-provider-${i.value}`
1252
1252
  }, [
1253
- (C(), j(Pe(Z(i.value)))),
1254
- R("div", Ht, [
1255
- R("span", Mt, $(i == null ? void 0 : i.label), 1),
1256
- R("span", Ft, $(te(i.value)), 1)
1253
+ (V(), j(He(Z(i.value)))),
1254
+ I("div", Ot, [
1255
+ I("span", qt, T(i == null ? void 0 : i.label), 1),
1256
+ I("span", jt, T(te(i.value)), 1)
1257
1257
  ])
1258
- ], 8, Pt)
1258
+ ], 8, Nt)
1259
1259
  ]),
1260
1260
  _: 2
1261
1261
  }, 1032, ["text"])
@@ -1263,10 +1263,10 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1263
1263
  _: 1
1264
1264
  }, 8, ["modelValue", "disabled", "items", "readonly"])
1265
1265
  ]),
1266
- d(Qe, { name: "appear" }, {
1266
+ u(Xe, { name: "appear" }, {
1267
1267
  default: v(() => [
1268
- f.value === e(t).ENV ? (C(), W("div", Nt, [
1269
- d(y, {
1268
+ f.value === e(t).ENV ? (V(), W("div", Dt, [
1269
+ u(h, {
1270
1270
  modelValue: o[e(t).ENV].prefix,
1271
1271
  "onUpdate:modelValue": r[1] || (r[1] = (i) => o[e(t).ENV].prefix = i),
1272
1272
  modelModifiers: { trim: !0 },
@@ -1278,11 +1278,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1278
1278
  tooltipAttributes: { maxWidth: "400" }
1279
1279
  },
1280
1280
  placeholder: e(a)("form.config.env.fields.prefix.placeholder"),
1281
- readonly: u.isReadonly,
1281
+ readonly: n.isReadonly,
1282
1282
  required: "",
1283
1283
  type: "text"
1284
1284
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1285
- l.config.base64FieldAvailable ? (C(), j(oe, {
1285
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1286
1286
  key: 0,
1287
1287
  modelValue: o[e(t).ENV].base64_decode,
1288
1288
  "onUpdate:modelValue": r[2] || (r[2] = (i) => o[e(t).ENV].base64_decode = i),
@@ -1292,14 +1292,14 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1292
1292
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1293
1293
  tooltipAttributes: { maxWidth: "400" }
1294
1294
  },
1295
- readonly: u.isReadonly
1295
+ readonly: n.isReadonly
1296
1296
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1297
1297
  ])) : D("", !0),
1298
- f.value === e(t).AWS ? (C(), W("div", {
1298
+ f.value === e(t).AWS ? (V(), W("div", {
1299
1299
  key: `${e(t).AWS}-vault-config-fields`,
1300
1300
  class: "vault-form-config-fields-container"
1301
1301
  }, [
1302
- d(k, {
1302
+ u(C, {
1303
1303
  modelValue: o[e(t).AWS].region,
1304
1304
  "onUpdate:modelValue": r[3] || (r[3] = (i) => o[e(t).AWS].region = i),
1305
1305
  "data-testid": "vault-form-config-aws-region",
@@ -1307,11 +1307,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1307
1307
  label: e(a)("form.config.aws.fields.region.label"),
1308
1308
  "label-attributes": { info: e(a)("form.config.aws.fields.region.tooltip") },
1309
1309
  placeholder: e(a)("form.config.aws.fields.region.placeholder"),
1310
- readonly: u.isReadonly,
1310
+ readonly: n.isReadonly,
1311
1311
  required: "",
1312
1312
  width: "100%"
1313
1313
  }, null, 8, ["modelValue", "label", "label-attributes", "placeholder", "readonly"]),
1314
- d(y, {
1314
+ u(h, {
1315
1315
  modelValue: o[e(t).AWS].endpoint_url,
1316
1316
  "onUpdate:modelValue": r[4] || (r[4] = (i) => o[e(t).AWS].endpoint_url = i),
1317
1317
  modelModifiers: { trim: !0 },
@@ -1322,10 +1322,10 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1322
1322
  info: e(a)("form.config.aws.fields.endpoint_url.tooltip"),
1323
1323
  tooltipAttributes: { maxWidth: "400" }
1324
1324
  },
1325
- readonly: u.isReadonly,
1325
+ readonly: n.isReadonly,
1326
1326
  type: "text"
1327
1327
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1328
- d(y, {
1328
+ u(h, {
1329
1329
  modelValue: o[e(t).AWS].assume_role_arn,
1330
1330
  "onUpdate:modelValue": r[5] || (r[5] = (i) => o[e(t).AWS].assume_role_arn = i),
1331
1331
  modelModifiers: { trim: !0 },
@@ -1336,10 +1336,10 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1336
1336
  info: e(a)("form.config.aws.fields.assume_role_arn.tooltip"),
1337
1337
  tooltipAttributes: { maxWidth: "400" }
1338
1338
  },
1339
- readonly: u.isReadonly,
1339
+ readonly: n.isReadonly,
1340
1340
  type: "text"
1341
1341
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1342
- d(y, {
1342
+ u(h, {
1343
1343
  modelValue: o[e(t).AWS].role_session_name,
1344
1344
  "onUpdate:modelValue": r[6] || (r[6] = (i) => o[e(t).AWS].role_session_name = i),
1345
1345
  modelModifiers: { trim: !0 },
@@ -1350,11 +1350,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1350
1350
  info: e(a)("form.config.aws.fields.role_session_name.tooltip"),
1351
1351
  tooltipAttributes: { maxWidth: "400" }
1352
1352
  },
1353
- readonly: u.isReadonly,
1353
+ readonly: n.isReadonly,
1354
1354
  required: "",
1355
1355
  type: "text"
1356
1356
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1357
- l.config.awsStsEndpointUrlAvailable ? (C(), j(y, {
1357
+ l.config.awsStsEndpointUrlAvailable ? (V(), j(h, {
1358
1358
  key: 0,
1359
1359
  modelValue: o[e(t).AWS].sts_endpoint_url,
1360
1360
  "onUpdate:modelValue": r[7] || (r[7] = (i) => o[e(t).AWS].sts_endpoint_url = i),
@@ -1366,10 +1366,10 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1366
1366
  info: e(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),
1367
1367
  tooltipAttributes: { maxWidth: "400" }
1368
1368
  },
1369
- readonly: u.isReadonly,
1369
+ readonly: n.isReadonly,
1370
1370
  type: "text"
1371
1371
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0),
1372
- l.config.base64FieldAvailable ? (C(), j(oe, {
1372
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1373
1373
  key: 1,
1374
1374
  modelValue: o[e(t).AWS].base64_decode,
1375
1375
  "onUpdate:modelValue": r[8] || (r[8] = (i) => o[e(t).AWS].base64_decode = i),
@@ -1379,14 +1379,14 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1379
1379
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1380
1380
  tooltipAttributes: { maxWidth: "400" }
1381
1381
  },
1382
- readonly: u.isReadonly
1382
+ readonly: n.isReadonly
1383
1383
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1384
1384
  ])) : D("", !0),
1385
- f.value === e(t).GCP ? (C(), W("div", {
1385
+ f.value === e(t).GCP ? (V(), W("div", {
1386
1386
  key: `${e(t).GCP}-vault-config-fields`,
1387
1387
  class: "vault-form-config-fields-container"
1388
1388
  }, [
1389
- d(y, {
1389
+ u(h, {
1390
1390
  modelValue: o[e(t).GCP].project_id,
1391
1391
  "onUpdate:modelValue": r[9] || (r[9] = (i) => o[e(t).GCP].project_id = i),
1392
1392
  modelModifiers: { trim: !0 },
@@ -1394,24 +1394,24 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1394
1394
  "data-testid": "vault-form-config-gcp-project-id",
1395
1395
  label: e(a)("form.config.gcp.fields.project_id.label"),
1396
1396
  placeholder: e(a)("form.config.gcp.fields.project_id.placeholder"),
1397
- readonly: u.isReadonly,
1397
+ readonly: n.isReadonly,
1398
1398
  required: "",
1399
1399
  type: "text"
1400
1400
  }, {
1401
1401
  "label-tooltip": v(() => [
1402
- d(e(p), {
1402
+ u(e(p), {
1403
1403
  keypath: "form.config.gcp.fields.project_id.tooltip.text",
1404
1404
  scope: "global"
1405
1405
  }, {
1406
1406
  "italic-text": v(() => [
1407
- R("em", null, $(e(a)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
1407
+ I("em", null, T(e(a)("form.config.gcp.fields.project_id.tooltip.italicText")), 1)
1408
1408
  ]),
1409
1409
  _: 1
1410
1410
  })
1411
1411
  ]),
1412
1412
  _: 1
1413
1413
  }, 8, ["modelValue", "label", "placeholder", "readonly"]),
1414
- l.config.base64FieldAvailable ? (C(), j(oe, {
1414
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1415
1415
  key: 0,
1416
1416
  modelValue: o[e(t).GCP].base64_decode,
1417
1417
  "onUpdate:modelValue": r[10] || (r[10] = (i) => o[e(t).GCP].base64_decode = i),
@@ -1421,77 +1421,77 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1421
1421
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1422
1422
  tooltipAttributes: { maxWidth: "400" }
1423
1423
  },
1424
- readonly: u.isReadonly
1424
+ readonly: n.isReadonly
1425
1425
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1426
1426
  ])) : D("", !0),
1427
- f.value === e(t).HCV ? (C(), W("div", {
1427
+ f.value === e(t).HCV ? (V(), W("div", {
1428
1428
  key: `${e(t).HCV}-vault-config-fields`,
1429
1429
  class: "vault-form-config-fields-container"
1430
1430
  }, [
1431
- d(k, {
1431
+ u(C, {
1432
1432
  modelValue: o[e(t).HCV].protocol,
1433
1433
  "onUpdate:modelValue": r[11] || (r[11] = (i) => o[e(t).HCV].protocol = i),
1434
1434
  "data-testid": "vault-form-config-hcv-protocol",
1435
1435
  items: J,
1436
1436
  label: e(a)("form.config.hcv.fields.protocol.label"),
1437
- readonly: u.isReadonly,
1437
+ readonly: n.isReadonly,
1438
1438
  required: "",
1439
1439
  width: "100%"
1440
1440
  }, null, 8, ["modelValue", "label", "readonly"]),
1441
- d(y, {
1441
+ u(h, {
1442
1442
  modelValue: o[e(t).HCV].host,
1443
1443
  "onUpdate:modelValue": r[12] || (r[12] = (i) => o[e(t).HCV].host = i),
1444
1444
  modelModifiers: { trim: !0 },
1445
1445
  autocomplete: "off",
1446
1446
  "data-testid": "vault-form-config-hcv-host",
1447
1447
  label: e(a)("form.config.hcv.fields.host.label"),
1448
- readonly: u.isReadonly,
1448
+ readonly: n.isReadonly,
1449
1449
  required: "",
1450
1450
  type: "text"
1451
1451
  }, null, 8, ["modelValue", "label", "readonly"]),
1452
- d(y, {
1452
+ u(h, {
1453
1453
  modelValue: o[e(t).HCV].port,
1454
1454
  "onUpdate:modelValue": r[13] || (r[13] = (i) => o[e(t).HCV].port = i),
1455
1455
  autocomplete: "off",
1456
1456
  "data-testid": "vault-form-config-hcv-port",
1457
1457
  label: e(a)("form.config.hcv.fields.port.label"),
1458
1458
  min: "0",
1459
- readonly: u.isReadonly,
1459
+ readonly: n.isReadonly,
1460
1460
  required: "",
1461
1461
  type: "number"
1462
1462
  }, null, 8, ["modelValue", "label", "readonly"]),
1463
- d(y, {
1463
+ u(h, {
1464
1464
  modelValue: o[e(t).HCV].mount,
1465
1465
  "onUpdate:modelValue": r[14] || (r[14] = (i) => o[e(t).HCV].mount = i),
1466
1466
  modelModifiers: { trim: !0 },
1467
1467
  autocomplete: "off",
1468
1468
  "data-testid": "vault-form-config-hcv-mount",
1469
1469
  label: e(a)("form.config.hcv.fields.mount.label"),
1470
- readonly: u.isReadonly,
1470
+ readonly: n.isReadonly,
1471
1471
  required: "",
1472
1472
  type: "text"
1473
1473
  }, null, 8, ["modelValue", "label", "readonly"]),
1474
- d(k, {
1474
+ u(C, {
1475
1475
  modelValue: o[e(t).HCV].kv,
1476
1476
  "onUpdate:modelValue": r[15] || (r[15] = (i) => o[e(t).HCV].kv = i),
1477
1477
  "data-testid": "vault-form-config-hcv-kv",
1478
- items: b,
1478
+ items: y,
1479
1479
  label: e(a)("form.config.hcv.fields.kv.label"),
1480
- readonly: u.isReadonly,
1480
+ readonly: n.isReadonly,
1481
1481
  required: "",
1482
1482
  width: "100%"
1483
1483
  }, null, 8, ["modelValue", "label", "readonly"]),
1484
- d(y, {
1484
+ u(h, {
1485
1485
  modelValue: o[e(t).HCV].namespace,
1486
1486
  "onUpdate:modelValue": r[16] || (r[16] = (i) => o[e(t).HCV].namespace = i),
1487
1487
  modelModifiers: { trim: !0 },
1488
1488
  autocomplete: "off",
1489
1489
  "data-testid": "vault-form-config-hcv-namespace",
1490
1490
  label: e(a)("form.config.hcv.fields.namespace.label"),
1491
- readonly: u.isReadonly,
1491
+ readonly: n.isReadonly,
1492
1492
  type: "text"
1493
1493
  }, null, 8, ["modelValue", "label", "readonly"]),
1494
- d(k, {
1494
+ u(C, {
1495
1495
  modelValue: o[e(t).HCV].auth_method,
1496
1496
  "onUpdate:modelValue": r[17] || (r[17] = (i) => o[e(t).HCV].auth_method = i),
1497
1497
  "data-testid": "vault-form-config-hcv-auth_method",
@@ -1502,138 +1502,138 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1502
1502
  ...l.config.hcvCertMethodAvailable ? [{ label: e(M).CERT, value: e(M).CERT }] : []
1503
1503
  ],
1504
1504
  label: e(a)("form.config.hcv.fields.auth_method.label"),
1505
- readonly: u.isReadonly,
1505
+ readonly: n.isReadonly,
1506
1506
  required: "",
1507
1507
  width: "100%"
1508
1508
  }, null, 8, ["modelValue", "items", "label", "readonly"]),
1509
- o[e(t).HCV].auth_method === e(M).TOKEN ? (C(), W("div", Ot, [
1510
- d(y, {
1509
+ o[e(t).HCV].auth_method === e(M).TOKEN ? (V(), W("div", Wt, [
1510
+ u(h, {
1511
1511
  modelValue: o[e(t).HCV].token,
1512
1512
  "onUpdate:modelValue": r[18] || (r[18] = (i) => o[e(t).HCV].token = i),
1513
1513
  modelModifiers: { trim: !0 },
1514
1514
  autocomplete: "off",
1515
1515
  "data-testid": "vault-form-config-hcv-token",
1516
1516
  label: e(a)("form.config.hcv.fields.token.label"),
1517
- readonly: u.isReadonly,
1517
+ readonly: n.isReadonly,
1518
1518
  required: "",
1519
1519
  "show-password-mask-toggle": "",
1520
1520
  type: "password"
1521
1521
  }, null, 8, ["modelValue", "label", "readonly"])
1522
- ])) : o[e(t).HCV].auth_method === e(M).K8S ? (C(), W("div", qt, [
1523
- d(y, {
1522
+ ])) : o[e(t).HCV].auth_method === e(M).K8S ? (V(), W("div", Bt, [
1523
+ u(h, {
1524
1524
  modelValue: o[e(t).HCV].kube_role,
1525
1525
  "onUpdate:modelValue": r[19] || (r[19] = (i) => o[e(t).HCV].kube_role = i),
1526
1526
  modelModifiers: { trim: !0 },
1527
1527
  autocomplete: "off",
1528
1528
  "data-testid": "vault-form-config-hcv-kube_role",
1529
1529
  label: e(a)("form.config.hcv.fields.kube_role.label"),
1530
- readonly: u.isReadonly,
1530
+ readonly: n.isReadonly,
1531
1531
  required: "",
1532
1532
  type: "text"
1533
1533
  }, null, 8, ["modelValue", "label", "readonly"]),
1534
- d(y, {
1534
+ u(h, {
1535
1535
  modelValue: o[e(t).HCV].kube_auth_path,
1536
1536
  "onUpdate:modelValue": r[20] || (r[20] = (i) => o[e(t).HCV].kube_auth_path = i),
1537
1537
  modelModifiers: { trim: !0 },
1538
1538
  autocomplete: "off",
1539
1539
  "data-testid": "vault-form-config-hcv-kube_auth_path",
1540
1540
  label: e(a)("form.config.hcv.fields.kube_auth_path.label"),
1541
- readonly: u.isReadonly,
1541
+ readonly: n.isReadonly,
1542
1542
  type: "text"
1543
1543
  }, null, 8, ["modelValue", "label", "readonly"]),
1544
- d(y, {
1544
+ u(h, {
1545
1545
  modelValue: o[e(t).HCV].kube_api_token_file,
1546
1546
  "onUpdate:modelValue": r[21] || (r[21] = (i) => o[e(t).HCV].kube_api_token_file = i),
1547
1547
  modelModifiers: { trim: !0 },
1548
1548
  autocomplete: "off",
1549
1549
  "data-testid": "vault-form-config-hcv-kube_api_token_file",
1550
1550
  label: e(a)("form.config.hcv.fields.kube_api_token_file.label"),
1551
- readonly: u.isReadonly,
1551
+ readonly: n.isReadonly,
1552
1552
  required: "",
1553
1553
  type: "text"
1554
1554
  }, null, 8, ["modelValue", "label", "readonly"])
1555
- ])) : o[e(t).HCV].auth_method === e(M).APP_ROLE ? (C(), W("div", Dt, [
1556
- d(y, {
1555
+ ])) : o[e(t).HCV].auth_method === e(M).APP_ROLE ? (V(), W("div", Lt, [
1556
+ u(h, {
1557
1557
  modelValue: o[e(t).HCV].approle_auth_path,
1558
1558
  "onUpdate:modelValue": r[22] || (r[22] = (i) => o[e(t).HCV].approle_auth_path = i),
1559
1559
  modelModifiers: { trim: !0 },
1560
1560
  autocomplete: "off",
1561
1561
  "data-testid": "vault-form-config-hcv-approle_auth_path",
1562
1562
  label: e(a)("form.config.hcv.fields.approle_auth_path.label"),
1563
- readonly: u.isReadonly,
1563
+ readonly: n.isReadonly,
1564
1564
  type: "text"
1565
1565
  }, null, 8, ["modelValue", "label", "readonly"]),
1566
- d(y, {
1566
+ u(h, {
1567
1567
  modelValue: o[e(t).HCV].approle_role_id,
1568
1568
  "onUpdate:modelValue": r[23] || (r[23] = (i) => o[e(t).HCV].approle_role_id = i),
1569
1569
  modelModifiers: { trim: !0 },
1570
1570
  autocomplete: "off",
1571
1571
  "data-testid": "vault-form-config-hcv-approle_role_id",
1572
1572
  label: e(a)("form.config.hcv.fields.approle_role_id.label"),
1573
- readonly: u.isReadonly,
1573
+ readonly: n.isReadonly,
1574
1574
  required: "",
1575
1575
  type: "text"
1576
1576
  }, null, 8, ["modelValue", "label", "readonly"]),
1577
- d(y, {
1577
+ u(h, {
1578
1578
  modelValue: o[e(t).HCV].approle_secret_id,
1579
1579
  "onUpdate:modelValue": r[24] || (r[24] = (i) => o[e(t).HCV].approle_secret_id = i),
1580
1580
  modelModifiers: { trim: !0 },
1581
1581
  autocomplete: "off",
1582
1582
  "data-testid": "vault-form-config-hcv-approle_secret_id",
1583
1583
  label: e(a)("form.config.hcv.fields.approle_secret_id.label"),
1584
- readonly: u.isReadonly,
1584
+ readonly: n.isReadonly,
1585
1585
  "show-password-mask-toggle": "",
1586
1586
  type: "password"
1587
1587
  }, null, 8, ["modelValue", "label", "readonly"]),
1588
- d(y, {
1588
+ u(h, {
1589
1589
  modelValue: o[e(t).HCV].approle_secret_id_file,
1590
1590
  "onUpdate:modelValue": r[25] || (r[25] = (i) => o[e(t).HCV].approle_secret_id_file = i),
1591
1591
  modelModifiers: { trim: !0 },
1592
1592
  autocomplete: "off",
1593
1593
  "data-testid": "vault-form-config-hcv-approle_secret_id_file",
1594
1594
  label: e(a)("form.config.hcv.fields.approle_secret_id_file.label"),
1595
- readonly: u.isReadonly,
1595
+ readonly: n.isReadonly,
1596
1596
  type: "text"
1597
1597
  }, null, 8, ["modelValue", "label", "readonly"]),
1598
- d(oe, {
1598
+ u(oe, {
1599
1599
  modelValue: o[e(t).HCV].approle_response_wrapping,
1600
1600
  "onUpdate:modelValue": r[26] || (r[26] = (i) => o[e(t).HCV].approle_response_wrapping = i),
1601
1601
  "data-testid": "vault-form-config-hcv-approle_response_wrapping",
1602
1602
  label: e(a)("form.config.hcv.fields.approle_response_wrapping.label")
1603
1603
  }, null, 8, ["modelValue", "label"])
1604
- ])) : o[e(t).HCV].auth_method === e(M).CERT ? (C(), W("div", jt, [
1605
- d(y, {
1604
+ ])) : o[e(t).HCV].auth_method === e(M).CERT ? (V(), W("div", zt, [
1605
+ u(h, {
1606
1606
  modelValue: o[e(t).HCV].cert_auth_role_name,
1607
1607
  "onUpdate:modelValue": r[27] || (r[27] = (i) => o[e(t).HCV].cert_auth_role_name = i),
1608
1608
  modelModifiers: { trim: !0 },
1609
1609
  autocomplete: "off",
1610
1610
  "data-testid": "vault-form-config-hcv-cert_auth_role_name",
1611
1611
  label: e(a)("form.config.hcv.fields.cert_auth_role_name.label"),
1612
- readonly: u.isReadonly,
1612
+ readonly: n.isReadonly,
1613
1613
  required: ""
1614
1614
  }, null, 8, ["modelValue", "label", "readonly"]),
1615
- d(ce, {
1615
+ u(ce, {
1616
1616
  modelValue: o[e(t).HCV].cert_auth_cert,
1617
1617
  "onUpdate:modelValue": r[28] || (r[28] = (i) => o[e(t).HCV].cert_auth_cert = i),
1618
1618
  modelModifiers: { trim: !0 },
1619
1619
  autocomplete: "off",
1620
1620
  "data-testid": "vault-form-config-hcv-cert_auth_cert",
1621
1621
  label: e(a)("form.config.hcv.fields.cert_auth_cert.label"),
1622
- readonly: u.isReadonly,
1622
+ readonly: n.isReadonly,
1623
1623
  required: ""
1624
1624
  }, null, 8, ["modelValue", "label", "readonly"]),
1625
- d(ce, {
1625
+ u(ce, {
1626
1626
  modelValue: o[e(t).HCV].cert_auth_cert_key,
1627
1627
  "onUpdate:modelValue": r[29] || (r[29] = (i) => o[e(t).HCV].cert_auth_cert_key = i),
1628
1628
  modelModifiers: { trim: !0 },
1629
1629
  autocomplete: "off",
1630
1630
  "data-testid": "vault-form-config-hcv-cert_auth_cert_key",
1631
1631
  label: e(a)("form.config.hcv.fields.cert_auth_cert_key.label"),
1632
- readonly: u.isReadonly,
1632
+ readonly: n.isReadonly,
1633
1633
  required: ""
1634
1634
  }, null, 8, ["modelValue", "label", "readonly"])
1635
1635
  ])) : D("", !0),
1636
- l.config.base64FieldAvailable ? (C(), j(oe, {
1636
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1637
1637
  key: 4,
1638
1638
  modelValue: o[e(t).HCV].base64_decode,
1639
1639
  "onUpdate:modelValue": r[30] || (r[30] = (i) => o[e(t).HCV].base64_decode = i),
@@ -1643,78 +1643,78 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1643
1643
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1644
1644
  tooltipAttributes: { maxWidth: "400" }
1645
1645
  },
1646
- readonly: u.isReadonly
1646
+ readonly: n.isReadonly
1647
1647
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1648
1648
  ])) : D("", !0),
1649
- f.value === e(t).AZURE ? (C(), W("div", {
1649
+ f.value === e(t).AZURE ? (V(), W("div", {
1650
1650
  key: `${e(t).AZURE}-vault-config-fields`,
1651
1651
  class: "vault-form-config-fields-container"
1652
1652
  }, [
1653
- d(y, {
1653
+ u(h, {
1654
1654
  modelValue: o[e(t).AZURE].location,
1655
1655
  "onUpdate:modelValue": r[31] || (r[31] = (i) => o[e(t).AZURE].location = i),
1656
1656
  modelModifiers: { trim: !0 },
1657
1657
  autocomplete: "off",
1658
1658
  "data-testid": "vault-form-config-azure-location",
1659
1659
  label: e(a)("form.config.azure.fields.location.label"),
1660
- readonly: u.isReadonly,
1660
+ readonly: n.isReadonly,
1661
1661
  required: "",
1662
1662
  type: "text"
1663
1663
  }, null, 8, ["modelValue", "label", "readonly"]),
1664
- d(y, {
1664
+ u(h, {
1665
1665
  modelValue: o[e(t).AZURE].vault_uri,
1666
1666
  "onUpdate:modelValue": r[32] || (r[32] = (i) => o[e(t).AZURE].vault_uri = i),
1667
1667
  modelModifiers: { trim: !0 },
1668
1668
  autocomplete: "off",
1669
1669
  "data-testid": "vault-form-config-azure-uri",
1670
1670
  label: e(a)("form.config.azure.fields.vault_uri.label"),
1671
- readonly: u.isReadonly,
1671
+ readonly: n.isReadonly,
1672
1672
  required: "",
1673
1673
  type: "text"
1674
1674
  }, null, 8, ["modelValue", "label", "readonly"]),
1675
- d(y, {
1675
+ u(h, {
1676
1676
  modelValue: o[e(t).AZURE].credentials_prefix,
1677
1677
  "onUpdate:modelValue": r[33] || (r[33] = (i) => o[e(t).AZURE].credentials_prefix = i),
1678
1678
  modelModifiers: { trim: !0 },
1679
1679
  autocomplete: "off",
1680
1680
  "data-testid": "vault-form-config-azure-prefix",
1681
1681
  label: e(a)("form.config.azure.fields.credential_prefix.label"),
1682
- readonly: u.isReadonly,
1682
+ readonly: n.isReadonly,
1683
1683
  required: "",
1684
1684
  type: "text"
1685
1685
  }, null, 8, ["modelValue", "label", "readonly"]),
1686
- d(k, {
1686
+ u(C, {
1687
1687
  modelValue: o[e(t).AZURE].type,
1688
1688
  "onUpdate:modelValue": r[34] || (r[34] = (i) => o[e(t).AZURE].type = i),
1689
1689
  "data-testid": "vault-form-config-azure-type",
1690
1690
  items: ee,
1691
1691
  label: e(a)("form.config.azure.fields.type.label"),
1692
1692
  placeholder: e(a)("form.config.azure.fields.type.placeholder"),
1693
- readonly: u.isReadonly,
1693
+ readonly: n.isReadonly,
1694
1694
  required: "",
1695
1695
  width: "100%"
1696
1696
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1697
- d(y, {
1697
+ u(h, {
1698
1698
  modelValue: o[e(t).AZURE].client_id,
1699
1699
  "onUpdate:modelValue": r[35] || (r[35] = (i) => o[e(t).AZURE].client_id = i),
1700
1700
  modelModifiers: { trim: !0 },
1701
1701
  autocomplete: "off",
1702
1702
  "data-testid": "vault-form-config-azure-client-id",
1703
1703
  label: e(a)("form.config.azure.fields.client_id.label"),
1704
- readonly: u.isReadonly,
1704
+ readonly: n.isReadonly,
1705
1705
  type: "text"
1706
1706
  }, null, 8, ["modelValue", "label", "readonly"]),
1707
- d(y, {
1707
+ u(h, {
1708
1708
  modelValue: o[e(t).AZURE].tenant_id,
1709
1709
  "onUpdate:modelValue": r[36] || (r[36] = (i) => o[e(t).AZURE].tenant_id = i),
1710
1710
  modelModifiers: { trim: !0 },
1711
1711
  autocomplete: "off",
1712
1712
  "data-testid": "vault-form-config-azure-tenant-id",
1713
1713
  label: e(a)("form.config.azure.fields.tenant_id.label"),
1714
- readonly: u.isReadonly,
1714
+ readonly: n.isReadonly,
1715
1715
  type: "text"
1716
1716
  }, null, 8, ["modelValue", "label", "readonly"]),
1717
- l.config.base64FieldAvailable ? (C(), j(oe, {
1717
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1718
1718
  key: 0,
1719
1719
  modelValue: o[e(t).AZURE].base64_decode,
1720
1720
  "onUpdate:modelValue": r[37] || (r[37] = (i) => o[e(t).AZURE].base64_decode = i),
@@ -1724,14 +1724,14 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1724
1724
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1725
1725
  tooltipAttributes: { maxWidth: "400" }
1726
1726
  },
1727
- readonly: u.isReadonly
1727
+ readonly: n.isReadonly
1728
1728
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1729
1729
  ])) : D("", !0),
1730
- f.value === e(t).CONJUR ? (C(), W("div", {
1730
+ f.value === e(t).CONJUR ? (V(), W("div", {
1731
1731
  key: `${e(t).CONJUR}-vault-config-fields`,
1732
1732
  class: "vault-form-config-fields-container"
1733
1733
  }, [
1734
- d(y, {
1734
+ u(h, {
1735
1735
  modelValue: o[e(t).CONJUR].endpoint_url,
1736
1736
  "onUpdate:modelValue": r[38] || (r[38] = (i) => o[e(t).CONJUR].endpoint_url = i),
1737
1737
  modelModifiers: { trim: !0 },
@@ -1742,11 +1742,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1742
1742
  info: e(a)("form.config.conjur.fields.endpoint_url.tooltip"),
1743
1743
  tooltipAttributes: { maxWidth: "400" }
1744
1744
  },
1745
- readonly: u.isReadonly,
1745
+ readonly: n.isReadonly,
1746
1746
  required: "",
1747
1747
  type: "text"
1748
1748
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1749
- d(y, {
1749
+ u(h, {
1750
1750
  modelValue: o[e(t).CONJUR].login,
1751
1751
  "onUpdate:modelValue": r[39] || (r[39] = (i) => o[e(t).CONJUR].login = i),
1752
1752
  modelModifiers: { trim: !0 },
@@ -1757,11 +1757,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1757
1757
  info: e(a)("form.config.conjur.fields.login.tooltip"),
1758
1758
  tooltipAttributes: { maxWidth: "400" }
1759
1759
  },
1760
- readonly: u.isReadonly,
1760
+ readonly: n.isReadonly,
1761
1761
  required: "",
1762
1762
  type: "text"
1763
1763
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1764
- d(y, {
1764
+ u(h, {
1765
1765
  modelValue: o[e(t).CONJUR].account,
1766
1766
  "onUpdate:modelValue": r[40] || (r[40] = (i) => o[e(t).CONJUR].account = i),
1767
1767
  modelModifiers: { trim: !0 },
@@ -1772,11 +1772,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1772
1772
  info: e(a)("form.config.conjur.fields.account.tooltip"),
1773
1773
  tooltipAttributes: { maxWidth: "400" }
1774
1774
  },
1775
- readonly: u.isReadonly,
1775
+ readonly: n.isReadonly,
1776
1776
  required: "",
1777
1777
  type: "text"
1778
1778
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1779
- d(y, {
1779
+ u(h, {
1780
1780
  modelValue: o[e(t).CONJUR].api_key,
1781
1781
  "onUpdate:modelValue": r[41] || (r[41] = (i) => o[e(t).CONJUR].api_key = i),
1782
1782
  modelModifiers: { trim: !0 },
@@ -1787,12 +1787,12 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1787
1787
  info: e(a)("form.config.conjur.fields.api_key.tooltip"),
1788
1788
  tooltipAttributes: { maxWidth: "400" }
1789
1789
  },
1790
- readonly: u.isReadonly,
1790
+ readonly: n.isReadonly,
1791
1791
  required: "",
1792
1792
  "show-password-mask-toggle": "",
1793
1793
  type: "password"
1794
1794
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"]),
1795
- l.config.base64FieldAvailable ? (C(), j(oe, {
1795
+ l.config.base64FieldAvailable ? (V(), j(oe, {
1796
1796
  key: 0,
1797
1797
  modelValue: o[e(t).CONJUR].base64_decode,
1798
1798
  "onUpdate:modelValue": r[42] || (r[42] = (i) => o[e(t).CONJUR].base64_decode = i),
@@ -1802,11 +1802,11 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1802
1802
  info: e(a)("form.config.commonFields.base64_decode.tooltip"),
1803
1803
  tooltipAttributes: { maxWidth: "400" }
1804
1804
  },
1805
- readonly: u.isReadonly
1805
+ readonly: n.isReadonly
1806
1806
  }, null, 8, ["modelValue", "label", "label-attributes", "readonly"])) : D("", !0)
1807
1807
  ])) : D("", !0),
1808
- l.config.ttl ? (C(), W("div", Wt, [
1809
- Q.value ? (C(), j(ve, {
1808
+ l.config.ttl ? (V(), W("div", Gt, [
1809
+ Q.value ? (V(), j(ve, {
1810
1810
  key: 0,
1811
1811
  class: "advanced-fields-collapse",
1812
1812
  "data-testid": "advanced-fields-collapse",
@@ -1814,9 +1814,9 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1814
1814
  "trigger-label": e(a)("form.config.advancedFields.title")
1815
1815
  }, {
1816
1816
  default: v(() => [
1817
- R("div", Bt, [
1818
- R("div", Lt, [
1819
- d(y, {
1817
+ I("div", Jt, [
1818
+ I("div", Zt, [
1819
+ u(h, {
1820
1820
  modelValue: o[f.value].ttl,
1821
1821
  "onUpdate:modelValue": r[43] || (r[43] = (i) => o[f.value].ttl = i),
1822
1822
  "data-testid": "vault-ttl-input",
@@ -1828,8 +1828,8 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1828
1828
  type: "number"
1829
1829
  }, null, 8, ["modelValue", "label", "label-attributes"])
1830
1830
  ]),
1831
- R("div", zt, [
1832
- d(y, {
1831
+ I("div", Qt, [
1832
+ u(h, {
1833
1833
  modelValue: o[f.value].neg_ttl,
1834
1834
  "onUpdate:modelValue": r[44] || (r[44] = (i) => o[f.value].neg_ttl = i),
1835
1835
  "data-testid": "vault-neg-ttl-input",
@@ -1842,9 +1842,9 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1842
1842
  }, null, 8, ["modelValue", "label", "label-attributes"])
1843
1843
  ])
1844
1844
  ]),
1845
- R("div", Gt, [
1846
- R("div", Jt, [
1847
- d(y, {
1845
+ I("div", Yt, [
1846
+ I("div", Xt, [
1847
+ u(h, {
1848
1848
  modelValue: o[f.value].resurrect_ttl,
1849
1849
  "onUpdate:modelValue": r[45] || (r[45] = (i) => o[f.value].resurrect_ttl = i),
1850
1850
  "data-testid": "vault-resurrect-ttl-input",
@@ -1867,14 +1867,14 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1867
1867
  ]),
1868
1868
  _: 1
1869
1869
  }, 8, ["description", "title"]),
1870
- d(e(Re), {
1870
+ u(e(Ee), {
1871
1871
  description: e(a)("form.sections.general.description"),
1872
1872
  title: e(a)("form.sections.general.title")
1873
1873
  }, {
1874
1874
  default: v(() => [
1875
- d(y, {
1876
- modelValue: u.fields.prefix,
1877
- "onUpdate:modelValue": r[46] || (r[46] = (i) => u.fields.prefix = i),
1875
+ u(h, {
1876
+ modelValue: n.fields.prefix,
1877
+ "onUpdate:modelValue": r[46] || (r[46] = (i) => n.fields.prefix = i),
1878
1878
  modelModifiers: { trim: !0 },
1879
1879
  autocomplete: "off",
1880
1880
  "data-testid": "vault-form-prefix",
@@ -1885,31 +1885,31 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1885
1885
  tooltipAttributes: { maxWidth: "400" }
1886
1886
  },
1887
1887
  placeholder: e(a)("form.fields.prefix.placeholder"),
1888
- readonly: u.isReadonly,
1888
+ readonly: n.isReadonly,
1889
1889
  required: "",
1890
1890
  type: "text"
1891
1891
  }, null, 8, ["modelValue", "help", "label", "label-attributes", "placeholder", "readonly"]),
1892
- d(ce, {
1893
- modelValue: u.fields.description,
1894
- "onUpdate:modelValue": r[47] || (r[47] = (i) => u.fields.description = i),
1892
+ u(ce, {
1893
+ modelValue: n.fields.description,
1894
+ "onUpdate:modelValue": r[47] || (r[47] = (i) => n.fields.description = i),
1895
1895
  modelModifiers: { trim: !0 },
1896
1896
  "character-limit": 1e3,
1897
1897
  class: "vault-form-textarea",
1898
1898
  "data-testid": "vault-form-description",
1899
1899
  label: e(a)("form.fields.description.label"),
1900
1900
  placeholder: e(a)("form.fields.description.placeholder"),
1901
- readonly: u.isReadonly
1901
+ readonly: n.isReadonly
1902
1902
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
1903
- d(y, {
1904
- modelValue: u.fields.tags,
1905
- "onUpdate:modelValue": r[48] || (r[48] = (i) => u.fields.tags = i),
1903
+ u(h, {
1904
+ modelValue: n.fields.tags,
1905
+ "onUpdate:modelValue": r[48] || (r[48] = (i) => n.fields.tags = i),
1906
1906
  modelModifiers: { trim: !0 },
1907
1907
  autocomplete: "off",
1908
1908
  "data-testid": "vault-form-tags",
1909
1909
  help: e(a)("form.fields.tags.help"),
1910
1910
  label: e(a)("form.fields.tags.label"),
1911
1911
  placeholder: e(a)("form.fields.tags.placeholder"),
1912
- readonly: u.isReadonly,
1912
+ readonly: n.isReadonly,
1913
1913
  type: "text"
1914
1914
  }, null, 8, ["modelValue", "help", "label", "placeholder", "readonly"])
1915
1915
  ]),
@@ -1921,7 +1921,7 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1921
1921
  ]);
1922
1922
  };
1923
1923
  }
1924
- }), Il = /* @__PURE__ */ me(Zt, [["__scopeId", "data-v-af887604"]]), Qt = { class: "kong-ui-vault-entity-config-card" }, xl = /* @__PURE__ */ ue({
1924
+ }), Al = /* @__PURE__ */ me(el, [["__scopeId", "data-v-af887604"]]), tl = { class: "kong-ui-vault-entity-config-card" }, Ul = /* @__PURE__ */ ue({
1925
1925
  __name: "VaultConfigCard",
1926
1926
  props: {
1927
1927
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1948,44 +1948,60 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
1948
1948
  },
1949
1949
  emits: ["loading", "fetch:error", "fetch:success"],
1950
1950
  setup(l) {
1951
- const I = l, c = S(() => {
1952
- var a, x;
1953
- return (x = pe.form[(a = I.config) == null ? void 0 : a.app]) == null ? void 0 : x.edit;
1954
- }), { i18n: { t: s } } = ye.useI18n(), p = K({
1951
+ const S = l, d = w(() => {
1952
+ var m, n;
1953
+ return (n = pe.form[(m = S.config) == null ? void 0 : m.app]) == null ? void 0 : n.edit;
1954
+ }), { i18n: { t: c } } = ye.useI18n(), { convertKeyToTitle: p } = vt(), { getPropValue: a } = gt(), P = $({
1955
1955
  id: {},
1956
1956
  name: {
1957
- label: s("labels.vault_type")
1957
+ label: c("labels.vault_type")
1958
1958
  },
1959
1959
  updated_at: {},
1960
1960
  created_at: {},
1961
1961
  prefix: {
1962
1962
  order: 5,
1963
- section: Me.Basic
1963
+ section: Fe.Basic
1964
1964
  },
1965
1965
  description: {
1966
1966
  order: 6,
1967
- section: Me.Basic
1967
+ section: Fe.Basic
1968
1968
  },
1969
1969
  tags: {
1970
1970
  order: 7
1971
1971
  },
1972
1972
  config: {
1973
1973
  order: 8,
1974
- type: pt.Json
1974
+ type: Se.Json
1975
1975
  }
1976
- });
1977
- return (a, x) => (C(), W("div", Qt, [
1978
- d(e(mt), {
1976
+ }), x = (m) => {
1977
+ var n, b;
1978
+ return ((b = (n = P.value) == null ? void 0 : n[m]) == null ? void 0 : b.label) || p(m);
1979
+ };
1980
+ return (m, n) => (V(), W("div", tl, [
1981
+ u(e(bt), {
1979
1982
  config: l.config,
1980
1983
  "config-card-doc": l.configCardDoc,
1981
- "config-schema": p.value,
1982
- "entity-type": e(Ae).Vault,
1983
- "fetch-url": c.value,
1984
+ "config-schema": P.value,
1985
+ "entity-type": e(Ue).Vault,
1986
+ "fetch-url": d.value,
1984
1987
  "hide-title": l.hideTitle,
1985
- "onFetch:error": x[0] || (x[0] = (w) => a.$emit("fetch:error", w)),
1986
- "onFetch:success": x[1] || (x[1] = (w) => a.$emit("fetch:success", w)),
1987
- onLoading: x[2] || (x[2] = (w) => a.$emit("loading", w))
1988
- }, null, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
1988
+ "onFetch:error": n[0] || (n[0] = (b) => m.$emit("fetch:error", b)),
1989
+ "onFetch:success": n[1] || (n[1] = (b) => m.$emit("fetch:success", b)),
1990
+ onLoading: n[2] || (n[2] = (b) => m.$emit("loading", b))
1991
+ }, {
1992
+ config: v(({ rowValue: b }) => [
1993
+ (V(!0), W(qe, null, et(Object.keys(b), (f) => (V(), j(e(_t), {
1994
+ key: f,
1995
+ item: {
1996
+ key: f,
1997
+ value: e(a)(f, b),
1998
+ label: x(f),
1999
+ type: f === "token" || f === "approle_secret_id" ? e(Se).Redacted : e(Se).Text
2000
+ }
2001
+ }, null, 8, ["item"]))), 128))
2002
+ ]),
2003
+ _: 1
2004
+ }, 8, ["config", "config-card-doc", "config-schema", "entity-type", "fetch-url", "hide-title"])
1989
2005
  ]));
1990
2006
  }
1991
2007
  }), Ce = "/v2/control-planes/{controlPlaneId}", be = {
@@ -2001,7 +2017,7 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2001
2017
  edit: `${Ce}/config-stores/{id}/secrets/{secretId}`
2002
2018
  }
2003
2019
  }
2004
- }, Yt = { class: "table-content-overflow-wrapper" }, Xt = /* @__PURE__ */ ue({
2020
+ }, ll = { class: "table-content-overflow-wrapper" }, ol = /* @__PURE__ */ ue({
2005
2021
  inheritAttrs: !1,
2006
2022
  __name: "SecretListInner",
2007
2023
  props: {
@@ -2041,68 +2057,68 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2041
2057
  }
2042
2058
  },
2043
2059
  emits: ["error", "delete:success"],
2044
- setup(l, { emit: I }) {
2060
+ setup(l, { emit: S }) {
2045
2061
  var ie;
2046
- const c = I, s = l, { i18n: { t: p, formatUnixTimeStamp: a } } = ye.useI18n(), { axiosInstance: x } = _e((ie = s.config) == null ? void 0 : ie.axiosRequestConfig), _ = {
2062
+ const d = S, c = l, { i18n: { t: p, formatUnixTimeStamp: a } } = ye.useI18n(), { axiosInstance: P } = _e((ie = c.config) == null ? void 0 : ie.axiosRequestConfig), m = {
2047
2063
  // the Secret Key column is non-hidable
2048
2064
  key: { label: p("secrets.list.table_headers.key"), sortable: !1, hidable: !1 },
2049
2065
  updated_at: { label: p("secrets.list.table_headers.updated_at"), sortable: !1 }
2050
- }, u = (T) => ({
2051
- "data-testid": T.key
2052
- }), h = S(() => {
2053
- var T;
2054
- return `${s.config.apiBaseUrl}${be.list[s.config.app]}`.replace(/{controlPlaneId}/gi, ((T = s.config) == null ? void 0 : T.controlPlaneId) || "").replace(/{id}/gi, s.configStoreId || "");
2055
- }), f = K(""), z = {
2066
+ }, n = (U) => ({
2067
+ "data-testid": U.key
2068
+ }), b = w(() => {
2069
+ var U;
2070
+ return `${c.config.apiBaseUrl}${be.list[c.config.app]}`.replace(/{controlPlaneId}/gi, ((U = c.config) == null ? void 0 : U.controlPlaneId) || "").replace(/{id}/gi, c.configStoreId || "");
2071
+ }), f = $(""), z = {
2056
2072
  isExactMatch: !0,
2057
2073
  placeholder: p("search.placeholder_for_secrets.konnect")
2058
2074
  }, {
2059
2075
  fetcher: X,
2060
2076
  fetcherState: Q,
2061
2077
  fetcherCacheKey: Y
2062
- } = qe(S(() => ({ ...s.config, cacheIdentifier: s.cacheIdentifier })), h), N = () => {
2078
+ } = De(w(() => ({ ...c.config, cacheIdentifier: c.cacheIdentifier })), b), N = () => {
2063
2079
  f.value = "";
2064
- }, o = K(null), ae = (T) => ({
2080
+ }, o = $(null), ae = (U) => ({
2065
2081
  label: p("actions.edit"),
2066
- to: s.config.getEditRoute(T)
2067
- }), G = K(void 0), ee = K(!1), J = K(!1), b = K(""), F = De(s.config, h.value), re = (T) => {
2068
- G.value = T, ee.value = !0;
2082
+ to: c.config.getEditRoute(U)
2083
+ }), G = $(void 0), ee = $(!1), J = $(!1), y = $(""), F = We(c.config, b.value), re = (U) => {
2084
+ G.value = U, ee.value = !0;
2069
2085
  }, ne = () => {
2070
2086
  ee.value = !1;
2071
2087
  }, le = async () => {
2072
- var T, Z, te;
2073
- if ((T = G.value) != null && T.key) {
2088
+ var U, Z, te;
2089
+ if ((U = G.value) != null && U.key) {
2074
2090
  J.value = !0;
2075
2091
  try {
2076
- await x.delete(F(G.value.key)), J.value = !1, ee.value = !1, Y.value++, c("delete:success", G.value);
2077
- } catch (g) {
2078
- b.value = ((te = (Z = g.response) == null ? void 0 : Z.data) == null ? void 0 : te.message) || g.message || p("errors.delete"), c("error", g);
2092
+ await P.delete(F(G.value.key)), J.value = !1, ee.value = !1, Y.value++, d("delete:success", G.value);
2093
+ } catch (_) {
2094
+ y.value = ((te = (Z = _.response) == null ? void 0 : Z.data) == null ? void 0 : te.message) || _.message || p("errors.delete"), d("error", _);
2079
2095
  } finally {
2080
2096
  J.value = !1;
2081
2097
  }
2082
2098
  }
2083
2099
  };
2084
- ke(Q, (T) => {
2085
- var Z, te, g;
2086
- if (T.status === je.Error) {
2100
+ ke(Q, (U) => {
2101
+ var Z, te, _;
2102
+ if (U.status === Be.Error) {
2087
2103
  o.value = {
2088
2104
  title: p("errors.general")
2089
- }, (g = (te = (Z = T.error) == null ? void 0 : Z.response) == null ? void 0 : te.data) != null && g.message && (o.value.message = T.error.response.data.message), c("error", T.error);
2105
+ }, (_ = (te = (Z = U.error) == null ? void 0 : Z.response) == null ? void 0 : te.data) != null && _.message && (o.value.message = U.error.response.data.message), d("error", U.error);
2090
2106
  return;
2091
2107
  }
2092
2108
  o.value = null;
2093
2109
  });
2094
- const O = K({
2095
- ctaPath: s.config.createRoute,
2110
+ const O = $({
2111
+ ctaPath: c.config.createRoute,
2096
2112
  ctaText: void 0,
2097
- message: `${p("secrets.list.empty_state.description")}${s.config.additionMessageForEmptyState ? ` ${s.config.additionMessageForEmptyState}` : ""}`,
2113
+ message: `${p("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState ? ` ${c.config.additionMessageForEmptyState}` : ""}`,
2098
2114
  title: p("secrets.title")
2099
2115
  });
2100
2116
  return we(async () => {
2101
- await s.canCreate() && (O.value.title = p("secrets.list.empty_state.title"), O.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2102
- }), (T, Z) => {
2103
- const te = B("KButton"), g = B("KDropdownItem");
2104
- return C(), W(Ye, null, [
2105
- d(e(We), {
2117
+ await c.canCreate() && (O.value.title = p("secrets.list.empty_state.title"), O.value.ctaText = p("secrets.list.toolbar_actions.new_secret"));
2118
+ }), (U, Z) => {
2119
+ const te = B("KButton"), _ = B("KDropdownItem");
2120
+ return V(), W(qe, null, [
2121
+ u(e(Le), {
2106
2122
  "cache-identifier": l.cacheIdentifier,
2107
2123
  "disable-sorting": "",
2108
2124
  "empty-state-options": O.value,
@@ -2113,31 +2129,31 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2113
2129
  "pagination-type": "offset",
2114
2130
  "preferences-storage-key": "kong-ui-entities-secrets-list",
2115
2131
  query: f.value,
2116
- "row-attributes": u,
2117
- "table-headers": e(_),
2132
+ "row-attributes": n,
2133
+ "table-headers": e(m),
2118
2134
  onClearSearchInput: N
2119
2135
  }, {
2120
2136
  "toolbar-filter": v(() => [
2121
- d(e(Be), {
2137
+ u(e(ze), {
2122
2138
  modelValue: f.value,
2123
- "onUpdate:modelValue": Z[0] || (Z[0] = (m) => f.value = m),
2139
+ "onUpdate:modelValue": Z[0] || (Z[0] = (g) => f.value = g),
2124
2140
  config: z
2125
2141
  }, null, 8, ["modelValue"])
2126
2142
  ]),
2127
2143
  "toolbar-button": v(() => [
2128
- d(e(ge), {
2144
+ u(e(ge), {
2129
2145
  "auth-function": () => l.canCreate()
2130
2146
  }, {
2131
2147
  default: v(() => [
2132
- d(te, {
2148
+ u(te, {
2133
2149
  appearance: "primary",
2134
2150
  "data-testid": "toolbar-add-secret",
2135
2151
  size: "large",
2136
2152
  to: l.config.createRoute
2137
2153
  }, {
2138
2154
  default: v(() => [
2139
- d(e(xe)),
2140
- de(" " + $(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2155
+ u(e(Re)),
2156
+ de(" " + T(e(p)("secrets.list.toolbar_actions.new_secret")), 1)
2141
2157
  ]),
2142
2158
  _: 1
2143
2159
  }, 8, ["to"])
@@ -2145,38 +2161,38 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2145
2161
  _: 1
2146
2162
  }, 8, ["auth-function"])
2147
2163
  ]),
2148
- key: v(({ rowValue: m }) => [
2149
- R("div", Yt, [
2150
- R("b", null, $(m ?? "-"), 1)
2164
+ key: v(({ rowValue: g }) => [
2165
+ I("div", ll, [
2166
+ I("b", null, T(g ?? "-"), 1)
2151
2167
  ])
2152
2168
  ]),
2153
- updated_at: v(({ rowValue: m }) => [
2154
- R("span", null, $(m ? e(a)(new Date(m).getTime() / 1e3) : "-"), 1)
2169
+ updated_at: v(({ rowValue: g }) => [
2170
+ I("span", null, T(g ? e(a)(new Date(g).getTime() / 1e3) : "-"), 1)
2155
2171
  ]),
2156
- actions: v(({ row: m }) => [
2157
- d(e(ge), {
2158
- "auth-function": () => l.canEdit(m)
2172
+ actions: v(({ row: g }) => [
2173
+ u(e(ge), {
2174
+ "auth-function": () => l.canEdit(g)
2159
2175
  }, {
2160
2176
  default: v(() => [
2161
- d(g, {
2177
+ u(_, {
2162
2178
  "data-testid": "action-entity-edit",
2163
- item: ae(m.key)
2179
+ item: ae(g.key)
2164
2180
  }, null, 8, ["item"])
2165
2181
  ]),
2166
2182
  _: 2
2167
2183
  }, 1032, ["auth-function"]),
2168
- d(e(ge), {
2169
- "auth-function": () => l.canDelete(m)
2184
+ u(e(ge), {
2185
+ "auth-function": () => l.canDelete(g)
2170
2186
  }, {
2171
2187
  default: v(() => [
2172
- d(g, {
2188
+ u(_, {
2173
2189
  danger: "",
2174
2190
  "data-testid": "action-entity-delete",
2175
2191
  "has-divider": "",
2176
- onClick: (P) => re(m)
2192
+ onClick: (K) => re(g)
2177
2193
  }, {
2178
2194
  default: v(() => [
2179
- de($(e(p)("actions.delete")), 1)
2195
+ de(T(e(p)("actions.delete")), 1)
2180
2196
  ]),
2181
2197
  _: 2
2182
2198
  }, 1032, ["onClick"])
@@ -2186,12 +2202,12 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2186
2202
  ]),
2187
2203
  _: 1
2188
2204
  }, 8, ["cache-identifier", "empty-state-options", "error-message", "fetcher", "fetcher-cache-key", "query", "table-headers"]),
2189
- d(e(Le), {
2205
+ u(e(Ge), {
2190
2206
  "action-pending": J.value,
2191
2207
  description: e(p)("delete.description"),
2192
2208
  "entity-name": G.value && G.value.key,
2193
- "entity-type": e(ze).Secret,
2194
- error: b.value,
2209
+ "entity-type": e(Je).Secret,
2210
+ error: y.value,
2195
2211
  title: e(p)("delete.title_for_secret"),
2196
2212
  visible: ee.value,
2197
2213
  onCancel: ne,
@@ -2200,7 +2216,7 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2200
2216
  ], 64);
2201
2217
  };
2202
2218
  }
2203
- }), el = /* @__PURE__ */ me(Xt, [["__scopeId", "data-v-904390fc"]]), tl = { class: "kong-ui-entities-secrets-list" }, ll = /* @__PURE__ */ ue({
2219
+ }), al = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-904390fc"]]), rl = { class: "kong-ui-entities-secrets-list" }, il = /* @__PURE__ */ ue({
2204
2220
  __name: "SecretList",
2205
2221
  props: {
2206
2222
  /** The base konnect config. Pass additional config props in the shared entity component as needed. */
@@ -2239,33 +2255,33 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2239
2255
  }
2240
2256
  },
2241
2257
  emits: ["error", "delete:success"],
2242
- setup(l, { emit: I }) {
2243
- var u;
2244
- const c = I, s = l, p = (h) => {
2245
- c("error", h);
2246
- }, a = (h) => {
2247
- c("delete:success", h);
2248
- }, { axiosInstance: x } = _e((u = s.config) == null ? void 0 : u.axiosRequestConfig), w = K(""), _ = S(() => {
2249
- var h;
2250
- return `${s.config.apiBaseUrl}${be.getVault[s.config.app]}`.replace(/{controlPlaneId}/gi, ((h = s.config) == null ? void 0 : h.controlPlaneId) || "").replace(/{id}/gi, s.vaultId);
2258
+ setup(l, { emit: S }) {
2259
+ var n;
2260
+ const d = S, c = l, p = (b) => {
2261
+ d("error", b);
2262
+ }, a = (b) => {
2263
+ d("delete:success", b);
2264
+ }, { axiosInstance: P } = _e((n = c.config) == null ? void 0 : n.axiosRequestConfig), x = $(""), m = w(() => {
2265
+ var b;
2266
+ return `${c.config.apiBaseUrl}${be.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi, ((b = c.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{id}/gi, c.vaultId);
2251
2267
  });
2252
2268
  return we(async () => {
2253
- var h;
2269
+ var b;
2254
2270
  try {
2255
- const { data: f } = await x.get(_.value);
2256
- w.value = (h = f == null ? void 0 : f.config) == null ? void 0 : h.config_store_id;
2271
+ const { data: f } = await P.get(m.value);
2272
+ x.value = (b = f == null ? void 0 : f.config) == null ? void 0 : b.config_store_id;
2257
2273
  } catch (f) {
2258
- c("error", f);
2274
+ d("error", f);
2259
2275
  }
2260
- }), (h, f) => (C(), W("div", tl, [
2261
- w.value ? (C(), j(el, Oe({ key: 0 }, s, {
2262
- "config-store-id": w.value,
2276
+ }), (b, f) => (V(), W("div", rl, [
2277
+ x.value ? (V(), j(al, je({ key: 0 }, c, {
2278
+ "config-store-id": x.value,
2263
2279
  "onDelete:success": a,
2264
2280
  onError: p
2265
2281
  }), null, 16, ["config-store-id"])) : D("", !0)
2266
2282
  ]));
2267
2283
  }
2268
- }), Rl = /* @__PURE__ */ me(ll, [["__scopeId", "data-v-f5aa5636"]]), ol = /* @__PURE__ */ ue({
2284
+ }), Tl = /* @__PURE__ */ me(il, [["__scopeId", "data-v-f5aa5636"]]), nl = /* @__PURE__ */ ue({
2269
2285
  inheritAttrs: !1,
2270
2286
  __name: "SecretFormInner",
2271
2287
  props: {
@@ -2288,61 +2304,61 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2288
2304
  }
2289
2305
  },
2290
2306
  emits: ["update", "error", "loading"],
2291
- setup(l, { emit: I }) {
2307
+ setup(l, { emit: S }) {
2292
2308
  var J;
2293
- const c = l, s = I, { i18n: { t: p } } = ye.useI18n(), a = Ee(), { axiosInstance: x } = _e((J = c.config) == null ? void 0 : J.axiosRequestConfig), { getMessageFromError: w } = Ge(), _ = he({
2309
+ const d = l, c = S, { i18n: { t: p } } = ye.useI18n(), a = Ae(), { axiosInstance: P } = _e((J = d.config) == null ? void 0 : J.axiosRequestConfig), { getMessageFromError: x } = Ze(), m = he({
2294
2310
  fields: {
2295
2311
  key: "",
2296
2312
  value: ""
2297
2313
  },
2298
2314
  readonly: !1,
2299
2315
  errorMessage: ""
2300
- }), u = he({
2316
+ }), n = he({
2301
2317
  key: "",
2302
2318
  value: ""
2303
- }), h = S(
2319
+ }), b = w(
2304
2320
  () => {
2305
- var b, F;
2306
- return (F = be.form[(b = c.config) == null ? void 0 : b.app]) == null ? void 0 : F.edit.replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2321
+ var y, F;
2322
+ return (F = be.form[(y = d.config) == null ? void 0 : y.app]) == null ? void 0 : F.edit.replace(/{id}/gi, d.configStoreId).replace(/{secretId}/gi, d.secretId);
2307
2323
  }
2308
2324
  ), f = () => {
2309
- var b;
2310
- a.push(((b = c.config) == null ? void 0 : b.cancelRoute) || { name: "secret-list" });
2311
- }, z = (b) => {
2312
- s("loading", b);
2313
- }, X = (b) => {
2314
- s("error", b);
2315
- }, Q = (b) => {
2325
+ var y;
2326
+ a.push(((y = d.config) == null ? void 0 : y.cancelRoute) || { name: "secret-list" });
2327
+ }, z = (y) => {
2328
+ c("loading", y);
2329
+ }, X = (y) => {
2330
+ c("error", y);
2331
+ }, Q = (y) => {
2316
2332
  var F, re;
2317
- _.fields.key = ((F = b == null ? void 0 : b.item) == null ? void 0 : F.key) || (b == null ? void 0 : b.key) || "", _.fields.value = ((re = b == null ? void 0 : b.item) == null ? void 0 : re.value) || (b == null ? void 0 : b.value) || "", Object.assign(u, _.fields);
2318
- }, Y = S(() => c.secretId ? Ve.Edit : Ve.Create), N = S(() => {
2319
- var b;
2320
- return `${c.config.apiBaseUrl}${be.form[c.config.app][Y.value]}`.replace(/{controlPlaneId}/gi, ((b = c.config) == null ? void 0 : b.controlPlaneId) || "").replace(/{id}/gi, c.configStoreId).replace(/{secretId}/gi, c.secretId);
2321
- }), o = S(() => !!_.fields.key && !!_.fields.value), ae = S(() => JSON.stringify(_.fields) !== JSON.stringify(u)), G = S(() => ({
2322
- key: _.fields.key,
2323
- value: _.fields.value
2333
+ m.fields.key = ((F = y == null ? void 0 : y.item) == null ? void 0 : F.key) || (y == null ? void 0 : y.key) || "", m.fields.value = ((re = y == null ? void 0 : y.item) == null ? void 0 : re.value) || (y == null ? void 0 : y.value) || "", Object.assign(n, m.fields);
2334
+ }, Y = w(() => d.secretId ? Ve.Edit : Ve.Create), N = w(() => {
2335
+ var y;
2336
+ return `${d.config.apiBaseUrl}${be.form[d.config.app][Y.value]}`.replace(/{controlPlaneId}/gi, ((y = d.config) == null ? void 0 : y.controlPlaneId) || "").replace(/{id}/gi, d.configStoreId).replace(/{secretId}/gi, d.secretId);
2337
+ }), o = w(() => !!m.fields.key && !!m.fields.value), ae = w(() => JSON.stringify(m.fields) !== JSON.stringify(n)), G = w(() => ({
2338
+ key: m.fields.key,
2339
+ value: m.fields.value
2324
2340
  })), ee = async () => {
2325
2341
  try {
2326
- _.readonly = !0;
2327
- let b;
2328
- Y.value === "create" ? b = await x.post(N.value, G.value) : Y.value === "edit" && (b = await x.put(N.value, G.value)), Q(b == null ? void 0 : b.data), s("update", b == null ? void 0 : b.data);
2329
- } catch (b) {
2330
- _.errorMessage = w(b), s("error", b);
2342
+ m.readonly = !0;
2343
+ let y;
2344
+ Y.value === "create" ? y = await P.post(N.value, G.value) : Y.value === "edit" && (y = await P.put(N.value, G.value)), Q(y == null ? void 0 : y.data), c("update", y == null ? void 0 : y.data);
2345
+ } catch (y) {
2346
+ m.errorMessage = x(y), c("error", y);
2331
2347
  } finally {
2332
- _.readonly = !1;
2348
+ m.readonly = !1;
2333
2349
  }
2334
2350
  };
2335
- return (b, F) => {
2351
+ return (y, F) => {
2336
2352
  const re = B("KInput"), ne = B("KTextArea"), le = B("KAlert");
2337
- return C(), j(e(Je), {
2353
+ return V(), j(e(Qe), {
2338
2354
  "can-submit": o.value && ae.value,
2339
2355
  config: l.config,
2340
2356
  "edit-id": l.secretId,
2341
- "entity-type": e(Ae).Other,
2342
- "error-message": _.errorMessage,
2343
- "fetch-url": h.value,
2357
+ "entity-type": e(Ue).Other,
2358
+ "error-message": m.errorMessage,
2359
+ "fetch-url": b.value,
2344
2360
  "form-fields": G.value,
2345
- "is-readonly": _.readonly,
2361
+ "is-readonly": m.readonly,
2346
2362
  onCancel: f,
2347
2363
  "onFetch:error": X,
2348
2364
  "onFetch:success": Q,
@@ -2350,16 +2366,16 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2350
2366
  onSubmit: ee
2351
2367
  }, {
2352
2368
  default: v(() => [
2353
- R("div", null, [
2354
- d(e(Re), {
2369
+ I("div", null, [
2370
+ u(e(Ee), {
2355
2371
  description: e(p)("secrets.form.info.description"),
2356
2372
  "has-divider": "",
2357
2373
  title: e(p)("secrets.form.info.title")
2358
2374
  }, {
2359
2375
  default: v(() => [
2360
- d(re, {
2361
- modelValue: _.fields.key,
2362
- "onUpdate:modelValue": F[0] || (F[0] = (O) => _.fields.key = O),
2376
+ u(re, {
2377
+ modelValue: m.fields.key,
2378
+ "onUpdate:modelValue": F[0] || (F[0] = (O) => m.fields.key = O),
2363
2379
  modelModifiers: { trim: !0 },
2364
2380
  autocomplete: "off",
2365
2381
  class: "key-field",
@@ -2367,24 +2383,24 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2367
2383
  disabled: Y.value === e(Ve).Edit,
2368
2384
  label: e(p)("secrets.form.fields.key.label"),
2369
2385
  placeholder: e(p)("secrets.form.fields.key.placeholder"),
2370
- readonly: _.readonly,
2386
+ readonly: m.readonly,
2371
2387
  required: "",
2372
2388
  type: "text"
2373
2389
  }, null, 8, ["modelValue", "disabled", "label", "placeholder", "readonly"]),
2374
- d(ne, {
2375
- modelValue: _.fields.value,
2376
- "onUpdate:modelValue": F[1] || (F[1] = (O) => _.fields.value = O),
2390
+ u(ne, {
2391
+ modelValue: m.fields.value,
2392
+ "onUpdate:modelValue": F[1] || (F[1] = (O) => m.fields.value = O),
2377
2393
  modelModifiers: { trim: !0 },
2378
2394
  autocomplete: "off",
2379
2395
  "data-testid": "secret-form-value",
2380
2396
  label: e(p)("secrets.form.fields.value.label"),
2381
2397
  placeholder: e(p)("secrets.form.fields.value.placeholder"),
2382
- readonly: _.readonly,
2398
+ readonly: m.readonly,
2383
2399
  required: "",
2384
2400
  resizable: "",
2385
2401
  type: "text"
2386
2402
  }, null, 8, ["modelValue", "label", "placeholder", "readonly"]),
2387
- d(le, {
2403
+ u(le, {
2388
2404
  appearance: "warning",
2389
2405
  message: e(p)("secrets.form.hint")
2390
2406
  }, null, 8, ["message"])
@@ -2397,7 +2413,7 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2397
2413
  }, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
2398
2414
  };
2399
2415
  }
2400
- }), al = /* @__PURE__ */ me(ol, [["__scopeId", "data-v-5ee165bf"]]), rl = { class: "kong-ui-entities-secret-form" }, il = /* @__PURE__ */ ue({
2416
+ }), sl = /* @__PURE__ */ me(nl, [["__scopeId", "data-v-5ee165bf"]]), cl = { class: "kong-ui-entities-secret-form" }, dl = /* @__PURE__ */ ue({
2401
2417
  __name: "SecretForm",
2402
2418
  props: {
2403
2419
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -2419,38 +2435,38 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2419
2435
  }
2420
2436
  },
2421
2437
  emits: ["update", "error", "loading"],
2422
- setup(l, { emit: I }) {
2423
- var h;
2424
- const c = l, s = I, p = (f) => {
2425
- s("update", f);
2438
+ setup(l, { emit: S }) {
2439
+ var b;
2440
+ const d = l, c = S, p = (f) => {
2441
+ c("update", f);
2426
2442
  }, a = (f) => {
2427
- s("error", f);
2428
- }, x = (f) => {
2429
- s("loading", f);
2430
- }, { axiosInstance: w } = _e((h = c.config) == null ? void 0 : h.axiosRequestConfig), _ = K(""), u = S(() => {
2443
+ c("error", f);
2444
+ }, P = (f) => {
2445
+ c("loading", f);
2446
+ }, { axiosInstance: x } = _e((b = d.config) == null ? void 0 : b.axiosRequestConfig), m = $(""), n = w(() => {
2431
2447
  var f;
2432
- 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);
2448
+ return `${d.config.apiBaseUrl}${be.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi, ((f = d.config) == null ? void 0 : f.controlPlaneId) || "").replace(/{id}/gi, d.vaultId);
2433
2449
  });
2434
2450
  return we(async () => {
2435
2451
  var f;
2436
2452
  try {
2437
- const { data: z } = await w.get(u.value);
2438
- _.value = (f = z == null ? void 0 : z.config) == null ? void 0 : f.config_store_id;
2453
+ const { data: z } = await x.get(n.value);
2454
+ m.value = (f = z == null ? void 0 : z.config) == null ? void 0 : f.config_store_id;
2439
2455
  } catch (z) {
2440
- s("error", z);
2456
+ c("error", z);
2441
2457
  }
2442
- }), (f, z) => (C(), W("div", rl, [
2443
- _.value ? (C(), j(al, Oe({ key: 0 }, c, {
2444
- "config-store-id": _.value,
2458
+ }), (f, z) => (V(), W("div", cl, [
2459
+ m.value ? (V(), j(sl, je({ key: 0 }, d, {
2460
+ "config-store-id": m.value,
2445
2461
  onError: a,
2446
- onLoading: x,
2462
+ onLoading: P,
2447
2463
  onUpdate: p
2448
2464
  }), null, 16, ["config-store-id"])) : D("", !0)
2449
2465
  ]));
2450
2466
  }
2451
- }), El = /* @__PURE__ */ me(il, [["__scopeId", "data-v-754ddb2f"]]), nl = {
2467
+ }), $l = /* @__PURE__ */ me(dl, [["__scopeId", "data-v-754ddb2f"]]), ul = {
2452
2468
  class: "vault-secret-picker-provider"
2453
- }, sl = /* @__PURE__ */ ue({
2469
+ }, fl = /* @__PURE__ */ ue({
2454
2470
  __name: "VaultSecretPickerProvider",
2455
2471
  props: {
2456
2472
  value: {},
@@ -2463,56 +2479,56 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2463
2479
  },
2464
2480
  emits: ["open"],
2465
2481
  setup(l, {
2466
- emit: I
2482
+ emit: S
2467
2483
  }) {
2468
- const c = l, s = I, {
2484
+ const d = l, c = S, {
2469
2485
  i18n: {
2470
2486
  t: p
2471
2487
  },
2472
2488
  i18nT: a
2473
2489
  } = ye.useI18n();
2474
- return (x, w) => (C(), W("div", nl, [d(e(a), {
2490
+ return (P, x) => (V(), W("div", ul, [u(e(a), {
2475
2491
  keypath: "vault_secret_picker.provider.complete_action",
2476
2492
  scope: "global"
2477
2493
  }, {
2478
- cta: v(() => [R("span", {
2479
- class: Xe({
2494
+ cta: v(() => [I("span", {
2495
+ class: tt({
2480
2496
  "vault-secret-picker-provider-action": !0,
2481
- disabled: c.disabled
2497
+ disabled: d.disabled
2482
2498
  }),
2483
- onClick: w[0] || (w[0] = () => !c.disabled && s("open", c.value, c.update))
2484
- }, $(e(p)("vault_secret_picker.provider.cta")), 3)]),
2499
+ onClick: x[0] || (x[0] = () => !d.disabled && c("open", d.value, d.update))
2500
+ }, T(e(p)("vault_secret_picker.provider.cta")), 3)]),
2485
2501
  _: 1
2486
2502
  })]));
2487
2503
  }
2488
- }), Al = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-66a1e406"]]), cl = (l) => {
2489
- let I = l.trim();
2490
- if (!I.startsWith("{") || !I.endsWith("}"))
2504
+ }), Pl = /* @__PURE__ */ me(fl, [["__scopeId", "data-v-66a1e406"]]), pl = (l) => {
2505
+ let S = l.trim();
2506
+ if (!S.startsWith("{") || !S.endsWith("}"))
2491
2507
  throw new Error("Invalid secret reference: must be enclosed in curly braces");
2492
- if (I = I.substring(1, I.length - 1).trim(), !I.startsWith("vault://"))
2508
+ if (S = S.substring(1, S.length - 1).trim(), !S.startsWith("vault://"))
2493
2509
  throw new Error("Invalid secret reference: must start with vault://");
2494
- const c = new URL(`http://${I.substring(8)}`);
2495
- if (!c)
2510
+ const d = new URL(`http://${S.substring(8)}`);
2511
+ if (!d)
2496
2512
  throw new Error("Invalid secret reference: must have a vault prefix");
2497
- const s = c.host, [, p, ...a] = c.pathname.split("/");
2498
- if (!s)
2513
+ const c = d.host, [, p, ...a] = d.pathname.split("/");
2514
+ if (!c)
2499
2515
  throw new Error("Invalid secret reference: must have a vault prefix");
2500
2516
  return {
2501
- vaultPrefix: s,
2517
+ vaultPrefix: c,
2502
2518
  secretId: p || void 0,
2503
2519
  // Non-empty string or undefined
2504
2520
  optionalSecretKey: a == null ? void 0 : a.join("/")
2505
2521
  // Non-empty string or undefined
2506
2522
  };
2507
- }, dl = (l) => {
2523
+ }, ml = (l) => {
2508
2524
  if (!l.vaultPrefix)
2509
2525
  throw new Error("Invalid secret reference: must have a vault prefix");
2510
- let I = `vault://${l.vaultPrefix}`;
2511
- return l.secretId && (I = `${I}/${l.secretId}`), l.optionalSecretKey && (I = `${I}/${l.optionalSecretKey}`), `{${I}}`;
2512
- }, ul = {
2526
+ let S = `vault://${l.vaultPrefix}`;
2527
+ return l.secretId && (S = `${S}/${l.secretId}`), l.optionalSecretKey && (S = `${S}/${l.optionalSecretKey}`), `{${S}}`;
2528
+ }, vl = {
2513
2529
  key: 1,
2514
2530
  class: "inputs-wrapper"
2515
- }, fl = { "data-testid": "no-search-results" }, pl = { class: "k-select-selected-item-label" }, ml = { class: "vault-secret-picker-vault-dropdown-item" }, vl = { class: "select-item-label" }, gl = { class: "select-item-description" }, bl = { class: "select-item-description" }, _l = { "data-testid": "no-search-results" }, yl = /* @__PURE__ */ ue({
2531
+ }, gl = { "data-testid": "no-search-results" }, bl = { class: "k-select-selected-item-label" }, _l = { class: "vault-secret-picker-vault-dropdown-item" }, yl = { class: "select-item-label" }, hl = { class: "select-item-description" }, Vl = { class: "select-item-description" }, kl = { "data-testid": "no-search-results" }, Cl = /* @__PURE__ */ ue({
2516
2532
  __name: "VaultSecretPicker",
2517
2533
  props: {
2518
2534
  config: {
@@ -2542,30 +2558,30 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2542
2558
  }
2543
2559
  },
2544
2560
  emits: ["proceed", "cancel"],
2545
- setup(l, { emit: I }) {
2561
+ setup(l, { emit: S }) {
2546
2562
  var te;
2547
- const { i18n: { t: c } } = ye.useI18n(), s = l, p = I, { axiosInstance: a } = _e({
2563
+ const { i18n: { t: d } } = ye.useI18n(), c = l, p = S, { axiosInstance: a } = _e({
2548
2564
  // 404 errors are allowed in this components
2549
- validateStatus: (g) => g === 404 || g >= 200 && g < 300,
2565
+ validateStatus: (_) => _ === 404 || _ >= 200 && _ < 300,
2550
2566
  // Spread the passed-in config later to allow overriding
2551
- ...(te = s.config) == null ? void 0 : te.axiosRequestConfig
2552
- }), x = K(!1), w = K(""), _ = K(""), u = K(""), h = K(), f = S(() => {
2553
- var g, m;
2554
- return s.config.app === "konnect" ? be.list[s.config.app].replace(/{id}/gi, ((m = (g = h.value) == null ? void 0 : g.config) == null ? void 0 : m.config_store_id) ?? "") : "<not_applicable>";
2555
- }), z = S(() => {
2567
+ ...(te = c.config) == null ? void 0 : te.axiosRequestConfig
2568
+ }), P = $(!1), x = $(""), m = $(""), n = $(""), b = $(), f = w(() => {
2569
+ var _, g;
2570
+ return c.config.app === "konnect" ? be.list[c.config.app].replace(/{id}/gi, ((g = (_ = b.value) == null ? void 0 : _.config) == null ? void 0 : g.config_store_id) ?? "") : "<not_applicable>";
2571
+ }), z = w(() => {
2556
2572
  if (Y && ee)
2557
- return c("vault_secret_picker.fetch_error.vaults_and_secrets");
2573
+ return d("vault_secret_picker.fetch_error.vaults_and_secrets");
2558
2574
  if (Y)
2559
- return c("vault_secret_picker.fetch_error.vaults");
2575
+ return d("vault_secret_picker.fetch_error.vaults");
2560
2576
  if (ee)
2561
- return c("vault_secret_picker.fetch_error.secrets");
2577
+ return d("vault_secret_picker.fetch_error.secrets");
2562
2578
  }), {
2563
2579
  debouncedQueryChange: X,
2564
2580
  loading: Q,
2565
2581
  error: Y,
2566
2582
  loadItems: N,
2567
2583
  results: o
2568
- } = Fe(s.config, pe.list[s.config.app].getAll, void 0, {
2584
+ } = Ne(c.config, pe.list[c.config.app].getAll, void 0, {
2569
2585
  fetchedItemsKey: "data",
2570
2586
  searchKeys: ["prefix"]
2571
2587
  }), {
@@ -2573,176 +2589,176 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2573
2589
  loading: G,
2574
2590
  error: ee,
2575
2591
  loadItems: J,
2576
- results: b
2577
- } = Fe(s.config, f, void 0, {
2592
+ results: y
2593
+ } = Ne(c.config, f, void 0, {
2578
2594
  fetchedItemsKey: "data",
2579
2595
  searchKeys: ["key"],
2580
2596
  exactMatchKey: "key"
2581
- }), F = S(() => {
2582
- var P;
2583
- let g = !1;
2584
- const m = ((P = o.value) == null ? void 0 : P.map((H) => (H.prefix === w.value && (g = !0), { label: H.prefix, value: H.prefix, vault: H }))) ?? [];
2585
- return !g && h.value && m.push({
2586
- label: h.value.prefix,
2587
- value: h.value.prefix,
2588
- vault: h.value
2589
- }), m;
2590
- }), re = S(() => {
2591
- var P;
2592
- let g = !1;
2593
- const m = ((P = b.value) == null ? void 0 : P.map((H) => (H.key === _.value && (g = !0), { label: H.key, value: H.key }))) ?? [];
2594
- return !g && _.value && m.push({ label: _.value, value: _.value }), m;
2595
- }), ne = S(() => {
2596
- var g;
2597
- return ((g = h == null ? void 0 : h.value) == null ? void 0 : g.name) === "konnect";
2598
- }), le = S(() => !!h.value && !!_.value && !s.additionalDisabled), O = (g) => g.label ? `${g.label} - (${g.vault.name} - ${g.vault.id})` : g.value, ie = (g) => {
2599
- var P, H;
2600
- let m = `${s.config.apiBaseUrl}${pe.form[s.config.app].edit}`;
2601
- return s.config.app === "konnect" ? m = m.replace(/{controlPlaneId}/gi, ((P = s.config) == null ? void 0 : P.controlPlaneId) || "") : s.config.app === "kongManager" && (m = m.replace(/\/{workspace}/gi, (H = s.config) != null && H.workspace ? `/${s.config.workspace}` : "")), m.replace(/{id}/gi, g);
2602
- }, T = (g, m) => {
2603
- var P;
2604
- return s.config.app !== "konnect" ? "<not_applicable>" : `${s.config.apiBaseUrl}${be.form[s.config.app].edit}`.replace(/{controlPlaneId}/gi, ((P = s.config) == null ? void 0 : P.controlPlaneId) || "").replace(/{id}/gi, m).replace(/{secretId}/gi, g);
2597
+ }), F = w(() => {
2598
+ var K;
2599
+ let _ = !1;
2600
+ const g = ((K = o.value) == null ? void 0 : K.map((H) => (H.prefix === x.value && (_ = !0), { label: H.prefix, value: H.prefix, vault: H }))) ?? [];
2601
+ return !_ && b.value && g.push({
2602
+ label: b.value.prefix,
2603
+ value: b.value.prefix,
2604
+ vault: b.value
2605
+ }), g;
2606
+ }), re = w(() => {
2607
+ var K;
2608
+ let _ = !1;
2609
+ const g = ((K = y.value) == null ? void 0 : K.map((H) => (H.key === m.value && (_ = !0), { label: H.key, value: H.key }))) ?? [];
2610
+ return !_ && m.value && g.push({ label: m.value, value: m.value }), g;
2611
+ }), ne = w(() => {
2612
+ var _;
2613
+ return ((_ = b == null ? void 0 : b.value) == null ? void 0 : _.name) === "konnect";
2614
+ }), le = w(() => !!b.value && !!m.value && !c.additionalDisabled), O = (_) => _.label ? `${_.label} - (${_.vault.name} - ${_.vault.id})` : _.value, ie = (_) => {
2615
+ var K, H;
2616
+ let g = `${c.config.apiBaseUrl}${pe.form[c.config.app].edit}`;
2617
+ return c.config.app === "konnect" ? g = g.replace(/{controlPlaneId}/gi, ((K = c.config) == null ? void 0 : K.controlPlaneId) || "") : c.config.app === "kongManager" && (g = g.replace(/\/{workspace}/gi, (H = c.config) != null && H.workspace ? `/${c.config.workspace}` : "")), g.replace(/{id}/gi, _);
2618
+ }, U = (_, g) => {
2619
+ var K;
2620
+ return c.config.app !== "konnect" ? "<not_applicable>" : `${c.config.apiBaseUrl}${be.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi, ((K = c.config) == null ? void 0 : K.controlPlaneId) || "").replace(/{id}/gi, g).replace(/{secretId}/gi, _);
2605
2621
  }, Z = () => {
2606
- p("proceed", dl({
2607
- vaultPrefix: w.value,
2608
- secretId: _.value || void 0,
2622
+ p("proceed", ml({
2623
+ vaultPrefix: x.value,
2624
+ secretId: m.value || void 0,
2609
2625
  // Either a non-empty string or undefined
2610
- optionalSecretKey: u.value || void 0
2626
+ optionalSecretKey: n.value || void 0
2611
2627
  // Either a non-empty string or undefined
2612
2628
  }));
2613
2629
  };
2614
- return ke(() => s.setup, async (g) => {
2615
- if (g !== !1) {
2616
- if (x.value = !0, w.value = "", h.value = void 0, _.value = "", u.value = "", typeof g == "string" && g.trim().length > 0)
2630
+ return ke(() => c.setup, async (_) => {
2631
+ if (_ !== !1) {
2632
+ if (P.value = !0, x.value = "", b.value = void 0, m.value = "", n.value = "", typeof _ == "string" && _.trim().length > 0)
2617
2633
  try {
2618
- let m, P = "", H = "", se = "";
2619
- const q = cl(g), { data: E } = await a.get(ie(q.vaultPrefix));
2620
- if (E != null && E.name)
2621
- if (m = E, P = q.vaultPrefix, m.name === "konnect") {
2634
+ let g, K = "", H = "", se = "";
2635
+ const q = pl(_), { data: R } = await a.get(ie(q.vaultPrefix));
2636
+ if (R != null && R.name)
2637
+ if (g = R, K = q.vaultPrefix, g.name === "konnect") {
2622
2638
  if (q.secretId) {
2623
- const { data: fe } = await a.get(T(q.secretId, E.config.config_store_id));
2639
+ const { data: fe } = await a.get(U(q.secretId, R.config.config_store_id));
2624
2640
  fe.key === q.secretId && (H = q.secretId, se = q.optionalSecretKey ?? "");
2625
2641
  }
2626
2642
  } else
2627
2643
  H = q.secretId ?? "", se = q.optionalSecretKey ?? "";
2628
- await et(() => {
2629
- w.value = P, h.value = m, _.value = H, u.value = se;
2644
+ await lt(() => {
2645
+ x.value = K, b.value = g, m.value = H, n.value = se;
2630
2646
  });
2631
- } catch (m) {
2632
- console.debug(m);
2647
+ } catch (g) {
2648
+ console.debug(g);
2633
2649
  }
2634
- x.value = !1, await N();
2650
+ P.value = !1, await N();
2635
2651
  }
2636
- }, { immediate: !0 }), ke(w, async (g, m) => {
2637
- var P;
2638
- x.value || g === m || (h.value = (P = F.value.find((H) => H.value === g)) == null ? void 0 : P.vault, _.value = "", u.value = "");
2652
+ }, { immediate: !0 }), ke(x, async (_, g) => {
2653
+ var K;
2654
+ P.value || _ === g || (b.value = (K = F.value.find((H) => H.value === _)) == null ? void 0 : K.vault, m.value = "", n.value = "");
2639
2655
  }), ke(f, async () => {
2640
2656
  ne.value && await J();
2641
- }, { immediate: !0 }), (g, m) => {
2642
- const P = B("KEmptyState"), H = B("KSelect"), se = B("KInput"), q = B("KModal");
2643
- return C(), j(q, {
2657
+ }, { immediate: !0 }), (_, g) => {
2658
+ const K = B("KEmptyState"), H = B("KSelect"), se = B("KInput"), q = B("KModal");
2659
+ return V(), j(q, {
2644
2660
  "action-button-disabled": !le.value,
2645
- "action-button-text": l.proceedButtonText || e(c)("vault_secret_picker.actions.use_key"),
2661
+ "action-button-text": l.proceedButtonText || e(d)("vault_secret_picker.actions.use_key"),
2646
2662
  class: "vault-secret-picker",
2647
2663
  "data-testid": "vault-secret-picker-modal",
2648
- title: l.title || e(c)("vault_secret_picker.title"),
2649
- visible: s.setup !== !1,
2650
- onCancel: m[4] || (m[4] = () => p("cancel")),
2664
+ title: l.title || e(d)("vault_secret_picker.title"),
2665
+ visible: c.setup !== !1,
2666
+ onCancel: g[4] || (g[4] = () => p("cancel")),
2651
2667
  onProceed: Z
2652
2668
  }, {
2653
2669
  default: v(() => [
2654
- e(Y) || e(ee) ? (C(), j(P, {
2670
+ e(Y) || e(ee) ? (V(), j(K, {
2655
2671
  key: 0,
2656
2672
  "data-testid": "vault-secret-picker-fetch-error",
2657
2673
  "icon-variant": "error",
2658
2674
  message: z.value
2659
- }, null, 8, ["message"])) : (C(), W("div", ul, [
2660
- tt(g.$slots, "form-prefix", {}, void 0, !0),
2661
- d(H, {
2662
- modelValue: w.value,
2663
- "onUpdate:modelValue": m[0] || (m[0] = (E) => w.value = E),
2675
+ }, null, 8, ["message"])) : (V(), W("div", vl, [
2676
+ ot(_.$slots, "form-prefix", {}, void 0, !0),
2677
+ u(H, {
2678
+ modelValue: x.value,
2679
+ "onUpdate:modelValue": g[0] || (g[0] = (R) => x.value = R),
2664
2680
  clearable: "",
2665
2681
  "data-testid": "vault-secret-picker-vault-select",
2666
- disabled: x.value,
2682
+ disabled: P.value,
2667
2683
  "enable-filtering": "",
2668
2684
  "filter-function": () => !0,
2669
2685
  items: F.value,
2670
2686
  "kpop-attributes": { "data-testid": "vault-secret-picker-vault-popover" },
2671
- label: e(c)("vault_secret_picker.vault.label"),
2687
+ label: e(d)("vault_secret_picker.vault.label"),
2672
2688
  loading: e(Q),
2673
- placeholder: e(c)("vault_secret_picker.vault.placeholder"),
2689
+ placeholder: e(d)("vault_secret_picker.vault.placeholder"),
2674
2690
  required: "",
2675
2691
  "reuse-item-template": "",
2676
2692
  width: "100%",
2677
2693
  onQueryChange: e(X)
2678
2694
  }, {
2679
2695
  loading: v(() => [
2680
- R("div", null, $(e(c)("actions.loading")), 1)
2696
+ I("div", null, T(e(d)("actions.loading")), 1)
2681
2697
  ]),
2682
2698
  empty: v(() => [
2683
- R("div", fl, $(e(c)("vault_secret_picker.no_results")), 1)
2699
+ I("div", gl, T(e(d)("vault_secret_picker.no_results")), 1)
2684
2700
  ]),
2685
- "selected-item-template": v(({ item: E }) => [
2686
- R("span", pl, $(O(E)), 1)
2701
+ "selected-item-template": v(({ item: R }) => [
2702
+ I("span", bl, T(O(R)), 1)
2687
2703
  ]),
2688
- "item-template": v(({ item: E }) => [
2689
- R("div", ml, [
2690
- R("span", vl, $(E.label), 1),
2691
- R("span", gl, $(E.vault.name), 1),
2692
- R("span", bl, $(E.vault.id), 1)
2704
+ "item-template": v(({ item: R }) => [
2705
+ I("div", _l, [
2706
+ I("span", yl, T(R.label), 1),
2707
+ I("span", hl, T(R.vault.name), 1),
2708
+ I("span", Vl, T(R.vault.id), 1)
2693
2709
  ])
2694
2710
  ]),
2695
2711
  _: 1
2696
2712
  }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"]),
2697
- ne.value ? (C(), j(H, {
2713
+ ne.value ? (V(), j(H, {
2698
2714
  key: 0,
2699
- modelValue: _.value,
2700
- "onUpdate:modelValue": m[1] || (m[1] = (E) => _.value = E),
2715
+ modelValue: m.value,
2716
+ "onUpdate:modelValue": g[1] || (g[1] = (R) => m.value = R),
2701
2717
  clearable: "",
2702
2718
  "data-testid": "vault-secret-picker-secret-id-select",
2703
- disabled: x.value || !h.value,
2719
+ disabled: P.value || !b.value,
2704
2720
  "enable-filtering": "",
2705
2721
  "filter-function": () => !0,
2706
2722
  items: re.value,
2707
2723
  "kpop-attributes": { "data-testid": "vault-secret-picker-secret-id-popover" },
2708
- label: e(c)("vault_secret_picker.secret_id.label"),
2724
+ label: e(d)("vault_secret_picker.secret_id.label"),
2709
2725
  loading: e(G),
2710
- placeholder: e(c)("vault_secret_picker.secret_id.select_placeholder"),
2726
+ placeholder: e(d)("vault_secret_picker.secret_id.select_placeholder"),
2711
2727
  required: "",
2712
2728
  "reuse-item-template": "",
2713
2729
  width: "100%",
2714
2730
  onQueryChange: e(ae)
2715
2731
  }, {
2716
2732
  loading: v(() => [
2717
- R("div", null, $(e(c)("actions.loading")), 1)
2733
+ I("div", null, T(e(d)("actions.loading")), 1)
2718
2734
  ]),
2719
2735
  empty: v(() => [
2720
- R("div", _l, $(e(c)("vault_secret_picker.no_results")), 1)
2736
+ I("div", kl, T(e(d)("vault_secret_picker.no_results")), 1)
2721
2737
  ]),
2722
2738
  _: 1
2723
- }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (C(), j(se, {
2739
+ }, 8, ["modelValue", "disabled", "items", "label", "loading", "placeholder", "onQueryChange"])) : (V(), j(se, {
2724
2740
  key: 1,
2725
- modelValue: _.value,
2726
- "onUpdate:modelValue": m[2] || (m[2] = (E) => _.value = E),
2741
+ modelValue: m.value,
2742
+ "onUpdate:modelValue": g[2] || (g[2] = (R) => m.value = R),
2727
2743
  modelModifiers: { trim: !0 },
2728
2744
  autocomplete: "off",
2729
2745
  "data-testid": "vault-secret-picker-secret-id-input",
2730
- disabled: x.value || !h.value,
2731
- label: e(c)("vault_secret_picker.secret_id.label"),
2732
- placeholder: e(c)("vault_secret_picker.secret_id.input_placeholder"),
2746
+ disabled: P.value || !b.value,
2747
+ label: e(d)("vault_secret_picker.secret_id.label"),
2748
+ placeholder: e(d)("vault_secret_picker.secret_id.input_placeholder"),
2733
2749
  required: "",
2734
2750
  type: "text"
2735
2751
  }, null, 8, ["modelValue", "disabled", "label", "placeholder"])),
2736
- d(se, {
2737
- modelValue: u.value,
2738
- "onUpdate:modelValue": m[3] || (m[3] = (E) => u.value = E),
2752
+ u(se, {
2753
+ modelValue: n.value,
2754
+ "onUpdate:modelValue": g[3] || (g[3] = (R) => n.value = R),
2739
2755
  modelModifiers: { trim: !0 },
2740
2756
  autocomplete: "off",
2741
2757
  "data-testid": "vault-secret-picker-secret-key-input",
2742
- disabled: x.value || !h.value,
2743
- help: e(c)("vault_secret_picker.optional_secret_key.help"),
2744
- label: e(c)("vault_secret_picker.optional_secret_key.label"),
2745
- placeholder: e(c)("vault_secret_picker.optional_secret_key.placeholder"),
2758
+ disabled: P.value || !b.value,
2759
+ help: e(d)("vault_secret_picker.optional_secret_key.help"),
2760
+ label: e(d)("vault_secret_picker.optional_secret_key.label"),
2761
+ placeholder: e(d)("vault_secret_picker.optional_secret_key.placeholder"),
2746
2762
  type: "text"
2747
2763
  }, null, 8, ["modelValue", "disabled", "help", "label", "placeholder"])
2748
2764
  ]))
@@ -2751,17 +2767,17 @@ const $t = { class: "kong-ui-entities-vault-form" }, Kt = { class: "vault-form-p
2751
2767
  }, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
2752
2768
  };
2753
2769
  }
2754
- }), Ul = /* @__PURE__ */ me(yl, [["__scopeId", "data-v-9ee12676"]]);
2770
+ }), Kl = /* @__PURE__ */ me(Cl, [["__scopeId", "data-v-9ee12676"]]);
2755
2771
  export {
2756
- El as SecretForm,
2757
- Rl as SecretList,
2772
+ $l as SecretForm,
2773
+ Tl as SecretList,
2758
2774
  M as VaultAuthMethods,
2759
- xl as VaultConfigCard,
2760
- Il as VaultForm,
2761
- Sl as VaultList,
2775
+ Ul as VaultConfigCard,
2776
+ Al as VaultForm,
2777
+ El as VaultList,
2762
2778
  t as VaultProviders,
2763
- Ul as VaultSecretPicker,
2764
- Al as VaultSecretPickerProvider,
2779
+ Kl as VaultSecretPicker,
2780
+ Pl as VaultSecretPickerProvider,
2765
2781
  be as secretsEndpoints,
2766
2782
  pe as vaultsEndpoints
2767
2783
  };