@kong-ui-public/entities-vaults 4.6.8-pr.3268.f2cf855ec.0 → 4.6.8
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.
|
@@ -314,10 +314,10 @@ const kt = {
|
|
|
314
314
|
label: "GCP login path"
|
|
315
315
|
},
|
|
316
316
|
gcp_service_account: {
|
|
317
|
-
label: "GCP
|
|
317
|
+
label: "GCP Service account"
|
|
318
318
|
},
|
|
319
319
|
gcp_jwt_exp: {
|
|
320
|
-
label: "GCP JWT
|
|
320
|
+
label: "GCP JWT Exp"
|
|
321
321
|
},
|
|
322
322
|
aws_sts_endpoint_url: {
|
|
323
323
|
label: "AWS STS endpoint URL"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,e(B["kong-ui-public-entities-vaults"]={},B.Vue,B.VueRouter,B.KongIcons,B["kong-ui-public-entities-shared"],B["kong-ui-public-i18n"]))})(this,function(B,e,ce,L,_,pe){"use strict";const ye={actions:{create:"New vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View details",loading:"Loading..."},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_for_vaults:{konnect:"Filter by exact prefix or ID"},placeholder_for_secrets:{konnect:"Filter by exact key"}},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."},empty_state_v2:{title:"Configure your first vault",group:"Vaults created in gateways within this group will automatically appear here.",description:"Vaults securely and centrally store sensitive information, such as credentials, tokens, and keys, to simplify secrets management.",create_cta:"New vault",learn_more:"Learn more"}}},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 reference prefix. You need this prefix to access secrets stored in this vault. For example, {vault://<your-prefix>/<some-secret>}."},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"},ssl_verify:{label:"SSL verify"},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"},aws_auth_role:{label:"AWS auth role"},aws_auth_region:{label:"AWS auth region"},aws_access_key_id:{label:"AWS access key ID"},aws_secret_access_key:{label:"AWS secret access key"},aws_auth_nonce:{label:"AWS auth nonce"},aws_login_path:{label:"AWS login path"},azure_auth_role:{label:"Azure auth role"},azure_login_path:{label:"Azure login path"},gcp_auth_role:{label:"GCP auth role"},gcp_login_path:{label:"GCP login path"},gcp_service_account:{label:"GCP service account"},gcp_jwt_exp:{label:"GCP JWT exp"},aws_sts_endpoint_url:{label:"AWS STS endpoint URL"},aws_assume_role_arn:{label:"AWS assume role ARN"},aws_role_session_name:{label:"AWS role session name"},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"},cert_auth_cert:{label:"Cert"},cert_auth_cert_key:{label:"Cert key"},cert_auth_role_name:{label:"Role name"},oauth2_audiences:{label:"OAuth2 audiences",tooltip:"Comma-separated list of OAuth2 audiences."},oauth2_client_id:{label:"OAuth2 client ID"},oauth2_client_secret:{label:"OAuth2 client secret"},jwt_role:{label:"JWT role",tooltip:"The configured role name in HashiCorp Vault for JWT auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."},oauth2_token_endpoint:{label:"OAuth2 token endpoint"}}},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"}}},conjur:{label:"CyberArk Secrets Manager (Conjur)",description:"Access secrets stored in CyberArk Secrets Manager (Conjur) for Kong Gateway configuration.",fields:{endpoint_url:{label:"Server",tooltip:"The CyberArk Secrets Manager (Conjur) backend url. Accepts http or https."},login:{label:"Workload identity",tooltip:"Identity of the workload or host authenticating to CyberArk Secrets Manager (Conjur). In this case Kong is the workload/host."},api_key:{label:"API key",tooltip:"The API key issued to the workload."},account:{label:"Account",tooltip:"The CyberArk Secrets Manager (Conjur) account for which the token will be issued. This is the identifier provided during CyberArk Secrets Manager (Conjur) configuration."}}},advancedFields:{title:"View advanced fields",ttl:"TTL",ttlTooltip:`Time-to-live (in seconds) of a secret from the vault when it's cached. The special value of 0 means "no rotation" and it's the default. When using non-zero values, it is recommended that they're at least 1 minute.`,negTtl:"Negative TTL",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret). Negatively cached secrets will remain valid until neg_ttl is reached, after which Kong will attempt to refresh the secret again. The default value for neg_ttl is 0, meaning no negative caching occurs.",resurrectTtl:"Resurrect TTL",resurrectTtlTooltip:"Time (in seconds) for how long secrets will remain in use after they are expired (config.ttl is over). This is useful when a vault becomes unreachable, or when a secret is deleted from the Vault and isn't replaced immediately. On both cases, the Gateway will keep trying to refresh the secret for resurrect_ttl seconds. After that, it will stop trying to refresh. We recommend assigning a sufficiently high value to this configuration option to ensure a seamless transition in case there are unexpected issues with the Vault. The default value for resurrect_ttl is 1e8 seconds, which is about 3 years."},commonFields:{base64_decode:{label:"Base64 decode",tooltip:"Decode all secrets in this vault as base64, useful for binary data. If some of the secrets are not base64 encoded, an error will occur when using them. It's recommended to create a separate vault for base64 secrets."}}},unavailable:"This vault provider is available on Enterprise."},vault_secret_picker:{title:"Look up key in vault",vault:{label:"Vault",placeholder:"Select a vault"},secret_id:{label:"Secret ID",input_placeholder:"Enter a secret ID",select_placeholder:"Select or enter a complete secret ID"},optional_secret_key:{label:"Secret key",placeholder:"Enter the key or key path to access a nested secret value",help:"Optional. e.g. tokens, tokens/refresh_token"},fetch_error:{vaults:"Could not fetch available vaults",secrets:"Could not fetch available secrets",vaults_and_secrets:"Could not fetch available vaults and secrets"},no_results:"No results found",actions:{use_key:"Use key"},provider:{complete_action:"Look up {cta}",cta:"key in vault"}}};function Ve(){const r=pe.createI18n("en-us",ye);return{i18n:r,i18nT:pe.i18nTComponent(r)}}const re={useI18n:Ve},de="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",me="/v2/control-planes/{controlPlaneId}/{workspace}/config-stores",ue="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${me}/{id}?force=true`},kongManager:{getAll:`${ue}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:me,edit:`${de}/vaults/{id}`},kongManager:{create:`${ue}/vaults`,edit:`${ue}/vaults/{id}`}}},ke={class:"kong-ui-entities-vaults-list"},Ce={class:"button-row"},we={class:"table-content-overflow-wrapper"},xe={class:"table-content-overflow-wrapper"},Ne=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.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","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:x}){var ae;const d=x,c=r,{i18n:{t:p}}=re.useI18n(),a=ce.useRouter(),{axiosInstance:U}=_.useAxios((ae=c.config)==null?void 0:ae.axiosRequestConfig),{hasRecords:N,handleStateChange:y}=_.useTableState(()=>q.value),i=e.computed(()=>N.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),u={prefix:{label:p("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:p("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:p("vaults.list.table_headers.description"),sortable:!1},tags:{label:p("vaults.list.table_headers.tags"),sortable:!1}},w=u,F=e.computed(()=>{var A,S;let C=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"&&(C=C.replace(/{controlPlaneId}/gi,((A=c.config)==null?void 0:A.controlPlaneId)||"")),C.replace(/\/{workspace}/gi,(S=c.config)!=null&&S.workspace?`/${c.config.workspace}`:"")}),q=e.ref(""),j=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:p("search.placeholder_for_vaults.konnect")};const{prefix:A,name:S}=u;return{isExactMatch:!1,fields:{name:S,prefix:A},schema:c.config.filterSchema}}),{fetcher:M,fetcherState:o,fetcherCacheKey:Z}=_.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),F),K=()=>{q.value=""},z=()=>{Z.value++},D=e.ref(null),V=async(C,A)=>{const S=C.id;if(!await A(S)){d("copy:error",{entity:C,field:"id",message:p("errors.copy")});return}d("copy:success",{entity:C,field:"id",message:p("copy.success",{val:S})})},R=async(C,A)=>{const S=JSON.stringify(C);if(!await A(S)){d("copy:error",{entity:C,message:p("errors.copy")});return}d("copy:success",{entity:C,message:p("copy.success_brief")})},Q=async C=>{var S;await((S=c.canRetrieve)==null?void 0:S.call(c,C))&&a.push(c.config.getViewRoute(C.id))},X=C=>({label:p("actions.view"),to:c.config.getViewRoute(C)}),J=C=>({label:p("actions.edit"),to:c.config.getEditRoute(C)}),P=e.ref(void 0),Y=e.ref(!1),I=e.ref(!1),W=e.ref(""),G=_.useDeleteUrlBuilder(c.config,F.value),b=C=>{P.value=C,Y.value=!0},h=()=>{Y.value=!1},v=async C=>{var T;const{apiBaseUrl:A,app:S,controlPlaneId:s}=c.config,l=`${A}${te.list[S].deleteConfigStore}`.replace(/{controlPlaneId}/gi,s||"").replace(/\/{workspace}/gi,(T=c.config)!=null&&T.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,C);try{await U.delete(l)}catch{}},H=async()=>{var C,A,S,s;if((C=P.value)!=null&&C.id){I.value=!0;try{await U.delete(G(P.value.id)),c.config.app==="konnect"&&((A=P.value.config)!=null&&A.config_store_id)&&v(P.value.config.config_store_id),I.value=!1,Y.value=!1,Z.value++,d("delete:success",P.value)}catch(l){W.value=((s=(S=l.response)==null?void 0:S.data)==null?void 0:s.message)||l.message||p("errors.delete"),d("error",l)}finally{I.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(o,C=>{var A,S,s;if(C.status===_.FetcherStatus.Error){D.value={title:p("errors.general")},(s=(S=(A=C.error)==null?void 0:A.response)==null?void 0:S.data)!=null&&s.message&&(D.value.message=C.error.response.data.message),d("error",C.error);return}D.value=null});const $=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${p("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:p("vaults.title")}),E=e.ref(!1);return e.onBeforeMount(async()=>{E.value=await c.canCreate(),E.value&&($.value.title=p("vaults.list.empty_state.title"),$.value.ctaText=p("actions.create"))}),(C,A)=>{const S=e.resolveComponent("KButton"),s=e.resolveComponent("KEmptyState"),l=e.resolveComponent("KDropdownItem"),T=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":$.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(M),"fetcher-cache-key":e.unref(Z),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:q.value,"table-headers":e.unref(w),onClearSearchInput:K,"onClick:row":A[3]||(A[3]=k=>Q(k)),onSort:z,onState:e.unref(y)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:q.value,"onUpdate:modelValue":A[0]||(A[0]=k=>q.value=k),config:j.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ce,[i.value?(e.openBlock(),e.createBlock(S,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:A[1]||(A[1]=k=>C.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(L.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(S,{appearance:"primary","data-testid":"toolbar-add-vault",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:k})=>[e.createElementVNode("div",we,[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)])]),name:e.withCtx(({rowValue:k})=>[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)]),description:e.withCtx(({rowValue:k})=>[e.createElementVNode("div",xe,e.toDisplayString(k??"-"),1)]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(_.TableTags),{tags:k},null,8,["tags"])]),actions:e.withCtx(({row:k})=>[e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:f})=>[e.createVNode(l,{"data-testid":"action-entity-copy-id",onClick:O=>V(k,f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:f})=>[e.createVNode(l,{"data-testid":"action-entity-copy-json",onClick:O=>R(k,f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(l,{"data-testid":"action-entity-view","has-divider":"",item:X(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(l,{"data-testid":"action-entity-edit",item:J(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(l,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:f=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!q.value&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(s,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(p)("vaults.list.empty_state_v2.description"),title:e.unref(p)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(L.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[E.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(S,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:A[2]||(A[2]=f=>C.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(L.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=r.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(_.EntityDeleteModal),{"action-pending":I.value,description:e.unref(p)("delete.description"),"entity-name":P.value&&(P.value.prefix||P.value.id),"entity-type":e.unref(_.EntityTypes).Vault,error:W.value,title:e.unref(p)("delete.title"),visible:Y.value,onCancel:h,onProceed:H},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),oe=(r,x)=>{const d=r.__vccOpts||r;for(const[c,p]of x)d[c]=p;return d},Ee=oe(Ne,[["__scopeId","data-v-52968e65"]]);var t=(r=>(r.AWS="aws",r.GCP="gcp",r.HCV="hcv",r.ENV="env",r.AZURE="azure",r.KONNECT="konnect",r.CONJUR="conjur",r))(t||{}),m=(r=>(r.TOKEN="token",r.K8S="kubernetes",r.APP_ROLE="approle",r.CERT="cert",r.JWT="jwt",r.AWS_IAM="aws_iam",r.AWS_EC2="aws_ec2",r.AZURE="azure",r.GCP_GCE="gcp_gce",r.GCP_IAM="gcp_iam",r))(m||{});const Ae={class:"kong-ui-entities-vault-form"},Se={class:"vault-form-provider-cards-container"},Ie=["data-testid"],He={class:"provider-item-title-container"},Re={class:"provider-item-title"},Ue={class:"provider-item-description"},ve={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Te={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},Me={key:3,class:"vault-form-config-auth-method-container"},Pe={key:4,class:"vault-form-config-auth-method-container"},$e={key:5,class:"vault-form-config-auth-method-container"},Fe={key:6,class:"vault-form-config-auth-method-container"},We={key:7,class:"vault-form-config-auth-method-container"},Ke={key:8,class:"vault-form-config-auth-method-container"},De={key:9,class:"vault-form-config-auth-method-container"},Oe={key:10,class:"vault-form-config-auth-method-container"},qe={key:6},je={class:"wrapper"},ze={class:"item-50"},Ge={class:"item-50"},Le={class:"wrapper"},Je={class:"item-100"},Ze=oe(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},vaultId:{type:String,required:!1,default:null}},emits:["update","error","loading"],setup(r,{emit:x}){var S;const d=r,c=x,{i18nT:p,i18n:{t:a}}=re.useI18n(),U=ce.useRouter(),{axiosInstance:N}=_.useAxios((S=d.config)==null?void 0:S.axiosRequestConfig),{getMessageFromError:y}=_.useErrors(),i=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),u=e.ref(d.config.app==="konnect"?t.KONNECT:t.ENV),w=e.ref(null),F=e.ref(),q=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(u.value)),j=e.computed(()=>[...d.config.app==="konnect"?[{label:a("form.config.konnect.label"),value:t.KONNECT}]:[],{label:a("form.config.env.label"),value:t.ENV},{label:a("form.config.aws.label"),value:t.AWS,disabled:!J.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!J.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!J.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!J.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!J.value}]:[]]),M=d.config.base64FieldAvailable?{base64_decode:!1}:{},o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...M},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...M},[t.GCP]:{project_id:"",...M},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",ssl_verify:!0,auth_method:m.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",aws_auth_role:"",aws_auth_region:"",aws_auth_nonce:"",aws_login_path:"",aws_access_key_id:"",aws_secret_access_key:"",aws_sts_endpoint_url:"",aws_assume_role_arn:"",aws_role_session_name:"",azure_auth_role:"",azure_login_path:"",gcp_auth_role:"",gcp_login_path:"",gcp_service_account:"",gcp_jwt_exp:void 0,approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...M},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...M},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...M}}),Z=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...M},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...M},[t.GCP]:{project_id:"",...M},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",ssl_verify:!0,auth_method:m.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",aws_auth_role:"",aws_auth_region:"",aws_auth_nonce:"",aws_login_path:"",aws_access_key_id:"",aws_secret_access_key:"",aws_sts_endpoint_url:"",aws_assume_role_arn:"",aws_role_session_name:"",azure_auth_role:"",azure_login_path:"",gcp_auth_role:"",gcp_login_path:"",gcp_service_account:"",gcp_jwt_exp:void 0,approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...M},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...M},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...M}}),K=[{label:`${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${a("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${a("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${a("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${a("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${a("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${a("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${a("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${a("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],z=[{label:"secrets",value:"secrets"}],D=[{label:"http",value:"http"},{label:"https",value:"https"}],V=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],R=e.computed(()=>d.vaultId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),Q=e.computed(()=>{var s,l;return(l=te.form[(s=d.config)==null?void 0:s.app])==null?void 0:l.edit}),X=e.computed(()=>R.value===_.EntityBaseFormType.Edit&&d.config.app==="kongManager"),J=e.computed(()=>d.config.app==="konnect"||_.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),P=()=>{var s;U.push(((s=d.config)==null?void 0:s.cancelRoute)||{name:"vault-list"})},Y=s=>{c("loading",s)},I=s=>{c("error",s)},W=s=>{switch(s){case t.KONNECT:return L.KongIcon;case t.ENV:return L.CodeIcon;case t.AWS:return L.AwsIcon;case t.GCP:return L.GoogleCloudIcon;case t.HCV:return L.HashicorpIcon;case t.AZURE:return L.AzureIcon;case t.CONJUR:return L.ConjourIcon}},G=s=>{switch(s){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},b=s=>{var k,f,O,ne,ie,n;i.fields.prefix=((k=s==null?void 0:s.item)==null?void 0:k.prefix)||(s==null?void 0:s.prefix)||"",i.fields.description=((f=s==null?void 0:s.item)==null?void 0:f.description)||(s==null?void 0:s.description)||"";const l=((O=s==null?void 0:s.item)==null?void 0:O.tags)||(s==null?void 0:s.tags)||[];i.fields.tags=(l==null?void 0:l.join(", "))||"",Object.assign(g,i.fields);const T=((ne=s==null?void 0:s.item)==null?void 0:ne.config)||(s==null?void 0:s.config)||null;T&&(Object.keys(T).length||(s==null?void 0:s.name)===t.KONNECT)?(u.value=((ie=s==null?void 0:s.item)==null?void 0:ie.name)||(s==null?void 0:s.name)||"",w.value=u.value,F.value=((n=s==null?void 0:s.config)==null?void 0:n.config_store_id)||void 0,Object.assign(o[u.value],T),Object.assign(Z[u.value],T)):i.errorMessage="Error loading vault config"},h=s=>s===""||s==null,v=e.computed(()=>u.value===t.HCV?!Object.keys(o[t.HCV]).filter(s=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file","oauth2_audiences","aws_login_path","aws_sts_endpoint_url","aws_assume_role_arn","aws_role_session_name","azure_login_path","gcp_login_path"].includes(s)||o[t.HCV].auth_method!==m.K8S&&(s==="kube_role"||s==="kube_api_token_file")||!d.config.hcvCspAuthMethodsAvailable&&["aws_auth_role","aws_auth_region","aws_auth_nonce","aws_access_key_id","aws_secret_access_key","aws_login_path","aws_sts_endpoint_url","aws_assume_role_arn","aws_role_session_name","azure_auth_role","azure_login_path","gcp_auth_role","gcp_login_path","gcp_service_account","gcp_jwt_exp"].includes(s)||![m.AWS_IAM,m.AWS_EC2].includes(o[t.HCV].auth_method)&&s==="aws_auth_role"||o[t.HCV].auth_method!==m.AWS_IAM&&["aws_auth_region","aws_access_key_id","aws_secret_access_key"].includes(s)||o[t.HCV].auth_method===m.AWS_IAM&&["aws_access_key_id","aws_secret_access_key"].includes(s)||o[t.HCV].auth_method!==m.AWS_EC2&&s==="aws_auth_nonce"||o[t.HCV].auth_method!==m.AZURE&&s==="azure_auth_role"||![m.GCP_GCE,m.GCP_IAM].includes(o[t.HCV].auth_method)&&s==="gcp_auth_role"||o[t.HCV].auth_method!==m.GCP_IAM&&["gcp_service_account","gcp_jwt_exp"].includes(s)||o[t.HCV].auth_method!==m.TOKEN&&s==="token"||o[t.HCV].auth_method!==m.APP_ROLE&&(s==="approle_role_id"||s==="approle_response_wrapping")||o[t.HCV].auth_method===m.APP_ROLE&&s==="approle_response_wrapping"&&typeof o[u.value][s]=="boolean"||o[t.HCV].auth_method!==m.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(s)||o[t.HCV].auth_method!==m.JWT&&["oauth2_client_id","oauth2_client_secret","jwt_role","oauth2_token_endpoint"].includes(s)?!1:h(o[u.value][s])).length:u.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(s=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:h(o[u.value][s])).length:u.value===t.AWS?!Object.keys(o[t.AWS]).filter(s=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(s)?!1:h(o[u.value][s])).length:!Object.keys(o[u.value]).filter(s=>["ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:h(o[u.value][s])).length),H=e.computed(()=>!!i.fields.prefix&&v.value),ee=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(g)||u.value!==w.value||JSON.stringify(o[u.value])!==JSON.stringify(Z[u.value])),$=e.computed(()=>{var l,T;let s=`${d.config.apiBaseUrl}${te.form[d.config.app][R.value]}`;return d.config.app==="konnect"&&(s=s.replace(/{controlPlaneId}/gi,((l=d.config)==null?void 0:l.controlPlaneId)||"")),s.replace(/\/{workspace}/gi,(T=d.config)!=null&&T.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.vaultId??"")}),E=e.computed(()=>{var ie,n;const s=parseInt(String(o[t.HCV].gcp_jwt_exp),10),l={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,...d.config.hcvSslVerifyAvailable&&{ssl_verify:o[t.HCV].ssl_verify??!0},auth_method:o[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:o[t.HCV].base64_decode},...o[t.HCV].auth_method===m.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===m.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===m.AWS_IAM&&{aws_auth_role:o[t.HCV].aws_auth_role||void 0,aws_auth_region:o[t.HCV].aws_auth_region||void 0,aws_login_path:o[t.HCV].aws_login_path||void 0,aws_access_key_id:o[t.HCV].aws_access_key_id||void 0,aws_secret_access_key:o[t.HCV].aws_secret_access_key||void 0,aws_sts_endpoint_url:o[t.HCV].aws_sts_endpoint_url||void 0,aws_assume_role_arn:o[t.HCV].aws_assume_role_arn||void 0,aws_role_session_name:o[t.HCV].aws_role_session_name||void 0},...o[t.HCV].auth_method===m.AWS_EC2&&{aws_auth_role:o[t.HCV].aws_auth_role||void 0,aws_auth_nonce:o[t.HCV].aws_auth_nonce||void 0,aws_login_path:o[t.HCV].aws_login_path||void 0},...o[t.HCV].auth_method===m.AZURE&&{azure_auth_role:o[t.HCV].azure_auth_role||void 0,azure_login_path:o[t.HCV].azure_login_path||void 0},...o[t.HCV].auth_method===m.GCP_GCE&&{gcp_auth_role:o[t.HCV].gcp_auth_role||void 0,gcp_login_path:o[t.HCV].gcp_login_path||void 0},...o[t.HCV].auth_method===m.GCP_IAM&&{gcp_auth_role:o[t.HCV].gcp_auth_role||void 0,gcp_login_path:o[t.HCV].gcp_login_path||void 0,gcp_service_account:o[t.HCV].gcp_service_account||void 0,gcp_jwt_exp:Number.isNaN(s)?void 0:s},...o[t.HCV].auth_method===m.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},...o[t.HCV].auth_method===m.CERT&&{cert_auth_role_name:o[t.HCV].cert_auth_role_name,cert_auth_cert:o[t.HCV].cert_auth_cert,cert_auth_cert_key:o[t.HCV].cert_auth_cert_key},...o[t.HCV].auth_method===m.JWT&&{oauth2_audiences:o[t.HCV].oauth2_audiences||null,oauth2_client_id:o[t.HCV].oauth2_client_id,oauth2_client_secret:o[t.HCV].oauth2_client_secret,jwt_role:o[t.HCV].jwt_role,oauth2_token_endpoint:o[t.HCV].oauth2_token_endpoint}},T={...o[u.value],client_id:o[u.value].client_id||null,tenant_id:o[u.value].tenant_id||null},k={...o[u.value],endpoint_url:o[u.value].endpoint_url||null,assume_role_arn:o[u.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[u.value].sts_endpoint_url||null}:{}};let f=o[u.value];u.value===t.HCV?f=l:u.value===t.AZURE?f=T:u.value===t.AWS&&(f=k);let O={};if(![t.KONNECT,t.ENV].includes(u.value)){const se=o[u.value],ge=se.ttl,he=se.neg_ttl,be=se.resurrect_ttl;O={ttl:ge?parseInt(ge.toString(),10):null,neg_ttl:he?parseInt(he.toString(),10):null,resurrect_ttl:be?parseInt(be.toString(),10):null}}return{prefix:i.fields.prefix,description:i.fields.description||null,tags:(n=(ie=i.fields.tags.split(","))==null?void 0:ie.map(se=>String(se||"").trim()))==null?void 0:n.filter(se=>se!==""),name:u.value,config:{...f,...O}}}),ae=e.computed(()=>({...E.value,config:{...E.value.config,config_store_id:F.value}})),C=async()=>{var s,l;try{i.isReadonly=!0;const T=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((s=d.config)==null?void 0:s.controlPlaneId)||"").replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:""),k=await N.post(T);return k==null?void 0:k.data.id}catch(T){i.errorMessage=y(T),c("error",T)}finally{i.isReadonly=!1}},A=async()=>{var s;try{i.isReadonly=!0;let l;R.value==="create"?u.value===t.KONNECT?(F.value=await C(),l=await N.post($.value,ae.value)):l=await N.post($.value,E.value):R.value==="edit"&&(u.value===t.KONNECT&&!F.value?(F.value=await C(),l=await N.put($.value,ae.value)):l=((s=d.config)==null?void 0:s.app)==="konnect"?await N.put($.value,ae.value):await N.patch($.value,E.value)),b(l==null?void 0:l.data),c("update",l==null?void 0:l.data)}catch(l){i.errorMessage=y(l),c("error",l)}finally{i.isReadonly=!1}};return(s,l)=>{const T=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),f=e.resolveComponent("KInput"),O=e.resolveComponent("KCheckbox"),ne=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(_.EntityBaseForm),{"can-submit":H.value&&ee.value,config:r.config,"edit-id":r.vaultId,"entity-type":e.unref(_.SupportedEntityType).Vault,"error-message":i.errorMessage,"fetch-url":Q.value,"form-fields":E.value,"is-readonly":i.isReadonly,onCancel:P,"onFetch:error":I,"onFetch:success":b,onLoading:Y,onSubmit:A},{default:e.withCtx(()=>[e.createVNode(e.unref(_.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createVNode(k,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=n=>u.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:j.value,readonly:i.isReadonly},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W(n.value)))),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(T,{placement:"top",text:n.disabled?e.unref(a)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${n.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W(n.value)))),e.createElementVNode("div",He,[e.createElementVNode("span",Re,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Ue,e.toDisplayString(G(n.value)),1)])],8,Ie)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items","readonly"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[u.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(f,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":l[1]||(l[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix",label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":l[2]||(l[2]=n=>o[e.unref(t).ENV].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(k,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":l[3]||(l[3]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:K,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":l[4]||(l[4]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url",label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":l[5]||(l[5]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn",label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":l[6]||(l[6]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name",label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),r.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(f,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":l[7]||(l[7]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url",label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:1,modelValue:o[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":l[8]||(l[8]=n=>o[e.unref(t).AWS].base64_decode=n),"data-testid":"vault-form-config-aws-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(f,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":l[9]||(l[9]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id",label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),readonly:i.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":l[10]||(l[10]=n=>o[e.unref(t).GCP].base64_decode=n),"data-testid":"vault-form-config-gcp-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(k,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":l[11]||(l[11]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:D,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),r.config.hcvSslVerifyAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).HCV].ssl_verify,"onUpdate:modelValue":l[12]||(l[12]=n=>o[e.unref(t).HCV].ssl_verify=n),"data-testid":"vault-form-config-hcv-ssl_verify",label:e.unref(a)("form.config.hcv.fields.ssl_verify.label"),readonly:i.isReadonly},null,8,["modelValue","label","readonly"])):e.createCommentVNode("",!0),e.createVNode(f,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":l[13]||(l[13]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host",label:e.unref(a)("form.config.hcv.fields.host.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":l[14]||(l[14]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port",label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":l[15]||(l[15]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount",label:e.unref(a)("form.config.hcv.fields.mount.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":l[16]||(l[16]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:V,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":l[17]||(l[17]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace",label:e.unref(a)("form.config.hcv.fields.namespace.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":l[18]||(l[18]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(m).TOKEN,value:e.unref(m).TOKEN},{label:e.unref(m).K8S,value:e.unref(m).K8S},...r.config.hcvAppRoleMethodAvailable?[{label:e.unref(m).APP_ROLE,value:e.unref(m).APP_ROLE}]:[],...r.config.hcvCertMethodAvailable?[{label:e.unref(m).CERT,value:e.unref(m).CERT}]:[],...r.config.hcvJwtMethodAvailable?[{label:e.unref(m).JWT,value:e.unref(m).JWT}]:[],...r.config.hcvCspAuthMethodsAvailable?[{label:e.unref(m).AWS_IAM,value:e.unref(m).AWS_IAM},{label:e.unref(m).AWS_EC2,value:e.unref(m).AWS_EC2},{label:e.unref(m).AZURE,value:e.unref(m).AZURE},{label:e.unref(m).GCP_GCE,value:e.unref(m).GCP_GCE},{label:e.unref(m).GCP_IAM,value:e.unref(m).GCP_IAM}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(m).TOKEN?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":l[19]||(l[19]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token",label:e.unref(a)("form.config.hcv.fields.token.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).K8S?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":l[20]||(l[20]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role",label:e.unref(a)("form.config.hcv.fields.kube_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":l[21]||(l[21]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path",label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":l[22]||(l[22]=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",label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AWS_IAM?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_role,"onUpdate:modelValue":l[23]||(l[23]=n=>o[e.unref(t).HCV].aws_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_role",label:e.unref(a)("form.config.hcv.fields.aws_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_region,"onUpdate:modelValue":l[24]||(l[24]=n=>o[e.unref(t).HCV].aws_auth_region=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_region",label:e.unref(a)("form.config.hcv.fields.aws_auth_region.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_login_path,"onUpdate:modelValue":l[25]||(l[25]=n=>o[e.unref(t).HCV].aws_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_login_path",label:e.unref(a)("form.config.hcv.fields.aws_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_access_key_id,"onUpdate:modelValue":l[26]||(l[26]=n=>o[e.unref(t).HCV].aws_access_key_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_access_key_id",label:e.unref(a)("form.config.hcv.fields.aws_access_key_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_secret_access_key,"onUpdate:modelValue":l[27]||(l[27]=n=>o[e.unref(t).HCV].aws_secret_access_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_secret_access_key",label:e.unref(a)("form.config.hcv.fields.aws_secret_access_key.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_sts_endpoint_url,"onUpdate:modelValue":l[28]||(l[28]=n=>o[e.unref(t).HCV].aws_sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_sts_endpoint_url",label:e.unref(a)("form.config.hcv.fields.aws_sts_endpoint_url.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_assume_role_arn,"onUpdate:modelValue":l[29]||(l[29]=n=>o[e.unref(t).HCV].aws_assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_assume_role_arn",label:e.unref(a)("form.config.hcv.fields.aws_assume_role_arn.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_role_session_name,"onUpdate:modelValue":l[30]||(l[30]=n=>o[e.unref(t).HCV].aws_role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_role_session_name",label:e.unref(a)("form.config.hcv.fields.aws_role_session_name.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AWS_EC2?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_role,"onUpdate:modelValue":l[31]||(l[31]=n=>o[e.unref(t).HCV].aws_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_role",label:e.unref(a)("form.config.hcv.fields.aws_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_nonce,"onUpdate:modelValue":l[32]||(l[32]=n=>o[e.unref(t).HCV].aws_auth_nonce=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_nonce",label:e.unref(a)("form.config.hcv.fields.aws_auth_nonce.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_login_path,"onUpdate:modelValue":l[33]||(l[33]=n=>o[e.unref(t).HCV].aws_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_login_path",label:e.unref(a)("form.config.hcv.fields.aws_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AZURE?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].azure_auth_role,"onUpdate:modelValue":l[34]||(l[34]=n=>o[e.unref(t).HCV].azure_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-azure_auth_role",label:e.unref(a)("form.config.hcv.fields.azure_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].azure_login_path,"onUpdate:modelValue":l[35]||(l[35]=n=>o[e.unref(t).HCV].azure_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-azure_login_path",label:e.unref(a)("form.config.hcv.fields.azure_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).GCP_GCE?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_auth_role,"onUpdate:modelValue":l[36]||(l[36]=n=>o[e.unref(t).HCV].gcp_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_auth_role",label:e.unref(a)("form.config.hcv.fields.gcp_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_login_path,"onUpdate:modelValue":l[37]||(l[37]=n=>o[e.unref(t).HCV].gcp_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_login_path",label:e.unref(a)("form.config.hcv.fields.gcp_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).GCP_IAM?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_auth_role,"onUpdate:modelValue":l[38]||(l[38]=n=>o[e.unref(t).HCV].gcp_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_auth_role",label:e.unref(a)("form.config.hcv.fields.gcp_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_login_path,"onUpdate:modelValue":l[39]||(l[39]=n=>o[e.unref(t).HCV].gcp_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_login_path",label:e.unref(a)("form.config.hcv.fields.gcp_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_service_account,"onUpdate:modelValue":l[40]||(l[40]=n=>o[e.unref(t).HCV].gcp_service_account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_service_account",label:e.unref(a)("form.config.hcv.fields.gcp_service_account.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_jwt_exp,"onUpdate:modelValue":l[41]||(l[41]=n=>o[e.unref(t).HCV].gcp_jwt_exp=n),autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_jwt_exp",label:e.unref(a)("form.config.hcv.fields.gcp_jwt_exp.label"),readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":l[42]||(l[42]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path",label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":l[43]||(l[43]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id",label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":l[44]||(l[44]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id",label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":l[45]||(l[45]=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",label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(O,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":l[46]||(l[46]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):o[e.unref(t).HCV].auth_method===e.unref(m).CERT?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":l[47]||(l[47]=n=>o[e.unref(t).HCV].cert_auth_role_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_role_name",label:e.unref(a)("form.config.hcv.fields.cert_auth_role_name.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(ne,{modelValue:o[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":l[48]||(l[48]=n=>o[e.unref(t).HCV].cert_auth_cert=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(ne,{modelValue:o[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":l[49]||(l[49]=n=>o[e.unref(t).HCV].cert_auth_cert_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert_key",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert_key.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).JWT?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_client_id,"onUpdate:modelValue":l[50]||(l[50]=n=>o[e.unref(t).HCV].oauth2_client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_id",label:e.unref(a)("form.config.hcv.fields.oauth2_client_id.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_client_secret,"onUpdate:modelValue":l[51]||(l[51]=n=>o[e.unref(t).HCV].oauth2_client_secret=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_secret",label:e.unref(a)("form.config.hcv.fields.oauth2_client_secret.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].jwt_role,"onUpdate:modelValue":l[52]||(l[52]=n=>o[e.unref(t).HCV].jwt_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-jwt_role",label:e.unref(a)("form.config.hcv.fields.jwt_role.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.jwt_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_token_endpoint,"onUpdate:modelValue":l[53]||(l[53]=n=>o[e.unref(t).HCV].oauth2_token_endpoint=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_token_endpoint",label:e.unref(a)("form.config.hcv.fields.oauth2_token_endpoint.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_audiences,"onUpdate:modelValue":l[54]||(l[54]=n=>o[e.unref(t).HCV].oauth2_audiences=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_audiences",label:e.unref(a)("form.config.hcv.fields.oauth2_audiences.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.oauth2_audiences.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])])):e.createCommentVNode("",!0),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:11,modelValue:o[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":l[55]||(l[55]=n=>o[e.unref(t).HCV].base64_decode=n),"data-testid":"vault-form-config-hcv-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(f,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":l[56]||(l[56]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location",label:e.unref(a)("form.config.azure.fields.location.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":l[57]||(l[57]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri",label:e.unref(a)("form.config.azure.fields.vault_uri.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":l[58]||(l[58]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix",label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":l[59]||(l[59]=n=>o[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:z,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":l[60]||(l[60]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id",label:e.unref(a)("form.config.azure.fields.client_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":l[61]||(l[61]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id",label:e.unref(a)("form.config.azure.fields.tenant_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":l[62]||(l[62]=n=>o[e.unref(t).AZURE].base64_decode=n),"data-testid":"vault-form-config-azure-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":l[63]||(l[63]=n=>o[e.unref(t).CONJUR].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url",label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].login,"onUpdate:modelValue":l[64]||(l[64]=n=>o[e.unref(t).CONJUR].login=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login",label:e.unref(a)("form.config.conjur.fields.login.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.login.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].account,"onUpdate:modelValue":l[65]||(l[65]=n=>o[e.unref(t).CONJUR].account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-account",label:e.unref(a)("form.config.conjur.fields.account.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.account.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":l[66]||(l[66]=n=>o[e.unref(t).CONJUR].api_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_key",label:e.unref(a)("form.config.conjur.fields.api_key.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.api_key.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":l[67]||(l[67]=n=>o[e.unref(t).CONJUR].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.config.ttl?(e.openBlock(),e.createElementBlock("div",qe,[q.value?(e.openBlock(),e.createBlock(ie,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",je,[e.createElementVNode("div",ze,[e.createVNode(f,{modelValue:o[u.value].ttl,"onUpdate:modelValue":l[68]||(l[68]=n=>o[u.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ge,[e.createVNode(f,{modelValue:o[u.value].neg_ttl,"onUpdate:modelValue":l[69]||(l[69]=n=>o[u.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Le,[e.createElementVNode("div",Je,[e.createVNode(f,{modelValue:o[u.value].resurrect_ttl,"onUpdate:modelValue":l[70]||(l[70]=n=>o[u.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("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(_.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.fields.prefix,"onUpdate:modelValue":l[71]||(l[71]=n=>i.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(ne,{modelValue:i.fields.description,"onUpdate:modelValue":l[72]||(l[72]=n=>i.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:i.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(f,{modelValue:i.fields.tags,"onUpdate:modelValue":l[73]||(l[73]=n=>i.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-28247daf"]]),Qe={class:"kong-ui-vault-entity-config-card"},_e="************",Ye=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r){const x=r,d=["token","approle_secret_id","api_key","aws_access_key_id","aws_secret_access_key","aws_auth_nonce"],c=e.computed(()=>{var g,u;return(u=te.form[(g=x.config)==null?void 0:g.app])==null?void 0:u.edit}),{i18n:{t:p}}=re.useI18n(),{convertKeyToTitle:a}=_.useStringHelpers(),{getPropValue:U}=_.useHelpers(),N=e.ref({id:{},name:{label:p("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:_.ConfigurationSchemaSection.Basic},description:{order:6,section:_.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:_.ConfigurationSchemaType.Json}}),y=g=>{const u={...g.config};return d.forEach(w=>{w in u&&(u[w]=_e)}),{...g,config:u}},i=g=>{var u,w;return((w=(u=N.value)==null?void 0:u[g])==null?void 0:w.label)||a(g)};return(g,u)=>(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(e.unref(_.EntityBaseConfigCard),{"code-block-record-formatter":y,config:r.config,"config-card-doc":r.configCardDoc,"config-schema":N.value,"entity-type":e.unref(_.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":r.hideTitle,"onFetch:error":u[0]||(u[0]=w=>g.$emit("fetch:error",w)),"onFetch:success":u[1]||(u[1]=w=>g.$emit("fetch:success",w)),onLoading:u[2]||(u[2]=w=>g.$emit("loading",w))},{config:e.withCtx(({rowValue:w})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(w).sort(),F=>(e.openBlock(),e.createBlock(e.unref(_.ConfigCardItem),{key:F,item:{key:F,value:d.includes(F)?_e:e.unref(U)(F,w),label:i(F)}},null,8,["item"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),Xe="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",fe="/v2/control-planes/{controlPlaneId}/{workspace}/config-stores",le={getVault:{konnect:`${Xe}/vaults/{id}`},list:{konnect:`${fe}/{id}/secrets`},form:{konnect:{create:`${fe}/{id}/secrets`,edit:`${fe}/{id}/secrets/{secretId}`}}},et={class:"table-content-overflow-wrapper"},tt=oe(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:r=>!(!r||(r==null?void 0:r.app)!=="konnect"||!r.createRoute||!r.getEditRoute)},configStoreId:{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(r,{emit:x}){var Y;const d=x,c=r,{i18n:{t:p,formatUnixTimeStamp:a}}=re.useI18n(),{axiosInstance:U}=_.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:p("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:p("secrets.list.table_headers.updated_at"),sortable:!1}},i=I=>({"data-testid":I.key}),g=e.computed(()=>{var I,W;return`${c.config.apiBaseUrl}${le.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((I=c.config)==null?void 0:I.controlPlaneId)||"").replace(/\/{workspace}/gi,(W=c.config)!=null&&W.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,c.configStoreId||"")}),u=e.ref(""),w={isExactMatch:!0,placeholder:p("search.placeholder_for_secrets.konnect")},{fetcher:F,fetcherState:q,fetcherCacheKey:j}=_.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),M=()=>{u.value=""},o=e.ref(null),Z=I=>({label:p("actions.edit"),to:c.config.getEditRoute(I)}),K=e.ref(void 0),z=e.ref(!1),D=e.ref(!1),V=e.ref(""),R=_.useDeleteUrlBuilder(c.config,g.value),Q=I=>{K.value=I,z.value=!0},X=()=>{z.value=!1},J=async()=>{var I,W,G;if((I=K.value)!=null&&I.key){D.value=!0;try{await U.delete(R(K.value.key)),D.value=!1,z.value=!1,j.value++,d("delete:success",K.value)}catch(b){V.value=((G=(W=b.response)==null?void 0:W.data)==null?void 0:G.message)||b.message||p("errors.delete"),d("error",b)}finally{D.value=!1}}};e.watch(q,I=>{var W,G,b;if(I.status===_.FetcherStatus.Error){o.value={title:p("errors.general")},(b=(G=(W=I.error)==null?void 0:W.response)==null?void 0:G.data)!=null&&b.message&&(o.value.message=I.error.response.data.message),d("error",I.error);return}o.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${p("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:p("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(P.value.title=p("secrets.list.empty_state.title"),P.value.ctaText=p("secrets.list.toolbar_actions.new_secret"))}),(I,W)=>{const G=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":"","empty-state-options":P.value,"enable-entity-actions":"","error-message":o.value,fetcher:e.unref(F),"fetcher-cache-key":e.unref(j),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:u.value,"row-attributes":i,"table-headers":e.unref(y),onClearSearchInput:M},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":W[0]||(W[0]=h=>u.value=h),config:w},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(G,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:h})=>[e.createElementVNode("div",et,[e.createElementVNode("b",null,e.toDisplayString(h??"-"),1)])]),updated_at:e.withCtx(({rowValue:h})=>[e.createElementVNode("span",null,e.toDisplayString(h?e.unref(a)(new Date(h).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:h})=>[e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(h)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:Z(h.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(h)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:v=>Q(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.delete")),1)]),_:1},8,["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(_.EntityDeleteModal),{"action-pending":D.value,description:e.unref(p)("delete.description"),"entity-name":K.value&&K.value.key,"entity-type":e.unref(_.EntityTypes).Secret,error:V.value,title:e.unref(p)("delete.title_for_secret"),visible:z.value,onCancel:X,onProceed:J},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-21f34f6e"]]),ot={class:"kong-ui-entities-secrets-list"},lt=oe(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:r=>!(!r||(r==null?void 0:r.app)!=="konnect"||!r.createRoute||!r.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(r,{emit:x}){var i;const d=x,c=r,p=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:U}=_.useAxios((i=c.config)==null?void 0:i.axiosRequestConfig),N=e.ref(""),y=e.computed(()=>{var g,u;return`${c.config.apiBaseUrl}${le.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/\/{workspace}/gi,(u=c.config)!=null&&u.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var g;try{const{data:u}=await U.get(y.value);N.value=(g=u==null?void 0:u.config)==null?void 0:g.config_store_id}catch(u){d("error",u)}}),(g,u)=>(e.openBlock(),e.createElementBlock("div",ot,[N.value?(e.openBlock(),e.createBlock(tt,e.mergeProps({key:0},c,{"config-store-id":N.value,"onDelete:success":a,onError:p}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-630a2cea"]]),at=oe(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:r=>!(!r||r.app!=="konnect"||!r.controlPlaneId||!r.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:x}){var D;const d=r,c=x,{i18n:{t:p}}=re.useI18n(),a=ce.useRouter(),{axiosInstance:U}=_.useAxios((D=d.config)==null?void 0:D.axiosRequestConfig),{getMessageFromError:N}=_.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),i=e.reactive({key:"",value:""}),g=e.computed(()=>{var V,R;return(R=le.form[(V=d.config)==null?void 0:V.app])==null?void 0:R.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),u=()=>{var V;a.push(((V=d.config)==null?void 0:V.cancelRoute)||{name:"secret-list"})},w=V=>{c("loading",V)},F=V=>{c("error",V)},q=V=>{var R,Q;y.fields.key=((R=V==null?void 0:V.item)==null?void 0:R.key)||(V==null?void 0:V.key)||"",y.fields.value=((Q=V==null?void 0:V.item)==null?void 0:Q.value)||(V==null?void 0:V.value)||"",Object.assign(i,y.fields)},j=e.computed(()=>d.secretId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),M=e.computed(()=>{var V,R;return`${d.config.apiBaseUrl}${le.form[d.config.app][j.value]}`.replace(/{controlPlaneId}/gi,((V=d.config)==null?void 0:V.controlPlaneId)||"").replace(/\/{workspace}/gi,(R=d.config)!=null&&R.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),o=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(i)),K=e.computed(()=>({key:y.fields.key,value:y.fields.value})),z=async()=>{try{y.readonly=!0;let V;j.value==="create"?V=await U.post(M.value,K.value):j.value==="edit"&&(V=await U.put(M.value,K.value)),q(V==null?void 0:V.data),c("update",V==null?void 0:V.data)}catch(V){y.errorMessage=N(V),c("error",V)}finally{y.readonly=!1}};return(V,R)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),J=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(_.EntityBaseForm),{"can-submit":o.value&&Z.value,config:r.config,"edit-id":r.secretId,"entity-type":e.unref(_.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":K.value,"is-readonly":y.readonly,onCancel:u,"onFetch:error":F,"onFetch:success":q,onLoading:w,onSubmit:z},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(_.EntityFormSection),{description:e.unref(p)("secrets.form.info.description"),"has-divider":"",title:e.unref(p)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":R[0]||(R[0]=P=>y.fields.key=P),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:j.value===e.unref(_.EntityBaseFormType).Edit,label:e.unref(p)("secrets.form.fields.key.label"),placeholder:e.unref(p)("secrets.form.fields.key.placeholder"),readonly:y.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(X,{modelValue:y.fields.value,"onUpdate:modelValue":R[1]||(R[1]=P=>y.fields.value=P),modelModifiers:{trim:!0},autocomplete:"off","character-limit":!1,"data-testid":"secret-form-value",label:e.unref(p)("secrets.form.fields.value.label"),placeholder:e.unref(p)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(J,{appearance:"warning",message:e.unref(p)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])}}}),[["__scopeId","data-v-a80439b9"]]),rt={class:"kong-ui-entities-secret-form"},nt=oe(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||r.app!=="konnect"||!r.controlPlaneId||!r.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:x}){var g;const d=r,c=x,p=u=>{c("update",u)},a=u=>{c("error",u)},U=u=>{c("loading",u)},{axiosInstance:N}=_.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),i=e.computed(()=>{var u,w;return`${d.config.apiBaseUrl}${le.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((u=d.config)==null?void 0:u.controlPlaneId)||"").replace(/\/{workspace}/gi,(w=d.config)!=null&&w.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var u;try{const{data:w}=await N.get(i.value);y.value=(u=w==null?void 0:w.config)==null?void 0:u.config_store_id}catch(w){c("error",w)}}),(u,w)=>(e.openBlock(),e.createElementBlock("div",rt,[y.value?(e.openBlock(),e.createBlock(at,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:U,onUpdate:p}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-35c1f665"]]),it={class:"vault-secret-picker-provider"},st=oe(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(r,{emit:x}){const d=r,c=x,{i18n:{t:p},i18nT:a}=re.useI18n();return(U,N)=>(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(e.unref(a),{keypath:"vault_secret_picker.provider.complete_action",scope:"global"},{cta:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"vault-secret-picker-provider-action":!0,disabled:d.disabled}),onClick:N[0]||(N[0]=()=>!d.disabled&&c("open",d.value,d.update))},e.toDisplayString(e.unref(p)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-d135d1d0"]]),ct=r=>{let x=r.trim();if(!x.startsWith("{")||!x.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(x=x.substring(1,x.length-1).trim(),!x.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const d=new URL(`http://${x.substring(8)}`);if(!d)throw new Error("Invalid secret reference: must have a vault prefix");const c=d.host,[,p,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:p||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},dt=r=>{if(!r.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let x=`vault://${r.vaultPrefix}`;return r.secretId&&(x=`${x}/${r.secretId}`),r.optionalSecretKey&&(x=`${x}/${r.optionalSecretKey}`),`{${x}}`},ut={key:1,class:"inputs-wrapper"},ft={"data-testid":"no-search-results"},pt={class:"k-select-selected-item-label"},mt={class:"vault-secret-picker-vault-dropdown-item"},_t={class:"select-item-label"},gt={class:"select-item-description"},ht={class:"select-item-description"},bt={"data-testid":"no-search-results"},yt=oe(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string")},setup:{type:null,required:!1,default:!1},title:{type:String,required:!1,default:void 0},proceedButtonText:{type:String,required:!1,default:void 0},additionalDisabled:{type:Boolean,required:!1,default:!1}},emits:["proceed","cancel"],setup(r,{emit:x}){var G;const{i18n:{t:d}}=re.useI18n(),c=r,p=x,{axiosInstance:a}=_.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(G=c.config)==null?void 0:G.axiosRequestConfig}),U=e.ref(!1),N=e.ref(""),y=e.ref(""),i=e.ref(""),g=e.ref(),u=e.computed(()=>{var b,h;return c.config.app==="konnect"?le.list[c.config.app].replace(/{id}/gi,((h=(b=g.value)==null?void 0:b.config)==null?void 0:h.config_store_id)??""):"<not_applicable>"}),w=e.computed(()=>{if(j&&z)return d("vault_secret_picker.fetch_error.vaults_and_secrets");if(j)return d("vault_secret_picker.fetch_error.vaults");if(z)return d("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:F,loading:q,error:j,loadItems:M,results:o}=_.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:K,error:z,loadItems:D,results:V}=_.useDebouncedFilter(c.config,u,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),R=e.computed(()=>{var v;let b=!1;const h=((v=o.value)==null?void 0:v.map(H=>(H.prefix===N.value&&(b=!0),{label:H.prefix,value:H.prefix,vault:H})))??[];return!b&&g.value&&h.push({label:g.value.prefix,value:g.value.prefix,vault:g.value}),h}),Q=e.computed(()=>{var v;let b=!1;const h=((v=V.value)==null?void 0:v.map(H=>(H.key===y.value&&(b=!0),{label:H.key,value:H.key})))??[];return!b&&y.value&&h.push({label:y.value,value:y.value}),h}),X=e.computed(()=>{var b;return((b=g==null?void 0:g.value)==null?void 0:b.name)==="konnect"}),J=e.computed(()=>!!g.value&&!!y.value&&!c.additionalDisabled),P=b=>b.label?`${b.label} - (${b.vault.name} - ${b.vault.id})`:b.value,Y=b=>{var v,H;let h=`${c.config.apiBaseUrl}${te.form[c.config.app].edit}`;return c.config.app==="konnect"&&(h=h.replace(/{controlPlaneId}/gi,((v=c.config)==null?void 0:v.controlPlaneId)||"")),h.replace(/\/{workspace}/gi,(H=c.config)!=null&&H.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,b)},I=(b,h)=>{var v,H;return c.config.app!=="konnect"?"<not_applicable>":`${c.config.apiBaseUrl}${le.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi,((v=c.config)==null?void 0:v.controlPlaneId)||"").replace(/\/{workspace}/gi,(H=c.config)!=null&&H.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,h).replace(/{secretId}/gi,b)},W=()=>{p("proceed",dt({vaultPrefix:N.value,secretId:y.value||void 0,optionalSecretKey:i.value||void 0}))};return e.watch(()=>c.setup,async b=>{if(b!==!1){if(U.value=!0,N.value="",g.value=void 0,y.value="",i.value="",typeof b=="string"&&b.trim().length>0)try{let h,v="",H="",ee="";const $=ct(b),{data:E}=await a.get(Y($.vaultPrefix));if(E!=null&&E.name)if(h=E,v=$.vaultPrefix,h.name==="konnect"){if($.secretId){const{data:ae}=await a.get(I($.secretId,E.config.config_store_id));ae.key===$.secretId&&(H=$.secretId,ee=$.optionalSecretKey??"")}}else H=$.secretId??"",ee=$.optionalSecretKey??"";await e.nextTick(()=>{N.value=v,g.value=h,y.value=H,i.value=ee})}catch(h){console.debug(h)}U.value=!1,await M()}},{immediate:!0}),e.watch(N,async(b,h)=>{var v;U.value||b===h||(g.value=(v=R.value.find(H=>H.value===b))==null?void 0:v.vault,y.value="",i.value="")}),e.watch(u,async()=>{X.value&&await D()},{immediate:!0}),(b,h)=>{const v=e.resolveComponent("KEmptyState"),H=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),$=e.resolveComponent("KModal");return e.openBlock(),e.createBlock($,{"action-button-disabled":!J.value,"action-button-text":r.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:r.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:h[4]||(h[4]=()=>p("cancel")),onProceed:W},{default:e.withCtx(()=>[e.unref(j)||e.unref(z)?(e.openBlock(),e.createBlock(v,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:w.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ut,[e.renderSlot(b.$slots,"form-prefix",{},void 0,!0),e.createVNode(H,{modelValue:N.value,"onUpdate:modelValue":h[0]||(h[0]=E=>N.value=E),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:U.value,"enable-filtering":"","filter-function":()=>!0,items:R.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(d)("vault_secret_picker.vault.label"),loading:e.unref(q),placeholder:e.unref(d)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(F)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ft,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:E})=>[e.createElementVNode("span",pt,e.toDisplayString(P(E)),1)]),"item-template":e.withCtx(({item:E})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",_t,e.toDisplayString(E.label),1),e.createElementVNode("span",gt,e.toDisplayString(E.vault.name),1),e.createElementVNode("span",ht,e.toDisplayString(E.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),X.value?(e.openBlock(),e.createBlock(H,{key:0,modelValue:y.value,"onUpdate:modelValue":h[1]||(h[1]=E=>y.value=E),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:U.value||!g.value,"enable-filtering":"","filter-function":()=>!0,items:Q.value,"kpop-attributes":{"data-testid":"vault-secret-picker-secret-id-popover"},label:e.unref(d)("vault_secret_picker.secret_id.label"),loading:e.unref(K),placeholder:e.unref(d)("vault_secret_picker.secret_id.select_placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(Z)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",bt,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"])):(e.openBlock(),e.createBlock(ee,{key:1,modelValue:y.value,"onUpdate:modelValue":h[2]||(h[2]=E=>y.value=E),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:U.value||!g.value,label:e.unref(d)("vault_secret_picker.secret_id.label"),placeholder:e.unref(d)("vault_secret_picker.secret_id.input_placeholder"),required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder"])),e.createVNode(ee,{modelValue:i.value,"onUpdate:modelValue":h[3]||(h[3]=E=>i.value=E),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:U.value||!g.value,help:e.unref(d)("vault_secret_picker.optional_secret_key.help"),label:e.unref(d)("vault_secret_picker.optional_secret_key.label"),placeholder:e.unref(d)("vault_secret_picker.optional_secret_key.placeholder"),type:"text"},null,8,["modelValue","disabled","help","label","placeholder"])]))]),_:3},8,["action-button-disabled","action-button-text","title","visible"])}}}),[["__scopeId","data-v-4d792760"]]);B.SecretForm=nt,B.SecretList=lt,B.VaultAuthMethods=m,B.VaultConfigCard=Ye,B.VaultForm=Ze,B.VaultList=Ee,B.VaultProviders=t,B.VaultSecretPicker=yt,B.VaultSecretPickerProvider=st,B.secretsEndpoints=le,B.vaultsEndpoints=te,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,e(B["kong-ui-public-entities-vaults"]={},B.Vue,B.VueRouter,B.KongIcons,B["kong-ui-public-entities-shared"],B["kong-ui-public-i18n"]))})(this,function(B,e,ce,L,_,pe){"use strict";const ye={actions:{create:"New vault",copy_id:"Copy ID",copy_json:"Copy JSON",edit:"Edit",delete:"Delete",view:"View details",loading:"Loading..."},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_for_vaults:{konnect:"Filter by exact prefix or ID"},placeholder_for_secrets:{konnect:"Filter by exact key"}},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."},empty_state_v2:{title:"Configure your first vault",group:"Vaults created in gateways within this group will automatically appear here.",description:"Vaults securely and centrally store sensitive information, such as credentials, tokens, and keys, to simplify secrets management.",create_cta:"New vault",learn_more:"Learn more"}}},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 reference prefix. You need this prefix to access secrets stored in this vault. For example, {vault://<your-prefix>/<some-secret>}."},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"},ssl_verify:{label:"SSL verify"},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"},aws_auth_role:{label:"AWS auth role"},aws_auth_region:{label:"AWS auth region"},aws_access_key_id:{label:"AWS access key ID"},aws_secret_access_key:{label:"AWS secret access key"},aws_auth_nonce:{label:"AWS auth nonce"},aws_login_path:{label:"AWS login path"},azure_auth_role:{label:"Azure auth role"},azure_login_path:{label:"Azure login path"},gcp_auth_role:{label:"GCP auth role"},gcp_login_path:{label:"GCP login path"},gcp_service_account:{label:"GCP Service account"},gcp_jwt_exp:{label:"GCP JWT Exp"},aws_sts_endpoint_url:{label:"AWS STS endpoint URL"},aws_assume_role_arn:{label:"AWS assume role ARN"},aws_role_session_name:{label:"AWS role session name"},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"},cert_auth_cert:{label:"Cert"},cert_auth_cert_key:{label:"Cert key"},cert_auth_role_name:{label:"Role name"},oauth2_audiences:{label:"OAuth2 audiences",tooltip:"Comma-separated list of OAuth2 audiences."},oauth2_client_id:{label:"OAuth2 client ID"},oauth2_client_secret:{label:"OAuth2 client secret"},jwt_role:{label:"JWT role",tooltip:"The configured role name in HashiCorp Vault for JWT auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."},oauth2_token_endpoint:{label:"OAuth2 token endpoint"}}},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"}}},conjur:{label:"CyberArk Secrets Manager (Conjur)",description:"Access secrets stored in CyberArk Secrets Manager (Conjur) for Kong Gateway configuration.",fields:{endpoint_url:{label:"Server",tooltip:"The CyberArk Secrets Manager (Conjur) backend url. Accepts http or https."},login:{label:"Workload identity",tooltip:"Identity of the workload or host authenticating to CyberArk Secrets Manager (Conjur). In this case Kong is the workload/host."},api_key:{label:"API key",tooltip:"The API key issued to the workload."},account:{label:"Account",tooltip:"The CyberArk Secrets Manager (Conjur) account for which the token will be issued. This is the identifier provided during CyberArk Secrets Manager (Conjur) configuration."}}},advancedFields:{title:"View advanced fields",ttl:"TTL",ttlTooltip:`Time-to-live (in seconds) of a secret from the vault when it's cached. The special value of 0 means "no rotation" and it's the default. When using non-zero values, it is recommended that they're at least 1 minute.`,negTtl:"Negative TTL",negTtlTooltip:"Time-to-live (in seconds) of a vault miss (no secret). Negatively cached secrets will remain valid until neg_ttl is reached, after which Kong will attempt to refresh the secret again. The default value for neg_ttl is 0, meaning no negative caching occurs.",resurrectTtl:"Resurrect TTL",resurrectTtlTooltip:"Time (in seconds) for how long secrets will remain in use after they are expired (config.ttl is over). This is useful when a vault becomes unreachable, or when a secret is deleted from the Vault and isn't replaced immediately. On both cases, the Gateway will keep trying to refresh the secret for resurrect_ttl seconds. After that, it will stop trying to refresh. We recommend assigning a sufficiently high value to this configuration option to ensure a seamless transition in case there are unexpected issues with the Vault. The default value for resurrect_ttl is 1e8 seconds, which is about 3 years."},commonFields:{base64_decode:{label:"Base64 decode",tooltip:"Decode all secrets in this vault as base64, useful for binary data. If some of the secrets are not base64 encoded, an error will occur when using them. It's recommended to create a separate vault for base64 secrets."}}},unavailable:"This vault provider is available on Enterprise."},vault_secret_picker:{title:"Look up key in vault",vault:{label:"Vault",placeholder:"Select a vault"},secret_id:{label:"Secret ID",input_placeholder:"Enter a secret ID",select_placeholder:"Select or enter a complete secret ID"},optional_secret_key:{label:"Secret key",placeholder:"Enter the key or key path to access a nested secret value",help:"Optional. e.g. tokens, tokens/refresh_token"},fetch_error:{vaults:"Could not fetch available vaults",secrets:"Could not fetch available secrets",vaults_and_secrets:"Could not fetch available vaults and secrets"},no_results:"No results found",actions:{use_key:"Use key"},provider:{complete_action:"Look up {cta}",cta:"key in vault"}}};function Ve(){const r=pe.createI18n("en-us",ye);return{i18n:r,i18nT:pe.i18nTComponent(r)}}const re={useI18n:Ve},de="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",me="/v2/control-planes/{controlPlaneId}/{workspace}/config-stores",ue="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${me}/{id}?force=true`},kongManager:{getAll:`${ue}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:me,edit:`${de}/vaults/{id}`},kongManager:{create:`${ue}/vaults`,edit:`${ue}/vaults/{id}`}}},ke={class:"kong-ui-entities-vaults-list"},Ce={class:"button-row"},we={class:"table-content-overflow-wrapper"},xe={class:"table-content-overflow-wrapper"},Ne=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||!r.createRoute||!r.getViewRoute||!r.getEditRoute||r.app==="kongManager"&&!r.isExactMatch&&!r.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","click:learn-more","copy:success","copy:error","delete:success"],setup(r,{emit:x}){var ae;const d=x,c=r,{i18n:{t:p}}=re.useI18n(),a=ce.useRouter(),{axiosInstance:U}=_.useAxios((ae=c.config)==null?void 0:ae.axiosRequestConfig),{hasRecords:N,handleStateChange:y}=_.useTableState(()=>q.value),i=e.computed(()=>N.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),u={prefix:{label:p("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:p("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:p("vaults.list.table_headers.description"),sortable:!1},tags:{label:p("vaults.list.table_headers.tags"),sortable:!1}},w=u,F=e.computed(()=>{var A,S;let C=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"&&(C=C.replace(/{controlPlaneId}/gi,((A=c.config)==null?void 0:A.controlPlaneId)||"")),C.replace(/\/{workspace}/gi,(S=c.config)!=null&&S.workspace?`/${c.config.workspace}`:"")}),q=e.ref(""),j=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:p("search.placeholder_for_vaults.konnect")};const{prefix:A,name:S}=u;return{isExactMatch:!1,fields:{name:S,prefix:A},schema:c.config.filterSchema}}),{fetcher:M,fetcherState:o,fetcherCacheKey:Z}=_.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),F),K=()=>{q.value=""},z=()=>{Z.value++},D=e.ref(null),V=async(C,A)=>{const S=C.id;if(!await A(S)){d("copy:error",{entity:C,field:"id",message:p("errors.copy")});return}d("copy:success",{entity:C,field:"id",message:p("copy.success",{val:S})})},R=async(C,A)=>{const S=JSON.stringify(C);if(!await A(S)){d("copy:error",{entity:C,message:p("errors.copy")});return}d("copy:success",{entity:C,message:p("copy.success_brief")})},Q=async C=>{var S;await((S=c.canRetrieve)==null?void 0:S.call(c,C))&&a.push(c.config.getViewRoute(C.id))},X=C=>({label:p("actions.view"),to:c.config.getViewRoute(C)}),J=C=>({label:p("actions.edit"),to:c.config.getEditRoute(C)}),P=e.ref(void 0),Y=e.ref(!1),I=e.ref(!1),W=e.ref(""),G=_.useDeleteUrlBuilder(c.config,F.value),b=C=>{P.value=C,Y.value=!0},h=()=>{Y.value=!1},v=async C=>{var T;const{apiBaseUrl:A,app:S,controlPlaneId:s}=c.config,l=`${A}${te.list[S].deleteConfigStore}`.replace(/{controlPlaneId}/gi,s||"").replace(/\/{workspace}/gi,(T=c.config)!=null&&T.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,C);try{await U.delete(l)}catch{}},H=async()=>{var C,A,S,s;if((C=P.value)!=null&&C.id){I.value=!0;try{await U.delete(G(P.value.id)),c.config.app==="konnect"&&((A=P.value.config)!=null&&A.config_store_id)&&v(P.value.config.config_store_id),I.value=!1,Y.value=!1,Z.value++,d("delete:success",P.value)}catch(l){W.value=((s=(S=l.response)==null?void 0:S.data)==null?void 0:s.message)||l.message||p("errors.delete"),d("error",l)}finally{I.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(o,C=>{var A,S,s;if(C.status===_.FetcherStatus.Error){D.value={title:p("errors.general")},(s=(S=(A=C.error)==null?void 0:A.response)==null?void 0:S.data)!=null&&s.message&&(D.value.message=C.error.response.data.message),d("error",C.error);return}D.value=null});const $=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${p("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:p("vaults.title")}),E=e.ref(!1);return e.onBeforeMount(async()=>{E.value=await c.canCreate(),E.value&&($.value.title=p("vaults.list.empty_state.title"),$.value.ctaText=p("actions.create"))}),(C,A)=>{const S=e.resolveComponent("KButton"),s=e.resolveComponent("KEmptyState"),l=e.resolveComponent("KDropdownItem"),T=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",ke,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":$.value,"enable-entity-actions":"","error-message":D.value,fetcher:e.unref(M),"fetcher-cache-key":e.unref(Z),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:q.value,"table-headers":e.unref(w),onClearSearchInput:K,"onClick:row":A[3]||(A[3]=k=>Q(k)),onSort:z,onState:e.unref(y)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:q.value,"onUpdate:modelValue":A[0]||(A[0]=k=>q.value=k),config:j.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!r.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ce,[i.value?(e.openBlock(),e.createBlock(S,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:A[1]||(A[1]=k=>C.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(L.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(S,{appearance:"primary","data-testid":"toolbar-add-vault",size:r.useActionOutside?"medium":"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.toolbar_actions.new_vault")),1)]),_:1},8,["size","to"])]),_:1},8,["auth-function"])])],8,["disabled"]))]),prefix:e.withCtx(({rowValue:k})=>[e.createElementVNode("div",we,[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)])]),name:e.withCtx(({rowValue:k})=>[e.createElementVNode("b",null,e.toDisplayString(k??"-"),1)]),description:e.withCtx(({rowValue:k})=>[e.createElementVNode("div",xe,e.toDisplayString(k??"-"),1)]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(_.TableTags),{tags:k},null,8,["tags"])]),actions:e.withCtx(({row:k})=>[e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:f})=>[e.createVNode(l,{"data-testid":"action-entity-copy-id",onClick:O=>V(k,f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(T,null,{default:e.withCtx(({copyToClipboard:f})=>[e.createVNode(l,{"data-testid":"action-entity-copy-json",onClick:O=>R(k,f)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(l,{"data-testid":"action-entity-view","has-divider":"",item:X(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(l,{"data-testid":"action-entity-edit",item:J(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(l,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:f=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!q.value&&r.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(s,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(p)("vaults.list.empty_state_v2.description"),title:e.unref(p)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(L.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[E.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(S,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:A[2]||(A[2]=f=>C.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(L.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=r.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("vaults.list.empty_state_v2.group")),1)]),key:"0"}:void 0]),1032,["message","title"])]}),key:"0"}:void 0]),1032,["cache-identifier","disable-sorting","empty-state-options","error-message","fetcher","fetcher-cache-key","query","table-headers","onState"]),e.createVNode(e.unref(_.EntityDeleteModal),{"action-pending":I.value,description:e.unref(p)("delete.description"),"entity-name":P.value&&(P.value.prefix||P.value.id),"entity-type":e.unref(_.EntityTypes).Vault,error:W.value,title:e.unref(p)("delete.title"),visible:Y.value,onCancel:h,onProceed:H},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),oe=(r,x)=>{const d=r.__vccOpts||r;for(const[c,p]of x)d[c]=p;return d},Ee=oe(Ne,[["__scopeId","data-v-52968e65"]]);var t=(r=>(r.AWS="aws",r.GCP="gcp",r.HCV="hcv",r.ENV="env",r.AZURE="azure",r.KONNECT="konnect",r.CONJUR="conjur",r))(t||{}),m=(r=>(r.TOKEN="token",r.K8S="kubernetes",r.APP_ROLE="approle",r.CERT="cert",r.JWT="jwt",r.AWS_IAM="aws_iam",r.AWS_EC2="aws_ec2",r.AZURE="azure",r.GCP_GCE="gcp_gce",r.GCP_IAM="gcp_iam",r))(m||{});const Ae={class:"kong-ui-entities-vault-form"},Se={class:"vault-form-provider-cards-container"},Ie=["data-testid"],He={class:"provider-item-title-container"},Re={class:"provider-item-title"},Ue={class:"provider-item-description"},ve={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Te={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},Me={key:3,class:"vault-form-config-auth-method-container"},Pe={key:4,class:"vault-form-config-auth-method-container"},$e={key:5,class:"vault-form-config-auth-method-container"},Fe={key:6,class:"vault-form-config-auth-method-container"},We={key:7,class:"vault-form-config-auth-method-container"},Ke={key:8,class:"vault-form-config-auth-method-container"},De={key:9,class:"vault-form-config-auth-method-container"},Oe={key:10,class:"vault-form-config-auth-method-container"},qe={key:6},je={class:"wrapper"},ze={class:"item-50"},Ge={class:"item-50"},Le={class:"wrapper"},Je={class:"item-100"},Ze=oe(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||(r==null?void 0:r.app)==="konnect"&&!(r!=null&&r.controlPlaneId)||(r==null?void 0:r.app)==="kongManager"&&typeof(r==null?void 0:r.workspace)!="string"||!(r!=null&&r.cancelRoute))},vaultId:{type:String,required:!1,default:null}},emits:["update","error","loading"],setup(r,{emit:x}){var S;const d=r,c=x,{i18nT:p,i18n:{t:a}}=re.useI18n(),U=ce.useRouter(),{axiosInstance:N}=_.useAxios((S=d.config)==null?void 0:S.axiosRequestConfig),{getMessageFromError:y}=_.useErrors(),i=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),u=e.ref(d.config.app==="konnect"?t.KONNECT:t.ENV),w=e.ref(null),F=e.ref(),q=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(u.value)),j=e.computed(()=>[...d.config.app==="konnect"?[{label:a("form.config.konnect.label"),value:t.KONNECT}]:[],{label:a("form.config.env.label"),value:t.ENV},{label:a("form.config.aws.label"),value:t.AWS,disabled:!J.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!J.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!J.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!J.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!J.value}]:[]]),M=d.config.base64FieldAvailable?{base64_decode:!1}:{},o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...M},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...M},[t.GCP]:{project_id:"",...M},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",ssl_verify:!0,auth_method:m.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",aws_auth_role:"",aws_auth_region:"",aws_auth_nonce:"",aws_login_path:"",aws_access_key_id:"",aws_secret_access_key:"",aws_sts_endpoint_url:"",aws_assume_role_arn:"",aws_role_session_name:"",azure_auth_role:"",azure_login_path:"",gcp_auth_role:"",gcp_login_path:"",gcp_service_account:"",gcp_jwt_exp:void 0,approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...M},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...M},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...M}}),Z=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...M},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...M},[t.GCP]:{project_id:"",...M},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",ssl_verify:!0,auth_method:m.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",aws_auth_role:"",aws_auth_region:"",aws_auth_nonce:"",aws_login_path:"",aws_access_key_id:"",aws_secret_access_key:"",aws_sts_endpoint_url:"",aws_assume_role_arn:"",aws_role_session_name:"",azure_auth_role:"",azure_login_path:"",gcp_auth_role:"",gcp_login_path:"",gcp_service_account:"",gcp_jwt_exp:void 0,approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...M},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...M},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...M}}),K=[{label:`${a("form.config.aws.fields.region.locations.us-east-1.location")} (us-east-1)`,value:"us-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-east-2.location")} (us-east-2)`,value:"us-east-2"},{label:`${a("form.config.aws.fields.region.locations.us-west-1.location")} (us-west-1)`,value:"us-west-1"},{label:`${a("form.config.aws.fields.region.locations.us-west-2.location")} (us-west-2)`,value:"us-west-2"},{label:`${a("form.config.aws.fields.region.locations.af-south-1.location")} (af-south-1)`,value:"af-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-east-1.location")} (ap-east-1)`,value:"ap-east-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-3.location")} (ap-southeast-3)`,value:"ap-southeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-south-1.location")} (ap-south-1)`,value:"ap-south-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-1.location")} (ap-northeast-1)`,value:"ap-northeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-2.location")} (ap-northeast-2)`,value:"ap-northeast-2"},{label:`${a("form.config.aws.fields.region.locations.ap-northeast-3.location")} (ap-northeast-3)`,value:"ap-northeast-3"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-1.location")} (ap-southeast-1)`,value:"ap-southeast-1"},{label:`${a("form.config.aws.fields.region.locations.ap-southeast-2.location")} (ap-southeast-2)`,value:"ap-southeast-2"},{label:`${a("form.config.aws.fields.region.locations.ca-central-1.location")} (ca-central-1)`,value:"ca-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-central-1.location")} (eu-central-1)`,value:"eu-central-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-1.location")} (eu-west-1)`,value:"eu-west-1"},{label:`${a("form.config.aws.fields.region.locations.eu-west-2.location")} (eu-west-2)`,value:"eu-west-2"},{label:`${a("form.config.aws.fields.region.locations.eu-west-3.location")} (eu-west-3)`,value:"eu-west-3"},{label:`${a("form.config.aws.fields.region.locations.eu-south-1.location")} (eu-south-1)`,value:"eu-south-1"},{label:`${a("form.config.aws.fields.region.locations.eu-north-1.location")} (eu-north-1)`,value:"eu-north-1"},{label:`${a("form.config.aws.fields.region.locations.me-south-1.location")} (me-south-1)`,value:"me-south-1"},{label:`${a("form.config.aws.fields.region.locations.sa-east-1.location")} (sa-east-1)`,value:"sa-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-east-1.location")} (us-gov-east-1)`,value:"us-gov-east-1"},{label:`${a("form.config.aws.fields.region.locations.us-gov-west-1.location")} (us-gov-west-1)`,value:"us-gov-west-1"}],z=[{label:"secrets",value:"secrets"}],D=[{label:"http",value:"http"},{label:"https",value:"https"}],V=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],R=e.computed(()=>d.vaultId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),Q=e.computed(()=>{var s,l;return(l=te.form[(s=d.config)==null?void 0:s.app])==null?void 0:l.edit}),X=e.computed(()=>R.value===_.EntityBaseFormType.Edit&&d.config.app==="kongManager"),J=e.computed(()=>d.config.app==="konnect"||_.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),P=()=>{var s;U.push(((s=d.config)==null?void 0:s.cancelRoute)||{name:"vault-list"})},Y=s=>{c("loading",s)},I=s=>{c("error",s)},W=s=>{switch(s){case t.KONNECT:return L.KongIcon;case t.ENV:return L.CodeIcon;case t.AWS:return L.AwsIcon;case t.GCP:return L.GoogleCloudIcon;case t.HCV:return L.HashicorpIcon;case t.AZURE:return L.AzureIcon;case t.CONJUR:return L.ConjourIcon}},G=s=>{switch(s){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},b=s=>{var k,f,O,ne,ie,n;i.fields.prefix=((k=s==null?void 0:s.item)==null?void 0:k.prefix)||(s==null?void 0:s.prefix)||"",i.fields.description=((f=s==null?void 0:s.item)==null?void 0:f.description)||(s==null?void 0:s.description)||"";const l=((O=s==null?void 0:s.item)==null?void 0:O.tags)||(s==null?void 0:s.tags)||[];i.fields.tags=(l==null?void 0:l.join(", "))||"",Object.assign(g,i.fields);const T=((ne=s==null?void 0:s.item)==null?void 0:ne.config)||(s==null?void 0:s.config)||null;T&&(Object.keys(T).length||(s==null?void 0:s.name)===t.KONNECT)?(u.value=((ie=s==null?void 0:s.item)==null?void 0:ie.name)||(s==null?void 0:s.name)||"",w.value=u.value,F.value=((n=s==null?void 0:s.config)==null?void 0:n.config_store_id)||void 0,Object.assign(o[u.value],T),Object.assign(Z[u.value],T)):i.errorMessage="Error loading vault config"},h=s=>s===""||s==null,v=e.computed(()=>u.value===t.HCV?!Object.keys(o[t.HCV]).filter(s=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file","oauth2_audiences","aws_login_path","aws_sts_endpoint_url","aws_assume_role_arn","aws_role_session_name","azure_login_path","gcp_login_path"].includes(s)||o[t.HCV].auth_method!==m.K8S&&(s==="kube_role"||s==="kube_api_token_file")||!d.config.hcvCspAuthMethodsAvailable&&["aws_auth_role","aws_auth_region","aws_auth_nonce","aws_access_key_id","aws_secret_access_key","aws_login_path","aws_sts_endpoint_url","aws_assume_role_arn","aws_role_session_name","azure_auth_role","azure_login_path","gcp_auth_role","gcp_login_path","gcp_service_account","gcp_jwt_exp"].includes(s)||![m.AWS_IAM,m.AWS_EC2].includes(o[t.HCV].auth_method)&&s==="aws_auth_role"||o[t.HCV].auth_method!==m.AWS_IAM&&["aws_auth_region","aws_access_key_id","aws_secret_access_key"].includes(s)||o[t.HCV].auth_method===m.AWS_IAM&&["aws_access_key_id","aws_secret_access_key"].includes(s)||o[t.HCV].auth_method!==m.AWS_EC2&&s==="aws_auth_nonce"||o[t.HCV].auth_method!==m.AZURE&&s==="azure_auth_role"||![m.GCP_GCE,m.GCP_IAM].includes(o[t.HCV].auth_method)&&s==="gcp_auth_role"||o[t.HCV].auth_method!==m.GCP_IAM&&["gcp_service_account","gcp_jwt_exp"].includes(s)||o[t.HCV].auth_method!==m.TOKEN&&s==="token"||o[t.HCV].auth_method!==m.APP_ROLE&&(s==="approle_role_id"||s==="approle_response_wrapping")||o[t.HCV].auth_method===m.APP_ROLE&&s==="approle_response_wrapping"&&typeof o[u.value][s]=="boolean"||o[t.HCV].auth_method!==m.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(s)||o[t.HCV].auth_method!==m.JWT&&["oauth2_client_id","oauth2_client_secret","jwt_role","oauth2_token_endpoint"].includes(s)?!1:h(o[u.value][s])).length:u.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(s=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:h(o[u.value][s])).length:u.value===t.AWS?!Object.keys(o[t.AWS]).filter(s=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(s)?!1:h(o[u.value][s])).length:!Object.keys(o[u.value]).filter(s=>["ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:h(o[u.value][s])).length),H=e.computed(()=>!!i.fields.prefix&&v.value),ee=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(g)||u.value!==w.value||JSON.stringify(o[u.value])!==JSON.stringify(Z[u.value])),$=e.computed(()=>{var l,T;let s=`${d.config.apiBaseUrl}${te.form[d.config.app][R.value]}`;return d.config.app==="konnect"&&(s=s.replace(/{controlPlaneId}/gi,((l=d.config)==null?void 0:l.controlPlaneId)||"")),s.replace(/\/{workspace}/gi,(T=d.config)!=null&&T.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.vaultId??"")}),E=e.computed(()=>{var ie,n;const s=parseInt(String(o[t.HCV].gcp_jwt_exp),10),l={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,...d.config.hcvSslVerifyAvailable&&{ssl_verify:o[t.HCV].ssl_verify??!0},auth_method:o[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:o[t.HCV].base64_decode},...o[t.HCV].auth_method===m.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===m.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===m.AWS_IAM&&{aws_auth_role:o[t.HCV].aws_auth_role||void 0,aws_auth_region:o[t.HCV].aws_auth_region||void 0,aws_login_path:o[t.HCV].aws_login_path||void 0,aws_access_key_id:o[t.HCV].aws_access_key_id||void 0,aws_secret_access_key:o[t.HCV].aws_secret_access_key||void 0,aws_sts_endpoint_url:o[t.HCV].aws_sts_endpoint_url||void 0,aws_assume_role_arn:o[t.HCV].aws_assume_role_arn||void 0,aws_role_session_name:o[t.HCV].aws_role_session_name||void 0},...o[t.HCV].auth_method===m.AWS_EC2&&{aws_auth_role:o[t.HCV].aws_auth_role||void 0,aws_auth_nonce:o[t.HCV].aws_auth_nonce||void 0,aws_login_path:o[t.HCV].aws_login_path||void 0},...o[t.HCV].auth_method===m.AZURE&&{azure_auth_role:o[t.HCV].azure_auth_role||void 0,azure_login_path:o[t.HCV].azure_login_path||void 0},...o[t.HCV].auth_method===m.GCP_GCE&&{gcp_auth_role:o[t.HCV].gcp_auth_role||void 0,gcp_login_path:o[t.HCV].gcp_login_path||void 0},...o[t.HCV].auth_method===m.GCP_IAM&&{gcp_auth_role:o[t.HCV].gcp_auth_role||void 0,gcp_login_path:o[t.HCV].gcp_login_path||void 0,gcp_service_account:o[t.HCV].gcp_service_account||void 0,gcp_jwt_exp:Number.isNaN(s)?void 0:s},...o[t.HCV].auth_method===m.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},...o[t.HCV].auth_method===m.CERT&&{cert_auth_role_name:o[t.HCV].cert_auth_role_name,cert_auth_cert:o[t.HCV].cert_auth_cert,cert_auth_cert_key:o[t.HCV].cert_auth_cert_key},...o[t.HCV].auth_method===m.JWT&&{oauth2_audiences:o[t.HCV].oauth2_audiences||null,oauth2_client_id:o[t.HCV].oauth2_client_id,oauth2_client_secret:o[t.HCV].oauth2_client_secret,jwt_role:o[t.HCV].jwt_role,oauth2_token_endpoint:o[t.HCV].oauth2_token_endpoint}},T={...o[u.value],client_id:o[u.value].client_id||null,tenant_id:o[u.value].tenant_id||null},k={...o[u.value],endpoint_url:o[u.value].endpoint_url||null,assume_role_arn:o[u.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[u.value].sts_endpoint_url||null}:{}};let f=o[u.value];u.value===t.HCV?f=l:u.value===t.AZURE?f=T:u.value===t.AWS&&(f=k);let O={};if(![t.KONNECT,t.ENV].includes(u.value)){const se=o[u.value],ge=se.ttl,he=se.neg_ttl,be=se.resurrect_ttl;O={ttl:ge?parseInt(ge.toString(),10):null,neg_ttl:he?parseInt(he.toString(),10):null,resurrect_ttl:be?parseInt(be.toString(),10):null}}return{prefix:i.fields.prefix,description:i.fields.description||null,tags:(n=(ie=i.fields.tags.split(","))==null?void 0:ie.map(se=>String(se||"").trim()))==null?void 0:n.filter(se=>se!==""),name:u.value,config:{...f,...O}}}),ae=e.computed(()=>({...E.value,config:{...E.value.config,config_store_id:F.value}})),C=async()=>{var s,l;try{i.isReadonly=!0;const T=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((s=d.config)==null?void 0:s.controlPlaneId)||"").replace(/\/{workspace}/gi,(l=d.config)!=null&&l.workspace?`/${d.config.workspace}`:""),k=await N.post(T);return k==null?void 0:k.data.id}catch(T){i.errorMessage=y(T),c("error",T)}finally{i.isReadonly=!1}},A=async()=>{var s;try{i.isReadonly=!0;let l;R.value==="create"?u.value===t.KONNECT?(F.value=await C(),l=await N.post($.value,ae.value)):l=await N.post($.value,E.value):R.value==="edit"&&(u.value===t.KONNECT&&!F.value?(F.value=await C(),l=await N.put($.value,ae.value)):l=((s=d.config)==null?void 0:s.app)==="konnect"?await N.put($.value,ae.value):await N.patch($.value,E.value)),b(l==null?void 0:l.data),c("update",l==null?void 0:l.data)}catch(l){i.errorMessage=y(l),c("error",l)}finally{i.isReadonly=!1}};return(s,l)=>{const T=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),f=e.resolveComponent("KInput"),O=e.resolveComponent("KCheckbox"),ne=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.unref(_.EntityBaseForm),{"can-submit":H.value&&ee.value,config:r.config,"edit-id":r.vaultId,"entity-type":e.unref(_.SupportedEntityType).Vault,"error-message":i.errorMessage,"fetch-url":Q.value,"form-fields":E.value,"is-readonly":i.isReadonly,onCancel:P,"onFetch:error":I,"onFetch:success":b,onLoading:Y,onSubmit:A},{default:e.withCtx(()=>[e.createVNode(e.unref(_.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Se,[e.createVNode(k,{modelValue:u.value,"onUpdate:modelValue":l[0]||(l[0]=n=>u.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:j.value,readonly:i.isReadonly},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W(n.value)))),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(T,{placement:"top",text:n.disabled?e.unref(a)("form.unavailable"):""},{default:e.withCtx(()=>[e.createElementVNode("div",{class:"provider-item","data-testid":`vault-form-provider-${n.value}`},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(W(n.value)))),e.createElementVNode("div",He,[e.createElementVNode("span",Re,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Ue,e.toDisplayString(G(n.value)),1)])],8,Ie)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items","readonly"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[u.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(f,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":l[1]||(l[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix",label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":l[2]||(l[2]=n=>o[e.unref(t).ENV].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(k,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":l[3]||(l[3]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:K,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":l[4]||(l[4]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url",label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":l[5]||(l[5]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn",label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":l[6]||(l[6]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name",label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),r.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(f,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":l[7]||(l[7]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url",label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:1,modelValue:o[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":l[8]||(l[8]=n=>o[e.unref(t).AWS].base64_decode=n),"data-testid":"vault-form-config-aws-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(f,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":l[9]||(l[9]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id",label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),readonly:i.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(p),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":l[10]||(l[10]=n=>o[e.unref(t).GCP].base64_decode=n),"data-testid":"vault-form-config-gcp-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.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(k,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":l[11]||(l[11]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:D,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),r.config.hcvSslVerifyAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).HCV].ssl_verify,"onUpdate:modelValue":l[12]||(l[12]=n=>o[e.unref(t).HCV].ssl_verify=n),"data-testid":"vault-form-config-hcv-ssl_verify",label:e.unref(a)("form.config.hcv.fields.ssl_verify.label"),readonly:i.isReadonly},null,8,["modelValue","label","readonly"])):e.createCommentVNode("",!0),e.createVNode(f,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":l[13]||(l[13]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host",label:e.unref(a)("form.config.hcv.fields.host.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":l[14]||(l[14]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port",label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":l[15]||(l[15]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount",label:e.unref(a)("form.config.hcv.fields.mount.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":l[16]||(l[16]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:V,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":l[17]||(l[17]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace",label:e.unref(a)("form.config.hcv.fields.namespace.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":l[18]||(l[18]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(m).TOKEN,value:e.unref(m).TOKEN},{label:e.unref(m).K8S,value:e.unref(m).K8S},...r.config.hcvAppRoleMethodAvailable?[{label:e.unref(m).APP_ROLE,value:e.unref(m).APP_ROLE}]:[],...r.config.hcvCertMethodAvailable?[{label:e.unref(m).CERT,value:e.unref(m).CERT}]:[],...r.config.hcvJwtMethodAvailable?[{label:e.unref(m).JWT,value:e.unref(m).JWT}]:[],...r.config.hcvCspAuthMethodsAvailable?[{label:e.unref(m).AWS_IAM,value:e.unref(m).AWS_IAM},{label:e.unref(m).AWS_EC2,value:e.unref(m).AWS_EC2},{label:e.unref(m).AZURE,value:e.unref(m).AZURE},{label:e.unref(m).GCP_GCE,value:e.unref(m).GCP_GCE},{label:e.unref(m).GCP_IAM,value:e.unref(m).GCP_IAM}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(m).TOKEN?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":l[19]||(l[19]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token",label:e.unref(a)("form.config.hcv.fields.token.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).K8S?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":l[20]||(l[20]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role",label:e.unref(a)("form.config.hcv.fields.kube_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":l[21]||(l[21]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path",label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":l[22]||(l[22]=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",label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AWS_IAM?(e.openBlock(),e.createElementBlock("div",Me,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_role,"onUpdate:modelValue":l[23]||(l[23]=n=>o[e.unref(t).HCV].aws_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_role",label:e.unref(a)("form.config.hcv.fields.aws_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_region,"onUpdate:modelValue":l[24]||(l[24]=n=>o[e.unref(t).HCV].aws_auth_region=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_region",label:e.unref(a)("form.config.hcv.fields.aws_auth_region.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_login_path,"onUpdate:modelValue":l[25]||(l[25]=n=>o[e.unref(t).HCV].aws_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_login_path",label:e.unref(a)("form.config.hcv.fields.aws_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_access_key_id,"onUpdate:modelValue":l[26]||(l[26]=n=>o[e.unref(t).HCV].aws_access_key_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_access_key_id",label:e.unref(a)("form.config.hcv.fields.aws_access_key_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_secret_access_key,"onUpdate:modelValue":l[27]||(l[27]=n=>o[e.unref(t).HCV].aws_secret_access_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_secret_access_key",label:e.unref(a)("form.config.hcv.fields.aws_secret_access_key.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_sts_endpoint_url,"onUpdate:modelValue":l[28]||(l[28]=n=>o[e.unref(t).HCV].aws_sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_sts_endpoint_url",label:e.unref(a)("form.config.hcv.fields.aws_sts_endpoint_url.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_assume_role_arn,"onUpdate:modelValue":l[29]||(l[29]=n=>o[e.unref(t).HCV].aws_assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_assume_role_arn",label:e.unref(a)("form.config.hcv.fields.aws_assume_role_arn.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_role_session_name,"onUpdate:modelValue":l[30]||(l[30]=n=>o[e.unref(t).HCV].aws_role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_role_session_name",label:e.unref(a)("form.config.hcv.fields.aws_role_session_name.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AWS_EC2?(e.openBlock(),e.createElementBlock("div",Pe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_role,"onUpdate:modelValue":l[31]||(l[31]=n=>o[e.unref(t).HCV].aws_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_role",label:e.unref(a)("form.config.hcv.fields.aws_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_auth_nonce,"onUpdate:modelValue":l[32]||(l[32]=n=>o[e.unref(t).HCV].aws_auth_nonce=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_auth_nonce",label:e.unref(a)("form.config.hcv.fields.aws_auth_nonce.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].aws_login_path,"onUpdate:modelValue":l[33]||(l[33]=n=>o[e.unref(t).HCV].aws_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-aws_login_path",label:e.unref(a)("form.config.hcv.fields.aws_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).AZURE?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].azure_auth_role,"onUpdate:modelValue":l[34]||(l[34]=n=>o[e.unref(t).HCV].azure_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-azure_auth_role",label:e.unref(a)("form.config.hcv.fields.azure_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].azure_login_path,"onUpdate:modelValue":l[35]||(l[35]=n=>o[e.unref(t).HCV].azure_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-azure_login_path",label:e.unref(a)("form.config.hcv.fields.azure_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).GCP_GCE?(e.openBlock(),e.createElementBlock("div",Fe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_auth_role,"onUpdate:modelValue":l[36]||(l[36]=n=>o[e.unref(t).HCV].gcp_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_auth_role",label:e.unref(a)("form.config.hcv.fields.gcp_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_login_path,"onUpdate:modelValue":l[37]||(l[37]=n=>o[e.unref(t).HCV].gcp_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_login_path",label:e.unref(a)("form.config.hcv.fields.gcp_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"])])):r.config.hcvCspAuthMethodsAvailable&&o[e.unref(t).HCV].auth_method===e.unref(m).GCP_IAM?(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_auth_role,"onUpdate:modelValue":l[38]||(l[38]=n=>o[e.unref(t).HCV].gcp_auth_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_auth_role",label:e.unref(a)("form.config.hcv.fields.gcp_auth_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_login_path,"onUpdate:modelValue":l[39]||(l[39]=n=>o[e.unref(t).HCV].gcp_login_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_login_path",label:e.unref(a)("form.config.hcv.fields.gcp_login_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_service_account,"onUpdate:modelValue":l[40]||(l[40]=n=>o[e.unref(t).HCV].gcp_service_account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_service_account",label:e.unref(a)("form.config.hcv.fields.gcp_service_account.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].gcp_jwt_exp,"onUpdate:modelValue":l[41]||(l[41]=n=>o[e.unref(t).HCV].gcp_jwt_exp=n),autocomplete:"off","data-testid":"vault-form-config-hcv-gcp_jwt_exp",label:e.unref(a)("form.config.hcv.fields.gcp_jwt_exp.label"),readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Ke,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":l[42]||(l[42]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path",label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":l[43]||(l[43]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id",label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":l[44]||(l[44]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id",label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":l[45]||(l[45]=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",label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(O,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":l[46]||(l[46]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):o[e.unref(t).HCV].auth_method===e.unref(m).CERT?(e.openBlock(),e.createElementBlock("div",De,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":l[47]||(l[47]=n=>o[e.unref(t).HCV].cert_auth_role_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_role_name",label:e.unref(a)("form.config.hcv.fields.cert_auth_role_name.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(ne,{modelValue:o[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":l[48]||(l[48]=n=>o[e.unref(t).HCV].cert_auth_cert=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(ne,{modelValue:o[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":l[49]||(l[49]=n=>o[e.unref(t).HCV].cert_auth_cert_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert_key",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert_key.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(m).JWT?(e.openBlock(),e.createElementBlock("div",Oe,[e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_client_id,"onUpdate:modelValue":l[50]||(l[50]=n=>o[e.unref(t).HCV].oauth2_client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_id",label:e.unref(a)("form.config.hcv.fields.oauth2_client_id.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_client_secret,"onUpdate:modelValue":l[51]||(l[51]=n=>o[e.unref(t).HCV].oauth2_client_secret=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_secret",label:e.unref(a)("form.config.hcv.fields.oauth2_client_secret.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].jwt_role,"onUpdate:modelValue":l[52]||(l[52]=n=>o[e.unref(t).HCV].jwt_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-jwt_role",label:e.unref(a)("form.config.hcv.fields.jwt_role.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.jwt_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_token_endpoint,"onUpdate:modelValue":l[53]||(l[53]=n=>o[e.unref(t).HCV].oauth2_token_endpoint=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_token_endpoint",label:e.unref(a)("form.config.hcv.fields.oauth2_token_endpoint.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).HCV].oauth2_audiences,"onUpdate:modelValue":l[54]||(l[54]=n=>o[e.unref(t).HCV].oauth2_audiences=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_audiences",label:e.unref(a)("form.config.hcv.fields.oauth2_audiences.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.oauth2_audiences.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])])):e.createCommentVNode("",!0),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:11,modelValue:o[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":l[55]||(l[55]=n=>o[e.unref(t).HCV].base64_decode=n),"data-testid":"vault-form-config-hcv-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(f,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":l[56]||(l[56]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location",label:e.unref(a)("form.config.azure.fields.location.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":l[57]||(l[57]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri",label:e.unref(a)("form.config.azure.fields.vault_uri.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":l[58]||(l[58]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix",label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":l[59]||(l[59]=n=>o[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:z,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":l[60]||(l[60]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id",label:e.unref(a)("form.config.azure.fields.client_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":l[61]||(l[61]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id",label:e.unref(a)("form.config.azure.fields.tenant_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":l[62]||(l[62]=n=>o[e.unref(t).AZURE].base64_decode=n),"data-testid":"vault-form-config-azure-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":l[63]||(l[63]=n=>o[e.unref(t).CONJUR].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url",label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].login,"onUpdate:modelValue":l[64]||(l[64]=n=>o[e.unref(t).CONJUR].login=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login",label:e.unref(a)("form.config.conjur.fields.login.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.login.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].account,"onUpdate:modelValue":l[65]||(l[65]=n=>o[e.unref(t).CONJUR].account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-account",label:e.unref(a)("form.config.conjur.fields.account.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.account.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(f,{modelValue:o[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":l[66]||(l[66]=n=>o[e.unref(t).CONJUR].api_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_key",label:e.unref(a)("form.config.conjur.fields.api_key.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.api_key.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),r.config.base64FieldAvailable?(e.openBlock(),e.createBlock(O,{key:0,modelValue:o[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":l[67]||(l[67]=n=>o[e.unref(t).CONJUR].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),r.config.ttl?(e.openBlock(),e.createElementBlock("div",qe,[q.value?(e.openBlock(),e.createBlock(ie,{key:0,class:"advanced-fields-collapse","data-testid":"advanced-fields-collapse","trigger-alignment":"leading","trigger-label":e.unref(a)("form.config.advancedFields.title")},{default:e.withCtx(()=>[e.createElementVNode("div",je,[e.createElementVNode("div",ze,[e.createVNode(f,{modelValue:o[u.value].ttl,"onUpdate:modelValue":l[68]||(l[68]=n=>o[u.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ge,[e.createVNode(f,{modelValue:o[u.value].neg_ttl,"onUpdate:modelValue":l[69]||(l[69]=n=>o[u.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",Le,[e.createElementVNode("div",Je,[e.createVNode(f,{modelValue:o[u.value].resurrect_ttl,"onUpdate:modelValue":l[70]||(l[70]=n=>o[u.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("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(_.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(f,{modelValue:i.fields.prefix,"onUpdate:modelValue":l[71]||(l[71]=n=>i.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(ne,{modelValue:i.fields.description,"onUpdate:modelValue":l[72]||(l[72]=n=>i.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:i.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(f,{modelValue:i.fields.tags,"onUpdate:modelValue":l[73]||(l[73]=n=>i.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-28247daf"]]),Qe={class:"kong-ui-vault-entity-config-card"},_e="************",Ye=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string"||!r.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(r){const x=r,d=["token","approle_secret_id","api_key","aws_access_key_id","aws_secret_access_key","aws_auth_nonce"],c=e.computed(()=>{var g,u;return(u=te.form[(g=x.config)==null?void 0:g.app])==null?void 0:u.edit}),{i18n:{t:p}}=re.useI18n(),{convertKeyToTitle:a}=_.useStringHelpers(),{getPropValue:U}=_.useHelpers(),N=e.ref({id:{},name:{label:p("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:_.ConfigurationSchemaSection.Basic},description:{order:6,section:_.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:_.ConfigurationSchemaType.Json}}),y=g=>{const u={...g.config};return d.forEach(w=>{w in u&&(u[w]=_e)}),{...g,config:u}},i=g=>{var u,w;return((w=(u=N.value)==null?void 0:u[g])==null?void 0:w.label)||a(g)};return(g,u)=>(e.openBlock(),e.createElementBlock("div",Qe,[e.createVNode(e.unref(_.EntityBaseConfigCard),{"code-block-record-formatter":y,config:r.config,"config-card-doc":r.configCardDoc,"config-schema":N.value,"entity-type":e.unref(_.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":r.hideTitle,"onFetch:error":u[0]||(u[0]=w=>g.$emit("fetch:error",w)),"onFetch:success":u[1]||(u[1]=w=>g.$emit("fetch:success",w)),onLoading:u[2]||(u[2]=w=>g.$emit("loading",w))},{config:e.withCtx(({rowValue:w})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(w).sort(),F=>(e.openBlock(),e.createBlock(e.unref(_.ConfigCardItem),{key:F,item:{key:F,value:d.includes(F)?_e:e.unref(U)(F,w),label:i(F)}},null,8,["item"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),Xe="/v2/control-planes/{controlPlaneId}/core-entities/{workspace}",fe="/v2/control-planes/{controlPlaneId}/{workspace}/config-stores",le={getVault:{konnect:`${Xe}/vaults/{id}`},list:{konnect:`${fe}/{id}/secrets`},form:{konnect:{create:`${fe}/{id}/secrets`,edit:`${fe}/{id}/secrets/{secretId}`}}},et={class:"table-content-overflow-wrapper"},tt=oe(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:r=>!(!r||(r==null?void 0:r.app)!=="konnect"||!r.createRoute||!r.getEditRoute)},configStoreId:{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(r,{emit:x}){var Y;const d=x,c=r,{i18n:{t:p,formatUnixTimeStamp:a}}=re.useI18n(),{axiosInstance:U}=_.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:p("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:p("secrets.list.table_headers.updated_at"),sortable:!1}},i=I=>({"data-testid":I.key}),g=e.computed(()=>{var I,W;return`${c.config.apiBaseUrl}${le.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((I=c.config)==null?void 0:I.controlPlaneId)||"").replace(/\/{workspace}/gi,(W=c.config)!=null&&W.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,c.configStoreId||"")}),u=e.ref(""),w={isExactMatch:!0,placeholder:p("search.placeholder_for_secrets.konnect")},{fetcher:F,fetcherState:q,fetcherCacheKey:j}=_.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),M=()=>{u.value=""},o=e.ref(null),Z=I=>({label:p("actions.edit"),to:c.config.getEditRoute(I)}),K=e.ref(void 0),z=e.ref(!1),D=e.ref(!1),V=e.ref(""),R=_.useDeleteUrlBuilder(c.config,g.value),Q=I=>{K.value=I,z.value=!0},X=()=>{z.value=!1},J=async()=>{var I,W,G;if((I=K.value)!=null&&I.key){D.value=!0;try{await U.delete(R(K.value.key)),D.value=!1,z.value=!1,j.value++,d("delete:success",K.value)}catch(b){V.value=((G=(W=b.response)==null?void 0:W.data)==null?void 0:G.message)||b.message||p("errors.delete"),d("error",b)}finally{D.value=!1}}};e.watch(q,I=>{var W,G,b;if(I.status===_.FetcherStatus.Error){o.value={title:p("errors.general")},(b=(G=(W=I.error)==null?void 0:W.response)==null?void 0:G.data)!=null&&b.message&&(o.value.message=I.error.response.data.message),d("error",I.error);return}o.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${p("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:p("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(P.value.title=p("secrets.list.empty_state.title"),P.value.ctaText=p("secrets.list.toolbar_actions.new_secret"))}),(I,W)=>{const G=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(_.EntityBaseTable),{"cache-identifier":r.cacheIdentifier,"disable-sorting":"","empty-state-options":P.value,"enable-entity-actions":"","error-message":o.value,fetcher:e.unref(F),"fetcher-cache-key":e.unref(j),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:u.value,"row-attributes":i,"table-headers":e.unref(y),onClearSearchInput:M},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(_.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":W[0]||(W[0]=h=>u.value=h),config:w},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canCreate()},{default:e.withCtx(()=>[e.createVNode(G,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:r.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(L.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(p)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:h})=>[e.createElementVNode("div",et,[e.createElementVNode("b",null,e.toDisplayString(h??"-"),1)])]),updated_at:e.withCtx(({rowValue:h})=>[e.createElementVNode("span",null,e.toDisplayString(h?e.unref(a)(new Date(h).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:h})=>[e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canEdit(h)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:Z(h.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(_.PermissionsWrapper),{"auth-function":()=>r.canDelete(h)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:v=>Q(h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(p)("actions.delete")),1)]),_:1},8,["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(_.EntityDeleteModal),{"action-pending":D.value,description:e.unref(p)("delete.description"),"entity-name":K.value&&K.value.key,"entity-type":e.unref(_.EntityTypes).Secret,error:V.value,title:e.unref(p)("delete.title_for_secret"),visible:z.value,onCancel:X,onProceed:J},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-21f34f6e"]]),ot={class:"kong-ui-entities-secrets-list"},lt=oe(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:r=>!(!r||(r==null?void 0:r.app)!=="konnect"||!r.createRoute||!r.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(r,{emit:x}){var i;const d=x,c=r,p=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:U}=_.useAxios((i=c.config)==null?void 0:i.axiosRequestConfig),N=e.ref(""),y=e.computed(()=>{var g,u;return`${c.config.apiBaseUrl}${le.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/\/{workspace}/gi,(u=c.config)!=null&&u.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var g;try{const{data:u}=await U.get(y.value);N.value=(g=u==null?void 0:u.config)==null?void 0:g.config_store_id}catch(u){d("error",u)}}),(g,u)=>(e.openBlock(),e.createElementBlock("div",ot,[N.value?(e.openBlock(),e.createBlock(tt,e.mergeProps({key:0},c,{"config-store-id":N.value,"onDelete:success":a,onError:p}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-630a2cea"]]),at=oe(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:r=>!(!r||r.app!=="konnect"||!r.controlPlaneId||!r.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:x}){var D;const d=r,c=x,{i18n:{t:p}}=re.useI18n(),a=ce.useRouter(),{axiosInstance:U}=_.useAxios((D=d.config)==null?void 0:D.axiosRequestConfig),{getMessageFromError:N}=_.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),i=e.reactive({key:"",value:""}),g=e.computed(()=>{var V,R;return(R=le.form[(V=d.config)==null?void 0:V.app])==null?void 0:R.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),u=()=>{var V;a.push(((V=d.config)==null?void 0:V.cancelRoute)||{name:"secret-list"})},w=V=>{c("loading",V)},F=V=>{c("error",V)},q=V=>{var R,Q;y.fields.key=((R=V==null?void 0:V.item)==null?void 0:R.key)||(V==null?void 0:V.key)||"",y.fields.value=((Q=V==null?void 0:V.item)==null?void 0:Q.value)||(V==null?void 0:V.value)||"",Object.assign(i,y.fields)},j=e.computed(()=>d.secretId?_.EntityBaseFormType.Edit:_.EntityBaseFormType.Create),M=e.computed(()=>{var V,R;return`${d.config.apiBaseUrl}${le.form[d.config.app][j.value]}`.replace(/{controlPlaneId}/gi,((V=d.config)==null?void 0:V.controlPlaneId)||"").replace(/\/{workspace}/gi,(R=d.config)!=null&&R.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),o=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(i)),K=e.computed(()=>({key:y.fields.key,value:y.fields.value})),z=async()=>{try{y.readonly=!0;let V;j.value==="create"?V=await U.post(M.value,K.value):j.value==="edit"&&(V=await U.put(M.value,K.value)),q(V==null?void 0:V.data),c("update",V==null?void 0:V.data)}catch(V){y.errorMessage=N(V),c("error",V)}finally{y.readonly=!1}};return(V,R)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),J=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(_.EntityBaseForm),{"can-submit":o.value&&Z.value,config:r.config,"edit-id":r.secretId,"entity-type":e.unref(_.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":K.value,"is-readonly":y.readonly,onCancel:u,"onFetch:error":F,"onFetch:success":q,onLoading:w,onSubmit:z},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(_.EntityFormSection),{description:e.unref(p)("secrets.form.info.description"),"has-divider":"",title:e.unref(p)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":R[0]||(R[0]=P=>y.fields.key=P),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:j.value===e.unref(_.EntityBaseFormType).Edit,label:e.unref(p)("secrets.form.fields.key.label"),placeholder:e.unref(p)("secrets.form.fields.key.placeholder"),readonly:y.readonly,required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder","readonly"]),e.createVNode(X,{modelValue:y.fields.value,"onUpdate:modelValue":R[1]||(R[1]=P=>y.fields.value=P),modelModifiers:{trim:!0},autocomplete:"off","character-limit":!1,"data-testid":"secret-form-value",label:e.unref(p)("secrets.form.fields.value.label"),placeholder:e.unref(p)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(J,{appearance:"warning",message:e.unref(p)("secrets.form.hint")},null,8,["message"])]),_:1},8,["description","title"])])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])}}}),[["__scopeId","data-v-a80439b9"]]),rt={class:"kong-ui-entities-secret-form"},nt=oe(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:r=>!(!r||r.app!=="konnect"||!r.controlPlaneId||!r.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(r,{emit:x}){var g;const d=r,c=x,p=u=>{c("update",u)},a=u=>{c("error",u)},U=u=>{c("loading",u)},{axiosInstance:N}=_.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),i=e.computed(()=>{var u,w;return`${d.config.apiBaseUrl}${le.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((u=d.config)==null?void 0:u.controlPlaneId)||"").replace(/\/{workspace}/gi,(w=d.config)!=null&&w.workspace?`/${d.config.workspace}`:"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var u;try{const{data:w}=await N.get(i.value);y.value=(u=w==null?void 0:w.config)==null?void 0:u.config_store_id}catch(w){c("error",w)}}),(u,w)=>(e.openBlock(),e.createElementBlock("div",rt,[y.value?(e.openBlock(),e.createBlock(at,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:U,onUpdate:p}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-35c1f665"]]),it={class:"vault-secret-picker-provider"},st=oe(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(r,{emit:x}){const d=r,c=x,{i18n:{t:p},i18nT:a}=re.useI18n();return(U,N)=>(e.openBlock(),e.createElementBlock("div",it,[e.createVNode(e.unref(a),{keypath:"vault_secret_picker.provider.complete_action",scope:"global"},{cta:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass({"vault-secret-picker-provider-action":!0,disabled:d.disabled}),onClick:N[0]||(N[0]=()=>!d.disabled&&c("open",d.value,d.update))},e.toDisplayString(e.unref(p)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-d135d1d0"]]),ct=r=>{let x=r.trim();if(!x.startsWith("{")||!x.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(x=x.substring(1,x.length-1).trim(),!x.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const d=new URL(`http://${x.substring(8)}`);if(!d)throw new Error("Invalid secret reference: must have a vault prefix");const c=d.host,[,p,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:p||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},dt=r=>{if(!r.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let x=`vault://${r.vaultPrefix}`;return r.secretId&&(x=`${x}/${r.secretId}`),r.optionalSecretKey&&(x=`${x}/${r.optionalSecretKey}`),`{${x}}`},ut={key:1,class:"inputs-wrapper"},ft={"data-testid":"no-search-results"},pt={class:"k-select-selected-item-label"},mt={class:"vault-secret-picker-vault-dropdown-item"},_t={class:"select-item-label"},gt={class:"select-item-description"},ht={class:"select-item-description"},bt={"data-testid":"no-search-results"},yt=oe(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:r=>!(!r||!["konnect","kongManager"].includes(r==null?void 0:r.app)||r.app==="konnect"&&!r.controlPlaneId||r.app==="kongManager"&&typeof r.workspace!="string")},setup:{type:null,required:!1,default:!1},title:{type:String,required:!1,default:void 0},proceedButtonText:{type:String,required:!1,default:void 0},additionalDisabled:{type:Boolean,required:!1,default:!1}},emits:["proceed","cancel"],setup(r,{emit:x}){var G;const{i18n:{t:d}}=re.useI18n(),c=r,p=x,{axiosInstance:a}=_.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(G=c.config)==null?void 0:G.axiosRequestConfig}),U=e.ref(!1),N=e.ref(""),y=e.ref(""),i=e.ref(""),g=e.ref(),u=e.computed(()=>{var b,h;return c.config.app==="konnect"?le.list[c.config.app].replace(/{id}/gi,((h=(b=g.value)==null?void 0:b.config)==null?void 0:h.config_store_id)??""):"<not_applicable>"}),w=e.computed(()=>{if(j&&z)return d("vault_secret_picker.fetch_error.vaults_and_secrets");if(j)return d("vault_secret_picker.fetch_error.vaults");if(z)return d("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:F,loading:q,error:j,loadItems:M,results:o}=_.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:K,error:z,loadItems:D,results:V}=_.useDebouncedFilter(c.config,u,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),R=e.computed(()=>{var v;let b=!1;const h=((v=o.value)==null?void 0:v.map(H=>(H.prefix===N.value&&(b=!0),{label:H.prefix,value:H.prefix,vault:H})))??[];return!b&&g.value&&h.push({label:g.value.prefix,value:g.value.prefix,vault:g.value}),h}),Q=e.computed(()=>{var v;let b=!1;const h=((v=V.value)==null?void 0:v.map(H=>(H.key===y.value&&(b=!0),{label:H.key,value:H.key})))??[];return!b&&y.value&&h.push({label:y.value,value:y.value}),h}),X=e.computed(()=>{var b;return((b=g==null?void 0:g.value)==null?void 0:b.name)==="konnect"}),J=e.computed(()=>!!g.value&&!!y.value&&!c.additionalDisabled),P=b=>b.label?`${b.label} - (${b.vault.name} - ${b.vault.id})`:b.value,Y=b=>{var v,H;let h=`${c.config.apiBaseUrl}${te.form[c.config.app].edit}`;return c.config.app==="konnect"&&(h=h.replace(/{controlPlaneId}/gi,((v=c.config)==null?void 0:v.controlPlaneId)||"")),h.replace(/\/{workspace}/gi,(H=c.config)!=null&&H.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,b)},I=(b,h)=>{var v,H;return c.config.app!=="konnect"?"<not_applicable>":`${c.config.apiBaseUrl}${le.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi,((v=c.config)==null?void 0:v.controlPlaneId)||"").replace(/\/{workspace}/gi,(H=c.config)!=null&&H.workspace?`/${c.config.workspace}`:"").replace(/{id}/gi,h).replace(/{secretId}/gi,b)},W=()=>{p("proceed",dt({vaultPrefix:N.value,secretId:y.value||void 0,optionalSecretKey:i.value||void 0}))};return e.watch(()=>c.setup,async b=>{if(b!==!1){if(U.value=!0,N.value="",g.value=void 0,y.value="",i.value="",typeof b=="string"&&b.trim().length>0)try{let h,v="",H="",ee="";const $=ct(b),{data:E}=await a.get(Y($.vaultPrefix));if(E!=null&&E.name)if(h=E,v=$.vaultPrefix,h.name==="konnect"){if($.secretId){const{data:ae}=await a.get(I($.secretId,E.config.config_store_id));ae.key===$.secretId&&(H=$.secretId,ee=$.optionalSecretKey??"")}}else H=$.secretId??"",ee=$.optionalSecretKey??"";await e.nextTick(()=>{N.value=v,g.value=h,y.value=H,i.value=ee})}catch(h){console.debug(h)}U.value=!1,await M()}},{immediate:!0}),e.watch(N,async(b,h)=>{var v;U.value||b===h||(g.value=(v=R.value.find(H=>H.value===b))==null?void 0:v.vault,y.value="",i.value="")}),e.watch(u,async()=>{X.value&&await D()},{immediate:!0}),(b,h)=>{const v=e.resolveComponent("KEmptyState"),H=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),$=e.resolveComponent("KModal");return e.openBlock(),e.createBlock($,{"action-button-disabled":!J.value,"action-button-text":r.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:r.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:h[4]||(h[4]=()=>p("cancel")),onProceed:W},{default:e.withCtx(()=>[e.unref(j)||e.unref(z)?(e.openBlock(),e.createBlock(v,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:w.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ut,[e.renderSlot(b.$slots,"form-prefix",{},void 0,!0),e.createVNode(H,{modelValue:N.value,"onUpdate:modelValue":h[0]||(h[0]=E=>N.value=E),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:U.value,"enable-filtering":"","filter-function":()=>!0,items:R.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(d)("vault_secret_picker.vault.label"),loading:e.unref(q),placeholder:e.unref(d)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(F)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",ft,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:E})=>[e.createElementVNode("span",pt,e.toDisplayString(P(E)),1)]),"item-template":e.withCtx(({item:E})=>[e.createElementVNode("div",mt,[e.createElementVNode("span",_t,e.toDisplayString(E.label),1),e.createElementVNode("span",gt,e.toDisplayString(E.vault.name),1),e.createElementVNode("span",ht,e.toDisplayString(E.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),X.value?(e.openBlock(),e.createBlock(H,{key:0,modelValue:y.value,"onUpdate:modelValue":h[1]||(h[1]=E=>y.value=E),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:U.value||!g.value,"enable-filtering":"","filter-function":()=>!0,items:Q.value,"kpop-attributes":{"data-testid":"vault-secret-picker-secret-id-popover"},label:e.unref(d)("vault_secret_picker.secret_id.label"),loading:e.unref(K),placeholder:e.unref(d)("vault_secret_picker.secret_id.select_placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(Z)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",bt,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"])):(e.openBlock(),e.createBlock(ee,{key:1,modelValue:y.value,"onUpdate:modelValue":h[2]||(h[2]=E=>y.value=E),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:U.value||!g.value,label:e.unref(d)("vault_secret_picker.secret_id.label"),placeholder:e.unref(d)("vault_secret_picker.secret_id.input_placeholder"),required:"",type:"text"},null,8,["modelValue","disabled","label","placeholder"])),e.createVNode(ee,{modelValue:i.value,"onUpdate:modelValue":h[3]||(h[3]=E=>i.value=E),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:U.value||!g.value,help:e.unref(d)("vault_secret_picker.optional_secret_key.help"),label:e.unref(d)("vault_secret_picker.optional_secret_key.label"),placeholder:e.unref(d)("vault_secret_picker.optional_secret_key.placeholder"),type:"text"},null,8,["modelValue","disabled","help","label","placeholder"])]))]),_:3},8,["action-button-disabled","action-button-text","title","visible"])}}}),[["__scopeId","data-v-4d792760"]]);B.SecretForm=nt,B.SecretList=lt,B.VaultAuthMethods=m,B.VaultConfigCard=Ye,B.VaultForm=Ze,B.VaultList=Ee,B.VaultProviders=t,B.VaultSecretPicker=yt,B.VaultSecretPickerProvider=st,B.secretsEndpoints=le,B.vaultsEndpoints=te,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-vaults",
|
|
3
|
-
"version": "4.6.8
|
|
3
|
+
"version": "4.6.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-vaults.umd.js",
|
|
6
6
|
"module": "./dist/entities-vaults.es.js",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"axios": "^1.15.2",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.6.4 || ^5.0.6",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.47.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.47.1",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"axios": "^1.15.2",
|
|
36
36
|
"vue": "^3.5.33",
|
|
37
37
|
"vue-router": "^5.0.6",
|
|
38
|
-
"@kong-ui-public/entities-shared": "^3.47.
|
|
38
|
+
"@kong-ui-public/entities-shared": "^3.47.1",
|
|
39
39
|
"@kong-ui-public/i18n": "^2.4.6"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|