@kong-ui-public/entities-vaults 3.11.0 → 3.11.1

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.
@@ -1077,7 +1077,10 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1077
1077
  "data-testid": "vault-form-config-kong-prefix",
1078
1078
  "is-readonly": u.isReadonly,
1079
1079
  label: e(o)("form.config.env.fields.prefix.label"),
1080
- "label-attributes": { info: e(o)("form.config.env.fields.prefix.tooltip") },
1080
+ "label-attributes": {
1081
+ info: e(o)("form.config.env.fields.prefix.tooltip"),
1082
+ tooltipAttributes: { maxWidth: "400" }
1083
+ },
1081
1084
  placeholder: e(o)("form.config.env.fields.prefix.placeholder"),
1082
1085
  required: "",
1083
1086
  type: "text"
@@ -1109,7 +1112,7 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1109
1112
  label: e(o)("form.config.aws.fields.endpoint_url.label"),
1110
1113
  "label-attributes": {
1111
1114
  info: e(o)("form.config.aws.fields.endpoint_url.tooltip"),
1112
- tooltipAttributes: { maxWidth: "400px" }
1115
+ tooltipAttributes: { maxWidth: "400" }
1113
1116
  },
1114
1117
  type: "text"
1115
1118
  }, null, 8, ["modelValue", "is-readonly", "label", "label-attributes"]),
@@ -1123,7 +1126,7 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1123
1126
  label: e(o)("form.config.aws.fields.assume_role_arn.label"),
1124
1127
  "label-attributes": {
1125
1128
  info: e(o)("form.config.aws.fields.assume_role_arn.tooltip"),
1126
- tooltipAttributes: { maxWidth: "400px" }
1129
+ tooltipAttributes: { maxWidth: "400" }
1127
1130
  },
1128
1131
  type: "text"
1129
1132
  }, null, 8, ["modelValue", "is-readonly", "label", "label-attributes"]),
@@ -1137,7 +1140,7 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1137
1140
  label: e(o)("form.config.aws.fields.role_session_name.label"),
1138
1141
  "label-attributes": {
1139
1142
  info: e(o)("form.config.aws.fields.role_session_name.tooltip"),
1140
- tooltipAttributes: { maxWidth: "400px" }
1143
+ tooltipAttributes: { maxWidth: "400" }
1141
1144
  },
1142
1145
  required: "",
1143
1146
  type: "text"
@@ -1153,7 +1156,7 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1153
1156
  label: e(o)("form.config.aws.fields.sts_endpoint_url.label"),
1154
1157
  "label-attributes": {
1155
1158
  info: e(o)("form.config.aws.fields.sts_endpoint_url.tooltip"),
1156
- tooltipAttributes: { maxWidth: "400px" }
1159
+ tooltipAttributes: { maxWidth: "400" }
1157
1160
  },
1158
1161
  type: "text"
1159
1162
  }, null, 8, ["modelValue", "is-readonly", "label", "label-attributes"])) : ee("", !0)
@@ -1449,7 +1452,10 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1449
1452
  "onUpdate:modelValue": i[30] || (i[30] = (r) => l[c.value].ttl = r),
1450
1453
  "data-testid": "vault-ttl-input",
1451
1454
  label: e(o)("form.config.advancedFields.ttl"),
1452
- "label-attributes": { info: e(o)("form.config.advancedFields.ttlTooltip") },
1455
+ "label-attributes": {
1456
+ info: e(o)("form.config.advancedFields.ttlTooltip"),
1457
+ tooltipAttributes: { maxWidth: "400" }
1458
+ },
1453
1459
  type: "number"
1454
1460
  }, null, 8, ["modelValue", "label", "label-attributes"])
1455
1461
  ]),
@@ -1459,7 +1465,10 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1459
1465
  "onUpdate:modelValue": i[31] || (i[31] = (r) => l[c.value].neg_ttl = r),
1460
1466
  "data-testid": "vault-neg-ttl-input",
1461
1467
  label: e(o)("form.config.advancedFields.negTtl"),
1462
- "label-attributes": { info: e(o)("form.config.advancedFields.negTtlTooltip") },
1468
+ "label-attributes": {
1469
+ info: e(o)("form.config.advancedFields.negTtlTooltip"),
1470
+ tooltipAttributes: { maxWidth: "400" }
1471
+ },
1463
1472
  type: "number"
1464
1473
  }, null, 8, ["modelValue", "label", "label-attributes"])
1465
1474
  ])
@@ -1471,7 +1480,10 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1471
1480
  "onUpdate:modelValue": i[32] || (i[32] = (r) => l[c.value].resurrect_ttl = r),
1472
1481
  "data-testid": "vault-resurrect-ttl-input",
1473
1482
  label: e(o)("form.config.advancedFields.resurrectTtl"),
1474
- "label-attributes": { info: e(o)("form.config.advancedFields.resurrectTtlTooltip") },
1483
+ "label-attributes": {
1484
+ info: e(o)("form.config.advancedFields.resurrectTtlTooltip"),
1485
+ tooltipAttributes: { maxWidth: "400" }
1486
+ },
1475
1487
  type: "number"
1476
1488
  }, null, 8, ["modelValue", "label", "label-attributes"])
1477
1489
  ])
@@ -1500,7 +1512,10 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1500
1512
  help: e(o)("form.fields.prefix.help"),
1501
1513
  "is-readonly": u.isReadonly,
1502
1514
  label: e(o)("form.fields.prefix.label"),
1503
- "label-attributes": { info: e(o)("form.fields.prefix.tooltip") },
1515
+ "label-attributes": {
1516
+ info: e(o)("form.fields.prefix.tooltip"),
1517
+ tooltipAttributes: { maxWidth: "400" }
1518
+ },
1504
1519
  placeholder: e(o)("form.fields.prefix.placeholder"),
1505
1520
  required: "",
1506
1521
  type: "text"
@@ -1537,7 +1552,7 @@ const ht = { class: "kong-ui-entities-vault-form" }, _t = { class: "vault-form-p
1537
1552
  ]);
1538
1553
  };
1539
1554
  }
