@kong-ui-public/entities-vaults 4.0.15 → 4.0.16-pr.2790.95b70759b.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.
|
@@ -848,7 +848,7 @@ const he = {
|
|
|
848
848
|
for (const [d, p] of S)
|
|
849
849
|
c[d] = p;
|
|
850
850
|
return c;
|
|
851
|
-
}, El = /* @__PURE__ */ me(Pt, [["__scopeId", "data-v-
|
|
851
|
+
}, El = /* @__PURE__ */ me(Pt, [["__scopeId", "data-v-4ae7ac82"]]);
|
|
852
852
|
var t = /* @__PURE__ */ ((o) => (o.AWS = "aws", o.GCP = "gcp", o.HCV = "hcv", o.ENV = "env", o.AZURE = "azure", o.KONNECT = "konnect", o.CONJUR = "conjur", o))(t || {}), A = /* @__PURE__ */ ((o) => (o.TOKEN = "token", o.K8S = "kubernetes", o.APP_ROLE = "approle", o.CERT = "cert", o.JWT = "jwt", o))(A || {});
|
|
853
853
|
const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-provider-cards-container" }, Ft = ["data-testid"], Ot = { class: "provider-item-title-container" }, qt = { class: "provider-item-title" }, jt = { class: "provider-item-description" }, Wt = {
|
|
854
854
|
key: "kong-vault-config-fields",
|
|
@@ -2015,7 +2015,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
2015
2015
|
]);
|
|
2016
2016
|
};
|
|
2017
2017
|
}
|
|
2018
|
-
}), Ul = /* @__PURE__ */ me(tl, [["__scopeId", "data-v-
|
|
2018
|
+
}), Ul = /* @__PURE__ */ me(tl, [["__scopeId", "data-v-3f83a271"]]), ll = { class: "kong-ui-vault-entity-config-card" }, Tl = /* @__PURE__ */ ce({
|
|
2019
2019
|
__name: "VaultConfigCard",
|
|
2020
2020
|
props: {
|
|
2021
2021
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2310,7 +2310,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
2310
2310
|
], 64);
|
|
2311
2311
|
};
|
|
2312
2312
|
}
|
|
2313
|
-
}), rl = /* @__PURE__ */ me(al, [["__scopeId", "data-v-
|
|
2313
|
+
}), rl = /* @__PURE__ */ me(al, [["__scopeId", "data-v-ba08720f"]]), il = { class: "kong-ui-entities-secrets-list" }, nl = /* @__PURE__ */ ce({
|
|
2314
2314
|
__name: "SecretList",
|
|
2315
2315
|
props: {
|
|
2316
2316
|
/** The base konnect config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2507,7 +2507,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
2507
2507
|
}, 8, ["can-submit", "config", "edit-id", "entity-type", "error-message", "fetch-url", "form-fields", "is-readonly"]);
|
|
2508
2508
|
};
|
|
2509
2509
|
}
|
|
2510
|
-
}), dl = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-
|
|
2510
|
+
}), dl = /* @__PURE__ */ me(sl, [["__scopeId", "data-v-9dcc3154"]]), ul = { class: "kong-ui-entities-secret-form" }, cl = /* @__PURE__ */ ce({
|
|
2511
2511
|
__name: "SecretForm",
|
|
2512
2512
|
props: {
|
|
2513
2513
|
/** The base konnect or kongManger config. Pass additional config props in the shared entity component as needed. */
|
|
@@ -2595,7 +2595,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
2595
2595
|
_: 1
|
|
2596
2596
|
})]));
|
|
2597
2597
|
}
|
|
2598
|
-
}), Kl = /* @__PURE__ */ me(pl, [["__scopeId", "data-v-
|
|
2598
|
+
}), Kl = /* @__PURE__ */ me(pl, [["__scopeId", "data-v-d135d1d0"]]), ml = (o) => {
|
|
2599
2599
|
let S = o.trim();
|
|
2600
2600
|
if (!S.startsWith("{") || !S.endsWith("}"))
|
|
2601
2601
|
throw new Error("Invalid secret reference: must be enclosed in curly braces");
|
|
@@ -2861,7 +2861,7 @@ const Mt = { class: "kong-ui-entities-vault-form" }, Nt = { class: "vault-form-p
|
|
|
2861
2861
|
}, 8, ["action-button-disabled", "action-button-text", "title", "visible"]);
|
|
2862
2862
|
};
|
|
2863
2863
|
}
|
|
2864
|
-
}), Pl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-
|
|
2864
|
+
}), Pl = /* @__PURE__ */ me(wl, [["__scopeId", "data-v-3e3fa936"]]);
|
|
2865
2865
|
export {
|
|
2866
2866
|
$l as SecretForm,
|
|
2867
2867
|
Hl as SecretList,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,e(v["kong-ui-public-entities-vaults"]={},v.Vue,v.VueRouter,v.KongIcons,v["kong-ui-public-entities-shared"],v["kong-ui-public-i18n"]))})(this,function(v,e,ce,J,p,fe){"use strict";const _e={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"},oauth2_audiences:{label:"OAuth2 Audiences",tooltip:"Comma-separated list of OAuth2 audiences."},oauth2_client_id:{label:"OAuth2 Client ID"},oauth2_client_secret:{label:"OAuth2 Client Secret"},jwt_role:{label:"JWT Role",tooltip:"The configured role name in HashiCorp Vault for JWT auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."},oauth2_token_endpoint:{label:"OAuth2 Token Endpoint"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},conjur:{label:"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 ye(){const l=fe.createI18n("en-us",_e);return{i18n:l,i18nT:fe.i18nTComponent(l)}}const ne={useI18n:ye},de="/v2/control-planes/{controlPlaneId}/core-entities",pe="/v2/control-planes/{controlPlaneId}/config-stores",ue="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${pe}/{id}?force=true`},kongManager:{getAll:`${ue}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:pe,edit:`${de}/vaults/{id}`},kongManager:{create:`${ue}/vaults`,edit:`${ue}/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:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.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(l,{emit:C}){var re;const d=C,c=l,{i18n:{t:f}}=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),i=e.computed(()=>w.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),u={prefix:{label:f("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:f("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:f("vaults.list.table_headers.description"),sortable:!1},tags:{label:f("vaults.list.table_headers.tags"),sortable:!1}},U=u,W=e.computed(()=>{var E,S;let V=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"?V=V.replace(/{controlPlaneId}/gi,((E=c.config)==null?void 0:E.controlPlaneId)||""):c.config.app==="kongManager"&&(V=V.replace(/\/{workspace}/gi,(S=c.config)!=null&&S.workspace?`/${c.config.workspace}`:"")),V}),O=e.ref(""),q=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:f("search.placeholder_for_vaults.konnect")};const{prefix:E,name:S}=u;return{isExactMatch:!1,fields:{name:S,prefix:E},schema:c.config.filterSchema}}),{fetcher:$,fetcherState:o,fetcherCacheKey:Z}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),W),F=()=>{O.value=""},j=()=>{Z.value++},K=e.ref(null),h=async(V,E)=>{const S=V.id;if(!await E(S)){d("copy:error",{entity:V,field:"id",message:f("errors.copy")});return}d("copy:success",{entity:V,field:"id",message:f("copy.success",{val:S})})},B=async(V,E)=>{const S=JSON.stringify(V);if(!await E(S)){d("copy:error",{entity:V,message:f("errors.copy")});return}d("copy:success",{entity:V,message:f("copy.success_brief")})},Q=async V=>{var S;await((S=c.canRetrieve)==null?void 0:S.call(c,V))&&a.push(c.config.getViewRoute(V.id))},X=V=>({label:f("actions.view"),to:c.config.getViewRoute(V)}),z=V=>({label:f("actions.edit"),to:c.config.getEditRoute(V)}),H=e.ref(void 0),Y=e.ref(!1),I=e.ref(!1),D=e.ref(""),L=p.useDeleteUrlBuilder(c.config,W.value),b=V=>{H.value=V,Y.value=!0},m=()=>{Y.value=!1},R=async V=>{const{apiBaseUrl:E,app:S,controlPlaneId:s}=c.config,r=`${E}${te.list[S].deleteConfigStore}`.replace(/{controlPlaneId}/gi,s||"").replace(/{id}/gi,V);try{await A.delete(r)}catch{}},T=async()=>{var V,E,S,s;if((V=H.value)!=null&&V.id){I.value=!0;try{await A.delete(L(H.value.id)),c.config.app==="konnect"&&((E=H.value.config)!=null&&E.config_store_id)&&R(H.value.config.config_store_id),I.value=!1,Y.value=!1,Z.value++,d("delete:success",H.value)}catch(r){D.value=((s=(S=r.response)==null?void 0:S.data)==null?void 0:s.message)||r.message||f("errors.delete"),d("error",r)}finally{I.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(o,V=>{var E,S,s;if(V.status===p.FetcherStatus.Error){K.value={title:f("errors.general")},(s=(S=(E=V.error)==null?void 0:E.response)==null?void 0:S.data)!=null&&s.message&&(K.value.message=V.error.response.data.message),d("error",V.error);return}K.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${f("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:f("vaults.title")}),x=e.ref(!1);return e.onBeforeMount(async()=>{x.value=await c.canCreate(),x.value&&(P.value.title=f("vaults.list.empty_state.title"),P.value.ctaText=f("actions.create"))}),(V,E)=>{const S=e.resolveComponent("KButton"),s=e.resolveComponent("KEmptyState"),r=e.resolveComponent("KDropdownItem"),M=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":P.value,"enable-entity-actions":"","error-message":K.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:F,"onClick:row":E[3]||(E[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":E[0]||(E[0]=k=>O.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[i.value?(e.openBlock(),e.createBlock(S,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:E[1]||(E[1]=k=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(S,{appearance:"primary","data-testid":"toolbar-add-vault",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("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(M,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(r,{"data-testid":"action-entity-copy-id",onClick:G=>h(k,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(M,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(r,{"data-testid":"action-entity-copy-json",onClick:G=>B(k,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.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":()=>l.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-edit",item:z(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(r,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:_=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!O.value&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(s,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(f)("vaults.list.empty_state_v2.description"),title:e.unref(f)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(J.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(S,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:E[2]||(E[2]=_=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=l.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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":I.value,description:e.unref(f)("delete.description"),"entity-name":H.value&&(H.value.prefix||H.value.id),"entity-type":e.unref(p.EntityTypes).Vault,error:D.value,title:e.unref(f)("delete.title"),visible:Y.value,onCancel:m,onProceed:T},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),le=(l,C)=>{const d=l.__vccOpts||l;for(const[c,f]of C)d[c]=f;return d},Ne=le(we,[["__scopeId","data-v-0f7e9fff"]]);var t=(l=>(l.AWS="aws",l.GCP="gcp",l.HCV="hcv",l.ENV="env",l.AZURE="azure",l.KONNECT="konnect",l.CONJUR="conjur",l))(t||{}),N=(l=>(l.TOKEN="token",l.K8S="kubernetes",l.APP_ROLE="approle",l.CERT="cert",l.JWT="jwt",l))(N||{});const xe={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"},Be={key:1,class:"vault-form-config-auth-method-container"},ve={key:2,class:"vault-form-config-auth-method-container"},$e={key:3,class:"vault-form-config-auth-method-container"},He={key:4,class:"vault-form-config-auth-method-container"},Pe={key:6},Me={class:"wrapper"},Fe={class:"item-50"},Ke={class:"item-50"},De={class:"wrapper"},Oe={class:"item-100"},qe=le(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||(l==null?void 0:l.app)==="konnect"&&!(l!=null&&l.controlPlaneId)||(l==null?void 0:l.app)==="kongManager"&&typeof(l==null?void 0:l.workspace)!="string"||!(l!=null&&l.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var S;const d=l,c=C,{i18nT:f,i18n:{t:a}}=ne.useI18n(),A=ce.useRouter(),{axiosInstance:w}=p.useAxios((S=d.config)==null?void 0:S.axiosRequestConfig),{getMessageFromError:y}=p.useErrors(),i=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),u=e.ref(d.config.app==="konnect"?t.KONNECT:t.ENV),U=e.ref(null),W=e.ref(),O=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(u.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:!z.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!z.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!z.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!z.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!z.value}]:[]]),$=d.config.base64FieldAvailable?{base64_decode:!1}:{},o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:N.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:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...$},[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:N.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",...$}}),F=[{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"}],K=[{label:"http",value:"http"},{label:"https",value:"https"}],h=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],B=e.computed(()=>d.vaultId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var s,r;return(r=te.form[(s=d.config)==null?void 0:s.app])==null?void 0:r.edit}),X=e.computed(()=>B.value===p.EntityBaseFormType.Edit&&d.config.app==="kongManager"),z=e.computed(()=>d.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),H=()=>{var s;A.push(((s=d.config)==null?void 0:s.cancelRoute)||{name:"vault-list"})},Y=s=>{c("loading",s)},I=s=>{c("error",s)},D=s=>{switch(s){case t.KONNECT:return J.KongIcon;case t.ENV:return J.CodeIcon;case t.AWS:return J.AwsIcon;case t.GCP:return J.GoogleCloudIcon;case t.HCV:return J.HashicorpIcon;case t.AZURE:return J.AzureIcon;case t.CONJUR:return J.ConjourIcon}},L=s=>{switch(s){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},b=s=>{var k,_,G,oe,ie,n;i.fields.prefix=((k=s==null?void 0:s.item)==null?void 0:k.prefix)||(s==null?void 0:s.prefix)||"",i.fields.description=((_=s==null?void 0:s.item)==null?void 0:_.description)||(s==null?void 0:s.description)||"";const r=((G=s==null?void 0:s.item)==null?void 0:G.tags)||(s==null?void 0:s.tags)||[];i.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign(g,i.fields);const M=((oe=s==null?void 0:s.item)==null?void 0:oe.config)||(s==null?void 0:s.config)||null;M&&(Object.keys(M).length||(s==null?void 0:s.name)===t.KONNECT)?(u.value=((ie=s==null?void 0:s.item)==null?void 0:ie.name)||(s==null?void 0:s.name)||"",U.value=u.value,W.value=((n=s==null?void 0:s.config)==null?void 0:n.config_store_id)||void 0,Object.assign(o[u.value],M),Object.assign(Z[u.value],M)):i.errorMessage="Error loading vault config"},m=s=>s===""||s==null,R=e.computed(()=>u.value===t.HCV?!Object.keys(o[t.HCV]).filter(s=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file","oauth2_audiences"].includes(s)||o[t.HCV].auth_method!==N.K8S&&(s==="kube_role"||s==="kube_api_token_file")||o[t.HCV].auth_method!==N.TOKEN&&s==="token"||o[t.HCV].auth_method!==N.APP_ROLE&&(s==="approle_role_id"||s==="approle_response_wrapping")||o[t.HCV].auth_method===N.APP_ROLE&&s==="approle_response_wrapping"&&typeof o[u.value][s]=="boolean"||o[t.HCV].auth_method!==N.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(s)||o[t.HCV].auth_method!==N.JWT&&["oauth2_client_id","oauth2_client_secret","jwt_role","oauth2_token_endpoint"].includes(s)?!1:m(o[u.value][s])).length:u.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(s=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:m(o[u.value][s])).length:u.value===t.AWS?!Object.keys(o[t.AWS]).filter(s=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(s)?!1:m(o[u.value][s])).length:!Object.keys(o[u.value]).filter(s=>["ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:m(o[u.value][s])).length),T=e.computed(()=>!!i.fields.prefix&&R.value),ee=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(g)||u.value!==U.value||JSON.stringify(o[u.value])!==JSON.stringify(Z[u.value])),P=e.computed(()=>{var r,M;let s=`${d.config.apiBaseUrl}${te.form[d.config.app][B.value]}`;return d.config.app==="konnect"?s=s.replace(/{controlPlaneId}/gi,((r=d.config)==null?void 0:r.controlPlaneId)||""):d.config.app==="kongManager"&&(s=s.replace(/\/{workspace}/gi,(M=d.config)!=null&&M.workspace?`/${d.config.workspace}`:"")),s=s.replace(/{id}/gi,d.vaultId),s}),x=e.computed(()=>{var oe,ie;const s={protocol:o[t.HCV].protocol,host:o[t.HCV].host,port:parseInt(o[t.HCV].port.toString()),mount:o[t.HCV].mount,kv:o[t.HCV].kv,namespace:o[t.HCV].namespace||null,auth_method:o[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:o[t.HCV].base64_decode},...o[t.HCV].auth_method===N.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===N.K8S&&{kube_role:o[t.HCV].kube_role,kube_auth_path:o[t.HCV].kube_auth_path||void 0,kube_api_token_file:o[t.HCV].kube_api_token_file,token:null},...o[t.HCV].auth_method===N.APP_ROLE&&{approle_auth_path:o[t.HCV].approle_auth_path||void 0,approle_role_id:o[t.HCV].approle_role_id,approle_secret_id:o[t.HCV].approle_secret_id||void 0,approle_secret_id_file:o[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:o[t.HCV].approle_response_wrapping??!1},...o[t.HCV].auth_method===N.CERT&&{cert_auth_role_name:o[t.HCV].cert_auth_role_name,cert_auth_cert:o[t.HCV].cert_auth_cert,cert_auth_cert_key:o[t.HCV].cert_auth_cert_key},...o[t.HCV].auth_method===N.JWT&&{oauth2_audiences:o[t.HCV].oauth2_audiences||null,oauth2_client_id:o[t.HCV].oauth2_client_id,oauth2_client_secret:o[t.HCV].oauth2_client_secret,jwt_role:o[t.HCV].jwt_role,oauth2_token_endpoint:o[t.HCV].oauth2_token_endpoint}},r={...o[u.value],client_id:o[u.value].client_id||null,tenant_id:o[u.value].tenant_id||null},M={...o[u.value],endpoint_url:o[u.value].endpoint_url||null,assume_role_arn:o[u.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[u.value].sts_endpoint_url||null}:{}};let k=o[u.value];u.value===t.HCV?k=s:u.value===t.AZURE?k=r:u.value===t.AWS&&(k=M);let _={};if(![t.KONNECT,t.ENV].includes(u.value)){const n=o[u.value],me=n.ttl,ge=n.neg_ttl,be=n.resurrect_ttl;_={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:i.fields.prefix,description:i.fields.description||null,tags:(ie=(oe=i.fields.tags.split(","))==null?void 0:oe.map(n=>String(n||"").trim()))==null?void 0:ie.filter(n=>n!==""),name:u.value,config:{...k,..._}}}),re=e.computed(()=>({...x.value,config:{...x.value.config,config_store_id:W.value}})),V=async()=>{var s;try{i.isReadonly=!0;const r=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((s=d.config)==null?void 0:s.controlPlaneId)||""),M=await w.post(r);return M==null?void 0:M.data.id}catch(r){i.errorMessage=y(r),c("error",r)}finally{i.isReadonly=!1}},E=async()=>{var s;try{i.isReadonly=!0;let r;B.value==="create"?u.value===t.KONNECT?(W.value=await V(),r=await w.post(P.value,re.value)):r=await w.post(P.value,x.value):B.value==="edit"&&(u.value===t.KONNECT&&!W.value?(W.value=await V(),r=await w.put(P.value,re.value)):r=((s=d.config)==null?void 0:s.app)==="konnect"?await w.put(P.value,re.value):await w.patch(P.value,x.value)),b(r==null?void 0:r.data),c("update",r==null?void 0:r.data)}catch(r){i.errorMessage=y(r),c("error",r)}finally{i.isReadonly=!1}};return(s,r)=>{const M=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),_=e.resolveComponent("KInput"),G=e.resolveComponent("KCheckbox"),oe=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":T.value&&ee.value,config:l.config,"edit-id":l.vaultId,"entity-type":e.unref(p.SupportedEntityType).Vault,"error-message":i.errorMessage,"fetch-url":Q.value,"form-fields":x.value,"is-readonly":i.isReadonly,onCancel:H,"onFetch:error":I,"onFetch:success":b,onLoading:Y,onSubmit:E},{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:u.value,"onUpdate:modelValue":r[0]||(r[0]=n=>u.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:q.value,readonly:i.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(M,{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(()=>[u.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(_,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix",label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":r[2]||(r[2]=n=>o[e.unref(t).ENV].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(k,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":r[3]||(r[3]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:F,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[4]||(r[4]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url",label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[5]||(r[5]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn",label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[6]||(r[6]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name",label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),l.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(_,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[7]||(r[7]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url",label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:1,modelValue:o[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":r[8]||(r[8]=n=>o[e.unref(t).AWS].base64_decode=n),"data-testid":"vault-form-config-aws-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[9]||(r[9]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id",label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),readonly:i.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(f),{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"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":r[10]||(r[10]=n=>o[e.unref(t).GCP].base64_decode=n),"data-testid":"vault-form-config-gcp-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(k,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[11]||(r[11]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:K,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":r[12]||(r[12]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host",label:e.unref(a)("form.config.hcv.fields.host.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":r[13]||(r[13]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port",label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":r[14]||(r[14]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount",label:e.unref(a)("form.config.hcv.fields.mount.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":r[15]||(r[15]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:h,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[16]||(r[16]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace",label:e.unref(a)("form.config.hcv.fields.namespace.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[17]||(r[17]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(N).TOKEN,value:e.unref(N).TOKEN},{label:e.unref(N).K8S,value:e.unref(N).K8S},...l.config.hcvAppRoleMethodAvailable?[{label:e.unref(N).APP_ROLE,value:e.unref(N).APP_ROLE}]:[],...l.config.hcvCertMethodAvailable?[{label:e.unref(N).CERT,value:e.unref(N).CERT}]:[],...l.config.hcvJwtMethodAvailable?[{label:e.unref(N).JWT,value:e.unref(N).JWT}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(N).TOKEN?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":r[18]||(r[18]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token",label:e.unref(a)("form.config.hcv.fields.token.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).K8S?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[19]||(r[19]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role",label:e.unref(a)("form.config.hcv.fields.kube_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[20]||(r[20]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path",label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[21]||(r[21]=n=>o[e.unref(t).HCV].kube_api_token_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file",label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).APP_ROLE?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[22]||(r[22]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path",label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[23]||(r[23]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id",label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[24]||(r[24]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id",label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[25]||(r[25]=n=>o[e.unref(t).HCV].approle_secret_id_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file",label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(G,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[26]||(r[26]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):o[e.unref(t).HCV].auth_method===e.unref(N).CERT?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":r[27]||(r[27]=n=>o[e.unref(t).HCV].cert_auth_role_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_role_name",label:e.unref(a)("form.config.hcv.fields.cert_auth_role_name.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:o[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":r[28]||(r[28]=n=>o[e.unref(t).HCV].cert_auth_cert=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:o[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":r[29]||(r[29]=n=>o[e.unref(t).HCV].cert_auth_cert_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert_key",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert_key.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).JWT?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_client_id,"onUpdate:modelValue":r[30]||(r[30]=n=>o[e.unref(t).HCV].oauth2_client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_id",label:e.unref(a)("form.config.hcv.fields.oauth2_client_id.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_client_secret,"onUpdate:modelValue":r[31]||(r[31]=n=>o[e.unref(t).HCV].oauth2_client_secret=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_secret",label:e.unref(a)("form.config.hcv.fields.oauth2_client_secret.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].jwt_role,"onUpdate:modelValue":r[32]||(r[32]=n=>o[e.unref(t).HCV].jwt_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-jwt_role",label:e.unref(a)("form.config.hcv.fields.jwt_role.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.jwt_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_token_endpoint,"onUpdate:modelValue":r[33]||(r[33]=n=>o[e.unref(t).HCV].oauth2_token_endpoint=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_token_endpoint",label:e.unref(a)("form.config.hcv.fields.oauth2_token_endpoint.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_audiences,"onUpdate:modelValue":r[34]||(r[34]=n=>o[e.unref(t).HCV].oauth2_audiences=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_audiences",label:e.unref(a)("form.config.hcv.fields.oauth2_audiences.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.oauth2_audiences.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])])):e.createCommentVNode("",!0),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:5,modelValue:o[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":r[35]||(r[35]=n=>o[e.unref(t).HCV].base64_decode=n),"data-testid":"vault-form-config-hcv-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":r[36]||(r[36]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location",label:e.unref(a)("form.config.azure.fields.location.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[37]||(r[37]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri",label:e.unref(a)("form.config.azure.fields.vault_uri.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[38]||(r[38]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix",label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":r[39]||(r[39]=n=>o[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:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[40]||(r[40]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id",label:e.unref(a)("form.config.azure.fields.client_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[41]||(r[41]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id",label:e.unref(a)("form.config.azure.fields.tenant_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":r[42]||(r[42]=n=>o[e.unref(t).AZURE].base64_decode=n),"data-testid":"vault-form-config-azure-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":r[43]||(r[43]=n=>o[e.unref(t).CONJUR].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url",label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].login,"onUpdate:modelValue":r[44]||(r[44]=n=>o[e.unref(t).CONJUR].login=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login",label:e.unref(a)("form.config.conjur.fields.login.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.login.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].account,"onUpdate:modelValue":r[45]||(r[45]=n=>o[e.unref(t).CONJUR].account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-account",label:e.unref(a)("form.config.conjur.fields.account.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.account.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":r[46]||(r[46]=n=>o[e.unref(t).CONJUR].api_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_key",label:e.unref(a)("form.config.conjur.fields.api_key.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.api_key.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":r[47]||(r[47]=n=>o[e.unref(t).CONJUR].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.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",Me,[e.createElementVNode("div",Fe,[e.createVNode(_,{modelValue:o[u.value].ttl,"onUpdate:modelValue":r[48]||(r[48]=n=>o[u.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ke,[e.createVNode(_,{modelValue:o[u.value].neg_ttl,"onUpdate:modelValue":r[49]||(r[49]=n=>o[u.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",De,[e.createElementVNode("div",Oe,[e.createVNode(_,{modelValue:o[u.value].resurrect_ttl,"onUpdate:modelValue":r[50]||(r[50]=n=>o[u.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.resurrectTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:i.fields.prefix,"onUpdate:modelValue":r[51]||(r[51]=n=>i.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(oe,{modelValue:i.fields.description,"onUpdate:modelValue":r[52]||(r[52]=n=>i.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:i.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(_,{modelValue:i.fields.tags,"onUpdate:modelValue":r[53]||(r[53]=n=>i.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-69c9b94d"]]),We={class:"kong-ui-vault-entity-config-card"},je=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(l){const C=l,d=["token","approle_secret_id","api_key"],c=e.computed(()=>{var i,g;return(g=te.form[(i=C.config)==null?void 0:i.app])==null?void 0:g.edit}),{i18n:{t:f}}=ne.useI18n(),{convertKeyToTitle:a}=p.useStringHelpers(),{getPropValue:A}=p.useHelpers(),w=e.ref({id:{},name:{label:f("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=i=>{var g,u;return((u=(g=w.value)==null?void 0:g[i])==null?void 0:u.label)||a(i)};return(i,g)=>(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":w.value,"entity-type":e.unref(p.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":l.hideTitle,"onFetch:error":g[0]||(g[0]=u=>i.$emit("fetch:error",u)),"onFetch:success":g[1]||(g[1]=u=>i.$emit("fetch:success",u)),onLoading:g[2]||(g[2]=u=>i.$emit("loading",u))},{config:e.withCtx(({rowValue:u})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(u).sort(),U=>(e.openBlock(),e.createBlock(e.unref(p.ConfigCardItem),{key:U,item:{key:U,value:e.unref(A)(U,u),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}`}}},Le={class:"table-content-overflow-wrapper"},Je=le(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:l=>!(!l||(l==null?void 0:l.app)!=="konnect"||!l.createRoute||!l.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(l,{emit:C}){var Y;const d=C,c=l,{i18n:{t:f,formatUnixTimeStamp:a}}=ne.useI18n(),{axiosInstance:A}=p.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:f("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:f("secrets.list.table_headers.updated_at"),sortable:!1}},i=I=>({"data-testid":I.key}),g=e.computed(()=>{var I;return`${c.config.apiBaseUrl}${ae.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((I=c.config)==null?void 0:I.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId||"")}),u=e.ref(""),U={isExactMatch:!0,placeholder:f("search.placeholder_for_secrets.konnect")},{fetcher:W,fetcherState:O,fetcherCacheKey:q}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),$=()=>{u.value=""},o=e.ref(null),Z=I=>({label:f("actions.edit"),to:c.config.getEditRoute(I)}),F=e.ref(void 0),j=e.ref(!1),K=e.ref(!1),h=e.ref(""),B=p.useDeleteUrlBuilder(c.config,g.value),Q=I=>{F.value=I,j.value=!0},X=()=>{j.value=!1},z=async()=>{var I,D,L;if((I=F.value)!=null&&I.key){K.value=!0;try{await A.delete(B(F.value.key)),K.value=!1,j.value=!1,q.value++,d("delete:success",F.value)}catch(b){h.value=((L=(D=b.response)==null?void 0:D.data)==null?void 0:L.message)||b.message||f("errors.delete"),d("error",b)}finally{K.value=!1}}};e.watch(O,I=>{var D,L,b;if(I.status===p.FetcherStatus.Error){o.value={title:f("errors.general")},(b=(L=(D=I.error)==null?void 0:D.response)==null?void 0:L.data)!=null&&b.message&&(o.value.message=I.error.response.data.message),d("error",I.error);return}o.value=null});const H=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${f("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:f("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(H.value.title=f("secrets.list.empty_state.title"),H.value.ctaText=f("secrets.list.toolbar_actions.new_secret"))}),(I,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":l.cacheIdentifier,"disable-sorting":"","empty-state-options":H.value,"enable-entity-actions":"","error-message":o.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(q),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:u.value,"row-attributes":i,"table-headers":e.unref(y),onClearSearchInput:$},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":D[0]||(D[0]=m=>u.value=m),config:U},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(L,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:m})=>[e.createElementVNode("div",Le,[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":()=>l.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":()=>l.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(f)("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":K.value,description:e.unref(f)("delete.description"),"entity-name":F.value&&F.value.key,"entity-type":e.unref(p.EntityTypes).Secret,error:h.value,title:e.unref(f)("delete.title_for_secret"),visible:j.value,onCancel:X,onProceed:z},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:l=>!(!l||(l==null?void 0:l.app)!=="konnect"||!l.createRoute||!l.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(l,{emit:C}){var i;const d=C,c=l,f=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:A}=p.useAxios((i=c.config)==null?void 0:i.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:u}=await A.get(y.value);w.value=(g=u==null?void 0:u.config)==null?void 0:g.config_store_id}catch(u){d("error",u)}}),(g,u)=>(e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(Je,e.mergeProps({key:0},c,{"config-store-id":w.value,"onDelete:success":a,onError:f}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f5aa5636"]]),Ze=le(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:l=>!(!l||l.app!=="konnect"||!l.controlPlaneId||!l.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var K;const d=l,c=C,{i18n:{t:f}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:A}=p.useAxios((K=d.config)==null?void 0:K.axiosRequestConfig),{getMessageFromError:w}=p.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),i=e.reactive({key:"",value:""}),g=e.computed(()=>{var h,B;return(B=ae.form[(h=d.config)==null?void 0:h.app])==null?void 0:B.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),u=()=>{var h;a.push(((h=d.config)==null?void 0:h.cancelRoute)||{name:"secret-list"})},U=h=>{c("loading",h)},W=h=>{c("error",h)},O=h=>{var B,Q;y.fields.key=((B=h==null?void 0:h.item)==null?void 0:B.key)||(h==null?void 0:h.key)||"",y.fields.value=((Q=h==null?void 0:h.item)==null?void 0:Q.value)||(h==null?void 0:h.value)||"",Object.assign(i,y.fields)},q=e.computed(()=>d.secretId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),$=e.computed(()=>{var h;return`${d.config.apiBaseUrl}${ae.form[d.config.app][q.value]}`.replace(/{controlPlaneId}/gi,((h=d.config)==null?void 0:h.controlPlaneId)||"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),o=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(i)),F=e.computed(()=>({key:y.fields.key,value:y.fields.value})),j=async()=>{try{y.readonly=!0;let h;q.value==="create"?h=await A.post($.value,F.value):q.value==="edit"&&(h=await A.put($.value,F.value)),O(h==null?void 0:h.data),c("update",h==null?void 0:h.data)}catch(h){y.errorMessage=w(h),c("error",h)}finally{y.readonly=!1}};return(h,B)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),z=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(p.EntityBaseForm),{"can-submit":o.value&&Z.value,config:l.config,"edit-id":l.secretId,"entity-type":e.unref(p.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":F.value,"is-readonly":y.readonly,onCancel:u,"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(f)("secrets.form.info.description"),"has-divider":"",title:e.unref(f)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":B[0]||(B[0]=H=>y.fields.key=H),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:q.value===e.unref(p.EntityBaseFormType).Edit,label:e.unref(f)("secrets.form.fields.key.label"),placeholder:e.unref(f)("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":B[1]||(B[1]=H=>y.fields.value=H),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(f)("secrets.form.fields.value.label"),placeholder:e.unref(f)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(z,{appearance:"warning",message:e.unref(f)("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"]]),Qe={class:"kong-ui-entities-secret-form"},Ye=le(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||l.app!=="konnect"||!l.controlPlaneId||!l.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var g;const d=l,c=C,f=u=>{c("update",u)},a=u=>{c("error",u)},A=u=>{c("loading",u)},{axiosInstance:w}=p.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),i=e.computed(()=>{var u;return`${d.config.apiBaseUrl}${ae.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((u=d.config)==null?void 0:u.controlPlaneId)||"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var u;try{const{data:U}=await w.get(i.value);y.value=(u=U==null?void 0:U.config)==null?void 0:u.config_store_id}catch(U){c("error",U)}}),(u,U)=>(e.openBlock(),e.createElementBlock("div",Qe,[y.value?(e.openBlock(),e.createBlock(Ze,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:A,onUpdate:f}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-754ddb2f"]]),Xe={class:"vault-secret-picker-provider"},et=le(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(l,{emit:C}){const d=l,c=C,{i18n:{t:f},i18nT:a}=ne.useI18n();return(A,w)=>(e.openBlock(),e.createElementBlock("div",Xe,[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(f)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-66a1e406"]]),tt=l=>{let C=l.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,[,f,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:f||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},ot=l=>{if(!l.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${l.vaultPrefix}`;return l.secretId&&(C=`${C}/${l.secretId}`),l.optionalSecretKey&&(C=`${C}/${l.optionalSecretKey}`),`{${C}}`},lt={key:1,class:"inputs-wrapper"},at={"data-testid":"no-search-results"},rt={class:"k-select-selected-item-label"},nt={class:"vault-secret-picker-vault-dropdown-item"},it={class:"select-item-label"},st={class:"select-item-description"},ct={class:"select-item-description"},dt={"data-testid":"no-search-results"},ut=le(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.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(l,{emit:C}){var L;const{i18n:{t:d}}=ne.useI18n(),c=l,f=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(""),i=e.ref(""),g=e.ref(),u=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:o}=p.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:F,error:j,loadItems:K,results:h}=p.useDebouncedFilter(c.config,u,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),B=e.computed(()=>{var R;let b=!1;const m=((R=o.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=h.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"}),z=e.computed(()=>!!g.value&&!!y.value&&!c.additionalDisabled),H=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)},I=(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=()=>{f("proceed",ot({vaultPrefix:w.value,secretId:y.value||void 0,optionalSecretKey:i.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="",i.value="",typeof b=="string"&&b.trim().length>0)try{let m,R="",T="",ee="";const P=tt(b),{data:x}=await a.get(Y(P.vaultPrefix));if(x!=null&&x.name)if(m=x,R=P.vaultPrefix,m.name==="konnect"){if(P.secretId){const{data:re}=await a.get(I(P.secretId,x.config.config_store_id));re.key===P.secretId&&(T=P.secretId,ee=P.optionalSecretKey??"")}}else T=P.secretId??"",ee=P.optionalSecretKey??"";await e.nextTick(()=>{w.value=R,g.value=m,y.value=T,i.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=B.value.find(T=>T.value===b))==null?void 0:R.vault,y.value="",i.value="")}),e.watch(u,async()=>{X.value&&await K()},{immediate:!0}),(b,m)=>{const R=e.resolveComponent("KEmptyState"),T=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),P=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(P,{"action-button-disabled":!z.value,"action-button-text":l.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:l.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:m[4]||(m[4]=()=>f("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",lt,[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:B.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",at,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:x})=>[e.createElementVNode("span",rt,e.toDisplayString(H(x)),1)]),"item-template":e.withCtx(({item:x})=>[e.createElementVNode("div",nt,[e.createElementVNode("span",it,e.toDisplayString(x.label),1),e.createElementVNode("span",st,e.toDisplayString(x.vault.name),1),e.createElementVNode("span",ct,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(F),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",dt,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:i.value,"onUpdate:modelValue":m[3]||(m[3]=x=>i.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"]]);v.SecretForm=Ye,v.SecretList=Ge,v.VaultAuthMethods=N,v.VaultConfigCard=je,v.VaultForm=qe,v.VaultList=Ne,v.VaultProviders=t,v.VaultSecretPicker=ut,v.VaultSecretPickerProvider=et,v.secretsEndpoints=ae,v.vaultsEndpoints=te,Object.defineProperty(v,Symbol.toStringTag,{value:"Module"})});
|
|
1
|
+
(function(v,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):(v=typeof globalThis<"u"?globalThis:v||self,e(v["kong-ui-public-entities-vaults"]={},v.Vue,v.VueRouter,v.KongIcons,v["kong-ui-public-entities-shared"],v["kong-ui-public-i18n"]))})(this,function(v,e,ce,J,p,fe){"use strict";const _e={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"},oauth2_audiences:{label:"OAuth2 Audiences",tooltip:"Comma-separated list of OAuth2 audiences."},oauth2_client_id:{label:"OAuth2 Client ID"},oauth2_client_secret:{label:"OAuth2 Client Secret"},jwt_role:{label:"JWT Role",tooltip:"The configured role name in HashiCorp Vault for JWT auth. When creating the role in HashiCorp Vault, make sure that the `role_type` is `jwt` and the `token_policies` have permissions to read the secrets."},oauth2_token_endpoint:{label:"OAuth2 Token Endpoint"}}},azure:{label:"Azure Vault",description:"Access secrets stored in Azure Key Vault for Kong Gateway configuration.",fields:{location:{label:"Location"},vault_uri:{label:"Vault URI"},credential_prefix:{label:"Credential Prefix"},type:{label:"Type",placeholder:"Select a type"},client_id:{label:"Client ID"},tenant_id:{label:"Tenant ID"}}},conjur:{label:"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 ye(){const l=fe.createI18n("en-us",_e);return{i18n:l,i18nT:fe.i18nTComponent(l)}}const ne={useI18n:ye},de="/v2/control-planes/{controlPlaneId}/core-entities",pe="/v2/control-planes/{controlPlaneId}/config-stores",ue="/{workspace}",te={list:{konnect:{getAll:`${de}/vaults`,deleteConfigStore:`${pe}/{id}?force=true`},kongManager:{getAll:`${ue}/vaults`}},form:{konnect:{create:`${de}/vaults`,createConfigStore:pe,edit:`${de}/vaults/{id}`},kongManager:{create:`${ue}/vaults`,edit:`${ue}/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:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||!l.createRoute||!l.getViewRoute||!l.getEditRoute||l.app==="kongManager"&&!l.isExactMatch&&!l.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(l,{emit:C}){var re;const d=C,c=l,{i18n:{t:f}}=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),i=e.computed(()=>w.value&&c.config.app==="konnect"),g=e.computed(()=>c.config.app!=="kongManager"||!!c.config.disableSorting),u={prefix:{label:f("vaults.list.table_headers.prefix"),searchable:!0,sortable:!0,hidable:!1},name:{label:f("vaults.list.table_headers.name"),searchable:!0,sortable:!0},description:{label:f("vaults.list.table_headers.description"),sortable:!1},tags:{label:f("vaults.list.table_headers.tags"),sortable:!1}},U=u,W=e.computed(()=>{var E,S;let V=`${c.config.apiBaseUrl}${te.list[c.config.app].getAll}`;return c.config.app==="konnect"?V=V.replace(/{controlPlaneId}/gi,((E=c.config)==null?void 0:E.controlPlaneId)||""):c.config.app==="kongManager"&&(V=V.replace(/\/{workspace}/gi,(S=c.config)!=null&&S.workspace?`/${c.config.workspace}`:"")),V}),O=e.ref(""),q=e.computed(()=>{if(c.config.app==="konnect"||c.config.isExactMatch)return{isExactMatch:!0,placeholder:f("search.placeholder_for_vaults.konnect")};const{prefix:E,name:S}=u;return{isExactMatch:!1,fields:{name:S,prefix:E},schema:c.config.filterSchema}}),{fetcher:$,fetcherState:o,fetcherCacheKey:Z}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),W),F=()=>{O.value=""},j=()=>{Z.value++},K=e.ref(null),h=async(V,E)=>{const S=V.id;if(!await E(S)){d("copy:error",{entity:V,field:"id",message:f("errors.copy")});return}d("copy:success",{entity:V,field:"id",message:f("copy.success",{val:S})})},B=async(V,E)=>{const S=JSON.stringify(V);if(!await E(S)){d("copy:error",{entity:V,message:f("errors.copy")});return}d("copy:success",{entity:V,message:f("copy.success_brief")})},Q=async V=>{var S;await((S=c.canRetrieve)==null?void 0:S.call(c,V))&&a.push(c.config.getViewRoute(V.id))},X=V=>({label:f("actions.view"),to:c.config.getViewRoute(V)}),z=V=>({label:f("actions.edit"),to:c.config.getEditRoute(V)}),H=e.ref(void 0),Y=e.ref(!1),I=e.ref(!1),D=e.ref(""),L=p.useDeleteUrlBuilder(c.config,W.value),b=V=>{H.value=V,Y.value=!0},m=()=>{Y.value=!1},R=async V=>{const{apiBaseUrl:E,app:S,controlPlaneId:s}=c.config,r=`${E}${te.list[S].deleteConfigStore}`.replace(/{controlPlaneId}/gi,s||"").replace(/{id}/gi,V);try{await A.delete(r)}catch{}},T=async()=>{var V,E,S,s;if((V=H.value)!=null&&V.id){I.value=!0;try{await A.delete(L(H.value.id)),c.config.app==="konnect"&&((E=H.value.config)!=null&&E.config_store_id)&&R(H.value.config.config_store_id),I.value=!1,Y.value=!1,Z.value++,d("delete:success",H.value)}catch(r){D.value=((s=(S=r.response)==null?void 0:S.data)==null?void 0:s.message)||r.message||f("errors.delete"),d("error",r)}finally{I.value=!1}}},ee=()=>{a.push(c.config.createRoute)};e.watch(o,V=>{var E,S,s;if(V.status===p.FetcherStatus.Error){K.value={title:f("errors.general")},(s=(S=(E=V.error)==null?void 0:E.response)==null?void 0:S.data)!=null&&s.message&&(K.value.message=V.error.response.data.message),d("error",V.error);return}K.value=null});const P=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${f("vaults.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:f("vaults.title")}),x=e.ref(!1);return e.onBeforeMount(async()=>{x.value=await c.canCreate(),x.value&&(P.value.title=f("vaults.list.empty_state.title"),P.value.ctaText=f("actions.create"))}),(V,E)=>{const S=e.resolveComponent("KButton"),s=e.resolveComponent("KEmptyState"),r=e.resolveComponent("KDropdownItem"),M=e.resolveComponent("KClipboardProvider");return e.openBlock(),e.createElementBlock("div",he,[e.createVNode(e.unref(p.EntityBaseTable),{"cache-identifier":l.cacheIdentifier,"disable-sorting":g.value,"empty-state-options":P.value,"enable-entity-actions":"","error-message":K.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:F,"onClick:row":E[3]||(E[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":E[0]||(E[0]=k=>O.value=k),config:q.value},null,8,["modelValue","config"])]),"toolbar-button":e.withCtx(()=>[(e.openBlock(),e.createBlock(e.Teleport,{disabled:!l.useActionOutside,to:"#kong-ui-app-page-header-action-button"},[e.createElementVNode("div",Ve,[i.value?(e.openBlock(),e.createBlock(S,{key:0,appearance:"secondary",class:"open-learning-hub","data-testid":"vault-learn-more-button",icon:"",onClick:E[1]||(E[1]=k=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""})]),_:1})):e.createCommentVNode("",!0),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(S,{appearance:"primary","data-testid":"toolbar-add-vault",size:l.useActionOutside?"medium":"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("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(M,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(r,{"data-testid":"action-entity-copy-id",onClick:G=>h(k,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.copy_id")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(M,null,{default:e.withCtx(({copyToClipboard:_})=>[e.createVNode(r,{"data-testid":"action-entity-copy-json",onClick:G=>B(k,_)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.copy_json")),1)]),_:1},8,["onClick"])]),_:2},1024),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.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":()=>l.canEdit(k)},{default:e.withCtx(()=>[e.createVNode(r,{"data-testid":"action-entity-edit",item:z(k.id)},null,8,["item"])]),_:2},1032,["auth-function"]),e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canDelete(k)},{default:e.withCtx(()=>[e.createVNode(r,{danger:"","data-testid":"action-entity-delete","has-divider":"",onClick:_=>b(k)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("actions.delete")),1)]),_:1},8,["onClick"])]),_:2},1032,["auth-function"])]),_:2},[!O.value&&l.config.app==="konnect"?{name:"empty-state",fn:e.withCtx(()=>{var k;return[e.createVNode(s,{"data-testid":"vaults-entity-empty-state","icon-background":"",message:e.unref(f)("vaults.list.empty_state_v2.description"),title:e.unref(f)("vaults.list.empty_state_v2.title")},e.createSlots({icon:e.withCtx(()=>[e.createVNode(e.unref(J.SecurityIcon),{decorative:""})]),action:e.withCtx(()=>[x.value?(e.openBlock(),e.createBlock(S,{key:0,"data-testid":"entity-create-button",onClick:ee},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("vaults.list.empty_state_v2.create_cta")),1)]),_:1})):e.createCommentVNode("",!0),e.createVNode(S,{appearance:"secondary","data-testid":"entity-learn-more-button",onClick:E[2]||(E[2]=_=>V.$emit("click:learn-more"))},{default:e.withCtx(()=>[e.createVNode(e.unref(J.BookIcon),{decorative:""}),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("vaults.list.empty_state_v2.learn_more")),1)]),_:1})]),_:2},[(k=l.config)!=null&&k.isControlPlaneGroup?{name:"default",fn:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(f)("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":I.value,description:e.unref(f)("delete.description"),"entity-name":H.value&&(H.value.prefix||H.value.id),"entity-type":e.unref(p.EntityTypes).Vault,error:D.value,title:e.unref(f)("delete.title"),visible:Y.value,onCancel:m,onProceed:T},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])])}}}),le=(l,C)=>{const d=l.__vccOpts||l;for(const[c,f]of C)d[c]=f;return d},Ne=le(we,[["__scopeId","data-v-4ae7ac82"]]);var t=(l=>(l.AWS="aws",l.GCP="gcp",l.HCV="hcv",l.ENV="env",l.AZURE="azure",l.KONNECT="konnect",l.CONJUR="conjur",l))(t||{}),N=(l=>(l.TOKEN="token",l.K8S="kubernetes",l.APP_ROLE="approle",l.CERT="cert",l.JWT="jwt",l))(N||{});const xe={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"},Be={key:1,class:"vault-form-config-auth-method-container"},ve={key:2,class:"vault-form-config-auth-method-container"},$e={key:3,class:"vault-form-config-auth-method-container"},He={key:4,class:"vault-form-config-auth-method-container"},Pe={key:6},Me={class:"wrapper"},Fe={class:"item-50"},Ke={class:"item-50"},De={class:"wrapper"},Oe={class:"item-100"},qe=le(e.defineComponent({__name:"VaultForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||(l==null?void 0:l.app)==="konnect"&&!(l!=null&&l.controlPlaneId)||(l==null?void 0:l.app)==="kongManager"&&typeof(l==null?void 0:l.workspace)!="string"||!(l!=null&&l.cancelRoute))},vaultId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var S;const d=l,c=C,{i18nT:f,i18n:{t:a}}=ne.useI18n(),A=ce.useRouter(),{axiosInstance:w}=p.useAxios((S=d.config)==null?void 0:S.axiosRequestConfig),{getMessageFromError:y}=p.useErrors(),i=e.reactive({fields:{prefix:"",description:"",tags:""},isReadonly:!1,errorMessage:""}),g=e.reactive({prefix:"",description:"",tags:""}),u=e.ref(d.config.app==="konnect"?t.KONNECT:t.ENV),U=e.ref(null),W=e.ref(),O=e.computed(()=>[t.AWS,t.GCP,t.HCV,t.AZURE,t.CONJUR].includes(u.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:!z.value},{label:a("form.config.gcp.label"),value:t.GCP,disabled:!z.value},{label:a("form.config.hcv.label"),value:t.HCV,disabled:!z.value},...d.config.azureVaultProviderAvailable?[{label:a("form.config.azure.label"),value:t.AZURE,disabled:!z.value}]:[],...d.config.conjurVaultProviderAvailable?[{label:a("form.config.conjur.label"),value:t.CONJUR,disabled:!z.value}]:[]]),$=d.config.base64FieldAvailable?{base64_decode:!1}:{},o=e.reactive({[t.KONNECT]:{},[t.ENV]:{prefix:"",...$},[t.AWS]:{region:"",endpoint_url:"",assume_role_arn:"",role_session_name:"KongVault",...$},[t.GCP]:{project_id:"",...$},[t.HCV]:{protocol:"http",host:"127.0.0.1",port:8200,mount:"secret",kv:"v1",namespace:"",auth_method:N.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:"",oauth2_client_id:"",oauth2_client_secret:"",jwt_role:"",oauth2_token_endpoint:"",oauth2_audiences:"",...$},[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:N.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",...$}}),F=[{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"}],K=[{label:"http",value:"http"},{label:"https",value:"https"}],h=[{label:"v1",value:"v1"},{label:"v2",value:"v2"}],B=e.computed(()=>d.vaultId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),Q=e.computed(()=>{var s,r;return(r=te.form[(s=d.config)==null?void 0:s.app])==null?void 0:r.edit}),X=e.computed(()=>B.value===p.EntityBaseFormType.Edit&&d.config.app==="kongManager"),z=e.computed(()=>d.config.app==="konnect"||p.useGatewayFeatureSupported({gatewayInfo:d.config.gatewayInfo,supportedRange:{enterprise:[]}})),H=()=>{var s;A.push(((s=d.config)==null?void 0:s.cancelRoute)||{name:"vault-list"})},Y=s=>{c("loading",s)},I=s=>{c("error",s)},D=s=>{switch(s){case t.KONNECT:return J.KongIcon;case t.ENV:return J.CodeIcon;case t.AWS:return J.AwsIcon;case t.GCP:return J.GoogleCloudIcon;case t.HCV:return J.HashicorpIcon;case t.AZURE:return J.AzureIcon;case t.CONJUR:return J.ConjourIcon}},L=s=>{switch(s){case t.KONNECT:return a("form.config.konnect.description");case t.ENV:return a("form.config.env.description");case t.AWS:return a("form.config.aws.description");case t.GCP:return a("form.config.gcp.description");case t.HCV:return a("form.config.hcv.description");case t.AZURE:return a("form.config.azure.description");case t.CONJUR:return a("form.config.conjur.description")}},b=s=>{var k,_,G,oe,ie,n;i.fields.prefix=((k=s==null?void 0:s.item)==null?void 0:k.prefix)||(s==null?void 0:s.prefix)||"",i.fields.description=((_=s==null?void 0:s.item)==null?void 0:_.description)||(s==null?void 0:s.description)||"";const r=((G=s==null?void 0:s.item)==null?void 0:G.tags)||(s==null?void 0:s.tags)||[];i.fields.tags=(r==null?void 0:r.join(", "))||"",Object.assign(g,i.fields);const M=((oe=s==null?void 0:s.item)==null?void 0:oe.config)||(s==null?void 0:s.config)||null;M&&(Object.keys(M).length||(s==null?void 0:s.name)===t.KONNECT)?(u.value=((ie=s==null?void 0:s.item)==null?void 0:ie.name)||(s==null?void 0:s.name)||"",U.value=u.value,W.value=((n=s==null?void 0:s.config)==null?void 0:n.config_store_id)||void 0,Object.assign(o[u.value],M),Object.assign(Z[u.value],M)):i.errorMessage="Error loading vault config"},m=s=>s===""||s==null,R=e.computed(()=>u.value===t.HCV?!Object.keys(o[t.HCV]).filter(s=>["namespace","ttl","neg_ttl","resurrect_ttl","kube_auth_path","approle_auth_path","approle_secret_id","approle_secret_id_file","oauth2_audiences"].includes(s)||o[t.HCV].auth_method!==N.K8S&&(s==="kube_role"||s==="kube_api_token_file")||o[t.HCV].auth_method!==N.TOKEN&&s==="token"||o[t.HCV].auth_method!==N.APP_ROLE&&(s==="approle_role_id"||s==="approle_response_wrapping")||o[t.HCV].auth_method===N.APP_ROLE&&s==="approle_response_wrapping"&&typeof o[u.value][s]=="boolean"||o[t.HCV].auth_method!==N.CERT&&["cert_auth_role_name","cert_auth_cert","cert_auth_cert_key"].includes(s)||o[t.HCV].auth_method!==N.JWT&&["oauth2_client_id","oauth2_client_secret","jwt_role","oauth2_token_endpoint"].includes(s)?!1:m(o[u.value][s])).length:u.value===t.AZURE?!Object.keys(o[t.AZURE]).filter(s=>["client_id","tenant_id","ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:m(o[u.value][s])).length:u.value===t.AWS?!Object.keys(o[t.AWS]).filter(s=>["endpoint_url","assume_role_arn","ttl","neg_ttl","resurrect_ttl","sts_endpoint_url"].includes(s)?!1:m(o[u.value][s])).length:!Object.keys(o[u.value]).filter(s=>["ttl","neg_ttl","resurrect_ttl"].includes(s)?!1:m(o[u.value][s])).length),T=e.computed(()=>!!i.fields.prefix&&R.value),ee=e.computed(()=>JSON.stringify(i.fields)!==JSON.stringify(g)||u.value!==U.value||JSON.stringify(o[u.value])!==JSON.stringify(Z[u.value])),P=e.computed(()=>{var r,M;let s=`${d.config.apiBaseUrl}${te.form[d.config.app][B.value]}`;return d.config.app==="konnect"?s=s.replace(/{controlPlaneId}/gi,((r=d.config)==null?void 0:r.controlPlaneId)||""):d.config.app==="kongManager"&&(s=s.replace(/\/{workspace}/gi,(M=d.config)!=null&&M.workspace?`/${d.config.workspace}`:"")),s=s.replace(/{id}/gi,d.vaultId),s}),x=e.computed(()=>{var oe,ie;const s={protocol:o[t.HCV].protocol,host:o[t.HCV].host,port:parseInt(o[t.HCV].port.toString()),mount:o[t.HCV].mount,kv:o[t.HCV].kv,namespace:o[t.HCV].namespace||null,auth_method:o[t.HCV].auth_method,...d.config.base64FieldAvailable&&{base64_decode:o[t.HCV].base64_decode},...o[t.HCV].auth_method===N.TOKEN&&{token:o[t.HCV].token},...o[t.HCV].auth_method===N.K8S&&{kube_role:o[t.HCV].kube_role,kube_auth_path:o[t.HCV].kube_auth_path||void 0,kube_api_token_file:o[t.HCV].kube_api_token_file,token:null},...o[t.HCV].auth_method===N.APP_ROLE&&{approle_auth_path:o[t.HCV].approle_auth_path||void 0,approle_role_id:o[t.HCV].approle_role_id,approle_secret_id:o[t.HCV].approle_secret_id||void 0,approle_secret_id_file:o[t.HCV].approle_secret_id_file||void 0,approle_response_wrapping:o[t.HCV].approle_response_wrapping??!1},...o[t.HCV].auth_method===N.CERT&&{cert_auth_role_name:o[t.HCV].cert_auth_role_name,cert_auth_cert:o[t.HCV].cert_auth_cert,cert_auth_cert_key:o[t.HCV].cert_auth_cert_key},...o[t.HCV].auth_method===N.JWT&&{oauth2_audiences:o[t.HCV].oauth2_audiences||null,oauth2_client_id:o[t.HCV].oauth2_client_id,oauth2_client_secret:o[t.HCV].oauth2_client_secret,jwt_role:o[t.HCV].jwt_role,oauth2_token_endpoint:o[t.HCV].oauth2_token_endpoint}},r={...o[u.value],client_id:o[u.value].client_id||null,tenant_id:o[u.value].tenant_id||null},M={...o[u.value],endpoint_url:o[u.value].endpoint_url||null,assume_role_arn:o[u.value].assume_role_arn||null,...d.config.awsStsEndpointUrlAvailable?{sts_endpoint_url:o[u.value].sts_endpoint_url||null}:{}};let k=o[u.value];u.value===t.HCV?k=s:u.value===t.AZURE?k=r:u.value===t.AWS&&(k=M);let _={};if(![t.KONNECT,t.ENV].includes(u.value)){const n=o[u.value],me=n.ttl,ge=n.neg_ttl,be=n.resurrect_ttl;_={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:i.fields.prefix,description:i.fields.description||null,tags:(ie=(oe=i.fields.tags.split(","))==null?void 0:oe.map(n=>String(n||"").trim()))==null?void 0:ie.filter(n=>n!==""),name:u.value,config:{...k,..._}}}),re=e.computed(()=>({...x.value,config:{...x.value.config,config_store_id:W.value}})),V=async()=>{var s;try{i.isReadonly=!0;const r=`${d.config.apiBaseUrl}${te.form.konnect.createConfigStore}`.replace(/{controlPlaneId}/gi,((s=d.config)==null?void 0:s.controlPlaneId)||""),M=await w.post(r);return M==null?void 0:M.data.id}catch(r){i.errorMessage=y(r),c("error",r)}finally{i.isReadonly=!1}},E=async()=>{var s;try{i.isReadonly=!0;let r;B.value==="create"?u.value===t.KONNECT?(W.value=await V(),r=await w.post(P.value,re.value)):r=await w.post(P.value,x.value):B.value==="edit"&&(u.value===t.KONNECT&&!W.value?(W.value=await V(),r=await w.put(P.value,re.value)):r=((s=d.config)==null?void 0:s.app)==="konnect"?await w.put(P.value,re.value):await w.patch(P.value,x.value)),b(r==null?void 0:r.data),c("update",r==null?void 0:r.data)}catch(r){i.errorMessage=y(r),c("error",r)}finally{i.isReadonly=!1}};return(s,r)=>{const M=e.resolveComponent("KTooltip"),k=e.resolveComponent("KSelect"),_=e.resolveComponent("KInput"),G=e.resolveComponent("KCheckbox"),oe=e.resolveComponent("KTextArea"),ie=e.resolveComponent("KCollapse");return e.openBlock(),e.createElementBlock("div",xe,[e.createVNode(e.unref(p.EntityBaseForm),{"can-submit":T.value&&ee.value,config:l.config,"edit-id":l.vaultId,"entity-type":e.unref(p.SupportedEntityType).Vault,"error-message":i.errorMessage,"fetch-url":Q.value,"form-fields":x.value,"is-readonly":i.isReadonly,onCancel:H,"onFetch:error":I,"onFetch:success":b,onLoading:Y,onSubmit:E},{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:u.value,"onUpdate:modelValue":r[0]||(r[0]=n=>u.value=n),"data-testid":"provider-select",disabled:X.value,"dropdown-max-height":"500",items:q.value,readonly:i.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(M,{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(()=>[u.value===e.unref(t).ENV?(e.openBlock(),e.createElementBlock("div",Te,[e.createVNode(_,{modelValue:o[e.unref(t).ENV].prefix,"onUpdate:modelValue":r[1]||(r[1]=n=>o[e.unref(t).ENV].prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-kong-prefix",label:e.unref(a)("form.config.env.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.config.env.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.config.env.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).ENV].base64_decode,"onUpdate:modelValue":r[2]||(r[2]=n=>o[e.unref(t).ENV].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AWS?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AWS}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(k,{modelValue:o[e.unref(t).AWS].region,"onUpdate:modelValue":r[3]||(r[3]=n=>o[e.unref(t).AWS].region=n),"data-testid":"vault-form-config-aws-region",items:F,label:e.unref(a)("form.config.aws.fields.region.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.region.tooltip")},placeholder:e.unref(a)("form.config.aws.fields.region.placeholder"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","label-attributes","placeholder","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].endpoint_url,"onUpdate:modelValue":r[4]||(r[4]=n=>o[e.unref(t).AWS].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-endpoint_url",label:e.unref(a)("form.config.aws.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].assume_role_arn,"onUpdate:modelValue":r[5]||(r[5]=n=>o[e.unref(t).AWS].assume_role_arn=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-assume_role_arn",label:e.unref(a)("form.config.aws.fields.assume_role_arn.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.assume_role_arn.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AWS].role_session_name,"onUpdate:modelValue":r[6]||(r[6]=n=>o[e.unref(t).AWS].role_session_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-role_session_name",label:e.unref(a)("form.config.aws.fields.role_session_name.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.role_session_name.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),l.config.awsStsEndpointUrlAvailable?(e.openBlock(),e.createBlock(_,{key:0,modelValue:o[e.unref(t).AWS].sts_endpoint_url,"onUpdate:modelValue":r[7]||(r[7]=n=>o[e.unref(t).AWS].sts_endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-aws-sts_endpoint_url",label:e.unref(a)("form.config.aws.fields.sts_endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.aws.fields.sts_endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:1,modelValue:o[e.unref(t).AWS].base64_decode,"onUpdate:modelValue":r[8]||(r[8]=n=>o[e.unref(t).AWS].base64_decode=n),"data-testid":"vault-form-config-aws-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).GCP?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).GCP}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).GCP].project_id,"onUpdate:modelValue":r[9]||(r[9]=n=>o[e.unref(t).GCP].project_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-gcp-project-id",label:e.unref(a)("form.config.gcp.fields.project_id.label"),placeholder:e.unref(a)("form.config.gcp.fields.project_id.placeholder"),readonly:i.isReadonly,required:"",type:"text"},{"label-tooltip":e.withCtx(()=>[e.createVNode(e.unref(f),{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"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).GCP].base64_decode,"onUpdate:modelValue":r[10]||(r[10]=n=>o[e.unref(t).GCP].base64_decode=n),"data-testid":"vault-form-config-gcp-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).HCV?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).HCV}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(k,{modelValue:o[e.unref(t).HCV].protocol,"onUpdate:modelValue":r[11]||(r[11]=n=>o[e.unref(t).HCV].protocol=n),"data-testid":"vault-form-config-hcv-protocol",items:K,label:e.unref(a)("form.config.hcv.fields.protocol.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].host,"onUpdate:modelValue":r[12]||(r[12]=n=>o[e.unref(t).HCV].host=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-host",label:e.unref(a)("form.config.hcv.fields.host.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].port,"onUpdate:modelValue":r[13]||(r[13]=n=>o[e.unref(t).HCV].port=n),autocomplete:"off","data-testid":"vault-form-config-hcv-port",label:e.unref(a)("form.config.hcv.fields.port.label"),min:"0",readonly:i.isReadonly,required:"",type:"number"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].mount,"onUpdate:modelValue":r[14]||(r[14]=n=>o[e.unref(t).HCV].mount=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-mount",label:e.unref(a)("form.config.hcv.fields.mount.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].kv,"onUpdate:modelValue":r[15]||(r[15]=n=>o[e.unref(t).HCV].kv=n),"data-testid":"vault-form-config-hcv-kv",items:h,label:e.unref(a)("form.config.hcv.fields.kv.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].namespace,"onUpdate:modelValue":r[16]||(r[16]=n=>o[e.unref(t).HCV].namespace=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-namespace",label:e.unref(a)("form.config.hcv.fields.namespace.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).HCV].auth_method,"onUpdate:modelValue":r[17]||(r[17]=n=>o[e.unref(t).HCV].auth_method=n),"data-testid":"vault-form-config-hcv-auth_method",items:[{label:e.unref(N).TOKEN,value:e.unref(N).TOKEN},{label:e.unref(N).K8S,value:e.unref(N).K8S},...l.config.hcvAppRoleMethodAvailable?[{label:e.unref(N).APP_ROLE,value:e.unref(N).APP_ROLE}]:[],...l.config.hcvCertMethodAvailable?[{label:e.unref(N).CERT,value:e.unref(N).CERT}]:[],...l.config.hcvJwtMethodAvailable?[{label:e.unref(N).JWT,value:e.unref(N).JWT}]:[]],label:e.unref(a)("form.config.hcv.fields.auth_method.label"),readonly:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","items","label","readonly"]),o[e.unref(t).HCV].auth_method===e.unref(N).TOKEN?(e.openBlock(),e.createElementBlock("div",Ue,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].token,"onUpdate:modelValue":r[18]||(r[18]=n=>o[e.unref(t).HCV].token=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-token",label:e.unref(a)("form.config.hcv.fields.token.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).K8S?(e.openBlock(),e.createElementBlock("div",Be,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_role,"onUpdate:modelValue":r[19]||(r[19]=n=>o[e.unref(t).HCV].kube_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_role",label:e.unref(a)("form.config.hcv.fields.kube_role.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_auth_path,"onUpdate:modelValue":r[20]||(r[20]=n=>o[e.unref(t).HCV].kube_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_auth_path",label:e.unref(a)("form.config.hcv.fields.kube_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].kube_api_token_file,"onUpdate:modelValue":r[21]||(r[21]=n=>o[e.unref(t).HCV].kube_api_token_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-kube_api_token_file",label:e.unref(a)("form.config.hcv.fields.kube_api_token_file.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).APP_ROLE?(e.openBlock(),e.createElementBlock("div",ve,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_auth_path,"onUpdate:modelValue":r[22]||(r[22]=n=>o[e.unref(t).HCV].approle_auth_path=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_auth_path",label:e.unref(a)("form.config.hcv.fields.approle_auth_path.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_role_id,"onUpdate:modelValue":r[23]||(r[23]=n=>o[e.unref(t).HCV].approle_role_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_role_id",label:e.unref(a)("form.config.hcv.fields.approle_role_id.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_secret_id,"onUpdate:modelValue":r[24]||(r[24]=n=>o[e.unref(t).HCV].approle_secret_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id",label:e.unref(a)("form.config.hcv.fields.approle_secret_id.label"),readonly:i.isReadonly,"show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].approle_secret_id_file,"onUpdate:modelValue":r[25]||(r[25]=n=>o[e.unref(t).HCV].approle_secret_id_file=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-approle_secret_id_file",label:e.unref(a)("form.config.hcv.fields.approle_secret_id_file.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(G,{modelValue:o[e.unref(t).HCV].approle_response_wrapping,"onUpdate:modelValue":r[26]||(r[26]=n=>o[e.unref(t).HCV].approle_response_wrapping=n),"data-testid":"vault-form-config-hcv-approle_response_wrapping",label:e.unref(a)("form.config.hcv.fields.approle_response_wrapping.label")},null,8,["modelValue","label"])])):o[e.unref(t).HCV].auth_method===e.unref(N).CERT?(e.openBlock(),e.createElementBlock("div",$e,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].cert_auth_role_name,"onUpdate:modelValue":r[27]||(r[27]=n=>o[e.unref(t).HCV].cert_auth_role_name=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_role_name",label:e.unref(a)("form.config.hcv.fields.cert_auth_role_name.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:o[e.unref(t).HCV].cert_auth_cert,"onUpdate:modelValue":r[28]||(r[28]=n=>o[e.unref(t).HCV].cert_auth_cert=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(oe,{modelValue:o[e.unref(t).HCV].cert_auth_cert_key,"onUpdate:modelValue":r[29]||(r[29]=n=>o[e.unref(t).HCV].cert_auth_cert_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-cert_auth_cert_key",label:e.unref(a)("form.config.hcv.fields.cert_auth_cert_key.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"])])):o[e.unref(t).HCV].auth_method===e.unref(N).JWT?(e.openBlock(),e.createElementBlock("div",He,[e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_client_id,"onUpdate:modelValue":r[30]||(r[30]=n=>o[e.unref(t).HCV].oauth2_client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_id",label:e.unref(a)("form.config.hcv.fields.oauth2_client_id.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_client_secret,"onUpdate:modelValue":r[31]||(r[31]=n=>o[e.unref(t).HCV].oauth2_client_secret=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_client_secret",label:e.unref(a)("form.config.hcv.fields.oauth2_client_secret.label"),readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].jwt_role,"onUpdate:modelValue":r[32]||(r[32]=n=>o[e.unref(t).HCV].jwt_role=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-jwt_role",label:e.unref(a)("form.config.hcv.fields.jwt_role.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.jwt_role.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:""},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_token_endpoint,"onUpdate:modelValue":r[33]||(r[33]=n=>o[e.unref(t).HCV].oauth2_token_endpoint=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_token_endpoint",label:e.unref(a)("form.config.hcv.fields.oauth2_token_endpoint.label"),readonly:i.isReadonly,required:""},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).HCV].oauth2_audiences,"onUpdate:modelValue":r[34]||(r[34]=n=>o[e.unref(t).HCV].oauth2_audiences=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-hcv-oauth2_audiences",label:e.unref(a)("form.config.hcv.fields.oauth2_audiences.label"),"label-attributes":{info:e.unref(a)("form.config.hcv.fields.oauth2_audiences.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])])):e.createCommentVNode("",!0),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:5,modelValue:o[e.unref(t).HCV].base64_decode,"onUpdate:modelValue":r[35]||(r[35]=n=>o[e.unref(t).HCV].base64_decode=n),"data-testid":"vault-form-config-hcv-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).AZURE?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).AZURE}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).AZURE].location,"onUpdate:modelValue":r[36]||(r[36]=n=>o[e.unref(t).AZURE].location=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-location",label:e.unref(a)("form.config.azure.fields.location.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].vault_uri,"onUpdate:modelValue":r[37]||(r[37]=n=>o[e.unref(t).AZURE].vault_uri=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-uri",label:e.unref(a)("form.config.azure.fields.vault_uri.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].credentials_prefix,"onUpdate:modelValue":r[38]||(r[38]=n=>o[e.unref(t).AZURE].credentials_prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-prefix",label:e.unref(a)("form.config.azure.fields.credential_prefix.label"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(k,{modelValue:o[e.unref(t).AZURE].type,"onUpdate:modelValue":r[39]||(r[39]=n=>o[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:i.isReadonly,required:"",width:"100%"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].client_id,"onUpdate:modelValue":r[40]||(r[40]=n=>o[e.unref(t).AZURE].client_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-client-id",label:e.unref(a)("form.config.azure.fields.client_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).AZURE].tenant_id,"onUpdate:modelValue":r[41]||(r[41]=n=>o[e.unref(t).AZURE].tenant_id=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-azure-tenant-id",label:e.unref(a)("form.config.azure.fields.tenant_id.label"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","label","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).AZURE].base64_decode,"onUpdate:modelValue":r[42]||(r[42]=n=>o[e.unref(t).AZURE].base64_decode=n),"data-testid":"vault-form-config-azure-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),u.value===e.unref(t).CONJUR?(e.openBlock(),e.createElementBlock("div",{key:`${e.unref(t).CONJUR}-vault-config-fields`,class:"vault-form-config-fields-container"},[e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].endpoint_url,"onUpdate:modelValue":r[43]||(r[43]=n=>o[e.unref(t).CONJUR].endpoint_url=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-endpoint_url",label:e.unref(a)("form.config.conjur.fields.endpoint_url.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.endpoint_url.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].login,"onUpdate:modelValue":r[44]||(r[44]=n=>o[e.unref(t).CONJUR].login=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-login",label:e.unref(a)("form.config.conjur.fields.login.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.login.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].account,"onUpdate:modelValue":r[45]||(r[45]=n=>o[e.unref(t).CONJUR].account=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-account",label:e.unref(a)("form.config.conjur.fields.account.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.account.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","label","label-attributes","readonly"]),e.createVNode(_,{modelValue:o[e.unref(t).CONJUR].api_key,"onUpdate:modelValue":r[46]||(r[46]=n=>o[e.unref(t).CONJUR].api_key=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-config-conjur-api_key",label:e.unref(a)("form.config.conjur.fields.api_key.label"),"label-attributes":{info:e.unref(a)("form.config.conjur.fields.api_key.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly,required:"","show-password-mask-toggle":"",type:"password"},null,8,["modelValue","label","label-attributes","readonly"]),l.config.base64FieldAvailable?(e.openBlock(),e.createBlock(G,{key:0,modelValue:o[e.unref(t).CONJUR].base64_decode,"onUpdate:modelValue":r[47]||(r[47]=n=>o[e.unref(t).CONJUR].base64_decode=n),"data-testid":"vault-form-config-env-base64_decode",label:e.unref(a)("form.config.commonFields.base64_decode.label"),"label-attributes":{info:e.unref(a)("form.config.commonFields.base64_decode.tooltip"),tooltipAttributes:{maxWidth:"400"}},readonly:i.isReadonly},null,8,["modelValue","label","label-attributes","readonly"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),l.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",Me,[e.createElementVNode("div",Fe,[e.createVNode(_,{modelValue:o[u.value].ttl,"onUpdate:modelValue":r[48]||(r[48]=n=>o[u.value].ttl=n),"data-testid":"vault-ttl-input",label:e.unref(a)("form.config.advancedFields.ttl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.ttlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])]),e.createElementVNode("div",Ke,[e.createVNode(_,{modelValue:o[u.value].neg_ttl,"onUpdate:modelValue":r[49]||(r[49]=n=>o[u.value].neg_ttl=n),"data-testid":"vault-neg-ttl-input",label:e.unref(a)("form.config.advancedFields.negTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.negTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])]),e.createElementVNode("div",De,[e.createElementVNode("div",Oe,[e.createVNode(_,{modelValue:o[u.value].resurrect_ttl,"onUpdate:modelValue":r[50]||(r[50]=n=>o[u.value].resurrect_ttl=n),"data-testid":"vault-resurrect-ttl-input",label:e.unref(a)("form.config.advancedFields.resurrectTtl"),"label-attributes":{info:e.unref(a)("form.config.advancedFields.resurrectTtlTooltip"),tooltipAttributes:{maxWidth:"400"}},type:"number"},null,8,["modelValue","label","label-attributes"])])])]),_:1},8,["trigger-label"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0)]),_:1})]),_:1},8,["description","title"]),e.createVNode(e.unref(p.EntityFormSection),{description:e.unref(a)("form.sections.general.description"),title:e.unref(a)("form.sections.general.title")},{default:e.withCtx(()=>[e.createVNode(_,{modelValue:i.fields.prefix,"onUpdate:modelValue":r[51]||(r[51]=n=>i.fields.prefix=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-prefix",help:e.unref(a)("form.fields.prefix.help"),label:e.unref(a)("form.fields.prefix.label"),"label-attributes":{info:e.unref(a)("form.fields.prefix.tooltip"),tooltipAttributes:{maxWidth:"400"}},placeholder:e.unref(a)("form.fields.prefix.placeholder"),readonly:i.isReadonly,required:"",type:"text"},null,8,["modelValue","help","label","label-attributes","placeholder","readonly"]),e.createVNode(oe,{modelValue:i.fields.description,"onUpdate:modelValue":r[52]||(r[52]=n=>i.fields.description=n),modelModifiers:{trim:!0},"character-limit":1e3,class:"vault-form-textarea","data-testid":"vault-form-description",label:e.unref(a)("form.fields.description.label"),placeholder:e.unref(a)("form.fields.description.placeholder"),readonly:i.isReadonly},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(_,{modelValue:i.fields.tags,"onUpdate:modelValue":r[53]||(r[53]=n=>i.fields.tags=n),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"vault-form-tags",help:e.unref(a)("form.fields.tags.help"),label:e.unref(a)("form.fields.tags.label"),placeholder:e.unref(a)("form.fields.tags.placeholder"),readonly:i.isReadonly,type:"text"},null,8,["modelValue","help","label","placeholder","readonly"])]),_:1},8,["description","title"])]),_:1},8,["can-submit","config","edit-id","entity-type","error-message","fetch-url","form-fields","is-readonly"])])}}}),[["__scopeId","data-v-3f83a271"]]),We={class:"kong-ui-vault-entity-config-card"},je=e.defineComponent({__name:"VaultConfigCard",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.workspace!="string"||!l.entityId)},configCardDoc:{type:String,default:"",required:!1},hideTitle:{type:Boolean,default:!1}},emits:["loading","fetch:error","fetch:success"],setup(l){const C=l,d=["token","approle_secret_id","api_key"],c=e.computed(()=>{var i,g;return(g=te.form[(i=C.config)==null?void 0:i.app])==null?void 0:g.edit}),{i18n:{t:f}}=ne.useI18n(),{convertKeyToTitle:a}=p.useStringHelpers(),{getPropValue:A}=p.useHelpers(),w=e.ref({id:{},name:{label:f("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=i=>{var g,u;return((u=(g=w.value)==null?void 0:g[i])==null?void 0:u.label)||a(i)};return(i,g)=>(e.openBlock(),e.createElementBlock("div",We,[e.createVNode(e.unref(p.EntityBaseConfigCard),{config:l.config,"config-card-doc":l.configCardDoc,"config-schema":w.value,"entity-type":e.unref(p.SupportedEntityType).Vault,"fetch-url":c.value,"hide-title":l.hideTitle,"onFetch:error":g[0]||(g[0]=u=>i.$emit("fetch:error",u)),"onFetch:success":g[1]||(g[1]=u=>i.$emit("fetch:success",u)),onLoading:g[2]||(g[2]=u=>i.$emit("loading",u))},{config:e.withCtx(({rowValue:u})=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Object.keys(u).sort(),U=>(e.openBlock(),e.createBlock(e.unref(p.ConfigCardItem),{key:U,item:{key:U,value:e.unref(A)(U,u),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}`}}},Le={class:"table-content-overflow-wrapper"},Je=le(e.defineComponent({inheritAttrs:!1,__name:"SecretListInner",props:{config:{type:Object,required:!0,validator:l=>!(!l||(l==null?void 0:l.app)!=="konnect"||!l.createRoute||!l.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(l,{emit:C}){var Y;const d=C,c=l,{i18n:{t:f,formatUnixTimeStamp:a}}=ne.useI18n(),{axiosInstance:A}=p.useAxios((Y=c.config)==null?void 0:Y.axiosRequestConfig),y={key:{label:f("secrets.list.table_headers.key"),sortable:!1,hidable:!1},updated_at:{label:f("secrets.list.table_headers.updated_at"),sortable:!1}},i=I=>({"data-testid":I.key}),g=e.computed(()=>{var I;return`${c.config.apiBaseUrl}${ae.list[c.config.app]}`.replace(/{controlPlaneId}/gi,((I=c.config)==null?void 0:I.controlPlaneId)||"").replace(/{id}/gi,c.configStoreId||"")}),u=e.ref(""),U={isExactMatch:!0,placeholder:f("search.placeholder_for_secrets.konnect")},{fetcher:W,fetcherState:O,fetcherCacheKey:q}=p.useFetcher(e.computed(()=>({...c.config,cacheIdentifier:c.cacheIdentifier})),g),$=()=>{u.value=""},o=e.ref(null),Z=I=>({label:f("actions.edit"),to:c.config.getEditRoute(I)}),F=e.ref(void 0),j=e.ref(!1),K=e.ref(!1),h=e.ref(""),B=p.useDeleteUrlBuilder(c.config,g.value),Q=I=>{F.value=I,j.value=!0},X=()=>{j.value=!1},z=async()=>{var I,D,L;if((I=F.value)!=null&&I.key){K.value=!0;try{await A.delete(B(F.value.key)),K.value=!1,j.value=!1,q.value++,d("delete:success",F.value)}catch(b){h.value=((L=(D=b.response)==null?void 0:D.data)==null?void 0:L.message)||b.message||f("errors.delete"),d("error",b)}finally{K.value=!1}}};e.watch(O,I=>{var D,L,b;if(I.status===p.FetcherStatus.Error){o.value={title:f("errors.general")},(b=(L=(D=I.error)==null?void 0:D.response)==null?void 0:L.data)!=null&&b.message&&(o.value.message=I.error.response.data.message),d("error",I.error);return}o.value=null});const H=e.ref({ctaPath:c.config.createRoute,ctaText:void 0,message:`${f("secrets.list.empty_state.description")}${c.config.additionMessageForEmptyState?` ${c.config.additionMessageForEmptyState}`:""}`,title:f("secrets.title")});return e.onBeforeMount(async()=>{await c.canCreate()&&(H.value.title=f("secrets.list.empty_state.title"),H.value.ctaText=f("secrets.list.toolbar_actions.new_secret"))}),(I,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":l.cacheIdentifier,"disable-sorting":"","empty-state-options":H.value,"enable-entity-actions":"","error-message":o.value,fetcher:e.unref(W),"fetcher-cache-key":e.unref(q),"pagination-type":"offset","preferences-storage-key":"kong-ui-entities-secrets-list",query:u.value,"row-attributes":i,"table-headers":e.unref(y),onClearSearchInput:$},{"toolbar-filter":e.withCtx(()=>[e.createVNode(e.unref(p.EntityFilter),{modelValue:u.value,"onUpdate:modelValue":D[0]||(D[0]=m=>u.value=m),config:U},null,8,["modelValue"])]),"toolbar-button":e.withCtx(()=>[e.createVNode(e.unref(p.PermissionsWrapper),{"auth-function":()=>l.canCreate()},{default:e.withCtx(()=>[e.createVNode(L,{appearance:"primary","data-testid":"toolbar-add-secret",size:"large",to:l.config.createRoute},{default:e.withCtx(()=>[e.createVNode(e.unref(J.AddIcon)),e.createTextVNode(" "+e.toDisplayString(e.unref(f)("secrets.list.toolbar_actions.new_secret")),1)]),_:1},8,["to"])]),_:1},8,["auth-function"])]),key:e.withCtx(({rowValue:m})=>[e.createElementVNode("div",Le,[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":()=>l.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":()=>l.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(f)("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":K.value,description:e.unref(f)("delete.description"),"entity-name":F.value&&F.value.key,"entity-type":e.unref(p.EntityTypes).Secret,error:h.value,title:e.unref(f)("delete.title_for_secret"),visible:j.value,onCancel:X,onProceed:z},null,8,["action-pending","description","entity-name","entity-type","error","title","visible"])],64)}}}),[["__scopeId","data-v-ba08720f"]]),ze={class:"kong-ui-entities-secrets-list"},Ge=le(e.defineComponent({__name:"SecretList",props:{config:{type:Object,required:!0,validator:l=>!(!l||(l==null?void 0:l.app)!=="konnect"||!l.createRoute||!l.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(l,{emit:C}){var i;const d=C,c=l,f=g=>{d("error",g)},a=g=>{d("delete:success",g)},{axiosInstance:A}=p.useAxios((i=c.config)==null?void 0:i.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:u}=await A.get(y.value);w.value=(g=u==null?void 0:u.config)==null?void 0:g.config_store_id}catch(u){d("error",u)}}),(g,u)=>(e.openBlock(),e.createElementBlock("div",ze,[w.value?(e.openBlock(),e.createBlock(Je,e.mergeProps({key:0},c,{"config-store-id":w.value,"onDelete:success":a,onError:f}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-f5aa5636"]]),Ze=le(e.defineComponent({inheritAttrs:!1,__name:"SecretFormInner",props:{config:{type:Object,required:!0,validator:l=>!(!l||l.app!=="konnect"||!l.controlPlaneId||!l.cancelRoute)},configStoreId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var K;const d=l,c=C,{i18n:{t:f}}=ne.useI18n(),a=ce.useRouter(),{axiosInstance:A}=p.useAxios((K=d.config)==null?void 0:K.axiosRequestConfig),{getMessageFromError:w}=p.useErrors(),y=e.reactive({fields:{key:"",value:""},readonly:!1,errorMessage:""}),i=e.reactive({key:"",value:""}),g=e.computed(()=>{var h,B;return(B=ae.form[(h=d.config)==null?void 0:h.app])==null?void 0:B.edit.replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),u=()=>{var h;a.push(((h=d.config)==null?void 0:h.cancelRoute)||{name:"secret-list"})},U=h=>{c("loading",h)},W=h=>{c("error",h)},O=h=>{var B,Q;y.fields.key=((B=h==null?void 0:h.item)==null?void 0:B.key)||(h==null?void 0:h.key)||"",y.fields.value=((Q=h==null?void 0:h.item)==null?void 0:Q.value)||(h==null?void 0:h.value)||"",Object.assign(i,y.fields)},q=e.computed(()=>d.secretId?p.EntityBaseFormType.Edit:p.EntityBaseFormType.Create),$=e.computed(()=>{var h;return`${d.config.apiBaseUrl}${ae.form[d.config.app][q.value]}`.replace(/{controlPlaneId}/gi,((h=d.config)==null?void 0:h.controlPlaneId)||"").replace(/{id}/gi,d.configStoreId).replace(/{secretId}/gi,d.secretId)}),o=e.computed(()=>!!y.fields.key&&!!y.fields.value),Z=e.computed(()=>JSON.stringify(y.fields)!==JSON.stringify(i)),F=e.computed(()=>({key:y.fields.key,value:y.fields.value})),j=async()=>{try{y.readonly=!0;let h;q.value==="create"?h=await A.post($.value,F.value):q.value==="edit"&&(h=await A.put($.value,F.value)),O(h==null?void 0:h.data),c("update",h==null?void 0:h.data)}catch(h){y.errorMessage=w(h),c("error",h)}finally{y.readonly=!1}};return(h,B)=>{const Q=e.resolveComponent("KInput"),X=e.resolveComponent("KTextArea"),z=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(e.unref(p.EntityBaseForm),{"can-submit":o.value&&Z.value,config:l.config,"edit-id":l.secretId,"entity-type":e.unref(p.SupportedEntityType).Other,"error-message":y.errorMessage,"fetch-url":g.value,"form-fields":F.value,"is-readonly":y.readonly,onCancel:u,"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(f)("secrets.form.info.description"),"has-divider":"",title:e.unref(f)("secrets.form.info.title")},{default:e.withCtx(()=>[e.createVNode(Q,{modelValue:y.fields.key,"onUpdate:modelValue":B[0]||(B[0]=H=>y.fields.key=H),modelModifiers:{trim:!0},autocomplete:"off",class:"key-field","data-testid":"secret-form-key",disabled:q.value===e.unref(p.EntityBaseFormType).Edit,label:e.unref(f)("secrets.form.fields.key.label"),placeholder:e.unref(f)("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":B[1]||(B[1]=H=>y.fields.value=H),modelModifiers:{trim:!0},autocomplete:"off","data-testid":"secret-form-value",label:e.unref(f)("secrets.form.fields.value.label"),placeholder:e.unref(f)("secrets.form.fields.value.placeholder"),readonly:y.readonly,required:"",resizable:"",type:"text"},null,8,["modelValue","label","placeholder","readonly"]),e.createVNode(z,{appearance:"warning",message:e.unref(f)("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-9dcc3154"]]),Qe={class:"kong-ui-entities-secret-form"},Ye=le(e.defineComponent({__name:"SecretForm",props:{config:{type:Object,required:!0,validator:l=>!(!l||l.app!=="konnect"||!l.controlPlaneId||!l.cancelRoute)},vaultId:{type:String,required:!0},secretId:{type:String,required:!1,default:""}},emits:["update","error","loading"],setup(l,{emit:C}){var g;const d=l,c=C,f=u=>{c("update",u)},a=u=>{c("error",u)},A=u=>{c("loading",u)},{axiosInstance:w}=p.useAxios((g=d.config)==null?void 0:g.axiosRequestConfig),y=e.ref(""),i=e.computed(()=>{var u;return`${d.config.apiBaseUrl}${ae.getVault[d.config.app]}`.replace(/{controlPlaneId}/gi,((u=d.config)==null?void 0:u.controlPlaneId)||"").replace(/{id}/gi,d.vaultId)});return e.onBeforeMount(async()=>{var u;try{const{data:U}=await w.get(i.value);y.value=(u=U==null?void 0:U.config)==null?void 0:u.config_store_id}catch(U){c("error",U)}}),(u,U)=>(e.openBlock(),e.createElementBlock("div",Qe,[y.value?(e.openBlock(),e.createBlock(Ze,e.mergeProps({key:0},d,{"config-store-id":y.value,onError:a,onLoading:A,onUpdate:f}),null,16,["config-store-id"])):e.createCommentVNode("",!0)]))}}),[["__scopeId","data-v-754ddb2f"]]),Xe={class:"vault-secret-picker-provider"},et=le(e.defineComponent({__name:"VaultSecretPickerProvider",props:{value:{},disabled:{type:Boolean},update:{type:Function}},emits:["open"],setup(l,{emit:C}){const d=l,c=C,{i18n:{t:f},i18nT:a}=ne.useI18n();return(A,w)=>(e.openBlock(),e.createElementBlock("div",Xe,[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(f)("vault_secret_picker.provider.cta")),3)]),_:1})]))}}),[["__scopeId","data-v-d135d1d0"]]),tt=l=>{let C=l.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,[,f,...a]=d.pathname.split("/");if(!c)throw new Error("Invalid secret reference: must have a vault prefix");return{vaultPrefix:c,secretId:f||void 0,optionalSecretKey:a==null?void 0:a.join("/")}},ot=l=>{if(!l.vaultPrefix)throw new Error("Invalid secret reference: must have a vault prefix");let C=`vault://${l.vaultPrefix}`;return l.secretId&&(C=`${C}/${l.secretId}`),l.optionalSecretKey&&(C=`${C}/${l.optionalSecretKey}`),`{${C}}`},lt={key:1,class:"inputs-wrapper"},at={"data-testid":"no-search-results"},rt={class:"k-select-selected-item-label"},nt={class:"vault-secret-picker-vault-dropdown-item"},it={class:"select-item-label"},st={class:"select-item-description"},ct={class:"select-item-description"},dt={"data-testid":"no-search-results"},ut=le(e.defineComponent({__name:"VaultSecretPicker",props:{config:{type:Object,required:!0,validator:l=>!(!l||!["konnect","kongManager"].includes(l==null?void 0:l.app)||l.app==="konnect"&&!l.controlPlaneId||l.app==="kongManager"&&typeof l.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(l,{emit:C}){var L;const{i18n:{t:d}}=ne.useI18n(),c=l,f=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(""),i=e.ref(""),g=e.ref(),u=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:o}=p.useDebouncedFilter(c.config,te.list[c.config.app].getAll,void 0,{fetchedItemsKey:"data",searchKeys:["prefix"]}),{debouncedQueryChange:Z,loading:F,error:j,loadItems:K,results:h}=p.useDebouncedFilter(c.config,u,void 0,{fetchedItemsKey:"data",searchKeys:["key"],exactMatchKey:"key"}),B=e.computed(()=>{var R;let b=!1;const m=((R=o.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=h.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"}),z=e.computed(()=>!!g.value&&!!y.value&&!c.additionalDisabled),H=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)},I=(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=()=>{f("proceed",ot({vaultPrefix:w.value,secretId:y.value||void 0,optionalSecretKey:i.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="",i.value="",typeof b=="string"&&b.trim().length>0)try{let m,R="",T="",ee="";const P=tt(b),{data:x}=await a.get(Y(P.vaultPrefix));if(x!=null&&x.name)if(m=x,R=P.vaultPrefix,m.name==="konnect"){if(P.secretId){const{data:re}=await a.get(I(P.secretId,x.config.config_store_id));re.key===P.secretId&&(T=P.secretId,ee=P.optionalSecretKey??"")}}else T=P.secretId??"",ee=P.optionalSecretKey??"";await e.nextTick(()=>{w.value=R,g.value=m,y.value=T,i.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=B.value.find(T=>T.value===b))==null?void 0:R.vault,y.value="",i.value="")}),e.watch(u,async()=>{X.value&&await K()},{immediate:!0}),(b,m)=>{const R=e.resolveComponent("KEmptyState"),T=e.resolveComponent("KSelect"),ee=e.resolveComponent("KInput"),P=e.resolveComponent("KModal");return e.openBlock(),e.createBlock(P,{"action-button-disabled":!z.value,"action-button-text":l.proceedButtonText||e.unref(d)("vault_secret_picker.actions.use_key"),class:"vault-secret-picker","data-testid":"vault-secret-picker-modal",title:l.title||e.unref(d)("vault_secret_picker.title"),visible:c.setup!==!1,onCancel:m[4]||(m[4]=()=>f("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",lt,[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:B.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",at,e.toDisplayString(e.unref(d)("vault_secret_picker.no_results")),1)]),"selected-item-template":e.withCtx(({item:x})=>[e.createElementVNode("span",rt,e.toDisplayString(H(x)),1)]),"item-template":e.withCtx(({item:x})=>[e.createElementVNode("div",nt,[e.createElementVNode("span",it,e.toDisplayString(x.label),1),e.createElementVNode("span",st,e.toDisplayString(x.vault.name),1),e.createElementVNode("span",ct,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(F),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",dt,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:i.value,"onUpdate:modelValue":m[3]||(m[3]=x=>i.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-3e3fa936"]]);v.SecretForm=Ye,v.SecretList=Ge,v.VaultAuthMethods=N,v.VaultConfigCard=je,v.VaultForm=qe,v.VaultList=Ne,v.VaultProviders=t,v.VaultSecretPicker=ut,v.VaultSecretPickerProvider=et,v.secretsEndpoints=ae,v.vaultsEndpoints=te,Object.defineProperty(v,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-cd250044]{align-items:center;border-bottom:var(--v550201a4);box-sizing:border-box;display:var(--v2eeb3c61);padding:16px 16px 16px 0;width:100%}.config-card-details-row .config-card-details-label[data-v-cd250044]{box-sizing:border-box;padding-right:16px;width:var(--v77ca94df)}.config-card-details-row .config-card-details-label label[data-v-cd250044]{color:#3a3f51;display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-cd250044]{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-cd250044]{min-width:0}.config-card-details-row .config-card-details-value[data-v-cd250044]{box-sizing:border-box;width:var(--v77ccdaba)}.config-card-details-row .config-card-details-value .truncated[data-v-cd250044]{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-cd250044]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-cd250044] .k-copy:not(:last-of-type){margin-bottom:8px}.config-card-details-row .config-card-details-value .method-badge-array[data-v-cd250044]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-cd250044]{margin-right:4px}.config-card-details-row[data-v-cd250044] .k-label{margin-bottom:0}.config-card-details-row[data-v-cd250044] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-cd250044] .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(--v58418ff6);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-f8082e69]{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}.deck-config .k-select[data-v-04c956bc]{margin-bottom:16px}.deck-config .k-code-block[data-v-04c956bc]{margin-top:12px}.kong-ui-entity-base-form[data-v-7cbcaad8]{box-sizing:border-box;max-width:1536px;width:100%}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .k-card.content-card{padding:0 16px!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .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-7cbcaad8] .tab-item.active>div.tab-link.has-panels{color:#000933!important;font-weight:600!important}.kong-ui-entity-base-form[data-v-7cbcaad8] .slideout-content{overflow-y:unset!important}.form-actions[data-v-7cbcaad8]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px}.form-actions[data-v-7cbcaad8] .k-button:last-of-type,.form-actions[data-v-7cbcaad8] .k-button:nth-last-of-type(2){margin-inline-start:16px}.form-actions-reverted[data-v-7cbcaad8]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.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-6d4a0f89]{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-6d4a0f89]{padding:64px 96px}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-6d4a0f89]{margin-bottom:8px}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-6d4a0f89]{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-6d4a0f89]{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-6d4a0f89]{font-size:18px}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{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-6d4a0f89],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-6d4a0f89]{margin:0}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-6d4a0f89]{margin-top:16px}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-6d4a0f89]{color:#52596e}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-6d4a0f89]{align-items:center;display:flex;gap:12px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-6d4a0f89]{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-6d4a0f89]{width:640px}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-6d4a0f89]{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-6d4a0f89]{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-6d4a0f89] .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-6d4a0f89] .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-6d4a0f89] .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-6d4a0f89]{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-6d4a0f89]{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-69c9b94d]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-69c9b94d]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-69c9b94d]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-69c9b94d]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-69c9b94d],.kong-ui-entities-vault-form .vault-form-textarea[data-v-69c9b94d]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-69c9b94d]{display:flex;flex-direction:row;gap:16px}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-69c9b94d]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-69c9b94d]{display:block;font-weight:700}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-69c9b94d]{display:block;font-size:12px}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-69c9b94d]{color:#3a3f51}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-69c9b94d]{color:#6c7489}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-69c9b94d] .k-tooltip .popover-container{padding:6px!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-69c9b94d]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-69c9b94d]>*: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-5baf64ca]{border:solid 1px #e0e4ea;border:solid var(--kui-border-width-10, 1px) var(--kui-color-border, #e0e4ea);border-radius:4px;margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:4px}.config-card-fieldset-title[data-v-5baf64ca]{font-size:14px;font-size:var(--kui-font-size-30, 14px);padding:0 8px;padding:0 var(--kui-space-40, 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;margin:var(--kui-space-0, 0px) var(--kui-space-60, 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-b6987b3c]{align-items:center;border-bottom:var(--v25a763c4);box-sizing:border-box;display:var(--v1ac90e12);padding:16px;padding:var(--kui-space-60, 16px);padding-left:0;width:100%}.config-card-details-row .config-card-details-label[data-v-b6987b3c]{box-sizing:border-box;padding-right:16px;padding-right:var(--kui-space-60, 16px);width:var(--v45a716ee)}.config-card-details-row .config-card-details-label label[data-v-b6987b3c]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:inline-flex;max-width:100%}.config-card-details-row .config-card-details-label label .label-content[data-v-b6987b3c]{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-b6987b3c]{min-width:0}.config-card-details-row .config-card-details-value[data-v-b6987b3c]{box-sizing:border-box;width:var(--v45a28b38)}.config-card-details-row .config-card-details-value .truncated[data-v-b6987b3c]{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-b6987b3c]{overflow-wrap:anywhere}.config-card-details-row .config-card-details-value .copy-uuid-array[data-v-b6987b3c] .k-copy:not(:last-of-type){margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.config-card-details-row .config-card-details-value .method-badge-array[data-v-b6987b3c]{display:flex;flex-wrap:wrap;row-gap:10px}.config-card-details-row .config-badge[data-v-b6987b3c]{margin-right:4px;margin-right:var(--kui-space-20, 4px)}.config-card-details-row[data-v-b6987b3c] .k-label{margin-bottom:0}.config-card-details-row[data-v-b6987b3c] .k-label .kong-icon-infoFilled{display:flex}.config-card-details-row[data-v-b6987b3c] .config-card-details-row{width:auto}.json-content.k-code-block{border-top-left-radius:0;border-top-left-radius:var(--kui-border-radius-0, 0px);border-top-right-radius:0;border-top-right-radius:var(--kui-border-radius-0, 0px)}.json-endpoint{align-items:baseline;background-color:#000933;background-color:var(--kui-color-background-inverse, #000933);border-bottom:1px solid rgba(255,255,255,.2);border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border-inverse, rgba(255, 255, 255, .2));border-top-left-radius:8px;border-top-left-radius:var(--kui-border-radius-40, 8px);border-top-right-radius:8px;border-top-right-radius:var(--kui-border-radius-40, 8px);display:flex;padding:8px 0 8px 12px;padding:var(--kui-space-40, 8px) var(--kui-space-0, 0px) var(--kui-space-40, 8px) var(--kui-space-50, 12px)}.json-endpoint .k-code-block{flex:auto;z-index:2}.json-endpoint .k-code-block .code-block-content{padding-bottom:0;padding-bottom:var(--kui-space-0, 0px);padding-top:0;padding-top:var(--kui-space-0, 0px)}.json-endpoint .k-code-block .code-block-secondary-actions{margin-top:0!important}.json-endpoint code{direction:rtl;max-width:var(--v775b4bd8);overflow:hidden!important;text-align:left;text-overflow:ellipsis;white-space:nowrap}.config-card-prop-section-title[data-v-12374c4b]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600);margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card .config-card-actions[data-v-2f21a1bc]{align-items:center;display:flex}.kong-ui-entity-base-config-card .config-card-actions .config-format-select-label[data-v-2f21a1bc]{margin-bottom:0;margin-bottom:var(--kui-space-0, 0px);margin-right:8px;margin-right:var(--kui-space-40, 8px)}.kong-ui-entity-base-config-card .config-card-prop-section-title[data-v-2f21a1bc]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:600;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);margin-top:48px;margin-top:var(--kui-space-110, 48px)}.kong-ui-entity-base-config-card[data-v-2f21a1bc] .config-card-details-row:last-of-type{border-bottom:none}.kong-ui-entity-base-config-card .book-icon[data-v-2f21a1bc]{margin-left:8px;margin-left:var(--kui-space-40, 8px);padding:0;padding:var(--kui-space-0, 0px)}.deck-config .k-select[data-v-d4838dcc]{margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px)}.deck-config .k-code-block[data-v-d4838dcc]{margin-top:12px;margin-top:var(--kui-space-50, 12px)}.kong-ui-entity-base-form[data-v-7034940b]{box-sizing:border-box;max-width:1536px;max-width:var(--kui-breakpoint-desktop, 1536px);width:100%}.kong-ui-entity-base-form[data-v-7034940b] .k-slideout-title{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-size:24px!important;font-size:var(--kui-font-size-70, 24px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:32px!important;line-height:var(--kui-line-height-60, 32px)!important;margin-bottom:16px!important;margin-bottom:var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-7034940b] .k-card.content-card{padding:0 16px!important;padding:var(--kui-space-0, 0px) var(--kui-space-60, 16px)!important}.kong-ui-entity-base-form[data-v-7034940b] .tab-item>div.tab-link.has-panels{color:#6c7489!important;color:var(--kui-color-text-neutral, #6c7489)!important;font-size:14px!important;font-size:var(--kui-font-size-30, 14px)!important;font-weight:700!important;font-weight:var(--kui-font-weight-bold, 700)!important;line-height:24px!important;line-height:var(--kui-line-height-40, 24px)!important}.kong-ui-entity-base-form[data-v-7034940b] .tab-item.active>div.tab-link.has-panels{color:#000933!important;color:var(--kui-color-text, #000933)!important;font-weight:600!important;font-weight:var(--kui-font-weight-semibold, 600)!important}.kong-ui-entity-base-form[data-v-7034940b] .slideout-content{overflow-y:unset!important}.form-actions[data-v-7034940b]{align-items:center;display:flex;justify-content:flex-end;margin-top:24px;margin-top:var(--kui-space-80, 24px)}.form-actions[data-v-7034940b] .k-button:last-of-type,.form-actions[data-v-7034940b] .k-button:nth-last-of-type(2){margin-inline-start:16px;margin-inline-start:var(--kui-space-60, 16px)}.form-actions-reverted[data-v-7034940b]{direction:rtl}.content-wrapper[data-v-a3a65cac] .k-tooltip{word-break:break-all}.kong-ui-entity-base-table .toolbar-container[data-v-09e101d4]{align-items:center;display:flex;width:100%}.kong-ui-entity-base-table .toolbar-button-container[data-v-09e101d4]{margin-left:auto}.kong-ui-entity-base-table .hidden[data-v-09e101d4]{display:none}.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-d3d2bd8b]{width:100%}.kong-ui-entity-filter-clear[data-v-d3d2bd8b]{cursor:pointer}.kong-ui-entity-filter[data-v-d3d2bd8b]{display:flex;position:relative}.kong-ui-entity-filter[data-v-d3d2bd8b] .menu-content{flex-direction:column}.kong-ui-entity-filter[data-v-d3d2bd8b] .k-menu-item-divider hr{margin:12px 0}.kong-ui-entity-filter-backdrop[data-v-d3d2bd8b]{bottom:0;left:0;position:fixed;right:0;top:0;z-index:1050}.kong-ui-entity-filter-menu[data-v-d3d2bd8b]{background-color:#fff;background-color:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:4px;border-radius:var(--kui-border-radius-20, 4px);box-shadow:0 4px 20px #e0e4ea;box-shadow:0 4px 20px var(--kui-color-border, #e0e4ea);left:0;margin-top:16px;padding:8px 0 12px;padding:var(--kui-space-40, 8px) 0 var(--kui-space-50, 12px);position:absolute;top:100%;width:300px;z-index:1060}.kong-ui-entity-filter-menu-item[data-v-d3d2bd8b]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:16px;line-height:var(--kui-line-height-20, 16px);list-style:none;margin:0 20px;margin:var(--kui-space-0, 0px) var(--kui-space-70, 20px);padding:16px 0;padding:var(--kui-space-60, 16px) 0;position:relative;white-space:nowrap}.menu-item-title[data-v-d3d2bd8b]{align-items:center;cursor:pointer;display:flex;line-height:24px;line-height:var(--kui-line-height-40, 24px)}.menu-item-title.expanded[data-v-d3d2bd8b]{color:#232633;color:var(--kui-color-text-neutral-strongest, #232633)}.menu-item-expand-icon[data-v-d3d2bd8b]{margin-left:auto}.menu-item-expand-icon.expanded[data-v-d3d2bd8b]{transform:rotate(180deg)}.menu-item-indicator[data-v-d3d2bd8b]{background-color:#0044f4;background-color:var(--kui-color-background-primary, #0044f4);border-radius:50%;height:4px;margin-left:4px;width:4px}.menu-item-body[data-v-d3d2bd8b]{align-items:center;display:flex;justify-content:space-between;margin-top:16px;margin-top:var(--kui-space-60, 16px)}.menu-item-body[data-v-d3d2bd8b] .input{padding-bottom:4px!important;padding-top:4px!important}.menu-item-body[data-v-d3d2bd8b] .k-input{width:100%}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input{font-size:12px}.menu-item-body[data-v-d3d2bd8b] .k-select-input .input::placeholder{color:#00000073!important;font-size:12px}.menu-item-label[data-v-d3d2bd8b]{margin-bottom:0;margin-right:12px}.menu-item-buttons[data-v-d3d2bd8b]{display:flex;justify-content:space-between;margin:10px 0 6px}.filter-clear-button-container[data-v-d3d2bd8b]{padding:12px 20px 0;padding:var(--kui-space-50, 12px) var(--kui-space-70, 20px) 0}fieldset[data-v-ccd29028]{margin:0;min-width:0;padding:0}.kong-ui-entity-form-section[data-v-ccd29028]{border:0}.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{column-gap:16px;column-gap:var(--kui-space-60, 16px);display:flex;flex-direction:column;padding-bottom:64px;padding-bottom:var(--kui-space-130, 64px);row-gap:12px;row-gap:var(--kui-space-50, 12px);width:100%}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper[data-v-ccd29028]{flex-direction:row}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{flex:1}@media (min-width: 1024px){.kong-ui-entity-form-section .form-section-wrapper .form-section-info[data-v-ccd29028]{max-width:350px}.kong-ui-entity-form-section .form-section-wrapper .form-section-info.sticky[data-v-ccd29028]{height:fit-content;margin-bottom:16px;margin-bottom:var(--kui-space-60, 16px);position:sticky;top:16px}}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-title[data-v-ccd29028]{color:#000933;color:var(--kui-color-text, #000933);font-size:16px;font-size:var(--kui-font-size-40, 16px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px);margin-top:0;margin-top:var(--kui-space-0, 0px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description p[data-v-ccd29028],.kong-ui-entity-form-section .form-section-wrapper .form-section-info .form-section-description[data-v-ccd29028] p{color:#000933;color:var(--kui-color-text, #000933);font-size:14px;font-size:var(--kui-font-size-30, 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-ccd29028]{margin-top:32px;margin-top:var(--kui-space-90, 32px)}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]{flex:1}.kong-ui-entity-form-section .form-section-wrapper .form-section-content[data-v-ccd29028]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-form-section.has-divider .form-section-wrapper[data-v-ccd29028]{border-bottom:1px solid #e0e4ea;border-bottom:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea)}.ff-form-section .header[data-v-73a0f344]{align-items:flex-start;display:flex;gap:8px;gap:var(--kui-space-40, 8px)}.ff-form-section .step[data-v-73a0f344]{align-items:center;background:#fff;background:var(--kui-color-background, #ffffff);border:1px solid #afb7c5;border:1px solid var(--kui-color-border-neutral-weak, #afb7c5);border-radius:100px;border-radius:var(--kui-border-radius-round, 100px);display:flex;flex:0 0 auto;height:32px;justify-content:center;padding:4px;padding:var(--kui-space-20, 4px);width:32px}.ff-form-section .header-content[data-v-73a0f344]{align-items:flex-start;display:flex;flex:1 1 auto;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);padding-top:4px;padding-top:var(--kui-space-20, 4px)}.ff-form-section .header-title[data-v-73a0f344]{color:#000933;color:var(--kui-color-text, #000933);font-size:18px;font-size:var(--kui-font-size-50, 18px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);line-height:24px;line-height:var(--kui-line-height-40, 24px);margin:0}.ff-form-section .header-description[data-v-73a0f344]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);line-height:20px;line-height:var(--kui-line-height-30, 20px);margin:0}.ff-form-section .header-extra[data-v-73a0f344]{align-items:center;display:flex;flex:0 0 auto;gap:8px;gap:var(--kui-space-40, 8px);justify-content:flex-end}.ff-form-section .content[data-v-73a0f344]{background:#f9fafb;background:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px);margin-left:16px;margin-left:var(--kui-space-60, 16px);margin-top:20px;margin-top:var(--kui-space-70, 20px);padding:20px 24px;padding:var(--kui-space-70, 20px) var(--kui-space-80, 24px)}.kong-ui-public-entity-link[data-v-a18d7efa]{align-items:center;display:flex}.kong-ui-public-entity-link .deleted-entity[data-v-a18d7efa]{font-style:italic}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa]{display:flex;flex:1}.kong-ui-public-entity-link .entity-link[data-v-a18d7efa] .external-link-icon{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);margin-left:4px;margin-left:var(--kui-space-20, 4px);padding:2px;padding:var(--kui-space-10, 2px)}.kong-ui-public-entity-link .entity-link-label[data-v-a18d7efa]{display:inline-block;font-weight:400;font-weight:var(--kui-font-weight-regular, 400);max-width:90%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.kong-ui-public-entity-link .copy-uuid-tooltip[data-v-a18d7efa]{align-items:center;cursor:pointer;display:flex}.kong-ui-public-entity-link .copy-uuid-tooltip .entity-link-copy-id[data-v-a18d7efa]{margin-left:2px;margin-left:var(--kui-space-10, 2px)}.kong-ui-public-entity-empty-state[data-v-007edf5e]{align-items:center;background-color:#fff;background-color:var(--kui-color-background, #ffffff);box-sizing:border-box;display:flex;flex-direction:column;font-family:Inter,Roboto,Helvetica,sans-serif;font-family:var(--kui-font-family-text, "Inter", Roboto, Helvetica, sans-serif);gap:24px;gap:var(--kui-space-80, 24px);padding:64px 0;padding:var(--kui-space-130, 64px) var(--kui-space-0, 0px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state[data-v-007edf5e]{padding:64px 96px;padding:var(--kui-space-130, 64px) var(--kui-space-150, 96px)}}.kong-ui-public-entity-empty-state .empty-state-image[data-v-007edf5e]{margin-bottom:8px;margin-bottom:var(--kui-space-40, 8px)}.kong-ui-public-entity-empty-state .entity-empty-state-content[data-v-007edf5e]{align-items:center;display:flex;flex-direction:column;gap:8px;gap:var(--kui-space-40, 8px);text-align:center;width:100%}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1[data-v-007edf5e]{align-items:center;color:#000933;color:var(--kui-color-text, #000933);display:flex;font-size:24px;font-size:var(--kui-font-size-70, 24px);font-weight:700;font-weight:var(--kui-font-weight-bold, 700);gap:8px;gap:var(--kui-space-40, 8px);line-height:32px;line-height:var(--kui-line-height-60, 32px);margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-content .entity-empty-state-title h1.secondary[data-v-007edf5e]{font-size:18px;font-size:var(--kui-font-size-50, 18px)}.kong-ui-public-entity-empty-state .entity-empty-state-description[data-v-007edf5e],.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-007edf5e]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e);font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:400;font-weight:var(--kui-font-weight-regular, 400);line-height:20px;line-height:var(--kui-line-height-30, 20px);max-width:640px}.kong-ui-public-entity-empty-state .entity-empty-state-description p[data-v-007edf5e],.kong-ui-public-entity-empty-state .entity-empty-state-pricing p[data-v-007edf5e]{margin:0;margin:var(--kui-space-0, 0px)}.kong-ui-public-entity-empty-state .entity-empty-state-pricing[data-v-007edf5e]{margin-top:16px;margin-top:var(--kui-space-60, 16px)}.kong-ui-public-entity-empty-state .entity-empty-state-message[data-v-007edf5e]{color:#52596e;color:var(--kui-color-text-neutral-strong, #52596e)}.kong-ui-public-entity-empty-state .entity-empty-state-action[data-v-007edf5e]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-007edf5e]{display:flex;flex-wrap:wrap;gap:16px;gap:var(--kui-space-60, 16px);justify-content:space-around;margin-top:8px;margin-top:var(--kui-space-40, 8px);width:312px}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-card-container[data-v-007edf5e]{width:640px;width:calc(2 * 312px + var(--kui-space-60, 16px))}}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-007edf5e]{background-color:#f9fafb;background-color:var(--kui-color-background-neutral-weakest, #f9fafb);border:1px solid #e0e4ea;border:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);border-radius:6px;border-radius:var(--kui-border-radius-30, 6px);color:#afb7c5;color:var(--kui-color-text-neutral-weak, #afb7c5);gap:8px;gap:var(--kui-space-40, 8px);height:160px;padding:20px;padding:var(--kui-space-70, 20px);width:312px}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-007edf5e]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51);display:flex;margin-bottom:12px;margin-bottom:var(--kui-space-50, 12px)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card .feature-icon[data-v-007edf5e] .kui-icon{height:20px!important;height:var(--kui-icon-size-40, 20px)!important;width:20px!important;width:var(--kui-icon-size-40, 20px)!important}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-007edf5e] .card-title{font-size:14px;font-size:var(--kui-font-size-30, 14px);font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.kong-ui-public-entity-empty-state .entity-empty-state-card-container .entity-empty-state-card[data-v-007edf5e] .card-content{-webkit-box-orient:vertical;color:#6c7489;color:var(--kui-color-text-neutral, #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-007edf5e]{border-top:1px solid #e0e4ea;border-top:var(--kui-border-width-10, 1px) solid var(--kui-color-border, #e0e4ea);display:flex;flex-direction:column;gap:16px;gap:var(--kui-space-60, 16px);padding-top:48px;padding-top:var(--kui-space-110, 48px);width:100%}@media (min-width: 640px){.kong-ui-public-entity-empty-state .entity-empty-state-bottom-container[data-v-007edf5e]{width:640px;width:calc(2 * 312px + var(--kui-space-60, 16px))}}.button-row[data-v-4ae7ac82]{align-items:center;display:flex;gap:12px;gap:var(--kui-space-50, 12px)}.kong-ui-entities-vaults-list[data-v-4ae7ac82]{width:100%}.kong-ui-entities-vaults-list .kong-ui-entity-filter-input[data-v-4ae7ac82]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.kong-ui-entities-vaults-list .table-content-overflow-wrapper[data-v-4ae7ac82]{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-3f83a271]{width:100%}.kong-ui-entities-vault-form .advanced-fields-collapse[data-v-3f83a271]{margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper[data-v-3f83a271]{display:flex;gap:24px;margin-bottom:24px}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-50[data-v-3f83a271]{width:50%}.kong-ui-entities-vault-form .advanced-fields-collapse .wrapper .item-100[data-v-3f83a271],.kong-ui-entities-vault-form .vault-form-textarea[data-v-3f83a271]{width:100%}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item[data-v-3f83a271]{display:flex;flex-direction:row;gap:16px;gap:var(--kui-space-60, 16px)}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title-container[data-v-3f83a271]{flex:1}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-title[data-v-3f83a271]{display:block;font-weight:700;font-weight:var(--kui-font-weight-bold, 700)}.kong-ui-entities-vault-form .vault-form-provider-cards-container .provider-item-description[data-v-3f83a271]{display:block;font-size:12px;font-size:var(--kui-font-size-20, 12px)}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-title[data-v-3f83a271]{color:#3a3f51;color:var(--kui-color-text-neutral-stronger, #3a3f51)}.kong-ui-entities-vault-form .vault-form-provider-cards-container button:not(:disabled) .provider-item-description[data-v-3f83a271]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489)}.kong-ui-entities-vault-form .vault-form-provider-cards-container[data-v-3f83a271] .k-tooltip .popover-container{padding:6px!important;padding:var(--kui-space-30, 6px)!important}.kong-ui-entities-vault-form .vault-form-config-fields-container[data-v-3f83a271]>*:not(:first-child),.kong-ui-entities-vault-form .vault-form-config-fields-container .vault-form-config-auth-method-container[data-v-3f83a271]>*:not(:first-child){margin-top:24px;margin-top:var(--kui-space-80, 24px)}.kong-ui-entity-filter-input[data-v-ba08720f]{margin-right:12px;margin-right:var(--kui-space-50, 12px)}.table-content-overflow-wrapper[data-v-ba08720f]{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-9dcc3154] .form-section-wrapper{column-gap:64px;column-gap:var(--kui-space-130, 64px)}}.kong-ui-entities-secret-form[data-v-754ddb2f]{width:100%}.vault-secret-picker-provider[data-v-d135d1d0]{font-size:12px;font-size:var(--kui-font-size-20, 12px);margin:8px 0;margin:var(--kui-space-40, 8px) 0}.vault-secret-picker-provider-action[data-v-d135d1d0]{color:#0044f4;color:var(--kui-color-text-primary, #0044f4);cursor:pointer}.vault-secret-picker-provider-action.disabled[data-v-d135d1d0]{color:#afb7c5;color:var(--kui-color-text-disabled, #afb7c5);cursor:not-allowed}.vault-secret-picker .inputs-wrapper[data-v-3e3fa936]{display:flex;flex-direction:column;gap:20px;gap:var(--kui-space-70, 20px)}.vault-secret-picker-vault-dropdown-item[data-v-3e3fa936],.vault-secret-picker-secret-dropdown-item[data-v-3e3fa936]{display:flex;flex-direction:column}.vault-secret-picker-vault-dropdown-item span[data-v-3e3fa936],.vault-secret-picker-secret-dropdown-item span[data-v-3e3fa936]{line-height:20px;line-height:var(--kui-line-height-30, 20px)}.vault-secret-picker-vault-dropdown-item .select-item-label[data-v-3e3fa936],.vault-secret-picker-secret-dropdown-item .select-item-label[data-v-3e3fa936]{font-weight:600;font-weight:var(--kui-font-weight-semibold, 600)}.vault-secret-picker-vault-dropdown-item .select-item-description[data-v-3e3fa936]{color:#6c7489;color:var(--kui-color-text-neutral, #6c7489);font-size:12px;font-size:var(--kui-font-size-20, 12px)}.vault-secret-picker .k-empty-state[data-v-3e3fa936]{background:none;box-sizing:border-box}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-vaults",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.16-pr.2790.95b70759b.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-vaults.umd.js",
|
|
6
6
|
"module": "./dist/entities-vaults.es.js",
|
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
"axios": "^1.13.2",
|
|
27
27
|
"vue": ">= 3.3.13 < 4",
|
|
28
28
|
"vue-router": "^4.6.4",
|
|
29
|
-
"@kong-ui-public/entities-shared": "^3.36.
|
|
29
|
+
"@kong-ui-public/entities-shared": "^3.36.13-pr.2790.95b70759b.0",
|
|
30
30
|
"@kong-ui-public/i18n": "^2.4.5"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@kong/design-tokens": "1.18.
|
|
33
|
+
"@kong/design-tokens": "1.18.3-pr.613.f4a145c.0",
|
|
34
34
|
"@kong/kongponents": "9.48.8",
|
|
35
35
|
"axios": "^1.13.2",
|
|
36
36
|
"vue": "^3.5.26",
|
|
37
37
|
"vue-router": "^4.6.4",
|
|
38
|
-
"@kong-ui-public/entities-shared": "^3.36.
|
|
38
|
+
"@kong-ui-public/entities-shared": "^3.36.13-pr.2790.95b70759b.0",
|
|
39
39
|
"@kong-ui-public/i18n": "^2.4.5"
|
|
40
40
|
},
|
|
41
41
|
"repository": {
|