@kong-ui-public/entities-vaults 3.26.7 → 3.26.8-pr.2627.c4d4db7cb.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -879,8 +879,8 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
879
879
|
prefix: "",
|
|
880
880
|
description: "",
|
|
881
881
|
tags: ""
|
|
882
|
-
}), u = $(d.config.
|
|
883
|
-
...d.config.
|
|
882
|
+
}), u = $(d.config.app === "konnect" ? t.KONNECT : t.ENV), N = $(null), X = $(), Q = w(() => [t.AWS, t.GCP, t.HCV, t.AZURE, t.CONJUR].includes(u.value)), Y = w(() => [
|
|
883
|
+
...d.config.app === "konnect" ? [{
|
|
884
884
|
label: a("form.config.konnect.label"),
|
|
885
885
|
value: t.KONNECT
|
|
886
886
|
}] : [],
|
|
@@ -1921,7 +1921,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
1921
1921
|
]);
|
|
1922
1922
|
};
|
|
1923
1923
|
}
|
|
1924
|
-
}), Al = /* @__PURE__ */ me(el, [["__scopeId", "data-v-
|
|
1924
|
+
}), Al = /* @__PURE__ */ me(el, [["__scopeId", "data-v-b01b3bd3"]]), tl = { class: "kong-ui-vault-entity-config-card" }, Ul = /* @__PURE__ */ ue({
|
|
1925
1925
|
__name: "VaultConfigCard",
|
|
1926
1926
|
props: {
|
|
1927
1927
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -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,z,p,ue){"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"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"},cert_auth_cert:{label:"Cert"},cert_auth_cert_key:{label:"Cert Key"},cert_auth_role_name:{label:"Role Name"}}},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:"Conjur Vault",description:"Access secrets stored in Conjur Key Vault for Kong Gateway configuration.",fields:{endpoint_url:{label:"Conjur Server",tooltip:"The CyberArk Conjur backend url. Accepts http or https."},login:{label:"Workload Identity",tooltip:"Identity of the workload or host authenticating to Conjur. In this case Kong is the workload/host."},api_key:{label:"API Key",tooltip:"The API key issued to the workload."},account:{label:"Conjur Account",tooltip:"The Conjur account for which the token will be issued. This is the identifier provided during 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 _e(){const o=ue.createI18n("en-us",ye);return{i18n:o,i18nT:ue.i18nTComponent(o)}}const ne={useI18n:_e},de="/v2/control-planes/{controlPlaneId}/core-entities",pe="/v2/control-planes/{controlPlaneId}/config-stores",fe="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${pe}/{id}?force=true`},kongManager:{getAll:`${fe}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:pe,edit:`${de}/vaults/{id}`},kongManager:{create:`${fe}/vaults`,edit:`${fe}/vaults/{id}`}}},he={class:"kong-ui-entities-vaults-list"},Ve={class:"button-row"},ke={class:"table-content-overflow-wrapper"},Ce={class:"table-content-overflow-wrapper"},we=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.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(o,{emit:C}){var re;const d=C,c=o,{i18n:{t:u}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:A}=p.useAxios((re=c.config)==null?void 0:re.axiosRequestConfig),{hasRecords:w,handleStateChange:y}=p.useTableState(()=>O.value),s=e.computed(()=>w.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),f={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},U=f,W=e.computed(()=>{var N,E;let V=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"?V=V.replace(/{controlPlaneId}/gi,((N=c.config)==null?void 0:N.controlPlaneId)||""):c.config.app==="kongManager"&&(V=V.replace(/\/{workspace}/gi,(E=c.config)!=null&&E.workspace?`/${c.config.workspace}`:"")),V}),O=e.ref(""),q=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder_for_vaults.konnect")};const{prefix:N,name:E}=f;return{isExactMatch:!1,fields:{name:E,prefix:N},schema:c.config.filterSchema}}),{fetcher:$,fetcherState:l,fetcherCacheKey:Z}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),W),M=()=>{O.value=""},j=()=>{Z.value++},H=e.ref(null),_=async(V,N)=>{const E=V.id;if(!await N(E)){d("copy:error",{entity:V,field:"id",message:u("errors.copy")});return}d("copy:success",{entity:V,field:"id",message:u("copy.success",{val:E})})},v=async(V,N)=>{const E=JSON.stringify(V);if(!await N(E)){d("copy:error",{entity:V,message:u("errors.copy")});return}d("copy:success",{entity:V,message:u("copy.success_brief")})},Q=async V=>{var E;await((E=c.canRetrieve)==null?void 0:E.call(c,V))&&a.push(c.config.getViewRoute(V.id))},X=V=>({label:u("actions.view"),to:c.config.getViewRoute(V)}),G=V=>({label:u("actions.edit"),to:c.config.getEditRoute(V)}),P=e.ref(void 0),Y=e.ref(!1),S=e.ref(!1),D=e.ref(""),L=p.useDeleteUrlBuilder(c.config,W.value),b=V=>{P.value=V,Y.value=!0},m=()=>{Y.value=!1},R=async V=>{const{apiBaseUrl:N,app:E,controlPlaneId:i}=c.config,r=`${N}${te.list[E].deleteConfigStore}`.replace(/{controlPlaneId}/gi,i||"").replace(/{id}/gi,V);try{await A.delete(r)}catch{}},T=async()=>{var V,N,E,i;if((V=P.value)!=null&&V.id){S.value=!0;try{await A.delete(L(P.value.id)),c.config.app==="konnect"&&((N=P.value.config)!=null&&N.config_store_id)&&R(P.value.config.config_store_id),S.value=!1,Y.value=!1,Z.value++,d("delete:success",P.value)}catch(r){D.value=((i=(E=r.response)==null?void 0:E.data)==null?void 0:i.message)||r.message||u("errors.delete"),d("error",r)}finally{S.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(l,V=>{var N,E,i;if(V.status===p.FetcherStatus.Error){H.value={title:u("errors.general")},(i=(E=(N=V.error)==null?void 0:N.response)==null?void 0:E.data)!=null&&i.message&&(H.value.message=V.error.response.data.message),d("error",V.error);return}H.value=null});const F=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")}),x=e.ref(!1);return e.onBeforeMount(async()=>{x.value=await c.canCreate(),x.value&&(F.value.title=u("vaults.list.empty_state.title"),F.value.ctaText=u("actions.create"))}),(V,N)=>{const E=e.resolveComponent("KButton"),i=e.resolveComponent("KEmptyState"),r=e.resolveComponent("KDropdownItem"),K=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":H.value,fetcher:e.unref($),"fetcher-cache-key":e.unref(Z),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:O.value,"table-headers":e.unref(U),onClearSearchInput:M,"onClick:row":N[3]||(N[3]=k=>Q(k)),onSort:j,onState:e.unref(y)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:O.value,"onUpdate:modelValue":N[0]||(N[0]=k=>O.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[s.value?(e.openBlock(),e.createBlock(E,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:N[1]||(N[1]=k=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(E,{appearance:"primary","data-testid":"toolbar-add-vault",size:o.useActionOutside?"medium":"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("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",ke,[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",Ce,e.toDisplayString(k??"-"),1)]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(p.TableTags),{tags:k},null,8,["tags"])]),actions:e.withCtx(({row:k})=>[e.createVNode(K,null,{default:e.withCtx(({copyToClipboard:h})=>[e.createVNode(r,{"data-testid":"action-entity-copy-id",onClick:J=>_(k,h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(K,null,{default:e.withCtx(({copyToClipboard:h})=>[e.createVNode(r,{"data-testid":"action-entity-copy-json",onClick:J=>v(k,h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-view","has-divider":"",item:X(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-edit",item:G(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(r,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:h=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!O.value&&o.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(i,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(u)("vaults.list.empty_state_v2.description"),title:e.unref(u)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(z.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(E,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(E,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:N[2]||(N[2]=h=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=o.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("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(p.EntityDeleteModal),{"action-pending":S.value,description:e.unref(u)("delete.description"),"entity-name":P.value&&(P.value.prefix||P.value.id),"entity-type":e.unref(p.EntityTypes).Vault,error:D.value,title:e.unref(u)("delete.title"),visible:Y.value,onCancel:m,onProceed:T},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),le=(o,C)=>{const d=o.__vccOpts||o;for(const[c,u]of C)d[c]=u;return d},xe=le(we,[["__scopeId","data-v-0f7e9fff"]]);var t=(o=>(o.AWS="aws",o.GCP="gcp",o.HCV="hcv",o.ENV="env",o.AZURE="azure",o.KONNECT="konnect",o.CONJUR="conjur",o))(t||{}),I=(o=>(o.TOKEN="token",o.K8S="kubernetes",o.APP_ROLE="approle",o.CERT="cert",o))(I||{});const Ne={class:"kong-ui-entities-vault-form"},Ee={class:"vault-form-provider-cards-container"},Se=["data-testid"],Ie={class:"provider-item-title-container"},Ae={class:"provider-item-title"},Re={class:"provider-item-description"},Te={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Ue={key:0,class:"vault-form-config-auth-method-container"},ve={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},$e={key:3,class:"vault-form-config-auth-method-container"},Pe={key:6},Fe={class:"wrapper"},Ke={class:"item-50"},Me={class:"item-50"},He={class:"wrapper"},De={class:"item-100"},Oe=le(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var E;const d=o,c=C,{i18nT:u,i18n:{t:a}}=ne.useI18n(),A=ce.useRouter(),{axiosInstance:w}=p.useAxios((E=d.config)==null?void 0:E.axiosRequestConfig),{getMessageFromError:y}=p.useErrors(),s=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),f=e.ref(d.config.konnectConfigStoreAvailable?t.KONNECT:t.ENV),U=e.ref(null),W=e.ref(),O=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(f.value)),q=e.computed(()=>[...d.config.konnectConfigStoreAvailable?[{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:!G.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!G.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!G.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!G.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!G.value}]:[]]),$=d.config.base64FieldAvailable?{base64_decode:!1}:{},l=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:I.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",...$},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...$},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...$}}),Z=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:I.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,...$},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...$},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...$}}),M=[{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"}],j=[{label:"secrets",value:"secrets"}],H=[{label:"http",value:"http"},{label:"https",value:"https"}],_=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],v=e.computed(()=>d.vaultId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var i,r;return(r=te.form[(i=d.config)==null?void 0:i.app])==null?void 0:r.edit}),X=e.computed(()=>v.value===p.EntityBaseFormType.Edit&&d.config.app==="kongManager"),G=e.computed(()=>d.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),P=()=>{var i;A.push(((i=d.config)==null?void 0:i.cancelRoute)||{name:"vault-list"})},Y=i=>{c("loading",i)},S=i=>{c("error",i)},D=i=>{switch(i){case t.KONNECT:return z.KongIcon;case t.ENV:return z.CodeIcon;case t.AWS:return z.AwsIcon;case t.GCP:return z.GoogleCloudIcon;case t.HCV:return z.HashicorpIcon;case t.AZURE:return z.AzureIcon;case t.CONJUR:return z.ConjourIcon}},L=i=>{switch(i){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=i=>{var k,h,J,oe,ie,n;s.fields.prefix=((k=i==null?void 0:i.item)==null?void 0:k.prefix)||(i==null?void 0:i.prefix)||"",s.fields.description=((h=i==null?void 0:i.item)==null?void 0:h.description)||(i==null?void 0:i.description)||"";const r=((J=i==null?void 0:i.item)==null?void 0:J.tags)||(i==null?void 0:i.tags)||[];s.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign(g,s.fields);const K=((oe=i==null?void 0:i.item)==null?void 0:oe.config)||(i==null?void 0:i.config)||null;K&&(Object.keys(K).length||(i==null?void 0:i.name)===t.KONNECT)?(f.value=((ie=i==null?void 0:i.item)==null?void 0:ie.name)||(i==null?void 0:i.name)||"",U.value=f.value,W.value=((n=i==null?void 0:i.config)==null?void 0:n.config_store_id)||void 0,Object.assign(l[f.value],K),Object.assign(Z[f.value],K)):s.errorMessage="Error loading vault config"},m=i=>i===""||i==null,R=e.computed(()=>f.value===t.HCV?!Object.keys(l[t.HCV]).filter(i=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(i)||l[t.HCV].auth_method!==I.K8S&&(i==="kube_role"||i==="kube_api_token_file")||l[t.HCV].auth_method!==I.TOKEN&&i==="token"||l[t.HCV].auth_method!==I.APP_ROLE&&(i==="approle_role_id"||i==="approle_response_wrapping")||l[t.HCV].auth_method===I.APP_ROLE&&i==="approle_response_wrapping"&&typeof l[f.value][i]=="boolean"||l[t.HCV].auth_method!==I.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(i)?!1:m(l[f.value][i])).length:f.value===t.AZURE?!Object.keys(l[t.AZURE]).filter(i=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:m(l[f.value][i])).length:f.value===t.AWS?!Object.keys(l[t.AWS]).filter(i=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(i)?!1:m(l[f.value][i])).length:!Object.keys(l[f.value]).filter(i=>["ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:m(l[f.value][i])).length),T=e.computed(()=>!!s.fields.prefix&&R.value),ee=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(g)||f.value!==U.value||JSON.stringify(l[f.value])!==JSON.stringify(Z[f.value])),F=e.computed(()=>{var r,K;let i=`${d.config.apiBaseUrl}${te.form[d.config.app][v.value]}`;return d.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=d.config)==null?void 0:r.controlPlaneId)||""):d.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(K=d.config)!=null&&K.workspace?`/${d.config.workspace}`:"")),i=i.replace(/{id}/gi,d.vaultId),i}),x=e.computed(()=>{var oe,ie;const i={protocol:l[t.HCV].protocol,host:l[t.HCV].host,port:parseInt(l[t.HCV].port.toString()),mount:l[t.HCV].mount,kv:l[t.HCV].kv,namespace:l[t.HCV].namespace||null,auth_method:l[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:l[t.HCV].base64_decode},...l[t.HCV].auth_method===I.TOKEN&&{token:l[t.HCV].token},...l[t.HCV].auth_method===I.K8S&&{kube_role:l[t.HCV].kube_role,kube_auth_path:l[t.HCV].kube_auth_path||void 0,kube_api_token_file:l[t.HCV].kube_api_token_file,token:null},...l[t.HCV].auth_method===I.APP_ROLE&&{approle_auth_path:l[t.HCV].approle_auth_path||void 0,approle_role_id:l[t.HCV].approle_role_id,approle_secret_id:l[t.HCV].approle_secret_id||void 0,approle_secret_id_file:l[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:l[t.HCV].approle_response_wrapping??!1},...l[t.HCV].auth_method===I.CERT&&{cert_auth_role_name:l[t.HCV].cert_auth_role_name,cert_auth_cert:l[t.HCV].cert_auth_cert,cert_auth_cert_key:l[t.HCV].cert_auth_cert_key}},r={...l[f.value],client_id:l[f.value].client_id||null,tenant_id:l[f.value].tenant_id||null},K={...l[f.value],endpoint_url:l[f.value].endpoint_url||null,assume_role_arn:l[f.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:l[f.value].sts_endpoint_url||null}:{}};let k=l[f.value];f.value===t.HCV?k=i:f.value===t.AZURE?k=r:f.value===t.AWS&&(k=K);let h={};if(![t.KONNECT,t.ENV].includes(f.value)){const n=l[f.value],me=n.ttl,ge=n.neg_ttl,be=n.resurrect_ttl;h={ttl:me?parseInt(me.toString(),10):null,neg_ttl:ge?parseInt(ge.toString(),10):null,resurrect_ttl:be?parseInt(be.toString(),10):null}}return{prefix:s.fields.prefix,description:s.fields.description||null,tags:(ie=(oe=s.fields.tags.split(","))==null?void 0:oe.map(n=>String(n||"").trim()))==null?void 0:ie.filter(n=>n!==""),name:f.value,config:{...k,...h}}}),re=e.computed(()=>({...x.value,config:{...x.value.config,config_store_id:W.value}})),V=async()=>{var i;try{s.isReadonly=!0;const r=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((i=d.config)==null?void 0:i.controlPlaneId)||""),K=await w.post(r);return K==null?void 0:K.data.id}catch(r){s.errorMessage=y(r),c("error",r)}finally{s.isReadonly=!1}},N=async()=>{var i;try{s.isReadonly=!0;let r;v.value==="create"?f.value===t.KONNECT?(W.value=await V(),r=await w.post(F.value,re.value)):r=await w.post(F.value,x.value):v.value==="edit"&&(f.value===t.KONNECT&&!W.value?(W.value=await V(),r=await w.put(F.value,re.value)):r=((i=d.config)==null?void 0:i.app)==="konnect"?await w.put(F.value,re.value):await w.patch(F.value,x.value)),b(r==null?void 0:r.data),c("update",r==null?void 0:r.data)}catch(r){s.errorMessage=y(r),c("error",r)}finally{s.isReadonly=!1}};return(i,r)=>{const K=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),h=e.resolveComponent("KInput"),J=e.resolveComponent("KCheckbox"),oe=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":T.value&&ee.value,config:o.config,"edit-id":o.vaultId,"entity-type":e.unref(p.SupportedEntityType).Vault,"error-message":s.errorMessage,"fetch-url":Q.value,"form-fields":x.value,"is-readonly":s.isReadonly,onCancel:P,"onFetch:error":S,"onFetch:success":b,onLoading:Y,onSubmit:N},{default:e.withCtx(()=>[e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ee,[e.createVNode(k,{modelValue:f.value,"onUpdate:modelValue":r[0]||(r[0]=n=>f.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:q.value,readonly:s.isReadonly},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(n.value)))),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(K,{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(D(n.value)))),e.createElementVNode("div",Ie,[e.createElementVNode("span",Ae,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Re,e.toDisplayString(L(n.value)),1)])],8,Se)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items","readonly"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[f.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(h,{modelValue:l[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":r[2]||(r[2]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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:l[e.unref(t).AWS].region,"onUpdate:modelValue":r[3]||(r[3]=n=>l[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:M,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:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[4]||(r[4]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[5]||(r[5]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[6]||(r[6]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),o.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(h,{key:0,modelValue:l[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[7]||(r[7]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:1,modelValue:l[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":r[8]||(r[8]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[9]||(r[9]=n=>l[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:s.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":r[10]||(r[10]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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:l[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[11]||(r[11]=n=>l[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:H,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].host,"onUpdate:modelValue":r[12]||(r[12]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].port,"onUpdate:modelValue":r[13]||(r[13]=n=>l[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:s.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].mount,"onUpdate:modelValue":r[14]||(r[14]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).HCV].kv,"onUpdate:modelValue":r[15]||(r[15]=n=>l[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:_,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[16]||(r[16]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[17]||(r[17]=n=>l[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(I).TOKEN,value:e.unref(I).TOKEN},{label:e.unref(I).K8S,value:e.unref(I).K8S},...o.config.hcvAppRoleMethodAvailable?[{label:e.unref(I).APP_ROLE,value:e.unref(I).APP_ROLE}]:[],...o.config.hcvCertMethodAvailable?[{label:e.unref(I).CERT,value:e.unref(I).CERT}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),l[e.unref(t).HCV].auth_method===e.unref(I).TOKEN?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].token,"onUpdate:modelValue":r[18]||(r[18]=n=>l[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:s.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):l[e.unref(t).HCV].auth_method===e.unref(I).K8S?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[19]||(r[19]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[20]||(r[20]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[21]||(r[21]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):l[e.unref(t).HCV].auth_method===e.unref(I).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[22]||(r[22]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[23]||(r[23]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[24]||(r[24]=n=>l[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:s.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[25]||(r[25]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(J,{modelValue:l[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[26]||(r[26]=n=>l[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"])])):l[e.unref(t).HCV].auth_method===e.unref(I).CERT?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":r[27]||(r[27]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:l[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":r[28]||(r[28]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:l[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":r[29]||(r[29]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):e.createCommentVNode("",!0),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:4,modelValue:l[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":r[30]||(r[30]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).AZURE].location,"onUpdate:modelValue":r[31]||(r[31]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[32]||(r[32]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[33]||(r[33]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).AZURE].type,"onUpdate:modelValue":r[34]||(r[34]=n=>l[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:j,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[35]||(r[35]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[36]||(r[36]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":r[37]||(r[37]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":r[38]||(r[38]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].login,"onUpdate:modelValue":r[39]||(r[39]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].account,"onUpdate:modelValue":r[40]||(r[40]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":r[41]||(r[41]=n=>l[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:s.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":r[42]||(r[42]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.config.ttl?(e.openBlock(),e.createElementBlock("div",Pe,[O.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",Fe,[e.createElementVNode("div",Ke,[e.createVNode(h,{modelValue:l[f.value].ttl,"onUpdate:modelValue":r[43]||(r[43]=n=>l[f.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",Me,[e.createVNode(h,{modelValue:l[f.value].neg_ttl,"onUpdate:modelValue":r[44]||(r[44]=n=>l[f.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",He,[e.createElementVNode("div",De,[e.createVNode(h,{modelValue:l[f.value].resurrect_ttl,"onUpdate:modelValue":r[45]||(r[45]=n=>l[f.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(p.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:s.fields.prefix,"onUpdate:modelValue":r[46]||(r[46]=n=>s.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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(oe,{modelValue:s.fields.description,"onUpdate:modelValue":r[47]||(r[47]=n=>s.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:s.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(h,{modelValue:s.fields.tags,"onUpdate:modelValue":r[48]||(r[48]=n=>s.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:s.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-af887604"]]),qe={class:"kong-ui-vault-entity-config-card"},We=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const C=o,d=["token","approle_secret_id","api_key"],c=e.computed(()=>{var s,g;return(g=te.form[(s=C.config)==null?void 0:s.app])==null?void 0:g.edit}),{i18n:{t:u}}=ne.useI18n(),{convertKeyToTitle:a}=p.useStringHelpers(),{getPropValue:A}=p.useHelpers(),w=e.ref({id:{},name:{label:u("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:p.ConfigurationSchemaSection.Basic},description:{order:6,section:p.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:p.ConfigurationSchemaType.Json}}),y=s=>{var g,f;return((f=(g=w.value)==null?void 0:g[s])==null?void 0:f.label)||a(s)};return(s,g)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":w.value,"entity-type":e.unref(p.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":o.hideTitle,"onFetch:error":g[0]||(g[0]=f=>s.$emit("fetch:error",f)),"onFetch:success":g[1]||(g[1]=f=>s.$emit("fetch:success",f)),onLoading:g[2]||(g[2]=f=>s.$emit("loading",f))},{config:e.withCtx(({rowValue:f})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(f),U=>(e.openBlock(),e.createBlock(e.unref(p.ConfigCardItem),{key:U,item:{key:U,value:e.unref(A)(U,f),label:y(U),type:d.includes(U)?e.unref(p.ConfigurationSchemaType).Redacted:e.unref(p.ConfigurationSchemaType).Text}},null,8,["item"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),se="/v2/control-planes/{controlPlaneId}",ae={getVault:{konnect:`${se}/core-entities/vaults/{id}`},list:{konnect:`${se}/config-stores/{id}/secrets`},form:{konnect:{create:`${se}/config-stores/{id}/secrets`,edit:`${se}/config-stores/{id}/secrets/{secretId}`}}},je={class:"table-content-overflow-wrapper"},Le=le(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.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(o,{emit:C}){var Y;const d=C,c=o,{i18n:{t:u,formatUnixTimeStamp:a}}=ne.useI18n(),{axiosInstance:A}=p.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},s=S=>({"data-testid":S.key}),g=e.computed(()=>{var S;return`${c.config.apiBaseUrl}${ae.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((S=c.config)==null?void 0:S.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId||"")}),f=e.ref(""),U={isExactMatch:!0,placeholder:u("search.placeholder_for_secrets.konnect")},{fetcher:W,fetcherState:O,fetcherCacheKey:q}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),$=()=>{f.value=""},l=e.ref(null),Z=S=>({label:u("actions.edit"),to:c.config.getEditRoute(S)}),M=e.ref(void 0),j=e.ref(!1),H=e.ref(!1),_=e.ref(""),v=p.useDeleteUrlBuilder(c.config,g.value),Q=S=>{M.value=S,j.value=!0},X=()=>{j.value=!1},G=async()=>{var S,D,L;if((S=M.value)!=null&&S.key){H.value=!0;try{await A.delete(v(M.value.key)),H.value=!1,j.value=!1,q.value++,d("delete:success",M.value)}catch(b){_.value=((L=(D=b.response)==null?void 0:D.data)==null?void 0:L.message)||b.message||u("errors.delete"),d("error",b)}finally{H.value=!1}}};e.watch(O,S=>{var D,L,b;if(S.status===p.FetcherStatus.Error){l.value={title:u("errors.general")},(b=(L=(D=S.error)==null?void 0:D.response)==null?void 0:L.data)!=null&&b.message&&(l.value.message=S.error.response.data.message),d("error",S.error);return}l.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(P.value.title=u("secrets.list.empty_state.title"),P.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(S,D)=>{const L=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":"","empty-state-options":P.value,"enable-entity-actions":"","error-message":l.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(q),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:f.value,"row-attributes":s,"table-headers":e.unref(y),onClearSearchInput:$},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:f.value,"onUpdate:modelValue":D[0]||(D[0]=m=>f.value=m),config:U},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(L,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:m})=>[e.createElementVNode("div",je,[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)])]),updated_at:e.withCtx(({rowValue:m})=>[e.createElementVNode("span",null,e.toDisplayString(m?e.unref(a)(new Date(m).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:m})=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:Z(m.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:R=>Q(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("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(p.EntityDeleteModal),{"action-pending":H.value,description:e.unref(u)("delete.description"),"entity-name":M.value&&M.value.key,"entity-type":e.unref(p.EntityTypes).Secret,error:_.value,title:e.unref(u)("delete.title_for_secret"),visible:j.value,onCancel:X,onProceed:G},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-904390fc"]]),ze={class:"kong-ui-entities-secrets-list"},Ge=le(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.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(o,{emit:C}){var s;const d=C,c=o,u=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:A}=p.useAxios((s=c.config)==null?void 0:s.axiosRequestConfig),w=e.ref(""),y=e.computed(()=>{var g;return`${c.config.apiBaseUrl}${ae.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var g;try{const{data:f}=await A.get(y.value);w.value=(g=f==null?void 0:f.config)==null?void 0:g.config_store_id}catch(f){d("error",f)}}),(g,f)=>(e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(Le,e.mergeProps({key:0},c,{"config-store-id":w.value,"onDelete:success":a,onError:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f5aa5636"]]),Je=le(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var H;const d=o,c=C,{i18n:{t:u}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:A}=p.useAxios((H=d.config)==null?void 0:H.axiosRequestConfig),{getMessageFromError:w}=p.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),s=e.reactive({key:"",value:""}),g=e.computed(()=>{var _,v;return(v=ae.form[(_=d.config)==null?void 0:_.app])==null?void 0:v.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),f=()=>{var _;a.push(((_=d.config)==null?void 0:_.cancelRoute)||{name:"secret-list"})},U=_=>{c("loading",_)},W=_=>{c("error",_)},O=_=>{var v,Q;y.fields.key=((v=_==null?void 0:_.item)==null?void 0:v.key)||(_==null?void 0:_.key)||"",y.fields.value=((Q=_==null?void 0:_.item)==null?void 0:Q.value)||(_==null?void 0:_.value)||"",Object.assign(s,y.fields)},q=e.computed(()=>d.secretId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),$=e.computed(()=>{var _;return`${d.config.apiBaseUrl}${ae.form[d.config.app][q.value]}`.replace(/{controlPlaneId}/gi,((_=d.config)==null?void 0:_.controlPlaneId)||"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),l=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(s)),M=e.computed(()=>({key:y.fields.key,value:y.fields.value})),j=async()=>{try{y.readonly=!0;let _;q.value==="create"?_=await A.post($.value,M.value):q.value==="edit"&&(_=await A.put($.value,M.value)),O(_==null?void 0:_.data),c("update",_==null?void 0:_.data)}catch(_){y.errorMessage=w(_),c("error",_)}finally{y.readonly=!1}};return(_,v)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),G=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(p.EntityBaseForm),{"can-submit":l.value&&Z.value,config:o.config,"edit-id":o.secretId,"entity-type":e.unref(p.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":M.value,"is-readonly":y.readonly,onCancel:f,"onFetch:error":W,"onFetch:success":O,onLoading:U,onSubmit:j},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":v[0]||(v[0]=P=>y.fields.key=P),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:q.value===e.unref(p.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("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":v[1]||(v[1]=P=>y.fields.value=P),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(G,{appearance:"warning",message:e.unref(u)("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-5ee165bf"]]),Ze={class:"kong-ui-entities-secret-form"},Qe=le(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var g;const d=o,c=C,u=f=>{c("update",f)},a=f=>{c("error",f)},A=f=>{c("loading",f)},{axiosInstance:w}=p.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),s=e.computed(()=>{var f;return`${d.config.apiBaseUrl}${ae.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var f;try{const{data:U}=await w.get(s.value);y.value=(f=U==null?void 0:U.config)==null?void 0:f.config_store_id}catch(U){c("error",U)}}),(f,U)=>(e.openBlock(),e.createElementBlock("div",Ze,[y.value?(e.openBlock(),e.createBlock(Je,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:A,onUpdate:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-754ddb2f"]]),Ye={class:"vault-secret-picker-provider"},Xe=le(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(o,{emit:C}){const d=o,c=C,{i18n:{t:u},i18nT:a}=ne.useI18n();return(A,w)=>(e.openBlock(),e.createElementBlock("div",Ye,[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:w[0]||(w[0]=()=>!d.disabled&&c("open",d.value,d.update))},e.toDisplayString(e.unref(u)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-66a1e406"]]),et=o=>{let C=o.trim();if(!C.startsWith("{")||!C.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(C=C.substring(1,C.length-1).trim(),!C.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const d=new URL(`http://${C.substring(8)}`);if(!d)throw new Error("Invalid secret reference: must have a vault prefix");const c=d.host,[,u,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:u||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},tt=o=>{if(!o.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${o.vaultPrefix}`;return o.secretId&&(C=`${C}/${o.secretId}`),o.optionalSecretKey&&(C=`${C}/${o.optionalSecretKey}`),`{${C}}`},ot={key:1,class:"inputs-wrapper"},lt={"data-testid":"no-search-results"},at={class:"k-select-selected-item-label"},rt={class:"vault-secret-picker-vault-dropdown-item"},nt={class:"select-item-label"},it={class:"select-item-description"},st={class:"select-item-description"},ct={"data-testid":"no-search-results"},dt=le(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.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(o,{emit:C}){var L;const{i18n:{t:d}}=ne.useI18n(),c=o,u=C,{axiosInstance:a}=p.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(L=c.config)==null?void 0:L.axiosRequestConfig}),A=e.ref(!1),w=e.ref(""),y=e.ref(""),s=e.ref(""),g=e.ref(),f=e.computed(()=>{var b,m;return c.config.app==="konnect"?ae.list[c.config.app].replace(/{id}/gi,((m=(b=g.value)==null?void 0:b.config)==null?void 0:m.config_store_id)??""):"<not_applicable>"}),U=e.computed(()=>{if(q&&j)return d("vault_secret_picker.fetch_error.vaults_and_secrets");if(q)return d("vault_secret_picker.fetch_error.vaults");if(j)return d("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:W,loading:O,error:q,loadItems:$,results:l}=p.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:M,error:j,loadItems:H,results:_}=p.useDebouncedFilter(c.config,f,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),v=e.computed(()=>{var R;let b=!1;const m=((R=l.value)==null?void 0:R.map(T=>(T.prefix===w.value&&(b=!0),{label:T.prefix,value:T.prefix,vault:T})))??[];return!b&&g.value&&m.push({label:g.value.prefix,value:g.value.prefix,vault:g.value}),m}),Q=e.computed(()=>{var R;let b=!1;const m=((R=_.value)==null?void 0:R.map(T=>(T.key===y.value&&(b=!0),{label:T.key,value:T.key})))??[];return!b&&y.value&&m.push({label:y.value,value:y.value}),m}),X=e.computed(()=>{var b;return((b=g==null?void 0:g.value)==null?void 0:b.name)==="konnect"}),G=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 R,T;let m=`${c.config.apiBaseUrl}${te.form[c.config.app].edit}`;return c.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((R=c.config)==null?void 0:R.controlPlaneId)||""):c.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(T=c.config)!=null&&T.workspace?`/${c.config.workspace}`:"")),m.replace(/{id}/gi,b)},S=(b,m)=>{var R;return c.config.app!=="konnect"?"<not_applicable>":`${c.config.apiBaseUrl}${ae.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi,((R=c.config)==null?void 0:R.controlPlaneId)||"").replace(/{id}/gi,m).replace(/{secretId}/gi,b)},D=()=>{u("proceed",tt({vaultPrefix:w.value,secretId:y.value||void 0,optionalSecretKey:s.value||void 0}))};return e.watch(()=>c.setup,async b=>{if(b!==!1){if(A.value=!0,w.value="",g.value=void 0,y.value="",s.value="",typeof b=="string"&&b.trim().length>0)try{let m,R="",T="",ee="";const F=et(b),{data:x}=await a.get(Y(F.vaultPrefix));if(x!=null&&x.name)if(m=x,R=F.vaultPrefix,m.name==="konnect"){if(F.secretId){const{data:re}=await a.get(S(F.secretId,x.config.config_store_id));re.key===F.secretId&&(T=F.secretId,ee=F.optionalSecretKey??"")}}else T=F.secretId??"",ee=F.optionalSecretKey??"";await e.nextTick(()=>{w.value=R,g.value=m,y.value=T,s.value=ee})}catch(m){console.debug(m)}A.value=!1,await $()}},{immediate:!0}),e.watch(w,async(b,m)=>{var R;A.value||b===m||(g.value=(R=v.value.find(T=>T.value===b))==null?void 0:R.vault,y.value="",s.value="")}),e.watch(f,async()=>{X.value&&await H()},{immediate:!0}),(b,m)=>{const R=e.resolveComponent("KEmptyState"),T=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),F=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(F,{"action-button-disabled":!G.value,"action-button-text":o.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:o.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:m[4]||(m[4]=()=>u("cancel")),onProceed:D},{default:e.withCtx(()=>[e.unref(q)||e.unref(j)?(e.openBlock(),e.createBlock(R,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:U.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(b.$slots,"form-prefix",{},void 0,!0),e.createVNode(T,{modelValue:w.value,"onUpdate:modelValue":m[0]||(m[0]=x=>w.value=x),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:A.value,"enable-filtering":"","filter-function":()=>!0,items:v.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(d)("vault_secret_picker.vault.label"),loading:e.unref(O),placeholder:e.unref(d)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(W)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",lt,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:x})=>[e.createElementVNode("span",at,e.toDisplayString(P(x)),1)]),"item-template":e.withCtx(({item:x})=>[e.createElementVNode("div",rt,[e.createElementVNode("span",nt,e.toDisplayString(x.label),1),e.createElementVNode("span",it,e.toDisplayString(x.vault.name),1),e.createElementVNode("span",st,e.toDisplayString(x.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),X.value?(e.openBlock(),e.createBlock(T,{key:0,modelValue:y.value,"onUpdate:modelValue":m[1]||(m[1]=x=>y.value=x),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:A.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(M),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",ct,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":m[2]||(m[2]=x=>y.value=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:A.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:s.value,"onUpdate:modelValue":m[3]||(m[3]=x=>s.value=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:A.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-9ee12676"]]);B.SecretForm=Qe,B.SecretList=Ge,B.VaultAuthMethods=I,B.VaultConfigCard=We,B.VaultForm=Oe,B.VaultList=xe,B.VaultProviders=t,B.VaultSecretPicker=dt,B.VaultSecretPickerProvider=Xe,B.secretsEndpoints=ae,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,z,p,ue){"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"},auth_method:{label:"Authentication Method"},token:{label:"Token"},kube_role:{label:"Kubernetes Role"},kube_auth_path:{label:"Kubernetes Auth Path"},kube_api_token_file:{label:"Kubernetes API Token File"},approle_auth_path:{label:"App Role Auth Path"},approle_role_id:{label:"App Role Role ID"},approle_secret_id:{label:"App Role Secret ID"},approle_secret_id_file:{label:"App Role Secret ID File"},approle_response_wrapping:{label:"App Role Response Wrapping"},cert_auth_cert:{label:"Cert"},cert_auth_cert_key:{label:"Cert Key"},cert_auth_role_name:{label:"Role Name"}}},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:"Conjur Vault",description:"Access secrets stored in Conjur Key Vault for Kong Gateway configuration.",fields:{endpoint_url:{label:"Conjur Server",tooltip:"The CyberArk Conjur backend url. Accepts http or https."},login:{label:"Workload Identity",tooltip:"Identity of the workload or host authenticating to Conjur. In this case Kong is the workload/host."},api_key:{label:"API Key",tooltip:"The API key issued to the workload."},account:{label:"Conjur Account",tooltip:"The Conjur account for which the token will be issued. This is the identifier provided during 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 _e(){const o=ue.createI18n("en-us",ye);return{i18n:o,i18nT:ue.i18nTComponent(o)}}const ne={useI18n:_e},de="/v2/control-planes/{controlPlaneId}/core-entities",pe="/v2/control-planes/{controlPlaneId}/config-stores",fe="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${pe}/{id}?force=true`},kongManager:{getAll:`${fe}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:pe,edit:`${de}/vaults/{id}`},kongManager:{create:`${fe}/vaults`,edit:`${fe}/vaults/{id}`}}},he={class:"kong-ui-entities-vaults-list"},Ve={class:"button-row"},ke={class:"table-content-overflow-wrapper"},Ce={class:"table-content-overflow-wrapper"},we=e.defineComponent({__name:"VaultList",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||!o.createRoute||!o.getViewRoute||!o.getEditRoute||o.app==="kongManager"&&!o.isExactMatch&&!o.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(o,{emit:C}){var re;const d=C,c=o,{i18n:{t:u}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:R}=p.useAxios((re=c.config)==null?void 0:re.axiosRequestConfig),{hasRecords:w,handleStateChange:y}=p.useTableState(()=>O.value),s=e.computed(()=>w.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),f={prefix:{label:u("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:u("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:u("vaults.list.table_headers.description"),sortable:!1},tags:{label:u("vaults.list.table_headers.tags"),sortable:!1}},U=f,W=e.computed(()=>{var N,E;let V=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"?V=V.replace(/{controlPlaneId}/gi,((N=c.config)==null?void 0:N.controlPlaneId)||""):c.config.app==="kongManager"&&(V=V.replace(/\/{workspace}/gi,(E=c.config)!=null&&E.workspace?`/${c.config.workspace}`:"")),V}),O=e.ref(""),q=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:u("search.placeholder_for_vaults.konnect")};const{prefix:N,name:E}=f;return{isExactMatch:!1,fields:{name:E,prefix:N},schema:c.config.filterSchema}}),{fetcher:$,fetcherState:l,fetcherCacheKey:Z}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),W),M=()=>{O.value=""},j=()=>{Z.value++},H=e.ref(null),_=async(V,N)=>{const E=V.id;if(!await N(E)){d("copy:error",{entity:V,field:"id",message:u("errors.copy")});return}d("copy:success",{entity:V,field:"id",message:u("copy.success",{val:E})})},v=async(V,N)=>{const E=JSON.stringify(V);if(!await N(E)){d("copy:error",{entity:V,message:u("errors.copy")});return}d("copy:success",{entity:V,message:u("copy.success_brief")})},Q=async V=>{var E;await((E=c.canRetrieve)==null?void 0:E.call(c,V))&&a.push(c.config.getViewRoute(V.id))},X=V=>({label:u("actions.view"),to:c.config.getViewRoute(V)}),G=V=>({label:u("actions.edit"),to:c.config.getEditRoute(V)}),P=e.ref(void 0),Y=e.ref(!1),S=e.ref(!1),D=e.ref(""),L=p.useDeleteUrlBuilder(c.config,W.value),b=V=>{P.value=V,Y.value=!0},m=()=>{Y.value=!1},A=async V=>{const{apiBaseUrl:N,app:E,controlPlaneId:i}=c.config,r=`${N}${te.list[E].deleteConfigStore}`.replace(/{controlPlaneId}/gi,i||"").replace(/{id}/gi,V);try{await R.delete(r)}catch{}},T=async()=>{var V,N,E,i;if((V=P.value)!=null&&V.id){S.value=!0;try{await R.delete(L(P.value.id)),c.config.app==="konnect"&&((N=P.value.config)!=null&&N.config_store_id)&&A(P.value.config.config_store_id),S.value=!1,Y.value=!1,Z.value++,d("delete:success",P.value)}catch(r){D.value=((i=(E=r.response)==null?void 0:E.data)==null?void 0:i.message)||r.message||u("errors.delete"),d("error",r)}finally{S.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(l,V=>{var N,E,i;if(V.status===p.FetcherStatus.Error){H.value={title:u("errors.general")},(i=(E=(N=V.error)==null?void 0:N.response)==null?void 0:E.data)!=null&&i.message&&(H.value.message=V.error.response.data.message),d("error",V.error);return}H.value=null});const F=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${u("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:u("vaults.title")}),x=e.ref(!1);return e.onBeforeMount(async()=>{x.value=await c.canCreate(),x.value&&(F.value.title=u("vaults.list.empty_state.title"),F.value.ctaText=u("actions.create"))}),(V,N)=>{const E=e.resolveComponent("KButton"),i=e.resolveComponent("KEmptyState"),r=e.resolveComponent("KDropdownItem"),K=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":F.value,"enable-entity-actions":"","error-message":H.value,fetcher:e.unref($),"fetcher-cache-key":e.unref(Z),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-vaults-list",query:O.value,"table-headers":e.unref(U),onClearSearchInput:M,"onClick:row":N[3]||(N[3]=k=>Q(k)),onSort:j,onState:e.unref(y)},e.createSlots({"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:O.value,"onUpdate:modelValue":N[0]||(N[0]=k=>O.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!o.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[s.value?(e.openBlock(),e.createBlock(E,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:N[1]||(N[1]=k=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(E,{appearance:"primary","data-testid":"toolbar-add-vault",size:o.useActionOutside?"medium":"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("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",ke,[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",Ce,e.toDisplayString(k??"-"),1)]),tags:e.withCtx(({rowValue:k})=>[e.createVNode(e.unref(p.TableTags),{tags:k},null,8,["tags"])]),actions:e.withCtx(({row:k})=>[e.createVNode(K,null,{default:e.withCtx(({copyToClipboard:h})=>[e.createVNode(r,{"data-testid":"action-entity-copy-id",onClick:J=>_(k,h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(K,null,{default:e.withCtx(({copyToClipboard:h})=>[e.createVNode(r,{"data-testid":"action-entity-copy-json",onClick:J=>v(k,h)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canRetrieve(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-view","has-divider":"",item:X(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-edit",item:G(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(r,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:h=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!O.value&&o.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(i,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(u)("vaults.list.empty_state_v2.description"),title:e.unref(u)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(z.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(E,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(E,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:N[2]||(N[2]=h=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(z.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=o.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("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(p.EntityDeleteModal),{"action-pending":S.value,description:e.unref(u)("delete.description"),"entity-name":P.value&&(P.value.prefix||P.value.id),"entity-type":e.unref(p.EntityTypes).Vault,error:D.value,title:e.unref(u)("delete.title"),visible:Y.value,onCancel:m,onProceed:T},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),le=(o,C)=>{const d=o.__vccOpts||o;for(const[c,u]of C)d[c]=u;return d},xe=le(we,[["__scopeId","data-v-0f7e9fff"]]);var t=(o=>(o.AWS="aws",o.GCP="gcp",o.HCV="hcv",o.ENV="env",o.AZURE="azure",o.KONNECT="konnect",o.CONJUR="conjur",o))(t||{}),I=(o=>(o.TOKEN="token",o.K8S="kubernetes",o.APP_ROLE="approle",o.CERT="cert",o))(I||{});const Ne={class:"kong-ui-entities-vault-form"},Ee={class:"vault-form-provider-cards-container"},Se=["data-testid"],Ie={class:"provider-item-title-container"},Re={class:"provider-item-title"},Ae={class:"provider-item-description"},Te={key:"kong-vault-config-fields",class:"vault-form-config-fields-container"},Ue={key:0,class:"vault-form-config-auth-method-container"},ve={key:1,class:"vault-form-config-auth-method-container"},Be={key:2,class:"vault-form-config-auth-method-container"},$e={key:3,class:"vault-form-config-auth-method-container"},Pe={key:6},Fe={class:"wrapper"},Ke={class:"item-50"},Me={class:"item-50"},He={class:"wrapper"},De={class:"item-100"},Oe=le(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||(o==null?void 0:o.app)==="konnect"&&!(o!=null&&o.controlPlaneId)||(o==null?void 0:o.app)==="kongManager"&&typeof(o==null?void 0:o.workspace)!="string"||!(o!=null&&o.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var E;const d=o,c=C,{i18nT:u,i18n:{t:a}}=ne.useI18n(),R=ce.useRouter(),{axiosInstance:w}=p.useAxios((E=d.config)==null?void 0:E.axiosRequestConfig),{getMessageFromError:y}=p.useErrors(),s=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),f=e.ref(d.config.app==="konnect"?t.KONNECT:t.ENV),U=e.ref(null),W=e.ref(),O=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(f.value)),q=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:!G.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!G.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!G.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!G.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!G.value}]:[]]),$=d.config.base64FieldAvailable?{base64_decode:!1}:{},l=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:I.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,cert_auth_cert:"",cert_auth_cert_key:"",cert_auth_role_name:"",...$},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...$},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...$}}),Z=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:I.TOKEN,token:"",kube_role:"",kube_auth_path:"",kube_api_token_file:"",approle_auth_path:"",approle_role_id:"",approle_secret_id:"",approle_secret_id_file:"",approle_response_wrapping:!1,...$},[t.AZURE]:{location:"",vault_uri:"",type:"secrets",credentials_prefix:"AZURE",client_id:"",tenant_id:"",...$},[t.CONJUR]:{endpoint_url:"",auth_method:"api_key",...$}}),M=[{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"}],j=[{label:"secrets",value:"secrets"}],H=[{label:"http",value:"http"},{label:"https",value:"https"}],_=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],v=e.computed(()=>d.vaultId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var i,r;return(r=te.form[(i=d.config)==null?void 0:i.app])==null?void 0:r.edit}),X=e.computed(()=>v.value===p.EntityBaseFormType.Edit&&d.config.app==="kongManager"),G=e.computed(()=>d.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),P=()=>{var i;R.push(((i=d.config)==null?void 0:i.cancelRoute)||{name:"vault-list"})},Y=i=>{c("loading",i)},S=i=>{c("error",i)},D=i=>{switch(i){case t.KONNECT:return z.KongIcon;case t.ENV:return z.CodeIcon;case t.AWS:return z.AwsIcon;case t.GCP:return z.GoogleCloudIcon;case t.HCV:return z.HashicorpIcon;case t.AZURE:return z.AzureIcon;case t.CONJUR:return z.ConjourIcon}},L=i=>{switch(i){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=i=>{var k,h,J,oe,ie,n;s.fields.prefix=((k=i==null?void 0:i.item)==null?void 0:k.prefix)||(i==null?void 0:i.prefix)||"",s.fields.description=((h=i==null?void 0:i.item)==null?void 0:h.description)||(i==null?void 0:i.description)||"";const r=((J=i==null?void 0:i.item)==null?void 0:J.tags)||(i==null?void 0:i.tags)||[];s.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign(g,s.fields);const K=((oe=i==null?void 0:i.item)==null?void 0:oe.config)||(i==null?void 0:i.config)||null;K&&(Object.keys(K).length||(i==null?void 0:i.name)===t.KONNECT)?(f.value=((ie=i==null?void 0:i.item)==null?void 0:ie.name)||(i==null?void 0:i.name)||"",U.value=f.value,W.value=((n=i==null?void 0:i.config)==null?void 0:n.config_store_id)||void 0,Object.assign(l[f.value],K),Object.assign(Z[f.value],K)):s.errorMessage="Error loading vault config"},m=i=>i===""||i==null,A=e.computed(()=>f.value===t.HCV?!Object.keys(l[t.HCV]).filter(i=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file"].includes(i)||l[t.HCV].auth_method!==I.K8S&&(i==="kube_role"||i==="kube_api_token_file")||l[t.HCV].auth_method!==I.TOKEN&&i==="token"||l[t.HCV].auth_method!==I.APP_ROLE&&(i==="approle_role_id"||i==="approle_response_wrapping")||l[t.HCV].auth_method===I.APP_ROLE&&i==="approle_response_wrapping"&&typeof l[f.value][i]=="boolean"||l[t.HCV].auth_method!==I.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(i)?!1:m(l[f.value][i])).length:f.value===t.AZURE?!Object.keys(l[t.AZURE]).filter(i=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:m(l[f.value][i])).length:f.value===t.AWS?!Object.keys(l[t.AWS]).filter(i=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(i)?!1:m(l[f.value][i])).length:!Object.keys(l[f.value]).filter(i=>["ttl","neg_ttl","resurrect_ttl"].includes(i)?!1:m(l[f.value][i])).length),T=e.computed(()=>!!s.fields.prefix&&A.value),ee=e.computed(()=>JSON.stringify(s.fields)!==JSON.stringify(g)||f.value!==U.value||JSON.stringify(l[f.value])!==JSON.stringify(Z[f.value])),F=e.computed(()=>{var r,K;let i=`${d.config.apiBaseUrl}${te.form[d.config.app][v.value]}`;return d.config.app==="konnect"?i=i.replace(/{controlPlaneId}/gi,((r=d.config)==null?void 0:r.controlPlaneId)||""):d.config.app==="kongManager"&&(i=i.replace(/\/{workspace}/gi,(K=d.config)!=null&&K.workspace?`/${d.config.workspace}`:"")),i=i.replace(/{id}/gi,d.vaultId),i}),x=e.computed(()=>{var oe,ie;const i={protocol:l[t.HCV].protocol,host:l[t.HCV].host,port:parseInt(l[t.HCV].port.toString()),mount:l[t.HCV].mount,kv:l[t.HCV].kv,namespace:l[t.HCV].namespace||null,auth_method:l[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:l[t.HCV].base64_decode},...l[t.HCV].auth_method===I.TOKEN&&{token:l[t.HCV].token},...l[t.HCV].auth_method===I.K8S&&{kube_role:l[t.HCV].kube_role,kube_auth_path:l[t.HCV].kube_auth_path||void 0,kube_api_token_file:l[t.HCV].kube_api_token_file,token:null},...l[t.HCV].auth_method===I.APP_ROLE&&{approle_auth_path:l[t.HCV].approle_auth_path||void 0,approle_role_id:l[t.HCV].approle_role_id,approle_secret_id:l[t.HCV].approle_secret_id||void 0,approle_secret_id_file:l[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:l[t.HCV].approle_response_wrapping??!1},...l[t.HCV].auth_method===I.CERT&&{cert_auth_role_name:l[t.HCV].cert_auth_role_name,cert_auth_cert:l[t.HCV].cert_auth_cert,cert_auth_cert_key:l[t.HCV].cert_auth_cert_key}},r={...l[f.value],client_id:l[f.value].client_id||null,tenant_id:l[f.value].tenant_id||null},K={...l[f.value],endpoint_url:l[f.value].endpoint_url||null,assume_role_arn:l[f.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:l[f.value].sts_endpoint_url||null}:{}};let k=l[f.value];f.value===t.HCV?k=i:f.value===t.AZURE?k=r:f.value===t.AWS&&(k=K);let h={};if(![t.KONNECT,t.ENV].includes(f.value)){const n=l[f.value],me=n.ttl,ge=n.neg_ttl,be=n.resurrect_ttl;h={ttl:me?parseInt(me.toString(),10):null,neg_ttl:ge?parseInt(ge.toString(),10):null,resurrect_ttl:be?parseInt(be.toString(),10):null}}return{prefix:s.fields.prefix,description:s.fields.description||null,tags:(ie=(oe=s.fields.tags.split(","))==null?void 0:oe.map(n=>String(n||"").trim()))==null?void 0:ie.filter(n=>n!==""),name:f.value,config:{...k,...h}}}),re=e.computed(()=>({...x.value,config:{...x.value.config,config_store_id:W.value}})),V=async()=>{var i;try{s.isReadonly=!0;const r=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((i=d.config)==null?void 0:i.controlPlaneId)||""),K=await w.post(r);return K==null?void 0:K.data.id}catch(r){s.errorMessage=y(r),c("error",r)}finally{s.isReadonly=!1}},N=async()=>{var i;try{s.isReadonly=!0;let r;v.value==="create"?f.value===t.KONNECT?(W.value=await V(),r=await w.post(F.value,re.value)):r=await w.post(F.value,x.value):v.value==="edit"&&(f.value===t.KONNECT&&!W.value?(W.value=await V(),r=await w.put(F.value,re.value)):r=((i=d.config)==null?void 0:i.app)==="konnect"?await w.put(F.value,re.value):await w.patch(F.value,x.value)),b(r==null?void 0:r.data),c("update",r==null?void 0:r.data)}catch(r){s.errorMessage=y(r),c("error",r)}finally{s.isReadonly=!1}};return(i,r)=>{const K=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),h=e.resolveComponent("KInput"),J=e.resolveComponent("KCheckbox"),oe=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",Ne,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":T.value&&ee.value,config:o.config,"edit-id":o.vaultId,"entity-type":e.unref(p.SupportedEntityType).Vault,"error-message":s.errorMessage,"fetch-url":Q.value,"form-fields":x.value,"is-readonly":s.isReadonly,onCancel:P,"onFetch:error":S,"onFetch:success":b,onLoading:Y,onSubmit:N},{default:e.withCtx(()=>[e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(a)("form.sections.config.description"),title:e.unref(a)("form.sections.config.title")},{default:e.withCtx(()=>[e.createElementVNode("div",Ee,[e.createVNode(k,{modelValue:f.value,"onUpdate:modelValue":r[0]||(r[0]=n=>f.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:q.value,readonly:s.isReadonly},{"selected-item-template":e.withCtx(({item:n})=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(D(n.value)))),e.createElementVNode("span",null,e.toDisplayString(n==null?void 0:n.label),1)]),"item-template":e.withCtx(({item:n})=>[e.createVNode(K,{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(D(n.value)))),e.createElementVNode("div",Ie,[e.createElementVNode("span",Re,e.toDisplayString(n==null?void 0:n.label),1),e.createElementVNode("span",Ae,e.toDisplayString(L(n.value)),1)])],8,Se)]),_:2},1032,["text"])]),_:1},8,["modelValue","disabled","items","readonly"])]),e.createVNode(e.TransitionGroup,{name:"appear"},{default:e.withCtx(()=>[f.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(h,{modelValue:l[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":r[2]||(r[2]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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:l[e.unref(t).AWS].region,"onUpdate:modelValue":r[3]||(r[3]=n=>l[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:M,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:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[4]||(r[4]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[5]||(r[5]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[6]||(r[6]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),o.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(h,{key:0,modelValue:l[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[7]||(r[7]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:1,modelValue:l[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":r[8]||(r[8]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[9]||(r[9]=n=>l[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:s.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(u),{keypath:"form.config.gcp.fields.project_id.tooltip.text",scope:"global"},{"italic-text":e.withCtx(()=>[e.createElementVNode("em",null,e.toDisplayString(e.unref(a)("form.config.gcp.fields.project_id.tooltip.italicText")),1)]),_:1})]),_:1},8,["modelValue","label","placeholder","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":r[10]||(r[10]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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:l[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[11]||(r[11]=n=>l[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:H,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].host,"onUpdate:modelValue":r[12]||(r[12]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].port,"onUpdate:modelValue":r[13]||(r[13]=n=>l[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:s.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].mount,"onUpdate:modelValue":r[14]||(r[14]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).HCV].kv,"onUpdate:modelValue":r[15]||(r[15]=n=>l[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:_,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[16]||(r[16]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[17]||(r[17]=n=>l[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(I).TOKEN,value:e.unref(I).TOKEN},{label:e.unref(I).K8S,value:e.unref(I).K8S},...o.config.hcvAppRoleMethodAvailable?[{label:e.unref(I).APP_ROLE,value:e.unref(I).APP_ROLE}]:[],...o.config.hcvCertMethodAvailable?[{label:e.unref(I).CERT,value:e.unref(I).CERT}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),l[e.unref(t).HCV].auth_method===e.unref(I).TOKEN?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].token,"onUpdate:modelValue":r[18]||(r[18]=n=>l[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:s.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):l[e.unref(t).HCV].auth_method===e.unref(I).K8S?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[19]||(r[19]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[20]||(r[20]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[21]||(r[21]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):l[e.unref(t).HCV].auth_method===e.unref(I).APP_ROLE?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[22]||(r[22]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[23]||(r[23]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[24]||(r[24]=n=>l[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:s.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[25]||(r[25]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(J,{modelValue:l[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[26]||(r[26]=n=>l[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"])])):l[e.unref(t).HCV].auth_method===e.unref(I).CERT?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(h,{modelValue:l[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":r[27]||(r[27]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:l[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":r[28]||(r[28]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:l[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":r[29]||(r[29]=n=>l[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:s.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):e.createCommentVNode("",!0),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:4,modelValue:l[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":r[30]||(r[30]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).AZURE].location,"onUpdate:modelValue":r[31]||(r[31]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[32]||(r[32]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[33]||(r[33]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:l[e.unref(t).AZURE].type,"onUpdate:modelValue":r[34]||(r[34]=n=>l[e.unref(t).AZURE].type=n),"data-testid":"vault-form-config-azure-type",items:j,label:e.unref(a)("form.config.azure.fields.type.label"),placeholder:e.unref(a)("form.config.azure.fields.type.placeholder"),readonly:s.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[35]||(r[35]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[36]||(r[36]=n=>l[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:s.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":r[37]||(r[37]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),f.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(h,{modelValue:l[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":r[38]||(r[38]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].login,"onUpdate:modelValue":r[39]||(r[39]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].account,"onUpdate:modelValue":r[40]||(r[40]=n=>l[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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(h,{modelValue:l[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":r[41]||(r[41]=n=>l[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:s.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),o.config.base64FieldAvailable?(e.openBlock(),e.createBlock(J,{key:0,modelValue:l[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":r[42]||(r[42]=n=>l[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:s.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),o.config.ttl?(e.openBlock(),e.createElementBlock("div",Pe,[O.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",Fe,[e.createElementVNode("div",Ke,[e.createVNode(h,{modelValue:l[f.value].ttl,"onUpdate:modelValue":r[43]||(r[43]=n=>l[f.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",Me,[e.createVNode(h,{modelValue:l[f.value].neg_ttl,"onUpdate:modelValue":r[44]||(r[44]=n=>l[f.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",He,[e.createElementVNode("div",De,[e.createVNode(h,{modelValue:l[f.value].resurrect_ttl,"onUpdate:modelValue":r[45]||(r[45]=n=>l[f.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(p.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(h,{modelValue:s.fields.prefix,"onUpdate:modelValue":r[46]||(r[46]=n=>s.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:s.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(oe,{modelValue:s.fields.description,"onUpdate:modelValue":r[47]||(r[47]=n=>s.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:s.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(h,{modelValue:s.fields.tags,"onUpdate:modelValue":r[48]||(r[48]=n=>s.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:s.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-b01b3bd3"]]),qe={class:"kong-ui-vault-entity-config-card"},We=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.workspace!="string"||!o.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(o){const C=o,d=["token","approle_secret_id","api_key"],c=e.computed(()=>{var s,g;return(g=te.form[(s=C.config)==null?void 0:s.app])==null?void 0:g.edit}),{i18n:{t:u}}=ne.useI18n(),{convertKeyToTitle:a}=p.useStringHelpers(),{getPropValue:R}=p.useHelpers(),w=e.ref({id:{},name:{label:u("labels.vault_type")},updated_at:{},created_at:{},prefix:{order:5,section:p.ConfigurationSchemaSection.Basic},description:{order:6,section:p.ConfigurationSchemaSection.Basic},tags:{order:7},config:{order:8,type:p.ConfigurationSchemaType.Json}}),y=s=>{var g,f;return((f=(g=w.value)==null?void 0:g[s])==null?void 0:f.label)||a(s)};return(s,g)=>(e.openBlock(),e.createElementBlock("div",qe,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:o.config,"config-card-doc":o.configCardDoc,"config-schema":w.value,"entity-type":e.unref(p.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":o.hideTitle,"onFetch:error":g[0]||(g[0]=f=>s.$emit("fetch:error",f)),"onFetch:success":g[1]||(g[1]=f=>s.$emit("fetch:success",f)),onLoading:g[2]||(g[2]=f=>s.$emit("loading",f))},{config:e.withCtx(({rowValue:f})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(f),U=>(e.openBlock(),e.createBlock(e.unref(p.ConfigCardItem),{key:U,item:{key:U,value:e.unref(R)(U,f),label:y(U),type:d.includes(U)?e.unref(p.ConfigurationSchemaType).Redacted:e.unref(p.ConfigurationSchemaType).Text}},null,8,["item"]))),128))]),_:1},8,["config","config-card-doc","config-schema","entity-type","fetch-url","hide-title"])]))}}),se="/v2/control-planes/{controlPlaneId}",ae={getVault:{konnect:`${se}/core-entities/vaults/{id}`},list:{konnect:`${se}/config-stores/{id}/secrets`},form:{konnect:{create:`${se}/config-stores/{id}/secrets`,edit:`${se}/config-stores/{id}/secrets/{secretId}`}}},je={class:"table-content-overflow-wrapper"},Le=le(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.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(o,{emit:C}){var Y;const d=C,c=o,{i18n:{t:u,formatUnixTimeStamp:a}}=ne.useI18n(),{axiosInstance:R}=p.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:u("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:u("secrets.list.table_headers.updated_at"),sortable:!1}},s=S=>({"data-testid":S.key}),g=e.computed(()=>{var S;return`${c.config.apiBaseUrl}${ae.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((S=c.config)==null?void 0:S.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId||"")}),f=e.ref(""),U={isExactMatch:!0,placeholder:u("search.placeholder_for_secrets.konnect")},{fetcher:W,fetcherState:O,fetcherCacheKey:q}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),$=()=>{f.value=""},l=e.ref(null),Z=S=>({label:u("actions.edit"),to:c.config.getEditRoute(S)}),M=e.ref(void 0),j=e.ref(!1),H=e.ref(!1),_=e.ref(""),v=p.useDeleteUrlBuilder(c.config,g.value),Q=S=>{M.value=S,j.value=!0},X=()=>{j.value=!1},G=async()=>{var S,D,L;if((S=M.value)!=null&&S.key){H.value=!0;try{await R.delete(v(M.value.key)),H.value=!1,j.value=!1,q.value++,d("delete:success",M.value)}catch(b){_.value=((L=(D=b.response)==null?void 0:D.data)==null?void 0:L.message)||b.message||u("errors.delete"),d("error",b)}finally{H.value=!1}}};e.watch(O,S=>{var D,L,b;if(S.status===p.FetcherStatus.Error){l.value={title:u("errors.general")},(b=(L=(D=S.error)==null?void 0:D.response)==null?void 0:L.data)!=null&&b.message&&(l.value.message=S.error.response.data.message),d("error",S.error);return}l.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${u("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:u("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(P.value.title=u("secrets.list.empty_state.title"),P.value.ctaText=u("secrets.list.toolbar_actions.new_secret"))}),(S,D)=>{const L=e.resolveComponent("KButton"),b=e.resolveComponent("KDropdownItem");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":o.cacheIdentifier,"disable-sorting":"","empty-state-options":P.value,"enable-entity-actions":"","error-message":l.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(q),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:f.value,"row-attributes":s,"table-headers":e.unref(y),onClearSearchInput:$},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:f.value,"onUpdate:modelValue":D[0]||(D[0]=m=>f.value=m),config:U},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canCreate()},{default:e.withCtx(()=>[e.createVNode(L,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:o.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(z.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(u)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:m})=>[e.createElementVNode("div",je,[e.createElementVNode("b",null,e.toDisplayString(m??"-"),1)])]),updated_at:e.withCtx(({rowValue:m})=>[e.createElementVNode("span",null,e.toDisplayString(m?e.unref(a)(new Date(m).getTime()/1e3):"-"),1)]),actions:e.withCtx(({row:m})=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canEdit(m)},{default:e.withCtx(()=>[e.createVNode(b,{"data-testid":"action-entity-edit",item:Z(m.key)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>o.canDelete(m)},{default:e.withCtx(()=>[e.createVNode(b,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:A=>Q(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(u)("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(p.EntityDeleteModal),{"action-pending":H.value,description:e.unref(u)("delete.description"),"entity-name":M.value&&M.value.key,"entity-type":e.unref(p.EntityTypes).Secret,error:_.value,title:e.unref(u)("delete.title_for_secret"),visible:j.value,onCancel:X,onProceed:G},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-904390fc"]]),ze={class:"kong-ui-entities-secrets-list"},Ge=le(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:o=>!(!o||(o==null?void 0:o.app)!=="konnect"||!o.createRoute||!o.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(o,{emit:C}){var s;const d=C,c=o,u=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:R}=p.useAxios((s=c.config)==null?void 0:s.axiosRequestConfig),w=e.ref(""),y=e.computed(()=>{var g;return`${c.config.apiBaseUrl}${ae.getVault[c.config.app]}`.replace(/{controlPlaneId}/gi,((g=c.config)==null?void 0:g.controlPlaneId)||"").replace(/{id}/gi,c.vaultId)});return e.onBeforeMount(async()=>{var g;try{const{data:f}=await R.get(y.value);w.value=(g=f==null?void 0:f.config)==null?void 0:g.config_store_id}catch(f){d("error",f)}}),(g,f)=>(e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(Le,e.mergeProps({key:0},c,{"config-store-id":w.value,"onDelete:success":a,onError:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f5aa5636"]]),Je=le(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var H;const d=o,c=C,{i18n:{t:u}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:R}=p.useAxios((H=d.config)==null?void 0:H.axiosRequestConfig),{getMessageFromError:w}=p.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),s=e.reactive({key:"",value:""}),g=e.computed(()=>{var _,v;return(v=ae.form[(_=d.config)==null?void 0:_.app])==null?void 0:v.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),f=()=>{var _;a.push(((_=d.config)==null?void 0:_.cancelRoute)||{name:"secret-list"})},U=_=>{c("loading",_)},W=_=>{c("error",_)},O=_=>{var v,Q;y.fields.key=((v=_==null?void 0:_.item)==null?void 0:v.key)||(_==null?void 0:_.key)||"",y.fields.value=((Q=_==null?void 0:_.item)==null?void 0:Q.value)||(_==null?void 0:_.value)||"",Object.assign(s,y.fields)},q=e.computed(()=>d.secretId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),$=e.computed(()=>{var _;return`${d.config.apiBaseUrl}${ae.form[d.config.app][q.value]}`.replace(/{controlPlaneId}/gi,((_=d.config)==null?void 0:_.controlPlaneId)||"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),l=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(s)),M=e.computed(()=>({key:y.fields.key,value:y.fields.value})),j=async()=>{try{y.readonly=!0;let _;q.value==="create"?_=await R.post($.value,M.value):q.value==="edit"&&(_=await R.put($.value,M.value)),O(_==null?void 0:_.data),c("update",_==null?void 0:_.data)}catch(_){y.errorMessage=w(_),c("error",_)}finally{y.readonly=!1}};return(_,v)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),G=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(p.EntityBaseForm),{"can-submit":l.value&&Z.value,config:o.config,"edit-id":o.secretId,"entity-type":e.unref(p.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":M.value,"is-readonly":y.readonly,onCancel:f,"onFetch:error":W,"onFetch:success":O,onLoading:U,onSubmit:j},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(u)("secrets.form.info.description"),"has-divider":"",title:e.unref(u)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":v[0]||(v[0]=P=>y.fields.key=P),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:q.value===e.unref(p.EntityBaseFormType).Edit,label:e.unref(u)("secrets.form.fields.key.label"),placeholder:e.unref(u)("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":v[1]||(v[1]=P=>y.fields.value=P),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(u)("secrets.form.fields.value.label"),placeholder:e.unref(u)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(G,{appearance:"warning",message:e.unref(u)("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-5ee165bf"]]),Ze={class:"kong-ui-entities-secret-form"},Qe=le(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:o=>!(!o||o.app!=="konnect"||!o.controlPlaneId||!o.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(o,{emit:C}){var g;const d=o,c=C,u=f=>{c("update",f)},a=f=>{c("error",f)},R=f=>{c("loading",f)},{axiosInstance:w}=p.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),s=e.computed(()=>{var f;return`${d.config.apiBaseUrl}${ae.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((f=d.config)==null?void 0:f.controlPlaneId)||"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var f;try{const{data:U}=await w.get(s.value);y.value=(f=U==null?void 0:U.config)==null?void 0:f.config_store_id}catch(U){c("error",U)}}),(f,U)=>(e.openBlock(),e.createElementBlock("div",Ze,[y.value?(e.openBlock(),e.createBlock(Je,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:R,onUpdate:u}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-754ddb2f"]]),Ye={class:"vault-secret-picker-provider"},Xe=le(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(o,{emit:C}){const d=o,c=C,{i18n:{t:u},i18nT:a}=ne.useI18n();return(R,w)=>(e.openBlock(),e.createElementBlock("div",Ye,[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:w[0]||(w[0]=()=>!d.disabled&&c("open",d.value,d.update))},e.toDisplayString(e.unref(u)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-66a1e406"]]),et=o=>{let C=o.trim();if(!C.startsWith("{")||!C.endsWith("}"))throw new Error("Invalid secret reference: must be enclosed in curly braces");if(C=C.substring(1,C.length-1).trim(),!C.startsWith("vault://"))throw new Error("Invalid secret reference: must start with vault://");const d=new URL(`http://${C.substring(8)}`);if(!d)throw new Error("Invalid secret reference: must have a vault prefix");const c=d.host,[,u,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:u||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},tt=o=>{if(!o.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${o.vaultPrefix}`;return o.secretId&&(C=`${C}/${o.secretId}`),o.optionalSecretKey&&(C=`${C}/${o.optionalSecretKey}`),`{${C}}`},ot={key:1,class:"inputs-wrapper"},lt={"data-testid":"no-search-results"},at={class:"k-select-selected-item-label"},rt={class:"vault-secret-picker-vault-dropdown-item"},nt={class:"select-item-label"},it={class:"select-item-description"},st={class:"select-item-description"},ct={"data-testid":"no-search-results"},dt=le(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:o=>!(!o||!["konnect","kongManager"].includes(o==null?void 0:o.app)||o.app==="konnect"&&!o.controlPlaneId||o.app==="kongManager"&&typeof o.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(o,{emit:C}){var L;const{i18n:{t:d}}=ne.useI18n(),c=o,u=C,{axiosInstance:a}=p.useAxios({validateStatus:b=>b===404||b>=200&&b<300,...(L=c.config)==null?void 0:L.axiosRequestConfig}),R=e.ref(!1),w=e.ref(""),y=e.ref(""),s=e.ref(""),g=e.ref(),f=e.computed(()=>{var b,m;return c.config.app==="konnect"?ae.list[c.config.app].replace(/{id}/gi,((m=(b=g.value)==null?void 0:b.config)==null?void 0:m.config_store_id)??""):"<not_applicable>"}),U=e.computed(()=>{if(q&&j)return d("vault_secret_picker.fetch_error.vaults_and_secrets");if(q)return d("vault_secret_picker.fetch_error.vaults");if(j)return d("vault_secret_picker.fetch_error.secrets")}),{debouncedQueryChange:W,loading:O,error:q,loadItems:$,results:l}=p.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:M,error:j,loadItems:H,results:_}=p.useDebouncedFilter(c.config,f,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),v=e.computed(()=>{var A;let b=!1;const m=((A=l.value)==null?void 0:A.map(T=>(T.prefix===w.value&&(b=!0),{label:T.prefix,value:T.prefix,vault:T})))??[];return!b&&g.value&&m.push({label:g.value.prefix,value:g.value.prefix,vault:g.value}),m}),Q=e.computed(()=>{var A;let b=!1;const m=((A=_.value)==null?void 0:A.map(T=>(T.key===y.value&&(b=!0),{label:T.key,value:T.key})))??[];return!b&&y.value&&m.push({label:y.value,value:y.value}),m}),X=e.computed(()=>{var b;return((b=g==null?void 0:g.value)==null?void 0:b.name)==="konnect"}),G=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 A,T;let m=`${c.config.apiBaseUrl}${te.form[c.config.app].edit}`;return c.config.app==="konnect"?m=m.replace(/{controlPlaneId}/gi,((A=c.config)==null?void 0:A.controlPlaneId)||""):c.config.app==="kongManager"&&(m=m.replace(/\/{workspace}/gi,(T=c.config)!=null&&T.workspace?`/${c.config.workspace}`:"")),m.replace(/{id}/gi,b)},S=(b,m)=>{var A;return c.config.app!=="konnect"?"<not_applicable>":`${c.config.apiBaseUrl}${ae.form[c.config.app].edit}`.replace(/{controlPlaneId}/gi,((A=c.config)==null?void 0:A.controlPlaneId)||"").replace(/{id}/gi,m).replace(/{secretId}/gi,b)},D=()=>{u("proceed",tt({vaultPrefix:w.value,secretId:y.value||void 0,optionalSecretKey:s.value||void 0}))};return e.watch(()=>c.setup,async b=>{if(b!==!1){if(R.value=!0,w.value="",g.value=void 0,y.value="",s.value="",typeof b=="string"&&b.trim().length>0)try{let m,A="",T="",ee="";const F=et(b),{data:x}=await a.get(Y(F.vaultPrefix));if(x!=null&&x.name)if(m=x,A=F.vaultPrefix,m.name==="konnect"){if(F.secretId){const{data:re}=await a.get(S(F.secretId,x.config.config_store_id));re.key===F.secretId&&(T=F.secretId,ee=F.optionalSecretKey??"")}}else T=F.secretId??"",ee=F.optionalSecretKey??"";await e.nextTick(()=>{w.value=A,g.value=m,y.value=T,s.value=ee})}catch(m){console.debug(m)}R.value=!1,await $()}},{immediate:!0}),e.watch(w,async(b,m)=>{var A;R.value||b===m||(g.value=(A=v.value.find(T=>T.value===b))==null?void 0:A.vault,y.value="",s.value="")}),e.watch(f,async()=>{X.value&&await H()},{immediate:!0}),(b,m)=>{const A=e.resolveComponent("KEmptyState"),T=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),F=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(F,{"action-button-disabled":!G.value,"action-button-text":o.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:o.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:m[4]||(m[4]=()=>u("cancel")),onProceed:D},{default:e.withCtx(()=>[e.unref(q)||e.unref(j)?(e.openBlock(),e.createBlock(A,{key:0,"data-testid":"vault-secret-picker-fetch-error","icon-variant":"error",message:U.value},null,8,["message"])):(e.openBlock(),e.createElementBlock("div",ot,[e.renderSlot(b.$slots,"form-prefix",{},void 0,!0),e.createVNode(T,{modelValue:w.value,"onUpdate:modelValue":m[0]||(m[0]=x=>w.value=x),clearable:"","data-testid":"vault-secret-picker-vault-select",disabled:R.value,"enable-filtering":"","filter-function":()=>!0,items:v.value,"kpop-attributes":{"data-testid":"vault-secret-picker-vault-popover"},label:e.unref(d)("vault_secret_picker.vault.label"),loading:e.unref(O),placeholder:e.unref(d)("vault_secret_picker.vault.placeholder"),required:"","reuse-item-template":"",width:"100%",onQueryChange:e.unref(W)},{loading:e.withCtx(()=>[e.createElementVNode("div",null,e.toDisplayString(e.unref(d)("actions.loading")),1)]),empty:e.withCtx(()=>[e.createElementVNode("div",lt,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:x})=>[e.createElementVNode("span",at,e.toDisplayString(P(x)),1)]),"item-template":e.withCtx(({item:x})=>[e.createElementVNode("div",rt,[e.createElementVNode("span",nt,e.toDisplayString(x.label),1),e.createElementVNode("span",it,e.toDisplayString(x.vault.name),1),e.createElementVNode("span",st,e.toDisplayString(x.vault.id),1)])]),_:1},8,["modelValue","disabled","items","label","loading","placeholder","onQueryChange"]),X.value?(e.openBlock(),e.createBlock(T,{key:0,modelValue:y.value,"onUpdate:modelValue":m[1]||(m[1]=x=>y.value=x),clearable:"","data-testid":"vault-secret-picker-secret-id-select",disabled:R.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(M),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",ct,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":m[2]||(m[2]=x=>y.value=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-id-input",disabled:R.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:s.value,"onUpdate:modelValue":m[3]||(m[3]=x=>s.value=x),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-secret-picker-secret-key-input",disabled:R.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-9ee12676"]]);B.SecretForm=Qe,B.SecretList=Ge,B.VaultAuthMethods=I,B.VaultConfigCard=We,B.VaultForm=Oe,B.VaultList=xe,B.VaultProviders=t,B.VaultSecretPicker=dt,B.VaultSecretPickerProvider=Xe,B.secretsEndpoints=ae,B.vaultsEndpoints=te,Object.defineProperty(B,Symbol.toStringTag,{value:"Module"})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-66d61bea]{align-items:center;border-bottom:var(--v70f369b3);box-sizing:border-box;display:var(--v67c2fae6);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-66d61bea]{box-sizing:border-box;padding-right:16px;width:var(--v847b138c)}.config-card-details-row .config-card-details-label label[data-v-66d61bea]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-66d61bea]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-66d61bea]{min-width:0}.config-card-details-row .config-card-details-value[data-v-66d61bea]{box-sizing:border-box;width:var(--v847687d6)}.config-card-details-row .config-card-details-value .truncated[data-v-66d61bea]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-66d61bea]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-66d61bea] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-66d61bea]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-66d61bea]{margin-right:4px}.config-card-details-row[data-v-66d61bea] .k-label{margin-bottom:0}.config-card-details-row[data-v-66d61bea] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-66d61bea] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--eca0976a);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-f11c7e34]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-8dc3c29c]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-8dc3c29c]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-8dc3c29c]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-8dc3c29c] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-8dc3c29c]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-520de902]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-520de902] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-520de902] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-520de902] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-520de902] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-520de902]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-520de902] .k-button:last-of-type,.form-actions[data-v-520de902] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-520de902]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}.button-row[data-v-0f7e9fff]{align-items:center;display:flex;gap:12px}.kong-ui-entities-vaults-list[data-v-0f7e9fff]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-0f7e9fff]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-0f7e9fff]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-af887604]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-af887604]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-af887604]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-af887604]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-af887604],.kong-ui-entities-vault-form .vault-form-textarea[data-v-af887604]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-af887604]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-af887604]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-af887604]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-af887604]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-af887604]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-af887604]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-af887604] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-af887604]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-af887604]>*:not(:first-child){margin-top:24px}.kong-ui-entity-filter-input[data-v-904390fc]{margin-right:12px}.table-content-overflow-wrapper[data-v-904390fc]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secrets-list[data-v-f5aa5636]{width:100%}@media screen and (min-width: 1280px){[data-v-5ee165bf] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-secret-form[data-v-754ddb2f]{width:100%}.vault-secret-picker-provider[data-v-66a1e406]{font-size:12px;margin:8px 0}.vault-secret-picker-provider-action[data-v-66a1e406]{color:#0044f4;cursor:pointer}.vault-secret-picker-provider-action.disabled[data-v-66a1e406]{color:#afb7c5;cursor:not-allowed}.vault-secret-picker .inputs-wrapper[data-v-9ee12676]{display:flex;flex-direction:column;gap:20px}.vault-secret-picker-vault-dropdown-item[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item[data-v-9ee12676]{display:flex;flex-direction:column}.vault-secret-picker-vault-dropdown-item span[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item span[data-v-9ee12676]{line-height:20px}.vault-secret-picker-vault-dropdown-item .select-item-label[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item .select-item-label[data-v-9ee12676]{font-weight:600}.vault-secret-picker-vault-dropdown-item .select-item-description[data-v-9ee12676]{color:#6c7489;font-size:12px}.vault-secret-picker .k-empty-state[data-v-9ee12676]{background:none;box-sizing:border-box}
|
|
1
|
+
.config-card-fieldset[data-v-dc1e39a1]{border:solid 1px #e0e4ea;border-radius:4px;margin-bottom:8px;margin-top:4px}.config-card-fieldset-title[data-v-dc1e39a1]{font-size:14px;padding:0 8px;width:auto}fieldset.config-card-fieldset .config-card-details-row{width:unset}.config-card-json-item .config-card-details-row,fieldset.config-card-fieldset .config-card-details-row{margin:0 16px}.config-card-json-item .config-card-details-row:last-of-type,fieldset.config-card-fieldset .config-card-details-row:last-of-type{border-bottom:none}[data-v-2feb8c2e] .k-button.navigation-button{font-size:14px;font-weight:400}.config-card-details-row[data-v-66d61bea]{align-items:center;border-bottom:var(--v70f369b3);box-sizing:border-box;display:var(--v67c2fae6);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-66d61bea]{box-sizing:border-box;padding-right:16px;width:var(--v847b138c)}.config-card-details-row .config-card-details-label label[data-v-66d61bea]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-66d61bea]{line-height:initial;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-label label .k-popover[data-v-66d61bea]{min-width:0}.config-card-details-row .config-card-details-value[data-v-66d61bea]{box-sizing:border-box;width:var(--v847687d6)}.config-card-details-row .config-card-details-value .truncated[data-v-66d61bea]{display:inline-block;line-height:initial;max-width:20ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.config-card-details-row .config-card-details-value span.attrs-data-text[data-v-66d61bea]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-66d61bea] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-66d61bea]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-66d61bea]{margin-right:4px}.config-card-details-row[data-v-66d61bea] .k-label{margin-bottom:0}.config-card-details-row[data-v-66d61bea] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-66d61bea] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-right-radius:0}.json-endpoint{align-items:baseline;background-color:#000933;border-bottom:1px solid rgba(255,255,255,.2);border-top-left-radius:8px;border-top-right-radius:8px;display:flex;padding:8px 0 8px 12px}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-top:0}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--eca0976a);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-a7689049]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card .config-card-actions[data-v-f2b42324]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-f2b42324]{margin-bottom:0;margin-right:8px}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-f2b42324]{color:#000933;font-size:16px;font-weight:600;margin-bottom:16px;margin-top:48px}.kong-ui-entity-base-config-card[data-v-f2b42324] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-f2b42324]{margin-left:8px;padding:0}.kong-ui-entity-base-form[data-v-10f3d6b0]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-10f3d6b0] .k-slideout-title{color:#000933!important;font-size:24px!important;font-weight:700!important;line-height:32px!important;margin-bottom:16px!important}.kong-ui-entity-base-form[data-v-10f3d6b0] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-10f3d6b0] .tab-item>div.tab-link.has-panels{color:#6c7489!important;font-size:14px!important;font-weight:700!important;line-height:24px!important}.kong-ui-entity-base-form[data-v-10f3d6b0] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.form-actions[data-v-10f3d6b0]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-10f3d6b0] .k-button:last-of-type,.form-actions[data-v-10f3d6b0] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-10f3d6b0]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-44153100]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-44153100]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-44153100]{display:none}.kong-ui-entity-base-table :deep(.k-table){table-layout:fixed}.kong-ui-entity-delete-modal .message[data-v-4361d622],.kong-ui-entity-delete-modal .description[data-v-4361d622]{line-height:24px;margin:0}.kong-ui-entity-delete-modal .message strong[data-v-4361d622]{font-weight:600}.kong-ui-entity-delete-modal .description[data-v-4361d622]{margin-top:32px}.kong-ui-entity-delete-error[data-v-4361d622]{margin-bottom:16px}.kong-ui-entity-filter-input[data-v-084f7978]{width:100%}.kong-ui-entity-filter-clear[data-v-084f7978]{cursor:pointer}.kong-ui-entity-filter[data-v-084f7978]{display:flex;position:relative}.kong-ui-entity-filter[data-v-084f7978] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-084f7978] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-084f7978]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-084f7978]{background-color:#fff;border:1px solid #afb7c5;border-radius:4px;box-shadow:0 4px 20px #e0e4ea;left:0;margin-top:16px;padding:8px 0 12px;position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-084f7978]{border-bottom:1px solid #e0e4ea;color:#6c7489;font-size:12px;font-weight:400;line-height:16px;list-style:none;margin:0 20px;padding:16px 0;position:relative;white-space:nowrap}.menu-item-title[data-v-084f7978]{align-items:center;cursor:pointer;display:flex;line-height:24px}.menu-item-title.expanded[data-v-084f7978]{color:#232633}.menu-item-expand-icon[data-v-084f7978]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-084f7978]{transform:rotate(180deg)}.menu-item-indicator[data-v-084f7978]{background-color:#0044f4;border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-084f7978]{align-items:center;display:flex;justify-content:space-between;margin-top:16px}.menu-item-body[data-v-084f7978] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-084f7978] .k-input{width:100%}.menu-item-body[data-v-084f7978] .k-select-input .input{font-size:12px}.menu-item-body[data-v-084f7978] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-084f7978]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-084f7978]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-084f7978]{padding:12px 20px 0}fieldset[data-v-b1f74200]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-b1f74200]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{column-gap:16px;display:flex;flex-direction:column;padding-bottom:64px;row-gap:12px;width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-b1f74200]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-b1f74200]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-b1f74200]{height:fit-content;margin-bottom:16px;position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-b1f74200]{color:#000933;font-size:16px;font-weight:700;line-height:20px;margin-bottom:8px;margin-top:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-b1f74200],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-b1f74200] p{color:#000933;font-size:14px;font-weight:400;line-height:20px;margin:0}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-footer[data-v-b1f74200]{margin-top:32px}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-b1f74200]>*:not(:first-child){margin-top:24px}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-b1f74200]{border-bottom:1px solid #e0e4ea}.ff-form-section .header[data-v-cb6d2e95]{align-items:flex-start;display:flex;gap:8px}.ff-form-section .step[data-v-cb6d2e95]{align-items:center;background:#fff;border:1px solid #afb7c5;border-radius:100px;display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;width:32px}.ff-form-section .header-content[data-v-cb6d2e95]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;padding-top:4px}.ff-form-section .header-title[data-v-cb6d2e95]{color:#000933;font-size:18px;font-weight:700;line-height:24px;margin:0}.ff-form-section .header-description[data-v-cb6d2e95]{color:#52596e;font-size:14px;line-height:20px;margin:0}.ff-form-section .header-extra[data-v-cb6d2e95]{align-items:center;display:flex;flex:0 0 auto;gap:8px;justify-content:flex-end}.ff-form-section .content[data-v-cb6d2e95]{background:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;display:flex;flex-direction:column;gap:20px;margin-left:16px;margin-top:20px;padding:20px 24px}.kong-ui-public-entity-link[data-v-96efdfa5]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-96efdfa5]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-96efdfa5] .external-link-icon{color:#0044f4;margin-left:4px;padding:2px}.kong-ui-public-entity-link .entity-link-label[data-v-96efdfa5]{display:inline-block;font-weight:400;max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-96efdfa5]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-96efdfa5]{margin-left:2px}.kong-ui-public-entity-empty-state[data-v-645aae54]{align-items:center;background-color:#fff;box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;gap:24px;padding:64px 0;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-645aae54]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-645aae54]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-645aae54]{align-items:center;display:flex;flex-direction:column;gap:8px;text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-645aae54]{align-items:center;color:#000933;display:flex;font-size:24px;font-weight:700;gap:8px;line-height:32px;margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-645aae54]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{color:#52596e;font-size:14px;font-weight:400;line-height:20px;max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-645aae54],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-645aae54]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-645aae54]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-645aae54]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-645aae54]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-around;margin-top:8px;width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-645aae54]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54]{background-color:#f9fafb;border:1px solid #e0e4ea;border-radius:6px;color:#afb7c5;gap:8px;height:160px;padding:20px;width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54]{color:#3a3f51;display:flex;margin-bottom:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-645aae54] .kui-icon{height:20px!important;width:20px!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-title{font-size:14px;font-weight:600}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-645aae54] .card-content{-webkit-box-orient:vertical;color:#6c7489;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{border-top:1px solid #e0e4ea;display:flex;flex-direction:column;gap:16px;padding-top:48px;width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-645aae54]{width:640px}}.button-row[data-v-0f7e9fff]{align-items:center;display:flex;gap:12px}.kong-ui-entities-vaults-list[data-v-0f7e9fff]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-0f7e9fff]{margin-right:12px}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-0f7e9fff]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.appear-enter-active{transition:all .5s ease}.appear-enter-from,.appear-leave-to{opacity:0;transform:translate(30px)}.kong-ui-entities-vault-form[data-v-b01b3bd3]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-b01b3bd3]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-b01b3bd3]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-b01b3bd3]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-b01b3bd3],.kong-ui-entities-vault-form .vault-form-textarea[data-v-b01b3bd3]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-b01b3bd3]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-b01b3bd3]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-b01b3bd3]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-b01b3bd3]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-b01b3bd3]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-b01b3bd3]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-b01b3bd3] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-b01b3bd3]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-b01b3bd3]>*:not(:first-child){margin-top:24px}.kong-ui-entity-filter-input[data-v-904390fc]{margin-right:12px}.table-content-overflow-wrapper[data-v-904390fc]{max-width:60ch;overflow:hidden;text-overflow:ellipsis}.kong-ui-entities-secrets-list[data-v-f5aa5636]{width:100%}@media screen and (min-width: 1280px){[data-v-5ee165bf] .form-section-wrapper{column-gap:64px}}.kong-ui-entities-secret-form[data-v-754ddb2f]{width:100%}.vault-secret-picker-provider[data-v-66a1e406]{font-size:12px;margin:8px 0}.vault-secret-picker-provider-action[data-v-66a1e406]{color:#0044f4;cursor:pointer}.vault-secret-picker-provider-action.disabled[data-v-66a1e406]{color:#afb7c5;cursor:not-allowed}.vault-secret-picker .inputs-wrapper[data-v-9ee12676]{display:flex;flex-direction:column;gap:20px}.vault-secret-picker-vault-dropdown-item[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item[data-v-9ee12676]{display:flex;flex-direction:column}.vault-secret-picker-vault-dropdown-item span[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item span[data-v-9ee12676]{line-height:20px}.vault-secret-picker-vault-dropdown-item .select-item-label[data-v-9ee12676],.vault-secret-picker-secret-dropdown-item .select-item-label[data-v-9ee12676]{font-weight:600}.vault-secret-picker-vault-dropdown-item .select-item-description[data-v-9ee12676]{color:#6c7489;font-size:12px}.vault-secret-picker .k-empty-state[data-v-9ee12676]{background:none;box-sizing:border-box}
|
|
@@ -23,12 +23,8 @@ export interface BaseVaultFormConfig extends Omit<BaseFormConfig, 'cancelRoute'>
|
|
|
23
23
|
*/
|
|
24
24
|
hcvCertMethodAvailable?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
konnectConfigStoreAvailable?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Show/hide AWS StsEndpointUrl field
|
|
31
|
-
*/
|
|
26
|
+
* Show/hide AWS StsEndpointUrl field
|
|
27
|
+
*/
|
|
32
28
|
awsStsEndpointUrlAvailable?: boolean;
|
|
33
29
|
/**
|
|
34
30
|
* Show/hide Conjur option - mostly for Konnect to pass feature flag value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vault-form.d.ts","sourceRoot":"","sources":["../../../src/types/vault-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;IAC7B;;;OAGG;IACH,2BAA2B,EAAE,OAAO,CAAA;IACpC;;;OAGG;IACH,GAAG,EAAE,OAAO,CAAA;IACZ;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAA;IAEnC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"vault-form.d.ts","sourceRoot":"","sources":["../../../src/types/vault-form.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,yBAAyB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAA;AACvH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,MAAM,WAAW,mBAAoB,SAAQ,IAAI,CAAC,cAAc,EAAE,aAAa,CAAC;IAC9E,+DAA+D;IAC/D,WAAW,EAAE,gBAAgB,CAAA;IAC7B;;;OAGG;IACH,2BAA2B,EAAE,OAAO,CAAA;IACpC;;;OAGG;IACH,GAAG,EAAE,OAAO,CAAA;IACZ;;;OAGG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAA;IAEnC;;OAEG;IACH,sBAAsB,CAAC,EAAE,OAAO,CAAA;IAEhC;;MAEE;IACF,0BAA0B,CAAC,EAAE,OAAO,CAAA;IAEpC;;;OAGG;IACH,4BAA4B,CAAC,EAAE,OAAO,CAAA;IAEtC;;OAEG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,gCAAgC;AAChC,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAEnH,qCAAqC;AACrC,MAAM,WAAW,0BAA2B,SAAQ,IAAI,CAAC,yBAAyB,EAAE,aAAa,CAAC,EAAE,mBAAmB;CAAI;AAE3H,oBAAY,cAAc;IACxB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,oBAAY,gBAAgB;IAC1B,KAAK,UAAU;IACf,GAAG,eAAe;IAClB,QAAQ,YAAY;IACpB,IAAI,SAAS;CACd;AAGD,MAAM,WAAW,iBAAiB;CAAG;AAErC,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAA;IACd,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,EAAE,MAAM,CAAA;IACzB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,KAAK,EAAE,MAAM,CAAA;IACb,EAAE,EAAE,MAAM,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,EAAE,MAAM,CAAA;IACnB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,sBAAsB,CAAC,EAAE,MAAM,CAAA;IAC/B,yBAAyB,CAAC,EAAE,OAAO,CAAA;IACnC,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAC5B;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,MAAM,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAA;IACpB,WAAW,EAAE,SAAS,CAAA;IACtB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAID,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,cAAc,EAAE,WAAW,GAAG,OAAO,CAAC;IACxF,SAAS,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CACtB;AAID,MAAM,WAAW,uBAAwB,SAAQ,IAAI,CAAC,gBAAgB,EAAE,WAAW,GAAG,WAAW,CAAC;IAChG,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC1B;AAID,MAAM,WAAW,qBAAsB,SAAQ,IAAI,CAAC,cAAc,EAAE,cAAc,GAAG,iBAAiB,CAAC;IACrG,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,cAAc,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,IAAI,EAAE,MAAM,EAAE,CAAA;IACd,MAAM,EAAE,iBAAiB,GAAG,eAAe,GAAG,cAAc,GAAG,qBAAqB,GAAG,uBAAuB,GAAG,qBAAqB,CAAA;CACvI;AAED,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,EAAE,MAAM,CAAA;IACnB,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,gBAAgB,CAAA;IACxB,UAAU,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAA;CACX"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-vaults",
|
|
3
|
-
"version": "3.26.
|
|
3
|
+
"version": "3.26.8-pr.2627.c4d4db7cb.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-vaults.umd.js",
|
|
6
6
|
"module": "./dist/entities-vaults.es.js",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"axios": "^1.7.7",
|
|
36
36
|
"vue": "^3.5.22",
|
|
37
37
|
"vue-router": "^4.4.5",
|
|
38
|
-
"@kong-ui-public/
|
|
39
|
-
"@kong-ui-public/
|
|
38
|
+
"@kong-ui-public/i18n": "^2.4.4",
|
|
39
|
+
"@kong-ui-public/entities-shared": "^3.32.5"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|
|
42
42
|
"type": "git",
|