1540
- }), Lt = /* @__PURE__ */ ge(Kt, [["__scopeId", "data-v-4bb7bcb5"]]), $t = { class: "kong-ui-vault-entity-config-card" }, Zt = /* @__PURE__ */ ce({
1555
+ }), Lt = /* @__PURE__ */ ge(Kt, [["__scopeId", "data-v-4042bbf1"]]), $t = { class: "kong-ui-vault-entity-config-card" }, Zt = /* @__PURE__ */ ce({
1541
1556
  __name: "VaultConfigCard",
1542
1557
  props: {
1543
1558
  /** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
@@ -1 +1 @@
1
- (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-vaults"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-entities-shared"],w["kong-ui-public-i18n"]))})(this,function(w,e,le,G,m,ie){"use strict";const fe={actions:{create:"New Vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details"},delete:{title:"Delete a Vault",title_for_secret:"Delete a Secret",description:"This action cannot be reversed."},errors:{general:"Vaults could not be retrieved",delete:"The vault could not be deleted at this time.",copy:"Failed to copy to clipboard"},search:{placeholder:{konnect:"Filter by exact name or ID"}},vaults:{title:"Vaults",list:{toolbar_actions:{new_vault:"New Vault"},table_headers:{prefix:"Prefix",name:"Vault Type",description:"Description",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Vault",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}}},secrets:{title:"Secrets",list:{toolbar_actions:{new_secret:"Store New Secret"},table_headers:{key:"Secret Key",updated_at:"Updated At"},empty_state:{title:"No Secrets Stored",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}},form:{info:{title:"Secret",description:"Enter the secret key and secret value to be stored in Konnect vault"},fields:{key:{label:"Key",placeholder:"Enter key"},value:{label:"Value",placeholder:"Enter value here, can be simple values or multi-line"}},hint:"Once saved, the secret value will not be visible"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},labels:{vault_type:"Vault Type"},form:{sections:{general:{title:"General Information",description:"General information helps identify and manage this Vault instance."},config:{title:"Vault Configuration",description:"Select a type of Vault and configure properties specific to each type of Vault."}},fields:{prefix:{label:"Prefix",placeholder:"Enter a unique prefix for this vault",help:"e.g. my-vault",tooltip:"The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities."},description:{label:"Description",placeholder:"Enter some description for this vault"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}},config:{konnect:{label:"Konnect",description:"Access secrets stored directly in Konnect's unified platform to easily reference in Kong Gateway configuration."},env:{label:"Environment Variables",description:"Access secrets stored via variables to be made available in Kong Gateway at runtime.",fields:{prefix:{label:"Environment Variable Prefix",placeholder:"Enter your environment variable vault prefix",tooltip:"Data plane will access all the environment variables starting with this prefix."}}},aws:{label:"AWS Secrets Manager",description:"Access secrets stored in AWS Secrets Manager for Kong Gateway configuration.",fields:{region:{label:"Region",placeholder:"Select an AWS region",tooltip:"The AWS region your vault is located in",locations:{"us-east-1":{location:"N. Virginia"},"us-east-2":{location:"Ohio"},"us-west-1":{location:"N. California"},"us-west-2":{location:"Oregon"},"af-south-1":{location:"Cape Town"},"ap-east-1":{location:"Hong Kong"},"ap-southeast-3":{location:"Jakarta"},"ap-south-1":{location:"Mumbai"},"ap-northeast-1":{location:"Tokyo"},"ap-northeast-2":{location:"Seoul"},"ap-northeast-3":{location:"Osaka"},"ap-southeast-1":{location:"Singapore"},"ap-southeast-2":{location:"Sydney"},"ca-central-1":{location:"Canada"},"eu-central-1":{location:"Frankfurt"},"eu-west-1":{location:"Ireland"},"eu-west-2":{location:"London"},"eu-west-3":{location:"Paris"},"eu-south-1":{location:"Milan"},"eu-north-1":{location:"Stockholm"},"me-south-1":{location:"Bahrain"},"sa-east-1":{location:"São Paulo"},"us-gov-east-1":{location:"US East"},"us-gov-west-1":{location:"US West"}}},endpoint_url:{label:"Endpoint URL",tooltip:'The AWS SecretsManager service endpoint url. If not specified, the value used by vault will be the official AWS SecretsManager service url which is `https://secretsmanager.<region>.amazonaws.com`. You can specify a complete URL(including the "http/https" scheme) to override the endpoint that vault will connect to.'},assume_role_arn:{label:"Assume Role ARN",tooltip:"The target AWS IAM role ARN that will be assumed. Typically this is used for operating between multiple roles or cross-accounts. If you are not using assume role you should not specify this value."},role_session_name:{label:"Role Session Name",tooltip:"The role session name used for role assuming."},sts_endpoint_url:{label:"STS Endpoint URL",tooltip:"The custom STS endpoint URL used for role assuming in AWS Vault. Note that this value will override the default STS endpoint URL(which should be `https: //sts.amazonaws.com`, or `https: //sts.<region>.amazonaws.com` if you have `AWS_STS_REGIONAL_ENDPOINTS` set to `regional`). If you are not using private VPC endpoint for STS service, you should not specify this value."}}},gcp:{label:"Google Secret Manager",description:"Access secrets stored in Google Secret Manager for Kong Gateway configuration.",fields:{project_id:{label:"Project ID",placeholder:"Enter your Google Cloud Project ID",tooltip:{text:"Visit your Google API Console and select {italic-text} in the projects list to see your project ID",italicText:"Manage all projects"}}}},hcv:{label:"HashiCorp Vault",description:"Access secrets stored in HashiCorp Vault for Kong Gateway configuration.",fields:{protocol:{label:"Protocol"},host:{label:"Host"},port:{label:"Port"},mount:{label:"Mount"},kv:{label:"Kv"},namespace:{label:"Namespace"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},advancedFields:{title:"View Advanced Fields",ttl:"Time-to-Live",ttlTooltip:"Time-to-live (in seconds) of a secret from a vault when cached by this reference",negTtl:"Negative Time-to-Live",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret)",resurrectTtl:"Time-to-Live Resurrection",resurrectTtlTooltip:"Time (in seconds) for which stale secrets from the vault are resurrected for when they cannot be refreshed"}},unavailable:"This vault provider is available on Enterprise."}};function ue(){const a=ie.createI18n("en-us",fe);return{i18n:a,i18nT:ie.i18nTComponent(a)}}const X={useI18n:ue},ae="/v2/control-planes/{controlPlaneId}/core-entities",re="/{workspace}",ee={list:{konnect:`${ae}/vaults`,kongManager:`${re}/vaults`},form:{konnect:{create:`${ae}/vaults`,edit:`${ae}/vaults/{id}`},kongManager:{create:`${re}/vaults`,edit:`${re}/vaults/{id}`}}},pe={class:"kong-ui-entities-vaults-list"},me={class:"table-content-overflow-wrapper"},ge={class:"table-content-overflow-wrapper"},ye={key:1},be=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(a,{emit:v}){var C;const p=v,f=a,{i18n:{t:u}}=X.useI18n(),l=le.useRouter(),{axiosInstance:N}=m.useAxios((C=f.config)==null?void 0:C.axiosRequestConfig),S=e.computed(()=>f.config.app!=="kongManager"||!!f.config.disableSorting),h={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},s=h,$=e.computed(()=>{var _,V;let y=`${f.config.apiBaseUrl}${ee.list[f.config.app]}`;return f.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((_=f.config)==null?void 0:_.controlPlaneId)||""):f.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(V=f.config)!=null&&V.workspace?`/${f.config.workspace}`:"")),y}),d=e.ref(""),L=e.computed(()=>{if(f.config.app==="konnect"||f.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder.konnect")};const{prefix:_,name:V}=h;return{isExactMatch:!1,fields:{name:V,prefix:_},schema:f.config.filterSchema}}),P=e.ref(1),{fetcher:Z,fetcherState:o}=m.useFetcher(f.config,$.value),j=()=>{d.value=""},D=()=>{P.value++},F=e.ref(null),U=(y,_)=>{const V=y.id;if(!_(V)){p("copy:error",{entity:y,field:"id",message:u("errors.copy")});return}p("copy:success",{entity:y,field:"id",message:u("copy.success",{val:V})})},O=(y,_)=>{const V=JSON.stringify(y);if(!_(V)){p("copy:error",{entity:y,message:u("errors.copy")});return}p("copy:success",{entity:y,message:u("copy.success_brief")})},I=async y=>{var V;await((V=f.canRetrieve)==null?void 0:V.call(f,y))&&l.push(f.config.getViewRoute(y.id))},g=y=>({label:u("actions.view"),to:f.config.getViewRoute(y)}),E=y=>({label:u("actions.edit"),to:f.config.getEditRoute(y)}),x=e.ref(void 0),q=e.ref(!1),W=e.ref(!1),K=e.ref(""),J=m.useDeleteUrlBuilder(f.config,$.value),Y=y=>{x.value=y,q.value=!0},b=()=>{q.value=!1},M=async()=>{var y,_,V;if((y=x.value)!=null&&y.id){W.value=!0;try{await N.delete(J(x.value.id)),W.value=!1,q.value=!1,P.value++,p("delete:success",x.value)}catch(i){K.value=((V=(_=i.response)==null?void 0:_.data)==null?void 0:V.message)||i.message||u("errors.delete"),p("error",i)}finally{W.value=!1}}},H=e.ref(!1);e.watch(o,y=>{var _,V,i,r;if(Array.isArray((_=y==null?void 0:y.response)==null?void 0:_.data)&&(H.value=y.response.data.length>0),y.status===m.FetcherStatus.Error){F.value={title:u("errors.general")},(r=(i=(V=y.error)==null?void 0:V.response)==null?void 0:i.data)!=null&&r.message&&(F.value.message=y.error.response.data.message),p("error",y.error);return}F.value=null});const R=e.ref({ctaPath:f.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${f.config.additionMessageForEmptyState?` ${f.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")});return e.onBeforeMount(async()=>{await f.canCreate()&&(R.value.title=u("vaults.list.empty_state.title"),R.value.ctaText=u("actions.create"))}),(y,_)=>{const V=e.resolveComponent("KButton"),i=e.resolveComponent("KBadge"),r=e.resolveComponent("KTruncate"),A=e.resolveComponent("KDropdownItem"),T=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":S.value,"empty-state-options":R.value,"enable-entity-actions":"","error-message":F.value,fetcher:e.unref(Z),"fetcher-cache-key":P.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:d.value,"table-headers":e.unref(s),"use-action-outside":a.useActionOutside,onClearSearchInput:j,"onClick:row":_[2]||(_[2]=c=>I(c)),onSort:D},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":_[0]||(_[0]=c=>d.value=c),config:L.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(V,{appearance:"primary","data-testid":"toolbar-add-vault",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["to"]),[[e.vShow,H.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:c})=>[e.createElementVNode("div",me,[e.createElementVNode("b",null,e.toDisplayString(c??"-"),1)])]),name:e.withCtx(({rowValue:c})=>[e.createElementVNode("b",null,e.toDisplayString(c??"-"),1)]),description:e.withCtx(({rowValue:c})=>[e.createElementVNode("div",ge,e.toDisplayString(c??"-"),1)]),tags:e.withCtx(({rowValue:c})=>[(c==null?void 0:c.length)>0?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,B=>(e.openBlock(),e.createBlock(i,{key:B,onClick:_[1]||(_[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",ye,"-"))]),actions:e.withCtx(({row:c})=>[e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:B})=>[e.createVNode(A,{"data-testid":"action-entity-copy-id",onClick:z=>U(c,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:B})=>[e.createVNode(A,{"data-testid":"action-entity-copy-json",onClick:z=>O(c,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(c)},{default:e.withCtx(()=>[e.createVNode(A,{"data-testid":"action-entity-view","has-divider":"",item:g(c.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(c)},{default:e.withCtx(()=>[e.createVNode(A,{"data-testid":"action-entity-edit",item:E(c.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(c)},{default:e.withCtx(()=>[e.createVNode(A,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:B=>Y(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","use-action-outside"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":W.value,description:e.unref(u)("delete.description"),"entity-name":x.value&&(x.value.prefix||x.value.id),"entity-type":e.unref(m.EntityTypes).Vault,error:K.value,title:e.unref(u)("delete.title"),visible:q.value,onCancel:b,onProceed:M},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(a,v)=>{const p=a.__vccOpts||a;for(const[f,u]of v)p[f]=u;return p},he=te(be,[["__scopeId","data-v-6516e0a1"]]);var t=(a=>(a.AWS="aws",a.GCP="gcp",a.HCV="hcv",a.ENV="env",a.AZURE="azure",a.KONNECT="konnect",a))(t||{}),k=(a=>(a.TOKEN="token",a.K8S="kubernetes",a.APP_ROLE="approle",a))(k||{});const _e={class:"kong-ui-entities-vault-form"},Ve={class:"vault-form-provider-cards-container"},Ce=["data-testid"],ke={class:"provider-item-title-container"},we={class:"provider-item-title"},Ee={class:"provider-item-description"},xe={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Ne={key:0,class:"vault-form-config-auth-method-container"},Ae={key:1,class:"vault-form-config-auth-method-container"},Te={key:2,class:"vault-form-config-auth-method-container"},Re={key:5},Se={class:"wrapper"},Ie={class:"item-50"},Ue={class:"item-50"},Be={class:"wrapper"},Me={class:"item-100"},He=te(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||(a==null?void 0:a.app)==="konnect"&&!(a!=null&&a.controlPlaneId)||(a==null?void 0:a.app)==="kongManager"&&typeof(a==null?void 0:a.workspace)!="string"||!(a!=null&&a.cancelRoute))},vaultId:{type:String,required:!1,default:""},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","loading"],setup(a,{emit:v}){var V;const p=a,f=v,{i18nT:u,i18n:{t:l}}=X.useI18n(),N=le.useRouter(),{axiosInstance:S}=m.useAxios((V=p.config)==null?void 0:V.axiosRequestConfig),{getMessageFromError:h}=m.useErrors(),s=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),$=e.reactive({prefix:"",description:"",tags:""}),d=e.ref(p.config.konnectConfigStoreAvailable?t.KONNECT:t.ENV),L=e.ref(null),P=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE].includes(d.value)),Z=e.computed(()=>[...p.config.konnectConfigStoreAvailable?[{label:l("form.config.konnect.label"),value:t.KONNECT}]:[],{label:l("form.config.env.label"),value:t.ENV},{label:l("form.config.aws.label"),value:t.AWS,disabled:!x.value},{label:l("form.config.gcp.label"),value:t.GCP,disabled:!x.value},{label:l("form.config.hcv.label"),value:t.HCV,disabled:!x.value},...p.config.azureVaultProviderAvailable?[{label:l("form.config.azure.label"),value:t.AZURE,disabled:!x.value}]:[]]),o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:k.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""}}),j=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:k.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""}}),D=[{label:`${l("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${l("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${l("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${l("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${l("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${l("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${l("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${l("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${l("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${l("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${l("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${l("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${l("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${l("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${l("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],F=[{label:"secrets",value:"secrets"}],U=[{label:"http",value:"http"},{label:"https",value:"https"}],O=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],I=e.computed(()=>p.vaultId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),g=e.computed(()=>{var i,r;return(r=ee.form[(i=p.config)==null?void 0:i.app])==null?void 0:r.edit}),E=e.computed(()=>I.value===m.EntityBaseFormType.Edit&&p.config.app==="kongManager"),x=e.computed(()=>p.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:p.config.gatewayInfo,supportedRange:{enterprise:[]}})),q=()=>{var i;N.push(((i=p.config)==null?void 0:i.cancelRoute)||{name:"vault-list"})},W=i=>{f("loading",i)},K=i=>{f("error",i)},J=i=>{switch(i){case t.KONNECT:return G.KongIcon;case t.ENV:return G.CodeIcon;case t.AWS:return G.AwsIcon;case t.GCP:return G.GoogleCloudIcon;case t.HCV:return G.HashicorpIcon;case t.AZURE:return G.AzureIcon}},Y=i=>{switch(i){case t.KONNECT:return l("form.config.konnect.description");case t.ENV:return l("form.config.env.description");case t.AWS:return l("form.config.aws.description");case t.GCP:return l("form.config.gcp.description");case t.HCV:return l("form.config.hcv.description");case t.AZURE:return l("form.config.azure.description")}},b=i=>{var T,c,B,z,Q;s.fields.prefix=((T=i==null?void 0:i.item)==null?void 0:T.prefix)||(i==null?void 0:i.prefix)||"",s.fields.description=((c=i==null?void 0:i.item)==null?void 0:c.description)||(i==null?void 0:i.description)||"";const r=((B=i==null?void 0:i.item)==null?void 0:B.tags)||(i==null?void 0:i.tags)||[];s.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign($,s.fields);const A=((z=i==null?void 0:i.item)==null?void 0:z.config)||(i==null?void 0:i.config)||null;A&&(Object.keys(A).length||(i==null?void 0:i.name)===t.KONNECT)?(d.value=((Q=i==null?void 0:i.item)==null?void 0:Q.name)||(i==null?void 0:i.name)||"",L.value=d.value,Object.assign(o[d.value],A),Object.assign(j[d.value],A)):s.errorMessage="Error loading vault config"},M=e.computed(()=>d.value===t.HCV?!Object.keys(o[t.HCV]).filter(i=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(i)||o[t.HCV].auth_method!==k.K8S&&(i==="kube_role"||i==="kube_api_token_file")||o[t.HCV].auth_method!==k.TOKEN&&i==="token"||o[t.HCV].auth_method!==k.APP_ROLE&&(i==="approle_role_id"||i==="approle_response_wrapping")||o[t.HCV].auth_method===k.APP_ROLE&&i==="approle_response_wrapping"&&typeof o[d.value][i]=="boolean"?!1:!o[d.value][i]).length:d.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(i=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:!o[d.value][i]).length:d.value===t.AWS?!Object.keys(o[t.AWS]).filter(i=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(i)?!1:!o[d.value][i]).length:!Object.keys(o[d.value]).filter(i=>["ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:!o[d.value][i]).length),H=e.computed(()=>!!s.fields.prefix&&M.value),R=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify($)||d.value!==L.value||JSON.stringify(o[d.value])!==JSON.stringify(j[d.value])),C=e.computed(()=>{var r,A;let i=`${p.config.apiBaseUrl}${ee.form[p.config.app][I.value]}`;return p.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=p.config)==null?void 0:r.controlPlaneId)||""):p.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(A=p.config)!=null&&A.workspace?`/${p.config.workspace}`:"")),i=i.replace(/{id}/gi,p.vaultId),i}),y=e.computed(()=>{var z,Q;const i={protocol:o[t.HCV].protocol,host:o[t.HCV].host,port:parseInt(o[t.HCV].port.toString()),mount:o[t.HCV].mount,kv:o[t.HCV].kv,namespace:o[t.HCV].namespace||null,auth_method:o[t.HCV].auth_method,...o[t.HCV].auth_method===k.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===k.K8S&&{kube_role:o[t.HCV].kube_role,kube_auth_path:o[t.HCV].kube_auth_path||void 0,kube_api_token_file:o[t.HCV].kube_api_token_file,token:null},...o[t.HCV].auth_method===k.APP_ROLE&&{approle_auth_path:o[t.HCV].approle_auth_path||void 0,approle_role_id:o[t.HCV].approle_role_id,approle_secret_id:o[t.HCV].approle_secret_id||void 0,approle_secret_id_file:o[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:o[t.HCV].approle_response_wrapping??!1}},r={...o[d.value],client_id:o[d.value].client_id||null,tenant_id:o[d.value].tenant_id||null},A={...o[d.value],endpoint_url:o[d.value].endpoint_url||null,assume_role_arn:o[d.value].assume_role_arn||null,...p.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[d.value].sts_endpoint_url||null}:{}};let T=o[d.value];d.value===t.HCV?T=i:d.value===t.AZURE?T=r:d.value===t.AWS&&(T=A);let c={};if(![t.KONNECT,t.ENV].includes(d.value)){const n=o[d.value],se=n.ttl,ce=n.neg_ttl,de=n.resurrect_ttl;c={ttl:se?parseInt(se.toString(),10):null,neg_ttl:ce?parseInt(ce.toString(),10):null,resurrect_ttl:de?parseInt(de.toString(),10):null}}return{prefix:s.fields.prefix,description:s.fields.description||null,tags:(Q=(z=s.fields.tags.split(","))==null?void 0:z.map(n=>String(n||"").trim()))==null?void 0:Q.filter(n=>n!==""),name:d.value,config:{...T,...c}}}),_=async()=>{var i;try{s.isReadonly=!0;let r;I.value==="create"?r=await S.post(C.value,y.value):I.value==="edit"&&(r=((i=p.config)==null?void 0:i.app)==="konnect"?await S.put(C.value,y.value):await S.patch(C.value,y.value)),b(r==null?void 0:r.data),f("update",r==null?void 0:r.data)}catch(r){s.errorMessage=h(r),f("error",r)}finally{s.isReadonly=!1}};return(i,r)=>{const A=e.resolveComponent("KTooltip"),T=e.resolveComponent("KSelect"),c=e.resolveComponent("KInput"),B=e.resolveComponent("KCheckbox"),z=e.resolveComponent("KCollapse"),Q=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":H.value&&R.value,config:a.config,"edit-id":a.vaultId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Vault,"error-message":s.errorMessage,"fetch-url":g.value,"form-fields":y.value,"is-readonly":s.isReadonly,onCancel:q,"onFetch:error":K,"onFetch:success":b,onLoading:W,onSubmit:_},{default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(l)("form.sections.config.description"),title:e.unref(l)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ve,[e.createVNode(T,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=n=>d.value=n),"data-testid":"provider-select",disabled:E.value,"dropdown-max-height":"500",items:Z.value},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J(n.value)))),e.createTextVNode(" "+e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(A,{placement:"top",text:n.disabled?e.unref(l)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${n.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J(n.value)))),e.createElementVNode("div",ke,[e.createElementVNode("span",we,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Ee,e.toDisplayString(Y(n.value)),1)])],8,Ce)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[d.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(c,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix","is-readonly":s.isReadonly,label:e.unref(l)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(l)("form.config.env.fields.prefix.tooltip")},placeholder:e.unref(l)("form.config.env.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(T,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":r[2]||(r[2]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:D,label:e.unref(l)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(l)("form.config.aws.fields.region.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[3]||(r[3]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400px"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[4]||(r[4]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400px"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[5]||(r[5]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400px"}},required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),a.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[6]||(r[6]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400px"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(c,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[7]||(r[7]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(l)("form.config.gcp.fields.project_id.placeholder"),required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(l)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","is-readonly","label","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(T,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[8]||(r[8]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:U,label:e.unref(l)("form.config.hcv.fields.protocol.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":r[9]||(r[9]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.host.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":r[10]||(r[10]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.port.label"),min:"0",required:"",type:"number"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":r[11]||(r[11]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.mount.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":r[12]||(r[12]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:O,label:e.unref(l)("form.config.hcv.fields.kv.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[13]||(r[13]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.namespace.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[14]||(r[14]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(k).TOKEN,value:e.unref(k).TOKEN},{label:e.unref(k).K8S,value:e.unref(k).K8S},...a.config.hcvAppRoleMethodAvailable?[{label:e.unref(k).APP_ROLE,value:e.unref(k).APP_ROLE}]:[]],label:e.unref(l)("form.config.hcv.fields.auth_method.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(k).TOKEN?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":r[15]||(r[15]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.token.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):o[e.unref(t).HCV].auth_method===e.unref(k).K8S?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[16]||(r[16]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_role.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[17]||(r[17]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[18]||(r[18]=n=>o[e.unref(t).HCV].kube_api_token_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_api_token_file.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):o[e.unref(t).HCV].auth_method===e.unref(k).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[19]||(r[19]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[20]||(r[20]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_role_id.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[21]||(r[21]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_secret_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[22]||(r[22]=n=>o[e.unref(t).HCV].approle_secret_id_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_secret_id_file.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(B,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[23]||(r[23]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(l)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(c,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":r[24]||(r[24]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.location.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[25]||(r[25]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.vault_uri.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[26]||(r[26]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.credential_prefix.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":r[27]||(r[27]=n=>o[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:F,label:e.unref(l)("form.config.azure.fields.type.label"),placeholder:e.unref(l)("form.config.azure.fields.type.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[28]||(r[28]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.client_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[29]||(r[29]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.tenant_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),a.config.ttl?(e.openBlock(),e.createElementBlock("div",Re,[P.value?(e.openBlock(),e.createBlock(z,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createElementVNode("div",Ie,[e.createVNode(c,{modelValue:o[d.value].ttl,"onUpdate:modelValue":r[30]||(r[30]=n=>o[d.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(l)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.ttlTooltip")},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ue,[e.createVNode(c,{modelValue:o[d.value].neg_ttl,"onUpdate:modelValue":r[31]||(r[31]=n=>o[d.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(l)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.negTtlTooltip")},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Be,[e.createElementVNode("div",Me,[e.createVNode(c,{modelValue:o[d.value].resurrect_ttl,"onUpdate:modelValue":r[32]||(r[32]=n=>o[d.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(l)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.resurrectTtlTooltip")},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(l)("form.sections.general.description"),title:e.unref(l)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:s.fields.prefix,"onUpdate:modelValue":r[33]||(r[33]=n=>s.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(l)("form.fields.prefix.help"),"is-readonly":s.isReadonly,label:e.unref(l)("form.fields.prefix.label"),"label-attributes":{info:e.unref(l)("form.fields.prefix.tooltip")},placeholder:e.unref(l)("form.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","help","is-readonly","label","label-attributes","placeholder"]),e.createVNode(Q,{modelValue:s.fields.description,"onUpdate:modelValue":r[34]||(r[34]=n=>s.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(l)("form.fields.description.label"),placeholder:e.unref(l)("form.fields.description.placeholder"),readonly:s.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(c,{modelValue:s.fields.tags,"onUpdate:modelValue":r[35]||(r[35]=n=>s.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(l)("form.fields.tags.help"),"is-readonly":s.isReadonly,label:e.unref(l)("form.fields.tags.label"),placeholder:e.unref(l)("form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","is-readonly","label","placeholder"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-4bb7bcb5"]]),ve={class:"kong-ui-vault-entity-config-card"},Ke=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(a){const v=a,p=e.computed(()=>{var l,N;return(N=ee.form[(l=v.config)==null?void 0:l.app])==null?void 0:N.edit}),{i18n:{t:f}}=X.useI18n(),u=e.ref({id:{},name:{label:f("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:m.ConfigurationSchemaSection.Basic},description:{order:6,section:m.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:m.ConfigurationSchemaType.Json}});return(l,N)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":u.value,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Vault,"fetch-url":p.value,"hide-title":a.hideTitle,"onFetch:error":N[0]||(N[0]=S=>l.$emit("fetch:error",S)),"onFetch:success":N[1]||(N[1]=S=>l.$emit("fetch:success",S)),onLoading:N[2]||(N[2]=S=>l.$emit("loading",S))},null,8,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])]))}}),ne="/v2/control-planes/{controlPlaneId}/core-entities",oe={list:{konnect:`${ne}/vaults/{id}/secrets`},form:{konnect:{create:`${ne}/vaults/{id}/secrets`,edit:`${ne}/vaults/{id}/secrets/{secretId}`}}},$e={class:"kong-ui-entities-secrets-list"},Pe={class:"table-content-overflow-wrapper"},De=te(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:a=>!(!a||(a==null?void 0:a.app)!=="konnect"||!a.createRoute||!a.getEditRoute)},vaultId:{type:String,required:!0},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0}},emits:["error","delete:success"],setup(a,{emit:v}){var Y;const p=v,f=a,{i18n:{t:u,formatUnixTimeStamp:l}}=X.useI18n(),{axiosInstance:N}=m.useAxios((Y=f.config)==null?void 0:Y.axiosRequestConfig),h={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},s=b=>({"data-testid":b.key}),$=e.computed(()=>{var b;return`${f.config.apiBaseUrl}${oe.list[f.config.app]}`.replace(/{controlPlaneId}/gi,((b=f.config)==null?void 0:b.controlPlaneId)||"").replace(/{id}/gi,f.vaultId||"")}),d=e.ref(""),L={isExactMatch:!0,placeholder:u("search.placeholder.konnect")},P=e.ref(1),{fetcher:Z,fetcherState:o}=m.useFetcher(f.config,$.value),j=()=>{d.value=""},D=e.ref(null),F=b=>({label:u("actions.edit"),to:f.config.getEditRoute(b)}),U=e.ref(void 0),O=e.ref(!1),I=e.ref(!1),g=e.ref(""),E=m.useDeleteUrlBuilder(f.config,$.value),x=b=>{U.value=b,O.value=!0},q=()=>{O.value=!1},W=async()=>{var b,M,H;if((b=U.value)!=null&&b.key){I.value=!0;try{await N.delete(E(U.value.key)),I.value=!1,O.value=!1,P.value++,p("delete:success",U.value)}catch(R){g.value=((H=(M=R.response)==null?void 0:M.data)==null?void 0:H.message)||R.message||u("errors.delete"),p("error",R)}finally{I.value=!1}}},K=e.ref(!1);e.watch(o,b=>{var M,H,R,C;if(Array.isArray((M=b==null?void 0:b.response)==null?void 0:M.data)&&(K.value=b.response.data.length>0),b.status===m.FetcherStatus.Error){D.value={title:u("errors.general")},(C=(R=(H=b.error)==null?void 0:H.response)==null?void 0:R.data)!=null&&C.message&&(D.value.message=b.error.response.data.message),p("error",b.error);return}D.value=null});const J=e.ref({ctaPath:f.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${f.config.additionMessageForEmptyState?` ${f.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await f.canCreate()&&(J.value.title=u("secrets.list.empty_state.title"),J.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(b,M)=>{const H=e.resolveComponent("KButton"),R=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":"","empty-state-options":J.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(Z),"fetcher-cache-key":P.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:d.value,"row-attributes":s,"table-headers":e.unref(h),onClearSearchInput:j},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=C=>d.value=C),config:L},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(H,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"]),[[e.vShow,K.value]])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:C})=>[e.createElementVNode("div",Pe,[e.createElementVNode("b",null,e.toDisplayString(C??"-"),1)])]),updated_at:e.withCtx(({rowValue:C})=>[e.createElementVNode("span",null,e.toDisplayString(C?e.unref(l)(C):"-"),1)]),actions:e.withCtx(({row:C})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(C)},{default:e.withCtx(()=>[e.createVNode(R,{"data-testid":"action-entity-edit",item:F(C.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(C)},{default:e.withCtx(()=>[e.createVNode(R,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:y=>x(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":I.value,description:e.unref(u)("delete.description"),"entity-name":U.value&&U.value.key,"entity-type":e.unref(m.EntityTypes).Secret,error:g.value,title:e.unref(u)("delete.title_for_secret"),visible:O.value,onCancel:q,onProceed:W},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-e59d34f3"]]),Fe={class:"kong-ui-entities-secret-form"},Oe=te(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||a.app!=="konnect"||!a.controlPlaneId||!a.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","loading"],setup(a,{emit:v}){var I;const p=a,f=v,{i18n:{t:u}}=X.useI18n(),l=le.useRouter(),{axiosInstance:N}=m.useAxios((I=p.config)==null?void 0:I.axiosRequestConfig),{getMessageFromError:S}=m.useErrors(),h=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),s=e.reactive({key:"",value:""}),$=e.computed(()=>{var g,E;return(E=oe.form[(g=p.config)==null?void 0:g.app])==null?void 0:E.edit.replace(/{id}/gi,p.vaultId).replace(/{secretId}/gi,p.secretId)}),d=()=>{var g;l.push(((g=p.config)==null?void 0:g.cancelRoute)||{name:"secret-list"})},L=g=>{f("loading",g)},P=g=>{f("error",g)},Z=g=>{var E,x;h.fields.key=((E=g==null?void 0:g.item)==null?void 0:E.key)||(g==null?void 0:g.key)||"",h.fields.value=((x=g==null?void 0:g.item)==null?void 0:x.value)||(g==null?void 0:g.value)||"",Object.assign(s,h.fields)},o=e.computed(()=>p.secretId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),j=e.computed(()=>{var g;return`${p.config.apiBaseUrl}${oe.form[p.config.app][o.value]}`.replace(/{controlPlaneId}/gi,((g=p.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,p.vaultId).replace(/{secretId}/gi,p.secretId)}),D=e.computed(()=>!!h.fields.key&&!!h.fields.value),F=e.computed(()=>JSON.stringify(h.fields)!==JSON.stringify(s)),U=e.computed(()=>({key:h.fields.key,value:h.fields.value})),O=async()=>{try{h.readonly=!0;let g;const E={...U.value,is_sensitive:!0};o.value==="create"?g=await N.post(j.value,E):o.value==="edit"&&(g=await N.put(j.value,E)),Z(g==null?void 0:g.data),f("update",g==null?void 0:g.data)}catch(g){h.errorMessage=S(g),f("error",g)}finally{h.readonly=!1}};return(g,E)=>{const x=e.resolveComponent("KInput"),q=e.resolveComponent("KTextArea"),W=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":D.value&&F.value,config:a.config,"edit-id":a.secretId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Other,"error-message":h.errorMessage,"fetch-url":$.value,"form-fields":U.value,"is-readonly":h.readonly,onCancel:d,"onFetch:error":P,"onFetch:success":Z,onLoading:L,onSubmit:O},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:h.fields.key,"onUpdate:modelValue":E[0]||(E[0]=K=>h.fields.key=K),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:o.value===e.unref(m.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("secrets.form.fields.key.placeholder"),readonly:h.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(q,{modelValue:h.fields.value,"onUpdate:modelValue":E[1]||(E[1]=K=>h.fields.value=K),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:h.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(W,{appearance:"warning",message:e.unref(u)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-f0f8ce51"]]);w.SecretForm=Oe,w.SecretList=De,w.VaultAuthMethods=k,w.VaultConfigCard=Ke,w.VaultForm=He,w.VaultList=he,w.VaultProviders=t,w.secretsEndpoints=oe,w.vaultsEndpoints=ee,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
1
+ (function(w,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("vue-router"),require("@kong/icons"),require("@kong-ui-public/entities-shared"),require("@kong-ui-public/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","vue-router","@kong/icons","@kong-ui-public/entities-shared","@kong-ui-public/i18n"],e):(w=typeof globalThis<"u"?globalThis:w||self,e(w["kong-ui-public-entities-vaults"]={},w.Vue,w.VueRouter,w.KongIcons,w["kong-ui-public-entities-shared"],w["kong-ui-public-i18n"]))})(this,function(w,e,le,G,m,ie){"use strict";const fe={actions:{create:"New Vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View Details"},delete:{title:"Delete a Vault",title_for_secret:"Delete a Secret",description:"This action cannot be reversed."},errors:{general:"Vaults could not be retrieved",delete:"The vault could not be deleted at this time.",copy:"Failed to copy to clipboard"},search:{placeholder:{konnect:"Filter by exact name or ID"}},vaults:{title:"Vaults",list:{toolbar_actions:{new_vault:"New Vault"},table_headers:{prefix:"Prefix",name:"Vault Type",description:"Description",tags:"Tags",id:"ID"},empty_state:{title:"Configure a New Vault",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}}},secrets:{title:"Secrets",list:{toolbar_actions:{new_secret:"Store New Secret"},table_headers:{key:"Secret Key",updated_at:"Updated At"},empty_state:{title:"No Secrets Stored",description:"Improve the security of your Kong Gateway deployment with centralized secrets."}},form:{info:{title:"Secret",description:"Enter the secret key and secret value to be stored in Konnect vault"},fields:{key:{label:"Key",placeholder:"Enter key"},value:{label:"Value",placeholder:"Enter value here, can be simple values or multi-line"}},hint:"Once saved, the secret value will not be visible"}},copy:{success:"Copied {val} to clipboard",success_brief:"Successfully copied to clipboard"},labels:{vault_type:"Vault Type"},form:{sections:{general:{title:"General Information",description:"General information helps identify and manage this Vault instance."},config:{title:"Vault Configuration",description:"Select a type of Vault and configure properties specific to each type of Vault."}},fields:{prefix:{label:"Prefix",placeholder:"Enter a unique prefix for this vault",help:"e.g. my-vault",tooltip:"The prefix is used to load the right Vault configuration and implementation when referencing secrets with the other entities."},description:{label:"Description",placeholder:"Enter some description for this vault"},tags:{label:"Tags",placeholder:"Enter a list of tags separated by comma",help:"e.g. tag1, tag2, tag3"}},config:{konnect:{label:"Konnect",description:"Access secrets stored directly in Konnect's unified platform to easily reference in Kong Gateway configuration."},env:{label:"Environment Variables",description:"Access secrets stored via variables to be made available in Kong Gateway at runtime.",fields:{prefix:{label:"Environment Variable Prefix",placeholder:"Enter your environment variable vault prefix",tooltip:"Data plane will access all the environment variables starting with this prefix."}}},aws:{label:"AWS Secrets Manager",description:"Access secrets stored in AWS Secrets Manager for Kong Gateway configuration.",fields:{region:{label:"Region",placeholder:"Select an AWS region",tooltip:"The AWS region your vault is located in",locations:{"us-east-1":{location:"N. Virginia"},"us-east-2":{location:"Ohio"},"us-west-1":{location:"N. California"},"us-west-2":{location:"Oregon"},"af-south-1":{location:"Cape Town"},"ap-east-1":{location:"Hong Kong"},"ap-southeast-3":{location:"Jakarta"},"ap-south-1":{location:"Mumbai"},"ap-northeast-1":{location:"Tokyo"},"ap-northeast-2":{location:"Seoul"},"ap-northeast-3":{location:"Osaka"},"ap-southeast-1":{location:"Singapore"},"ap-southeast-2":{location:"Sydney"},"ca-central-1":{location:"Canada"},"eu-central-1":{location:"Frankfurt"},"eu-west-1":{location:"Ireland"},"eu-west-2":{location:"London"},"eu-west-3":{location:"Paris"},"eu-south-1":{location:"Milan"},"eu-north-1":{location:"Stockholm"},"me-south-1":{location:"Bahrain"},"sa-east-1":{location:"São Paulo"},"us-gov-east-1":{location:"US East"},"us-gov-west-1":{location:"US West"}}},endpoint_url:{label:"Endpoint URL",tooltip:'The AWS SecretsManager service endpoint url. If not specified, the value used by vault will be the official AWS SecretsManager service url which is `https://secretsmanager.<region>.amazonaws.com`. You can specify a complete URL(including the "http/https" scheme) to override the endpoint that vault will connect to.'},assume_role_arn:{label:"Assume Role ARN",tooltip:"The target AWS IAM role ARN that will be assumed. Typically this is used for operating between multiple roles or cross-accounts. If you are not using assume role you should not specify this value."},role_session_name:{label:"Role Session Name",tooltip:"The role session name used for role assuming."},sts_endpoint_url:{label:"STS Endpoint URL",tooltip:"The custom STS endpoint URL used for role assuming in AWS Vault. Note that this value will override the default STS endpoint URL(which should be `https: //sts.amazonaws.com`, or `https: //sts.<region>.amazonaws.com` if you have `AWS_STS_REGIONAL_ENDPOINTS` set to `regional`). If you are not using private VPC endpoint for STS service, you should not specify this value."}}},gcp:{label:"Google Secret Manager",description:"Access secrets stored in Google Secret Manager for Kong Gateway configuration.",fields:{project_id:{label:"Project ID",placeholder:"Enter your Google Cloud Project ID",tooltip:{text:"Visit your Google API Console and select {italic-text} in the projects list to see your project ID",italicText:"Manage all projects"}}}},hcv:{label:"HashiCorp Vault",description:"Access secrets stored in HashiCorp Vault for Kong Gateway configuration.",fields:{protocol:{label:"Protocol"},host:{label:"Host"},port:{label:"Port"},mount:{label:"Mount"},kv:{label:"Kv"},namespace:{label:"Namespace"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},advancedFields:{title:"View Advanced Fields",ttl:"Time-to-Live",ttlTooltip:"Time-to-live (in seconds) of a secret from a vault when cached by this reference",negTtl:"Negative Time-to-Live",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret)",resurrectTtl:"Time-to-Live Resurrection",resurrectTtlTooltip:"Time (in seconds) for which stale secrets from the vault are resurrected for when they cannot be refreshed"}},unavailable:"This vault provider is available on Enterprise."}};function ue(){const a=ie.createI18n("en-us",fe);return{i18n:a,i18nT:ie.i18nTComponent(a)}}const X={useI18n:ue},ae="/v2/control-planes/{controlPlaneId}/core-entities",re="/{workspace}",ee={list:{konnect:`${ae}/vaults`,kongManager:`${re}/vaults`},form:{konnect:{create:`${ae}/vaults`,edit:`${ae}/vaults/{id}`},kongManager:{create:`${re}/vaults`,edit:`${re}/vaults/{id}`}}},pe={class:"kong-ui-entities-vaults-list"},me={class:"table-content-overflow-wrapper"},ge={class:"table-content-overflow-wrapper"},ye={key:1},be=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||!a.createRoute||!a.getViewRoute||!a.getEditRoute||a.app==="kongManager"&&!a.isExactMatch&&!a.filterSchema)},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0},canRetrieve:{type:Function,required:!1,default:async()=>!0},useActionOutside:{type:Boolean,default:!1}},emits:["error","copy:success","copy:error","delete:success"],setup(a,{emit:v}){var C;const p=v,f=a,{i18n:{t:u}}=X.useI18n(),l=le.useRouter(),{axiosInstance:N}=m.useAxios((C=f.config)==null?void 0:C.axiosRequestConfig),S=e.computed(()=>f.config.app!=="kongManager"||!!f.config.disableSorting),h={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},s=h,$=e.computed(()=>{var _,V;let y=`${f.config.apiBaseUrl}${ee.list[f.config.app]}`;return f.config.app==="konnect"?y=y.replace(/{controlPlaneId}/gi,((_=f.config)==null?void 0:_.controlPlaneId)||""):f.config.app==="kongManager"&&(y=y.replace(/\/{workspace}/gi,(V=f.config)!=null&&V.workspace?`/${f.config.workspace}`:"")),y}),d=e.ref(""),L=e.computed(()=>{if(f.config.app==="konnect"||f.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder.konnect")};const{prefix:_,name:V}=h;return{isExactMatch:!1,fields:{name:V,prefix:_},schema:f.config.filterSchema}}),P=e.ref(1),{fetcher:Z,fetcherState:o}=m.useFetcher(f.config,$.value),j=()=>{d.value=""},D=()=>{P.value++},F=e.ref(null),U=(y,_)=>{const V=y.id;if(!_(V)){p("copy:error",{entity:y,field:"id",message:u("errors.copy")});return}p("copy:success",{entity:y,field:"id",message:u("copy.success",{val:V})})},O=(y,_)=>{const V=JSON.stringify(y);if(!_(V)){p("copy:error",{entity:y,message:u("errors.copy")});return}p("copy:success",{entity:y,message:u("copy.success_brief")})},I=async y=>{var V;await((V=f.canRetrieve)==null?void 0:V.call(f,y))&&l.push(f.config.getViewRoute(y.id))},g=y=>({label:u("actions.view"),to:f.config.getViewRoute(y)}),E=y=>({label:u("actions.edit"),to:f.config.getEditRoute(y)}),x=e.ref(void 0),q=e.ref(!1),W=e.ref(!1),K=e.ref(""),J=m.useDeleteUrlBuilder(f.config,$.value),Y=y=>{x.value=y,q.value=!0},b=()=>{q.value=!1},M=async()=>{var y,_,V;if((y=x.value)!=null&&y.id){W.value=!0;try{await N.delete(J(x.value.id)),W.value=!1,q.value=!1,P.value++,p("delete:success",x.value)}catch(i){K.value=((V=(_=i.response)==null?void 0:_.data)==null?void 0:V.message)||i.message||u("errors.delete"),p("error",i)}finally{W.value=!1}}},H=e.ref(!1);e.watch(o,y=>{var _,V,i,r;if(Array.isArray((_=y==null?void 0:y.response)==null?void 0:_.data)&&(H.value=y.response.data.length>0),y.status===m.FetcherStatus.Error){F.value={title:u("errors.general")},(r=(i=(V=y.error)==null?void 0:V.response)==null?void 0:i.data)!=null&&r.message&&(F.value.message=y.error.response.data.message),p("error",y.error);return}F.value=null});const R=e.ref({ctaPath:f.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${f.config.additionMessageForEmptyState?` ${f.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")});return e.onBeforeMount(async()=>{await f.canCreate()&&(R.value.title=u("vaults.list.empty_state.title"),R.value.ctaText=u("actions.create"))}),(y,_)=>{const V=e.resolveComponent("KButton"),i=e.resolveComponent("KBadge"),r=e.resolveComponent("KTruncate"),A=e.resolveComponent("KDropdownItem"),T=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",pe,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":S.value,"empty-state-options":R.value,"enable-entity-actions":"","error-message":F.value,fetcher:e.unref(Z),"fetcher-cache-key":P.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:d.value,"table-headers":e.unref(s),"use-action-outside":a.useActionOutside,onClearSearchInput:j,"onClick:row":_[2]||(_[2]=c=>I(c)),onSort:D},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":_[0]||(_[0]=c=>d.value=c),config:L.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!a.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(V,{appearance:"primary","data-testid":"toolbar-add-vault",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["to"]),[[e.vShow,H.value]])]),_:1},8,["auth-function"])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:c})=>[e.createElementVNode("div",me,[e.createElementVNode("b",null,e.toDisplayString(c??"-"),1)])]),name:e.withCtx(({rowValue:c})=>[e.createElementVNode("b",null,e.toDisplayString(c??"-"),1)]),description:e.withCtx(({rowValue:c})=>[e.createElementVNode("div",ge,e.toDisplayString(c??"-"),1)]),tags:e.withCtx(({rowValue:c})=>[(c==null?void 0:c.length)>0?(e.openBlock(),e.createBlock(r,{key:0},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,B=>(e.openBlock(),e.createBlock(i,{key:B,onClick:_[1]||(_[1]=e.withModifiers(()=>{},["stop"]))},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(B),1)]),_:2},1024))),128))]),_:2},1024)):(e.openBlock(),e.createElementBlock("span",ye,"-"))]),actions:e.withCtx(({row:c})=>[e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:B})=>[e.createVNode(A,{"data-testid":"action-entity-copy-id",onClick:z=>U(c,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:B})=>[e.createVNode(A,{"data-testid":"action-entity-copy-json",onClick:z=>O(c,B)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:2},1032,["onClick"])]),_:2},1024),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canRetrieve(c)},{default:e.withCtx(()=>[e.createVNode(A,{"data-testid":"action-entity-view","has-divider":"",item:g(c.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(c)},{default:e.withCtx(()=>[e.createVNode(A,{"data-testid":"action-entity-edit",item:E(c.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(c)},{default:e.withCtx(()=>[e.createVNode(A,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:B=>Y(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","use-action-outside"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":W.value,description:e.unref(u)("delete.description"),"entity-name":x.value&&(x.value.prefix||x.value.id),"entity-type":e.unref(m.EntityTypes).Vault,error:K.value,title:e.unref(u)("delete.title"),visible:q.value,onCancel:b,onProceed:M},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),te=(a,v)=>{const p=a.__vccOpts||a;for(const[f,u]of v)p[f]=u;return p},he=te(be,[["__scopeId","data-v-6516e0a1"]]);var t=(a=>(a.AWS="aws",a.GCP="gcp",a.HCV="hcv",a.ENV="env",a.AZURE="azure",a.KONNECT="konnect",a))(t||{}),k=(a=>(a.TOKEN="token",a.K8S="kubernetes",a.APP_ROLE="approle",a))(k||{});const _e={class:"kong-ui-entities-vault-form"},Ve={class:"vault-form-provider-cards-container"},Ce=["data-testid"],ke={class:"provider-item-title-container"},we={class:"provider-item-title"},Ee={class:"provider-item-description"},xe={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Ne={key:0,class:"vault-form-config-auth-method-container"},Ae={key:1,class:"vault-form-config-auth-method-container"},Te={key:2,class:"vault-form-config-auth-method-container"},Re={key:5},Se={class:"wrapper"},Ie={class:"item-50"},Ue={class:"item-50"},Be={class:"wrapper"},Me={class:"item-100"},He=te(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||(a==null?void 0:a.app)==="konnect"&&!(a!=null&&a.controlPlaneId)||(a==null?void 0:a.app)==="kongManager"&&typeof(a==null?void 0:a.workspace)!="string"||!(a!=null&&a.cancelRoute))},vaultId:{type:String,required:!1,default:""},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","loading"],setup(a,{emit:v}){var V;const p=a,f=v,{i18nT:u,i18n:{t:l}}=X.useI18n(),N=le.useRouter(),{axiosInstance:S}=m.useAxios((V=p.config)==null?void 0:V.axiosRequestConfig),{getMessageFromError:h}=m.useErrors(),s=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),$=e.reactive({prefix:"",description:"",tags:""}),d=e.ref(p.config.konnectConfigStoreAvailable?t.KONNECT:t.ENV),L=e.ref(null),P=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE].includes(d.value)),Z=e.computed(()=>[...p.config.konnectConfigStoreAvailable?[{label:l("form.config.konnect.label"),value:t.KONNECT}]:[],{label:l("form.config.env.label"),value:t.ENV},{label:l("form.config.aws.label"),value:t.AWS,disabled:!x.value},{label:l("form.config.gcp.label"),value:t.GCP,disabled:!x.value},{label:l("form.config.hcv.label"),value:t.HCV,disabled:!x.value},...p.config.azureVaultProviderAvailable?[{label:l("form.config.azure.label"),value:t.AZURE,disabled:!x.value}]:[]]),o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:k.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""}}),j=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:""},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault"},[t.GCP]:{project_id:""},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:k.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:""}}),D=[{label:`${l("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${l("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${l("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${l("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${l("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${l("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${l("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${l("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${l("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${l("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${l("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${l("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${l("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${l("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${l("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${l("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${l("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${l("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],F=[{label:"secrets",value:"secrets"}],U=[{label:"http",value:"http"},{label:"https",value:"https"}],O=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],I=e.computed(()=>p.vaultId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),g=e.computed(()=>{var i,r;return(r=ee.form[(i=p.config)==null?void 0:i.app])==null?void 0:r.edit}),E=e.computed(()=>I.value===m.EntityBaseFormType.Edit&&p.config.app==="kongManager"),x=e.computed(()=>p.config.app==="konnect"||m.useGatewayFeatureSupported({gatewayInfo:p.config.gatewayInfo,supportedRange:{enterprise:[]}})),q=()=>{var i;N.push(((i=p.config)==null?void 0:i.cancelRoute)||{name:"vault-list"})},W=i=>{f("loading",i)},K=i=>{f("error",i)},J=i=>{switch(i){case t.KONNECT:return G.KongIcon;case t.ENV:return G.CodeIcon;case t.AWS:return G.AwsIcon;case t.GCP:return G.GoogleCloudIcon;case t.HCV:return G.HashicorpIcon;case t.AZURE:return G.AzureIcon}},Y=i=>{switch(i){case t.KONNECT:return l("form.config.konnect.description");case t.ENV:return l("form.config.env.description");case t.AWS:return l("form.config.aws.description");case t.GCP:return l("form.config.gcp.description");case t.HCV:return l("form.config.hcv.description");case t.AZURE:return l("form.config.azure.description")}},b=i=>{var T,c,B,z,Q;s.fields.prefix=((T=i==null?void 0:i.item)==null?void 0:T.prefix)||(i==null?void 0:i.prefix)||"",s.fields.description=((c=i==null?void 0:i.item)==null?void 0:c.description)||(i==null?void 0:i.description)||"";const r=((B=i==null?void 0:i.item)==null?void 0:B.tags)||(i==null?void 0:i.tags)||[];s.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign($,s.fields);const A=((z=i==null?void 0:i.item)==null?void 0:z.config)||(i==null?void 0:i.config)||null;A&&(Object.keys(A).length||(i==null?void 0:i.name)===t.KONNECT)?(d.value=((Q=i==null?void 0:i.item)==null?void 0:Q.name)||(i==null?void 0:i.name)||"",L.value=d.value,Object.assign(o[d.value],A),Object.assign(j[d.value],A)):s.errorMessage="Error loading vault config"},M=e.computed(()=>d.value===t.HCV?!Object.keys(o[t.HCV]).filter(i=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(i)||o[t.HCV].auth_method!==k.K8S&&(i==="kube_role"||i==="kube_api_token_file")||o[t.HCV].auth_method!==k.TOKEN&&i==="token"||o[t.HCV].auth_method!==k.APP_ROLE&&(i==="approle_role_id"||i==="approle_response_wrapping")||o[t.HCV].auth_method===k.APP_ROLE&&i==="approle_response_wrapping"&&typeof o[d.value][i]=="boolean"?!1:!o[d.value][i]).length:d.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(i=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:!o[d.value][i]).length:d.value===t.AWS?!Object.keys(o[t.AWS]).filter(i=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(i)?!1:!o[d.value][i]).length:!Object.keys(o[d.value]).filter(i=>["ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:!o[d.value][i]).length),H=e.computed(()=>!!s.fields.prefix&&M.value),R=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify($)||d.value!==L.value||JSON.stringify(o[d.value])!==JSON.stringify(j[d.value])),C=e.computed(()=>{var r,A;let i=`${p.config.apiBaseUrl}${ee.form[p.config.app][I.value]}`;return p.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=p.config)==null?void 0:r.controlPlaneId)||""):p.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(A=p.config)!=null&&A.workspace?`/${p.config.workspace}`:"")),i=i.replace(/{id}/gi,p.vaultId),i}),y=e.computed(()=>{var z,Q;const i={protocol:o[t.HCV].protocol,host:o[t.HCV].host,port:parseInt(o[t.HCV].port.toString()),mount:o[t.HCV].mount,kv:o[t.HCV].kv,namespace:o[t.HCV].namespace||null,auth_method:o[t.HCV].auth_method,...o[t.HCV].auth_method===k.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===k.K8S&&{kube_role:o[t.HCV].kube_role,kube_auth_path:o[t.HCV].kube_auth_path||void 0,kube_api_token_file:o[t.HCV].kube_api_token_file,token:null},...o[t.HCV].auth_method===k.APP_ROLE&&{approle_auth_path:o[t.HCV].approle_auth_path||void 0,approle_role_id:o[t.HCV].approle_role_id,approle_secret_id:o[t.HCV].approle_secret_id||void 0,approle_secret_id_file:o[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:o[t.HCV].approle_response_wrapping??!1}},r={...o[d.value],client_id:o[d.value].client_id||null,tenant_id:o[d.value].tenant_id||null},A={...o[d.value],endpoint_url:o[d.value].endpoint_url||null,assume_role_arn:o[d.value].assume_role_arn||null,...p.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[d.value].sts_endpoint_url||null}:{}};let T=o[d.value];d.value===t.HCV?T=i:d.value===t.AZURE?T=r:d.value===t.AWS&&(T=A);let c={};if(![t.KONNECT,t.ENV].includes(d.value)){const n=o[d.value],se=n.ttl,ce=n.neg_ttl,de=n.resurrect_ttl;c={ttl:se?parseInt(se.toString(),10):null,neg_ttl:ce?parseInt(ce.toString(),10):null,resurrect_ttl:de?parseInt(de.toString(),10):null}}return{prefix:s.fields.prefix,description:s.fields.description||null,tags:(Q=(z=s.fields.tags.split(","))==null?void 0:z.map(n=>String(n||"").trim()))==null?void 0:Q.filter(n=>n!==""),name:d.value,config:{...T,...c}}}),_=async()=>{var i;try{s.isReadonly=!0;let r;I.value==="create"?r=await S.post(C.value,y.value):I.value==="edit"&&(r=((i=p.config)==null?void 0:i.app)==="konnect"?await S.put(C.value,y.value):await S.patch(C.value,y.value)),b(r==null?void 0:r.data),f("update",r==null?void 0:r.data)}catch(r){s.errorMessage=h(r),f("error",r)}finally{s.isReadonly=!1}};return(i,r)=>{const A=e.resolveComponent("KTooltip"),T=e.resolveComponent("KSelect"),c=e.resolveComponent("KInput"),B=e.resolveComponent("KCheckbox"),z=e.resolveComponent("KCollapse"),Q=e.resolveComponent("KTextArea");return e.openBlock(),e.createElementBlock("div",_e,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":H.value&&R.value,config:a.config,"edit-id":a.vaultId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Vault,"error-message":s.errorMessage,"fetch-url":g.value,"form-fields":y.value,"is-readonly":s.isReadonly,onCancel:q,"onFetch:error":K,"onFetch:success":b,onLoading:W,onSubmit:_},{default:e.withCtx(()=>[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(l)("form.sections.config.description"),title:e.unref(l)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ve,[e.createVNode(T,{modelValue:d.value,"onUpdate:modelValue":r[0]||(r[0]=n=>d.value=n),"data-testid":"provider-select",disabled:E.value,"dropdown-max-height":"500",items:Z.value},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J(n.value)))),e.createTextVNode(" "+e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(A,{placement:"top",text:n.disabled?e.unref(l)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${n.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(J(n.value)))),e.createElementVNode("div",ke,[e.createElementVNode("span",we,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Ee,e.toDisplayString(Y(n.value)),1)])],8,Ce)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[d.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(c,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix","is-readonly":s.isReadonly,label:e.unref(l)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(l)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("form.config.env.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(T,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":r[2]||(r[2]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:D,label:e.unref(l)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(l)("form.config.aws.fields.region.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[3]||(r[3]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[4]||(r[4]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),e.createVNode(c,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[5]||(r[5]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},required:"",type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"]),a.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(c,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[6]||(r[6]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url","is-readonly":s.isReadonly,label:e.unref(l)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(l)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},type:"text"},null,8,["modelValue","is-readonly","label","label-attributes"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(c,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[7]||(r[7]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(l)("form.config.gcp.fields.project_id.placeholder"),required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(l)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","is-readonly","label","placeholder"])])):e.createCommentVNode("",!0),d.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(T,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[8]||(r[8]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:U,label:e.unref(l)("form.config.hcv.fields.protocol.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":r[9]||(r[9]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.host.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":r[10]||(r[10]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.port.label"),min:"0",required:"",type:"number"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":r[11]||(r[11]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.mount.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":r[12]||(r[12]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:O,label:e.unref(l)("form.config.hcv.fields.kv.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[13]||(r[13]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.namespace.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[14]||(r[14]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(k).TOKEN,value:e.unref(k).TOKEN},{label:e.unref(k).K8S,value:e.unref(k).K8S},...a.config.hcvAppRoleMethodAvailable?[{label:e.unref(k).APP_ROLE,value:e.unref(k).APP_ROLE}]:[]],label:e.unref(l)("form.config.hcv.fields.auth_method.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(k).TOKEN?(e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":r[15]||(r[15]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.token.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):o[e.unref(t).HCV].auth_method===e.unref(k).K8S?(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[16]||(r[16]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_role.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[17]||(r[17]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[18]||(r[18]=n=>o[e.unref(t).HCV].kube_api_token_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.kube_api_token_file.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"])])):o[e.unref(t).HCV].auth_method===e.unref(k).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[19]||(r[19]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_auth_path.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[20]||(r[20]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_role_id.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[21]||(r[21]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_secret_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[22]||(r[22]=n=>o[e.unref(t).HCV].approle_secret_id_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file","is-readonly":s.isReadonly,label:e.unref(l)("form.config.hcv.fields.approle_secret_id_file.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(B,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[23]||(r[23]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(l)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),d.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(c,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":r[24]||(r[24]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.location.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[25]||(r[25]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.vault_uri.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[26]||(r[26]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.credential_prefix.label"),required:"",type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(T,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":r[27]||(r[27]=n=>o[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:F,label:e.unref(l)("form.config.azure.fields.type.label"),placeholder:e.unref(l)("form.config.azure.fields.type.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[28]||(r[28]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.client_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"]),e.createVNode(c,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[29]||(r[29]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id","is-readonly":s.isReadonly,label:e.unref(l)("form.config.azure.fields.tenant_id.label"),type:"text"},null,8,["modelValue","is-readonly","label"])])):e.createCommentVNode("",!0),a.config.ttl?(e.openBlock(),e.createElementBlock("div",Re,[P.value?(e.openBlock(),e.createBlock(z,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(l)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createElementVNode("div",Ie,[e.createVNode(c,{modelValue:o[d.value].ttl,"onUpdate:modelValue":r[30]||(r[30]=n=>o[d.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(l)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ue,[e.createVNode(c,{modelValue:o[d.value].neg_ttl,"onUpdate:modelValue":r[31]||(r[31]=n=>o[d.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(l)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Be,[e.createElementVNode("div",Me,[e.createVNode(c,{modelValue:o[d.value].resurrect_ttl,"onUpdate:modelValue":r[32]||(r[32]=n=>o[d.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(l)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(l)("form.config.advancedFields.resurrectTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(l)("form.sections.general.description"),title:e.unref(l)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(c,{modelValue:s.fields.prefix,"onUpdate:modelValue":r[33]||(r[33]=n=>s.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(l)("form.fields.prefix.help"),"is-readonly":s.isReadonly,label:e.unref(l)("form.fields.prefix.label"),"label-attributes":{info:e.unref(l)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(l)("form.fields.prefix.placeholder"),required:"",type:"text"},null,8,["modelValue","help","is-readonly","label","label-attributes","placeholder"]),e.createVNode(Q,{modelValue:s.fields.description,"onUpdate:modelValue":r[34]||(r[34]=n=>s.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(l)("form.fields.description.label"),placeholder:e.unref(l)("form.fields.description.placeholder"),readonly:s.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(c,{modelValue:s.fields.tags,"onUpdate:modelValue":r[35]||(r[35]=n=>s.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(l)("form.fields.tags.help"),"is-readonly":s.isReadonly,label:e.unref(l)("form.fields.tags.label"),placeholder:e.unref(l)("form.fields.tags.placeholder"),type:"text"},null,8,["modelValue","help","is-readonly","label","placeholder"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-4042bbf1"]]),ve={class:"kong-ui-vault-entity-config-card"},Ke=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:a=>!(!a||!["konnect","kongManager"].includes(a==null?void 0:a.app)||a.app==="konnect"&&!a.controlPlaneId||a.app==="kongManager"&&typeof a.workspace!="string"||!a.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1},enableTerraform:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(a){const v=a,p=e.computed(()=>{var l,N;return(N=ee.form[(l=v.config)==null?void 0:l.app])==null?void 0:N.edit}),{i18n:{t:f}}=X.useI18n(),u=e.ref({id:{},name:{label:f("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:m.ConfigurationSchemaSection.Basic},description:{order:6,section:m.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:m.ConfigurationSchemaType.Json}});return(l,N)=>(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(e.unref(m.EntityBaseConfigCard),{config:a.config,"config-card-doc":a.configCardDoc,"config-schema":u.value,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Vault,"fetch-url":p.value,"hide-title":a.hideTitle,"onFetch:error":N[0]||(N[0]=S=>l.$emit("fetch:error",S)),"onFetch:success":N[1]||(N[1]=S=>l.$emit("fetch:success",S)),onLoading:N[2]||(N[2]=S=>l.$emit("loading",S))},null,8,["config","config-card-doc","config-schema","enable-terraform","entity-type","fetch-url","hide-title"])]))}}),ne="/v2/control-planes/{controlPlaneId}/core-entities",oe={list:{konnect:`${ne}/vaults/{id}/secrets`},form:{konnect:{create:`${ne}/vaults/{id}/secrets`,edit:`${ne}/vaults/{id}/secrets/{secretId}`}}},$e={class:"kong-ui-entities-secrets-list"},Pe={class:"table-content-overflow-wrapper"},De=te(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:a=>!(!a||(a==null?void 0:a.app)!=="konnect"||!a.createRoute||!a.getEditRoute)},vaultId:{type:String,required:!0},cacheIdentifier:{type:String,default:""},canCreate:{type:Function,required:!1,default:async()=>!0},canDelete:{type:Function,required:!1,default:async()=>!0},canEdit:{type:Function,required:!1,default:async()=>!0}},emits:["error","delete:success"],setup(a,{emit:v}){var Y;const p=v,f=a,{i18n:{t:u,formatUnixTimeStamp:l}}=X.useI18n(),{axiosInstance:N}=m.useAxios((Y=f.config)==null?void 0:Y.axiosRequestConfig),h={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},s=b=>({"data-testid":b.key}),$=e.computed(()=>{var b;return`${f.config.apiBaseUrl}${oe.list[f.config.app]}`.replace(/{controlPlaneId}/gi,((b=f.config)==null?void 0:b.controlPlaneId)||"").replace(/{id}/gi,f.vaultId||"")}),d=e.ref(""),L={isExactMatch:!0,placeholder:u("search.placeholder.konnect")},P=e.ref(1),{fetcher:Z,fetcherState:o}=m.useFetcher(f.config,$.value),j=()=>{d.value=""},D=e.ref(null),F=b=>({label:u("actions.edit"),to:f.config.getEditRoute(b)}),U=e.ref(void 0),O=e.ref(!1),I=e.ref(!1),g=e.ref(""),E=m.useDeleteUrlBuilder(f.config,$.value),x=b=>{U.value=b,O.value=!0},q=()=>{O.value=!1},W=async()=>{var b,M,H;if((b=U.value)!=null&&b.key){I.value=!0;try{await N.delete(E(U.value.key)),I.value=!1,O.value=!1,P.value++,p("delete:success",U.value)}catch(R){g.value=((H=(M=R.response)==null?void 0:M.data)==null?void 0:H.message)||R.message||u("errors.delete"),p("error",R)}finally{I.value=!1}}},K=e.ref(!1);e.watch(o,b=>{var M,H,R,C;if(Array.isArray((M=b==null?void 0:b.response)==null?void 0:M.data)&&(K.value=b.response.data.length>0),b.status===m.FetcherStatus.Error){D.value={title:u("errors.general")},(C=(R=(H=b.error)==null?void 0:H.response)==null?void 0:R.data)!=null&&C.message&&(D.value.message=b.error.response.data.message),p("error",b.error);return}D.value=null});const J=e.ref({ctaPath:f.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${f.config.additionMessageForEmptyState?` ${f.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await f.canCreate()&&(J.value.title=u("secrets.list.empty_state.title"),J.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(b,M)=>{const H=e.resolveComponent("KButton"),R=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(e.unref(m.EntityBaseTable),{"cache-identifier":a.cacheIdentifier,"disable-pagination-page-jump":"","disable-sorting":"","empty-state-options":J.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(Z),"fetcher-cache-key":P.value,"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:d.value,"row-attributes":s,"table-headers":e.unref(h),onClearSearchInput:j},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(m.EntityFilter),{modelValue:d.value,"onUpdate:modelValue":M[0]||(M[0]=C=>d.value=C),config:L},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canCreate()},{default:e.withCtx(()=>[e.withDirectives(e.createVNode(H,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:a.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(G.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"]),[[e.vShow,K.value]])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:C})=>[e.createElementVNode("div",Pe,[e.createElementVNode("b",null,e.toDisplayString(C??"-"),1)])]),updated_at:e.withCtx(({rowValue:C})=>[e.createElementVNode("span",null,e.toDisplayString(C?e.unref(l)(C):"-"),1)]),actions:e.withCtx(({row:C})=>[e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canEdit(C)},{default:e.withCtx(()=>[e.createVNode(R,{"data-testid":"action-entity-edit",item:F(C.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(m.PermissionsWrapper),{"auth-function":()=>a.canDelete(C)},{default:e.withCtx(()=>[e.createVNode(R,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:y=>x(C)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:2},1032,["onClick"])]),_:2},1032,["auth-function"])]),_:1},8,["cache-identifier","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers"]),e.createVNode(e.unref(m.EntityDeleteModal),{"action-pending":I.value,description:e.unref(u)("delete.description"),"entity-name":U.value&&U.value.key,"entity-type":e.unref(m.EntityTypes).Secret,error:g.value,title:e.unref(u)("delete.title_for_secret"),visible:O.value,onCancel:q,onProceed:W},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),[["__scopeId","data-v-e59d34f3"]]),Fe={class:"kong-ui-entities-secret-form"},Oe=te(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:a=>!(!a||a.app!=="konnect"||!a.controlPlaneId||!a.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""},enableTerraform:{type:Boolean,default:!1}},emits:["update","error","loading"],setup(a,{emit:v}){var I;const p=a,f=v,{i18n:{t:u}}=X.useI18n(),l=le.useRouter(),{axiosInstance:N}=m.useAxios((I=p.config)==null?void 0:I.axiosRequestConfig),{getMessageFromError:S}=m.useErrors(),h=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),s=e.reactive({key:"",value:""}),$=e.computed(()=>{var g,E;return(E=oe.form[(g=p.config)==null?void 0:g.app])==null?void 0:E.edit.replace(/{id}/gi,p.vaultId).replace(/{secretId}/gi,p.secretId)}),d=()=>{var g;l.push(((g=p.config)==null?void 0:g.cancelRoute)||{name:"secret-list"})},L=g=>{f("loading",g)},P=g=>{f("error",g)},Z=g=>{var E,x;h.fields.key=((E=g==null?void 0:g.item)==null?void 0:E.key)||(g==null?void 0:g.key)||"",h.fields.value=((x=g==null?void 0:g.item)==null?void 0:x.value)||(g==null?void 0:g.value)||"",Object.assign(s,h.fields)},o=e.computed(()=>p.secretId?m.EntityBaseFormType.Edit:m.EntityBaseFormType.Create),j=e.computed(()=>{var g;return`${p.config.apiBaseUrl}${oe.form[p.config.app][o.value]}`.replace(/{controlPlaneId}/gi,((g=p.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,p.vaultId).replace(/{secretId}/gi,p.secretId)}),D=e.computed(()=>!!h.fields.key&&!!h.fields.value),F=e.computed(()=>JSON.stringify(h.fields)!==JSON.stringify(s)),U=e.computed(()=>({key:h.fields.key,value:h.fields.value})),O=async()=>{try{h.readonly=!0;let g;const E={...U.value,is_sensitive:!0};o.value==="create"?g=await N.post(j.value,E):o.value==="edit"&&(g=await N.put(j.value,E)),Z(g==null?void 0:g.data),f("update",g==null?void 0:g.data)}catch(g){h.errorMessage=S(g),f("error",g)}finally{h.readonly=!1}};return(g,E)=>{const x=e.resolveComponent("KInput"),q=e.resolveComponent("KTextArea"),W=e.resolveComponent("KAlert");return e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(e.unref(m.EntityBaseForm),{"can-submit":D.value&&F.value,config:a.config,"edit-id":a.secretId,"enable-terraform":a.enableTerraform,"entity-type":e.unref(m.SupportedEntityType).Other,"error-message":h.errorMessage,"fetch-url":$.value,"form-fields":U.value,"is-readonly":h.readonly,onCancel:d,"onFetch:error":P,"onFetch:success":Z,onLoading:L,onSubmit:O},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(m.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(x,{modelValue:h.fields.key,"onUpdate:modelValue":E[0]||(E[0]=K=>h.fields.key=K),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:o.value===e.unref(m.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("secrets.form.fields.key.placeholder"),readonly:h.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(q,{modelValue:h.fields.value,"onUpdate:modelValue":E[1]||(E[1]=K=>h.fields.value=K),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:h.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(W,{appearance:"warning",message:e.unref(u)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","enable-terraform","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-f0f8ce51"]]);w.SecretForm=Oe,w.SecretList=De,w.VaultAuthMethods=k,w.VaultConfigCard=Ke,w.VaultForm=He,w.VaultList=he,w.VaultProviders=t,w.secretsEndpoints=oe,w.vaultsEndpoints=ee,Object.defineProperty(w,Symbol.toStringTag,{value:"Module"})});
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-vaults-list[data-v-6516e0a1]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-6516e0a1]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-6516e0a1]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-4bb7bcb5]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-4bb7bcb5]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-4bb7bcb5]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-4bb7bcb5]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-4bb7bcb5],.kong-ui-entities-vault-form .vault-form-textarea[data-v-4bb7bcb5]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-4bb7bcb5]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-4bb7bcb5]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-4bb7bcb5]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-4bb7bcb5]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-4bb7bcb5]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-4bb7bcb5]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-4bb7bcb5] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-4bb7bcb5]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-4bb7bcb5]>*:not(:first-child){margin-top:24px}.kong-ui-entities-secrets-list[data-v-e59d34f3]{width:100%}.kong-ui-entities-secrets-list .kong-ui-entity-filter-input[data-v-e59d34f3]{margin-right:12px}.kong-ui-entities-secrets-list .table-content-overflow-wrapper[data-v-e59d34f3]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secret-form[data-v-f0f8ce51]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-secret-form[data-v-f0f8ce51] .form-section-wrapper{column-gap:64px}}
1
+ .config-card-fieldset[data-v-68ca83ec]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-68ca83ec]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-c96811e5] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-711ebcf2]{align-items:center;border-bottom:var(--2f5b0492);display:var(--5d59c22c);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-711ebcf2]{width:var(--aa41a894)}.config-card-details-row .config-card-details-label label[data-v-711ebcf2]{color:#3a3f51}.config-card-details-row .config-card-details-value[data-v-711ebcf2]{width:var(--aa3d1cde)}.config-card-details-row .config-card-details-value .truncated[data-v-711ebcf2]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-711ebcf2]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-711ebcf2] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-711ebcf2]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-711ebcf2]{margin-right:4px}.config-card-details-row[data-v-711ebcf2] .k-label{margin-bottom:0}.config-card-details-row[data-v-711ebcf2] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-711ebcf2] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--454fa8c4);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-d15be7fe]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-85381f68]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-85381f68]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-85381f68]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-85381f68] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-85381f68]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-94d27e50]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form .form-actions[data-v-94d27e50]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:last-of-type,.kong-ui-entity-base-form .form-actions[data-v-94d27e50] .k-button:nth-last-of-type(2){margin-left:16px}.kong-ui-entity-base-form[data-v-94d27e50] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-94d27e50] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.content-wrapper[data-v-b252463e] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-71b4425a]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-71b4425a]{margin-left:auto}.kong-ui-entity-base-table .actions-container[data-v-71b4425a]{float:right}.kong-ui-entity-base-table .actions-container[data-v-71b4425a] .k-dropdown-item-trigger{margin-bottom:0;margin-top:0}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-94990087]{width:100%}.kong-ui-entity-filter-clear[data-v-94990087]{cursor:pointer}.kong-ui-entity-filter[data-v-94990087]{display:flex;position:relative}.kong-ui-entity-filter[data-v-94990087] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-94990087] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-94990087]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-94990087]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-94990087]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-94990087]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-94990087]{color:#232633}.menu-item-expand-icon[data-v-94990087]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-94990087]{transform:rotate(180deg)}.menu-item-indicator[data-v-94990087]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-94990087]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-94990087] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-94990087] .k-input{width:100%}.menu-item-body[data-v-94990087] .k-select-input .input{font-size:12px}.menu-item-body[data-v-94990087] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-94990087]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-94990087]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-94990087]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.kong-ui-public-entity-link[data-v-60e3ef7c]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-60e3ef7c]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c]{display:flex}.kong-ui-public-entity-link .entity-link[data-v-60e3ef7c] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-60e3ef7c]{display:inline-block;font-weight:400;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-60e3ef7c]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-60e3ef7c]{margin-left:2px}.kong-ui-entities-vaults-list[data-v-6516e0a1]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-6516e0a1]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-6516e0a1]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-4042bbf1]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-4042bbf1]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-4042bbf1]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-4042bbf1]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-4042bbf1],.kong-ui-entities-vault-form .vault-form-textarea[data-v-4042bbf1]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-4042bbf1]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-4042bbf1]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-4042bbf1]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-4042bbf1]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-4042bbf1]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-4042bbf1]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-4042bbf1] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-4042bbf1]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-4042bbf1]>*:not(:first-child){margin-top:24px}.kong-ui-entities-secrets-list[data-v-e59d34f3]{width:100%}.kong-ui-entities-secrets-list .kong-ui-entity-filter-input[data-v-e59d34f3]{margin-right:12px}.kong-ui-entities-secrets-list .table-content-overflow-wrapper[data-v-e59d34f3]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secret-form[data-v-f0f8ce51]{width:100%}@media screen and (min-width: 1280px){.kong-ui-entities-secret-form[data-v-f0f8ce51] .form-section-wrapper{column-gap:64px}}
@@ -1 +1 @@
1
- {"version":3,"file":"VaultForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultForm.vue.ts"],"names":[],"mappings":"AAYA,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAQV,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EAEvB,MAAM,UAAU,CAAA;AAMjB,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;;IAi6CpD,oHAAoH;;;;4BAI9F,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F;;;OAGG;;;;;;;;;;IArBH,oHAAoH;;;;4BAI9F,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F;;;OAGG;;;;;;;;;;;;;AA3BL,wBAkCG"}
1
+ {"version":3,"file":"VaultForm.vue.d.ts","sourceRoot":"","sources":["../../../src/components/VaultForm.vue.ts"],"names":[],"mappings":"AAYA,OAAO,gDAAgD,CAAA;AACvD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,KAAK,CAAA;AAEnC,OAAO,KAAK,EAQV,gBAAgB,EAChB,0BAA0B,EAC1B,sBAAsB,EAEvB,MAAM,UAAU,CAAA;AAMjB,OAAO,KAAK,EAAE,UAAU,EAAiB,MAAM,OAAO,CAAA;;IA88CpD,oHAAoH;;;;4BAI9F,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F;;;OAGG;;;;;;;;;;IArBH,oHAAoH;;;;4BAI9F,sBAAsB,GAAG,0BAA0B,KAAG,OAAO;;IAQnF,0FAA0F;;;;;;IAM1F;;;OAGG;;;;;;;;;;;;;AA3BL,wBAkCG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kong-ui-public/entities-vaults",
3
- "version": "3.11.0",
3
+ "version": "3.11.1",
4
4
  "type": "module",
5
5
  "main": "./dist/entities-vaults.umd.js",
6
6
  "module": "./dist/entities-vaults.es.js",